/* Enhanced Price List Styles */
.price-list-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.price-list-header {
    text-align: center;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 0 2rem 2rem;
}

.price-list-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-list-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Enhanced Controls */
.price-list-controls {
    display: flex;
    gap: 1.5rem;
    margin: 0 2rem 2rem;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.sort-wrapper {
    min-width: 250px;
}

.results-info {
    min-width: 150px;
    text-align: right;
}

.results-info span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.search-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.sort-wrapper select {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-wrapper select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Enhanced Table */
.price-list-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 0 2rem;
    border: 1px solid #e2e8f0;
}

.price-list-table {
    width: 100%;
    border-collapse: collapse;
}

.price-list-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.2rem;
    font-weight: 700;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-list-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.price-list-table tr:hover {
    background: #f8fafc;
}

.price-list-table tr.out-of-stock-row {
    opacity: 0.7;
    background: #f9fafb;
}

/* Enhanced Product Image */
.product-image-container {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.product-image-container:hover .product-thumbnail {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
}

.discount-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
}

/* Enhanced Product Name */
.product-name-cell strong {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-desc {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* Enhanced Category Tag */
.category-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Price Cell */
.price-cell {
    text-align: left;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #059669;
}

.original-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.box-price {
    color: #64748b;
    font-style: italic;
    font-size: 0.8rem;
}

/* Enhanced Quantity Section */
.quantity-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.purchase-type-mini {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    background: white;
}

.purchase-type-mini:focus {
    outline: none;
    border-color: #667eea;
}

.quantity-controls-mini {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e1e8ed;
}

.qty-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
    min-width: 35px;
}

.qty-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.qty-input {
    border: none;
    background: white;
    padding: 0.5rem 0.3rem;
    text-align: center;
    font-weight: 600;
    width: 50px;
    font-size: 0.9rem;
}

.stock-info {
    color: #64748b;
    font-size: 0.75rem;
    text-align: center;
}

.out-of-stock-text {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Enhanced Action Buttons */
.add-to-cart-btn-mini {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    width: 100%;
}

.add-to-cart-btn-mini:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.add-to-cart-btn-mini.loading {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    cursor: not-allowed;
}

.add-to-cart-btn-mini.success {
    background: linear-gradient(135deg, #059669, #047857);
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.notify-btn-mini {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
    width: 100%;
}

.notify-btn-mini:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Enhanced Messages */
.price-list-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-list-message.show {
    transform: translateX(0);
}

.price-list-message.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.price-list-message.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.price-list-message.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.price-list-message.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-style: italic;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .price-list-header {
        margin: 0 1rem 1rem;
        padding: 1.5rem;
    }
    
    .price-list-header h1 {
        font-size: 2rem;
    }
    
    .price-list-controls {
        flex-direction: column;
        margin: 0 1rem 1rem;
        padding: 1rem;
    }
    
    .price-list-table-container {
        margin: 0 1rem;
        overflow-x: auto;
    }
    
    .price-list-table {
        min-width: 800px;
    }
    
    .product-image-container {
        width: 60px;
        height: 60px;
    }
    
    .quantity-controls-mini {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .qty-input {
        width: 40px;
    }
} 