/* Elrebuy varžtų didmena — dizaino sistema, perimta iš crownsash.com */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --navy: #243934;
  --navy-dark: #1a2a26;
  --navy-soft: #31504a;
  --gold: oklch(71.22% 0.1153 80.86);
  --gold-soft: oklch(87.98% 0.0376 84.58);
  --warm: oklch(97.33% 0.007 88.64);
  --ink: #22322e;
  --ink-muted: #5b6f69;
  --line: oklch(90.5% 0.008 160);
  --white: #fff;
  --radius: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 1240px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

/* ---------------------------------------------------------------- tipografija */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow.on-dark { color: var(--gold-soft); }
.lede { font-size: 1.08rem; color: var(--ink-muted); max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------------------------------------------------------------- mygtukai */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--navy); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--gold); color: var(--navy); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 0.7rem; }

/* ---------------------------------------------------------------- antraštė */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--navy-dark); color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem; letter-spacing: 0.06em;
}
.topbar .shell { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 8px 0; }
.topbar strong { color: var(--gold-soft); font-weight: 600; }
.topbar-facts { display: flex; gap: 22px; flex-wrap: wrap; }

.navbar { display: flex; align-items: center; gap: 22px; padding: 16px 0; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--navy);
}
.brand-mark span { color: var(--gold); }
.brand-sub {
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600; white-space: nowrap;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; transition: 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-bottom-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang { display: flex; gap: 2px; border: 1px solid var(--line); }
.lang-mobile { display: none; }
.lang button {
  background: transparent; border: 0; cursor: pointer; padding: 7px 9px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-muted);
  transition: 0.2s var(--ease);
}
.lang button:hover { color: var(--navy); }
.lang button.on { background: var(--navy); color: var(--white); }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px;
  background: var(--gold); color: var(--navy); border-radius: 999px;
  font-size: 0.66rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 9px 12px; cursor: pointer; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% 15%, rgba(201, 154, 90, 0.22), transparent 62%),
    linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-soft) 100%);
}
.hero .shell { position: relative; z-index: 2; padding: 96px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .lede { color: rgba(255, 255, 255, 0.78); margin-top: 22px; font-size: 1.12rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-badges span {
  border: 1px solid rgba(255, 255, 255, 0.22); padding: 9px 16px;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.price-card { background: var(--white); color: var(--ink); padding: 34px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3); }
.price-card h3 { font-size: 1.5rem; }
.price-card table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.9rem; }
.price-card td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.price-card td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.price-card tr:last-child td { border-bottom: 0; }
.price-card .note { font-size: 0.78rem; color: var(--ink-muted); margin-top: 16px; }

/* ---------------------------------------------------------------- sekcijos */
section { padding: 92px 0; }
.sec-warm { background: var(--warm); }
.sec-navy { background: var(--navy); color: var(--white); }
.sec-navy h2 { color: var(--white); }
.sec-navy .lede { color: rgba(255, 255, 255, 0.72); }
.sec-head { margin-bottom: 52px; }
.sec-head h2 { margin-top: 12px; }
.sec-head .lede { margin-top: 16px; }

.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); padding: 30px; transition: 0.35s var(--ease); }
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-muted); font-size: 0.94rem; }
.card .num {
  font-family: var(--font-display); font-size: 2.4rem; color: var(--gold);
  line-height: 1; margin-bottom: 14px; display: block;
}

.cat-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; display: block; transition: 0.35s var(--ease); }
.cat-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.cat-card .thumb { aspect-ratio: 4 / 3; background: var(--warm); display: grid; place-items: center; padding: 22px; }
.cat-card .thumb img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.cat-card .body { padding: 24px; }
.cat-card h3 { font-size: 1.25rem; }
.cat-card .meta { font-size: 0.8rem; color: var(--ink-muted); margin-top: 8px; }
.cat-card .from { margin-top: 14px; font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.cat-card .from b { color: var(--gold); font-size: 1.05rem; }

.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .dot { width: 8px; height: 8px; background: var(--gold); margin-top: 10px; flex: none; }
.feat h3 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.feat p { font-size: 0.92rem; color: var(--ink-muted); margin-top: 6px; }
.sec-navy .feat p { color: rgba(255, 255, 255, 0.68); }
.sec-navy .feat h3 { color: var(--white); }

/* ---------------------------------------------------------------- kainų laiptai */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
.ladder div { padding: 30px 24px; border-right: 1px solid var(--line); }
.ladder div:last-child { border-right: 0; }
.ladder .q { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.ladder .d { font-family: var(--font-display); font-size: 2.8rem; color: var(--navy); line-height: 1.1; margin-top: 8px; }
.ladder .d span { color: var(--gold); }
.ladder .t { font-size: 0.85rem; color: var(--ink-muted); margin-top: 6px; }

/* ---------------------------------------------------------------- forma */
.form-wrap { background: var(--white); padding: 40px; border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius); transition: 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--ink-muted); margin: 6px 0 20px; }
.consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; }

