/* 
 * LUXURY-F — ENTERPRISE DESIGN SYSTEM
 * Inspired by Glasz Template — Luxury Industrial Aesthetic
 * Palette: Deep Navy + Gold + Warm Cream
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Core Palette */
    --navy:        #0d0d1a;
    --navy-mid:    #1a1a2e;
    --navy-light:  #252542;
    --gold:        #c9a227;
    --gold-light:  #e2b93b;
    --gold-pale:   #f5e6b0;
    --cream:       #F5F3EE;
    --cream-dark:  #ECEAE4;
    --white:       #ffffff;
    --charcoal:    #2a2a2a;
    --gray-600:    #6b7280;
    --gray-400:    #9ca3af;
    --gray-200:    #e5e7eb;
    --gray-100:    #f3f4f6;

    /* Semantic */
    --text-primary:   var(--navy);
    --text-secondary: #555562;
    --text-muted:     #8888a0;
    --bg:             var(--cream);
    --bg-section:     var(--cream-dark);
    --border:         rgba(0,0,0,0.09);
    --border-strong:  rgba(0,0,0,0.15);

    /* States */
    --success: #1a7a4a;
    --warning: #c27a0e;
    --danger:  #c0392b;
    --info:    #1a5fa0;

    /* Shadows */
    --shadow-xs:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm:  0 4px 12px rgba(0,0,0,0.07);
    --shadow-md:  0 8px 25px rgba(0,0,0,0.1);
    --shadow-lg:  0 16px 48px rgba(0,0,0,0.13);
    --shadow-xl:  0 24px 64px rgba(0,0,0,0.16);
    --shadow-gold: 0 8px 32px rgba(201,162,39,0.25);

    /* Radii */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  14px;
    --radius-xl:  22px;
    --radius-full: 9999px;

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

    /* Typography */
    --font-sans:    'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Transitions */
    --transition-fast:   0.15s ease;
    --transition-base:   0.25s ease;
    --transition-slow:   0.45s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1320px;
    --container-pad: 2rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

a:hover { color: var(--gold-light); }

strong { font-weight: 700; }

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

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--space-24) 0;
}

.section-sm {
    padding: var(--space-16) 0;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0.6rem 0;
    text-align: center;
    font-weight: 500;
    position: relative;
    z-index: 200;
}

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

.announcement-bar .bar-left,
.announcement-bar .bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.announcement-bar a {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    transition: color var(--transition-fast);
}

.announcement-bar a:hover {
    color: var(--gold);
}

.announcement-bar .bar-center {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 243, 238, 0.92);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(245, 243, 238, 0.98);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    gap: 2rem;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-mark {
    width: 38px;
    height: 38px;
    background: var(--navy);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-mark span {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.05em;
    font-family: var(--font-display);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 460px;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--cream-dark);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}

.search-form input {
    flex: 1;
    padding: 0.65rem 1.2rem;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

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

.search-form button {
    padding: 0.65rem 1.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.search-form button:hover { color: var(--gold); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-shrink: 0;
}

.header-action-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--navy);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.header-action-btn:hover {
    background: var(--cream-dark);
    color: var(--gold);
    transform: translateY(-1px);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--navy);
    color: var(--gold);
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-btn:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    min-width: 210px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
    z-index: 1000;
    padding: 0.5rem 0;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--cream);
    color: var(--gold);
}

.dropdown-menu a i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.4rem 0;
}

