/* public/css/storefront.css
   Extracted from Home.vue's <style scoped> block.
   Loading this as a real stylesheet (linked once in layout.blade.php) means it's
   cached by the browser across every storefront page load, instead of being
   re-shipped inline with every Vue component render. */

/* Variables live on :root, not .ec-wrap, so every element on the page can use
   them regardless of DOM nesting. CSS custom properties only flow DOWN to
   descendants — elements like .ec-cta-banner and .ec-ticker are ANCESTORS of
   .ec-wrap in the markup, not descendants, so they couldn't see variables
   defined only on .ec-wrap (this caused the white-on-white CTA banner bug). */
:root {
    --navy: #1A2340;
    --navy-dark: #111827;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --link: #2563EB;
    --success: #16A34A;
    --danger: #DC2626;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-900: #111827;
    --white: #FFFFFF;
    --radius: 4px;
    --radius-md: 8px;
}

.ec-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}
@media (min-width: 768px)  { .ec-wrap { padding: 0 24px; } }
@media (min-width: 1280px) { .ec-wrap { padding: 0 32px; } }

.ec-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--gray-900);
    font-size: 14px; font-weight: 700; padding: 10px 22px;
    border-radius: var(--radius); text-decoration: none;
    border: none; cursor: pointer; transition: background 0.15s;
    font-family: inherit;
}
.ec-btn-primary:hover { background: var(--accent-dark); }
.ec-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); color: #fff;
    font-size: 14px; font-weight: 600; padding: 10px 22px;
    border-radius: var(--radius); text-decoration: none;
    border: 1px solid rgba(255,255,255,0.35); cursor: pointer;
    transition: background 0.15s; font-family: inherit;
}
.ec-btn-ghost:hover { background: rgba(255,255,255,0.25); }
.ec-btn-lg { padding: 13px 28px; font-size: 15px; }

.ec-ticker { background: var(--navy); padding: 8px 0; text-align: center; overflow: hidden; }
.ec-ticker-wrap { display: flex; justify-content: center; min-height: 22px; }
.ec-ticker-msg { display: block; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }

.ec-hero-layout { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 900px) { .ec-hero-layout { grid-template-columns: 1fr; } }

.ec-mobile-cats { display: none; grid-column: 1 / -1; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ec-mobile-cats::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .ec-mobile-cats { display: flex; } }

.ec-mobile-cat-pill { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--gray-200); font-size: 12px; font-weight: 600; color: var(--gray-600); text-decoration: none; white-space: nowrap; transition: background 0.12s, border-color 0.12s; }
.ec-mobile-cat-pill:hover { border-color: var(--navy); color: var(--navy); }
.ec-mobile-cat-pill--deals { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }

.ec-sidebar { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; align-self: start; }
@media (max-width: 900px) { .ec-sidebar { display: none; } }
.ec-sidebar-head { background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; padding: 11px 14px; letter-spacing: 0.01em; }
.ec-sidebar-item { border-bottom: 1px solid var(--gray-100); }
.ec-sidebar-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 6px 0 14px; min-height: 38px; transition: background 0.12s; }
.ec-sidebar-row:hover { background: var(--gray-50); }
.ec-sidebar-name { flex: 1; font-size: 13px; color: var(--gray-600); text-decoration: none; padding: 9px 0; font-weight: 500; transition: color 0.12s; }
.ec-sidebar-name:hover { color: var(--navy); }
.ec-sidebar-toggle { flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); border-radius: 4px; background: transparent; color: var(--gray-400); cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s; padding: 0; }
.ec-sidebar-toggle:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ec-sidebar-subs { display: flex; flex-direction: column; background: var(--gray-50); border-top: 1px solid var(--gray-100); padding: 4px 0; }
.ec-sidebar-sub-link { display: block; padding: 7px 14px 7px 28px; font-size: 12.5px; color: var(--gray-500); text-decoration: none; transition: background 0.12s, color 0.12s; position: relative; }
.ec-sidebar-sub-link::before { content: '\2013'; position: absolute; left: 16px; color: var(--gray-300); font-size: 11px; }
.ec-sidebar-sub-link:hover { background: var(--white); color: var(--navy); }
.ec-sidebar-link { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; color: var(--gray-600); text-decoration: none; transition: background 0.12s, color 0.12s; }
.ec-sidebar-link:hover { background: var(--gray-50); color: var(--navy); }
.ec-sidebar-link--all { color: var(--link); font-weight: 600; }