.contact-facts { display: grid; gap: 26px; }
.contact-facts .k { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-facts .v { font-size: 1.02rem; margin-top: 5px; }

/* ---------------------------------------------------------------- katalogas */
.cat-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
/* grid vaikai pagal nutylejima nesusitraukia zemiau turinio plocio, todel platus
   kataloga tempia visa puslapi. min-width: 0 tai isjungia. */
.cat-layout > * { min-width: 0; }
.fam { max-width: 100%; }
.filters { position: sticky; top: 104px; border: 1px solid var(--line); padding: 24px; background: var(--white); }
.filters h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; font-weight: 700; }
.filters + .filters { margin-top: 18px; }
.fopt { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 0.92rem; cursor: pointer; }
.fopt input { width: 16px; height: 16px; }
.fopt .n { margin-left: auto; color: var(--ink-muted); font-size: 0.8rem; }

.catalog-toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.search { flex: 1; min-width: 260px; position: relative; }
.search input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); }
.search input:focus { outline: 0; border-color: var(--gold); }
.result-count { font-size: 0.85rem; color: var(--ink-muted); }

.fam { border: 1px solid var(--line); margin-bottom: 22px; background: var(--white); }
.fam-head { display: grid; grid-template-columns: 110px 1fr auto; gap: 22px; padding: 22px; align-items: center; border-bottom: 1px solid var(--line); }
.fam-head .thumb { aspect-ratio: 1; background: var(--warm); display: grid; place-items: center; padding: 10px; }
.fam-head .thumb img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fam-head h3 { font-size: 1.18rem; }
.fam-head .desc { font-size: 0.86rem; color: var(--ink-muted); margin-top: 5px; }
.tag {
  display: inline-block; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; padding: 4px 9px; border: 1px solid var(--line); color: var(--ink-muted); margin-right: 6px;
}
.tag.gold { border-color: var(--gold); color: var(--navy); background: rgba(201, 154, 90, 0.12); }

table.sku { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.sku th {
  text-align: left; font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-muted); padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; background: var(--warm);
}
table.sku td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.sku tr:last-child td { border-bottom: 0; }
table.sku tr:hover td { background: var(--warm); }
table.sku .num { text-align: right; font-variant-numeric: tabular-nums; }
table.sku .price { font-weight: 700; color: var(--navy); font-size: 1rem; }
table.sku .per { color: var(--ink-muted); font-size: 0.8rem; }
.order-cell { display: flex; gap: 8px; align-items: center; }
.qty { display: inline-flex; border: 1px solid var(--line); flex: none; }
.qty button { width: 30px; background: var(--warm); border: 0; cursor: pointer; font-size: 1rem; line-height: 1; }
.qty button:hover { background: var(--gold); }
.qty input { width: 48px; border: 0; text-align: center; padding: 8px 0; font-variant-numeric: tabular-nums; }
.qty input:focus { outline: 0; }
.add { border: 1px solid var(--navy); background: var(--navy); color: #fff; padding: 8px 14px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: 0.25s var(--ease); }
.add:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.add.done { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ---------------------------------------------------------------- krepšelis */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.drawer.open { pointer-events: auto; }
.drawer .veil { position: absolute; inset: 0; background: rgba(26, 42, 38, 0.55); opacity: 0; transition: 0.35s var(--ease); }
.drawer.open .veil { opacity: 1; }
.drawer .panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(460px, 100%);
  background: var(--white); transform: translateX(100%); transition: 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open .panel { transform: translateX(0); }
.drawer .panel header { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer .panel header h3 { font-size: 1.35rem; }
.drawer .close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--ink-muted); }
.drawer .items { flex: 1; overflow-y: auto; padding: 8px 26px; }
.drawer .foot { padding: 22px 26px; border-top: 1px solid var(--line); background: var(--warm); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .n { font-size: 0.9rem; font-weight: 600; }
.line .s { font-size: 0.8rem; color: var(--ink-muted); margin-top: 3px; }
.line .p { text-align: right; font-weight: 700; white-space: nowrap; }
.line .rm { background: none; border: 0; color: var(--ink-muted); cursor: pointer; font-size: 0.75rem; text-decoration: underline; padding: 0; margin-top: 6px; }
.totals { font-size: 0.92rem; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; }
.totals .grand { font-size: 1.25rem; font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.totals .save { color: var(--gold); font-weight: 600; }
.empty { text-align: center; color: var(--ink-muted); padding: 60px 20px; font-size: 0.92rem; }

/* ---------------------------------------------------------------- poraštė */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.66); padding: 68px 0 28px; font-size: 0.9rem; }
.site-footer h4 { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; font-weight: 700; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 42px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-bot { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 0.8rem; }
.site-footer .brand-mark { color: var(--white); }

/* ---------------------------------------------------------------- reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) { .brand-sub { display: none; } }
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  /* kalbu perjungiklis keliauja i meniu, kad antrasteje tilptu */
  .nav-actions .lang { display: none; }
  .nav-links.open .lang-mobile { display: flex; align-self: flex-start; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 20px; gap: 14px;
  }
  .navbar { position: relative; }
  .nav-toggle { display: block; order: 3; }
  .nav-actions { margin-left: auto; }
  .g3, .g2, .g4 { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .ladder div { border-bottom: 1px solid var(--line); }
  section { padding: 62px 0; }
  .shell { width: calc(100% - 32px); }
  .fam-head { grid-template-columns: 74px 1fr; }
  .fam-head > :last-child { grid-column: 1 / -1; }
  table.sku { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; max-width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .topbar-facts span:nth-child(n + 3) { display: none; }
  .form-wrap { padding: 24px; }
}
