/* assets/css/cart.css - Modern Minimalist Cart Design */
:root {
    --primary: #0D2440;
    --secondary: #2E5E99;
    --third: #7BA4D0;
    --white-bg: #E7F0FA;
    --white: #ffffff;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: var(--dark);
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
header {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-height: 50px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 8px;
}

nav ul li a:hover {
    background: var(--white-bg);
    color: var(--secondary);
}

.cart-link {
    background: var(--secondary);
    color: white !important;
    border-radius: 8px;
}

/* Cart Main */
.cart-main {
    padding: 60px 0 80px;
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.cart-badge {
    display: inline-block;
    background: var(--white-bg);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 15px;
}

.cart-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.cart-subtitle {
    color: var(--gray);
    font-size: 15px;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s;
}

.continue-shopping:hover {
    gap: 12px;
}

/* Notifications */
.notification {
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.4s ease;
}

.notification-success {
    border-left: 4px solid var(--success);
    color: var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.notification-info {
    border-left: 4px solid var(--secondary);
    color: var(--secondary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart Layout - Two Columns */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Cart Items Section */
.cart-items-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.cart-items-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
    font-weight: 600;
    color: var(--gray);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-items-list {
    margin-top: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: background 0.3s;
}

.cart-item:hover {
    background: #fafbfc;
    margin: 0 -20px;
    padding: 20px;
    border-radius: 12px;
}

.cart-item-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white-bg);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.cart-item-meta {
    display: flex;
    gap: 10px;
}

.stock-in {
    font-size: 12px;
    color: var(--success);
}

.stock-low {
    font-size: 12px;
    color: var(--warning);
}

.cart-item-price,
.cart-item-subtotal {
    font-weight: 500;
    color: var(--dark);
}

.cart-item-subtotal strong {
    color: var(--secondary);
    font-size: 18px;
}

.mobile-label {
    display: none;
}

/* Quantity Selector */
.qty-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white-bg);
    border-radius: 50px;
    padding: 4px;
}

.qty-selector button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary);
}

.qty-selector button:hover {
    background: var(--secondary);
    color: white;
}

.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
}

.qty-selector input:focus {
    outline: none;
}

.remove-item {
    color: var(--gray);
    font-size: 18px;
    transition: all 0.2s;
}

.remove-item:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.btn-update, .btn-clear {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: none;
}

.btn-update {
    background: var(--white-bg);
    color: var(--dark);
}

.btn-update:hover {
    background: var(--secondary);
    color: white;
}

.btn-clear {
    color: var(--danger);
}

.btn-clear:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Order Summary */
.order-summary-section {
    position: sticky;
    top: 100px;
    align-self: start;
}

.summary-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.summary-card h2 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 15px;
}

.shipping-free {
    color: var(--success);
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 20px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.shipping-note {
    background: var(--white-bg);
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    margin: 20px 0;
    color: var(--secondary);
}

.payment-icons-summary {
    text-align: center;
    margin: 20px 0;
}

.payment-icons-summary span {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.payment-icons-summary i {
    font-size: 28px;
    margin: 0 5px;
    color: var(--gray);
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--secondary);
    color: white;
    padding: 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-checkout:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,94,153,0.3);
}

.checkout-secure {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    margin-top: 15px;
}

.trust-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.trust-item {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-item i {
    color: var(--success);
}

/* Offer Cards */
.offer-card {
    background: linear-gradient(135deg, var(--white-bg), white);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid rgba(46,94,153,0.1);
}

.offer-card i {
    font-size: 32px;
    color: var(--secondary);
}

.offer-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.offer-card p {
    font-size: 12px;
    color: var(--gray);
}

/* Recommended Section */
.recommended-section {
    margin-top: 60px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.recommended-header h2 {
    font-size: 22px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.rec-product-card {
    background: var(--white-bg);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.rec-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.rec-product-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.rec-product-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--dark);
}

.rec-price {
    font-weight: 700;
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 12px;
}

.rec-add-btn {
    width: 100%;
    padding: 8px;
    background: white;
    border: 1px solid var(--secondary);
    border-radius: 30px;
    color: var(--secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.rec-add-btn:hover {
    background: var(--secondary);
    color: white;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 30px;
}

.empty-cart-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.empty-cart-icon i:first-child {
    font-size: 100px;
    color: var(--gray-light);
}

.empty-cart-bounce {
    position: absolute;
    bottom: -10px;
    right: -20px;
    animation: bounce 2s infinite;
}

.empty-cart-bounce i {
    font-size: 40px;
    color: var(--secondary);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.empty-cart h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary);
}

.empty-cart p {
    color: var(--gray);
    margin-bottom: 30px;
}

.empty-cart-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary-cart {
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline-cart {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.empty-cart-suggestions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-cart-suggestions span {
    color: var(--gray);
}

.empty-cart-suggestions a {
    color: var(--secondary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .order-summary-section {
        position: static;
    }
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    
    .cart-header h1 {
        font-size: 28px;
    }
    
    .cart-items-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
        border-radius: 16px;
        background: white;
        margin-bottom: 15px;
        border: 1px solid var(--gray-light);
    }
    
    .cart-item-product {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .mobile-label {
        display: inline-block;
        font-weight: 600;
        color: var(--gray);
        width: 100px;
    }
    
    .cart-item-price,
    .cart-item-subtotal,
    .cart-item-quantity,
    .cart-item-action {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-item-action {
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid var(--gray-light);
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .empty-cart h2 {
        font-size: 24px;
    }
}





/* Footer Styles - Add to cart.css */
.main-footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 15px;
}

.footer-about {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--third);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 32px;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.payment-methods span {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.footer-badge {
    background: var(--secondary);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-social {
        justify-content: center;
    }
    .footer-contact li {
        justify-content: center;
    }
    .payment-icons {
        justify-content: center;
    }
    .payment-methods {
        justify-content: center;
    }
}



/* Custom Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.custom-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon i {
    font-size: 60px;
    color: var(--warning);
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

.modal-btn.cancel {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.modal-btn.cancel:hover {
    background: #dee2e6;
}

.modal-btn.confirm {
    background: var(--danger);
    color: white;
}

.modal-btn.confirm:hover {
    background: #c82333;
    transform: translateY(-2px);
}