/* ===== Base Styles ===== */
:root {
    /* Maknoon Brand Identity - هوية مكنون */
    --primary-color: #5B21B6;
    --primary-dark: #4C1D95;
    --primary-light: #7C3AED;
    --primary-rgb: 91, 33, 182;
    --secondary-color: #8B5CF6;
    --accent-color: #8B5CF6;
    --accent-dark: #7C3AED;
    --brand-blue: #5B21B6;
    --navy: #24004F;
    --navy-dark: #1A0038;
    --brand-gradient: var(--primary-color);
    --gradient: var(--primary-color);
    --gradient-accent: var(--secondary-color);
    --text-dark: #1E1B33;
    --text-muted: #64748B;
    --bg-light: #F7F5FC;
    --border-color: #E8EAF2;
    --shadow-sm: 0 1px 3px rgba(30, 27, 75, 0.07), 0 1px 2px rgba(30, 27, 75, 0.04);
    --shadow-md: 0 6px 24px rgba(30, 27, 75, 0.10);
    --shadow-lg: 0 12px 48px rgba(30, 27, 75, 0.16);
    --shadow-primary: 0 6px 20px rgba(var(--primary-rgb), 0.30);
    --transition: all 0.3s ease;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --bottom-nav-height: 64px;
    /* ===== Typography Tokens — Cairo System ===== */
    --font-main: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --fw-body: 400;
    --fw-medium: 500;
    --fw-ui: 600;
    --fw-head: 700;
    --fw-hero: 800;
    --fs-h1: 44px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-tiny: 13px;
    --fs-btn: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #F7F5FC;
    font-size: var(--fs-body);
    line-height: 1.75;
}

/* ===== Global Link Styles - Burgundy Enforcement ===== */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Reset inherited colors for navigation */
.navbar-nav a,
.dropdown-menu a,
.nav-link {
    color: var(--text-dark);
}

.navbar-nav a:hover,
.dropdown-menu a:hover,
.nav-link:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Announcement Bar ===== */
.announcement-bar {
    background: #5B21B6;
    color: #fff;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    letter-spacing: 0.3px;
    position: relative;
}

