/* Layout: e-shop shell — accent utility bar, header (logo | search | icons), mega-menu nav,
   hash-routed views (home, category listing with filter sidebar, product page, info pages), tinted footer. */
:root {
  --bg: #FCFBFD;
  --surface: #FFFFFF;
  --tint: #F4EFF5;
  --tint-2: #EAE2ED;
  --line: #E5DFE8;
  --ink: #1E1A22;
  --muted: #69616F;
  --accent: #6E2C57;
  --accent-hover: #59213F;
  --accent-ink: #FFFFFF;
  --accent-soft: #F5E7F0;
  --sale: #C2343B;
  --ok: #2E7A4D;
  --warn: #A8620A;
  --shadow: 0 18px 40px -18px rgba(50, 20, 45, .28);
  --ph-sat: 42%;
  --ph-light: 80%;
  --ph-dark: 56%;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141117; --surface: #1B171F; --tint: #241F29; --tint-2: #2F2835; --line: #352E3C;
    --ink: #F2EEF4; --muted: #A69EAD; --accent: #DDA4C8; --accent-hover: #EBBCD9; --accent-ink: #1E1A22;
    --accent-soft: #392634; --sale: #F2797F; --ok: #6FC896; --warn: #E6AA4E;
    --shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
    --ph-sat: 34%; --ph-light: 64%; --ph-dark: 44%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141117; --surface: #1B171F; --tint: #241F29; --tint-2: #2F2835; --line: #352E3C;
  --ink: #F2EEF4; --muted: #A69EAD; --accent: #DDA4C8; --accent-hover: #EBBCD9; --accent-ink: #1E1A22;
  --accent-soft: #392634; --sale: #F2797F; --ok: #6FC896; --warn: #E6AA4E;
  --shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  --ph-sat: 34%; --ph-light: 64%; --ph-dark: 44%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar-right { display: flex; gap: 20px; }
@media (max-width: 760px) { .topbar-right { display: none; } .topbar .wrap { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-block: 14px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 32px; letter-spacing: .01em; }
.logo-tag { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.search { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); max-width: 620px; width: 100%; justify-self: center; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 6px 11px 20px; outline: none; }
.search button { border: 0; background: transparent; padding: 8px 16px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.icons { display: flex; gap: 4px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 22px; height: 22px; }
.count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.count[data-n="0"] { display: none; }
.menu-btn { display: none; }

/* ---------- Main nav + mega menu ---------- */
.main-nav { position: relative; border-top: 1px solid var(--line); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.nav-link {
  display: flex; align-items: center; gap: 6px; padding: 13px 10px;
  background: none; border: 0; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-link svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-item.open > .nav-link, .nav-link:hover, .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.nav-link.sale { color: var(--sale); }
.nav-spacer { flex: 1; }
.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-block: 1px solid var(--line); box-shadow: var(--shadow);
}
.nav-item.open .mega { display: block; }
@media (hover: hover) and (min-width: 901px) {
  .main-nav:not(.suppress) .nav-item:hover .mega { display: block; }
  .main-nav:not(.suppress) .nav-item:hover > .nav-link { color: var(--accent); border-bottom-color: var(--accent); }
}
.mega-inner { display: grid; grid-template-columns: 1fr 280px; gap: 32px; padding-block: 24px 28px; }
.mega-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; align-content: start; }
.mega-cat { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.mega-cat .thumb { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--tint); display: grid; place-items: center; overflow: hidden; transition: background .15s; }
.mega-cat:hover .thumb { background: var(--tint-2); }
.mega-cat .thumb svg { width: 62%; height: 80%; }
.mega-cat strong { font-size: 14px; }
.mega-cat span { font-size: 12.5px; color: var(--muted); }
.mega-promo { background: var(--accent-soft); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.mega-promo h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.mega-promo .eyebrow { color: var(--accent); }

/* ---------- Mobile drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 10, 20, .45); z-index: 80; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 90; width: min(380px, 90vw);
  background: var(--surface); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: transform .25s ease;
}
.drawer.left { left: 0; transform: translateX(-102%); padding-left: env(safe-area-inset-left, 0px); }
.drawer.right { right: 0; transform: translateX(102%); padding-right: env(safe-area-inset-right, 0px); }
.drawer.open { transform: none; box-shadow: var(--shadow); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 18px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 12px; }
.m-group { border-bottom: 1px solid var(--line); }
.m-group summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; }
.m-group summary::-webkit-details-marker { display: none; }
.m-group a { display: block; padding: 9px 0 9px 12px; text-decoration: none; color: var(--muted); }
.m-group a.sub { padding-left: 28px; }
.m-link { display: block; padding: 14px 0; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .header-main { grid-template-columns: auto 1fr auto; gap: 8px 12px; padding-block: 10px 12px; }
  .header-main .logo { justify-self: start; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .logo-name { font-size: 26px; }
  .logo-tag { display: none; }
  .hide-sm { display: none !important; }
}

/* ---------- Generic sections ---------- */
main { min-height: 50vh; }
.section { padding-block: 40px 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.section-head .tools { display: flex; align-items: center; gap: 8px; }
.link-more { font-weight: 700; font-size: 14px; color: var(--accent); text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.arrow-btn { width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.arrow-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; padding-block: 24px 0; }
.banner { border-radius: 16px; overflow: hidden; text-decoration: none; position: relative; display: grid; }
.banner.main { background: var(--tint); grid-template-columns: 1.1fr 1fr; align-items: center; padding: 40px 0 40px 44px; min-height: 340px; }
.banner.main .eyebrow { color: var(--accent); }
.banner-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: relative; z-index: 1; }
.banner h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; }
.banner p { max-width: 40ch; color: var(--muted); }
.banner-art { display: flex; align-items: flex-end; justify-content: center; height: 100%; min-height: 220px; }
.banner-art svg { width: 34%; height: auto; margin-inline: -3%; }
.banner-art svg:nth-child(2) { width: 40%; }
.banner.side { background: var(--accent); color: var(--accent-ink); padding: 28px; grid-template-rows: auto auto auto 1fr auto; gap: 8px; }
.banner.side h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; }
.banner.side p { color: inherit; opacity: .85; }
.banner.side .banner-art { min-height: 140px; }
.banner.side .banner-art svg { width: 62%; }
.banner.side .ph { --ph-light: 86%; --ph-dark: 70%; }
.banner.side .ph .f { fill: rgba(0, 0, 0, .14); }
.link-arrow { font-weight: 700; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .banner.main { grid-template-columns: 1fr; padding: 28px 24px 0; min-height: 0; }
  .banner-art { min-height: 160px; }
  .banner-art svg { width: 26%; }
  .banner-art svg:nth-child(2) { width: 30%; }
}

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.35; }
.trust-item svg { flex: none; width: 28px; height: 28px; color: var(--accent); }
.trust-item b { display: block; font-size: 14px; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.cat-tile .thumb { aspect-ratio: 1; border-radius: 14px; background: var(--tint); display: grid; place-items: center; overflow: hidden; position: relative; transition: background .15s, transform .15s; }
.cat-tile .thumb svg { width: 70%; height: 70%; }
.cat-tile .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover .thumb { background: var(--tint-2); }
.cat-tile strong { font-size: 14.5px; line-height: 1.3; }
.cat-tile span { font-size: 12.5px; color: var(--muted); margin-top: -6px; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 28px 18px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.media { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--tint); overflow: hidden; display: grid; place-items: center; }
.media > svg { width: 72%; height: 72%; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card-media { display: block; text-decoration: none; position: relative; }
.card-media:hover .media { background: var(--tint-2); }
.flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 1; }
.flag { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; line-height: 1.3; }
.flag.sale { background: var(--sale); color: #fff; }
.flag.new { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.card-body { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-brand { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-name:hover { color: var(--accent); }
.card-size { font-size: 12.5px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.price.is-sale { color: var(--sale); }
.price s { font-weight: 500; font-size: 13.5px; color: var(--muted); }
.stock { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok); } .stock.warn { color: var(--warn); } .stock.out { color: var(--muted); }
.card-body .btn { margin-top: auto; padding-block: 9px; }
.card-body .stock { margin-bottom: 8px; }

/* Rails (carousels) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, calc((100% - 54px) / 4)); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 900px) { .rail { grid-auto-columns: minmax(170px, 44%); } }

/* Placeholder art */
.ph { --h: 320; display: block; }
.ph .a { fill: hsl(var(--h) var(--ph-sat) var(--ph-light)); }
.ph .b { fill: hsl(var(--h) 26% var(--ph-dark)); }
.ph .c { fill: var(--surface); opacity: .8; }
.ph .f { fill: var(--tint-2); }
.ph .s { fill: none; stroke: hsl(var(--h) 26% var(--ph-dark)); stroke-width: 6; stroke-linecap: round; }

/* ---------- Breadcrumbs, listing ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding-block: 18px 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-block: 6px 6px; }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.page-head .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.page-intro { max-width: 70ch; color: var(--muted); margin-bottom: 18px; }
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; margin-block: 8px 28px; }
.subcat { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14px; }
.subcat:hover, .subcat.active { border-color: var(--accent); color: var(--accent); }
.subcat .thumb { width: 52px; height: 52px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; flex: none; }
.subcat .thumb svg { width: 80%; height: 80%; }
.subcat > span:last-child { min-width: 0; overflow-wrap: anywhere; hyphens: auto; line-height: 1.25; }
.subcat small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 20px; }
.filters { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 140px); }
.f-block h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.f-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.f-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.f-check .n { margin-left: auto; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.input { width: 100%; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
.input:focus { outline: none; border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 110px; }
.f-reset { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; cursor: pointer; text-align: left; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.toolbar select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; color: var(--ink); }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; gap: 16px; }
  .filters { display: none; position: static; padding: 18px; border: 1.5px solid var(--line); border-radius: 14px; }
  .filters.open { display: flex; }
  .filter-toggle { display: inline-flex; }
}
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.pager button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.empty { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding-block: 12px 24px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery .media { border-radius: 16px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 74px; padding: 0; border-radius: 10px; border: 2px solid var(--line); background: #fff; overflow: hidden; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { display: flex; flex-direction: column; gap: 16px; }
.pdp-info h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.pdp-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pdp-info .price { font-size: 30px; }
.pdp-info .price s { font-size: 17px; }
.save { font-size: 13px; font-weight: 700; color: var(--sale); }
.buy { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 42px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn-primary { flex: 1; min-width: 180px; padding-block: 13px; font-size: 15px; }
.perks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.tabs { border-top: 1px solid var(--line); margin-top: 8px; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-list button { padding: 14px 16px; background: none; border: 0; border-bottom: 2px solid transparent; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--muted); }
.tab-list button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { padding-block: 22px; max-width: 72ch; display: grid; gap: 12px; }
.tab-panel[hidden] { display: none; }
.buy-note { padding: 11px 14px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 14px; }
.buy-note[hidden] { display: none; }
.specs { border-collapse: collapse; width: 100%; max-width: 560px; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 600; color: var(--muted); width: 45%; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Cart ---------- */
.cart-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item .media { border-radius: 8px; }
.cart-item a { font-weight: 600; font-size: 14px; text-decoration: none; line-height: 1.3; }
.cart-item .qty { margin-top: 8px; }
.cart-item .qty button { width: 32px; height: 32px; font-size: 16px; }
.cart-item .qty input { width: 30px; }
.cart-item .line-total { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.remove { background: none; border: 0; padding: 0; font-size: 12.5px; color: var(--muted); cursor: pointer; text-decoration: underline; margin-top: 8px; }
.ship-bar { font-size: 13px; display: grid; gap: 6px; }
.ship-bar .track { height: 6px; background: var(--tint-2); border-radius: 99px; overflow: hidden; }
.ship-bar .fill { height: 100%; background: var(--accent); border-radius: 99px; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- Info pages, forms ---------- */
.info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 8px 32px; }
.info h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin-bottom: 12px; }
.info p + p { margin-top: 10px; }
.prose { max-width: 68ch; display: grid; gap: 12px; padding-bottom: 32px; }
.prose.prose-wide { max-width: 900px; }
.prose-wide .specs { max-width: none; }
.prose-wide .specs th { width: auto; }
.prose-wide .specs th:first-child, .prose-wide .specs td:first-child { width: 22%; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin-top: 12px; }
.table-wrap { overflow-x: auto; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.contact-list { display: grid; gap: 14px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .info { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } }

/* ---------- Newsletter + footer ---------- */
.newsletter { margin-top: 48px; background: var(--accent-soft); }
.newsletter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding-block: 36px; }
.newsletter h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter .input { flex: 1; min-width: 200px; border-radius: 999px; padding-inline: 18px; }
.newsletter .msg { flex-basis: 100%; font-size: 13.5px; }
@media (max-width: 760px) { .newsletter .wrap { grid-template-columns: 1fr; } }
.site-footer { background: var(--tint); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding-block: 44px 28px; }
.footer-grid h3 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay span { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Užsakymo forma: pristatymo būdo kortelės ir adreso laukai ---------- */
.form .fsec { font-size: 15px; font-weight: 800; margin-top: 4px; }
.form .fgroup { display: grid; gap: 14px; }
.form .fgroup[hidden] { display: none; }
.form .row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.ship-cards { display: grid; gap: 10px; }
.ship-card { display: flex !important; align-items: flex-start; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); cursor: pointer; font-weight: 400 !important; }
.ship-card.on { border-color: var(--accent); background: var(--accent-soft); }
.ship-card input { position: absolute; opacity: 0; pointer-events: none; }
.ship-card .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; flex: none; }
.ship-card.on .dot { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.ship-card input:focus-visible + .dot { outline: 2px solid var(--accent); outline-offset: 2px; }
.ship-card .st { display: grid; gap: 2px; }
.ship-card .st b { font-size: 14.5px; }
.ship-card .st small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.ship-card .sp { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.fhint { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
@media (max-width: 760px) { .form .row3 { grid-template-columns: 1fr; } }

/* Užsakymo nuoroda ir būsenos puslapis */
.net-static{padding:10px 14px;background:var(--bg-soft,#faf6f9);border:1.5px solid var(--line,#e6dbe2);border-radius:10px;font-size:15px;margin-bottom:12px}
.linkbox{width:100%;max-width:560px;margin:18px auto 6px;text-align:left}
.linkbox .lb-t{font-weight:700;margin-bottom:8px}
.linkbox .input{font-size:13.5px;width:100%}
.linkbox .lb-b{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.linkbox .lb-n{font-size:13.5px;color:var(--muted,#7a6c75);margin:12px 0 0;line-height:1.5}
.stbox{max-width:640px}
.st-code{font-size:24px}
.timeline{list-style:none;margin:18px 0;padding:0}
.timeline li{display:grid;grid-template-columns:22px 1fr auto;gap:10px;align-items:center;padding:9px 0;position:relative;color:var(--muted,#7a6c75)}
.timeline li:not(:last-child)::after{content:"";position:absolute;left:8px;top:30px;bottom:-9px;width:2px;background:var(--line,#e6dbe2)}
.timeline li.done:not(:last-child)::after{background:var(--accent,#702c57)}
.timeline .tdot{width:18px;height:18px;border-radius:50%;border:2px solid var(--line,#e6dbe2);background:#fff;box-sizing:border-box}
.timeline li.done{color:inherit}.timeline li.done .tdot{background:var(--accent,#702c57);border-color:var(--accent,#702c57)}
.timeline li.now .tl-l{font-weight:700}.timeline .tl-d{font-size:13px;color:var(--muted,#7a6c75)}
.st-ship{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:var(--bg-soft,#faf6f9);border-radius:12px;padding:14px 16px}
.st-ship span{display:block;font-size:13px}.st-ship b{display:block;margin-top:2px;word-break:break-word}
.st-item{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line,#e6dbe2)}
.st-item.total{font-weight:700;font-size:17px;border-bottom:0}
@media(max-width:520px){.st-ship{grid-template-columns:1fr}}

/* ---------- Nuolaidos kodas ---------- */
.dc-d summary { cursor: pointer; font-size: 14px; color: var(--accent); font-weight: 600; }
.dc-form { display: flex; gap: 8px; margin-top: 8px; }
.dc-form .input { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 16px; text-transform: uppercase; }
.dc-ok { font-size: 13.5px; color: #1f7a3d; }
.dc-err { font-size: 13px; color: #b3261e; margin-top: 6px; }
.dc-x { background: none; border: 0; padding: 0; margin-left: 8px; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.dc-row { color: #1f7a3d; font-weight: 500; font-size: 14px; }
.dc-row[hidden] { display: none; }
