/* Ponas Kulnas – tema. Spalvos ir šriftai (kliento) */

:root {
  --p-bg: #f6f0e6; --p-surface: #eadfcc; --p-ink: #2b1d15; --p-muted: #6c5f56;
  --p-accent: #8b4a2b; --p-accent-ink: #f6f0e6; --p-action: #8b4a2b; --p-action-ink: #f6f0e6;
  --p-inv-bg: #2b1d15; --p-inv-surface: #372921; --p-inv-ink: #f6f0e6; --p-inv-muted: #a3988f;
  --p-inv-accent: #f6f0e6; --p-inv-accent-ink: #2b1d15; --p-inv-action: #f6f0e6; --p-inv-action-ink: #2b1d15;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.012em;
  --display-tracking-xl: -0.016em;
  --ly-scale: 1.12;
}

/* Puslapio dalys iš maketo */

/* juosta virš meniu (naudotojo reikalavimas, Velasca): antraštės dalis, todėl --nav aukštesnis */
:root { --strip: 32px; --nav: calc(72px + var(--strip)); }
@media (max-width: 639px) { :root { --strip: 28px; --nav: calc(56px + var(--strip)); } }
.nav { display: grid; grid-template-rows: var(--strip) 1fr; }
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--strip); background: var(--p-inv-bg); pointer-events: none; }
.nav__strip { position: relative; margin: 0 auto; background: var(--p-inv-bg); color: var(--p-inv-ink); font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: .3em; letter-spacing: .01em; }
.nav__strip b { color: #e5c99b; font-weight: 500; }
.nav__bar { height: auto; }
.nav__logo svg { height: 44px; width: auto; overflow: visible; }
.nav__logo .pk-name { font: var(--display-weight) 26px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 639px) { .nav__logo svg { height: 36px; } .nav__logo .pk-name { font-size: 21px; } }
.nav--centre .nav__link { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 1024px) and (max-width: 1279px) { .nav--centre .nav__link { font-size: 12px; letter-spacing: .04em; } .nav__logo .pk-name { display: none; } }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--p-surface); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--p-action); color: var(--p-action-ink); font-size: 11px; font-weight: 500; line-height: 18px; text-align: center; }
.cart-count[data-n="0"] { display: none; }
.nav__tools { display: flex; align-items: center; gap: var(--s-1); }
@media (min-width: 1024px) { .nav--centre .nav__tools { grid-column: 3; grid-row: 1; justify-self: end; } }
@media (max-width: 1023px) { .nav__tools { margin-left: auto; } .nav:not(.is-open) .nav__tools + .nav__toggle { margin-left: 0; } }
/* paieška: laukas atsiveria po antrašte */
.search { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
.search[hidden] { display: none; }
.search label { display: block; font-size: 14px; margin-bottom: var(--s-2); }
.search input { width: 100%; height: 48px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fffdf9; font: 400 16px var(--font-text); color: var(--ink); }

/* herojaus 3D scena */
.hero--product .hero__stage .frame { width: 100%; height: 100%; }

#dezute-hero .print3d__hit:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; border-radius: var(--r-lg); }

/* kategorijų plytelės */
.tile-link { display: grid; gap: var(--s-3); color: var(--ink); }
.tile-link__img { aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); }
.tile-link__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-link__name { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.tile-link__name svg { width: 14px; height: 14px; }
@media (max-width: 639px) { #kategorijos { --h: 1; --hm: 1; } #kategorijos > .wrap { display: block; } #kategorijos > .wrap > .grid { margin-top: var(--gutter, 12px); } #kategorijos .tile-link__img { aspect-ratio: 4 / 3; } #kategorijos .grid > * { grid-column: span 6; } .tile-link__name { font-size: 13px; letter-spacing: .04em; } }

/* prekių eilė: pirkėjas slenka rodyklėmis arba pirštu, niekas nesisuka pats */
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: 22px; background: transparent; color: var(--ink); font: 500 14px var(--font-text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.row-arrows { display: flex; gap: var(--s-2); }
.row-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.row-arrows button:disabled { opacity: .35; cursor: default; }
.row-arrows svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter, 24px); touch-action: pan-y; }
@media (max-width: 1023px) { .prow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard { display: grid; grid-template-rows: auto 1fr; gap: var(--s-3); }
.pcard[hidden] { display: none; }
.pcard__media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__body { display: grid; gap: 6px; align-content: start; }
.pcard__name { margin: 0; font-family: var(--font-text); letter-spacing: 0; font-size: 16px; font-weight: 500; line-height: 1.35; min-height: 2.7em; }
.pcard__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.pcard__price { font-size: 16px; font-weight: 500; }
.pcard__term { font-size: 14px; color: var(--muted); }
.dots { display: flex; gap: var(--s-2); min-height: 24px; align-items: center; }
.dot-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); padding: 3px; background: transparent; cursor: pointer; }
.dot-btn span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); }
.dot-btn[aria-pressed="true"] { border-color: var(--ink); border-width: 2px; padding: 2px; }
.pcard .btn { width: 100%; margin-top: var(--s-2); }
.prow__empty { color: var(--muted); }