.announcement-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary-color);
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content i {
    margin-left: 8px;
    font-size: 20px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Header ===== */
.header-main {
    background: #fff;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand .brand-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 10px 20px !important;
    color: var(--text-dark);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: calc(100% - 40px);
}

.nav-link.dropdown-toggle::after {
    position: static;
    width: auto;
    height: auto;
    background: none;
    transition: none;
}

.nav-icon {
    font-size: 22px;
    color: var(--text-dark);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-icon:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Mobile Navigation ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
        padding: 20px;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .navbar-collapse.collapsing {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-link {
        padding: 15px 10px !important;
        font-size: 16px;
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        padding-right: 20px;
        background: var(--bg-light);
    }
    
    .mobile-account-section {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .mobile-account-title {
        font-weight: 700;
        color: var(--primary-color);
        padding: 10px;
        font-size: 14px;
        text-transform: uppercase;
    }
    
    .mobile-account-section .nav-link {
        padding: 12px 10px !important;
        font-size: 15px;
    }
    
    .mobile-account-section .nav-link i {
        color: var(--primary-color);
    }
    
    /* Overlay for mobile menu */
    .navbar-collapse.show ~ .mobile-menu-overlay,
    .mobile-menu-overlay.show {
        display: block;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

/* ===== Search Bar ===== */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-wrapper {
    position: relative;
}

.search-wrapper .form-control {
    padding: 15px 50px 15px 20px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    font-size: 16px;
}

.search-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(91, 33, 182, 0.1);
}

.btn-close-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
}

.search-results {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ===== Cart Drawer ===== */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1050;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1051;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-drawer-header h5 {
    margin: 0;
    font-weight: 700;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.02);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.cart-item-title:hover {
    color: var(--primary-color);
}

.cart-item-variant {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.btn-remove-item {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-item:hover {
    background: #fee2e2;
    color: #dc2626;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cart-item-price {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-item-price .price-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
}

.cart-item-price .price-unit {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    overflow: hidden;
}

.quantity-control button {
    width: 34px;
    height: 34px;
    border: none;
    background: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.quantity-control button:hover {
    background: var(--primary-color);
    color: #fff;
}

.quantity-control input {
    width: 44px;
    height: 34px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
}

/* ===== Free Shipping Banner - Enhanced ===== */
.free-shipping-banner {
    background: #F7F5FC;
    border: 2px solid #ffe0e8;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.free-shipping-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.free-shipping-banner.complete {
    background: #E8F5E9;
    border-color: #a5d6a7;
}

.free-shipping-banner.complete::before {
    background: #43A047;
}

.free-shipping-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(91, 33, 182, 0.3);
}

.free-shipping-banner.complete .free-shipping-icon {
    background: #43A047;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: iconPulse 1s ease-in-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.free-shipping-icon i {
    font-size: 22px;
    color: #fff;
}

.free-shipping-icon .checkmark {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.free-shipping-icon .checkmark i {
    font-size: 14px;
    color: #4caf50;
}

.free-shipping-content {
    flex: 1;
    min-width: 0;
}

.free-shipping-info,
.free-shipping-success {
    margin-bottom: 10px;
}

.free-shipping-info .remaining-text {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.free-shipping-info .remaining-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.free-shipping-info .threshold-text {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.free-shipping-success .success-text {
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
}

.free-shipping-progress-bar {
    margin-top: 8px;
}

.progress-track {
    height: 10px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    position: relative;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 10px;
}

.progress-fill.complete {
    background: #43A047;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: rgba(255,255,255,0.25);
    animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(0); }
}

.progress-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.progress-markers .marker {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Old free-shipping-progress - kept for compatibility */
.free-shipping-progress {
    background: #F7F5FC;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.free-shipping-progress.achieved {
    background: #D4EDDA;
    border-color: #28a745;
}

.free-shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.free-shipping-text {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.free-shipping-amount {
    font-weight: 700;
    color: var(--primary-color);
}

.shipping-progress-bar {
    height: 12px;
    border-radius: 6px;
    background: var(--border-color);
    overflow: visible;
    position: relative;
}

.shipping-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.shipping-truck {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    font-size: 24px;
    animation: truckBounce 0.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes truckBounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-3px); }
}

.free-shipping-progress.achieved .shipping-truck {
    animation: truckCelebrate 0.6s ease-in-out;
}

@keyframes truckCelebrate {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.3); }
    100% { transform: translateY(-50%) scale(1); }
}

.free-shipping-message {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.free-shipping-message.success {
    color: #28a745;
    font-weight: 600;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient);
    transition: width 0.5s ease;
}

.cart-summary {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    background: #F7F5FC;
    border-radius: 0 0 12px 12px;
    margin-top: auto;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.cart-summary-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-summary-total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px dashed var(--border-color);
}

.cart-summary-total span {
    color: var(--text-dark) !important;
}

.cart-summary-total span:last-child {
    color: var(--primary-color) !important;
    font-size: 20px;
}

.cart-summary .btn-primary {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(91, 33, 182, 0.3);
    transition: all 0.3s ease;
}

.cart-summary .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.4);
}

/* Coupon Section Enhanced */
.coupon-section {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.coupon-section .input-group {
    border-radius: 10px;
    overflow: hidden;
}

.coupon-section .form-control {
    border: 2px solid var(--border-color);
    border-right: none;
    padding: 12px 15px;
    font-size: 14px;
}

.coupon-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.coupon-section .btn-outline-primary {
    border: 2px solid var(--primary-color);
    padding: 12px 20px;
    font-weight: 600;
}

.coupon-section .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== Wishlist & Stock Badges ===== */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.product-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.product-badge.discount-badge {
    background: var(--gradient-accent);
}

.product-badge.featured-badge {
    background: var(--primary-color);
}

.product-badge.out-of-stock-badge {
    background: #6c757d;
}

.product-badge.low-stock-badge {
    background: #ff9800;
    font-size: 11px;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 3;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.wishlist-btn i {
    font-size: 18px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.wishlist-btn:hover i,
.wishlist-btn.active i {
    color: var(--secondary-color);
}

.wishlist-btn.active i::before {
    content: "\f415";
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.out-of-stock-overlay span {
    background: #fff;
    color: #333;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
}

.product-card.out-of-stock .product-card-image img {
    filter: grayscale(50%);
}

.product-card.out-of-stock .product-price .current {
    color: #6c757d;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--gradient);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 600px;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(26, 0, 56, 0.66) 0%, rgba(26, 0, 56, 0.38) 55%, rgba(26, 0, 56, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    display: inline-block;
    width: fit-content;
    max-width: 560px;
    padding: 26px 28px;
    background: rgba(26, 0, 56, 0.20);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.14);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.25;
    text-shadow: 0 2px 14px rgba(0,0,0,.6);
}

.hero-content h4 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0,0,0,.7);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0,0,0,.65);
}

/* ===== Section Styles ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 4px;
    border-radius: 4px;
    background: var(--primary-color);
}

.section-title p {
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Product Card ===== */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.product-actions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.product-action-btn.primary {
    background: var(--gradient);
    color: #fff;
}

.product-action-btn.secondary {
    background: #fff;
    color: var(--text-dark);
}

.product-card-body {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price .current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.product-rating i {
    color: #ffc107;
    font-size: 14px;
}

.product-rating span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Category Card ===== */
.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 0, 56, 0.45);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.category-card-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

/* ===== Features ===== */
.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient);
    color: #fff;
    transform: scale(1.1);
}

.feature-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Footer ===== */
.footer-main {
    background: #EDE9FE;
    color: var(--text-dark);
    padding: 60px 0 30px;
    border-top: 1px solid #E0D8F8;
}

.footer-brand h4,
.footer-brand .brand-text,
.footer-main .navbar-brand .brand-text {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    background: none !important;
}

.footer-main,
.footer-main p,
.footer-main .text-muted,
.footer-bottom p {
    color: var(--text-muted) !important;
}

.footer-main a,
.footer-main a:hover {
    color: var(--text-dark) !important;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #4C4A6B !important;
    -webkit-text-fill-color: #4C4A6B !important;
    background: none !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.footer-links a::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-right: 8px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.footer-contact li:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-contact-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.footer-contact-link:hover { color: inherit; text-decoration: none; }

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(91, 33, 182, 0.12);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transform: translateY(-3px);
}

/* ===== Toast ===== */
.toast-custom {
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

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

.toast-custom.success {
    border-right: 4px solid #28a745;
}

.toast-custom.error {
    border-right: 4px solid #dc3545;
}

.toast-custom.info {
    border-right: 4px solid var(--primary-color);
}

.toast-custom.warning {
    border-right: 4px solid var(--accent-color);
}

.toast-custom i {
    font-size: 24px;
}

.toast-custom.success i {
    color: #28a745;
}

.toast-custom.error i {
    color: #dc3545;
}

.toast-custom.info i {
    color: var(--primary-color);
}

.toast-custom.warning i {
    color: var(--accent-color);
}

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-image {
    padding-top: 120%;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-slide {
        height: 450px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 350px;
        background-image: var(--hero-img-mobile, var(--hero-img));
    }
    
    .hero-slide::before {
        background: rgba(26, 0, 56, 0.48);
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
    
    .hero-content h4 {
        font-size: 16px;
    }
    
    .hero-content {
        padding: 12px 16px;
        border-radius: 14px;
        background: rgba(26, 0, 56, 0.16);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        border: none;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .cart-drawer {
        width: 100%;
    }
}

/* ===== Product Details Page ===== */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 15px;
}

.product-main-image img {
    width: 100%;
    cursor: zoom-in;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-thumbnail.active,
.product-thumbnail:hover {
    border-color: var(--primary-color);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-info .price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-info .current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.product-info .old-price {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-info .discount-badge {
    background: var(--gradient-accent);
    color: #fff;
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.variant-selector {
    margin-bottom: 25px;
}

.variant-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.color-option.active {
    border-color: var(--text-dark);
}

.color-option::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.color-option.active::after {
    opacity: 1;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 50px;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.size-option:hover,
.size-option.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.add-to-cart-section {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.add-to-cart-section .quantity-control {
    border: 2px solid var(--border-color);
    height: 48px;
    align-self: center;
    flex-shrink: 0;
}

.add-to-cart-section .quantity-control button {
    width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.add-to-cart-section .quantity-control input {
    width: 60px;
    height: 100%;
    font-size: 16px;
}

.btn-add-to-cart {
    flex: 1;
    padding: 15px 30px;
    font-size: 16px;
}

@media (max-width: 767.98px) {
    .add-to-cart-section { flex-wrap: wrap; gap: 10px; }
    .add-to-cart-section .wishlist-btn-static { margin-inline-start: auto; }
    .add-to-cart-section .btn-add-to-cart { order: 4; flex: 1 1 100%; }
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wishlist:hover,
.btn-wishlist.active {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* ===== Checkout Page ===== */
.checkout-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(91, 33, 182, 0.1);
}

.order-summary {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.order-summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.order-totals {
    margin-top: 20px;
}

.order-totals .row {
    padding: 10px 0;
}

.order-totals .total-row {
    font-size: 20px;
    font-weight: 700;
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 10px;
}

/* ===== Auth Pages ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-light);
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.auth-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ===== Filter Sidebar ===== */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--gradient);
    border-radius: 2px;
}

.filter-section .form-check {
    padding: 8px 12px;
    margin: 0 -12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.filter-section .form-check:hover {
    background: var(--bg-light);
}

.filter-section .form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-section .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-section .form-check-input {
    cursor: pointer;
}

.filter-section .form-check-label {
    cursor: pointer;
    width: 100%;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.price-range input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gradient);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.active-filter-tag .remove-filter {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.active-filter-tag .remove-filter:hover {
    opacity: 1;
}

/* ===== Pagination ===== */
.pagination {
    justify-content: center;
    gap: 5px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm) !important;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

/* ===== Enhanced Hero Carousel ===== */
.carousel-fade .carousel-item {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    transform: scale(1);
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
    transform: scale(1.05);
}

/* Carousel Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
    z-index: 10;
}

.carousel-progress-bar {
    height: 100%;
    background: var(--gradient);
    width: 0;
    animation: progressBar 4s linear infinite;
}

@keyframes progressBar {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Carousel Indicators Enhancement */
#heroCarousel .carousel-indicators {
    bottom: 25px;
    gap: 8px;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    opacity: 1;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators button.active {
    background: #fff;
    transform: scale(1.2);
}

/* Carousel Controls Enhancement */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

#heroCarousel .carousel-control-prev {
    right: auto;
    left: 30px;
}

#heroCarousel .carousel-control-next {
    left: auto;
    right: 30px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(255,255,255,0.4);
}

/* Slide Content Animations - Laser Write */
.animate-slide .animate-title {
    position: relative;
    opacity: 1;
    clip-path: inset(0 0 0 100%);
    animation: laserReveal 1.6s cubic-bezier(.55,0,.25,1) forwards;
    animation-delay: 0.35s;
}

.animate-slide .animate-title::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 100%;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #fff, #C4B5FD 50%, #fff);
    box-shadow: 0 0 14px 3px rgba(196, 181, 253, 0.95),
                0 0 34px 9px rgba(139, 92, 246, 0.65);
    animation: laserBeam 1.6s cubic-bezier(.55,0,.25,1) forwards;
    animation-delay: 0.35s;
    z-index: 2;
}

@keyframes laserReveal {
    to { clip-path: inset(0 0 0 0); }
}

@keyframes laserBeam {
    0%   { left: 100%; opacity: 0; }
    10%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { left: 0%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .animate-slide .animate-title {
        clip-path: none;
        animation: none;
    }
    .animate-slide .animate-title::before {
        animation: none;
        opacity: 0;
    }
}

.animate-slide .animate-subtitle {
    opacity: 0;
    transform: translateX(50px);
    animation: slideFromRight 0.7s ease forwards;
    animation-delay: 0.5s;
}

.animate-slide .animate-description {
    opacity: 0;
    transform: translateX(50px);
    animation: slideFromRight 0.7s ease forwards;
    animation-delay: 0.7s;
}

.animate-slide .animate-btn {
    opacity: 0;
    transform: translateX(50px);
    animation: slideFromRight 0.7s ease forwards;
    animation-delay: 0.9s;
}

@keyframes slideFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reset animations on slide change */
.carousel-item:not(.active) .animate-title {
    clip-path: inset(0 0 0 100%);
    animation: none;
}

.carousel-item:not(.active) .animate-subtitle,
.carousel-item:not(.active) .animate-description,
.carousel-item:not(.active) .animate-btn {
    opacity: 0;
    transform: translateX(50px);
    animation: none;
}

/* ===== Cart Shake Animation ===== */
.cart-icon-shake.cart-bump {
    animation: cartShake 0.5s ease-in-out 1;
}

@keyframes cartShake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

.cart-icon-shake:hover {
    animation: none;
    transform: scale(1.1);
}

/* Touch/Swipe friendly on mobile */
@media (max-width: 768px) {
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        opacity: 0.7;
    }
    
    #heroCarousel .carousel-control-prev {
        left: 10px;
    }
    
    #heroCarousel .carousel-control-next {
        right: 10px;
    }
    
    #heroCarousel .carousel-indicators {
        bottom: 15px;
    }
}

/* ===== Smart Coupon Popup ===== */
.coupon-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.coupon-popup-overlay.show {
    display: flex;
}

.coupon-popup {
    background: #fff;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

@keyframes popupSlideIn {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.coupon-popup-header {
    background: var(--gradient);
    padding: 30px;
    text-align: center;
    color: #fff;
    position: relative;
}

.coupon-popup-header::after {
    content: '🎁';
    font-size: 60px;
    display: block;
    margin-top: 10px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.coupon-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.coupon-popup-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.coupon-popup-body {
    padding: 30px;
    text-align: center;
}

.coupon-popup-code {
    background: var(--bg-light);
    border: 2px dashed var(--primary-color);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.coupon-popup-code:hover {
    background: var(--primary-color);
    color: #fff;
}

.coupon-popup-code.copied {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* ===== Subtle Animations ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}

.product-card {
    animation: slideUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* ===== Product Badges ===== */
.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.badge-discount {
    background: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.badge-limited {
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-stock {
    background: #E0A800;
    color: #000;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-stock.low {
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Out of Stock Overlay */
.product-card.out-of-stock .product-card-image::after {
    content: 'نفدت الكمية';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.product-card.out-of-stock .btn-add-cart {
    pointer-events: none;
    opacity: 0.5;
}

/* ===== Header Scroll Behavior ===== */
.header-main {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-main.header-hidden {
    transform: translateY(-100%);
}

.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 5px 25px rgba(91, 33, 182, 0.4);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-cart.show {
    opacity: 1;
    transform: scale(1);
}

.floating-cart:hover {
    transform: scale(1.1);
}

.floating-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Mobile Header ===== */
@media (max-width: 991px) {
    .header-main .navbar-brand {
        font-size: 18px;
    }
    
    .header-main .header-actions .btn {
        padding: 8px;
    }
    
    .header-main .header-actions .btn i {
        font-size: 18px;
    }
    
    .header-main.header-scrolled {
        padding: 8px 0;
    }
    
    .header-main.header-scrolled .navbar-brand img {
        height: 30px;
    }
}

@media (max-width: 576px) {
    .header-main .container {
        padding: 0 10px;
    }
    
    .header-main .header-actions {
        gap: 5px;
    }
    
    .header-main .header-actions .btn {
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .floating-cart {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
        font-size: 20px;
    }
}

/* ===== Burgundy Theme Enforcement - Global Overrides ===== */

/* Links - All links must be burgundy */
a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.text-white):not(.footer-contact-link) {
    color: var(--primary-color) !important;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.text-white):not(.footer-contact-link):hover {
    color: var(--primary-dark) !important;
}

/* Buttons */
.btn-primary {
    background: var(--gradient) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: var(--shadow-primary) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

/* Borders */
.border-primary {
    border-color: var(--primary-color) !important;
}

/* Backgrounds */
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-link:hover {
    color: var(--primary-dark);
    background-color: rgba(91, 33, 182, 0.1);
}

/* Breadcrumbs */
.breadcrumb-item a {
    color: var(--primary-color) !important;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Tabs */
.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Accordions */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(91, 33, 182, 0.05);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(91, 33, 182, 0.25);
}

/* Progress Bars */
.progress-bar {
    background-color: var(--primary-color);
}

/* Alerts - Primary */
.alert-primary {
    background-color: rgba(91, 33, 182, 0.1);
    border-color: rgba(91, 33, 182, 0.2);
    color: var(--primary-dark);
}

/* Badges */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Form Controls Focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(91, 33, 182, 0.25);
}

/* Checkboxes & Radios */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(91, 33, 182, 0.25);
}

/* Spinners */
.spinner-border.text-primary {
    color: var(--primary-color) !important;
}

/* Cards with Primary Border */
.card.border-primary {
    border-color: var(--primary-color) !important;
}

/* List Groups */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Dropdowns */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(91, 33, 182, 0.1);
    color: var(--primary-color);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-main .social-links a {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
}

.footer-main .social-links a:hover {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Footer Links - Light Theme */
.footer-main a,
.footer-main .footer-links a,
.footer-links a,
.footer-main .footer-links li a,
footer a,
footer .footer-links a {
    color: #4C4A6B !important;
    -webkit-text-fill-color: #4C4A6B !important;
}

.footer-main a:hover,
.footer-main .footer-links a:hover,
.footer-links a:hover,
footer a:hover {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
}

/* Icons */
.bi.text-primary,
i.text-primary {
    color: var(--primary-color) !important;
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================================
   ===== Maknoon UX/UI Enhancements =====
   ============================================================ */

/* --- Page structure --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* --- Accessibility: focus & touch targets --- */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-icon,
.navbar-toggler,
.wishlist-btn,
.btn-close-search,
.quantity-control button {
    min-width: 44px;
    min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Buttons polish --- */
.btn {
    --bs-btn-border-radius: 10px;
    --bs-btn-font-weight: 600;
}

.btn-lg {
    --bs-btn-border-radius: 12px;
}

/* --- Header scroll state --- */
.header-main .navbar {
    transition: padding 0.3s ease;
}

.header-main .header-logo {
    height: 38px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: height 0.3s ease;
}

@media (max-width: 991px) {
    .header-main .header-logo {
        height: 32px;
        max-width: 110px;
    }
}

.header-main.header-scrolled {
    box-shadow: var(--shadow-md);
}

.header-main.header-scrolled .navbar {
    padding: 8px 0;
}

.header-main.header-scrolled .header-logo {
    height: 30px !important;
}

/* --- Navbar toggler --- */
.navbar-toggler {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 18px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* --- Dropdowns --- */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 9px 14px;
}

/* --- Product title links stay dark --- */
.product-title a,
.wishlist-item-title,
.cart-item-title {
    color: var(--text-dark) !important;
}

.product-title a:hover,
.wishlist-item-title:hover,
.cart-item-title:hover {
    color: var(--primary-color) !important;
}

/* --- Product card refinements --- */
.product-card {
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-price .current,
.product-info .current-price {
    font-variant-numeric: tabular-nums;
}

@media (hover: none) {
    .product-card:hover {
        transform: none;
    }
}

@media (hover: none) and (min-width: 768px) {
    .product-actions {
        opacity: 1;
        transform: none;
    }
}

/* --- Section header with "view all" link --- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.section-head .sub {
    color: var(--text-muted);
    font-size: 14px;
    margin: 4px 0 0;
}

.section-head .more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    padding: 6px 0;
}

.section-head .more-link i {
    transition: transform 0.2s ease;
}

.section-head .more-link:hover i {
    transform: translateX(-4px);
}

/* --- Category tiles --- */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.cat-tile {
    display: block;
    text-align: center;
}

.cat-tile-img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cat-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cat-tile:hover .cat-tile-img {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.cat-tile:hover .cat-tile-img img {
    transform: scale(1.07);
}

.cat-tile-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

/* --- Free shipping banner tint --- */
.free-shipping-banner {
    background: #F7F5FC;
    border-color: #DDD6FE;
}

.free-shipping-progress {
    background: #F7F5FC;
}

/* --- Quantity control disabled state --- */
.quantity-control button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-control button:disabled:hover {
    background: #fff;
    color: var(--text-dark);
}

/* --- Breadcrumb scroll on small screens --- */
.breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb::-webkit-scrollbar {
    display: none;
}

/* --- Skeletons --- */
.cart-skeleton-item {
    display: flex;
    gap: 15px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.cart-skeleton-item .sk-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.cart-skeleton-item .sk-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-skeleton-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
}

.search-skeleton-item .sk-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* --- Newsletter --- */
.newsletter-section {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

/* ===== Mobile Bottom Navigation ===== */
.bottom-nav {
    display: none;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
    border: none;
    background: none;
    padding: 6px 4px;
    min-height: 44px;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 21px;
    line-height: 1;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--gradient);
}

.bottom-nav-item .cart-count {
    top: 3px;
    left: 50%;
    margin-left: 6px;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
        box-shadow: 0 -4px 24px rgba(30, 27, 75, 0.12);
        z-index: 1040;
    }

    .floating-cart {
        display: none !important;
    }

    .toast-container {
        bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px) !important;
    }

    body.hide-bottom-nav {
        padding-bottom: 0;
    }

    body.hide-bottom-nav .bottom-nav {
        display: none;
    }
}

/* ===== Sticky Buy Bar (product page, mobile) ===== */
.sticky-buy-bar {
    display: none;
}

@media (max-width: 991.98px) {
    .sticky-buy-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        background: #fff;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(30, 27, 75, 0.14);
        z-index: 1039;
    }

    .sticky-buy-bar .sticky-price {
        font-weight: 800;
        color: var(--primary-color);
        font-size: 17px;
        white-space: nowrap;
    }

    .sticky-buy-bar .btn {
        flex: 1;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .sticky-buy-bar .btn-wishlist {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }
}

/* ===== Filters offcanvas (mobile) ===== */
@media (max-width: 991.98px) {
    .offcanvas-lg.offcanvas-start {
        width: min(88vw, 360px);
    }

    .offcanvas-lg .filter-sidebar {
        position: static;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
}

.filters-toolbar {
    display: none;
}

@media (max-width: 991.98px) {
    .filters-toolbar {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .filters-toolbar .btn-filters {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 2px solid var(--border-color);
        background: #fff;
        border-radius: 10px;
        padding: 8px 16px;
        font-weight: 600;
        font-size: 14px;
        color: var(--text-dark);
        min-height: 44px;
    }

    .filters-toolbar .btn-filters:active {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
}

/* ===== Mobile product cards ===== */
@media (max-width: 767.98px) {
    .section {
        padding: 40px 0;
    }

    .section-head {
        margin-bottom: 18px;
    }

    .section-head h2 {
        font-size: 19px;
    }

    .section-head .sub {
        font-size: 12px;
    }

    .section-head .more-link {
        font-size: 13px;
    }

    .cats-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding: 4px 2px 14px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -15px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .cats-grid::-webkit-scrollbar {
        display: none;
    }

    .cat-tile {
        min-width: 64%;
        max-width: 64%;
        scroll-snap-align: start;
    }

    .cat-tile-img {
        aspect-ratio: 4 / 3.2;
    }

    .cat-tile-name {
        font-size: 15px;
    }

    .product-card-body {
        padding: 10px 12px 12px;
    }

    .product-title {
        font-size: 13px;
        margin: 4px 0 6px;
    }

    .product-category {
        font-size: 10px;
    }

    .product-price .current {
        font-size: 15px;
    }

    .product-price .old {
        font-size: 11px;
    }

    .product-rating {
        margin-top: 6px;
    }

    .product-rating i {
        font-size: 11px;
    }

    .product-rating span {
        font-size: 11px;
    }

    .product-badges {
        top: 8px;
        right: 8px;
        gap: 4px;
    }

    .product-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .badge-discount,
    .badge-stock {
        font-size: 10px;
        padding: 3px 8px;
    }

    .wishlist-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        top: 8px;
        left: 8px;
    }

    .wishlist-btn i {
        font-size: 15px;
    }

    .product-actions {
        bottom: 8px;
        left: 8px;
        right: 8px;
        opacity: 1;
        transform: none;
    }

    .product-action-btn {
        padding: 8px 6px;
        font-size: 12px;
        border-radius: 8px;
    }

    .announcement-bar {
        font-size: 12px;
        padding: 7px 0;
    }

    .search-wrapper .form-control {
        padding: 12px 45px 12px 15px;
        font-size: 15px;
    }

    .cart-drawer {
        width: 100%;
    }

    .footer-main {
        padding: 40px 0 20px;
    }

    .checkout-section {
        padding: 20px;
    }
}

/* ===== Tablet ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Animated Offers nav link ===== */
.nav-link-offers {
    position: relative;
}

.offers-text {
    color: var(--text-dark);
    animation: offersGlow 2.2s ease-in-out infinite;
}

.nav-link-offers::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: #e53935;
    opacity: 0;
    transform: scaleX(0.4);
    transition: var(--transition);
}

.nav-link-offers:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


@keyframes offersGlow {
    0%, 100% {
        color: var(--text-dark);
        text-shadow: none;
    }
    50% {
        color: #e53935;
        text-shadow: 0 0 10px rgba(229, 57, 53, 0.55), 0 0 18px rgba(229, 57, 53, 0.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .offers-text {
        animation: none;
        color: var(--text-dark);
        text-shadow: none;
    }
}

/* ===== 3D Interactive Buttons ===== */
.btn {
    position: relative;
    transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s ease, background-color .2s, color .2s, border-color .2s !important;
    will-change: transform;
}

.btn-primary,
.btn-add-to-cart,
.cart-summary .btn-primary {
    background: var(--primary-color) !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.35) !important;
    color: #fff !important;
    box-shadow: 0 4px 0 var(--primary-dark), 0 10px 20px rgba(91,33,182,.28);
}
.btn-primary:hover,
.btn-add-to-cart:hover,
.cart-summary .btn-primary:hover {
    background: var(--primary-light) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--primary-dark), 0 14px 26px rgba(91,33,182,.34);
}
.btn-primary:active,
.btn-add-to-cart:active,
.cart-summary .btn-primary:active {
    background: var(--primary-dark) !important;
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--primary-dark), 0 4px 10px rgba(91,33,182,.22);
}
.btn-primary:focus-visible {
    box-shadow: 0 4px 0 var(--primary-dark), 0 0 0 4px rgba(91,33,182,.3);
}

.btn-secondary {
    background: var(--secondary-color) !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.35) !important;
    color: #fff !important;
    box-shadow: 0 4px 0 var(--accent-dark), 0 10px 20px rgba(139,92,246,.28);
}
.btn-secondary:hover {
    background: #9D74EE !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--accent-dark), 0 14px 26px rgba(139,92,246,.34);
}
.btn-secondary:active {
    background: var(--accent-dark) !important;
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--accent-dark), 0 4px 10px rgba(139,92,246,.2);
}

.btn-success {
    background: #25D366 !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.35) !important;
    color: #fff !important;
    box-shadow: 0 4px 0 #128C7E, 0 10px 20px rgba(37,211,102,.28);
}
.btn-success:hover {
    background: #3BDB74 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #128C7E, 0 14px 26px rgba(37,211,102,.34);
}
.btn-success:active {
    background: #128C7E !important;
    transform: translateY(3px);
    box-shadow: 0 1px 0 #0F6E63, 0 4px 10px rgba(37,211,102,.2);
}

.btn-danger {
    background: #E03131 !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.35) !important;
    color: #fff !important;
    box-shadow: 0 4px 0 #B02525, 0 10px 20px rgba(224,49,49,.26);
}
.btn-danger:hover {
    background: #EE4B4B !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #B02525, 0 14px 26px rgba(224,49,49,.32);
}
.btn-danger:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #B02525, 0 4px 10px rgba(224,49,49,.2);
}

.btn-light {
    background: #fff !important;
    color: var(--primary-color) !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.6) !important;
    box-shadow: 0 4px 0 #D9D3EE, 0 10px 20px rgba(30,27,75,.15);
}
.btn-light:hover {
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #CBC3E8, 0 14px 26px rgba(30,27,75,.2);
}
.btn-light:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #D9D3EE, 0 4px 10px rgba(30,27,75,.12);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: #fff;
    box-shadow: 0 3px 0 rgba(91,33,182,.35);
}
.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--primary-dark), 0 10px 18px rgba(91,33,182,.25);
}
.btn-outline-primary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--primary-dark);
}

.btn-outline-secondary {
    border: 2px solid var(--border-color) !important;
    color: var(--text-dark) !important;
    background: #fff;
    box-shadow: 0 3px 0 #D9D3EE;
}
.btn-outline-secondary:hover {
    background: #fff !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(91,33,182,.3);
}
.btn-outline-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #D9D3EE;
}

.btn-outline-danger {
    border: 2px solid #E03131 !important;
    color: #E03131 !important;
    background: #fff;
    box-shadow: 0 3px 0 rgba(224,49,49,.3);
}
.btn-outline-danger:hover {
    background: #E03131 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #B02525;
}
.btn-outline-danger:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #B02525;
}

/* Icon / utility buttons get a softer press */
.btn-wishlist,
.wishlist-btn,
.btn-filters,
.product-action-btn {
    transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s ease, background-color .2s, color .2s, border-color .2s !important;
}
.btn-wishlist:hover,
.wishlist-btn:hover,
.btn-filters:hover,
.product-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(30,27,75,.14);
}
.btn-wishlist:active,
.wishlist-btn:active,
.btn-filters:active,
.product-action-btn:active {
    transform: translateY(1px) scale(.97);
    box-shadow: 0 2px 5px rgba(30,27,75,.12);
}

/* WhatsApp & inline colored buttons */
a.btn[style*="#25D366"], button.btn[style*="#25D366"] {
    box-shadow: 0 3px 0 #128C7E, 0 8px 16px rgba(37,211,102,.3) !important;
}
a.btn[style*="#25D366"]:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #128C7E, 0 12px 22px rgba(37,211,102,.36) !important; }
a.btn[style*="#25D366"]:active { transform: translateY(2px); box-shadow: 0 1px 0 #128C7E !important; }

/* Disabled state keeps flat look */
.btn:disabled, .btn.disabled {
    transform: none !important;
    box-shadow: none !important;
    opacity: .65;
}

/* ===== Cart Drawer Redesign ===== */
.cart-drawer-overlay {
    background: rgba(26,0,56,.45);
    backdrop-filter: blur(3px);
}

.cart-drawer {
    width: 420px;
    border-radius: 20px 0 0 20px;
    box-shadow: -25px 0 60px rgba(30,27,75,.22);
}

.cart-drawer-header {
    padding: 16px 20px;
    background: #F7F5FC;
    border-bottom: 1px solid #E0D8F8;
    border-radius: 0;
}

.cart-drawer-header h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    margin: 0;
}

.cart-drawer-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 3px 0 var(--primary-dark), 0 8px 14px rgba(91,33,182,.3);
}

.cart-drawer-count {
    background: var(--secondary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 var(--accent-dark);
}

.cart-drawer-header .btn-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: #fff;
    background-size: 14px;
    border: 1px solid #E0D8F8;
    opacity: 1;
    transition: transform .2s ease, background-color .2s;
}
.cart-drawer-header .btn-close:hover {
    transform: rotate(90deg);
    background-color: #EDE9FE;
}

.cart-drawer-body {
    padding: 16px;
    background: #fff;
}

/* Cart item cards */
.cart-item {
    border-radius: 14px;
    border: 1px solid #EDE9FE;
    box-shadow: 0 2px 10px rgba(30,27,75,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91,33,182,.1);
    border-color: rgba(91,33,182,.3);
}

.cart-item-image {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    border: 1px solid #EDE9FE;
}

.cart-item-variant {
    background: #F7F5FC;
    border: 1px solid #EDE9FE;
    color: var(--text-muted);
    border-radius: 8px;
}

.btn-remove-item {
    border: 1px solid transparent;
    transition: all .2s ease;
}
.btn-remove-item:hover {
    background: #FEECEC;
    color: #E03131;
    border-color: #F6C9C9;
    transform: scale(1.1);
}
.btn-remove-item:active {
    transform: scale(.92);
}

/* Quantity pill */
.quantity-control {
    border-radius: 12px;
    border: 1.5px solid #E0D8F8;
    background: #fff;
    box-shadow: 0 2px 0 #EDE9FE;
}
.quantity-control button {
    width: 34px;
    height: 34px;
    color: var(--primary-color);
    border-radius: 0;
}
.quantity-control button:hover {
    background: var(--primary-color);
    color: #fff;
}
.quantity-control button:active {
    transform: translateY(1px);
}
.quantity-control button:disabled {
    color: #C9C2E4;
    background: #fff;
}
.quantity-control input {
    border-left: 1px solid #EDE9FE;
    border-right: 1px solid #EDE9FE;
    color: var(--text-dark);
    font-weight: 700;
}

/* Coupon */
.coupon-section {
    border-radius: 14px;
    border: 1.5px dashed #C9BFF5;
    background: #FBFAFE;
}
.coupon-section .form-control {
    border: 2px solid #EDE9FE;
    background: #fff;
}
.coupon-section .form-control:focus {
    border-color: var(--primary-color);
}

/* Sticky summary footer */
.cart-summary {
    position: sticky;
    bottom: -16px;
    margin: 10px -16px -16px;
    padding: 16px 18px 18px;
    background: #F7F5FC;
    border-top: 1px solid #E0D8F8;
    border-radius: 0;
    box-shadow: 0 -8px 20px rgba(30,27,75,.06);
}

.cart-summary-total span:last-child {
    font-size: 22px;
}

.btn-checkout {
    font-size: 16px;
    letter-spacing: .2px;
}

.cart-continue {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 6px;
    cursor: pointer;
    transition: color .2s;
}
.cart-continue:hover {
    color: var(--primary-color);
}

/* Empty state */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}
.cart-empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #F7F5FC;
    border: 2px solid #EDE9FE;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #EDE9FE;
}
.cart-empty-icon i {
    font-size: 42px;
    color: #C9BFF5;
}
.cart-empty h6 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}
.cart-empty p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Floating cart 3D */
.floating-cart {
    background: var(--primary-color);
    box-shadow: 0 5px 0 var(--primary-dark), 0 14px 30px rgba(91,33,182,.4);
}
.floating-cart.show:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 7px 0 var(--primary-dark), 0 18px 34px rgba(91,33,182,.45);
}
.floating-cart.show:active {
    transform: translateY(2px) scale(.96);
    box-shadow: 0 2px 0 var(--primary-dark), 0 6px 14px rgba(91,33,182,.3);
}

@media (max-width: 480px) {
    .cart-drawer { border-radius: 0; }
}

/* ===== Typography System — Cairo ===== */
html { font-family: var(--font-main); }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-main);
    line-height: 1.35;
    color: var(--text-dark);
}
h1, .h1 { font-size: var(--fs-h1); font-weight: var(--fw-head); }
h2, .h2 { font-size: var(--fs-h2); font-weight: var(--fw-head); }
h3, .h3 { font-size: var(--fs-h3); font-weight: var(--fw-ui); }
h4, .h4 { font-size: 20px; font-weight: var(--fw-ui); }
h5, .h5 { font-size: 17px; font-weight: var(--fw-ui); }
h6, .h6 { font-size: 15px; font-weight: var(--fw-ui); }

