/* Vita Synth Medicare - storefront + admin styles.
   Palette is derived neutrally (teal/navy healthcare tones) until the official logo/brand colours are supplied:
   change the variables below and the whole site follows. */
:root {
    --brand: #0f6b7a; --brand-dark: #0a4a57; --brand-soft: #e3f2f4; --accent: #1fb59a;
    --ink: #14252c; --muted: #5a6b72; --bg: #f3f8f9; --surface: #fff; --line: #d9e5e8;
    --danger: #b3261e; --ok: #1b7a3d; --warn: #9a6700;
    --radius: 14px; --shadow: 0 8px 30px rgba(10, 74, 87, .09); --shadow-lg: 0 18px 50px rgba(10, 74, 87, .18);
}

/* Dark theme: storefront only */
html[data-theme="dark"] {
    color-scheme: dark;

    --brand: #53c6d2;
    --brand-dark: #9be5eb;
    --brand-soft: #203b43;
    --accent: #4ed7b5;

    --ink: #e7eef2;
    --muted: #aabac4;
    --bg: #101820;
    --surface: #192630;
    --line: #30414d;

    --danger: #ff8d86;
    --ok: #72d6a0;
    --warn: #f2c66d;

    --shadow: 0 8px 30px rgba(0, 0, 0, .22);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .35);
}

/* Dark theme surfaces and form controls */
html[data-theme="dark"] body,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .search input,
html[data-theme="dark"] .suggest,
html[data-theme="dark"] .nav-drop-menu,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .gallery-main,
html[data-theme="dark"] .thumb,
html[data-theme="dark"] .table,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .alert,
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .timeline .dot,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="datetime-local"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="file"] {
    background-color: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}

html[data-theme="dark"] .site-header {
    background: rgba(16, 24, 32, .9);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .nav-drop-btn,
html[data-theme="dark"] .icon-link,
html[data-theme="dark"] .suggest a,
html[data-theme="dark"] .card-title a,
html[data-theme="dark"] .cat-card,
html[data-theme="dark"] .account-nav a,
html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td {
    color: var(--ink);
}

html[data-theme="dark"] .suggest a:hover,
html[data-theme="dark"] .nav-drop-menu a:hover,
html[data-theme="dark"] .icon-link:hover,
html[data-theme="dark"] .account-nav a:hover,
html[data-theme="dark"] .account-nav a[aria-current="page"] {
    background: var(--brand-soft);
}

html[data-theme="dark"] .table th {
    background: #22323d;
}

html[data-theme="dark"] .pill-note,
html[data-theme="dark"] .btn-light {
    background: var(--surface);
    color: var(--ink) !important;
    border-color: var(--line);
}

html[data-theme="dark"] .theme-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    padding: 0;
}

html[data-theme="dark"] .theme-toggle:focus-visible {
    outline: 3px solid #f5a623;
    outline-offset: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); } h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 56px; min-height: 60vh; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .num { text-align: right; } .center { text-align: center; } .left { text-align: left; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pad { padding: 20px; } .text-ok { color: var(--ok); } .stack { display: grid; gap: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-dark); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; font-size: .9rem; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 6px 16px rgba(15, 107, 122, .35); }
