/*
 * ═══════════════════════════════════════════════════════════════
 * MODERN E-COMMERCE REDESIGN 2026
 * A completely new, ultra-modern design system
 * ═══════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS & CSS VARIABLES
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Brand Colors - Black & Red Theme */
    --brand-primary: #e21d1d;
    --brand-primary-dark: #b91c1c;
    --brand-primary-light: #ef4444;
    --brand-primary-soft: rgba(226, 29, 29, 0.1);

    --brand-secondary: #1a1a1a;
    --brand-secondary-dark: #000000;
    --brand-secondary-light: #333333;

    --brand-accent: #e21d1d;
    --brand-accent-dark: #b91c1c;
    --brand-accent-light: #ff4757;

    /* Gradient Presets */
    --gradient-primary: linear-gradient(135deg, #e21d1d 0%, #b91c1c 50%, #991b1b 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    --gradient-warm: linear-gradient(135deg, #e21d1d 0%, #b91c1c 100%);
    --gradient-cool: linear-gradient(135deg, #1a1a1a 0%, #e21d1d 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Neutral Colors - Sophisticated Grays */
    --neutral-950: #020617;
    --neutral-900: #0f172a;
    --neutral-800: #1e293b;
    --neutral-700: #334155;
    --neutral-600: #475569;
    --neutral-500: #64748b;
    --neutral-400: #94a3b8;
    --neutral-300: #cbd5e1;
    --neutral-200: #e2e8f0;
    --neutral-100: #f1f5f9;
    --neutral-50: #f8fafc;
    --white: #ffffff;

    /* Semantic Colors */
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-soft: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.1);

    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-3xl: 48px;
    --radius-full: 9999px;

    /* Shadows - Layered depth system */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.08);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(226, 29, 29, 0.3);
    --shadow-glow-sm: 0 0 20px rgba(226, 29, 29, 0.2);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR - Premium Design
   ═══════════════════════════════════════════════════════════════ */

/* Webkit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e21d1d 0%, #b91c1c 50%, #991b1b 100%);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ef4444 0%, #e21d1d 50%, #b91c1c 100%);
    border-color: #333;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #ff6b6b 0%, #ef4444 50%, #e21d1d 100%);
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #e21d1d #1a1a1a;
}

/* Horizontal scrollbar for sliders/carousels */
.swiper-container::-webkit-scrollbar,
swiper-container::-webkit-scrollbar,
.overflow-auto::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.swiper-container::-webkit-scrollbar-track,
swiper-container::-webkit-scrollbar-track,
.overflow-auto::-webkit-scrollbar-track,
.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.swiper-container::-webkit-scrollbar-thumb,
swiper-container::-webkit-scrollbar-thumb,
.overflow-auto::-webkit-scrollbar-thumb,
.overflow-x-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #e21d1d 0%, #b91c1c 100%);
    border-radius: 10px;
}

/* Modal/Popup scrollbar */
.modal-body::-webkit-scrollbar,
.aiz-side-nav::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track,
.aiz-side-nav::-webkit-scrollbar-track,
.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb,
.aiz-side-nav::-webkit-scrollbar-thumb,
.dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e21d1d 0%, #b91c1c 100%);
    border-radius: 10px;
}

/* Light background scrollbar variant */
.bg-white::-webkit-scrollbar-track,
.bg-light::-webkit-scrollbar-track,
.card::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.bg-white::-webkit-scrollbar-thumb,
.bg-light::-webkit-scrollbar-thumb,
.card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e21d1d 0%, #b91c1c 100%);
    border: 2px solid #f1f5f9;
}

/* Thin scrollbar variant class */
.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    border: none;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}

.scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glow effect on scrollbar (premium touch) */
::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 10px rgba(226, 29, 29, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════ */
.redesign-2026 * {
    box-sizing: border-box;
}

.redesign-2026 {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background: var(--neutral-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   NEW PRODUCT CARD - GLASSMORPHISM STYLE
   ═══════════════════════════════════════════════════════════════ */
.product-card-2026 {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-smooth);
    border: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
}

.product-card-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-base) var(--ease-smooth);
}

