/* ===============================================
   Arabgulf Electronic Trading - Premium Electronics Store
   Global Styles (LTR)
   =============================================== */

/* ===============================================
   REFINED COLOR SYSTEM - Premium E-commerce Palette
   Based on Logo Colors: Navy (#102040) & Aqua (#00c0d0)
   WCAG AA Compliant | Luxury & Professional
   =============================================== */

:root {
    /* ===========================================
       PRIMARY BRAND COLORS
       =========================================== */
    
    /* Navy Blue - Dominant Base Color (from logo) */
    /* Used for: backgrounds, headers, navigation, structural elements */
    --navy-900: #081225;           /* Deepest navy - darkest backgrounds */
    --navy-800: #0b1730;           /* Very dark navy - dark sections */
    --navy-700: #0e1c39;           /* Dark navy - elevated dark backgrounds */
    --navy-600: #102040;           /* PRIMARY BASE - Main navy (#102040) */
    --navy-500: #1a2d52;           /* Medium navy - borders, dividers */
    --navy-400: #2b4474;           /* Light navy - subtle accents */
    --navy-300: #3f5e98;           /* Lighter navy - hover states */
    --navy-200: #5f7eb7;           /* Very light navy - disabled states */
    --navy-100: #a9c0e1;           /* Lightest navy - backgrounds */
    --navy-50: #eef3fb;            /* Softest navy - subtle backgrounds */
    
    /* Aqua (Logo Accent) - Premium Accent (Used Sparingly) */
    /* Note: kept as --gold-* for backward compatibility across pages */
    /* Used for: highlights, CTAs, icons, hover states, dividers, emphasis */
    --gold-900: #006c78;           /* Deepest aqua - rich accents */
    --gold-800: #008794;           /* Dark aqua - hover states */
    --gold-700: #00a2b2;           /* Medium-dark aqua */
    --gold-600: #00c0d0;           /* PRIMARY ACCENT - Main aqua (#00c0d0) */
    --gold-500: #10c0d0;           /* Medium aqua - active states */
    --gold-400: #36d4e0;           /* Light aqua - highlights */
    --gold-300: #65e6ee;           /* Lighter aqua - subtle highlights */
    --gold-200: #9af3f7;           /* Very light aqua - backgrounds */
    --gold-100: #d3fdfe;           /* Lightest aqua - soft backgrounds */
    --gold-50: #f0feff;            /* Softest aqua - subtle backgrounds */
    
    /* ===========================================
       NEUTRAL GRAYS - Supporting Colors
       =========================================== */
    
    /* Charcoal & Dark Grays */
    --charcoal-900: #1a1a1a;       /* Deepest charcoal - text on light */
    --charcoal-800: #2d2d2d;       /* Very dark - headings */
    --charcoal-700: #404040;       /* Dark - body text */
    --charcoal-600: #525252;       /* Medium - secondary text */
    --charcoal-500: #6b6b6b;       /* Medium-light - muted text */
    --charcoal-400: #868686;       /* Light - placeholders */
    --charcoal-300: #a3a3a3;       /* Very light - disabled */
    --charcoal-200: #c4c4c4;       /* Borders, dividers */
    --charcoal-100: #e0e0e0;       /* Light borders */
    --charcoal-50: #f5f5f5;        /* Subtle backgrounds */
    
    /* Off-White & Light Grays */
    --off-white: #fafafa;          /* Primary light background */
    --white-soft: #ffffff;         /* Pure white - cards, modals */
    --white: #ffffff;              /* Alias for white text on dark buttons */
    --gray-50: #f9fafb;            /* Softest gray - section backgrounds */
    --gray-100: #f3f4f6;           /* Light gray - secondary backgrounds */
    --gray-200: #e5e7eb;           /* Border gray */
    --gray-300: #d1d5db;           /* Light border */
    
    /* ===========================================
       SEMANTIC COLORS
       =========================================== */
    
    /* Status Colors - Refined & Professional */
    --success: #10b981;             /* Green - success states */
    --success-light: #d1fae5;      /* Light green background */
    --success-dark: #059669;       /* Dark green */
    
    --warning: #f59e0b;             /* Amber - warnings */
    --warning-light: #fef3c7;      /* Light amber background */
    --warning-dark: #d97706;        /* Dark amber */
    
    --error: #ef4444;               /* Red - errors */
    --error-light: #fee2e2;         /* Light red background */
    --error-dark: #dc2626;          /* Dark red */
    
    --info: #3b82f6;                /* Blue - information */
    --info-light: #dbeafe;          /* Light blue background */
    --info-dark: #2563eb;           /* Dark blue */
    
    /* ===========================================
       LEGACY COMPATIBILITY (Mapped to New System)
       =========================================== */
    
    --primary: var(--navy-600);               /* #102040 - PRIMARY BASE */
    --primary-dark: var(--navy-900);          /* Darkest */
    --primary-light: var(--navy-500);         /* Lighter */
    --secondary: var(--gold-600);             /* #00c0d0 - PRIMARY ACCENT */
    --secondary-dark: var(--gold-800);        /* Darker */
    --secondary-light: var(--gold-300);       /* Lighter */
    --accent: var(--white-soft);              /* #ffffff */
    --accent-dark: var(--off-white);          /* #fafafa */
    
    /* ===========================================
       TEXT COLORS - WCAG AA Compliant
       =========================================== */
    
    /* Text on Light Backgrounds */
    --text-primary: var(--charcoal-900);     /* #1a1a1a - 21:1 contrast on white */
    --text-secondary: var(--charcoal-700);   /* #404040 - 12:1 contrast on white */
    --text-muted: var(--charcoal-500);       /* #6b6b6b - 7:1 contrast on white */
    --text-disabled: var(--charcoal-300);    /* #a3a3a3 - 4.5:1 contrast on white */
    
    /* Text on Dark Backgrounds */
    --text-light: var(--white-soft);         /* #ffffff - on navy */
    --text-light-muted: var(--charcoal-200); /* #c4c4c4 - on navy */
    
    /* Text on Gold Backgrounds */
    --text-on-gold: var(--navy-900);         /* #0f1721 - on gold (high contrast) */
    --text-on-gold-muted: var(--navy-700);   /* #1a2439 - on gold (muted) */
    
    /* ===========================================
       BACKGROUND COLORS
       =========================================== */
    
    /* Light Backgrounds */
    --bg-primary: var(--white-soft);         /* #ffffff - main background */
    --bg-secondary: var(--off-white);        /* #fafafa - secondary sections */
    --bg-tertiary: var(--gray-50);           /* #f9fafb - subtle sections */
    --bg-elevated: var(--white-soft);        /* #ffffff - cards, modals */
    --bg-hover: var(--gray-50);              /* #f9fafb - hover states */
    
    /* Dark Backgrounds */
    --bg-dark: var(--navy-600);              /* #1d2a3b - dark sections (PRIMARY) */
    --bg-dark-elevated: var(--navy-700);     /* #1a2439 - dark cards */
    --bg-dark-hover: var(--navy-500);        /* #2d3f56 - dark hover */
    --bg-dark-deep: var(--navy-900);         /* #0f1721 - deepest dark */
    
    /* Accent Backgrounds */
    --bg-gold-subtle: var(--gold-50);        /* subtle aqua background */
    --bg-gold-light: var(--gold-100);        /* light aqua background */
    --bg-navy-subtle: var(--navy-50);        /* #f4f6f9 - very subtle navy */
    --bg-navy-light: var(--navy-100);        /* #e8ecf0 - light navy */
    
    /* ===========================================
       BORDER & DIVIDER COLORS
       =========================================== */
    
    --border-light: var(--gray-200);          /* #e5e7eb - light borders */
    --border-medium: var(--charcoal-200);    /* #c4c4c4 - medium borders */
    --border-dark: var(--charcoal-400);       /* #868686 - dark borders */
    --border-navy: var(--navy-300);           /* #6b8aab - navy borders */
    --border-gold: var(--gold-400);           /* aqua accent borders */
    --border-focus: var(--gold-600);          /* focus states */
    
    /* ===========================================
       GRADIENTS - Premium & Elegant
       =========================================== */
    
    --gradient-primary: linear-gradient(135deg, var(--navy-600) 0%, var(--gold-600) 100%);
    --gradient-dark: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-600) 100%);
    --gradient-hero: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-600) 50%, var(--navy-900) 100%);
    --gradient-logo: linear-gradient(135deg, var(--navy-600) 0%, var(--navy-500) 55%, var(--gold-600) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold-800) 0%, var(--gold-600) 100%); /* aqua gradient */
    --gradient-navy: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-500) 100%);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(16, 32, 64, 0.7) 100%);
    
    /* ===========================================
       SHADOWS - Depth & Elevation
       =========================================== */
    
    --shadow-xs: 0 1px 2px rgba(var(--navy-rgb), 0.05);
    --shadow-sm: 0 2px 8px rgba(var(--navy-rgb), 0.08);
    --shadow-md: 0 4px 16px rgba(var(--navy-rgb), 0.12);
    --shadow-lg: 0 8px 32px rgba(var(--navy-rgb), 0.16);
    --shadow-xl: 0 16px 48px rgba(var(--navy-rgb), 0.20);
    
    /* Navy Shadows */
    --shadow-navy-sm: 0 2px 10px rgba(var(--navy-rgb), 0.15);
    --shadow-navy-md: 0 4px 20px rgba(var(--navy-rgb), 0.25);
    --shadow-navy-lg: 0 8px 40px rgba(var(--navy-rgb), 0.35);
    
    /* Gold Shadows - Premium Accent */
    --shadow-gold-sm: 0 2px 12px rgba(0, 192, 208, 0.20);
    --shadow-gold-md: 0 4px 24px rgba(0, 192, 208, 0.30);
    --shadow-gold-lg: 0 8px 40px rgba(0, 192, 208, 0.40);
    
    /* Combined Shadows */
    --shadow-primary: 0 4px 20px rgba(16, 32, 64, 0.25), 0 2px 8px rgba(0, 192, 208, 0.15);
    --shadow-secondary: 0 4px 24px rgba(0, 192, 208, 0.30);
    --shadow-elevated: 0 8px 32px rgba(16, 32, 64, 0.18), 0 4px 16px rgba(0, 192, 208, 0.10);

    /* RGB helpers (for consistent rgba usage) */
    --navy-rgb: 16, 32, 64;          /* matches --navy-600 */
    --accent-rgb: 0, 192, 208;       /* matches --gold-600 */
    --accent-alt-rgb: 16, 192, 208;  /* matches --gold-500 */

    /* Shadow aliases used in components */
    --shadow-navy: var(--shadow-navy-md);
    --shadow-gold: var(--shadow-gold-md);
    --shadow-hover: 0 10px 35px rgba(16, 32, 64, 0.22), 0 6px 18px rgba(0, 192, 208, 0.16);
    
    /* ===========================================
       INTERACTIVE STATES
       =========================================== */
    
    /* Hover States */
    --hover-navy: var(--navy-700);           /* #1a2439 - darker on hover */
    --hover-gold: var(--gold-500);           /* aqua lighter on hover */
    --hover-bg-light: var(--gray-50);        /* #f9fafb */
    --hover-bg-dark: var(--navy-500);        /* #2d3f56 */
    
    /* Active States */
    --active-navy: var(--navy-800);          /* #141b2d - pressed state */
    --active-gold: var(--gold-800);          /* aqua pressed state */
    
    /* Focus States */
    --focus-ring: var(--gold-600);           /* #00c0d0 - accent focus ring */
    --focus-ring-navy: var(--navy-400);      /* #3d5471 - navy focus ring */
    --focus-ring-offset: var(--white-soft);  /* #ffffff */
    
    /* Disabled States */
    --disabled-bg: var(--gray-100);          /* #f3f4f6 */
    --disabled-text: var(--charcoal-300);    /* #a3a3a3 */
    --disabled-border: var(--charcoal-200); /* #c4c4c4 */
    
    /* ===========================================
       SPACING & LAYOUT
       =========================================== */
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================================
   RESET & BASE
   =============================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    direction: ltr;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===============================================
   TOP BAR
   =============================================== */
