/* ── Sleepie Design System ── */

:root {
    --navy: #021F37;
    --navy-soft: #1A354A;
    --navy-dark: #011626;
    --sleepie-green: #93BD33;
    --sleepie-green-dark: #7EA12C;
    --sleepie-green-light: #EEF5DF;
    --announce-highlight: #B2D06D;
    --announce-text: #E8F1DC;
    --hero-text: #F4F8FB;
    --hero-lead: #C9D8E8;
    --footer-text: #E9F0F7;
    --footer-link: #C6D6E4;
    --footer-muted: #7E97AC;
    --footer-trust: #A9BFD3;
    --media-fallback-text: #A9CC6E;
    --media-fallback-bg1: #F2F8E4;
    --media-fallback-bg2: #DCEFC2;
    --star: #E8A93D;
    --green: #059669;
    --green-bg: #ecfdf5;
    --green-border: #a7f3d0;
    --green-text: #065f46;
    --amber: #d97706;
    --amber-bg: #fffbeb;
    --red: #dc2626;
    --red-bg: #fef2f2;
    --red-border: #fecaca;
    --red-text: #991b1b;
    --blue-bg: #eff6ff;
    --blue-text: #1e40af;
    --blue-border: #bfdbfe;
    --ink: #021F37;
    --ink-soft: #1A354A;
    --muted: #6B7280;
    --line: #E3E7EB;
    --bg: #FAFBFC;
    --bg-soft: #F3F5F7;
    --cream: #F3F5F7;
    --green-pale: #EEF5DF;
    --brand: #021F37;
    --brand-dark: #011626;
    --brand-cta: var(--sleepie-green);
    --brand-cta-dark: var(--sleepie-green-dark);
    --sun: #93BD33;
    --sun-press: #7EA12C;
    --radius: 10px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --header-h: 70px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -.02em; }

/* ── Focus baseline ── */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-slide { transition: none !important; }
}

/* ── Container ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ── Skip link ── */
.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
    padding: 8px 16px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ── Site header ── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 251, 252, .94); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

/* ── Mobile header (default, ≤768px) ── */
.mobile-header {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; padding: 0 16px; position: relative; z-index: 100;
}
.mobile-logo img { display: block; max-width: 110px; height: auto; }
.mobile-actions { display: flex; align-items: center; gap: 14px; }
.mobile-action-link {
    position: relative; display: flex; align-items: center; color: var(--ink);
    text-decoration: none; padding: 4px;
}
.mobile-action-link svg { display: block; }

.mobile-menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: none; background: none;
    cursor: pointer; z-index: 101; -webkit-tap-highlight-color: transparent;
}
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block; width: 22px; height: 2px; background: var(--ink);
    border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.hamburger-icon { position: relative; }
.hamburger-icon::before,
.hamburger-icon::after { content: ""; position: absolute; left: 0; }
.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
    display: none; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.mobile-menu.is-open { display: block; max-height: 80vh; padding: 8px 0 16px; overflow-y: auto; }
.mobile-menu-inner { padding: 0 16px; display: flex; flex-direction: column; }
.mobile-menu-link {
    display: block; padding: 12px 0; color: var(--ink); text-decoration: none;
    font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line);
}
.mobile-menu-link:last-child { border-bottom: none; }
.mobile-menu-link:hover { color: var(--brand-cta); }
.mobile-menu-divider { border: none; border-top: 1px solid var(--line); margin: 6px 0; }

/* ── Desktop header (≥769px) ── */
.desktop-header { display: none; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; min-width: 0; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; display: block; }
.brand-footer { display: inline-block; }
.brand-footer img { height: 34px; width: auto; }
.brand-center { display: block; text-align: center; margin-bottom: 12px; }

.main-nav { display: flex; gap: 6px; flex: 1; min-width: 0; white-space: nowrap; }
.main-nav a {
    color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500;
    padding: 7px 14px; border-radius: 999px; transition: background .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--brand-cta); background: var(--cream); }
.header-actions { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }

@media (min-width: 769px) {
    .mobile-header, .mobile-menu-toggle, .mobile-menu { display: none !important; }
    .desktop-header { display: block; }
}