/* dovanų dėžutė */
.gift-frame { height: min(600px, 66svh); }
.swatches { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: var(--s-2); height: 44px; padding: 0 var(--s-4) 0 var(--s-2); border: 1px solid var(--line-strong); border-radius: 22px; background: transparent; color: var(--ink); font: 500 14px var(--font-text); cursor: pointer; }
.swatch i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.swatch[aria-pressed="true"] { border-color: var(--ink); border-width: 2px; }
.gift-facts { margin: var(--s-6) 0; }
@media (max-width: 1023px) { .gift-frame { height: 420px; margin-top: var(--s-6); } }
@media (max-width: 639px) { .gift-frame { height: 300px; } }

/* picture-develops: skyriaus nuotrauka dešinėje, tokio pat aukščio kaip tekstas */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit, 560px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-6); } }
.rows small { display: block; font-weight: 400; color: var(--muted); font-size: 16px; }

/* krepšelis (stalčius dešinėje) */
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); color: var(--ink); border-left: 1px solid var(--line); z-index: 70; display: grid; grid-template-rows: auto 1fr auto; transform: translateX(100%); visibility: hidden; transition: transform 320ms cubic-bezier(.2,.7,.2,1), visibility 0s linear 320ms; }
.cart.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.cart__scrim { position: fixed; inset: 0; background: rgba(43,29,21,.32); z-index: 69; opacity: 0; visibility: hidden; transition: opacity 240ms, visibility 0s linear 240ms; }
.cart__scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--line); }
.cart__head h2 { font: var(--display-weight) 30px/1.1 var(--font-display); margin: 0; }
.cart__body { overflow-y: auto; padding: var(--s-4) var(--s-5); }
.cart__free { font-size: 14px; margin-bottom: var(--s-4); }
.cart__bar { height: 4px; border-radius: 2px; background: var(--p-surface); margin-top: var(--s-2); overflow: hidden; }
.cart__bar i { display: block; height: 100%; background: var(--p-action); transform-origin: left; transform: scaleX(var(--k, 0)); transition: transform 400ms; }
.cart__items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.citem { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-3); align-items: start; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.citem img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); background: var(--p-surface); }
.citem__name { font-weight: 500; font-size: 15px; line-height: 1.35; }
.citem__opt { font-size: 14px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 22px; margin-top: var(--s-2); }
.qty button { width: 44px; height: 40px; border: 0; background: none; color: var(--ink); font-size: 18px; cursor: pointer; }
.qty span { min-width: 24px; text-align: center; font-size: 15px; }
.citem__price { font-weight: 500; font-size: 15px; text-align: right; }
.citem__rm { display: block; margin-top: var(--s-2); background: none; border: 0; color: var(--muted); font: 400 14px var(--font-text); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0; }
.cart__empty { text-align: center; padding: var(--s-8) 0; }
.cart__empty svg { width: 110px; height: auto; margin: 0 auto var(--s-4); display: block; }
.cart__foot { border-top: 1px solid var(--line); padding: var(--s-4) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom)); display: grid; gap: var(--s-3); }
.cart__line { display: flex; justify-content: space-between; font-size: 15px; }
.cart__line--total { font-size: 18px; font-weight: 500; }
.ship { display: grid; gap: var(--s-2); border: 0; padding: 0; margin: 0; }
.ship legend { font-size: 14px; font-weight: 500; margin-bottom: var(--s-2); }
.ship label { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 15px; cursor: pointer; }
.ship label:has(input:checked) { border-color: var(--ink); }
.ship input { accent-color: var(--p-action); width: 18px; height: 18px; }
.ship span:last-child { margin-left: auto; }
.cart__note { font-size: 14px; color: var(--muted); }
.cart .btn { width: 100%; }
body.cart-locked { overflow: hidden; }
.cart [hidden], .cart__empty[hidden] { display: none !important; }