.btn-login-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    background: var(--navy);
    color: var(--white) !important;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-login-header:hover {
    background: var(--gold);
    color: var(--navy) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

/* Navigation Bar */
.main-nav {
    border-top: 1px solid var(--border);
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.nav-list li > a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.855rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.nav-list li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.nav-list li > a:hover,
.nav-list li > a.active {
    color: var(--navy);
}

.nav-list li > a:hover::after,
.nav-list li > a.active::after {
    transform: scaleX(1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    cursor: pointer;
    gap: 5px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.marquee-section {
    background: var(--navy);
    overflow: hidden;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee-track {
    display: flex;
    animation: marquee 28s linear infinite;
    width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2rem;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.marquee-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.marquee-item strong {
    color: var(--gold);
    font-weight: 700;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

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

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

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

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #a93226;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.4rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-full { width: 100%; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 88vh;
    background: var(--navy);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 70%),
                radial-gradient(ellipse 40% 50% at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-wordmark {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(8rem, 18vw, 22rem);
    font-weight: 900;
    color: rgba(255,255,255,0.025);
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    font-family: var(--font-display);
    white-space: nowrap;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-light) 0%, rgba(201,162,39,0.15) 100%);
    border: 1px solid rgba(255,255,255,0.07);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,26,0.6) 0%, transparent 50%);
}

.hero-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

.hero-badge-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-badge-text { font-size: 0.8rem; line-height: 1.3; }
.hero-badge-text strong { font-weight: 700; display: block; }
.hero-badge-text span { color: rgba(255,255,255,0.6); font-size: 0.72rem; }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.features-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    divide-x: var(--border);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 2rem;
    border-right: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.feature-item:last-child { border-right: none; }

.feature-item:hover { background: var(--cream); }

.feature-icon {
    width: 46px;
    height: 46px;
    background: var(--navy);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.feature-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.section-header.centered {
    text-align: center;
}

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

.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.category-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-light);
    text-decoration: none;
    display: block;
    transition: transform var(--transition-base);
}

.category-card:hover { transform: translateY(-4px); }
.category-card:hover img { transform: scale(1.08); }
.category-card:hover .category-overlay { opacity: 1; }

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.4rem;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,26,0.85) 0%, rgba(13,13,26,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    transition: opacity var(--transition-base);
}

.category-card .category-overlay { opacity: 0.8; }

.category-name {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.category-count {
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    font-weight: 500;
}

.category-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 0.75rem;
    opacity: 0;
    transform: translate(4px, -4px);
    transition: all var(--transition-base);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
    display: grid;
    gap: 1.5rem;
}

.products-grid-4 { grid-template-columns: repeat(4, 1fr); }
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(201,162,39,0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1;
    background: var(--cream);
    overflow: hidden;
}

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

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

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: var(--radius-sm);
}

.badge-discount { background: var(--danger); color: var(--white); }
.badge-new      { background: var(--gold); color: var(--navy); }
.badge-soldout  { background: var(--charcoal); color: rgba(255,255,255,0.8); }

.product-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(13,13,26,0.85), transparent);
    display: flex;
    gap: 0.5rem;
    translate: 0 100%;
    transition: translate var(--transition-base);
    z-index: 3;
}

.product-card:hover .product-actions-overlay { translate: 0 0; }

.product-actions-overlay .btn {
    flex: 1;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
}

.btn-add-cart {
    background: var(--gold);
    color: var(--navy);
}

.btn-add-cart:hover {
    background: var(--gold-light);
    color: var(--navy);
}

.btn-view-product {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-view-product:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
    text-decoration: none;
}

.product-name {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-decoration: none;
}

.product-name:hover { color: var(--gold); }

.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.price-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.price-original {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.product-stock-tag {
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.stock-ok       { color: var(--success); }
.stock-low      { color: var(--warning); }
.stock-none     { color: var(--danger); }

/* ============================================================
   BRAND TRUST SECTION
   ============================================================ */
.trust-section {
    background: var(--navy);
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
}

.trust-wordmark {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(5rem, 12vw, 14rem);
    font-weight: 900;
    color: rgba(255,255,255,0.024);
    letter-spacing: -0.04em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.trust-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition-base);
}

.trust-item:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}

.trust-icon {
    width: 66px;
    height: 66px;
    background: rgba(201,162,39,0.12);
    border: 1px solid rgba(201,162,39,0.25);
    border-radius: var(--radius-lg);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.trust-item:hover .trust-icon {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.trust-item h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: rgba(255,255,255,0.45);
    font-size: 0.83rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
    background: var(--cream-dark);
    padding: var(--space-20) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.newsletter-inner {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.newsletter-inner p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-strong);
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    outline: none;
    font-size: 0.875rem;
    background: var(--white);
    font-family: var(--font-sans);
    color: var(--text-primary);
    min-width: 0;
}

.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
    padding: 1rem 1.5rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
    letter-spacing: 0.03em;
    transition: background var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form button:hover { background: var(--gold); color: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.55);
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(5rem, 16vw, 22rem);
    font-weight: 900;
    color: rgba(255,255,255,0.022);
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
}

.footer-body {
    padding: var(--space-20) var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.footer-brand .site-logo { margin-bottom: 1.25rem; }
.footer-brand .logo-text { color: var(--white); }

.footer-description {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(255,255,255,0.07);
}

.social-btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: rgba(255,255,255,0.45);
    font-size: 0.855rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.855rem;
}

.footer-contact-item i {
    color: var(--gold);
    width: 16px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 2;
}

.footer-bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.35);
}

.footer-payments i {
    font-size: 1.6rem;
    transition: color var(--transition-fast);
}

.footer-payments i:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}

textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

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

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