/* ── Announcement bar ── */
.announce { background: var(--ink); color: var(--announce-text); overflow: hidden; }
.announce-track { max-width: 1120px; margin: 0 auto; height: 34px; overflow: hidden; position: relative; }
.announce ul { list-style: none; margin: 0; padding: 0; animation: announce-roll 12s infinite; }
.announce li {
    height: 34px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.announce-hl { color: var(--announce-highlight); font-weight: 800; }
@keyframes announce-roll {
    0%, 30%   { transform: translateY(0); }
    35%, 63%  { transform: translateY(-34px); }
    68%, 96%  { transform: translateY(-68px); }
    100%      { transform: translateY(-102px); }
}

/* ── Hero v2 ── */
.hero-v2 {
    margin-top: 18px; border-radius: var(--radius-xl); overflow: hidden; position: relative;
    background:
        radial-gradient(520px 320px at 86% 18%, rgba(141,190,39,.15), transparent 65%),
        radial-gradient(420px 300px at 8% 110%, rgba(23,58,85,.5), transparent 60%),
        linear-gradient(118deg, var(--navy) 0%, #0B3355 52%, var(--navy-soft) 100%);
    color: var(--hero-text); padding: clamp(44px, 7vw, 84px) clamp(24px, 6vw, 72px);
    min-height: clamp(430px, 40vw, 540px);
    display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0; margin: 0;
    opacity: 0; transition: opacity .9s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-v2::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(92deg, rgba(4,17,29,.88) 8%, rgba(4,17,29,.58) 52%, rgba(4,17,29,.14) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-v2.hero-v2-textonly { justify-content: center; text-align: center; }
.hero-v2.hero-v2-textonly .hero-content { max-width: 860px; margin: 0 auto; }
.hero-v2.hero-v2-textonly .hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-v2.hero-v2-textonly::before { display: none; }
.hero-dots {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
    width: 9px; height: 9px; border-radius: 999px; border: none; padding: 0;
    background: rgba(244,248,251,.45); cursor: pointer;
    transition: width .25s ease, background .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.hero-dot.is-active { width: 24px; background: var(--sleepie-green); }
.hero-v2::after {
    content: ""; position: absolute; right: -80px; top: -90px; width: 320px; height: 320px;
    border-radius: 50%; border: 42px solid rgba(141,190,39,.12); pointer-events: none;
}
.hero-v2 .eyebrow { color: var(--announce-highlight); opacity: 1; font-weight: 700; }
.hero-v2 h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; }
.hero-v2 h1 em { font-family: inherit; font-style: normal; font-weight: 800; color: var(--sleepie-green); }
.hero-v2 .lead { color: var(--hero-lead); }
.hero-actions .btn-sun { box-shadow: 0 10px 26px rgba(141, 190, 39, .3); }

/* ── Sections ── */
.section { padding: var(--space-2xl) 0 var(--space-lg); }
.section-sm { margin-top: 28px; }
.section h2 { letter-spacing: -.4px; margin-bottom: 8px; }
.section-cream { background: var(--cream); border-radius: var(--radius-xl); padding: 40px clamp(18px, 4vw, 44px) 46px; margin-top: 34px; }
.section-label {
    text-transform: uppercase; letter-spacing: .18em; font-size: 11.5px;
    font-weight: 800; color: #4A7A12; margin-bottom: 4px;
}

/* ── Grid ── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 22px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 22px; }

/* ── Cards ── */
.card {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: var(--space-lg);
}
.card h3 { margin-bottom: 8px; }
.card-center { text-align: center; padding: 44px 24px; }
.card .badge { margin-top: 12px; display: inline-block; }

.stat-card {
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px;
}
.stat-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }

/* ── Buttons ── */
.btn {
    display: inline-block; border: 1px solid transparent; cursor: pointer;
    border-radius: 999px; padding: 11px 22px; font-size: 15px; font-weight: 600;
    text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
    font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand-cta); color: var(--navy); }
.btn-primary:hover { background: var(--brand-cta-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-sun { background: var(--sun); color: var(--ink); font-weight: 800; }
.btn-sun:hover { background: var(--sun-press); transform: translateY(-1px); }
.btn-linkish { background: none; border: none; cursor: pointer; font-family: inherit; }

/* ── Badges ── */
.badge {
    font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    border-radius: 999px; padding: 3px 10px;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }

/* ── Tables ── */
.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.table th {
    text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px;
    color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px 10px;
}
.table td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: middle; }

/* ── Alerts ── */
.alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: var(--red-bg); color: var(--red-text); border: 1px solid var(--red-border); }
.alert-error p { margin: 2px 0; }
.alert-success { background: var(--green-bg); color: var(--green-text); border: 1px solid var(--green-border); }
.alert-info { background: var(--blue-bg); color: var(--blue-text); border: 1px solid var(--blue-border); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-group input {
    width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
    border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.form-group input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

/* ── Auth pages ── */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: var(--bg-soft); padding: 24px; }
.auth-card {
    width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 36px 32px;
}
.auth-card h1 { font-size: 22px; margin-bottom: 20px; text-align: center; }
.auth-card .small { font-size: 12.5px; margin-top: 16px; text-align: center; }

/* ── Error pages ── */
.error-page {
    min-height: 100vh; display: flex; flex-direction: column; gap: 10px;
    align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.error-code { font-size: 72px; font-weight: 800; letter-spacing: -3px; color: var(--brand); }
.error-page h1 { font-size: 26px; letter-spacing: -.5px; }
.error-page p { color: var(--muted); max-width: 420px; }
.error-page .btn { margin-top: 14px; }

/* ── Footer ── */
.footer-wave { margin-top: 56px; line-height: 0; background: transparent; }
.footer-wave svg { display: block; width: 100%; height: 54px; }
.site-footer { background: var(--navy); border-top: none; color: var(--footer-text); margin-top: 0; }
.footer-grid { display: flex; flex-direction: column; gap: 24px; padding: 36px 20px; }
.footer-grid-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.trust-badges { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--footer-trust); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sleepie-green); margin-bottom: 8px; font-weight: 800; }
.footer-links a { display: block; font-size: 14px; color: var(--footer-link); text-decoration: none; margin-bottom: 6px; }
.footer-links a:hover { color: var(--sleepie-green); }
.footer-bottom { padding: 0 20px 24px; }
.footer-bottom p { font-size: 13px; color: var(--footer-muted); }
.muted-footer-note { color: var(--footer-muted); }
.site-footer .muted { color: var(--footer-trust); }

/* ── Utilities ── */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.serif-accent { font-family: inherit; font-style: italic; font-weight: 500; letter-spacing: 0; }

/* ── Page header ── */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { letter-spacing: -.5px; }

/* ── Product grid ── */
.grid-products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 22px; }

/* ── Product card ── */
.product-card {
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    background: #fff; display: flex; flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: 0 16px 34px rgba(6, 35, 61, .10); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 64px; font-weight: 800; color: var(--media-fallback-text);
    background: linear-gradient(135deg, var(--media-fallback-bg1), var(--media-fallback-bg2));
}
.media-fallback.tall { aspect-ratio: auto; min-height: 320px; font-size: 96px; }
.badge-off {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: var(--sleepie-green); color: var(--navy); font-size: 11.5px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 15.5px; line-height: 1.35; letter-spacing: -.2px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-now { font-weight: 800; color: var(--ink); }
.price-now.big { font-size: 28px; letter-spacing: -.5px; }
.price-mrp { color: var(--muted); font-size: .85em; }

/* ── Stock line (WCAG AA compliant) ── */
.stock-line { font-size: 12.5px; color: #0D6B5A; margin: 0; }
.stock-line.low { color: var(--amber); }
.stock-line.out { color: var(--red); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; gap: 8px; align-items: center; padding-top: 18px; font-size: 13.5px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--ink-soft); }

/* ── Listing ── */
.listing-head h1 { letter-spacing: -.5px; margin-bottom: 6px; }
.listing-head .lead { max-width: 640px; }

/* ── Filter bar ── */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 20px; margin-top: 20px; background: var(--bg-soft);
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.chip {
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
    font-size: 13.5px; color: var(--ink-soft); text-decoration: none; background: #fff;
    transition: all .12s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--sleepie-green); border-color: var(--sleepie-green); color: var(--navy); font-weight: 700; }
.filter-form, .filter-sort { display: flex; align-items: center; gap: 8px; }
.filter-form input[type="number"] {
    width: 84px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
}
.filter-sort select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; }