.top-bar {
    background: var(--navy-600);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 24px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.top-info i {
    color: var(--secondary);
}

.top-offer {
    background: var(--secondary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--primary);
}

.top-actions {
    display: flex;
    gap: 20px;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

.top-link:hover {
    opacity: 1;
    color: var(--gold-400);
}

/* ===============================================
   NAVBAR
   z-index: 1000 (below cart 1001/1002, search 2000, toast 9999)
   =============================================== */
.navbar {
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    box-shadow: 0 4px 20px rgba(var(--navy-rgb), 0.08);
    padding: 12px 0;
}

/* Inner pages: navbar visible from load (solid background, dark text) */
body.inner-page .navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px rgba(var(--navy-rgb), 0.08);
}
body.inner-page .nav-link {
    color: var(--text-secondary);
}
body.inner-page .nav-link:hover,
body.inner-page .nav-link.active {
    color: var(--primary);
    background: rgba(var(--navy-rgb), 0.08);
}
body.inner-page .icon-btn {
    background: rgba(var(--navy-rgb), 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(var(--navy-rgb), 0.1);
}
body.inner-page .icon-btn:hover,
body.inner-page .icon-btn:focus {
    background: var(--primary);
    color: rgb(var(--accent-rgb));
    border-color: var(--primary);
}
body.inner-page .menu-toggle span {
    background: var(--text-primary);
}
body.inner-page .menu-toggle:hover,
body.inner-page .menu-toggle:active {
    background: rgba(var(--navy-rgb), 0.12);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    min-height: 60px;
    min-width: 0; /* allow flex children to shrink and prevent overflow */
}

/* Prevent logo wrapping; allow shrink on very small screens */
.logo {
    flex-shrink: 1;
    min-width: 0;
}

/* Logo in header – no frame, transparent background */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    position: relative;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 62px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* PNG logos: keep colors accurate (logo has transparent background) */
.logo-image[src*=".png"] {
    mix-blend-mode: normal;
    filter: none;
}

/* Remove white background from SVG */
.logo-image svg,
.logo svg {
    background: transparent !important;
}

/* Hide any rect elements that have a white fill */
.logo-image svg rect[fill="white"],
.logo-image svg rect[fill="#fff"],
.logo-image svg rect[fill="#ffffff"],
.logo-image svg rect[fill="rgb(255,255,255)"],
.logo svg rect[fill="white"],
.logo svg rect[fill="#fff"],
.logo svg rect[fill="#ffffff"],
.logo svg rect[fill="rgb(255,255,255)"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Hide the first rect element (often used as background) */
.logo-image svg > rect:first-of-type,
.logo svg > rect:first-of-type {
    display: none !important;
}

.logo:hover .logo-image {
    transform: scale(1.08);
}

.logo img.logo-image {
    height: 62px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    background: transparent !important;
}

/* PNG logos in the footer */
.footer-logo .logo-image[src*=".png"] {
    mix-blend-mode: normal;
    filter: none;
}

.footer-logo {
    display: inline-flex;
    padding: 0;
    /* background overridden by .footer .footer-logo for white box in footer */
    transition: all 0.4s ease;
}

.footer-logo svg {
    background: transparent !important;
}

.footer-logo svg rect[fill*="white"],
.footer-logo svg rect[fill="#fff"],
.footer-logo svg rect[fill="#ffffff"] {
    display: none !important;
}

.footer-logo:hover {
    transform: translateY(-3px);
}

.footer-logo .logo-image {
    height: 55px;
    max-width: 200px;
    background: transparent !important;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

/* Logo text removed - only logo image is used */

/* Nav Links */
.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-link i {
    font-size: 14px;
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
}

/* Improve interaction on mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-link:active {
        background: rgba(255, 255, 255, 0.2);
    }
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    background: rgba(var(--navy-rgb), 0.08);
    color: var(--primary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 18px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.navbar.scrolled .icon-btn {
    background: rgba(var(--navy-rgb), 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(var(--navy-rgb), 0.10);
}

.icon-btn:hover,
.icon-btn:active,
.icon-btn:focus {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(var(--navy-rgb), 0.30);
    outline: none;
}

/* Improve interaction on mobile */
@media (hover: none) and (pointer: coarse) {
    .icon-btn:active {
        background: var(--primary);
        color: var(--secondary);
        transform: scale(0.95);
    }
}

.navbar.scrolled .icon-btn:hover,
.navbar.scrolled .icon-btn:active,
.navbar.scrolled .icon-btn:focus {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--secondary);
    outline: none;
}

/* Improve interaction on mobile */
@media (hover: none) and (pointer: coarse) {
    .navbar.scrolled .icon-btn:active {
        background: var(--primary);
        color: var(--secondary);
        transform: scale(0.95);
    }
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--gold-600);
    color: var(--navy-900);
    font-size: 11px;
    font-weight: 700;
    box-shadow: var(--shadow-gold-sm);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    z-index: 1001;
    width: 44px;
    height: 44px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}

.menu-toggle::before,
.menu-toggle::after {
    content: none;
}

.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

/* Improve interaction on mobile */
@media (hover: none) and (pointer: coarse) {
    .menu-toggle:active {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(0.95);
    }
}

.menu-toggle span {
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: var(--radius-full);
    transition: var(--transition);
    display: block;
    margin: 0;
    flex-shrink: 0;
    align-self: center;
}

.navbar.scrolled .menu-toggle {
    background: rgba(var(--navy-rgb), 0.08);
}

.navbar.scrolled .menu-toggle:hover,
.navbar.scrolled .menu-toggle:active {
    background: rgba(var(--navy-rgb), 0.15);
}

.navbar.scrolled .menu-toggle span {
    background: var(--text-primary);
}

/* Menu Toggle Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    transform-origin: center center;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    transform-origin: center center;
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
    border: none;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--gold-500) 100%);
    outline: none;
}

/* Improve interaction on mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:active {
        transform: translateY(0);
        box-shadow: var(--shadow-md);
    }
}

.btn-outline-primary {
    background: transparent;
    color: var(--navy-600);
    border: 2px solid var(--navy-600);
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus {
    background: var(--navy-600);
    color: var(--white);
    border-color: var(--navy-600);
    box-shadow: var(--shadow-navy);
    outline: none;
}

/* Improve interaction on mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-outline-primary:active {
        transform: scale(0.98);
    }
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-600);
    border: 2px solid var(--gold-600);
}

.btn-outline-gold:hover {
    background: var(--gold-600);
    color: var(--navy-900);
    border-color: var(--gold-600);
    box-shadow: var(--shadow-gold);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
}

/* ===============================================
   SEARCH MODAL
   =============================================== */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    padding: 40px 24px;
    text-align: center;
    transform: translateY(30px);
    transition: var(--transition);
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.search-close:hover {
    background: var(--error);
    transform: rotate(90deg);
}

.search-modal h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
}

.search-input-wrapper input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    font-size: 17px;
    color: white;
    transition: var(--transition);
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-input-wrapper input:focus {
    border-color: var(--primary);
}

.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.search-suggestions button {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    font-size: 14px;
    transition: var(--transition);
}

.search-suggestions button:hover {
    background: var(--primary);
}

/* Quick View Modal (homepage & products page) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    z-index: 1;
    transform: scale(0.95) translateY(16px);
    transition: transform 0.25s ease;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.quick-view-modal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    -webkit-overflow-scrolling: touch;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.quick-view-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
    overflow-y: auto;
}

.quick-view-images {
    background: var(--bg-secondary);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-images img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.quick-view-info {
    padding: 32px;
    overflow-y: auto;
}

.quick-view-info .product-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.quick-view-info .product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.quick-view-info .product-brand {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.quick-view-info .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.quick-view-info .product-rating .stars {
    color: rgb(var(--accent-rgb));
    font-size: 14px;
}

.quick-view-info .product-rating span {
    font-size: 14px;
    color: var(--text-muted);
}

.quick-view-info .product-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.quick-view-info .price-current {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

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

.quick-view-info .product-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.quick-view-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.quick-view-actions .quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-md);
}

.quick-view-actions .quantity-selector button {
    width: 42px;
    height: 42px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: var(--bg-secondary);
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.quick-view-actions .quantity-selector button:hover {
    background: var(--primary);
    color: white;
}

.quick-view-actions .quantity-selector input {
    width: 48px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 600;
}

.quick-view-actions .btn {
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.quick-view-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-view-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.quick-view-feature i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--navy-rgb), 0.08);
    border-radius: var(--radius-md);
    color: var(--primary);
}

@media (max-width: 768px) {
    .quick-view-modal {
        align-items: flex-end;
        padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
    }
    .quick-view-modal .modal-content {
        width: 100%;
        max-width: none;
        max-height: 85vh;
        max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
        margin: 12px;
        margin-bottom: max(12px, env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .quick-view-body {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .quick-view-images {
        padding: 16px 20px;
        min-height: 180px;
    }
    .quick-view-images img {
        max-height: 200px;
    }
    .quick-view-info {
        padding: 20px 20px 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .quick-view-info .product-name {
        font-size: 18px;
    }
    .quick-view-info .price-current {
        font-size: 22px;
    }
    .quick-view-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    .quick-view-actions .quantity-selector {
        flex-shrink: 0;
    }
    .quick-view-actions .quantity-selector button {
        width: 44px;
        height: 44px;
    }
    .quick-view-actions .btn {
        min-height: 44px;
        flex: 1 1 100%;
    }
    .quick-view-modal .btn-block {
        min-height: 44px;
        margin-top: 12px;
        padding: 14px 20px;
    }
    .quick-view-modal .modal-close {
        top: 12px;
        right: max(12px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
        z-index: 5;
    }
}

@media (max-width: 480px) {
    .quick-view-modal .modal-content {
        margin: 8px;
        margin-bottom: max(8px, env(safe-area-inset-bottom));
        max-height: 90vh;
        max-height: calc(100vh - 16px - env(safe-area-inset-bottom));
    }
    .quick-view-images {
        padding: 12px 16px;
        min-height: 160px;
    }
    .quick-view-images img {
        max-height: 180px;
    }
    .quick-view-info {
        padding: 16px 16px 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .quick-view-info .product-name {
        font-size: 17px;
    }
    .quick-view-info .product-description {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .quick-view-actions {
        margin-bottom: 16px;
    }
    .quick-view-modal .btn-block {
        margin-top: 8px;
    }
}

/* ===============================================
   HERO SECTION – Professional & consistent
   =============================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-top: 160px;
    padding-bottom: 0;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 40%, rgba(var(--accent-rgb), 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(var(--accent-alt-rgb), 0.12) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    flex: 1;
    pointer-events: auto;
    padding: 24px 0 40px;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-400);
    border-radius: 50%;
    animation: heroPulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #fff;
}

.title-line {
    display: block;
}

.title-gradient {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .title-gradient {
    background: linear-gradient(135deg, #f0feff 0%, #b8f4f8 40%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 17px;
    line-height: 1.75;
    opacity: 0.92;
    margin-bottom: 32px;
    max-width: 480px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.hero-buttons .btn {
    min-height: 52px;
    padding: 14px 28px;
    font-weight: 600;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-feature .feature-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    font-size: 17px;
}

.hero-feature span {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.92;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-phone {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 45px;
    padding: 10px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 2px 3px rgba(255, 255, 255, 0.1);
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 35px;
}

.phone-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    filter: blur(20px);
    border-radius: 50%;
}

.promo-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    animation: cardFloat 3s ease-in-out infinite;
}

.promo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-1 { top: 5%; right: -20px; }
.card-2 { top: 45%; left: -30px; animation-delay: 1s; }
.card-3 { bottom: 15%; right: -10px; animation-delay: 2s; }

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

/* Hero Stats */
.hero-stats {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 0;
    margin-top: auto;
}

.stats-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #f0feff 0%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===============================================
   BRANDS
   =============================================== */
.brands {
    padding: 32px 0;
    background: white;
    overflow: hidden;
    border-bottom: 1px solid var(--bg-secondary);
}

.brands-wrapper {
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.brands-track {
    display: flex;
    gap: 60px;
    animation: scroll 25s linear infinite;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
}

.brand-item:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.brand-item i {
    font-size: 28px;
}

@keyframes scroll {
    to { transform: translateX(-50%); }
}

/* ===============================================
   SECTION STYLES
   =============================================== */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-label.center {
    justify-content: center;
}

.section-label span:not(.label-line) {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.label-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-title.center {
    text-align: center;
}

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

.section-description {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================================
   ABOUT SECTION
   =============================================== */
.about {
    padding: 100px 0;
    background: white;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    position: relative;
    border-radius: var(--radius-2xl, 32px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--navy-rgb), 0.25), rgba(var(--accent-rgb), 0.18));
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
}

.about-img-secondary img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.experience-card {
    position: absolute;
    top: 24px;
    right: -24px;
    background: var(--gradient-primary);
    color: white;
    padding: 20px 28px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-primary);
}

.exp-number {
    display: block;
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
}

.exp-number sup {
    font-size: 22px;
}

.exp-text {
    font-size: 12px;
    opacity: 0.9;
}

.about-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 28px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon-box {
    width: 55px;
    height: 55px;
    background: rgba(var(--navy-rgb), 0.10);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition);
}