table thead th {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: middle;
}

table tbody tr:last-child td { border-bottom: none; }

table tbody tr:hover td { background: var(--cream); }

/* ============================================================
   NOTIFICATIONS / TOAST
   ============================================================ */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-sans);
    min-width: 280px;
    max-width: 380px;
    backdrop-filter: blur(12px);
    animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast.out { animation: toastOut 0.3s ease forwards; }

.toast-success { background: rgba(6, 78, 59, 0.95); color: #d1fae5; }
.toast-error   { background: rgba(127, 29, 29, 0.95); color: #fee2e2; }
.toast-info    { background: rgba(30, 58, 138, 0.95); color: #dbeafe; }

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

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

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--text-muted); }
.d-flex      { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.w-full { width: 100%; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Selection */
::selection { background: var(--gold); color: var(--navy); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .footer-body { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    :root { --container-pad: 1.5rem; }
    .hero-container { grid-template-columns: 1fr; max-width: 600px; }
    .hero-visual { display: none; }
    .hero { min-height: 70vh; }
}

@media (max-width: 768px) {
    :root {
        --container-pad: 1rem;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }

    .announcement-bar .bar-left,
    .announcement-bar .bar-right { display: none; }
    .announcement-bar .container { justify-content: center; }

    .header-search { display: none; }
    .mobile-menu-btn { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        z-index: 99;
        padding: 1rem 0;
    }

    .main-nav.open { display: block; }

    .nav-list { flex-direction: column; gap: 0; }
    .nav-list li > a { padding: 0.875rem var(--container-pad); font-size: 0.9rem; }
    .nav-list li > a::after { display: none; }

    .features-strip .container { grid-template-columns: repeat(2, 1fr); }
    .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
    .feature-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .feature-item:nth-last-child(-n+2) { border-bottom: none; }

    .hero h1 { font-size: 2.2rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-container { padding: 4rem var(--container-pad); }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }

    .products-grid-4,
    .products-grid-3 { grid-template-columns: repeat(2, 1fr); }

    .section-top { flex-direction: column; align-items: flex-start; }

    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .footer-body { grid-template-columns: 1fr; gap: 2rem; padding: var(--space-12) var(--container-pad); }
    .footer-bottom-inner { justify-content: center; flex-direction: column; text-align: center; }

    .newsletter-form { flex-direction: column; border-radius: var(--radius-md); }
    .newsletter-form input,
    .newsletter-form button { width: 100%; text-align: center; justify-content: center; }

    .form-row { grid-template-columns: 1fr; }

    .toast { left: 1rem; right: 1rem; max-width: calc(100% - 2rem); }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid-4,
    .products-grid-3 { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .features-strip .container { grid-template-columns: 1fr; }
    .feature-item { border-right: none !important; }
}

/* ============================================================
   PILL BADGE SYSTEM
   ============================================================ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.pill-success { background: #dcfce7; color: #166534; }
.pill-warning { background: #fef9c3; color: #854d0e; }
.pill-danger  { background: #fee2e2; color: #991b1b; }
.pill-info    { background: #dbeafe; color: #1e40af; }
.pill-neutral { background: #f3f4f6; color: #374151; }

/* ============================================================
   ALERT STYLES (shared frontend/admin)
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.alert i { flex-shrink: 0; margin-top: 2px; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ============================================================
   TABLE WRAP (for overflow-x on small screens)
   ============================================================ */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--cream);
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-primary);
    vertical-align: middle;
}

table tbody tr:last-child td { border-bottom: none; }
table tbody tr:hover { background: var(--cream); }

/* ============================================================
   FORM IMPROVEMENTS
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(13, 13, 26, 0.07);
}

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

/* ============================================================
   SHOP — RESPONSIVE SIDEBAR
   ============================================================ */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr !important;
    }
    .shop-sidebar {
        position: static !important;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    .shop-sidebar > div {
        border-bottom: none !important;
    }
}

@media (max-width: 640px) {
    .shop-sidebar {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   CART — MOBILE STACK
   ============================================================ */
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   PRODUCT PAGE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   DASHBOARD / ACCOUNT — SIDEBAR COLLAPSE
   ============================================================ */
@media (max-width: 768px) {
    #account-grid {
        grid-template-columns: 1fr !important;
    }
    #account-grid aside {
        position: static !important;
    }
    #account-grid aside > div {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        border-radius: var(--radius-lg);
    }
    #account-grid aside a {
        flex: 1;
        min-width: 120px;
        text-align: center;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        justify-content: center;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.78rem !important;
    }
    #account-grid aside a.active-link,
    #account-grid aside a[style*="var(--gold)"] {
        border-bottom: 3px solid var(--gold) !important;
        border-left: none !important;
    }
}