.product-card-2026:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-card-2026:hover::before {
    transform: scaleX(1);
}

/* Product Image Container */
.product-card-2026 .card-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    background: linear-gradient(180deg, var(--neutral-100) 0%, var(--white) 100%);
    overflow: hidden;
}

.product-card-2026 .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-6);
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.product-card-2026:hover .card-image-wrapper img {
    transform: scale(1.1);
}

/* Product Badges */
.product-card-2026 .card-badges {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 10;
}

.product-card-2026 .badge-discount {
    background: var(--gradient-warm);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.product-card-2026 .badge-new {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.product-card-2026 .badge-hot {
    background: var(--error);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }

    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }
}

/* Quick Actions */
.product-card-2026 .card-quick-actions {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--duration-base) var(--ease-smooth);
    z-index: 10;
}

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

.product-card-2026 .action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-fast) var(--ease-smooth);
    color: var(--neutral-600);
}

.product-card-2026 .action-btn:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: var(--shadow-glow-sm);
}

.product-card-2026 .action-btn svg {
    width: 20px;
    height: 20px;
}

/* Add to Cart Button */
.product-card-2026 .card-add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--text-sm);
    border: none;
    cursor: pointer;
    transform: translateY(100%);
    transition: all var(--duration-base) var(--ease-smooth);
    text-decoration: none;
}

.product-card-2026:hover .card-add-to-cart {
    transform: translateY(0);
}

.product-card-2026 .card-add-to-cart:hover {
    filter: brightness(1.1);
}

/* Product Info */
.product-card-2026 .card-info {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

/* Rating Stars */
.product-card-2026 .card-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.product-card-2026 .card-rating .stars {
    display: flex;
    gap: 2px;
    color: var(--warning);
}

.product-card-2026 .card-rating .stars svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.product-card-2026 .card-rating .count {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

/* Product Title */
.product-card-2026 .card-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--neutral-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color var(--duration-fast);
    margin: 0;
}

/* Footer overrides for black theme */
.footer-modern {
    background: #000 !important;
    color: #fff !important;
}

.footer-modern a {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none;
}

.footer-modern a:hover {
    color: var(--brand-primary) !important;
}

.footer-modern .brand-desc,
.footer-modern .footer-list,
.footer-modern .footer-list li,
.footer-modern .footer-list li a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-modern .social svg path,
.footer-modern .social svg {
    fill: #fff !important;
    color: #fff !important;
}

.footer-modern .app-btn img {
    filter: brightness(1) !important;
}

.footer-widget,
.aiz-accordion-wrap.bg-black {
    display: none !important;
    /* hide legacy footer widget blocks */
}

/* Back-to-top contrast */
#back-to-top {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
    .footer-modern {
        padding: 32px 0 !important;
    }
}

/* Policy section styling */
.policy-section {
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.96) 0%, rgba(0, 0, 0, 0.95) 100%);
    color: #dcdcdc;
}

.policy-section .policy-card {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
}

.policy-section .icon-bg {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin: 0 auto;
    color: #fff;
}

.policy-section h3 {
    color: #fff;
}

/* New footer styles */
.footer-new {
    background: #000;
    color: rgba(255, 255, 255, 0.9);
}

.footer-new a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-new a:hover {
    color: var(--brand-primary);
}

.footer-new .text-soft-light {
    color: rgba(255, 255, 255, 0.75);
}

.footer-new .social a {
    color: #fff;
    margin-right: 8px;
}

/* Hide legacy accordion in small screens if present */
.aiz-accordion-wrap.bg-black {
    display: none !important;
}

/* ensure back-to-top contrast */
#back-to-top {
    position: fixed;
    right: 16px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 9999;
}

.product-card-2026 .card-title:hover {
    color: var(--brand-primary);
}

