/* Additional custom styles for shopping cart */

/* Strikethrough text for MRP display */
.text-decoration-line-through {
    text-decoration: line-through !important;
}

/* Enhanced Customer Details Styling */
.customer-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3f2fd;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Dark customer details for cart sidebar */
.cart-sidebar .customer-card-compact {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    border: 1px solid #34495e;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: #ecf0f1;
}

.cart-sidebar .customer-header-compact h6 {
    color: #ecf0f1 !important;
}

.cart-sidebar .customer-header-compact .text-success {
    color: #27ae60 !important;
}

.cart-sidebar .customer-header-compact .text-muted {
    color: #bdc3c7 !important;
}

.cart-sidebar .customer-body-compact {
    margin-top: 0.75rem;
}

.cart-sidebar .info-compact {
    color: #ecf0f1;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.cart-sidebar .info-compact i {
    margin-right: 0.5rem;
    width: 16px;
    color: #e74c3c;
}

.customer-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.customer-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.customer-title {
    flex: 1;
}

.customer-title h5 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.customer-title small {
    color: #6c757d;
    font-size: 0.85rem;
}

.customer-status {
    margin-left: auto;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.info-item i {
    width: 20px;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.2rem;
}

.info-item div div {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Enhanced Cart Item Styling */
.cart-item-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3f2fd;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cart-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.08);
    transform: translateY(-3px) scale(1.02);
}

.cart-item-card:hover::before {
    opacity: 1;
}