.ec-hero { position: relative; min-height: 380px; border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 640px) { .ec-hero { min-height: 260px; } }
.ec-hero-bg { position: absolute; inset: 0; }
.ec-hero-img { width: 100%; height: 100%; object-fit: cover; }
.ec-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,24,39,0.85) 0%, rgba(17,24,39,0.4) 60%, transparent 100%); }
.ec-hero-content { position: relative; z-index: 10; padding: 40px 44px; max-width: 560px; }
@media (max-width: 640px) { .ec-hero-content { padding: 28px 20px; } }
.ec-hero-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: rgba(245,158,11,0.15); padding: 4px 10px; border-radius: 2px; margin-bottom: 14px; }
.ec-hero-h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; color: var(--white); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.ec-hero-accent { color: var(--accent); }
.ec-hero-sub { font-size: 15px; color: rgba(255,255,255,0.75); margin: 0 0 24px; line-height: 1.6; max-width: 420px; }
.ec-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ec-hero-promos { position: absolute; bottom: 16px; right: 16px; z-index: 10; display: flex; gap: 10px; }
@media (max-width: 640px) { .ec-hero-promos { display: none; } }
.ec-promo-card { padding: 10px 14px; border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 2px; backdrop-filter: blur(8px); }
.ec-promo-card--mint  { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.35); }
.ec-promo-card--amber { background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.35); }
.ec-promo-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.ec-promo-val { font-size: 13px; font-weight: 700; color: var(--white); }

.ec-trust-strip { background: var(--white); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 12px 0; }
.ec-trust-strip-inner { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.ec-ts-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--gray-600); }
.ec-ts-item svg { color: var(--navy); flex-shrink: 0; }
.ec-ts-sep { color: var(--gray-300); font-size: 18px; }
@media (max-width: 640px) { .ec-ts-sep { display: none; } }

.ec-section { padding: 28px 0; }
.ec-section--white { background: var(--white); padding: 28px 0; }
.ec-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.ec-section-head-left { display: flex; flex-direction: column; gap: 2px; }
.ec-section-title { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
.ec-section-sub { font-size: 12px; color: var(--gray-400); margin: 0; }
.ec-section-link { font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.ec-section-link:hover { text-decoration: underline; }

.ec-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.ec-cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; text-align: center; }
.ec-cat-tile:hover { border-color: var(--navy); box-shadow: 0 2px 12px rgba(26,35,64,0.1); transform: translateY(-2px); }
.ec-cat-tile-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--navy); transition: background 0.15s; }
.ec-cat-tile:hover .ec-cat-tile-icon { background: rgba(26,35,64,0.08); }
.ec-cat-tile-name { font-size: 12px; font-weight: 600; color: var(--gray-600); line-height: 1.3; }

.ec-carousel-controls { display: flex; align-items: center; gap: 8px; }
.ec-carousel-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); color: var(--gray-600); cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.ec-carousel-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ec-carousel-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ec-carousel-outer { overflow: hidden; }
.ec-carousel-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ec-carousel-track::-webkit-scrollbar { display: none; }
.ec-carousel-track .ec-pc { flex: 0 0 calc(20% - 12px); scroll-snap-align: start; }
@media (max-width: 1280px) { .ec-carousel-track .ec-pc { flex: 0 0 calc(25% - 11px); } }
@media (max-width: 1024px) { .ec-carousel-track .ec-pc { flex: 0 0 calc(33.33% - 10px); } }
@media (max-width: 640px)  { .ec-carousel-track .ec-pc { flex: 0 0 calc(50% - 7px); } }