.hero-content h1 { font-weight: var(--fw-hero); }
.section-title h2 { font-size: var(--fs-h2); font-weight: var(--fw-head); }

/* Body / descriptions / small text */
p, li, td, th, label, .form-label, .form-text, small, .small {
    font-family: var(--font-main);
}
p { font-weight: var(--fw-body); }
small, .small { font-size: var(--fs-tiny); font-weight: var(--fw-body); }
.lead, .product-description, .hero-content p { font-weight: var(--fw-medium); }

/* Interactive elements — SemiBold */
.btn, button, .nav-link, .dropdown-item, .product-action-btn,
.btn-wishlist, .wishlist-btn, .btn-filters, .cart-continue,
.pagination .page-link, .badge {
    font-family: var(--font-main);
    font-weight: var(--fw-ui);
}
.btn { font-size: var(--fs-btn); }

/* Prices & important numbers — Bold Cairo */
.product-price .current, .product-info .current-price,
.cart-item-price .price-total, .cart-summary-total span:last-child,
.sticky-price, .order-total, .price {
    font-family: var(--font-main);
    font-weight: var(--fw-head);
    font-variant-numeric: tabular-nums;
}
.product-price .old, .product-info .old-price {
    font-weight: var(--fw-medium);
}

/* Forms */
input, select, textarea, .form-control, .form-select {
    font-family: var(--font-main);
    font-weight: var(--fw-body);
    font-size: 15px;
}
input::placeholder, textarea::placeholder {
    font-weight: var(--fw-body);
}