/* ============================================================
   CHECKOUT — MOBILE
   ============================================================ */
@media (max-width: 900px) {
    #checkout-grid {
        grid-template-columns: 1fr !important;
    }
    #order-summary-panel {
        position: static !important;
        order: -1;
    }
}

@media (max-width: 600px) {
    .co-row,
    .co-row-3 {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   ANNOUNCEMENT BAR — MOBILE HIDE CONTACTS
   ============================================================ */
@media (max-width: 480px) {
    .announcement-bar { display: none; }
}

/* ============================================================
   HEADER — IMPROVED MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .header-actions .header-search { display: none; }
    .header-logo span { display: none; }
}

/* ============================================================
   HERO — FULL MOBILE
   ============================================================ */
@media (max-width: 480px) {
    .hero { min-height: 85vh; }
    .hero-ctas { flex-direction: column !important; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-wordmark { font-size: 5rem !important; }
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-sm { padding: 2rem 0; }
.section    { padding: 4rem 0; }
.section-lg { padding: 6rem 0; }

/* ============================================================
   CARD GENERIC
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ============================================================
   MOBILE PRODUCT GRID OVERRIDE
   ============================================================ */
@media (max-width: 400px) {
    .products-grid-4,
    .products-grid-3 {
        grid-template-columns: 1fr !important;
    }
    .category-card { min-height: 160px !important; }
}

/* ============================================================
   FOOTER MOBILE
   ============================================================ */
@media (max-width: 480px) {
    .footer-body {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .footer-social { justify-content: center; }
    .footer-tagline { text-align: center; }
}

/* ============================================================
   ADMIN — RESPONSIVE OVERRIDES (when accessed on mobile)
   ============================================================ */
@media (max-width: 600px) {
    .a-stats { grid-template-columns: 1fr !important; }
    .a-grid-2,
    .a-grid-3 { grid-template-columns: 1fr !important; }
}

/* ============================================================
   SMOOTH SCROLLBAR (webkit)
   ============================================================ */
* { scrollbar-width: thin; scrollbar-color: var(--gold) var(--cream); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ============================================================
   FOCUS VISIBLE ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================================
   PRINT — HIDE NAV
   ============================================================ */
@media print {
    .header-main, .announcement-bar, .footer, .main-nav { display: none !important; }
    body { background: white; color: black; }
}

/* ============================================================
   MOBILE-FIRST TOUCH ENHANCEMENTS
   ============================================================ */

/* ── Minimum tap target size (WCAG 2.5.5) ─────────────── */
.btn, button, .header-action-btn, .nav-link, .a-btn,
.a-nav-link, select, input[type="submit"] {
    min-height: 44px;
}

.header-action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── iOS safe area padding ─────────────────────────────── */
body {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ============================================================
   ANNOUNCEMENT BAR — SCROLLING TICKER ON MOBILE
   ============================================================ */
@media (max-width: 640px) {
    .announcement-bar { display: block !important; overflow: hidden; }
    .announcement-bar .container {
        display: block !important;
        white-space: nowrap;
        overflow: hidden;
    }
    .bar-left, .bar-right { display: none !important; }
    .bar-center {
        display: inline-block !important;
        animation: ticker 18s linear infinite;
        white-space: nowrap;
        padding-left: 100%;
        font-size: 0.72rem;
    }
    @keyframes ticker {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-200%); }
    }
}

/* ============================================================
   HEADER — MOBILE SEARCH BAR (SLIDE DOWN)
   ============================================================ */
.mobile-search-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-mid);
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    z-index: 200;
}

.mobile-search-bar.open { display: block; }

.mobile-search-bar form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search-bar input {
    flex: 1;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
}

.mobile-search-bar input::placeholder { color: rgba(255,255,255,0.4); }

.mobile-search-bar button {
    padding: 0.65rem 1rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
}

/* ── Search toggle button (visible mobile only) ─────────── */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: color 0.2s;
}

@media (max-width: 768px) {
    .mobile-search-toggle { display: flex; }
    .header-search { display: none !important; }
    .site-header { position: relative; }
}

/* ============================================================
   MOBILE NAV — FULL-SCREEN OVERLAY
   ============================================================ */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--navy);
        z-index: 999;
        display: flex;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav .nav-list {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .main-nav .nav-link {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        font-size: 1.2rem;
        font-weight: 700;
        color: rgba(255,255,255,0.7);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: color 0.2s;
    }

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

    /* Close X button inside nav */
    .main-nav::before {
        content: '×';
        position: absolute;
        top: 1.25rem;
        right: 1.5rem;
        font-size: 2rem;
        color: rgba(255,255,255,0.4);
        cursor: pointer;
        line-height: 1;
    }

    /* Hamburger animated */
    .mobile-menu-btn {
        z-index: 1000;
        position: relative;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ============================================================
   HEADER — MOBILE LAYOUT
   ============================================================ */
@media (max-width: 480px) {
    .site-logo .logo-text { display: none; }
    .header-inner { gap: 0.5rem; }
    .header-actions { gap: 0.15rem; }
    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* ============================================================
   PRODUCTS GRID — MOBILE (2-col default, 1-col tiny)
   ============================================================ */
@media (max-width: 768px) {
    .products-grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem; }
    .products-grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem; }
    .products-grid-2 { grid-template-columns: 1fr !important; }

    .product-card .product-info { padding: 0.75rem; }
    .product-name { font-size: 0.82rem !important; }
    .price-current { font-size: 0.9rem !important; }

    /* Overlay always visible on mobile (no hover) */
    .product-actions-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        position: static !important;
        background: transparent !important;
        padding: 0.5rem 0.75rem !important;
    }
    .btn-add-cart {
        width: 100%;
        font-size: 0.78rem;
        padding: 0.5rem 0.75rem;
    }
    .btn-view-product { display: none; }
}

@media (max-width: 360px) {
    .products-grid-4,
    .products-grid-3 { grid-template-columns: 1fr !important; }
}

/* ============================================================
   CATEGORIES GRID — MOBILE
   ============================================================ */
@media (max-width: 600px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
    .category-card { min-height: 130px !important; }
    .category-card h3 { font-size: 0.85rem !important; }
}

/* ============================================================
   HERO — MOBILE
   ============================================================ */
@media (max-width: 600px) {
    .hero {
        min-height: 80vh;
        padding: 1.5rem 0;
    }
    .hero-content { padding: 0 1rem; }
    .hero-wordmark { font-size: 4rem !important; bottom: -1rem !important; }
    .hero-heading { font-size: clamp(1.8rem, 8vw, 2.5rem) !important; }
    .hero-ctas { flex-direction: column !important; width: 100%; }
    .hero-ctas .btn { width: 100% !important; justify-content: center; }
    .hero-badge { font-size: 0.68rem; }
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .hero-stat { flex: 1; min-width: 80px; }
    .hero-stat-num { font-size: 1.4rem !important; }
}

/* ============================================================
   SHOP PAGE — MOBILE FILTER TOGGLE
   ============================================================ */
@media (max-width: 1024px) {
    .shop-sidebar {
        background: var(--white);
        border-radius: var(--radius-xl);
        border: 1px solid var(--border);
        padding: 1rem;
    }
}

/* ============================================================
   CART PAGE — MOBILE ITEM ROW
   ============================================================ */
@media (max-width: 600px) {
    .cart-layout > div:first-child > div > div[style*="display:flex"] {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* ============================================================
   CHECKOUT — MOBILE STEPS
   ============================================================ */
@media (max-width: 600px) {
    .checkout-steps {
        gap: 0 !important;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .checkout-step-label { display: none; }
    .checkout-step-num {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .checkout-step-line { flex: 1; min-width: 24px; }
}

/* ============================================================
   ACCOUNT PAGES — MOBILE SIDEBAR TABS
   ============================================================ */
@media (max-width: 768px) {
    #account-grid aside > div {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        border-radius: var(--radius-lg);
    }
    #account-grid aside > div::-webkit-scrollbar { display: none; }
    #account-grid aside a {
        flex-shrink: 0;
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: unset !important;
        padding: 0.85rem 1rem !important;
        font-size: 0.8rem !important;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.25rem;
    }
    #account-grid aside a i { margin: 0; opacity: 1 !important; }
    #account-grid aside a[style*="var(--gold)"] {
        border-bottom-color: var(--gold) !important;
        border-left: none !important;
    }
    #account-grid aside > div > div:last-child {
        padding: 0 !important;
    }
    #account-grid aside > div > div:last-child a {
        padding: 0.85rem 1rem !important;
        border-top: none;
    }
}