.ec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ec-pc { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow 0.18s, transform 0.18s; display: flex; flex-direction: column; }
.ec-pc:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.ec-pc-img-wrap { position: relative; aspect-ratio: 1 / 1; background: var(--gray-50); overflow: hidden; }
.ec-pc-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform 0.4s; }
.ec-pc:hover .ec-pc-img { transform: scale(1.05); }
.ec-pc-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-300); }

.ec-badge { position: absolute; z-index: 5; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 2px; letter-spacing: 0.03em; }
.ec-badge--new { top: 8px; left: 8px; background: #DCFCE7; color: #166534; }
.ec-badge--hot { top: 8px; left: 8px; background: #FEF3C7; color: #92400E; }
.ec-badge--oos { top: 8px; right: 8px; background: #FEE2E2; color: #991B1B; }
.ec-badge--sale { background: #FEE2E2; color: #991B1B; }

.ec-wishlist-btn { position: absolute; top: 8px; right: 8px; z-index: 5; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gray-200); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--gray-400); cursor: pointer; opacity: 0; transition: opacity 0.15s, color 0.15s, border-color 0.15s; }
.ec-pc:hover .ec-wishlist-btn { opacity: 1; }
.ec-wishlist-btn:hover { color: var(--danger); border-color: var(--danger); }

.ec-pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ec-pc-sku { font-size: 10px; color: var(--gray-400); margin: 0; letter-spacing: 0.04em; text-transform: uppercase; }
.ec-pc-name { font-size: 13px; font-weight: 600; color: var(--gray-900); text-decoration: none; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec-pc-name:hover { color: var(--link); }
.ec-pc-stars { display: flex; align-items: center; gap: 1px; }
.ec-star { font-size: 13px; color: var(--gray-300); line-height: 1; }
.ec-star--filled { color: var(--accent); }
.ec-pc-rating-count { font-size: 11px; color: var(--gray-400); margin-left: 4px; }
.ec-pc-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ec-pc-price { font-size: 15px; font-weight: 800; color: var(--gray-900); }
.ec-pc-price-sale { font-size: 15px; font-weight: 800; color: var(--gray-900); }
.ec-pc-price-old { font-size: 12px; color: var(--gray-400); text-decoration: line-through; }

.ec-add-btn { margin-top: auto; padding-top: 10px; width: 100%; padding: 9px; border-radius: var(--radius); border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer; letter-spacing: 0.02em; transition: background 0.14s, color 0.14s; }
.ec-add-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.ec-add-btn:disabled { opacity: 0.5; cursor: not-allowed; border-color: var(--gray-300); color: var(--gray-400); }
.ec-spin-row { display: flex; align-items: center; justify-content: center; gap: 7px; }
.ec-spin { width: 13px; height: 13px; border: 2px solid var(--gray-200); border-top-color: var(--navy); border-radius: 50%; animation: ec-spin 0.65s linear infinite; display: inline-block; }
@keyframes ec-spin { to { transform: rotate(360deg); } }

.ec-banner-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 640px) { .ec-banner-strip { grid-template-columns: 1fr; } }
.ec-banner-card { position: relative; overflow: hidden; border-radius: var(--radius-md); min-height: 150px; display: flex; align-items: center; }
.ec-banner-card--blue  { background: linear-gradient(120deg, #1A2340 0%, #2563EB 100%); }
.ec-banner-card--green { background: linear-gradient(120deg, #064E3B 0%, #059669 100%); }
.ec-banner-text { position: relative; z-index: 2; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.ec-banner-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.ec-banner-title { font-size: 20px; font-weight: 800; color: var(--white); line-height: 1.2; }
.ec-banner-link { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; margin-top: 4px; transition: opacity 0.15s; }
.ec-banner-link:hover { opacity: 0.8; }
.ec-banner-img { position: absolute; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; opacity: 0.35; }

.ec-empty { text-align: center; padding: 60px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--white); border-radius: var(--radius-md); border: 1px dashed var(--gray-300); }
.ec-empty svg { color: var(--gray-300); }
.ec-empty p { font-size: 16px; color: var(--gray-600); margin: 0; }

.ec-cta-banner { background: var(--navy); padding: 32px 0; margin-top: 8px; }
.ec-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ec-cta-title { font-size: 20px; font-weight: 800; color: var(--white); margin: 0 0 4px; }
.ec-cta-sub { font-size: 14px; color: rgba(255,255,255,0.55); margin: 0; }

/* Variant picker modal (simple Blade/Alpine replacement for QuickVariantPicker.vue) */
.ec-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ec-modal { background: #fff; border-radius: 8px; max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto; }
.ec-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--gray-200); }
.ec-modal-head button { border: none; background: none; font-size: 22px; cursor: pointer; color: var(--gray-500); }
.ec-modal-body { padding: 16px; }

/* ══════════════════════════════════════════════
   Added: header, sticky nav, font, WhatsApp FAB
   These fix the visual gaps vs. the Vue version:
   - body font now matches Figtree
   - page has a light gray background so white
     cards (hero/sidebar/sections) read correctly
   - header is sticky and has the icon+label nav
     and secondary category bar
   ══════════════════════════════════════════════ */

.ec-body {
    font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: var(--gray-50, #F9FAFB);
    margin: 0;
    color: var(--gray-900, #111827);
}

/* ── Sticky header shell ── */
.ec-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.ec-header-top {
    background: var(--navy, #1A2340);
    padding: 12px 0;
}
.ec-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ec-logo {
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.ec-search-form {
    flex: 1 1 auto;
    max-width: 720px;
    display: flex;
    margin: 0 12px;
}
.ec-search-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.ec-search-btn {
    background: var(--accent, #F59E0B);
    border: none;
    padding: 0 18px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}
.ec-search-btn:hover { background: var(--accent-dark, #D97706); }

.ec-header-icons {
    display: flex;
    align-items: center;
    gap: 22px;
}
.ec-header-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.12s;
}
.ec-header-icon-btn:hover { color: #fff; }

.ec-cart-icon-wrap { position: relative; display: inline-flex; }
.ec-cart-badge {
    position: absolute;
    top: -6px;
    right: -9px;
    background: var(--accent, #F59E0B);
    color: #111827;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    border-radius: 999px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ── Secondary category nav bar ── */
.ec-header-nav {
    background: var(--navy-dark, #111827);
    position: relative;
}
.ec-header-nav-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 42px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ec-header-nav-inner::-webkit-scrollbar { display: none; }

.ec-all-cats-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.12s;
}
.ec-all-cats-btn:hover { background: rgba(255,255,255,0.12); }

.ec-nav-link {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.12s;
}
.ec-nav-link:hover { color: #fff; }
.ec-nav-link--deals { color: var(--accent, #F59E0B); font-weight: 700; }

.ec-all-cats-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200, #E5E7EB);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px 0;
    z-index: 60;
}
.ec-all-cats-panel .ec-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.ec-all-cats-item {
    color: var(--gray-600, #4B5563);
    font-size: 13px;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.12s;
}
.ec-all-cats-item:hover { color: var(--navy, #1A2340); }

@media (max-width: 900px) {
    .ec-header-top-inner {
        flex-wrap: wrap;
        row-gap: 10px;
    }
    .ec-logo { order: 1; }
    .ec-header-icons { order: 2; gap: 16px; }
    .ec-search-form {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
    }
    .ec-header-icon-btn span:last-child { display: none; }
}

@media (max-width: 480px) {
    .ec-header-top { padding: 10px 0; }
    .ec-logo { font-size: 17px; }
    .ec-header-icons { gap: 14px; }
    .ec-header-icon-btn svg { width: 18px; height: 18px; }
    .ec-search-input { padding: 9px 12px; font-size: 13px; }
    .ec-nav-link { font-size: 12px; }
    .ec-all-cats-btn { font-size: 12px; padding: 7px 10px; }
}

/* ── Floating WhatsApp button ── */
.ec-whatsapp-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 80;
    transition: transform 0.15s;
}
.ec-whatsapp-fab:hover { transform: scale(1.06); }

/* ══════════════════════════════════════════════
   Mobile responsiveness pass
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Section headers: let carousel controls / "see all" link wrap under
       the title instead of squeezing into one cramped row */
    .ec-section-head {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .ec-section-title { font-size: 16px; }
    .ec-carousel-controls { gap: 6px; }

    /* Product grid: smaller minimum card width so 2 columns fit comfortably
       on narrow phones instead of collapsing to 1 with wasted space */
    .ec-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .ec-carousel-track .ec-pc { flex: 0 0 calc(50% - 7px); }

    /* Product card: tighten padding/text a bit for small screens */
    .ec-pc-body { padding: 8px 10px 10px; }
    .ec-pc-name { font-size: 12.5px; }
    .ec-pc-price, .ec-pc-price-sale { font-size: 14px; }
    .ec-add-btn { font-size: 11.5px; padding: 8px; }

    /* Hero */
    .ec-hero { min-height: 220px; }
    .ec-hero-content { padding: 22px 18px; max-width: 100%; }
    .ec-hero-sub { font-size: 13px; margin-bottom: 18px; }
    .ec-hero-ctas { gap: 8px; }
    .ec-btn-lg { padding: 10px 18px; font-size: 13px; }

    /* CTA banner: stack text and button, full-width button */
    .ec-cta-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .ec-cta-inner .ec-btn-primary {
        justify-content: center;
    }
    .ec-cta-title { font-size: 17px; }

    /* Promo banner cards: shrink image overlay so text doesn't get crowded */
    .ec-banner-card { min-height: 120px; }
    .ec-banner-text { padding: 16px 18px; }
    .ec-banner-title { font-size: 16px; }

    /* Trust strip: allow two rows instead of one cramped line */
    .ec-trust-strip-inner { gap: 12px 16px; }
    .ec-ts-item { font-size: 12px; }

    /* Category tile grid: smaller tiles */
    .ec-cat-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
    .ec-cat-tile { padding: 12px 6px; }
    .ec-cat-tile-icon { width: 40px; height: 40px; }
    .ec-cat-tile-name { font-size: 11px; }

    /* "All Categories" dropdown panel: single column list instead of wrapped row */
    .ec-all-cats-panel .ec-wrap {
        flex-direction: column;
        gap: 2px;
    }

    /* WhatsApp FAB: slightly smaller + tucked in so it doesn't overlap content */
    .ec-whatsapp-fab {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
    .ec-whatsapp-fab svg { width: 24px; height: 24px; }
}

@media (max-width: 420px) {
    .ec-wrap { padding: 0 12px; }
    .ec-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; }
    .ec-hero-h1 { font-size: 24px; }
    .ec-hero-eyebrow { font-size: 10px; padding: 3px 8px; }
}

/* (old centered-modal styles removed — replaced by the slide-in drawer above) */

/* Variant picker — right-side slide-in drawer (replaces the old centered modal) */
.ec-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,0.45);
    z-index: 100;
    display: flex;
    justify-content: flex-end;
}

.ec-drawer {
    background: #fff;
    width: 380px;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
}
.ec-drawer--open {
    transform: translateX(0);
}

.ec-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200, #E5E7EB);
    flex-shrink: 0;
}
.ec-drawer-head h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900, #111827);
}
.ec-drawer-head button {
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-400, #9CA3AF);
}
.ec-drawer-head button:hover { color: var(--gray-900, #111827); }

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

.ec-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200, #E5E7EB);
    flex-shrink: 0;
}

.ec-vp-loading { color: var(--gray-500, #6B7280); font-size: 14px; padding: 8px 0; }

.ec-vp-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ec-vp-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}
.ec-vp-option:hover:not(:disabled) { border-color: #F59E0B; }
.ec-vp-option--selected {
    border-color: #F59E0B;
    background: #FFF7ED;
}
.ec-vp-option--oos,
.ec-vp-option:disabled { opacity: 0.5; cursor: not-allowed; }

.ec-vp-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ec-vp-option-attrs {
    display: flex;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900, #111827);
}
.ec-vp-option-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-900, #111827);
    white-space: nowrap;
}
.ec-vp-option-stock {
    font-size: 12px;
    font-weight: 600;
    color: var(--success, #16A34A);
}
.ec-vp-option-stock--oos { color: var(--danger, #DC2626); }

.ec-vp-confirm {
    width: 100%;
    padding: 13px;
    border-radius: 6px;
    border: none;
    background: #3B82F6;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.ec-vp-confirm:hover:not(:disabled) { background: #2563EB; }
.ec-vp-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

.ec-spin--white { border-color: rgba(255,255,255,0.35); border-top-color: #fff; }

@media (max-width: 480px) {
    .ec-drawer { width: 100%; }
}

/* ══════════════════════════════════════════════
   Product detail page (.pd- prefixed)
   Uses the same :root variables defined at the top of this file.
   ══════════════════════════════════════════════ */

/* Missing container rule — .pd- pages use their own wrap class instead of
   .ec-wrap, and this definition was accidentally dropped during extraction,
   which is why the product page was rendering full-bleed with no padding. */
.pd-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}
@media (min-width: 768px)  { .pd-wrap { padding: 0 24px; } }
@media (min-width: 1280px) { .pd-wrap { padding: 0 32px; } }

.pd-page-header { background: var(--navy); padding: 18px 0 16px; }
.pd-page-header-inner { display: flex; flex-direction: column; gap: 6px; }
.pd-breadcrumb { display: flex; align-items: center; gap: 6px; }
.pd-bc-link { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.15s; }
.pd-bc-link:hover { color: rgba(255,255,255,0.85); }
.pd-bc-sep { font-size: 12px; color: rgba(255,255,255,0.25); }
.pd-bc-current {
    font-size: 12px; color: rgba(255,255,255,0.75);
    max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-page-title {
    font-size: 20px; font-weight: 800; color: var(--white);
    margin: 0; letter-spacing: -0.01em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pd-body { padding-top: 24px; padding-bottom: 48px; background: var(--gray-100); min-height: 60vh; }

.pd-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 1024px) { .pd-layout { grid-template-columns: 1fr 300px; } }
@media (max-width: 768px)  { .pd-layout { grid-template-columns: 1fr; } }

.pd-img-wrap {
    aspect-ratio: 1/1; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-md); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.pd-img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.pd-img-ph { color: var(--gray-300); }

.pd-info-col { display: flex; flex-direction: column; gap: 10px; }
.pd-info-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px; }

.pd-price-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 2px solid var(--navy);
}
.pd-price { font-size: 24px; font-weight: 800; color: var(--navy); }
.pd-price-sale { font-size: 24px; font-weight: 800; color: var(--navy); margin-right: 8px; }
.pd-price-old { font-size: 15px; color: var(--gray-400); text-decoration: line-through; }
.pd-badge-sale { font-size: 11px; font-weight: 700; background: #FEE2E2; color: #991B1B; padding: 3px 8px; border-radius: 3px; margin-left: 8px; }

.pd-stars { display: flex; align-items: center; gap: 1px; }
.pd-star { font-size: 14px; color: var(--gray-300); line-height: 1; }
.pd-star--filled { color: var(--accent); }
.pd-rating-count { font-size: 12px; color: var(--gray-400); margin-left: 6px; }

.pd-variants { margin-bottom: 16px; }
.pd-variants-label {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--gray-500); margin-bottom: 8px;
}
.pd-variant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .pd-variant-grid { grid-template-columns: 1fr; } }

.pd-variant-btn {
    text-align: left; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius);
    background: var(--white); cursor: pointer; font-family: inherit;
    transition: border-color 0.12s, background 0.12s;
}
.pd-variant-btn:hover { border-color: var(--navy); }
.pd-variant-btn--active { border-color: var(--navy); background: var(--gray-50); }
.pd-variant-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-variant-name { font-size: 12.5px; font-weight: 600; color: var(--gray-900); }
.pd-variant-price { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.pd-variant-stock { font-size: 11px; font-weight: 600; margin-top: 4px; }
.pd-variant-stock--in  { color: var(--success); }
.pd-variant-stock--out { color: var(--danger); }

.pd-checkout-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    background: var(--accent); color: var(--gray-900); font-size: 15px; font-weight: 800;
    padding: 14px 20px; border: none; border-radius: var(--radius); cursor: pointer;
    font-family: inherit; transition: background 0.15s; letter-spacing: 0.01em;
}
.pd-checkout-btn:hover:not(:disabled) { background: var(--accent-dark); }
.pd-checkout-btn--disabled, .pd-checkout-btn:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }

.pd-spin {
    width: 15px; height: 15px; display: inline-block;
    border: 2px solid rgba(0,0,0,0.15); border-top-color: var(--gray-900);
    border-radius: 50%; animation: pd-spin 0.65s linear infinite;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }

.pd-summary-note { font-size: 11.5px; color: var(--gray-400); text-align: center; padding: 10px 0 0; margin: 0; }

.pd-trust-badges {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--gray-100); flex-wrap: wrap;
}
.pd-trust-item { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--gray-500); }
.pd-trust-item svg { color: var(--navy); flex-shrink: 0; }

.pd-promo-banner {
    display: flex; align-items: center; gap: 10px; background: #ECFDF5; border: 1px solid #A7F3D0;
    border-radius: var(--radius-md); padding: 12px 16px; font-size: 13px; color: #065F46;
}
.pd-promo-banner svg { color: #059669; flex-shrink: 0; }
.pd-promo-banner strong { font-weight: 700; }

.pd-details-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px; }
.pd-details-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.pd-details-title--mt { margin-top: 18px; }
.pd-details-rows { display: flex; flex-direction: column; gap: 4px; }
.pd-spec-line { font-size: 13.5px; color: var(--gray-600); margin: 0; }
.pd-desc { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; }

.pd-reviews-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-top: 20px; overflow: hidden; }
.pd-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 2px solid var(--navy); }
.pd-summary-title { font-size: 14px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.pd-reviews-title { font-size: 16px; }

.pd-btn-primary {
    display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--gray-900);
    font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: var(--radius); border: none;
    cursor: pointer; transition: background 0.15s; font-family: inherit;
}
.pd-btn-primary:hover { background: var(--accent-dark); }

.pd-reviews-list { padding: 8px 20px 4px; }
.pd-review-item { padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.pd-review-item:last-child { border-bottom: none; }
.pd-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.pd-review-stars { display: flex; gap: 1px; }
.pd-review-meta { font-size: 12.5px; color: var(--gray-500); }
.pd-review-date { color: var(--gray-400); }
.pd-review-title { font-size: 14px; font-weight: 700; color: var(--gray-900); margin: 4px 0; }
.pd-review-text { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; margin: 0; }
.pd-empty-reviews { padding: 24px 20px; color: var(--gray-400); font-size: 13.5px; }

.pd-review-form { padding: 20px; background: var(--gray-50); }
.pd-review-fields { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.pd-review-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.pd-review-rating-row { display: flex; align-items: center; gap: 6px; }
.pd-review-star-btn {
    font-size: 24px; line-height: 1; color: var(--gray-300); background: none; border: none;
    cursor: pointer; padding: 0; transition: color 0.12s;
}
.pd-review-input {
    width: 100%; padding: 10px 14px; font-size: 13.5px; border: 1px solid var(--gray-200);
    border-radius: var(--radius); font-family: inherit; color: var(--gray-900); transition: border-color 0.12s;
}
.pd-review-input:focus { outline: none; border-color: var(--navy); }
.pd-review-textarea { resize: none; }
.pd-review-submit { max-width: 220px; }