.search { position: relative; flex: 1 1 280px; max-width: 460px; }
.search input { width: 100%; padding: 11px 44px 11px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.search-btn { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 70; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--brand-soft); }
.suggest img, .suggest .sg-ph { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--brand-soft); flex: none; }
.suggest .sg-price { margin-left: auto; color: var(--muted); font-size: .85rem; }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav a, .nav-drop-btn { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-drop { position: relative; }
.nav-drop-btn { color: var(--ink) !important; text-decoration: none !important; }
.nav-drop-menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; display: grid; }
.nav-drop-menu a { padding: 8px 12px; border-radius: 8px; } .nav-drop-menu a:hover { background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); text-decoration: none; transition: background .2s; }
.icon-link:hover { background: var(--brand-soft); }
.count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.icon { display: block; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.inline-form { display: inline; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff !important; border: 0; border-radius: 999px; padding: 12px 26px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(15, 107, 122, .28); transition: transform .18s ease, box-shadow .18s ease, opacity .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 107, 122, .36); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-small { padding: 8px 16px; font-size: .9rem; } .btn-block { display: flex; width: 100%; margin-top: 12px; }
.btn-ghost { background: transparent; color: var(--brand) !important; border: 1.5px solid var(--brand); box-shadow: none; }
.btn-ghost:hover { background: var(--brand-soft); box-shadow: none; }
.btn-light { background: #fff; color: var(--brand-dark) !important; box-shadow: none; }
.btn-danger { background: var(--danger); box-shadow: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; display: inline-grid; place-items: center; color: var(--ink); }

/* alerts, badges */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid var(--line); background: #fff; }
.alert-success { border-color: #b7e0c4; background: #eefaf1; } .alert-error { border-color: #f1b8b4; background: #fdf0ef; } .alert-info { border-color: #b8d4e8; background: #eef6fb; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.badge-sale { background: #e6f6ec; color: var(--ok); }
.badge-warn { background: #fff3d6; color: var(--warn); } .badge-bad { background: #fde7e5; color: var(--danger); }
.badge.corner { position: absolute; top: 12px; left: 12px; }

/* hero + 3D */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding: 24px 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -.02em; background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.hero-scene { position: relative; height: 380px; perspective: 1000px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-a { width: 260px; height: 260px; background: radial-gradient(circle at 30% 30%, #bfeee6, #5cc9b5 60%, transparent 72%); opacity: .7; top: 10px; right: 20px; }
.orb-b { width: 160px; height: 160px; background: radial-gradient(circle at 30% 30%, #cfe9f1, #7fb9cb 60%, transparent 72%); opacity: .7; bottom: 10px; left: 20px; }
.cube-stage { position: relative; width: 170px; height: 170px; transform-style: preserve-3d; transform: rotateX(calc(var(--my, 0) * -10deg)) rotateY(calc(var(--mx, 0) * 14deg)); transition: transform .25s ease-out; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin 18s linear infinite; }
.face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); background: linear-gradient(145deg, rgba(255, 255, 255, .85), rgba(190, 232, 226, .55)); box-shadow: inset 0 0 40px rgba(31, 181, 154, .25); color: var(--brand-dark); font-size: 3rem; font-weight: 800; }
.f-front { transform: translateZ(85px); } .f-back { transform: rotateY(180deg) translateZ(85px); }
.f-right { transform: rotateY(90deg) translateZ(85px); } .f-left { transform: rotateY(-90deg) translateZ(85px); }
.f-top { transform: rotateX(90deg) translateZ(85px); } .f-bottom { transform: rotateX(-90deg) translateZ(85px); }
.shadow { position: absolute; left: 10%; right: 10%; bottom: -70px; height: 28px; border-radius: 50%; background: radial-gradient(rgba(10, 74, 87, .3), transparent 70%); transform: rotateX(80deg); }
.capsule { position: absolute; width: 74px; height: 28px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) 50%, #fff 50%); box-shadow: var(--shadow); border: 1px solid rgba(10, 74, 87, .2); animation: float 7s ease-in-out infinite; }
.c1 { top: 40px; left: 14%; transform: rotate(-24deg); } .c2 { bottom: 60px; right: 12%; transform: rotate(32deg); animation-delay: -2s; } .c3 { top: 120px; right: 4%; width: 54px; height: 22px; transform: rotate(70deg); animation-delay: -4s; }
@keyframes spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* sections, grid, cards */
.section { margin-top: 56px; } .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-features { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .grid-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
[data-tilt] { transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .25s ease; will-change: transform; }
[data-tilt]:hover { box-shadow: var(--shadow-lg); }
.product-card .card-media-wrap { position: relative; }
.card-media { display: block; aspect-ratio: 1 / 1; background: var(--brand-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; } .product-card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 16px; } .card-title { margin: 0 0 6px; font-size: 1.05rem; } .card-title a { color: var(--ink); text-decoration: none; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.wish-form { position: absolute; top: 10px; right: 10px; }
.wish-btn.is-active { color: var(--danger); } .wish-btn.is-active svg { fill: currentColor; }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; font-size: 2.4rem; font-weight: 800; color: var(--brand); background: linear-gradient(135deg, #e3f2f4, #c9e6e3); }
.media-large { aspect-ratio: 1 / 1; border-radius: var(--radius); font-size: 4rem; }
.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .price-current { font-size: 1.25rem; font-weight: 800; } .price-regular { color: var(--muted); }
.stock { margin: 4px 0 0; font-size: .875rem; font-weight: 600; } .stock-in { color: var(--ok); } .stock-out { color: var(--danger); }
.stars { color: #cfd8dc; letter-spacing: 1px; } .star.is-on { color: #f5a623; } .rating-row { margin: 2px 0; }
.cat-card { display: grid; gap: 4px; padding: 16px; text-decoration: none; color: var(--ink); } .cat-card img { border-radius: 10px; margin-bottom: 8px; width: 100%; height: 120px; object-fit: cover; } .cat-name { font-weight: 700; }
.feature { padding: 22px; } .feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.quote { padding: 20px; margin: 0; } .quote blockquote { margin: 8px 0; }
.promo, .cta-band { margin-top: 56px; border-radius: 22px; padding: 32px; background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, var(--accent)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band { flex-direction: column; text-align: center; } .promo h2, .cta-band h2 { color: #fff; margin: 0 0 4px; } .promo p, .cta-band p { margin: 0; opacity: .9; }
[data-reveal].will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; } [data-reveal].is-visible { opacity: 1; transform: none; }

/* shop */
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; } .shop-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; } .filters-close, .filter-open { display: none; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; } legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.radio { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; } .radio.box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.price-range { display: flex; align-items: center; gap: 8px; } .price-range input { width: 100%; }
.filters-actions { display: flex; gap: 8px; } .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sort-form { display: flex; align-items: center; gap: 8px; margin-left: auto; } select, textarea, input[type="number"], input[type="search"], input[type="file"] { font: inherit; padding: 10px 12px; border: 1px solid #b8c9cd; border-radius: 10px; background: #fff; max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; } .chip { background: var(--brand-soft); color: var(--brand-dark); padding: 4px 12px; border-radius: 999px; font-size: .875rem; text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; } .pagination a, .pagination .current { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; background: #fff; } .pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty-state { text-align: center; padding: 56px 16px; }
.scrim { position: fixed; inset: 0; background: rgba(10, 30, 36, .5); z-index: 80; }

/* product page */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; } .gallery-main img { width: 100%; transition: transform .3s ease; cursor: zoom-in; }
@media (hover: hover) { .gallery-main:hover img { transform: scale(1.7); transform-origin: var(--zx, 50%) var(--zy, 50%); } }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .thumb { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; } .thumb.is-active { border-color: var(--brand); } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.buybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; } .qty { display: inline-flex; align-items: center; gap: 4px; } .qty input { width: 64px; text-align: center; }
.product-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .info-list li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.detail-section { margin-top: 36px; } .review { border-bottom: 1px solid var(--line); padding: 12px 0; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; } .rating-input input { position: absolute; opacity: 0; } .rating-input label { font-size: 1.8rem; color: #cfd8dc; cursor: pointer; } .rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f5a623; } .rating-input input:focus-visible + label { outline: 3px solid #f5a623; }
.table-wrap { overflow-x: auto; } .table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; } .table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } .table th { background: #f6fafb; font-size: .85rem; } .table td.num, .table th.num { text-align: right; }

/* forms */
.form-card { max-width: 480px; margin: 16px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); } .form-card.left { margin-left: 0; }
.field { margin-bottom: 16px; } .field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="url"], .field input[type="number"], .field input[type="date"], .field input[type="datetime-local"], .field select, .field textarea { width: 100%; padding: 12px; border: 1px solid #b8c9cd; border-radius: 10px; font: inherit; background: #fff; }
.field input:disabled { background: #eef3f4; } .field input[aria-invalid="true"] { border-color: var(--danger); }
.field-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .field-check label { display: inline; margin: 0; font-weight: 400; }
.field-error { color: var(--danger); font-size: .9rem; margin: 4px 0 0; flex-basis: 100%; } .hint { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.newsletter { display: flex; gap: 8px; } .newsletter input[type="email"] { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #b8c9cd; border-radius: 999px; font: inherit; }

/* cart / checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 14px; margin-bottom: 14px; align-items: center; }
.cart-thumb { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; display: block; } .cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-actions, .qty-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .cart-total { font-weight: 800; margin: 0; }
.summary { padding: 22px; position: sticky; top: 90px; } .totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 14px; } .totals dd { margin: 0; text-align: right; } .totals .grand { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 8px; } .coupon-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #b8c9cd; border-radius: 999px; font: inherit; text-transform: uppercase; }
.mini-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; } .mini-items li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.checkout-main { display: grid; gap: 20px; } .checkout-main h2 { font-size: 1.2rem; }
.confirm-head { text-align: center; margin-bottom: 24px; } .confirm-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e6f6ec; color: var(--ok); margin-bottom: 8px; } .confirm-icon .icon { width: 32px; height: 32px; }
.timeline { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding-bottom: 18px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); } .timeline li:last-child::before { display: none; }
.timeline .dot { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: #fff; } .timeline .dot .icon { width: 16px; height: 16px; }
.timeline li.is-done { color: var(--ink); } .timeline li.is-done .dot { background: var(--ok); border-color: var(--ok); color: #fff; } .timeline li.is-done::before { background: var(--ok); } .t-label { font-weight: 600; }
.account-layout { display: grid; grid-template-columns: 200px 1fr; gap: 28px; } .account-nav { display: grid; gap: 4px; align-content: start; } .account-nav a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); } .account-nav a:hover, .account-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.stats .stat { padding: 18px; text-decoration: none; color: var(--ink); } .stat-value { font-size: 2rem; font-weight: 800; margin: 0; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; } .prose { max-width: 760px; } .prose h2 { margin-top: 1.6em; }

/* footer, toast, dialog */
.site-footer { background: #0b2f38; color: #cfe3e8; padding: 40px 0 20px; margin-top: 40px; } .site-footer a { color: #cfe3e8; } .site-footer .muted { color: #9db8bf; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 28px; } .footer-grid nav { display: grid; gap: 6px; align-content: start; } .footer-brand { color: #fff; font-weight: 800; font-size: 1.2rem; } .footer-h { color: #fff; font-size: 1rem; } .footer-h-gap { margin-top: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 300; max-width: 90vw; } .toast.is-error { background: var(--danger); }
.quickview { border: 0; border-radius: 20px; padding: 24px; max-width: 760px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); } .quickview::backdrop { background: rgba(10, 30, 36, .55); }
.qv-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; } .qv-media img { border-radius: 12px; width: 100%; } .qv-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; }
.error-page { text-align: center; padding-top: 14vh; } .error-code { font-size: 5rem; font-weight: 800; margin: 0; background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* admin */
.admin-body { background: #eef3f5; } .admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: #0b2f38; color: #cfe3e8; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; } .admin-side .brand { color: #fff; padding: 6px 10px 16px; display: flex; }
.admin-side nav { display: grid; gap: 2px; } .admin-side nav a { color: #cfe3e8; text-decoration: none; padding: 9px 12px; border-radius: 10px; } .admin-side nav a:hover, .admin-side nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); } .admin-main { padding: 24px; overflow-x: hidden; }
.admin-toggle { display: none; } .admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); } .admin-card h2 { font-size: 1.1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; } .stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; } .stat-tile .stat-value { font-size: 1.7rem; }
.chart { width: 100%; height: auto; } .chart .bar { fill: var(--brand); } .chart text { font-size: 11px; fill: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; } .form-grid .wide { grid-column: 1 / -1; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: end; } .filter-bar input, .filter-bar select { min-width: 0; }
.img-grid { display: flex; flex-wrap: wrap; gap: 12px; } .img-tile { width: 130px; text-align: center; } .img-tile img { width: 130px; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .inline-actions form { margin: 0; }

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; } .hero-scene { height: 300px; }
    .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: 1fr; } .summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; } .product-layout { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(88vw, 340px); z-index: 90; overflow-y: auto; border-radius: 0 var(--radius) var(--radius) 0; transform: translateX(-105%); transition: transform .25s ease; }
    .filters.is-open { transform: none; } .filters-close, .filter-open { display: inline-grid; }
    .account-layout { grid-template-columns: 1fr; } .account-nav { grid-auto-flow: column; overflow-x: auto; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .admin-shell { grid-template-columns: 1fr; } .admin-side { position: fixed; left: 0; top: 0; z-index: 90; width: 250px; transform: translateX(-105%); transition: transform .25s; } .admin-side.is-open { transform: none; } .admin-toggle { display: inline-grid; }
}
@media (max-width: 720px) {
    .header-row { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; } .search { order: 3; flex-basis: 100%; max-width: none; }
    .nav-toggle { display: flex; } .site-nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0 12px; margin-left: 0; } .site-nav.is-open { display: flex; }
    .header-actions { margin-left: auto; } .brand-text { font-size: .95rem; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; } .card-actions .btn { flex: 1; }
    .cart-line { grid-template-columns: 72px 1fr; } .cart-thumb { width: 72px; height: 72px; } .cart-total { grid-column: 2; }
    .qv-body { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; } .promo { padding: 22px; }
    .cube-stage { width: 130px; height: 130px; } .f-front { transform: translateZ(65px); } .f-back { transform: rotateY(180deg) translateZ(65px); } .f-right { transform: rotateY(90deg) translateZ(65px); } .f-left { transform: rotateY(-90deg) translateZ(65px); } .f-top { transform: rotateX(90deg) translateZ(65px); } .f-bottom { transform: rotateX(-90deg) translateZ(65px); }
}
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } .card-actions .btn { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } [data-reveal].will-reveal { opacity: 1; transform: none; } }
.w-sm { width: 90px; } .w-md { width: 150px; }
.brand img { display: block; height: 40px; width: auto; max-width: 180px; }
.admin-side .brand img { height: 36px; background: #fff; padding: 4px 8px; border-radius: 8px; }