/* ============================================================
   MOBILE BOTTOM NAV BAR (persistent for key actions)
   ============================================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 500;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
}

@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; }
    /* Extra bottom spacing so content isn't hidden behind nav */
    footer { padding-bottom: 72px; }
    .newsletter-section { margin-bottom: 0; }
}

.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.4rem 0;
    transition: color 0.2s;
    position: relative;
}

.mobile-bottom-nav a i { font-size: 1.15rem; }

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--gold); }

.mobile-bottom-nav a .mnb-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 16px);
    background: var(--gold);
    color: var(--navy);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.58rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============================================================
   TABLES — CARD STACK ON MOBILE
   ============================================================ */
@media (max-width: 600px) {
    .table-responsive-cards table thead { display: none; }
    .table-responsive-cards table tbody tr {
        display: block;
        background: var(--white);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        margin-bottom: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .table-responsive-cards table tbody tr td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 0.35rem 0;
        font-size: 0.82rem;
    }
    .table-responsive-cards table tbody tr td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-muted);
        margin-right: 0.5rem;
    }
    .table-responsive-cards table tbody tr:hover { background: var(--white); }
}

/* ============================================================
   FOOTER — MOBILE COMPACT
   ============================================================ */
@media (max-width: 640px) {
    .footer-body {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .footer-col h4 { margin-bottom: 0.75rem; }
    .footer-links { columns: 2; column-gap: 1rem; }
    .footer-bottom-inner {
        flex-direction: column !important;
        gap: 0.75rem;
        text-align: center;
    }
    .footer-payments { justify-content: center; }
    .footer-copyright { font-size: 0.75rem; }
    .newsletter-form { flex-direction: column !important; gap: 0.5rem; }
    .newsletter-form input,
    .newsletter-form button { width: 100%; justify-content: center; }
}

/* ============================================================
   PRODUCT DETAIL — MOBILE
   ============================================================ */
@media (max-width: 640px) {
    .product-layout {
        gap: 1.5rem !important;
    }
    .product-layout > div:first-child > div > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ============================================================
   TYPOGRAPHY — FLUID SCALE
   ============================================================ */
@media (max-width: 480px) {
    h1 { font-size: clamp(1.4rem, 6vw, 2rem); }
    h2 { font-size: clamp(1.1rem, 5vw, 1.5rem); }
    h3 { font-size: clamp(0.95rem, 4vw, 1.15rem); }
    .section { padding: 2.5rem 0; }
    .section-lg { padding: 3.5rem 0; }
    .container { --container-pad: 1rem; }
}

/* ============================================================
   FORMS — MOBILE INPUT IMPROVEMENTS
   ============================================================ */
@media (max-width: 600px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select, textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* ================================================================
   BACK TO TOP BUTTON
   ================================================================ */
#back-to-top {
    position: fixed;
    bottom: 90px;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    background: var(--navy);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}
@media (max-width: 768px) {
    #back-to-top { bottom: 80px; right: 1rem; width: 42px; height: 42px; }
}

/* ================================================================
   LIVE CHAT WIDGET
   ================================================================ */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

/* Toggle Button */
.chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #e4bb3a 100%);
    color: var(--navy);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 24px rgba(201,162,39,0.45), 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
    position: relative;
    flex-shrink: 0;
}
.chat-toggle:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 32px rgba(201,162,39,0.55);
}
.chat-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
}
.chat-unread-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Panel */
.chat-panel {
    width: 360px;
    max-height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s, visibility 0.25s;
    transform-origin: bottom right;
}
.chat-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Panel Header */
.chat-panel-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1a1a3e 100%);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.chat-header-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold), #e4bb3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.1rem;
    position: relative;
    flex-shrink: 0;
}
.chat-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--navy);
    animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name   { color: #fff; font-weight: 700; font-size: 0.9rem; }
.chat-header-status { color: rgba(255,255,255,0.55); font-size: 0.72rem; margin-top: 1px; }
.chat-minimize {
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
    flex-shrink: 0;
}
.chat-minimize:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: #f8f7f5;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* Chat Bubbles */
.chat-bubble {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    position: relative;
    animation: bubbleIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
    word-break: break-word;
}
@keyframes bubbleIn {
    from { transform: scale(0.85) translateY(8px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.chat-bubble-user {
    background: linear-gradient(135deg, var(--navy), #1a1a3e);
    color: #fff;
    border-radius: 14px 14px 4px 14px;
    align-self: flex-end;
    margin-left: auto;
}
.chat-bubble-admin {
    background: #fff;
    color: var(--navy);
    border: 1px solid #e8e6e0;
    border-radius: 14px 14px 14px 4px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.chat-bubble-time {
    display: block;
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 4px;
    text-align: right;
}

/* Typing indicator */
.chat-typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.7rem 1rem !important;
}
.chat-typing-indicator span {
    width: 7px; height: 7px;
    background: var(--navy);
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1.2s infinite;
}
.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-6px); opacity: 1; }
}

/* Guest name form */
.chat-guest-form {
    padding: 0.5rem 1rem 0;
    background: #f8f7f5;
}
.chat-guest-form input {
    width: 100%;
    padding: 0.5rem 0.85rem;
    border: 1.5px solid #e5e3dc;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: inherit;
    background: #fff;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s;
}
.chat-guest-form input:focus { border-color: var(--gold); }

/* Input area */
.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid #f0ede6;
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    border: 1.5px solid #e5e3dc;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 120px;
    overflow-y: auto;
    color: var(--navy);
    background: #fafaf8;
    transition: border-color 0.2s;
    line-height: 1.4;
}
.chat-input:focus { border-color: var(--gold); background: #fff; }
.chat-send-btn {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--gold), #e4bb3a);
    color: var(--navy);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}
.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(201,162,39,0.4);
}
.chat-footer-note {
    padding: 0.45rem 1rem;
    font-size: 0.65rem;
    color: #aaa;
    text-align: center;
    background: #fff;
    flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .chat-widget { bottom: 80px; right: 1rem; }
    .chat-panel {
        width: calc(100vw - 2rem);
        max-height: 70vh;
        border-radius: 16px;
    }
    .chat-toggle { width: 52px; height: 52px; font-size: 1.2rem; }
    #back-to-top { bottom: 90px; right: 4.5rem; }
}