.about-feature:hover .feature-icon-box {
    background: var(--gradient-primary);
    color: white;
}

.feature-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

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

/* ===============================================
   PRODUCTS SECTION
   =============================================== */
.products {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.products-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(var(--navy-rgb), 0.18);
    top: -150px;
    right: -150px;
}

.bg-shape.shape-2 {
    width: 350px;
    height: 350px;
    background: rgba(var(--accent-rgb), 0.16);
    bottom: -100px;
    left: -100px;
}

.section-header {
    margin-bottom: 50px;
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.product-card button,
.product-card .action-btn,
.product-card .add-to-cart {
    pointer-events: auto !important;
    z-index: 2;
    position: relative;
}

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

.product-image {
    position: relative;
    height: 260px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--gray-200));
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.product-badge.new {
    background: var(--gold-600);
    color: var(--navy-900);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 10;
    pointer-events: auto;
}

.product-card:hover .product-actions,
.product-card:active .product-actions {
    transform: translateY(0);
}

/* On mobile, always show product action buttons */
@media (max-width: 768px) {
    .product-actions {
        transform: translateY(0);
        pointer-events: auto;
    }
}

.action-btn {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto !important;
    z-index: 11;
    position: relative;
}

.action-btn:hover {
    background: var(--gradient-primary);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-brand {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    flex-direction: column;
}

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

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

.add-to-cart {
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

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

.products-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
    font-size: 16px;
}

.products-empty-msg a {
    color: var(--primary);
    font-weight: 600;
}

.products-footer {
    text-align: center;
    margin-top: 48px;
}

/* ===============================================
   FEATURES SECTION
   =============================================== */
.features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.feature-card-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150px;
    height: 150px;
    background: rgba(var(--accent-rgb), 0.12);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover .feature-card-bg {
    opacity: 1;
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(var(--navy-rgb), 0.10);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-number {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 44px;
    font-weight: 900;
    color: rgba(var(--navy-rgb), 0.10);
    line-height: 1;
}

/* ===============================================
   TESTIMONIALS
   =============================================== */
.testimonials {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-rating i {
    color: rgb(var(--accent-rgb));
    font-size: 16px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 15px;
    font-weight: 700;
}

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

/* ===============================================
   CTA SECTION
   =============================================== */
.cta {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(var(--accent-rgb), 0.28) 0%, transparent 45%),
        radial-gradient(circle at 70% 50%, rgba(var(--accent-alt-rgb), 0.22) 0%, transparent 45%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.cta-form .form-input-wrapper {
    flex: 1;
    position: relative;
}

.cta-form .form-input-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.cta-form .form-input-wrapper input {
    width: 100%;
    padding: 16px 48px 16px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-size: 15px;
    color: white;
    transition: var(--transition);
}

.cta-form .form-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-form .form-input-wrapper input:focus {
    border-color: var(--primary);
}

/* ===============================================
   CONTACT SECTION
   =============================================== */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contact-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-card-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-card-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.branches {
    margin-bottom: 24px;
}

.branches h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.branches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.branches-list span {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
}

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

.social-link {
    width: 46px;
    height: 46px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.35);
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 36px;
    border-radius: var(--radius-xl);
}

.contact-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: white;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Contact – Location Map (consistent with site) */
.contact-map-wrapper {
    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid var(--border-light);
}

.contact-map-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-map-address {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.contact-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-600);
    text-decoration: none;
    margin-bottom: 20px;
    padding: 8px 0;
    transition: color 0.2s ease, gap 0.2s ease;
}

.contact-map-link:hover {
    color: var(--gold-800);
    gap: 10px;
}

.contact-map-link:focus {
    outline: 2px solid var(--gold-600);
    outline-offset: 2px;
}

.contact-map-link i {
    font-size: 12px;
}

.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    max-width: 100%;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 400px;
    min-height: 280px;
    vertical-align: top;
    border: 0;
}

@media (max-width: 768px) {
    .contact-map-wrapper {
        margin-top: 48px;
        padding-top: 36px;
    }
    .contact-map-title {
        font-size: 20px;
    }
    .contact-map-address {
        font-size: 14px;
    }
    .contact-map iframe {
        height: 320px;
        min-height: 260px;
    }
}

@media (max-width: 480px) {
    .contact-map-wrapper {
        margin-top: 36px;
        padding-top: 28px;
    }
    .contact-map-title {
        font-size: 18px;
    }
    .contact-map iframe {
        height: 280px;
        min-height: 240px;
    }
}

/* ===============================================
   LEGAL PAGES (Privacy Policy, Terms & Conditions)
   =============================================== */
.page-header-simple {
    background: var(--gradient-hero);
    padding: 140px 0 40px;
    color: white;
}

.page-header-simple h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header-simple .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.page-header-simple .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header-simple .breadcrumb a:hover {
    color: white;
}

.page-header-simple .breadcrumb i {
    font-size: 10px;
}

.legal-section {
    padding: 48px 0 64px;
    background: var(--bg-secondary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--text-primary);
}

.legal-content .legal-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-content p,
.legal-content ul {
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-secondary);
}