/* Price */
.product-card-2026 .card-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px dashed var(--neutral-200);
}

.product-card-2026 .price-current {
    font-size: var(--text-xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card-2026 .price-old {
    font-size: var(--text-sm);
    color: var(--neutral-400);
    text-decoration: line-through;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-header-2026 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-header-2026 .section-title-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.section-header-2026 .section-subtitle {
    font-size: var(--text-sm);
    color: var(--brand-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-header-2026 .section-subtitle::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-header-2026 .section-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--neutral-900);
    margin: 0;
    line-height: 1.2;
}

.section-header-2026 .section-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-smooth);
    border: 2px solid transparent;
}

.section-header-2026 .section-link:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: translateX(-4px);
    box-shadow: var(--shadow-glow-sm);
}

.section-header-2026 .section-link svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-fast);
}

.section-header-2026 .section-link:hover svg {
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   MODERN HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero-2026 {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-dark);
    padding: var(--space-16) 0;
}

.hero-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(20, 184, 166, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.hero-2026 .hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-2026 .hero-text {
    color: var(--white);
}

.hero-2026 .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

.hero-2026 .hero-title {
    font-size: var(--text-5xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-2026 .hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-2026 .hero-description {
    font-size: var(--text-lg);
    color: var(--neutral-300);
    line-height: 1.8;
    margin-bottom: var(--space-8);
    max-width: 540px;
}

.hero-2026 .hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-2026 .hero-image {
    position: relative;
}

.hero-2026 .hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.hero-2026 .hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--brand-primary);
    border-radius: var(--radius-2xl);
    opacity: 0.3;
}

/* Floating Elements */
.hero-2026 .floating-card {
    position: absolute;
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-2026 .floating-card.card-1 {
    top: 20%;
    left: -60px;
    animation-delay: 0s;
}

.hero-2026 .floating-card.card-2 {
    bottom: 20%;
    right: -40px;
    animation-delay: 2s;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN CATEGORY CARDS
   ═══════════════════════════════════════════════════════════════ */
.category-card-2026 {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--duration-base) var(--ease-smooth);
    border: 1px solid var(--neutral-200);
    cursor: pointer;
    overflow: hidden;
}

.category-card-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-base);
}

.category-card-2026:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.category-card-2026:hover::before {
    opacity: 0.05;
}

.category-card-2026 .category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-base);
    position: relative;
    z-index: 1;
}

.category-card-2026:hover .category-icon {
    background: var(--brand-primary-soft);
    transform: scale(1.1);
}

.category-card-2026 .category-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.category-card-2026 .category-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0;
    position: relative;
    z-index: 1;
    transition: color var(--duration-fast);
}

.category-card-2026:hover .category-name {
    color: var(--brand-primary);
}

.category-card-2026 .category-count {
    font-size: var(--text-xs);
    color: var(--neutral-500);
    margin-top: var(--space-1);
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN FLASH DEAL SECTION
   ═══════════════════════════════════════════════════════════════ */
.flash-deal-2026 {
    position: relative;
    background: var(--gradient-dark);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    overflow: hidden;
    color: var(--white);
}

.flash-deal-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(239, 68, 68, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.flash-deal-2026 .flash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.flash-deal-2026 .flash-title {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.flash-deal-2026 .flash-title h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin: 0;
}

.flash-deal-2026 .flash-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-warm);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s infinite;
}

/* Countdown Timer */
.flash-deal-2026 .countdown-wrapper {
    display: flex;
    gap: var(--space-3);
}

.flash-deal-2026 .countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-deal-2026 .countdown-number {
    font-size: var(--text-2xl);
    font-weight: 800;
    display: block;
    line-height: 1;
}

.flash-deal-2026 .countdown-label {
    font-size: var(--text-xs);
    color: var(--neutral-400);
    margin-top: var(--space-1);
}