/* ================================================================
   MOBILE COMPLETE OVERHAUL — Off-canvas Nav, Header Fix, Spacing
   ================================================================ */

/* ── 1. HEADER INNER MOBILE LAYOUT ──────────────────────────────── */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body { overflow-x: hidden; max-width: 100%; }
    .site-header .container { padding: 0 1rem; }

    .header-inner {
        display: flex;
        align-items: center;
        gap: 0;
        position: relative;
    }

    /* Logo always on left */
    .site-logo { flex: 1; min-width: 0; }
    .logo-text  { display: none; }  /* keep mark only on mobile */

    /* Desktop search — fully hidden on mobile */
    .header-search { display: none !important; }

    /* Header actions: compact row on right */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        flex-shrink: 0;
    }

    .header-action-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Show mobile search toggle */
    .mobile-search-toggle {
        display: flex !important;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1rem;
        cursor: pointer;
        border-radius: 8px;
        transition: background 0.15s;
        order: 1;
    }

    /* Mobile menu btn — remove margin issue */
    .mobile-menu-btn {
        display: flex !important;
        width: 40px;
        height: 40px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
        order: 2;
    }
    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
    }
    .mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Login btn compact */
    .btn-login-header {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }
    .btn-login-header i { margin-right: 4px; }
}

/* ── 2. OFF-CANVAS SLIDE-IN NAV ──────────────────────────────────── */
@media (max-width: 768px) {
    .main-nav {
        /* Full off-canvas panel from left */
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: var(--navy);
        z-index: 10000;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex !important;   /* always rendered */
        flex-direction: column;
        box-shadow: none;
        padding: 0;
    }

    .main-nav.open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0,0,0,0.45);
    }

    /* Nav overlay backdrop */
    .main-nav::before {
        content: '';
        position: fixed;
        inset: 0;
        left: min(320px, 85vw);
        background: rgba(0,0,0,0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.32s, visibility 0.32s;
        z-index: -1;
    }
    .main-nav.open::before {
        opacity: 1;
        visibility: visible;
    }

    /* Nav header in panel */
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 5rem 0 2rem;
        flex: 1;
    }

    .nav-list li > a {
        padding: 0.95rem 1.5rem;
        color: rgba(255,255,255,0.8);
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.15s;
    }
    .nav-list li > a:hover,
    .nav-list li > a.active {
        color: var(--gold);
        background: rgba(201,162,39,0.08);
        padding-left: 1.75rem;
    }
    .nav-list li > a::after { display: none; }

    /* Close X button inside offcanvas */
    .main-nav .nav-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        border: none;
        color: white;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
    }
    .main-nav .nav-close-btn:hover { background: rgba(255,255,255,0.2); }

    /* Brand inside nav */
    .main-nav .nav-brand {
        position: absolute;
        top: 1rem;
        left: 1.25rem;
        color: var(--gold);
        font-weight: 800;
        font-size: 1.1rem;
        letter-spacing: -0.02em;
    }
}