/* ── Pagination ── */
.pager { display: flex; gap: 8px; justify-content: center; padding: 28px 20px 8px; flex-wrap: wrap; }

/* ── Product detail page ── */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.gallery-main:hover img { transform: scale(1.04); }
.thumbs { display: flex; gap: 8px; padding: 10px; background: var(--bg-soft); }
.thumb { border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; padding: 0; background: none; }
.thumb img { display: block; width: 72px; height: 72px; object-fit: cover; }
.thumb.active { border-color: var(--brand); }

.rating-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.rating-row a { text-decoration: none; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 15px; }

.buy-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.pdp-desc { margin: 16px 0 6px; color: var(--ink-soft); }
.usp-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; padding: 0; }
.usp-list li {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
    padding: 5px 13px; font-size: 13px; color: var(--ink-soft);
}
.buy-actions { margin: 8px 0 18px; }
.buy-actions p { margin-bottom: 10px; }

.delivery-box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-soft); }
.delivery-form { display: flex; gap: 8px; margin-top: 8px; }
.delivery-form input {
    width: 150px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
    font-size: 14px; letter-spacing: 1px;
}
.delivery-result.ok { color: var(--green); margin-top: 8px; }
.delivery-result.err { color: var(--red); margin-top: 8px; }

.specs-table th { width: 40%; }
.faq-item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq-item p { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }

.review-list { display: grid; gap: 14px; margin-top: 16px; }
.review-card { border-radius: var(--radius-lg); position: relative; }
.review-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-card footer { margin-top: 8px; }
.review-card p:first-of-type {
    font-weight: 600;
    font-size: 19px; line-height: 1.5; color: var(--ink-soft);
}
.review-card::before {
    content: "\201C"; position: absolute; top: 2px; right: 14px;
    font-size: 64px; line-height: 1;
    color: var(--sleepie-green); opacity: .35;
}

/* ── Category chips ── */
.category-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding-top: 32px; }
.cat-chip {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
    text-decoration: none; color: var(--ink); background: var(--bg-soft);
    display: flex; flex-direction: column; gap: 3px; transition: all .15s ease;
}
.cat-chip span { font-weight: 700; font-size: 14.5px; }
.cat-chip small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.cat-chip:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(6,35,61,.10); transform: translateY(-1px); }

/* ── Trust strip ── */
.trust-strip .card h3 { font-size: 26px; }
.trust-strip .card p { color: var(--ink-soft); font-weight: 600; font-size: 14px; }

/* ── Sticky buy bar ── */
.sticky-buy {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); padding: 10px 16px;
    justify-content: space-between; align-items: center; gap: 12px;
}
.sticky-buy { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* ── Steps ── */
.steps { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.step { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.step.active { color: var(--brand-cta); }
.step:not(.active) { opacity: .75; }

/* ── Cart layout ── */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; margin-top: 18px; }
.cart-lines { display: flex; flex-direction: column; gap: 14px; }

.cart-line { display: grid; grid-template-columns: 110px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 14px; }
.line-media { display: block; border-radius: 8px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4/3; position: relative; }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.media-fallback.sm { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 28px; color: var(--media-fallback-text); background: linear-gradient(135deg,var(--media-fallback-bg1),var(--media-fallback-bg2)); }
.line-info h3 { font-size: 15px; margin-bottom: 2px; }
.line-info h3 a { color: var(--ink); text-decoration: none; }
.line-info h3 a:hover { color: var(--brand); }
.line-price { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* ── Quantity controls ── */
.qty-form, .qty-row { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--ink-soft); }
.qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.qty-num { min-width: 22px; text-align: center; font-weight: 700; }
.qty-row select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.qty-row label { font-size: 13px; color: var(--muted); }

.link-danger { color: var(--red); font-size: 13px; }
.link-danger:hover { text-decoration: underline; }

/* ── Coupon ── */
.coupon-box { display: flex; flex-direction: column; gap: 10px; }
.coupon-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.coupon-form input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; text-transform: uppercase; letter-spacing: 1px; width: 170px; }

/* ── Totals panel ── */
.totals-panel { position: sticky; top: 84px; }
.totals-panel h3 { margin-bottom: 12px; }
.totals-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.totals-rows div { display: flex; justify-content: space-between; font-size: 14.5px; }
.totals-rows dt { color: var(--ink-soft); }
.totals-rows dd { font-weight: 600; }
.totals-rows .green dd { color: var(--green); }
.totals-rows .grand { border-top: 2px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 17px; }
.totals-rows .grand dd { font-weight: 800; }
.green-text { color: var(--green); }

/* ── Shipping progress ── */
.ship-progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.ship-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sleepie-green), var(--sleepie-green-dark)); border-radius: 999px; transition: width .3s ease; }