/* Tables & misc */
.table { font-family: var(--font-main); }
.table th { font-weight: var(--fw-head); }
.table td { font-weight: var(--fw-body); }
code, pre { font-family: var(--font-main); }

/* Mobile type scale */
@media (max-width: 767.98px) {
    :root {
        --fs-h1: 30px;
        --fs-h2: 24px;
        --fs-h3: 20px;
        --fs-body: 15px;
        --fs-small: 13px;
        --fs-tiny: 12px;
        --fs-btn: 14px;
    }
    h1, .h1 { font-size: var(--fs-h1); }
    h2, .h2 { font-size: var(--fs-h2); }
    h3, .h3 { font-size: var(--fs-h3); }
    .hero-content h1 { font-size: 30px; }
    .section-title h2 { font-size: var(--fs-h2); }
}

/* ===== 3D Icon System (3dicons.co — CC0) ===== */
.icon3d {
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(30,27,75,.18));
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes icon3dPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.icon3d-pop { animation: icon3dPop .55s cubic-bezier(.34,1.56,.64,1); }

/* Category tiles — 3D icon under the (optional) photo */
.cat-tile-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-tile-img .cat-icon3d {
    width: 58%;
    height: 58%;
}
.cat-tile-img > img:not(.icon3d) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-tile:hover .cat-icon3d {
    transform: scale(1.14) rotate(-5deg);
}