/* ── 3. MOBILE SEARCH BAR ────────────────────────────────────────── */
.mobile-search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-mid, #1a1a2e);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 200;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-search-bar.open {
    max-height: 80px;
    padding: 0.75rem 1rem;
}
.mobile-search-bar form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.mobile-search-bar input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}
.mobile-search-bar input::placeholder { color: rgba(255,255,255,0.4); }
.mobile-search-bar input:focus { border-color: var(--gold); }
.mobile-search-bar button {
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

/* ── 4. HOMEPAGE MOBILE FIXES ──────────────────────────────────────── */
@media (max-width: 768px) {
    /* Announcement bar ticker on mobile */
    .announcement-bar { overflow: hidden; }
    .bar-center {
        white-space: nowrap;
        animation: marquee-ticker 18s linear infinite;
        font-size: 0.72rem;
    }
    @keyframes marquee-ticker {
        0%   { transform: translateX(50%); }
        100% { transform: translateX(-100%); }
    }

    /* Hero */
    .hero { min-height: auto; padding: 3.5rem 0 2.5rem; }
    .hero-container { padding: 0 1rem; text-align: center; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.2; }
    .hero p   { font-size: 0.9rem; margin: 0 auto 1.5rem; max-width: 90%; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 2rem;
        margin-top: 2rem;
    }
    .hero-stat { text-align: center; }
    .hero-stat-num { font-size: 1.4rem; }

    /* Marquee */
    .marquee-section { padding: 0.75rem 0; }
    .marquee-item { padding: 0 1rem; }

    /* Features strip */
    .features-strip .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .feature-item { padding: 1.25rem 1rem; }
    .feature-icon { width: 40px; height: 40px; font-size: 1rem; }
    .feature-text h4 { font-size: 0.8rem; }
    .feature-text p  { font-size: 0.72rem; }

    /* Categories */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .category-card   { min-height: 120px; }
    .category-name   { font-size: 0.85rem; }

    /* Products grid */
    .products-grid-4,
    .products-grid-3,
    .products-grid   { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    /* Product cards */
    .product-card { border-radius: 12px; }
    .product-image-wrap { height: 160px; }
    .product-info { padding: 0.75rem; }
    .product-name { font-size: 0.83rem; }
    .price-current { font-size: 0.9rem; }

    /* Trust grid */
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .trust-item { padding: 1.25rem 1rem; }

    /* Sections */
    .section-header { margin-bottom: 1.5rem; }
    .section-top { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    section { padding: 2.5rem 0; }

    /* Newsletter */
    .newsletter-section { padding: 2rem 1rem; }
    .newsletter-form { flex-direction: column; border-radius: 12px; overflow: hidden; }
    .newsletter-form input { width: 100%; border-radius: 0; text-align: center; padding: 0.9rem; font-size: 0.9rem; }
    .newsletter-form button { width: 100%; border-radius: 0; justify-content: center; }

    /* Footer */
    .footer-body { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
    .footer-links { flex-direction: column; gap: 0.5rem; }

    /* Add bottom padding for mobile nav */
    main, .main-content, section:last-of-type { padding-bottom: 1rem; }
    body { padding-bottom: 65px; }
}

@media (max-width: 480px) {
    .products-grid-4,
    .products-grid-3,
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .category-card   { min-height: 100px; }

    .trust-grid  { grid-template-columns: 1fr; }
    .features-strip .container { grid-template-columns: 1fr; }
    .feature-item { border-right: none !important; }

    .hero h1  { font-size: 1.7rem; }
    .hero-stats { gap: 0.75rem 1.5rem; }
}

/* ── 5. BUTTON POSITIONS FIX ────────────────────────────────────── */
/* Stack chat widget and back-to-top cleanly above mobile nav */
.chat-widget {
    position: fixed !important;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 8000;
}
#back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: calc(1.25rem + 58px + 0.75rem); /* right of chat button */
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 8000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background: var(--gold);
    color: var(--navy);
}

@media (max-width: 768px) {
    /* On mobile: stack above the 60px bottom nav */
    .chat-widget  { bottom: 75px; right: 1rem; }
    #back-to-top  {
        bottom: 75px;
        right: calc(1rem + 52px + 0.6rem);
    }
    .chat-toggle { width: 52px; height: 52px; font-size: 1.2rem; }
    .chat-panel  {
        width: calc(100vw - 2rem);
        max-height: 65vh;
        bottom: 60px; /* keep above toggle */
        right: 0;
    }
}

/* ── 6. BODY LOCK WHEN NAV OPEN ────────────────────────────────── */
body.nav-open { overflow: hidden; }