.cart-item-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-image {
    width: 90px;
    height: 90px;
    margin-right: 1.25rem;
    flex-shrink: 0;
    position: relative;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e3f2fd;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image-link:hover .product-img {
    transform: scale(1.08);
    border-color: #667eea;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Add a subtle overlay effect on hover to indicate clickability */
.product-image-link::after {
    content: '\f06e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.product-image-link:hover::after {
    opacity: 0.9;
}

.product-details {
    flex: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.product-name {
    color: #2c3e50;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
}

.remove-btn {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    color: #6c757d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.remove-btn:hover {
    background: linear-gradient(145deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.price-info {
    margin-bottom: 0.5rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.current-price {
    color: #28a745;
    font-weight: 400;
    font-size: 0.85rem;
}

.original-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 0.8rem;
    opacity: 0.8;
}

.savings {
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 400;
    background: linear-gradient(145deg, #fff5f5 0%, #fed7d7 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    border: 1px solid #feb2b2;
    display: inline-block;
    margin-top: 0.25rem;
}

.savings i {
    margin-right: 0.3rem;
    color: #e53e3e;
}

.stock-info {
    color: #6c757d;
    font-size: 1rem;
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-top: 0.5rem;
}

.stock-info i {
    margin-right: 0.4rem;
    color: #6c757d;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #e3f2fd;
    margin-top: 1rem;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e3f2fd;
}

.quantity-controls .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.quantity-controls .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.quantity-controls .btn:disabled {
    background: linear-gradient(145deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
    box-shadow: none;
    transform: none;
}

.quantity-input {
    width: 70px;
    text-align: center;
    border-radius: 8px;
    font-weight: 400;
    border: 2px solid #e3f2fd;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    font-size: 0.9rem;
    color: #2c3e50;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.quantity-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.25), inset 0 1px 3px rgba(0,0,0,0.05);
    background: white;
}

.item-total {
    color: #28a745;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .customer-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .customer-avatar {
        margin: 0 auto 1rem auto;
    }
    
    .customer-status {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Keep cart items compact on mobile */
    .cart-item-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .cart-item-content {
        flex-direction: row; /* Keep horizontal layout */
        align-items: flex-start;
    }
    
    .product-image {
        width: 60px; /* Smaller but still visible */
        height: 60px;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }
    
    .product-img {
        height: 100%;
        border-radius: 8px;
    }
    
    .product-details {
        flex: 1;
        min-width: 0; /* Allow text to wrap */
    }
    
    .product-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .current-price {
        font-size: 0.8rem;
    }
    
    .original-price {
        font-size: 0.75rem;
    }
    
    .savings {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    .stock-info {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .cart-item-footer {
        flex-direction: row; /* Keep horizontal */
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .quantity-controls {
        gap: 0.25rem;
    }
    
    .quantity-controls .btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .quantity-input {
        width: 50px;
        font-size: 0.85rem;
    }
    
    .item-total {
        font-size: 0.9rem;
        font-weight: 500;
    }
}

.cart-sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    border-left: 4px solid #e74c3c;
    min-height: 100vh;
    max-height: 100vh;
    position: sticky;
    top: 0;
    box-shadow: -6px 0 25px rgba(0,0,0,0.3);
    border-radius: 16px 0 0 16px;
    overflow-y: auto;
    overflow-x: hidden;
    color: #ecf0f1;
}

.cart-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #e74c3c 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.cart-sidebar h5 {
    color: #ecf0f1;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e74c3c;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cart-sidebar .badge {
    background: linear-gradient(145deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border: 1px solid #c0392b;
}

/* Cart sidebar scrolling improvements */
.cart-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #34495e;
}

.cart-sidebar::-webkit-scrollbar {
    width: 6px;
}

.cart-sidebar::-webkit-scrollbar-track {
    background: #34495e;
    border-radius: 3px;
}

.cart-sidebar::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 3px;
}

.cart-sidebar::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Dark cart form elements */
.cart-sidebar .form-control {
    background: rgba(52, 73, 94, 0.8);
    border: 1px solid #34495e;
    color: #ecf0f1;
}

.cart-sidebar .form-control:focus {
    background: rgba(52, 73, 94, 0.9);
    border-color: #e74c3c;
    color: #ecf0f1;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* Quantity input styling for dark theme - match cart background */
.cart-sidebar .quantity-input,
.cart-sidebar input.quantity-input,
.cart-sidebar .form-control.quantity-input {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    border: 1px solid #34495e !important;
    color: #ecf0f1 !important;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    width: 40px;
    padding: 4px;
    margin: 0 5px;
    border-radius: 4px;
}

.cart-sidebar .quantity-input:focus,
.cart-sidebar input.quantity-input:focus,
.cart-sidebar .form-control.quantity-input:focus {
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 50%, #34495e 100%) !important;
    border-color: #e74c3c !important;
    color: #ecf0f1 !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25) !important;
    outline: none !important;
}

/* Additional override for any remaining white backgrounds */
.cart-sidebar input[type="number"],
.cart-sidebar input[type="text"] {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    border: 1px solid #34495e !important;
    color: #ecf0f1 !important;
}

.cart-sidebar input[type="number"]:focus,
.cart-sidebar input[type="text"]:focus {
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 50%, #34495e 100%) !important;
    border-color: #e74c3c !important;
    color: #ecf0f1 !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25) !important;
}

/* Ultra-specific rules to force quantity input background change */
.cart-sidebar .cart-item-card .quantity-input,
.cart-sidebar .cart-item-card input.quantity-input,
.cart-sidebar .cart-item-card .form-control.quantity-input,
.cart-sidebar .cart-item-card input[type="number"],
.cart-sidebar .cart-item-card input[type="text"],
.cart-sidebar .cart-item-card .quantity-controls input,
.cart-sidebar .cart-item-card .quantity-controls .form-control {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    background-color: #2c3e50 !important;
    border: 1px solid #34495e !important;
    color: #ecf0f1 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.cart-sidebar .cart-item-card .quantity-input:focus,
.cart-sidebar .cart-item-card input.quantity-input:focus,
.cart-sidebar .cart-item-card .form-control.quantity-input:focus,
.cart-sidebar .cart-item-card input[type="number"]:focus,
.cart-sidebar .cart-item-card input[type="text"]:focus {
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 50%, #34495e 100%) !important;
    background-color: #34495e !important;
    border-color: #e74c3c !important;
    color: #ecf0f1 !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25) !important;
}

.cart-sidebar .form-label {
    color: #ecf0f1;
    font-weight: 500;
}

.cart-sidebar .form-text {
    color: #bdc3c7;
}

.cart-sidebar .text-muted {
    color: #bdc3c7 !important;
}

/* Ensure all cart text is white/light colored */
.cart-sidebar * {
    color: #ecf0f1 !important;
}

.cart-sidebar .product-name {
    color: #ecf0f1 !important;
    font-weight: 500;
}

.cart-sidebar .current-price {
    color: #27ae60 !important;
    font-weight: 600;
}

.cart-sidebar .original-price {
    color: #95a5a6 !important;
}

.cart-sidebar .stock-info {
    color: #bdc3c7 !important;
}

.cart-sidebar .item-total {
    color: #ffffff !important;
    font-weight: 600;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border: 1px solid #34495e !important;
}

/* Additional styling for total value containers */
.cart-sidebar .cart-item-footer,
.cart-sidebar .cart-item-footer .col,
.cart-sidebar .cart-item-footer .col-auto,
.cart-sidebar .cart-item-footer .d-flex,
.cart-sidebar .cart-item-footer .justify-content-between {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    color: #ecf0f1 !important;
}

.cart-sidebar .cart-item-footer .item-total,
.cart-sidebar .cart-item-footer .total-value,
.cart-sidebar .cart-item-footer .price-total {
    color: #ffffff !important;
    background: rgba(52, 73, 94, 0.8) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border: 1px solid #34495e !important;
    font-weight: 600 !important;
}

.cart-sidebar .cart-summary {
    color: #ecf0f1 !important;
}

.cart-sidebar .cart-summary .text-muted {
    color: #bdc3c7 !important;
}

.cart-sidebar .cart-summary .fw-bold {
    color: #ecf0f1 !important;
}

.cart-sidebar .cart-summary .text-success {
    color: #27ae60 !important;
}

.cart-sidebar .cart-summary .text-danger {
    color: #e74c3c !important;
}

.cart-sidebar .btn-close {
    color: #ffffff !important;
    background: linear-gradient(145deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 4px;
    opacity: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #c0392b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cart-sidebar .btn-close:hover {
    background: linear-gradient(145deg, #c0392b 0%, #a93226 100%);
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
    border-color: #a93226;
}

.cart-sidebar .alert {
    background: rgba(52, 73, 94, 0.9);
    border: 1px solid #34495e;
    color: #ecf0f1;
}

.cart-sidebar .alert-warning {
    background: rgba(241, 196, 15, 0.1);
    border-color: #f39c12;
    color: #f39c12;
}

/* Dark cart buttons */
.cart-sidebar .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cart-sidebar .btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
    background: transparent;
}

.cart-sidebar .btn-outline-primary:hover {
    background: #3498db;
    border-color: #3498db;
    color: #ecf0f1;
    transform: translateY(-1px);
}

.cart-sidebar .btn-outline-success {
    color: #27ae60;
    border-color: #27ae60;
    background: transparent;
}

.cart-sidebar .btn-outline-success:hover {
    background: #27ae60;
    border-color: #27ae60;
    color: #ecf0f1;
    transform: translateY(-1px);
}

.cart-sidebar .btn-primary {
    background: linear-gradient(145deg, #e74c3c 0%, #c0392b 100%);
    border-color: #c0392b;
    color: #ecf0f1;
}

.cart-sidebar .btn-primary:hover {
    background: linear-gradient(145deg, #c0392b 0%, #a93226 100%);
    border-color: #a93226;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Quantity control buttons for dark theme - enhanced visibility */
.cart-sidebar .quantity-controls .btn {
    background: linear-gradient(145deg, #e74c3c 0%, #c0392b 100%);
    border: 2px solid #c0392b;
    color: #ecf0f1;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cart-sidebar .quantity-controls .btn:hover {
    background: linear-gradient(145deg, #c0392b 0%, #a93226 100%);
    border-color: #a93226;
    color: #ecf0f1;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.cart-sidebar .quantity-controls .btn:active {
    background: linear-gradient(145deg, #a93226 0%, #922b21 100%);
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cart-sidebar .quantity-controls .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

/* Quantity controls container styling - transparent background to match cart */
.cart-sidebar .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    border: none;
    box-shadow: none;
}

/* Cart summary styling for dark theme */
.cart-sidebar .cart-summary {
    background: rgba(52, 73, 94, 0.6);
    border: 1px solid #34495e;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.cart-sidebar .cart-summary .row {
    margin-bottom: 0.5rem;
}

.cart-sidebar .cart-summary .col-6 {
    color: #ecf0f1 !important;
}

.cart-sidebar .cart-summary .col-6:last-child {
    text-align: right;
    font-weight: 600;
}

.cart-sidebar .cart-summary .total-row {
    border-top: 1px solid #34495e;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-sidebar .cart-summary .total-row .col-6:last-child {
    color: #27ae60 !important;
}

/* Additional text styling for better visibility */
.cart-sidebar .available-text,
.cart-sidebar .stock-text,
.cart-sidebar .availability-text {
    color: #bdc3c7 !important;
    font-size: 0.9rem;
}

.cart-sidebar .price-text {
    color: #27ae60 !important;
    font-weight: 600;
}

.cart-sidebar .each-text {
    color: #95a5a6 !important;
    font-size: 0.85rem;
}

.cart-sidebar .subtotal-text,
.cart-sidebar .discount-text,
.cart-sidebar .total-text {
    color: #ecf0f1 !important;
}

.cart-sidebar .subtotal-value,
.cart-sidebar .discount-value {
    color: #ecf0f1 !important;
    font-weight: 600;
}

.cart-sidebar .total-value {
    color: #27ae60 !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Ensure cart content is properly contained */
#cart-items {
    max-height: none;
    overflow: visible;
}

/* Cart item cards scrolling */
.cart-item-card {
    margin-bottom: 1rem;
    background: rgba(52, 73, 94, 0.8);
    border: 1px solid #34495e;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    background: rgba(52, 73, 94, 0.9);
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Pagination Styles */
.pagination-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e3f2fd;
}

.pagination {
    margin-bottom: 0;
}

.pagination-lg .page-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    color: #667eea;
}

.pagination-lg .page-link:hover {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-lg .page-item.active .page-link {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-lg .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination-lg .page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    transform: none;
    box-shadow: none;
}

/* Mobile pagination adjustments */
@media (max-width: 768px) {
    .pagination-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .pagination-lg .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        margin: 0 0.125rem;
    }
    
    .pagination-lg .page-link span.d-none {
        display: none !important;
    }
}

.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid #e3f2fd;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15), 0 6px 12px rgba(0,0,0,0.08);
    border-color: #667eea;
}

.product-card:hover::before {
    opacity: 1;
}

.image-placeholder {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.product-card:hover .image-placeholder::before {
    transform: translateX(100%);
}

.image-placeholder img, .card-img-top {
    border-radius: 16px 16px 0 0;
    transition: transform 0.4s ease;
    height: 220px;
    object-fit: cover;
}

.product-card:hover .image-placeholder img,
.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.search-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.hero-section {
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.company-header {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 3px solid #007bff;
}

.footer-section {
    background: #343a40;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.btn-add-to-cart {
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    transform: scale(1.05);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-sidebar {
        position: relative;
        min-height: auto;
        max-height: none;
        border-left: none;
        border-top: 1px solid #dee2e6;
        margin-top: 2rem;
        overflow-y: visible;
    }
    
    .hero-section {
        padding: 1rem 0;
    }
    
    .search-section {
        padding: 1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Cart animations */
.cart-item-enter {
    animation: cartItemEnter 0.3s ease;
}

@keyframes cartItemEnter {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product grid improvements */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Tablet responsive adjustments - maintain sidebar layout */
@media (min-width: 769px) and (max-width: 1024px) {
    .cart-sidebar {
        position: sticky;
        top: 0;
        min-height: 100vh;
        max-height: 100vh;
        border-left: 4px solid #e74c3c;
        border-radius: 16px 0 0 16px;
        overflow-y: auto;
        overflow-x: hidden;
        background: linear-gradient(180deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
        box-shadow: -6px 0 25px rgba(0,0,0,0.3);
        color: #ecf0f1;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet */
        gap: 1.2rem;
    }
    
    .product-card {
        margin-bottom: 1.2rem;
    }
    
    .cart-item-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .product-image {
        width: 70px;
        height: 70px;
        margin-right: 0.8rem;
    }
    
    .product-name {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .current-price {
        font-size: 0.85rem;
    }
    
    .quantity-controls .btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .quantity-input {
        width: 55px;
        font-size: 0.9rem;
    }
}

/* Mobile responsive grid */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for mobile */
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for small mobile */
        gap: 0.75rem;
    }
}

/* Enhanced Product Card Body */
.product-card .card-body {
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.product-card .card-title {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-card .text-primary {
    color: #28a745 !important;
    font-weight: 500;
    font-size: 1rem;
}

.product-card .text-muted.text-decoration-line-through {
    font-size: 0.85rem;
    opacity: 0.7;
}

.product-card .text-success {
    background: linear-gradient(145deg, #d4edda 0%, #c3e6cb 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #b8dabd;
    font-size: 0.75rem;
    font-weight: 400;
    display: inline-block;
    margin-top: 0.25rem;
}

.product-card .btn {
    border-radius: 8px;
    font-weight: 400;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.product-card .btn:hover::before {
    width: 300px;
    height: 300px;
}

.product-card .btn-outline-secondary:hover {
    background: linear-gradient(145deg, #6c757d 0%, #5a6268 100%);
    border-color: #6c757d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.product-card .btn-outline-primary:hover {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.product-card .btn:disabled {
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

/* Stock badges */
.product-card .badge {
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
}

.product-card .badge.bg-danger {
    background: linear-gradient(145deg, #dc3545 0%, #c82333 100%) !important;
}

.product-card .badge.bg-warning {
    background: linear-gradient(145deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important;
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
}

/* Compact Customer Details Styling */
.customer-card-compact {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.customer-card-compact:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.customer-header-compact {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.customer-header-compact h6 {
    color: #28a745;
    font-weight: 600;
    margin: 0;
}

.customer-body-compact {
    font-size: 0.85rem;
}

.info-compact {
    color: #6c757d;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.info-compact i {
    width: 16px;
    margin-right: 0.5rem;
    color: #007bff;
    font-size: 0.8rem;
}