/* Feature cards — 3D icon discs */
.feature-icon {
    background: #F7F5FC;
    border: 1.5px solid #EDE9FE;
    box-shadow: 0 4px 0 #EDE9FE, 0 10px 20px rgba(30,27,75,.07);
}
.feature-card:hover .feature-icon {
    background: #EDE9FE;
    transform: translateY(-4px);
    box-shadow: 0 6px 0 #DDD6FE, 0 16px 26px rgba(139,92,246,.16);
}
.feature-card:hover .feature-icon .icon3d {
    transform: scale(1.14);
}

/* About / contact discs */
.about-icon .icon3d,
.contact-icon .icon3d {
    filter: drop-shadow(0 4px 8px rgba(30,27,75,.16));
}

/* Checkout section titles */
.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-title-icon {
    width: 30px;
    height: 30px;
}

/* Free-shipping banner icon — light disc for the 3D asset */
.free-shipping-icon {
    background: #EDE9FE;
    box-shadow: 0 4px 0 #DDD6FE, 0 8px 16px rgba(139,92,246,.16);
}
.free-shipping-banner.complete .free-shipping-icon {
    background: #DCF3DF;
    box-shadow: 0 4px 0 #BCE3C2, 0 8px 16px rgba(67,160,71,.18);
}

/* Floating cart & drawer header */
.floating-cart .icon3d,
.cart-drawer-icon .icon3d {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.28));
}
.floating-cart:hover .icon3d {
    transform: scale(1.12) rotate(-5deg);
}