/* ═══════════════════════════════════════════════════════════════
   MODERN BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-2026 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn-2026:hover::before {
    opacity: 1;
}

.btn-primary-2026 {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(226, 29, 29, 0.4);
}

.btn-primary-2026:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(226, 29, 29, 0.5);
    color: var(--white);
}

.btn-secondary-2026 {
    background: var(--white);
    color: var(--neutral-800);
    border: 2px solid var(--neutral-200);
}

.btn-secondary-2026:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-3px);
}

.btn-ghost-2026 {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-2026:hover {
    background: var(--white);
    color: var(--neutral-900);
    border-color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════
   MODERN FEATURES SECTION
   ═══════════════════════════════════════════════════════════════ */
.features-2026 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    padding: var(--space-10) 0;
}

@media (max-width: 992px) {
    .features-2026 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-2026 {
        grid-template-columns: 1fr;
    }
}

.feature-card-2026 {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    transition: all var(--duration-base) var(--ease-smooth);
}

.feature-card-2026:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary-soft);
}

.feature-card-2026 .feature-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-card-2026 .feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card-2026 .feature-content h4 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 var(--space-1);
}

.feature-card-2026 .feature-content p {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN NEWSLETTER SECTION
   ═══════════════════════════════════════════════════════════════ */
.newsletter-2026 {
    position: relative;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

.newsletter-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.newsletter-2026 .newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-2026 h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
}

.newsletter-2026 p {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
}

.newsletter-2026 .newsletter-form {
    display: flex;
    gap: var(--space-3);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-2026 .newsletter-input {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    background: var(--white);
    color: var(--neutral-800);
}

.newsletter-2026 .newsletter-input::placeholder {
    color: var(--neutral-400);
}

.newsletter-2026 .newsletter-btn {
    padding: var(--space-4) var(--space-8);
    background: var(--neutral-900);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.newsletter-2026 .newsletter-btn:hover {
    background: var(--white);
    color: var(--brand-primary);
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   MODERN FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer-2026 {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-2026 .footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

@media (max-width: 992px) {
    .footer-2026 .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-2026 .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-2026 .footer-brand p {
    margin: var(--space-4) 0;
    line-height: 1.8;
}

.footer-2026 .footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer-2026 .footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-800);
    border-radius: var(--radius-full);
    color: var(--neutral-400);
    transition: all var(--duration-fast);
}

.footer-2026 .footer-social a:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: translateY(-4px);
}

.footer-2026 .footer-column h4 {
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-6);
}

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

.footer-2026 .footer-links li {
    margin-bottom: var(--space-3);
}

.footer-2026 .footer-links a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: all var(--duration-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-2026 .footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-2026 .footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--neutral-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-2026 .footer-bottom p {
    margin: 0;
    color: var(--neutral-500);
}

.footer-2026 .payment-methods {
    display: flex;
    gap: var(--space-3);
}

.footer-2026 .payment-methods img {
    height: 32px;
    opacity: 0.7;
    transition: opacity var(--duration-fast);
}

.footer-2026 .payment-methods img:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN PRODUCT GRID
   ═══════════════════════════════════════════════════════════════ */
.products-grid-2026 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

@media (max-width: 576px) {
    .products-grid-2026 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SMOOTH SCROLL ANIMATIONS - Premium Experience
   ═══════════════════════════════════════════════════════════════ */

/* Base state for all scroll-animated elements */
.scroll-animate {
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.is-visible {
    opacity: 1;
}

/* Fade In Up - Most common, gentle rise */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Down - Subtle drop */
.scroll-fade-down {
    opacity: 0;
    transform: translateY(-40px);
    will-change: transform, opacity;
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-down.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left (for RTL - comes from right) */
.scroll-fade-left {
    opacity: 0;
    transform: translateX(60px);
    will-change: transform, opacity;
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right (for RTL - comes from left) */
.scroll-fade-right {
    opacity: 0;
    transform: translateX(-60px);
    will-change: transform, opacity;
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In - Gentle zoom */
.scroll-scale-in {
    opacity: 0;
    transform: scale(0.9);
    will-change: transform, opacity;
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Blur In - Dreamy appearance */
.scroll-blur-in {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    will-change: transform, opacity, filter;
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-blur-in.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Rotate In - Subtle rotation */
.scroll-rotate-in {
    opacity: 0;
    transform: rotate(-3deg) translateY(30px);
    will-change: transform, opacity;
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-rotate-in.is-visible {
    opacity: 1;
    transform: rotate(0) translateY(0);
}

/* Flip In - Card flip effect */
.scroll-flip-in {
    opacity: 0;
    transform: perspective(1000px) rotateX(-10deg) translateY(30px);
    will-change: transform, opacity;
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-flip-in.is-visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
}

/* Slide Reveal - Mask reveal effect */
.scroll-reveal {
    position: relative;
    overflow: hidden;
}

.scroll-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brand-primary);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.scroll-reveal.is-visible::before {
    transform: scaleX(0);
}

/* Stagger Children - Cascade effect */
.scroll-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0.05s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(5) {
    transition-delay: 0.25s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(6) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(7) {
    transition-delay: 0.35s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(8) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(9) {
    transition-delay: 0.45s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(10) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(11) {
    transition-delay: 0.55s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(12) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* Delay Modifiers */
.scroll-delay-1 {
    transition-delay: 0.1s !important;
}

.scroll-delay-2 {
    transition-delay: 0.2s !important;
}

.scroll-delay-3 {
    transition-delay: 0.3s !important;
}

.scroll-delay-4 {
    transition-delay: 0.4s !important;
}

.scroll-delay-5 {
    transition-delay: 0.5s !important;
}

/* Duration Modifiers */
.scroll-slow {
    transition-duration: 1s !important;
}

.scroll-fast {
    transition-duration: 0.4s !important;
}

/* Parallax-like effect for sections */
.scroll-parallax {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Hover enhancements for animated cards */
.scroll-fade-up.is-visible:hover,
.scroll-scale-in.is-visible:hover {
    transform: translateY(-8px);
    transition-duration: 0.3s;
}

/* Section title animations */
.section-header-2026 {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header-2026.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product card scroll animation */
.product-card-2026 {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease;
}

.product-card-2026.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Category card scroll animation */
.category-card-2026 {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card-2026.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Feature card scroll animation */
.feature-card-2026 {
    opacity: 0;
    transform: translateX(30px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card-2026.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Flash deal section */
.flash-deal-2026 {
    opacity: 0;
    transform: scale(0.98);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.flash-deal-2026.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Newsletter section */
.newsletter-2026 {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-2026.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer section */
.footer-new,
.policy-section {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-new.is-visible,
.policy-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   BI-DIRECTIONAL SCROLL ANIMATIONS (Hidden States)
   ═══════════════════════════════════════════════════════════════ */

/* Hidden state - elements animate out when scrolling away */
.is-hidden {
    opacity: 0 !important;
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.scroll-fade-up.is-hidden,
.product-card-2026.is-hidden,
.section-header-2026.is-hidden,
.newsletter-2026.is-hidden {
    transform: translateY(30px) !important;
}

.scroll-fade-down.is-hidden {
    transform: translateY(-30px) !important;
}

.scroll-fade-left.is-hidden {
    transform: translateX(40px) !important;
}

.scroll-fade-right.is-hidden,
.feature-card-2026.is-hidden {
    transform: translateX(-40px) !important;
}

.scroll-scale-in.is-hidden,
.category-card-2026.is-hidden,
.flash-deal-2026.is-hidden {
    transform: scale(0.92) !important;
}

.scroll-blur-in.is-hidden {
    filter: blur(8px) !important;
    transform: translateY(15px) !important;
}

.scroll-rotate-in.is-hidden {
    transform: rotate(-2deg) translateY(20px) !important;
}

.scroll-flip-in.is-hidden {
    transform: perspective(1000px) rotateX(-8deg) translateY(20px) !important;
}

/* Scroll direction body classes */
body.scrolling-down .scroll-on-down {
    opacity: 1;
    transform: translateY(0);
}

body.scrolling-up .scroll-on-up {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle parallax on scroll */
body.scrolling-down .hero-2026 {
    transform: translateY(0);
}

body.scrolling-up .hero-2026 {
    transform: translateY(0);
}

/* Cards lift slightly on scroll up */
body.scrolling-up .product-card-2026.is-visible:hover,
body.scrolling-up .category-card-2026.is-visible:hover {
    transform: translateY(-12px);
}

/* Stagger children hidden state */
.scroll-stagger.is-hidden>* {
    opacity: 0;
    transform: translateY(20px);
}

/* Smooth scroll behavior for entire page */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-animate,
    .scroll-fade-up,
    .scroll-fade-down,
    .scroll-fade-left,
    .scroll-fade-right,
    .scroll-scale-in,
    .scroll-blur-in,
    .scroll-rotate-in,
    .scroll-flip-in,
    .product-card-2026,
    .category-card-2026,
    .feature-card-2026,
    .section-header-2026,
    .flash-deal-2026,
    .newsletter-2026,
    .footer-new,
    .policy-section {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Legacy animation keyframes (kept for compatibility) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp var(--duration-slow) var(--ease-smooth) forwards;
}

.animate-fadeInRight {
    animation: fadeInRight var(--duration-slow) var(--ease-smooth) forwards;
}

.animate-scaleIn {
    animation: scaleIn var(--duration-slow) var(--ease-smooth) forwards;
}

/* Stagger children animations (legacy) */
.stagger-children>* {
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-smooth) forwards;
}

.stagger-children>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
    animation-delay: 0.6s;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE HERO
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .hero-2026 .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-2026 .hero-text {
        order: 2;
    }

    .hero-2026 .hero-image {
        order: 1;
    }

    .hero-2026 .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-2026 .hero-description {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-2026 .hero-buttons {
        justify-content: center;
    }

    .hero-2026 .floating-card {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RTL SUPPORT
   ═══════════════════════════════════════════════════════════════ */
[dir="rtl"] .section-header-2026 .section-subtitle::before {
    order: 1;
}

[dir="rtl"] .section-header-2026 .section-link:hover {
    transform: translateX(4px);
}

[dir="rtl"] .section-header-2026 .section-link:hover svg {
    transform: translateX(4px);
}

[dir="rtl"] .product-card-2026 .card-quick-actions {
    right: auto;
    left: var(--space-4);
    transform: translateX(-20px);
}

[dir="rtl"] .product-card-2026:hover .card-quick-actions {
    transform: translateX(0);
}

[dir="rtl"] .product-card-2026 .card-badges {
    left: auto;
    right: var(--space-4);
}

[dir="rtl"] .footer-2026 .footer-links a:hover {
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR STYLING
   ═══════════════════════════════════════════════════════════════ */
.redesign-2026 ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.redesign-2026 ::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

.redesign-2026 ::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: var(--radius-full);
}

.redesign-2026 ::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* ═══════════════════════════════════════════════════════════════
   LOADING SKELETON
   ═══════════════════════════════════════════════════════════════ */
.skeleton-2026 {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

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

    100% {
        background-position: -200% 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .hero-2026 {
        min-height: auto;
        padding: var(--space-8) 0;
        text-align: center;
    }

    .hero-2026 .hero-content {
        grid-template-columns: 100%;
        gap: var(--space-8);
    }

    .hero-2026 .hero-title {
        font-size: var(--text-3xl) !important;
        line-height: 1.2;
    }

    .hero-2026 .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-2026 .floating-card {
        display: none !important;
    }

    .hero-2026 .hero-image img {
        max-width: 90%;
        margin: 0 auto;
        border-radius: var(--radius-xl);
    }
}

/* Products Grid System - Responsive */
.products-grid-2026 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1200px) {
    .products-grid-2026 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-2026 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .product-card-2026 .card-info {
        padding: var(--space-3);
    }

    .product-card-2026 .card-title {
        font-size: var(--text-xs) !important;
        height: 38px;
    }

    .product-card-2026 .price-current {
        font-size: var(--text-base) !important;
    }
}

@media (max-width: 576px) {
    .product-card-2026 .card-quick-actions {
        display: none !important;
        /* Hide secondary actions on small mobile for cleaner look */
    }

    .product-card-2026 .card-add-to-cart {
        padding: var(--space-2) !important;
        font-size: 11px !important;
    }
}

/* =========================
   Modern Footer Styles
   ========================= */
.footer-modern {
    background: var(--gradient-dark);
    border-radius: 18px;
    padding: 48px 0;
    color: var(--white);
}

.footer-modern .footer-brand img {
    max-height: 56px;
}

.footer-modern .brand-desc {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-top: 12px;
}

.footer-modern .footer-list a {
    color: var(--neutral-300);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: color .18s ease;
}

.footer-modern .footer-list a:hover {
    color: var(--brand-primary);
}

.footer-modern .app-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    border-radius: 12px;
    padding: 6px 10px;
    margin-bottom: 10px;
    width: 160px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-modern .app-btn img {
    height: 44px;
    display: block
}

.footer-modern .social .list-inline-item a {
    background: rgba(255, 255, 255, 0.04);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 6px;
    transition: transform .15s ease;
}

.footer-modern .social .list-inline-item a:hover {
    transform: translateY(-3px)
}

/* Back to top button */
.back-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(226, 29, 29, 0.18);
    z-index: 9999;
}

.back-to-top:hover {
    transform: translateY(-3px)
}

@media (max-width: 992px) {
    .footer-modern .footer-brand {
        text-align: center
    }

    .footer-modern .footer-apps {
        text-align: center;
        margin-top: 20px
    }

    .footer-modern .brand-desc {
        margin-left: auto;
        margin-right: auto
    }
}

/* ═══════════════════════════════════════════════════════════════
   RTL (RIGHT-TO-LEFT) SUPPORT - ARABIC
   ═══════════════════════════════════════════════════════════════ */
[dir="rtl"] {
    font-family: 'Tajawal', 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="rtl"] .hero-2026 .hero-content {
    text-align: right;
}

[dir="rtl"] .product-card-2026 .card-quick-actions {
    right: auto;
    left: var(--space-4);
}

[dir="rtl"] .product-card-2026 .card-badges {
    left: auto;
    right: var(--space-4);
}

[dir="rtl"] .section-header-2026 .view-all svg {
    transform: rotate(180deg);
}

[dir="rtl"] .btn-2026 svg {
    transform: rotate(180deg);
}

[dir="rtl"] .feature-card-2026 {
    text-align: right;
}

[dir="rtl"] .hero-2026 .floating-card {
    right: auto;
    left: 20%;
}

[dir="rtl"] .hero-2026 .floating-card:last-child {
    left: auto;
    right: 15%;
}

[dir="rtl"] .newsletter-content-2026 {
    text-align: right;
}

[dir="rtl"] .newsletter-form-2026 .btn-primary-2026 {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

[dir="rtl"] .newsletter-form-2026 input {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    padding-right: var(--space-6);
    padding-left: var(--space-4);
}

[dir="rtl"] .countdown-wrapper {
    direction: ltr;
}

[dir="rtl"] .card-price {
    direction: ltr;
    justify-content: flex-end;
}

[dir="rtl"] .flash-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .flash-title {
    text-align: right;
}

@media (max-width: 576px) {
    [dir="rtl"] .product-card-2026 .card-quick-actions {
        left: var(--space-3);
        right: var(--space-3);
    }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM MOBILE RESPONSIVE SYSTEM
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {

    /* Header & Navbar - High Contrast for Visibility */
    header.sticky-top,
    header.modern-header,
    .logo-bar-area {
        background-color: #1a1a1a !important;
        /* Premium Dark Background */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        z-index: 1050 !important;
        /* Above other elements */
    }

    /* Force Icon Visibility with High Priority */
    .modern-header svg,
    .modern-header svg path,
    .modern-header svg line,
    .modern-header svg circle,
    .modern-header a i,
    .modern-header .btn i {
        stroke: #ffffff !important;
        color: #ffffff !important;
    }

    /* Icons that should be filled (like search icon in search box) */
    .search-btn svg path,
    .modern-header .badge svg path {
        fill: #ffffff !important;
        stroke: none !important;
    }

    /* Cart Badge - Make it extremely visible */
    .modern-header .badge-primary {
        background-color: #e21d1d !important;
        color: #ffffff !important;
        border: 2px solid #1a1a1a !important;
        font-weight: 800 !important;
        box-shadow: 0 0 10px rgba(226, 29, 29, 0.8) !important;
        height: 18px !important;
        min-width: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Mobile Sidebar (Menu) - Premium Redesign */
.aiz-top-menu-sidebar .collapse-sidebar {
    background: #ffffff !important;
    color: #1a1a1a !important;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.15) !important;
    border-radius: 24px 0 0 24px !important;
}

.aiz-top-menu-sidebar .sidebar-user-section {
    background: #f8fafc !important;
    padding: 30px 24px !important;
    border-bottom: 1px solid #edf2f7 !important;
}

.aiz-top-menu-sidebar .header_menu_links {
    color: #334155 !important;
    font-weight: 600 !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.aiz-top-menu-sidebar .header_menu_links:hover,
.aiz-top-menu-sidebar .header_menu_links.active {
    color: var(--brand-primary) !important;
    background: var(--brand-primary-soft) !important;
    border-left: 5px solid var(--brand-primary) !important;
}

[dir="rtl"] .aiz-top-menu-sidebar .header_menu_links:hover,
[dir="rtl"] .aiz-top-menu-sidebar .header_menu_links.active {
    border-left: none !important;
    border-right: 5px solid var(--brand-primary) !important;
}

/* Dropdown Menu Visibility Fixes (Languages/Currency) */
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid var(--neutral-200) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-xl) !important;
    padding: 8px !important;
    margin-top: 10px !important;
    z-index: 2000 !important;
    /* Higher than topbar */
}

.dropdown-menu .dropdown-item {
    color: #1a1a1a !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: transparent !important;
}

.dropdown-menu .dropdown-item:hover {
    background: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
}

/* Category & Feature Cards - Mobile Fixes */
@media (max-width: 768px) {
    .category-card-2026 {
        padding: var(--space-4) !important;
    }

    .category-card-2026 .category-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .category-card-2026 .category-name {
        font-size: 12px !important;
        margin-top: 8px !important;
    }

    .features-2026 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 15px !important;
    }

    .feature-card-2026 {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: var(--shadow-sm) !important;
    }

    .feature-card-2026 .feature-icon {
        margin: 0 auto 10px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .section-header-2026 .section-title {
        font-size: 20px !important;
    }
}

/* Products Grid - 2 per row on Mobile */
@media (max-width: 768px) {
    .products-grid-2026 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 12px !important;
    }
}

/* Topbar Styles (Red Bar) */
.top-navbar {
    background: var(--brand-primary) !important;
    z-index: 1040 !important;
}

.top-navbar .dropdown-toggle {
    color: #ffffff !important;
}

.top-navbar .dropdown-menu {
    border: none !important;
    box-shadow: var(--shadow-2xl) !important;
    margin-top: 15px !important;
}

/* General Layout Fixes */
.top-banner {
    position: relative !important;
    z-index: 1050 !important;
}

.modern-header {
    border-bottom: 0 !important;
}