/* ── Checkout ── */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; margin-top: 18px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 18px; }
.form-card h2 { font-size: 17px; margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

.pay-option { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; margin-bottom: 10px; cursor: pointer; align-items: flex-start; }
.pay-option input[type="radio"] { margin-top: 3px; accent-color: var(--brand); }
.pay-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pay-option.invalid { border-color: var(--red); }
.pay-body strong { display: block; font-size: 14.5px; }
.pay-body small { color: var(--ink-soft); }

/* ── Mini order lines ── */
.mini-lines { margin-bottom: 14px; }
.mini-lines h3 { font-size: 14px; margin-bottom: 8px; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 4px 0; color: var(--ink-soft); }

/* ── Success page ── */
.success-wrap { max-width: 980px; }
.success-card { padding: 40px 24px; }
.success-icon { font-size: 52px; }
.order-no { font-size: 19px; margin: 10px 0 14px; }
.success-card .lead { max-width: none; margin-top: 6px; }

/* ── Cart link ── */
.cart-link { position: relative; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.cart-link:hover { color: var(--brand-cta); }
.cart-link-icon { display: flex; align-items: center; }
.cart-badge {
    position: absolute; top: -9px; right: -16px; background: var(--brand); color: #fff;
    border-radius: 999px; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ── Empty cart ── */
.empty-cart { padding: 48px 24px; }

/* ── Admin ── */
.admin-form-grid { display: flex; flex-direction: column; gap: 18px; }
.form-row.four { grid-template-columns: repeat(4, 1fr); }

.check-line { display: flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 5px 0; cursor: pointer; }
.check-line input { accent-color: var(--brand); width: 16px; height: 16px; }
.admin-form-actions { position: sticky; bottom: 0; background: rgba(255,255,255,.95); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar .admin-search { flex: 1; min-width: 180px; max-width: 320px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.filter-bar .admin-select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }

.admin-products-table td { vertical-align: middle; }
.cell-thumb { width: 64px; }
.cell-thumb img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }
.cell-thumb .media-fallback.sm { position: static; width: 52px; height: 40px; font-size: 18px; }

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0; }
.img-cell { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0; }
.img-cell.is-main { outline: 2px solid var(--green); }
.img-cell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.img-cell figcaption { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 7px 9px; font-size: 12.5px; }

/* ── Form elements ── */
textarea { width: 100%; padding: 10px 12px; font-family: inherit; font-size: 14.5px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; font-family: inherit; background: #fff; }
input[type="file"] { font-size: 14px; }

/* ── USP strip ── */
.usp-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 22px; }
.usp-item {
    display: flex; align-items: center; gap: 12px; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px;
}
.usp-item svg { flex: none; width: 30px; height: 30px; stroke: var(--brand-cta); }
.usp-item strong { display: block; font-size: 14.5px; }
.usp-item small { color: var(--muted); font-size: 12.5px; }

/* ── Category circles ── */
.cat-circles { display: flex; gap: 26px; overflow-x: auto; padding: 18px 6px 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cat-circle { min-width: 128px; text-align: center; scroll-snap-align: start; text-decoration: none; color: var(--ink); }
.cat-circle .bubble {
    width: 122px; height: 122px; border-radius: 50%; margin: 0 auto 10px;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 24%, var(--media-fallback-bg1), var(--media-fallback-bg2) 72%);
    font-weight: 800; font-size: 38px; color: var(--sleepie-green-dark);
    box-shadow: inset 0 -8px 18px rgba(6, 35, 61, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.cat-circle:hover .bubble { transform: translateY(-4px) scale(1.03); box-shadow: inset 0 -8px 18px rgba(6,35,61,.06), 0 14px 26px rgba(6,35,61,.12); }
.cat-circle strong { display: block; font-size: 14px; }
.cat-circle small { color: var(--muted); font-size: 11.5px; }

/* ── Rating input ── */
.rating-input { display: flex; gap: 6px; flex-wrap: wrap; }
.rate-pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.rate-pill input { accent-color: var(--brand-cta); margin-right: 4px; }
.rate-pill:has(input:checked) { background: var(--sleepie-green); color: var(--navy); border-color: var(--sleepie-green); font-weight: 700; }

/* ── Address / review admin ── */
.address-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-mod header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); }
.post-content { font-size: 16.5px; line-height: 1.75; max-width: 720px; color: var(--ink-soft); }

/* ── Legal body ── */
.legal-body { max-width: 740px; font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.legal-body h1 { font-size: 28px; margin-bottom: 4px; color: var(--ink); }
.legal-body h2 { font-size: 20px; margin: 28px 0 8px; color: var(--ink); }
.legal-body h3 { font-size: 16px; margin: 18px 0 6px; color: var(--ink-soft); font-weight: 600; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 8px 0 12px; }
.legal-body li { margin-bottom: 6px; }
.legal-body p { margin-bottom: 12px; }
.legal-body a { color: var(--brand); }
.legal-body table { margin: 12px 0; width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-body table th, .legal-body table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-body table th { background: var(--bg-soft); font-weight: 600; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; text-align: left; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info h1 { font-size: 28px; margin-bottom: 8px; }
.contact-detail { margin: 20px 0; }
.contact-detail h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.contact-detail a { color: var(--brand); font-size: 16px; }
.contact-detail p { font-size: 16px; color: var(--ink-soft); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 15px; font-family: inherit; color: var(--ink); background: var(--bg); transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.input-error { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 1px; }
.field-error { font-size: 13px; color: var(--red); margin-top: 4px; display: block; }

/* ── Table wrap ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.table-wrap .table { min-width: 620px; margin-top: 0; }

/* ── Chip / btn min-height (touch targets) ── */
.chip, .btn-sm, .btn-linkish { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }

/* ══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════ */

/* ── ≤900px: Collapse multi-column layouts ── */
@media (max-width: 900px) {
    .pdp { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .totals-panel { position: static; }
    .form-row, .form-row.three { grid-template-columns: 1fr; }
}

/* ── ≤860px (desktop small) ── */
@media (max-width: 860px) and (min-width: 769px) {
    .pdp { gap: 26px; }
    .hero-v2 h1 { font-size: clamp(34px, 4.4vw, 46px); }
}

/* ── ≤768px: Tablet ── */
@media (max-width: 768px) {
    .grid-products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
    .form-row.three { grid-template-columns: repeat(2, 1fr); }
    .form-row.four { grid-template-columns: repeat(2, 1fr); }
    .footer-grid-top { flex-direction: column; align-items: flex-start; gap: 16px; }
    .trust-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 16px; }
    .legal-body { font-size: 15px; }
    .legal-body h1 { font-size: 24px; }
    .legal-body h2 { font-size: 18px; }
}

/* ── ≤720px: Mobile ── */
@media (max-width: 720px) {
    .announce li { font-size: 11px; letter-spacing: .1em; }
    .hero-v2 { border-radius: var(--radius-lg); }
    .sticky-buy { display: flex; }
    body { padding-bottom: 58px; }
    .table-wrap {
        background:
            linear-gradient(90deg, var(--bg) 30%, rgba(255,255,255,0)),
            linear-gradient(270deg, var(--bg) 30%, rgba(255,255,255,0)) right;
        background-size: 24px 100%;
        background-repeat: no-repeat;
        background-attachment: local;
    }
}

/* ── ≤640px: Small mobile ── */
@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { padding: 0 16px; }
    .section, .section-sm { padding-top: 34px; }

    .grid-products {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 12px; padding-bottom: 14px; scrollbar-width: none;
        background:
            linear-gradient(270deg, var(--bg) 22px, transparent),
            linear-gradient(90deg, var(--bg) 22px, transparent) right;
        background-size: 24px 100%; background-repeat: no-repeat; background-attachment: local;
    }
    .grid-products::-webkit-scrollbar { display: none; }
    .grid-products > .product-card { flex: 0 0 78vw; max-width: 320px; scroll-snap-align: center; }

    .usp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .usp-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px 14px; }
    .usp-item svg { width: 24px; height: 24px; }

    .cat-circles { justify-content: flex-start; gap: 16px; }
    .cat-circle { min-width: 104px; }
    .cat-circle .bubble { width: 96px; height: 96px; font-size: 32px; }

    .filter-bar { gap: 10px; }
    .filter-group { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; max-width: 100%; }
    .filter-group::-webkit-scrollbar { display: none; }
    .filter-label { display: none; }
    .filter-form, .filter-sort { width: 100%; justify-content: space-between; }

    .hero-v2 { min-height: 480px; text-align: left; }
    .hero-v2::before {
        background: linear-gradient(180deg, rgba(4,17,29,.55) 0%, rgba(4,17,29,.78) 70%, rgba(4,17,29,.92) 100%);
    }
    .hero-dots { bottom: 12px; }
    .hero-v2::after { width: 190px; height: 190px; border-width: 26px; top: -60px; right: -60px; }
    .hero-actions .btn { width: 100%; }

    .cart-line { grid-template-columns: 84px minmax(0, 1fr); }
    .line-price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }

    .steps { gap: 6px; }
    .step { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }

    .error-code { font-size: 48px; }

    .admin-products-table { min-width: 700px; }
}

/* ── ≤480px: Extra small ── */
@media (max-width: 480px) {
    .mobile-header { height: 54px; padding: 0 12px; }
    .mobile-logo img { max-width: 95px; }
    .announce li { letter-spacing: .06em; font-size: 11px; }
    .hero-v2::after { display: none; }
    .hero-v2 { padding: 36px 20px 44px; }
    .form-row.three, .form-row.four { grid-template-columns: 1fr; }
    .img-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
    .footer-links { grid-template-columns: 1fr; }
}

/* ── Touch devices ── */
@media (pointer: coarse) {
    input, select, textarea { font-size: 16px; }
    .chip { padding: 9px 16px; }
    .btn { padding-top: 13px; padding-bottom: 13px; }
    .desktop-header .main-nav a { padding: 9px 16px; }
}

/* ── Large screens ── */
@media (min-width: 1441px) {
    .hero-v2 h1 { font-size: 64px; }
}

/* ══════════════════════════════════════════════════
   ADMIN LAYOUT
   ══════════════════════════════════════════════════ */
.admin-body { background: var(--bg); }
.admin-body .site-header, .admin-body .site-footer,
.admin-body .announce, .admin-body .footer-wave { display: none; }

.admin-topbar { position: sticky; top: 0; z-index: 60; background: var(--navy); box-shadow: 0 2px 14px rgba(2,31,55,.18); }
.admin-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; height: 64px; flex-wrap: wrap; }
.admin-brand { display: inline-flex; align-items: center; }
.admin-brand img { display: block; }
.admin-menu-toggle { display: none; }
.admin-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-nav-link { color: var(--footer-link); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; transition: background .15s ease, color .15s ease; }
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-nav-link.is-active { color: var(--navy); background: var(--sleepie-green); }
.admin-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-user { color: var(--footer-text); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-topbar-actions .btn { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.admin-topbar-actions .btn:hover { border-color: var(--sleepie-green); color: var(--sleepie-green); }
.admin-nav-backdrop { display: none; }

.table tr.row-link { cursor: pointer; }
.table tr.row-link:focus { outline: none; }
.table tr.row-link:focus-visible { outline: 2px solid var(--sleepie-green); outline-offset: -2px; }
.table tr.row-link:hover td { background: rgba(2,31,55,.04); }

.admin-main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 48px; min-height: calc(100vh - 64px - 56px); }

.admin-footer { border-top: 1px solid var(--line); background: #fff; }
.admin-footer-inner { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .admin-topbar-inner { height: 56px; padding: 0 14px; gap: 10px; flex-wrap: nowrap; }
    .admin-brand img { width: 102px; height: auto; }
    .admin-menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; flex: 0 0 auto; width: 40px; height: 40px; padding: 8px; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; cursor: pointer; }
    .admin-menu-toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; background: #fff; border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
    .admin-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .admin-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .admin-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .admin-nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: 272px; max-width: 82vw; flex-direction: column; align-items: stretch; gap: 2px; padding: 70px 14px 20px; background: var(--navy); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
    body.admin-nav-open .admin-nav { transform: translateX(0); visibility: visible; box-shadow: 0 0 40px rgba(0,0,0,.35); }
    .admin-nav-link { padding: 12px 14px; font-size: 15px; }
    .admin-nav-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(2,10,20,.55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
    body.admin-nav-open .admin-nav-backdrop { opacity: 1; pointer-events: auto; }
    .admin-topbar { z-index: 90; }
    .admin-user { display: none; }
    .admin-topbar-actions { margin-left: auto; }
    .admin-main { padding: 20px 16px 40px; }
}

/* ══════════════════════════════════════════════════
   ADMIN CMS BUILDER
   ══════════════════════════════════════════════════ */
.cms-list { display: flex; flex-direction: column; gap: 12px; }
.cms-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.cms-row.is-hidden { opacity: .6; }
.cms-row-grip { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.cms-row-grip .btn-linkish { font-size: 15px; line-height: 1; padding: 2px 4px; }
.cms-row-thumb { flex: none; width: 60px; }
.cms-row-thumb img { width: 60px; height: 44px; object-fit: cover; border-radius: 7px; display: block; }
.cms-row-thumb .media-fallback.sm { position: static; width: 60px; height: 44px; font-size: 16px; }
.cms-row-body { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cms-row-title { font-size: 15px; }
.cms-type { font-size: 12px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.cms-row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cms-row-actions .badge { margin-left: 2px; }
@media (max-width: 768px) {
    .cms-row { flex-wrap: wrap; }
    .cms-row-body { width: 100%; order: 3; }
}

/*
   Homepage CMS rendered sections
*/
.cms-text-block { max-width: 720px; }
.cms-text-block p { color: var(--ink-soft); line-height: 1.7; }
.cms-text-link { margin-top: 18px; }
.cms-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.cms-split-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; aspect-ratio: 4/3; }
.cms-split-body p { color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 720px) {
    .cms-split { grid-template-columns: 1fr; gap: 18px; }
}

/* ══════════════════════════════════════════════════
   STORE VIEW SWITCH (grid / table)
   ══════════════════════════════════════════════════ */
.view-switch {
    display: inline-flex;
    gap: 2px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 18px;
}
.view-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.view-btn:hover { color: var(--ink); }
.view-btn.is-active { background: var(--ink); color: #fff; }

/* Show only the selected view on desktop/tablet */
.store-table { display: none; }
.store-grid { display: block; }
.store-view.view-table .store-grid { display: none; }
.store-view.view-table .store-table { display: block; }
.store-view.view-table .view-btn[aria-label="Table view"],
.store-view.view-grid .view-btn[aria-label="Grid view"] { background: var(--ink); color: #fff; }

/* Client table list view */
.store-table-view { min-width: 640px; }
.store-table-view tbody tr:hover td { background: var(--bg-soft); }
.store-table-link { color: var(--ink); }
.store-table .price-now { font-weight: 700; }

/* Admin grid cards */
.admin-store-grid { margin-top: 18px; }
.admin-card .card-body { display: flex; flex-direction: column; gap: 10px; }
.admin-card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-card-actions .btn { margin: 0; }

/*
   Responsive: grid is the DEFAULT on mobile regardless of the chosen view.
   On small screens we force the grid layout and hide the table.
*/
@media (max-width: 768px) {
    .store-view.view-table .store-grid { display: block; }
    .store-view.view-table .store-table { display: none; }
    .view-switch { margin-bottom: 14px; }
    .store-table-view { min-width: 0; }
}

/* ══════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════ */
@media print {
    .site-header, .desktop-header, .mobile-header, .mobile-menu,
    .announce, .footer-wave, .site-footer, .sticky-buy,
    .cart-link, .hero-dots, .hero-v2::after, .btn,
    .filter-bar, .pager, .admin-form-actions, .mobile-menu-toggle {
        display: none !important;
    }
    body { background: #fff; color: #000; font-size: 12pt; }
    .container { max-width: 100%; padding: 0; }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
    a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
    img { max-width: 100% !important; }
    .product-card, .card { border: 1px solid #ccc; break-inside: avoid; }
    h1, h2, h3 { break-after: avoid; }
    .hero-v2 { background: #f5f5f5 !important; color: #000; min-height: auto; padding: 24px; }
    .hero-v2 h1 em { color: #000; }
}