/* Category tiles — clean text fallback (no icons) */
.cat-tile-img .cat-tile-text {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary-color);
    padding: 12px;
    text-align: center;
    line-height: 1.4;
}
.cat-tile-img > img:not(.icon3d):not(.cat-tile-text) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-tile:hover .cat-tile-text {
    color: var(--primary-dark);
}

/* ===== Top Filter Bar ===== */
.top-filters {
    background: #fff;
    border: 1.5px solid #EDE9FE;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(30,27,75,.05);
    padding: 12px 16px;
    margin-bottom: 24px;
}

.tf-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tf-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #EDE9FE;
    scrollbar-width: thin;
}
.tf-categories::-webkit-scrollbar { height: 4px; }
.tf-categories::-webkit-scrollbar-thumb { background: #DDD6FE; border-radius: 4px; }

.tf-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.tf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 24px;
    border: 1.5px solid #E0D8F8;
    background: #FBFAFE;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    user-select: none;
}
.tf-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}
.tf-input:checked + .tf-chip {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 3px 0 var(--primary-dark), 0 8px 14px rgba(91,33,182,.25);
}
.tf-input:checked + .tf-chip .tf-count {
    background: rgba(255,255,255,.22);
    color: #fff;
}
.tf-input:focus-visible + .tf-chip {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.tf-count {
    background: #EDE9FE;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
}

.tf-controls {
    gap: 14px;
}

.tf-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tf-price input {
    width: 90px;
    padding: 8px 12px;
    border: 1.5px solid #E0D8F8;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    background: #FBFAFE;
    transition: border-color .2s;
}
.tf-price input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.tf-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tf-sep { color: #C9BFF5; font-weight: 700; }

.tf-toggles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tf-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}
.tf-sort .form-select {
    border: 1.5px solid #E0D8F8;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 34px 8px 12px;
    background-color: #FBFAFE;
    cursor: pointer;
}
.tf-sort .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.tf-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .2s, background .2s;
}
.tf-clear:hover {
    color: #E03131;
    background: #FEECEC;
}

/* Advanced collapsible group */
.tf-advanced {
    border-top: 1px dashed #EDE9FE;
    margin-top: 10px;
    padding-top: 10px;
}
.tf-advanced summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 0;
}
.tf-advanced summary::-webkit-details-marker { display: none; }
.tf-advanced[open] .tf-caret { transform: rotate(180deg); }
.tf-caret { transition: transform .2s; font-size: 11px; }