/* Ponas Kulnas neša prekę į krepšelį + pranešimas */
.flyer { position: fixed; left: 0; top: 0; width: 64px; height: 68px; z-index: 80; pointer-events: none; will-change: transform; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 81; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5) var(--s-3) var(--s-3); background: var(--p-inv-bg); color: var(--p-inv-ink); border-radius: 28px; font-size: 15px; font-weight: 500; transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.toast svg { width: 36px; height: 38px; }

/* ===== Pono Kulno ateljė (2 versija) ===== */
:root { --espresso: #1d140f; --espresso-2: #2a1d16; --caramel: #b07444; --brass: #a8864f; }
.nav__strip, .nav::before { background: var(--p-accent) !important; }
.nav__strip b { color: #f3dcb6; }
.nav--tone .icon-btn:hover { background: rgba(246,240,230,.1); }
.nav--tone .nav__logo svg { filter: drop-shadow(0 0 0 transparent); }

/* herojus */
.pk-hero { background: var(--espresso); color: var(--p-inv-ink); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --action: #c98a5e; --action-ink: #1d140f; --line-strong: rgba(246,240,230,.35); display: flex; flex-direction: column; overflow: hidden; }
.pk-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 72% 55%, rgba(176,116,68,.28), transparent 70%); pointer-events: none; }
.pk-hero__grid { position: relative; flex: none; height: calc(100svh - var(--nav) - var(--hgap) - var(--hpadb) - 150px) !important; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: center; min-height: 0; }
.pk-eyebrow { font-size: 14px; font-weight: 500; color: #e5c99b; margin: 0 0 var(--s-5); display: inline-flex; align-items: center; gap: 10px; }
.pk-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5c99b; }
.pk-hero h1 { font-size: clamp(44px, 5.6vw, 92px); line-height: .98; letter-spacing: -0.02em; margin: 0 0 var(--s-5); color: #f6f0e6; }
.pk-hero .hero__lead { font-size: 19px; line-height: 1.55; max-width: 30em; color: #ddd2c6; margin: 0 0 var(--s-6); }
.pk-hero .btn--primary { background: #c98a5e; color: #1d140f; border-color: #c98a5e; }
.pk-hero .btn--secondary { background: transparent; color: #f6f0e6; border: 1px solid rgba(246,240,230,.45); }
.pk-hero .btn--secondary:hover { background: rgba(246,240,230,.08); }
.pk-stage { position: relative; width: 100%; justify-self: stretch; height: 100%; min-height: 320px; cursor: pointer; outline-offset: -4px; }
.pk-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pk-stage__fallback { position: absolute; inset: 10% 20%; width: 60%; height: 80%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.no-webgl .pk-stage__fallback { opacity: 1; }
.pk-facts { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); padding: var(--s-5) 0 0 !important; margin-top: var(--s-5); border-top: 1px solid rgba(246,240,230,.16); font-size: 14px; color: #cbbfb3; }
.pk-facts b { display: block; font: var(--display-weight) 24px/1.2 var(--font-display); color: #f6f0e6; margin-bottom: 2px; }
@media (max-width: 1023px) {
  .pk-hero__grid { grid-template-columns: 1fr; align-content: start; gap: 0; height: auto !important; }
  .pk-stage { height: 46svh; }
  .pk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
}
@media (max-width: 767px) { .pk-facts { display: none !important; } }
@media (max-width: 639px) { .pk-hero h1 { font-size: 40px; margin-bottom: var(--s-4); } .pk-eyebrow { margin-bottom: var(--s-4); } .pk-hero .hero__lead { font-size: 16px; margin-bottom: var(--s-5); } .pk-hero .btn-row { flex-direction: row; } .pk-hero .btn-row .btn { flex: 1; padding-inline: 12px; } .pk-stage { height: 34svh; min-height: 230px; } .pk-facts { display: none; } }

/* sekcijų persidengimas: kiekviena kita užslenka ant ankstesnės */
.stack { position: relative; transform-origin: 50% 0; }
.stack > .pk-dim { position: absolute; inset: 0; background: #0f0a07; opacity: 0; pointer-events: none; z-index: 5; }
main > section:not(.pk-hero) { box-shadow: 0 -24px 60px rgba(29,20,15,.18); }
.pk-light { background: var(--p-bg); }
.pk-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-6); }
.pk-head h2 { margin: 0; }
.pk-head h2 { font-size: clamp(36px, 4.2vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.pk-head p { max-width: 26em; margin: 0; color: var(--muted); }

/* kategorijų tinklelis */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--gutter, 24px); height: calc(100svh - var(--padt) - var(--padb) - 170px); min-height: 440px; }
.bento__item { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--p-surface); grid-column: span 3; color: var(--ink); }
.bento__item--big { grid-column: span 6; grid-row: span 2; }
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.bento__item:hover img { transform: scale(1.04); }
.bento__label { position: absolute; left: var(--s-4); bottom: var(--s-4); display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--p-bg); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.bento__label svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.bento__item:hover .bento__label svg { transform: translateX(3px); }
@media (max-width: 1023px) { .bento { height: auto; grid-template-rows: none; grid-auto-rows: 220px; } .bento__item { grid-column: span 6; } .bento__item--big { grid-column: span 12; grid-row: span 2; } }
@media (max-width: 639px) { .bento { grid-auto-rows: 150px; } .bento__label { left: 10px; bottom: 10px; padding: 8px 12px; font-size: 12px; letter-spacing: .04em; } }

/* pakavimo scena */
.pk-pack { background: var(--p-surface); --h: 1; }
.pk-pack__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-6); height: 100%; align-items: center; }
.pk-pack__text h2 { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 var(--s-6); }
.pk-steps { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: 2px; counter-reset: s; }
.pk-steps li { display: flex; gap: var(--s-4); align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: #6c5f56; transition: color .35s, transform .35s; }
.pk-steps li.is-on { color: var(--p-ink); transform: translateX(6px); }
.pk-steps span { font: var(--display-weight) 15px/1 var(--font-display); color: var(--p-accent); min-width: 22px; }
.pk-pack__stage { position: relative; height: min(76svh, 760px); }
.pk-pack__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 1023px) {
  .pk-pack__grid { grid-template-columns: 1fr; align-content: start; gap: var(--s-4); }
  .pk-pack__stage { height: 44svh; order: -1; }
  .pk-pack__text h2 { margin-bottom: var(--s-4); }
  .pk-steps { margin-bottom: var(--s-4); } .pk-steps li { padding: 8px 0; font-size: 15px; }
}

/* ateljė juosta */
.pk-band { background: var(--espresso); color: #f6f0e6; overflow: hidden; }
.pk-band .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.pk-band .wrap { justify-content: flex-end; }
.pk-band .wrap { position: relative; height: 100%; display: flex; align-items: center; }
.pk-band__box { max-width: 520px; background: var(--espresso); padding: var(--s-7); border-radius: var(--r-lg); --ink: #f6f0e6; --muted: rgba(246,240,230,.75); --action: #c98a5e; --action-ink: #1d140f; }
.pk-band__box h2 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 var(--s-4); color: #f6f0e6; }
.pk-band__box p { color: rgba(246,240,230,.8); margin: 0 0 var(--s-6); }
.pk-band__box .btn--primary { background: #c98a5e; border-color: #c98a5e; color: #1d140f; }
@media (max-width: 639px) { .pk-band .wrap { align-items: end; padding-bottom: var(--s-4); } .pk-band__box { padding: var(--s-5); } }

/* prekių kortelės (patobulintos) */
.pcard__media { border-radius: var(--r-lg); }
.pcard__media img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badge { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: var(--p-bg); font-size: 12px; font-weight: 500; }
.pcard__name a { color: inherit; }
.pcard__name a:hover { text-decoration: underline; }
a.pcard__media { display: block; }


/* ===== prekės puslapis ===== */
.ppage > section { height: auto !important; min-height: 0 !important; }
.pmain { padding: calc(var(--nav) + var(--s-5)) 0 var(--s-8); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: var(--s-5); }
.crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.crumbs a:hover { text-decoration-color: currentColor; color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.pgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
.gallery { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-4); position: sticky; top: calc(var(--nav) + var(--s-4)); }
.g-thumbs { display: grid; gap: var(--s-3); align-content: start; }
.g-thumbs[hidden] { display: none; }
.gallery:has(.g-thumbs[hidden]) { grid-template-columns: 1fr; }
.g-thumb { width: 88px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--p-surface); cursor: pointer; }
.g-thumb[aria-pressed="true"] { border: 2px solid var(--ink); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); }
.g-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); cursor: zoom-in; touch-action: pan-y; }
.g-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transition: transform .45s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.g-frame.is-zoom .g-main { transform: scale(calc(var(--z, 1) * 1.8)); transition-duration: .2s; }
.pinfo { display: grid; gap: var(--s-4); }
.pinfo__cat { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--p-accent); }
.pinfo h1 { font-size: clamp(36px, 3.6vw, 56px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.pinfo__price { font: var(--display-weight) 34px/1 var(--font-display); margin: 0; }
.pdeliv { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4); border-radius: var(--r-md); background: var(--p-surface); }
.pdeliv svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--p-accent); stroke-width: 1.6; stroke-linejoin: round; }
.pdeliv b { display: block; font-weight: 500; }
.pdeliv span[data-p-dates] { font-size: 14px; color: var(--muted); }
.popt__label { font-size: 14px; margin: 0 0 var(--s-2); }
.popt__label b { font-weight: 500; }
.popt__err { color: #a33b2e; font-size: 14px; margin: var(--s-2) 0 0; }
.sizes { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.size-btn { min-width: 56px; height: 48px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--ink); font: 500 15px var(--font-text); cursor: pointer; transition: border-color .2s, background .2s; }
.size-btn:hover { border-color: var(--ink); }
.size-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dot-btn { width: 32px; height: 32px; }
.pbuy { display: flex; gap: var(--s-3); margin-top: var(--s-2); }
.qty--big { margin: 0; height: 56px; }
.qty--big button { height: 54px; }
.pbuy__btn { flex: 1; height: 56px !important; font-size: 17px; }
.pfree { margin: 0; font-size: 14px; color: var(--muted); }
.ptrust { list-style: none; margin: var(--s-2) 0 0; padding: var(--s-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-3); font-size: 15px; }
.ptrust li { display: flex; gap: var(--s-3); align-items: center; }
.ptrust svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pacc { border-top: 1px solid var(--line); }
.pacc details { border-bottom: 1px solid var(--line); }
.pacc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-weight: 500; }
.pacc summary::-webkit-details-marker { display: none; }
.pacc summary::after { content: "+"; font: 400 22px/1 var(--font-text); transition: transform .25s; }
.pacc details[open] summary::after { transform: rotate(45deg); }
.pacc details p { margin: 0 0 var(--s-4); color: var(--muted); }
.ptip { background: var(--espresso); color: #f6f0e6; padding: var(--s-8) 0; }
.ptip__in { display: flex; align-items: center; gap: var(--s-6); }
.ptip__pk { width: 120px; height: auto; flex: none; transform-origin: 50% 100%; animation: pk-bob 2.4s ease-in-out infinite; }
@keyframes pk-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .ptip__pk { animation: none; } }
.ptip__bubble { position: relative; background: #f6f0e6; color: var(--p-ink); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); max-width: 640px; }
.ptip__bubble::before { content: ""; position: absolute; left: -10px; top: 50%; width: 20px; height: 20px; background: #f6f0e6; transform: translateY(-50%) rotate(45deg); border-radius: 3px; }
.ptip__bubble h2 { font-size: 26px; margin: 0 0 var(--s-2); }
.ptip__bubble p { margin: 0; font-size: 17px; }
.prel { padding: var(--s-9) 0; }
.prow--static { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter, 24px); }
.pcard--link { color: var(--ink); }
.pcard--link:hover .pcard__name { text-decoration: underline; }
.pbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--gut) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; }
.pbar.is-on { transform: none; }
.pbar__info { flex: 1; min-width: 0; display: grid; }
.pbar__name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar .btn { height: 48px; }
@media (max-width: 1023px) {
  .pgrid { grid-template-columns: 1fr; gap: var(--s-6); }
  .gallery { position: static; grid-template-columns: 1fr; }
  .g-thumbs { grid-auto-flow: column; justify-content: start; order: 2; }
  .g-thumb { width: 72px; }
  .prow--static { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pbar { display: flex; }
}
@media (max-width: 639px) { .g-frame { aspect-ratio: 1; } .ptip__in { flex-direction: column; align-items: flex-start; } .ptip__pk { width: 90px; } .ptip__bubble::before { left: 40px; top: -9px; transform: rotate(45deg); } .pinfo__price { font-size: 28px; } }


/* ===== kategorijos puslapis ===== */
.khero { position: relative; overflow: hidden; background: var(--espresso); color: #f6f0e6; padding: calc(var(--nav) + var(--s-6)) 0 var(--s-6); min-height: 0 !important; height: auto !important; }
.khero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; transform: scale(1.06); }
.khero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,20,15,.92) 0%, rgba(29,20,15,.55) 60%, rgba(29,20,15,.2) 100%); }
.khero__in { position: relative; z-index: 1; }
.crumbs--light, .crumbs--light a { color: rgba(246,240,230,.75); }
.crumbs--light [aria-current] { color: #f6f0e6; }
.khero h1 { font-size: clamp(48px, 6.4vw, 104px); line-height: .95; letter-spacing: -0.025em; margin: var(--s-4) 0 var(--s-4); color: #f6f0e6; }
.khero__lead { max-width: 34em; font-size: 18px; color: #ddd2c6; margin: 0 0 var(--s-6); }
.ktabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ktabs a { height: 44px; display: inline-flex; align-items: center; padding: 0 var(--s-4); border-radius: 22px; border: 1px solid rgba(246,240,230,.3); color: #f6f0e6; font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s; }
.ktabs a:hover { border-color: #f6f0e6; }
.ktabs a[aria-current="page"] { background: #f6f0e6; color: var(--espresso); border-color: #f6f0e6; }
.klist { padding: var(--s-6) 0 var(--s-9); height: auto !important; min-height: 0 !important; }
.ktools { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.kfbtn { display: none !important; gap: var(--s-2); }
.kfbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.kfbtn__n { min-width: 20px; height: 20px; border-radius: 10px; background: var(--p-accent); color: var(--p-accent-ink); font-size: 12px; line-height: 20px; text-align: center; }
.kcount { margin: 0; flex: 1; color: var(--muted); font-size: 15px; }
.ksort { display: flex; align-items: center; gap: var(--s-2); font-size: 14px; }
.ksort select { height: 44px; padding: 0 var(--s-6) 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; font: 500 14px var(--font-text); color: var(--ink); }
.klayout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.kfilters { position: sticky; top: calc(var(--nav) + var(--s-4)); display: grid; gap: var(--s-5); }
.kfilters__head, .kfilters__foot .btn { display: none; }
.kf h3 { font: 500 14px var(--font-text); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 var(--s-3); }
.kf { padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.kf[hidden] { display: none; }
.krange { display: grid; grid-template-columns: 1fr 1fr; gap: 4px var(--s-3); font-size: 13px; color: var(--muted); }
.krange label:nth-of-type(1) { grid-column: 1; grid-row: 1; } .krange label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.krange input { height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; font: 400 16px var(--font-text); width: 100%; }
.kslider { width: 100%; margin-top: var(--s-3); accent-color: var(--p-accent); height: 32px; }
.kchips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.kchips button { min-width: 48px; height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--ink); font: 500 14px var(--font-text); cursor: pointer; }
.kchips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.kcolors { display: grid; gap: var(--s-1); }
.kcolors button { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-2); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: 400 15px var(--font-text); cursor: pointer; text-align: left; }
.kcolors button:hover { background: var(--p-surface); }
.kcolors i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.kcolors button[aria-pressed="true"] { font-weight: 500; }
.kcolors button[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.kcolors small { margin-left: auto; color: var(--muted); }
.kfilters__foot { display: flex; justify-content: space-between; align-items: center; }
.kgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--gutter, 24px); }
.kgrid .pcard { position: relative; }
.kgrid .pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; }
.kgrid .pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kbadge { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 6px 10px; border-radius: 999px; background: var(--p-bg); font-size: 12px; font-weight: 500; }
.kquick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.kgrid .pcard:hover .kquick, .kgrid .pcard:focus-within .kquick { opacity: 1; transform: none; }
.kquick .btn { width: 100%; background: var(--p-bg); color: var(--ink); border-color: var(--p-bg); }
.kempty { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-8) 0; }
.kempty[hidden] { display: none; }
.kempty svg { width: 120px; height: auto; animation: pk-bob 2.4s ease-in-out infinite; }
.kempty h2 { font-size: 34px; margin: 0; }
.kempty p { margin: 0 0 var(--s-3); color: var(--muted); max-width: 30em; }
@media (hover: none) { .kquick { opacity: 1; transform: none; } }
@media (max-width: 1023px) {
  .klayout { grid-template-columns: 1fr; }
  .kfbtn { display: inline-flex !important; }
  .kfilters { position: fixed; inset: 0 0 0 auto; width: min(400px, 100vw); z-index: 60; background: var(--bg); padding: var(--s-5); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s; align-content: start; }
  .kfilters.is-open { transform: none; visibility: visible; transition-delay: 0s; box-shadow: -20px 0 60px rgba(0,0,0,.2); }
  .kfilters__head { display: flex; justify-content: space-between; align-items: center; }
  .kfilters__head h2 { margin: 0; font-size: 28px; }
  .kfilters__foot { position: sticky; bottom: calc(-1 * var(--s-5)); background: var(--bg); padding: var(--s-4) 0; }
  .kfilters__foot .btn { display: inline-flex; }
  .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gutter, 12px); }
}
@media (max-width: 639px) { .ksort label { display: none; } .kcount { display: none; } .ktools { justify-content: space-between; } .khero__lead { font-size: 16px; } .kgrid .btn { font-size: 14px; padding-inline: 8px; } }