.legal-content ul {
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--gold-600);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-header-simple {
        padding: 120px 0 32px;
    }
    .page-header-simple h1 {
        font-size: 28px;
    }
    .legal-section {
        padding: 32px 0 48px;
    }
    .legal-content h2 {
        font-size: 18px;
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    .page-header-simple {
        padding: 100px 0 24px;
        padding-top: max(100px, 80px + env(safe-area-inset-top));
    }
    .page-header-simple h1 {
        font-size: 24px;
    }
    .legal-section {
        padding-bottom: max(48px, env(safe-area-inset-bottom));
    }
    .legal-content {
        padding: 0 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ===============================================
   FOOTER – Consistent & mobile-friendly
   =============================================== */
.footer {
    background: var(--bg-dark);
    color: white;
}

.footer-top {
    padding: 56px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.footer .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.footer .footer-logo:hover {
    transform: translateY(-2px);
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.footer .footer-logo .logo-image {
    height: 48px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-about {
    max-width: 320px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: 0.01em;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    display: inline-block;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-newsletter h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.footer-newsletter > p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    margin-bottom: 14px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.newsletter-form input {
    flex: 1;
    min-height: 48px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-form button {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.payment-methods span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 8px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.5;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
}

.footer-bottom-links a:hover {
    color: var(--gold-400);
}

/* ===============================================
   UTILITIES
   =============================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* Cart sidebar above cart overlay (z: 1002) */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -420px;
    width: 420px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.cart-sidebar.active {
    left: 0;
}

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

.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.cart-close:hover {
    background: var(--error);
    color: white;
}

.cart-shipping-bar {
    height: 6px;
    background: var(--gray-200);
    margin: 0 24px;
}

.shipping-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: var(--transition);
}

.shipping-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    padding: 12px 24px;
    border-bottom: 1px solid var(--bg-secondary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

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

.cart-item-remove {
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--error);
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--bg-secondary);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-total span:first-child {
    font-size: 16px;
    font-weight: 600;
}

.total-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Cart overlay above navbar when open; no overlap with nav overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 90px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-right: 4px solid var(--primary);
    transform: translateX(120%);
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 22px;
    color: var(--primary);
}

.toast.success {
    border-right-color: var(--success);
}

.toast.success i {
    color: var(--success-dark);
}

.toast.error {
    border-right-color: var(--error);
}

.toast.error i {
    color: var(--error-dark);
}

.toast.warning {
    border-right-color: var(--warning);
}

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

.toast.info {
    border-right-color: var(--info);
}

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

.toast span {
    font-weight: 600;
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 32px 0 48px;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-text .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-top {
        padding: 48px 0 36px;
    }
}

@media (max-width: 992px) {
    .top-bar-content {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .top-info {
        display: none;
    }
    
    .top-actions {
        display: flex;
    }
    
    .navbar {
        top: 0;
    }
    
    /* Optimise logo sizing on tablet */
    .logo {
        padding: 1px 4px;
    }
    
    .logo-image {
        height: 52px;
        max-width: 180px;
    }
    
    .logo img.logo-image {
        height: 52px;
        max-width: 180px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 85vw);
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: white;
        flex-direction: column;
        padding: max(72px, 56px + env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        transition: right 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
    }
    
    .nav-links.active {
        right: 0;
        visibility: visible;
    }
    
    .nav-link {
        color: var(--text-primary);
        width: 100%;
        padding: 14px 18px;
        border-radius: var(--radius-md);
        margin-bottom: 4px;
        font-size: 15px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        cursor: pointer;
    }
    
    .nav-link:hover,
    .nav-link.active,
    .nav-link:focus {
        background: rgba(var(--navy-rgb), 0.08);
        color: var(--primary);
        outline: none;
    }
    
    .nav-link:active {
        background: rgba(var(--navy-rgb), 0.12);
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2.5px;
        align-self: center;
        margin: 0;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .navbar-content {
        gap: 12px;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        margin-bottom: 40px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .search-modal {
        align-items: flex-start;
        padding-top: max(60px, env(safe-area-inset-top));
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        overflow-y: auto;
    }
    .search-modal-content {
        width: 100%;
        max-width: 100%;
        padding: 24px 16px;
        padding-top: max(48px, 24px + env(safe-area-inset-top));
        margin: 0 auto;
        box-sizing: border-box;
    }
    .search-close {
        top: max(16px, env(safe-area-inset-top));
        left: max(16px, env(safe-area-inset-left));
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    .search-modal h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .search-input-wrapper {
        margin-bottom: 16px;
    }
    .search-input-wrapper input {
        width: 100%;
        padding: 16px 48px 16px 16px;
        font-size: 16px;
        min-height: 48px;
        box-sizing: border-box;
    }
    .search-suggestions {
        gap: 8px;
    }
    .search-suggestions button {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
    }
    .top-bar {
        display: none;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar.scrolled {
        padding: 8px 0;
    }
    
    /* Optimise logo sizing on mobile */
    .logo {
        padding: 1px 3px;
    }
    
    .logo-image {
        height: 44px;
        max-width: 150px;
    }
    
    .logo img.logo-image {
        height: 44px;
        max-width: 150px;
    }
    
    /* Optimise navbar content spacing on mobile */
    .navbar-content {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .icon-btn:active {
        background: var(--primary);
        color: var(--secondary);
        transform: scale(0.95);
    }
    
    .menu-toggle {
        width: 44px;
        height: 44px;
        padding: 0;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2.5px;
        align-self: center;
        margin: 0;
    }
    
    .menu-toggle:active {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(0.95);
    }
    
    /* Prevent logo breaking on small screens */
    .logo {
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    .hero {
        padding-top: max(100px, 80px + env(safe-area-inset-top));
    }
    
    .hero-content {
        padding: 24px 0 36px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 28px;
        padding: 0 8px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        min-height: 48px;
        justify-content: center;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    
    .hero-feature {
        font-size: 13px;
    }
    
    .hero-feature .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .hero-stats {
        padding: 24px 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .stats-wrapper {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-divider {
        display: none;
    }
    
    /* Filter horizontal scroll */
    .products-filter {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    
    .product-image {
        height: 160px;
        min-height: 160px;
    }
    
    .product-image img {
        object-fit: contain;
    }
    
    .product-info {
        padding: 12px 14px;
    }
    
    .product-name {
        font-size: 13px;
        line-height: 1.35;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-brand {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .product-footer {
        gap: 8px;
    }
    
    .price-current {
        font-size: 16px;
    }
    
    .price-old {
        font-size: 12px;
    }
    
    .add-to-cart {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
    }
    
    .product-actions {
        padding: 10px;
        gap: 8px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .feature-card .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    /* ========== الفوتر على الموبايل – عمود واحد، ترتيب واضح ========== */
    .footer {
        direction: ltr;
        text-align: left;
    }
    
    .footer .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .footer-top {
        padding: 32px 0 28px;
    }
    
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
        text-align: left;
    }
    
    .footer-about {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer .footer-logo {
        display: inline-flex;
        justify-content: flex-start;
        align-items: center;
        padding: 14px 20px;
        border-radius: var(--radius-xl);
        background: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        margin-bottom: 12px;
    }
    
    .footer .footer-logo .logo-image {
        height: 44px;
        max-width: 160px;
        object-fit: contain;
    }
    
    .footer-about p {
        text-align: left;
        margin-bottom: 0;
        font-size: 14px;
        line-height: 1.7;
    }
    
    .footer-social {
        justify-content: flex-start;
        margin-top: 12px;
    }
    
    /* كل أقسام الروابط – يسار */
    .footer .footer-links {
        text-align: left;
    }
    
    .footer .footer-links h4 {
        font-size: 15px;
        margin-bottom: 10px;
        text-align: left;
        color: #fff;
    }
    
    .footer .footer-links ul {
        padding-left: 0;
        list-style: none;
        margin: 0;
    }
    
    .footer .footer-links ul li {
        margin-bottom: 6px;
    }
    
    .footer .footer-links a {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        font-size: 14px;
        padding: 6px 0;
        min-height: 44px;
        color: rgba(255, 255, 255, 0.88);
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Quick links – على الشمال مثل باقي الأقسام */
    .footer .footer-grid .footer-links-quick {
        display: block;
        text-align: left;
        width: 100%;
    }
    
    .footer .footer-grid .footer-links-quick h4 {
        text-align: left;
    }
    
    .footer .footer-grid .footer-links-quick ul {
        text-align: left;
        padding-left: 0;
        margin: 0;
        list-style: none;
    }
    
    .footer .footer-grid .footer-links-quick ul li {
        text-align: left;
        margin-bottom: 6px;
    }
    
    .footer .footer-grid .footer-links-quick a {
        justify-content: flex-start;
        text-align: left;
    }
    
    .footer-newsletter {
        max-width: 100%;
        text-align: left;
    }
    
    .footer-newsletter h4 {
        text-align: left;
    }
    
    .footer-newsletter > p {
        text-align: left;
        margin-bottom: 12px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .newsletter-form input {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        box-sizing: border-box;
    }
    
    .newsletter-form button {
        width: 100%;
        min-height: 48px;
    }
    
    .payment-methods {
        text-align: left;
    }
    
    .payment-methods span {
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        padding: 16px 0;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .footer-bottom .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 12px;
    }
    
    .footer-bottom p {
        text-align: left;
        font-size: 12px;
        line-height: 1.5;
        margin: 0;
    }
    
    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }
    
    .footer-bottom-links a {
        font-size: 12px;
        padding: 4px 0;
    }
    
    .cart-sidebar {
        width: 92%;
        max-width: 360px;
        left: -100%;
        height: 100vh;
        height: 100dvh;
        padding-right: env(safe-area-inset-right);
        box-sizing: border-box;
    }
    
    .cart-sidebar.active {
        left: 0;
    }
    
    .toast-container {
        right: 16px;
        left: 16px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    /* البحث – حجم الموبايل الصغير */
    .search-modal {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    .search-modal-content {
        padding: 20px 12px;
        padding-top: max(44px, 20px + env(safe-area-inset-top));
    }
    .search-close {
        top: max(12px, env(safe-area-inset-top));
        left: max(12px, env(safe-area-inset-left));
    }
    .search-modal h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .search-input-wrapper input {
        padding: 14px 44px 14px 14px;
        font-size: 16px;
        min-height: 48px;
    }
    .search-suggestions button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .navbar {
        padding: 8px 0;
    }
    
    .navbar.scrolled {
        padding: 6px 0;
    }
    
    /* Optimise logo for small screens */
    .logo {
        padding: 1px 3px;
    }
    
    .logo-image {
        height: 40px;
        max-width: 130px;
    }
    
    .logo img.logo-image {
        height: 40px;
        max-width: 130px;
    }
    
    .navbar-content {
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .icon-btn:active {
        background: var(--primary);
        color: var(--secondary);
        transform: scale(0.95);
    }
    
    .menu-toggle {
        width: 44px;
        height: 44px;
        padding: 0;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .menu-toggle:active {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(0.95);
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2.5px;
        align-self: center;
        margin: 0;
    }
    
    /* Prevent logo wrapping on very small screens */
    .logo {
        flex-shrink: 0;
        min-width: fit-content;
        max-width: calc(100% - 100px);
    }
    
    .cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }
    
    .nav-links {
        width: 85%;
        max-width: 300px;
        right: -100%;
        padding: max(70px, 56px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 14px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .nav-link:active {
        background: rgba(var(--navy-rgb), 0.15);
    }
    
    .hero {
        padding-top: max(120px, 100px + env(safe-area-inset-top));
    }
    
    .hero-content {
        padding: 20px 0 28px;
    }
    
    .hero-badge {
        padding: 8px 14px;
        font-size: 11px;
        letter-spacing: 0.03em;
        margin-bottom: 18px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 14px;
        letter-spacing: -0.02em;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 24px;
    }
    
    .hero-buttons {
        gap: 10px;
        margin-bottom: 28px;
    }
    
    .hero-buttons .btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .hero-features {
        gap: 12px;
    }
    
    .hero-feature .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .hero-feature span {
        font-size: 12px;
    }
    
    .hero-stats {
        padding: 20px 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    
    .stats-wrapper {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    /* Footer – small mobile */
    .footer-top {
        padding: 32px 0 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    
    .footer-grid {
        gap: 24px 16px;
    }
    
    .footer .footer-logo {
        padding: 12px 18px;
        border-radius: var(--radius-lg);
        background: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
    
    .footer .footer-logo .logo-image {
        height: 40px;
        max-width: 140px;
    }
    
    .footer-about p {
        font-size: 13px;
        text-align: left;
    }
    
    /* الفوتر – موبايل صغير */
    .footer-top {
        padding: 28px 0 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    
    .footer-grid {
        gap: 24px;
    }
    
    .footer .footer-logo {
        padding: 12px 18px;
    }
    
    .footer .footer-logo .logo-image {
        height: 40px;
        max-width: 140px;
    }
    
    .footer .footer-links h4 {
        font-size: 14px;
    }
    
    .footer .footer-links a {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding: 14px 0;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
    
    .footer-bottom p,
    .footer-bottom-links a {
        font-size: 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .product-card .product-name {
        font-size: 15px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .about-img-main img {
        height: 300px;
    }
    
    .about-img-secondary {
        width: 120px;
        bottom: -20px;
        right: -15px;
    }
    
    .about-img-secondary img {
        height: 120px;
    }
    
    .experience-card {
        padding: 14px 18px;
        top: 16px;
        right: -16px;
    }
    
    .exp-number {
        font-size: 32px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 220px;
        min-height: 220px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-name {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    
    .product-brand {
        font-size: 13px;
    }
    
    .price-current {
        font-size: 18px;
    }
    
    .products-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ===============================================
   iPhone 13 / iPhone range (430px and below)
   iPhone 13: 390×844, iPhone 14 Plus: 428×926, Pro Max: 430×932
   =============================================== */
@media (max-width: 430px) {
    .container {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }
    
    /* البحث – آيفون وشاشات ضيقة */
    .search-modal-content {
        padding: 18px 12px;
        padding-top: max(40px, 18px + env(safe-area-inset-top));
    }
    .search-modal h2 {
        font-size: 19px;
    }
    .search-input-wrapper input {
        min-height: 48px;
    }
    
    .footer .footer-logo {
        background: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .logo-image {
        height: 42px;
        max-width: 140px;
    }
    
    .logo img.logo-image {
        height: 42px;
        max-width: 140px;
    }
    
    .hero {
        padding-top: max(100px, 80px + env(safe-area-inset-top));
    }
    
    .hero-title {
        font-size: 23px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .product-image {
        height: 200px;
        min-height: 200px;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .back-to-top {
        left: max(14px, env(safe-area-inset-left));
        bottom: max(24px, env(safe-area-inset-bottom));
    }
    
    .whatsapp-btn {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(24px, env(safe-area-inset-bottom));
    }
    
    .toast-container {
        left: max(14px, env(safe-area-inset-left));
        right: max(14px, env(safe-area-inset-right));
        bottom: max(24px, env(safe-area-inset-bottom));
    }
}

/* iPhone 13 / 14 base & SE / mini (390px and below) */
@media (max-width: 390px) {
    .container {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    
    .footer-grid {
        gap: 20px;
    }
    
    .footer .footer-logo {
        background: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .logo-image {
        height: 40px;
        max-width: 130px;
    }
    
    .logo img.logo-image {
        height: 40px;
        max-width: 130px;
    }
    
    .product-image {
        height: 180px;
        min-height: 180px;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .navbar,
    .nav-overlay,
    .whatsapp-btn,
    .back-to-top,
    .cart-sidebar,
    .cart-overlay,
    .toast-container {
        display: none !important;
    }
}