.tf-advanced-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
}
.tf-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tf-chips {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tf-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1.5px solid var(--primary-color, #5B21B6);
    border-radius: 12px;
    background: #fff;
    color: var(--primary-color, #5B21B6);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.tf-filters-toggle .tf-tg-caret { transition: transform .25s ease; }
.tf-filters-toggle.open .tf-tg-caret { transform: rotate(180deg); }

@media (max-width: 767.98px) {
    .filters-panel { display: none; }
    .filters-panel.open { display: block; }
    .top-filters { padding: 10px 12px; border-radius: 14px; }
    .tf-controls { gap: 10px; }
    .tf-sort { margin-inline-start: 0; width: 100%; }
    .tf-sort .form-select { flex: 1; }
    .tf-price input { width: 74px; }
    .tf-chip { padding: 7px 14px; font-size: 13px; }
}

/* ===== Infinite Services Marquee (Left → Right) ===== */
.features-section {
    padding: 45px 0;
    overflow: hidden;
}
.features-marquee {
    overflow: hidden;
    width: 100%;
}
.features-track {
    display: flex;
    width: max-content;
    animation: marqueeL2R 28s linear infinite;
    will-change: transform;
}
.features-group {
    display: flex;
    gap: 20px;
    padding: 0 10px;
    flex-shrink: 0;
}
.feature-card {
    width: 210px;
    flex-shrink: 0;
    padding: 22px 16px;
}
@keyframes marqueeL2R {
    from { transform: translateX(-33.333%); }
    to   { transform: translateX(0); }
}

@media (max-width: 767.98px) {
    .feature-card { width: 165px; padding: 18px 10px; }
    .features-group { gap: 12px; padding: 0 6px; }
    .feature-text { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .features-track { animation: none; }
}

/* ===== Empty Cart 3D Scene — character pushes cart R→L ===== */
.cart-scene {
    position: relative;
    height: 180px;
    overflow: hidden;
    margin-bottom: 8px;
}
.cart-scene-stage {
    position: absolute;
    inset: 0;
    transform-origin: bottom center;
}
.cart-actor {
    position: absolute;
    bottom: 22px;
    left: 50%;
    display: flex;
    align-items: flex-end;
    direction: ltr;
    transform: translateX(-50%);
    animation: actorEnter 3.2s cubic-bezier(.22,.8,.3,1) both;
}

@keyframes actorEnter {
    0%   { transform: translateX(calc(-50% + min(120vw, 560px))); }
    82%  { transform: translateX(calc(-50% - 6px)); }
    100% { transform: translateX(-50%); }
}

/* --- Shopping cart prop --- */
.cart-prop {
    position: relative;
    width: 96px;
    height: 90px;
    margin-inline-end: -4px;
}
.cart-prop-basket {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 84px;
    height: 52px;
    background: #8B5CF6;
    border-radius: 8px 8px 16px 16px;
    transform: skewX(-5deg);
    box-shadow: inset 0 9px 0 rgba(255,255,255,.3), inset -6px -9px 0 rgba(0,0,0,.12);
}
.cart-prop-basket::before,
.cart-prop-basket::after {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 10px;
    width: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,.35);
}
.cart-prop-basket::before { left: 22px; }
.cart-prop-basket::after { left: 44px; }
.cart-prop-handle {
    position: absolute;
    bottom: 76px;
    right: -6px;
    width: 30px;
    height: 9px;
    border-radius: 5px;
    background: #7C3AED;
    transform: rotate(-14deg);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.cart-prop-wheel {
    position: absolute;
    bottom: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1E1B33;
    box-shadow: inset -3px -3px 0 rgba(0,0,0,.3);
    animation: wheelSpin .42s linear 8;
}
.cart-prop-wheel::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #EDE9FE;
}
.cart-prop-wheel::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 14px; height: 3px;
    margin: -1.5px 0 0 -7px;
    border-radius: 2px;
    background: #8B5CF6;
}
.cart-prop-wheel.w1 { left: 12px; }
.cart-prop-wheel.w2 { left: 58px; }
@keyframes wheelSpin { to { transform: rotate(360deg); } }

/* --- Character --- */
.char-bob {
    animation: walkBob .45s ease-in-out 7;
}
@keyframes walkBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.char {
    position: relative;
    width: 62px;
    height: 118px;
    transform-origin: bottom center;
    animation: charPose 5.6s ease forwards;
}
@keyframes charPose {
    0%, 55%  { transform: rotate(-7deg); }
    62%      { transform: rotate(3deg); }
    70%, 100% { transform: rotate(0deg); }
}
.char-head {
    position: absolute;
    top: 0; left: 7px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #FFCF9E;
    box-shadow: inset -6px -6px 0 rgba(0,0,0,.08);
    z-index: 2;
    transform-origin: center;
    animation: headTurn 5.6s ease forwards;
}
@keyframes headTurn {
    0%, 55%  { transform: rotateY(38deg); }
    66%      { transform: rotateY(0deg); }
    100%     { transform: rotateY(0deg); }
}
.char-hair {
    position: absolute;
    top: -5px; left: -3px;
    width: 54px; height: 28px;
    border-radius: 26px 26px 10px 10px;
    background: #3B2E4F;
}
.char-face {
    position: absolute;
    top: 22px; left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 9px;
}
.char-eye {
    width: 6px; height: 9px;
    border-radius: 4px;
    background: #1E1B33;
}
.char-body {
    position: absolute;
    top: 44px; left: 9px;
    width: 44px; height: 56px;
    border-radius: 22px 22px 16px 16px;
    background: #2455D9;
    box-shadow: inset -6px -8px 0 rgba(0,0,0,.14), inset 5px 7px 0 rgba(255,255,255,.16);
}
.char-arm {
    position: absolute;
    top: 56px; left: -16px;
    width: 34px; height: 13px;
    border-radius: 8px;
    background: #2455D9;
    box-shadow: inset -4px -4px 0 rgba(0,0,0,.12);
    transform-origin: right center;
    transform: rotate(70deg);
    animation: armPush 5.6s ease forwards;
}
.char-arm::after {
    content: '';
    position: absolute;
    left: -3px; top: 1px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #FFCF9E;
}
@keyframes armPush {
    0%, 55%  { transform: rotate(-8deg); }
    62%      { transform: rotate(-115deg); }
    68%      { transform: rotate(-95deg); }
    74%      { transform: rotate(-115deg); }
    84%,100% { transform: rotate(70deg); }
}
.char-legs {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.char-legs .leg {
    width: 15px; height: 22px;
    border-radius: 8px;
    background: #1E1B33;
    transform-origin: top center;
}
.char-legs .l1 { animation: legStep .45s ease-in-out 7; }
.char-legs .l2 { animation: legStep .45s ease-in-out 7 .22s; }
@keyframes legStep {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

.scene-shadow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    height: 16px;
    border-radius: 50%;
    background: rgba(30,27,75,.13);
    z-index: -1;
}

/* Mobile scale */
@media (max-width: 480px) {
    .cart-scene { height: 150px; }
    .cart-scene-stage { transform: scale(.8); }
}
@media (max-width: 360px) {
    .cart-scene-stage { transform: scale(.7); }
}

/* Reduced motion: final pose, no animation */
@media (prefers-reduced-motion: reduce) {
    .cart-actor, .char-bob, .char, .char-head, .char-arm,
    .char-legs .leg, .cart-prop-wheel {
        animation: none !important;
    }
}

/* ===== Floating Cart — mini 3D character pushing cart ===== */
.fc-actor {
    position: relative;
    width: 54px;
    height: 46px;
    direction: ltr;
    animation: fcIdle 2.8s ease-in-out infinite;
}
@keyframes fcIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* mini cart */
.fc-cart {
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 32px;
    height: 20px;
}
.fc-basket {
    position: absolute;
    left: 0; bottom: 6px;
    width: 30px; height: 16px;
    background: #fff;
    border-radius: 3px 3px 6px 6px;
    transform: skewX(-6deg);
    box-shadow: inset 0 4px 0 rgba(139,92,246,.35), inset -3px -3px 0 rgba(30,27,75,.12);
}
.fc-handle {
    position: absolute;
    top: -4px; right: -7px;
    width: 12px; height: 4px;
    border-radius: 2px;
    background: #DDD6FE;
    transform: rotate(-16deg);
}
.fc-wheel {
    position: absolute;
    bottom: -3px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #1E1B33;
    animation: fcWheel 2.2s linear infinite;
}
.fc-wheel::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 6px; height: 2px;
    margin: -1px 0 0 -3px;
    border-radius: 2px;
    background: #EDE9FE;
}
.fc-wheel.w1 { left: 3px; }
.fc-wheel.w2 { left: 22px; }
@keyframes fcWheel { to { transform: rotate(360deg); } }

/* mini character */
.fc-char {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 22px;
    height: 40px;
    transform-origin: bottom center;
    transform: rotate(-6deg);
}
.fc-head {
    position: absolute;
    top: 0; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #FFCF9E;
    box-shadow: inset -3px -3px 0 rgba(0,0,0,.08);
}
.fc-hair {
    position: absolute;
    top: -2px; left: -1px;
    width: 20px; height: 10px;
    border-radius: 9px 9px 4px 4px;
    background: #3B2E4F;
}
.fc-face {
    position: absolute;
    top: 8px; left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.fc-eye {
    width: 2.5px; height: 4px;
    border-radius: 2px;
    background: #1E1B33;
}
.fc-body {
    position: absolute;
    top: 16px; left: 4px;
    width: 15px; height: 20px;
    border-radius: 8px 8px 6px 6px;
    background: #8B5CF6;
    box-shadow: inset -3px -4px 0 rgba(0,0,0,.14), inset 2px 3px 0 rgba(255,255,255,.2);
}
.fc-arm {
    position: absolute;
    top: 19px; left: -8px;
    width: 14px; height: 5px;
    border-radius: 3px;
    background: #8B5CF6;
    transform: rotate(-10deg);
    transform-origin: right center;
}
.fc-arm::after {
    content: '';
    position: absolute;
    left: -2px; top: 0;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #FFCF9E;
}

.floating-cart .cart-count { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
    .fc-actor, .fc-wheel { animation: none !important; }
}

/* Floating cart — classic glassmorphism */
.floating-cart {
    background: rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--primary-color);
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.floating-cart.show:hover {
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 30px rgba(91, 33, 182, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.floating-cart.show:active {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 14px rgba(30, 27, 75, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ===== Category Product Sections — horizontal carousels ===== */
.cat-products-section { padding: 45px 0; }

.cat-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.cat-section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    position: relative;
    padding-inline-start: 14px;
}
.cat-section-title::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.cat-products-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    overscroll-behavior-x: contain;
}
.cat-products-scroll::-webkit-scrollbar { display: none; }

.cat-product-item {
    flex: 0 0 235px;
    scroll-snap-align: start;
}
.cat-product-item .product-card { height: 100%; }

.cat-scroll-hint {
    display: none;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 10px;
}

@media (max-width: 767.98px) {
    .cat-product-item { flex: 0 0 42vw; }
    .cat-scroll-hint { display: block; }
    .cat-section-title { font-size: 19px; }
}
@media (max-width: 360px) {
    .cat-product-item { flex: 0 0 44vw; }
}

/* ===== Carousel Nav Buttons ===== */
.section-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.scroll-nav {
    display: flex;
    gap: 8px;
}
.scroll-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 0 #D9DCE8;
    transition: all .18s ease;
}
.scroll-nav-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
    box-shadow: 0 3px 0 var(--primary-dark), 0 8px 16px rgba(124,58,237,.3);
    transform: translateY(-2px);
}
.scroll-nav-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--primary-dark);
}

@media (max-width: 575.98px) {
    .scroll-nav-btn { width: 34px; height: 34px; font-size: 14px; }
    .section-actions { gap: 10px; }
}

/* ===== Back to Top Button — stacked above floating cart, glass style ===== */
.back-to-top {
    position: fixed;
    bottom: 92px;
    left: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    color: var(--primary-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: scale(0);
    transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.back-to-top.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.back-to-top:hover {
    transform: scale(1.1) translateY(-2px);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 30px rgba(91, 33, 182, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.back-to-top:active {
    transform: scale(1) translateY(2px);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 14px rgba(30, 27, 75, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 767.98px) {
    .back-to-top { bottom: 86px; left: 15px; width: 44px; height: 44px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-nav-btn, .back-to-top { transition: none; }
}

/* ===== Maknoon Global Loader ===== */
.mk-loader {
    position: fixed;
    inset: 0;
    background: #F7F5FC;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 1;
    transition: opacity .35s ease;
}
.mk-loader.hide { opacity: 0; pointer-events: none; }
.mk-loader-logo {
    height: 74px;
    animation: mkPulse 1.4s ease-in-out infinite;
    filter: drop-shadow(0 10px 24px rgba(91,33,182,.25));
}
@keyframes mkPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: .85; }
}
.mk-inline-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mk-inline-loader img {
    height: 28px;
    animation: mkPulse 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .mk-loader-logo, .mk-inline-loader img { animation: none; }
}

/* ===== Reviews ===== */
.review-item { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.review-item:last-child { border-bottom: none; }
.admin-reply {
    background: var(--bg-light);
    border-inline-start: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 12px;
}
.star-btn {
    background: none; border: none; font-size: 26px; color: #F59E0B;
    padding: 2px 6px; cursor: pointer; min-width: 44px; min-height: 44px;
}
.star-btn i { transition: transform .15s ease; }
.star-btn:hover i { transform: scale(1.2); }

/* ===== Visitor badge ===== */
.visitor-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto 30px;
    padding: 12px 22px;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    width: fit-content;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.visitor-badge i { color: var(--primary-color); font-size: 20px; }
.visitor-badge strong { color: var(--primary-color); }

/* ===== Mobile QA Fixes ===== */
/* kill page-level horizontal overflow (clip keeps position:sticky working) */
html, body { overflow-x: clip; }

/* Bootstrap g-5 gutters (-24px) exceed container padding on phones */
@media (max-width: 767.98px) {
    .row.g-5 { --bs-gutter-x: 1rem; --bs-gutter-y: 1.5rem; }

    /* prevent Safari auto-zoom on input focus */
    input, select, textarea, .form-control, .form-select { font-size: 16px; }
}

/* iOS Safari: dynamic viewport height for full-height drawers */
.cart-drawer { height: 100vh; height: 100dvh; }
@media (max-width: 991.98px) {
    .navbar-collapse { height: 100vh; height: 100dvh; }

    /* landscape safe-area side insets for fixed bars */
    .bottom-nav, .sticky-buy-bar {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
}

/* ===== Discount Timer ===== */
.discount-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: 14px;
    padding: 10px 14px;
    animation: dtGlow 2.4s ease-in-out infinite;
    transition: opacity .5s ease, transform .5s ease;
}
.discount-timer.dt-expired {
    opacity: 0;
    transform: translateY(-6px);
}
.dt-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #EF4444;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, .35);
}
.dt-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: #B91C1C;
}
.dt-digits {
    direction: ltr;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #EF4444;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(239, 68, 68, .25);
}

/* Details page */
.discount-timer-details {
    margin: 12px 0 4px;
    flex-wrap: wrap;
}
.discount-timer-details .dt-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.discount-timer-details .dt-digits {
    font-size: 24px;
    line-height: 1.1;
}

/* Product card (compact, no layout shift) */
.discount-timer-card {
    margin-top: 8px;
    padding: 6px 8px;
    gap: 6px;
    border-radius: 10px;
    flex-wrap: wrap;
}
.discount-timer-card .dt-badge {
    font-size: 10px;
    padding: 3px 8px;
}
.discount-timer-card .dt-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #B91C1C;
}
.discount-timer-card .dt-digits {
    font-size: 13px;
    letter-spacing: .5px;
}

@keyframes dtGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 16px rgba(239, 68, 68, .18); }
}

@media (prefers-reduced-motion: reduce) {
    .discount-timer { animation: none; }
}

/* Mini countdown overlay on product image */
.discount-timer-mini {
    position: absolute;
    top: 63px;
    left: 15px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #EF4444;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(239, 68, 68, .45);
    pointer-events: none;
}
.discount-timer-mini .dt-digits {
    font-size: 10.5px;
    color: #fff;
    letter-spacing: .5px;
    text-shadow: none;
}

/* ===== Visitors Counter Strip ===== */
.visitors-strip {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 14px 0;
}
.visitors-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
}
.visitors-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.visitors-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.visitors-number {
    font-size: 30px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.visitors-label {
    font-size: 14px;
    font-weight: 600;
    opacity: .92;
}
@media (max-width: 576px) {
    .visitors-number { font-size: 24px; }
    .visitors-label { font-size: 12.5px; }
    .visitors-icon { width: 36px; height: 36px; font-size: 17px; }
}

/* Footer logo sizing */
.footer-brand img {
    height: 54px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    .footer-brand img {
        height: 38px;
    }
}

/* ===== Footer Logo Marquee — brand logo repeats and slides right → left ===== */
.logo-marquee {
    overflow: hidden;
    width: 100%;
}
.logo-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeL2R 30s linear infinite reverse;
    will-change: transform;
}
.logo-marquee-group {
    display: flex;
    gap: 48px;
    padding: 0 24px;
    flex-shrink: 0;
}
.logo-marquee-item {
    height: 56px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    .logo-marquee-item { height: 40px; }
    .logo-marquee-group { gap: 36px; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-marquee-track { animation: none; }
}

/* ===== PWA Install Button — mobile only ===== */
.mk-install-fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height, 64px) + 14px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 50%;
    transform: translateX(50%);
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px 8px 10px;
    border: none;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 0 var(--primary-dark), 0 12px 26px rgba(91,33,182,.35);
    cursor: pointer;
    animation: mkFabIn .45s cubic-bezier(.34,1.56,.64,1) both;
    transition: transform .2s ease, opacity .25s ease;
}
.mk-install-fab:active { transform: translateX(50%) translateY(3px); box-shadow: 0 2px 0 var(--primary-dark); }
.mk-install-fab.mk-hide { opacity: 0; transform: translateX(50%) translateY(12px); pointer-events: none; }
.mk-install-logo {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
    object-fit: contain;
}
.mk-install-close {
    font-size: 12px;
    opacity: .75;
    padding: 6px 2px 6px 4px;
    margin-inline-start: 2px;
}
.mk-install-close:hover { opacity: 1; }
@keyframes mkFabIn {
    from { opacity: 0; transform: translateX(50%) translateY(16px) scale(.9); }
    to   { opacity: 1; transform: translateX(50%) translateY(0) scale(1); }
}

/* ===== iOS Install Instructions — bottom sheet ===== */
.mk-sheet-wrap { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.mk-sheet-backdrop {
    position: absolute; inset: 0;
    background: rgba(20, 10, 40, .5);
    opacity: 0; transition: opacity .3s ease;
    pointer-events: auto;
}
.mk-sheet {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 12px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    transform: translateY(105%);
    transition: transform .38s cubic-bezier(.32,.9,.35,1);
    pointer-events: auto;
    max-width: 480px;
    margin: 0 auto;
    direction: rtl;
}
.mk-sheet-wrap.open .mk-sheet-backdrop { opacity: 1; }
.mk-sheet-wrap.open .mk-sheet { transform: translateY(0); }
.mk-sheet-handle {
    width: 44px; height: 5px; border-radius: 3px;
    background: #E4DEF5; margin: 2px auto 16px;
}
.mk-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mk-sheet-head h6 { margin: 0; font-weight: 700; font-size: 16px; }
.mk-sheet-logo {
    width: 44px; height: 44px; border-radius: 12px;
    background: #F7F5FC; padding: 4px; object-fit: contain;
    box-shadow: 0 2px 8px rgba(91,33,182,.12);
}
.mk-sheet-steps { list-style: none; padding: 0; margin: 0 0 18px; }
.mk-sheet-steps li {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; font-size: 14.5px; color: var(--text-dark, #2d2a45);
}
.mk-step-ico {
    width: 38px; height: 38px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: #F3EFFE; color: var(--primary-color);
    font-size: 18px;
}
.mk-sheet-ok {
    width: 100%; padding: 13px;
    border: none; border-radius: 14px;
    background: var(--primary-color); color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--primary-dark);
}
.mk-sheet-ok:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--primary-dark); }

/* Never render on desktop even if injected */
@media (min-width: 768px) and (pointer: fine) {
    .mk-install-fab { display: none; }
}

