/* Magijos Aura theme.
   Layout: lavender "sky" bands carry the header, giant logo and page titles; products sit on white in 1px ruled grids;
   frosted glass panels float over the sky. Palette is fixed (one light look) and built from the logo violet #8A2BE2. */

@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(../fonts/host-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(../fonts/host-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --white: #ffffff;
  --ink: #17112a;
  --mut: #5f5876;
  --rule: #17112a;
  --soft-rule: #ddd6ea;
  --brand: #8a2be2;
  --brand-dark: #6c1fb5;
  --lav: #f5f0fc;
  --night: #160c2b;
  --on-night: #f1ecff;
  --on-night-mut: #a79dc6;
  --mint: #8ef0d4;
  --ok: #1d7a4f;
  --err: #b42318;
  --glass: rgba(255, 255, 255, .42);
  --glass-line: rgba(255, 255, 255, .7);
  --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(14px, 2.4vw, 28px);
  --max: 1440px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 6px; }

.in { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.muted { color: var(--mut); }

/* ---------- Pills & buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(23, 17, 42, .75); color: var(--ink); background: transparent; border-radius: 999px; padding: 7px 14px; font: 500 12px/1.2 var(--font); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pill:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill.solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill.solid:hover { background: var(--brand); border-color: var(--brand); }
.pill.brand { background: var(--brand); color: var(--white); border-color: var(--brand); }
.pill.brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.pill.light { border-color: rgba(255, 255, 255, .65); color: var(--on-night); }
.pill.light:hover { background: var(--white); color: var(--ink); }
.pill.big { padding: 14px 22px; font-size: 14px; }
.pill.is-active { background: var(--ink); color: var(--white); }
.pill .ar { font-size: 15px; line-height: 1; }
.pill .count { opacity: .6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 6px; -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }

/* ---------- Sky bands ---------- */
.sky { position: relative; overflow: hidden; isolation: isolate; }
.sky > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sky.dawn { background: linear-gradient(180deg, #cdb9f2 0%, #e4d9fa 45%, #f6effc 100%); }
.sky.dusk { background: linear-gradient(180deg, #2b1752 0%, #6a3bb4 55%, #c7a6f0 100%); color: var(--on-night); }

/* ---------- Header ---------- */
.topbar { background: var(--night); color: var(--on-night-mut); font-size: 12px; text-align: center; padding-block: 7px; letter-spacing: .02em; }
.site-header { position: absolute; left: 0; right: 0; z-index: 20; }
.topbar + .site-header { top: auto; }
.s-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 14px; }
.s-head nav { display: flex; flex-wrap: wrap; gap: 6px; }
.s-head nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.s-head nav.r { justify-content: flex-end; }
.s-head .home-link { display: block; line-height: 0; }
.mini-logo { height: 26px; width: auto; color: var(--ink); --spark: var(--brand); }
.menu-toggle { display: none; }
.has-header { padding-top: 64px; }
.admin-bar .site-header { margin-top: 0; }

.mobile-nav { position: fixed; inset: 0; z-index: 60; background: rgba(245, 240, 252, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: calc(18px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px)); display: grid; align-content: start; gap: 28px; }
.mobile-nav .mn-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-top: 1px solid var(--rule); }
.mobile-nav li a { display: flex; justify-content: space-between; padding: 16px 2px; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 22px; letter-spacing: -.01em; }
.mobile-nav li a::after { content: "→"; }
body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .s-head nav .hide-m, .s-head nav ul { display: none; }
  .menu-toggle { display: inline-flex; }
  .mini-logo { height: 20px; }
}

/* ---------- Hero (front page) ---------- */
.hero { padding-bottom: clamp(16px, 3vw, 28px); }
.giant { display: block; width: 100%; height: auto; color: var(--ink); --spark: var(--brand); margin-top: clamp(4px, 1.5vw, 16px); }
.stage { position: relative; min-height: clamp(380px, 44vw, 580px); display: grid; grid-template-columns: minmax(0, 420px) 1fr minmax(0, 320px); align-items: end; gap: 16px; margin-top: clamp(-40px, -3vw, -12px); }
.float { position: absolute; z-index: 1; will-change: transform; pointer-events: none; }
.float img { width: 100%; height: auto; filter: drop-shadow(0 30px 30px rgba(60, 20, 120, .25)); animation: bob 8s ease-in-out infinite; }
.f1 { width: clamp(220px, 30vw, 440px); left: 50%; top: 2%; margin-left: clamp(-220px, -15vw, -110px); }
.f2 { width: clamp(90px, 11vw, 160px); left: 34%; top: 58%; }
.f2 img { animation-delay: -3s; }
.f3 { width: clamp(100px, 12vw, 180px); right: 17%; top: 30%; }
.f3 img { animation-delay: -5s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(1.5deg); } }
.panel { position: relative; z-index: 2; padding: 20px; display: grid; gap: 14px; }
.panel h1 { font-size: clamp(24px, 2.6vw, 34px); }
.panel p { color: var(--mut); font-size: 14px; max-width: 44ch; }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.perks div { display: grid; gap: 6px; justify-items: start; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }
.perks svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.motm { grid-column: 3; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; color: inherit; text-decoration: none; }
.motm .ph { background: var(--white); border-radius: 4px; aspect-ratio: 1; overflow: hidden; }
.motm .ph img { width: 100%; height: 100%; object-fit: cover; }
.motm b { display: block; font-weight: 500; font-size: 16px; line-height: 1.2; margin: 4px 0 8px; }
.motm .lbl { color: var(--mut); }
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: clamp(240px, 70vw, 340px); margin-top: 0; }
  .motm { grid-column: auto; }
  .f1 { width: min(58vw, 290px); left: 50%; margin-left: max(-29vw, -145px); top: 18px; }
  .f2 { width: 20vw; left: 3%; top: clamp(150px, 44vw, 220px); }
  .f3 { width: 21vw; right: 3%; top: clamp(130px, 38vw, 200px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-bottom: clamp(28px, 5vw, 56px); }
.page-hero .ph-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; padding-top: clamp(28px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(40px, 8vw, 112px); letter-spacing: -.04em; line-height: .92; }
.page-hero .intro { max-width: 58ch; color: var(--mut); margin-top: 14px; }
.page-hero .ph-stone { width: clamp(90px, 14vw, 200px); filter: drop-shadow(0 24px 24px rgba(60, 20, 120, .25)); animation: bob 8s ease-in-out infinite; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--mut); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--mut); }
@media (max-width: 640px) { .page-hero .ph-inner { grid-template-columns: minmax(0, 1fr); } .page-hero .ph-stone { display: none; } }

/* ---------- Ruled box & product cells ---------- */
.section { padding-block: clamp(28px, 4vw, 48px); }
.box { border: 1px solid var(--rule); }
.box-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.box-h h2 { font-size: clamp(24px, 3vw, 36px); }
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.cells > li { display: contents; }
.cell { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; color: var(--ink); text-decoration: none; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.cells .cell:nth-child(4n) { border-right: 0; }
.cell .top { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 0; min-height: 34px; }
.chip { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--ink); padding: 3px 7px; border-radius: 3px; white-space: nowrap; line-height: 1.3; }
.chip.dark { background: var(--ink); color: var(--white); }
.chip.brand { background: var(--brand); border-color: var(--brand); color: var(--white); }
.cell .ph { aspect-ratio: 1; overflow: hidden; }
.cell .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cell:hover .ph img { transform: scale(1.05) rotate(-1.5deg); }
.cell .bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-top: 1px solid var(--rule); }
.cell .nm { font-size: clamp(15px, 1.4vw, 18px); text-transform: uppercase; line-height: 1.15; }
.cell .pill { flex: none; }
.cell:hover .pill { background: var(--ink); color: var(--white); }
.price-from { font-size: .85em; opacity: .7; text-transform: none; letter-spacing: 0; }
.box .cells { margin-bottom: -1px; }
@media (max-width: 1080px) { .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cells .cell:nth-child(4n) { border-right: 1px solid var(--rule); } .cells .cell:nth-child(3n) { border-right: 0; } }
@media (max-width: 720px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells .cell:nth-child(3n) { border-right: 1px solid var(--rule); }
  .cells .cell:nth-child(2n) { border-right: 0; }
  .cell .bot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Shop toolbar ---------- */
.toolbar { display: grid; gap: 12px; padding-block: 18px; }
.toolbar .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.toolbar .row .lbl { color: var(--mut); margin-right: 6px; min-width: 88px; }
.toolbar .end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--soft-rule); padding-top: 12px; font-size: 14px; color: var(--mut); }
.toolbar select, .woocommerce-ordering select { border: 1px solid rgba(23, 17, 42, .75); border-radius: 999px; padding: 7px 34px 7px 14px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2317112a' fill='none' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; font-size: 13px; }
.woocommerce-ordering { margin: 0; }
.empty { padding: 48px 16px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding-top: 24px; }
.pager .page-numbers { display: inline-flex; min-width: 38px; justify-content: center; border: 1px solid rgba(23, 17, 42, .75); border-radius: 999px; padding: 7px 12px; text-decoration: none; font-size: 13px; }
.pager .page-numbers.current { background: var(--ink); color: var(--white); }
.pager ul { display: contents; list-style: none; }
.pager li { display: contents; }

/* ---------- Single product ---------- */
.product-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 1px solid var(--rule); }
.gallery { border-right: 1px solid var(--rule); display: grid; grid-template-rows: auto auto; min-width: 0; }
.gallery .main { aspect-ratio: 1; background: var(--white); overflow: hidden; position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.gallery .main .chip { position: absolute; top: 14px; left: 14px; }
.thumbs { display: flex; gap: 0; overflow-x: auto; border-top: 1px solid var(--rule); scrollbar-width: thin; }
.thumbs button { flex: 0 0 96px; aspect-ratio: 1; border: 0; border-right: 1px solid var(--rule); padding: 0; background: var(--white); cursor: pointer; opacity: .65; transition: opacity .2s; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; box-shadow: inset 0 -3px 0 var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.summary { padding: clamp(18px, 3vw, 36px); display: grid; gap: 20px; align-content: start; min-width: 0; }
.summary .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.summary h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.035em; line-height: .95; }
.summary .short { color: var(--mut); max-width: 52ch; display: grid; gap: 8px; }
.price { font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price del { opacity: .5; font-size: .7em; }
.picker { display: grid; gap: 10px; }
.picker .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.picker .opt { border: 1px solid rgba(23, 17, 42, .75); background: var(--white); border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.picker .opt[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.picker .opt:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.picker .opt.swatch { padding: 3px 12px 3px 3px; }
.picker .opt.swatch img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--white); }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(23, 17, 42, .75); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: transparent; width: 40px; height: 40px; cursor: pointer; font-size: 18px; }
.qty input { width: 44px; border: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-note { font-size: 13px; color: var(--mut); max-width: 50ch; }
.facts-table { border-top: 1px solid var(--rule); }
.facts-table div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--soft-rule); font-size: 14px; }
.facts-table dt { color: var(--mut); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; padding-top: 2px; }
.facts-table dd { margin: 0; }
.stock-out { color: var(--err); font-size: 14px; }
@media (max-width: 900px) { .product-wrap { grid-template-columns: minmax(0, 1fr); } .gallery { border-right: 0; border-bottom: 1px solid var(--rule); } }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); border: 1px solid var(--rule); border-top: 0; }
.detail .d-l { padding: 22px; border-right: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; }
.detail .d-l h2 { font-size: clamp(24px, 3vw, 36px); }
.detail .d-r { padding: 22px; min-width: 0; }
.prose { max-width: 68ch; display: grid; gap: 14px; }
.prose h2, .prose h3, .prose h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin-top: 10px; color: var(--brand); }
.prose ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--soft-rule); }
.prose ul li { padding: 9px 0; border-bottom: 1px solid var(--soft-rule); }
.prose small { color: var(--mut); }
.prose em { color: var(--mut); font-style: normal; }
.prose a { color: var(--brand); }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail .d-l { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* ---------- Mohs scale ---------- */
.mohs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.mohs-l { padding: 22px; border: 1px solid var(--rule); border-right: 0; display: grid; gap: 14px; align-content: start; }
.mohs-l h2 { font-size: clamp(24px, 3vw, 36px); }
.mohs-l p { color: var(--mut); font-size: 15px; }
.mohs-r { border: 1px solid var(--rule); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.scale { position: relative; padding: 76px 22px 18px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.scale.solo { padding-top: 64px; border-bottom: 0; }
.track { position: relative; min-width: 460px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #efe9fb, #c5a8f1 55%, var(--brand)); }
.ticks { min-width: 460px; display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; }
.mk { position: absolute; bottom: 14px; transform: translateX(-50%); display: grid; justify-items: center; gap: 3px; text-align: center; }
.mk img { width: 46px; height: 46px; object-fit: contain; }
.mk i { width: 1px; height: 10px; background: var(--ink); }
.mk b { font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: var(--ink); color: var(--white); padding: 3px 8px; border-radius: 99px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 16px; border-right: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; text-decoration: none; color: inherit; }
.fact:last-child { border-right: 0; }
.fact .n { font-size: clamp(26px, 3vw, 40px); font-weight: 300; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact .t { font-size: 13px; color: var(--mut); line-height: 1.35; }
@media (max-width: 900px) {
  .mohs { grid-template-columns: minmax(0, 1fr); }
  .mohs-l { border-right: 1px solid var(--rule); border-bottom: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

/* Hardness list (Apie akmenis) */
.hard-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); border-top: 0; }
.hard-list section { padding: 16px; border-right: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.hard-list section:last-child { border-right: 0; }
.hard-list h3 { font-size: 28px; font-weight: 300; font-variant-numeric: tabular-nums; }
.hard-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.hard-list a { text-decoration: none; }
.hard-list a:hover { color: var(--brand); }
@media (max-width: 900px) { .hard-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hard-list section { border-bottom: 1px solid var(--rule); } .hard-list section:nth-child(2n) { border-right: 0; } }

.care-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border: 1px solid var(--rule); }
.care-grid div { padding: 18px; border-right: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; margin-right: -1px; }
.care-grid h3 { font-size: 20px; }
.care-grid p { color: var(--mut); font-size: 14px; }

/* ---------- Intent band ---------- */
.intent { padding-block: clamp(40px, 6vw, 80px); }
.intent-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.intent .stone { justify-self: center; width: min(100%, 380px); }
.intent .stone img { width: 100%; filter: drop-shadow(0 30px 40px rgba(10, 0, 30, .45)); }
.intent h2 { margin-bottom: 12px; font-size: clamp(30px, 5vw, 64px); line-height: .98; letter-spacing: -.03em; text-transform: uppercase; }
.intent p { margin-bottom: 22px; color: rgba(241, 236, 255, .85); max-width: 48ch; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.tiles a { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; text-align: center; color: var(--on-night); text-decoration: none; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .2s; }
.tiles a:hover { background: rgba(255, 255, 255, .24); }
.tiles svg { width: 28px; height: 28px; }
.tiles b { font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tiles span { font-size: 11px; color: rgba(241, 236, 255, .75); line-height: 1.25; }
@media (max-width: 900px) { .intent-grid { grid-template-columns: minmax(0, 1fr); } .intent .stone { width: min(65%, 260px); } }

/* ---------- FAQ (also styles core Details blocks) ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 0 24px; }
.faq > h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 16px; }
.faq-list, .entry-faq { border-top: 1px solid var(--rule); }
details.faq-item, .entry-faq details, .wp-block-details { border-bottom: 1px solid var(--rule); margin: 0; }
details.faq-item summary, .entry-faq details summary, .wp-block-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 4px; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
details summary::-webkit-details-marker { display: none; }
details.faq-item summary::after, .entry-faq details summary::after, .wp-block-details summary::after { content: "↓"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 3px; font-size: 13px; transition: transform .2s; }
details[open] > summary::after { transform: rotate(180deg); }
details.faq-item > :not(summary), .entry-faq details > :not(summary), .wp-block-details > :not(summary) { margin: 0; padding: 0 4px 18px; color: var(--mut); max-width: 64ch; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Generic content ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 56px); padding-block: clamp(28px, 4vw, 56px); }
.content-grid aside { border-top: 1px solid var(--rule); padding-top: 14px; display: grid; gap: 10px; align-content: start; }
.entry { max-width: 70ch; display: grid; gap: 16px; font-size: 17px; }
.entry h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 16px; }
.entry h3 { font-size: 20px; margin-top: 8px; }
.entry ul, .entry ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.entry a { color: var(--brand); }
.entry blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--brand); background: var(--lav); }
.entry .wp-block-image img { border: 1px solid var(--soft-rule); }
@media (max-width: 900px) { .content-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border: 1px solid var(--rule); margin-block: clamp(28px, 4vw, 56px); }
.contact-grid .c-l { padding: 24px; border-right: 1px solid var(--rule); display: grid; gap: 22px; align-content: start; }
.contact-grid .c-r { padding: 24px; min-width: 0; }
.c-item { display: grid; gap: 4px; }
.c-item .lbl { color: var(--mut); }
.c-item a { font-size: 20px; text-decoration: none; }
.c-item a:hover { color: var(--brand); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-grid .c-l { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.field label .req { color: var(--brand); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid rgba(23, 17, 42, .5); border-radius: 6px; padding: 11px 12px; background: var(--white); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(138, 43, 226, .18); }
.field textarea { min-height: 110px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .err { color: var(--err); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mut); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check a { color: var(--brand); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; padding: 12px 14px; border-radius: 6px; }
.form-msg.ok { background: #e7f6ee; color: var(--ok); }
.form-msg.bad { background: #fdecea; color: var(--err); }
.inq-product { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--soft-rule); border-radius: 6px; }
.inq-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--white); }
.inq-product b { font-weight: 500; display: block; }
.inq-product span { font-size: 13px; color: var(--mut); }
.sent { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.sent svg { width: 48px; height: 48px; }
.sent h3 { font-size: 28px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inquiry dialog ---------- */
dialog.inquiry { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--rule); border-radius: 10px; padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(22, 12, 43, .35); }
dialog.inquiry::backdrop { background: rgba(22, 12, 43, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.inquiry .d-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--white); z-index: 1; }
dialog.inquiry .d-head h2 { font-size: 24px; }
dialog.inquiry .d-body { padding: 20px; }
.x { border: 1px solid rgba(23, 17, 42, .75); background: transparent; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.x:hover { background: var(--ink); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-mut); padding-top: 44px; overflow: hidden; margin-top: clamp(28px, 5vw, 64px); }
.f-top { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)) minmax(0, 1fr); gap: 28px; }
.f-top h3 { margin: 0 0 12px; color: var(--on-night); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.f-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.f-top a { text-decoration: none; }
.f-top a:hover { color: var(--on-night); }
.f-cta { justify-self: end; width: min(100%, 380px); border: 1px solid rgba(241, 236, 255, .45); padding: 16px; display: grid; gap: 12px; align-content: start; }
.f-cta b { color: var(--on-night); font-weight: 500; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.f-cta a.mail { color: var(--on-night); font-size: 15px; }
.f-giant { display: block; width: 100%; height: auto; color: var(--on-night); --spark: #c39bff; margin-top: 32px; margin-bottom: -2%; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; padding-block: 18px; border-top: 1px solid rgba(241, 236, 255, .15); }
.f-bottom a { text-decoration: none; }
.f-disclaimer { font-size: 12px; color: var(--on-night-mut); max-width: 70ch; }
@media (max-width: 900px) { .f-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .f-cta { grid-column: 1 / -1; justify-self: stretch; width: 100%; } }
@media (max-width: 520px) { .f-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 404 ---------- */
.nf { text-align: center; display: grid; justify-items: center; gap: 16px; padding-block: clamp(40px, 8vw, 100px) clamp(48px, 8vw, 120px); }
.nf .num { font-size: clamp(110px, 24vw, 300px); font-weight: 300; letter-spacing: -.06em; line-height: .85; }
.nf img { width: clamp(120px, 18vw, 220px); margin-top: -40px; filter: drop-shadow(0 24px 24px rgba(60, 20, 120, .3)); animation: bob 8s ease-in-out infinite; }
.search-form { display: flex; gap: 6px; width: min(100%, 460px); }
.search-form input { flex: 1; min-width: 0; border: 1px solid rgba(23, 17, 42, .75); border-radius: 999px; padding: 10px 16px; background: var(--white); }

/* WooCommerce notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 16px 0; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 6px; background: var(--lav); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float img, .page-hero .ph-stone, .nf img { animation: none; }
  .cell .ph img, details summary::after, .pill { transition: none; }
}

/* Single-stone scale in the narrow product column fits its container instead of scrolling. */
.scale.solo { padding-inline: 4px; overflow: visible; }
.scale.solo .track, .scale.solo .ticks { min-width: 0; }
.check { flex-wrap: wrap; }
.check .err { flex-basis: 100%; padding-left: 28px; }
.sent svg { fill: none; stroke: var(--brand); stroke-width: 1.6; }
.check > span { flex: 1; min-width: 0; }
.check .err { color: var(--err); font-size: 13px; }

/* ---------- Hero fits the first screen on desktop ----------
   The giant logo is capped by viewport height and the stage takes the rest,
   so the glass panel and "Mėnesio akmuo" card are always visible without scrolling. */
@media (min-width: 901px) {
  .hero { display: flex; flex-direction: column; height: calc(100svh - var(--topbar-h, 33px)); min-height: 560px; max-height: 1100px; padding-bottom: clamp(14px, 2.4svh, 28px); }
  .hero > .in { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .hero .giant { height: auto; max-height: min(33svh, 380px); flex: none; }
  .stage { flex: 1; min-height: 0; margin-top: clamp(-30px, -2svh, -8px); }
  .f1 { width: min(30vw, 50svh, 460px); margin-left: calc(min(30vw, 50svh, 460px) / -2); top: 0; }
  .f2 { width: min(11vw, 17svh); top: auto; bottom: 8%; }
  .f3 { width: min(12vw, 19svh); top: 18%; }
  .panel { gap: clamp(8px, 1.4svh, 14px); padding: clamp(14px, 2svh, 20px); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .perks { display: none; }
  .panel h1 { font-size: clamp(22px, 3.4svh, 30px); }
}
@media (min-width: 901px) and (max-height: 640px) {
  .panel p { display: none; }
  .topbar { display: none; }
  .hero { height: 100svh; }
}
@media (max-width: 1180px) { .s-head nav.r .hide-m { display: none; } }
@media (max-width: 1100px) {
  .s-head nav ul, .s-head nav .hide-m { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Apie akmenis: editorial content written in the block editor ----------
   Each "ma-section" Columns block is a ruled row: number + title + photo on the left, text on the right. */
.about-content { padding-block: clamp(28px, 4vw, 56px) 0; display: grid; gap: 0; }
.about-content .ma-lead { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -.02em; max-width: 34ch; margin-bottom: clamp(24px, 4vw, 48px); text-wrap: pretty; }
.about-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); margin: 0; }
.about-content .wp-block-column { flex: 1 1 0; min-width: 0; display: grid; gap: 14px; align-content: start; }
.about-content .ma-section { border-top: 1px solid var(--rule); padding-block: clamp(22px, 3vw, 36px); }
.about-content .ma-section > .wp-block-column:first-child { flex: 0 0 38%; }
.about-content .ma-section-head { padding-bottom: 18px; }
.about-content .ma-section-head > .wp-block-column:first-child { flex: 1 1 100%; }
.about-content .ma-num { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); font-weight: 500; }
.about-content h2 { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.03em; line-height: 1; }
.about-content h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; margin-top: 6px; }
.about-content p, .about-content li { color: var(--ink); font-size: 16px; line-height: 1.6; max-width: 66ch; }
.about-content .wp-block-column > p:not(.ma-num):not(.ma-lead) { color: #3d3654; }
.about-content ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soft-rule); }
.about-content li { padding: 12px 0; border-bottom: 1px solid var(--soft-rule); }
.about-content strong { font-weight: 600; }
.about-content .ma-img { margin: 6px 0 0; }
.about-content .ma-img img { width: 100%; max-width: 340px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); background: #fff; }
.about-content .ma-facts { gap: 0; border: 1px solid var(--rule); border-bottom: 0; }
.about-content .ma-facts + .ma-facts { border-top: 1px solid var(--rule); }
.about-content .ma-facts:last-of-type { border-bottom: 1px solid var(--rule); }
.about-content .ma-facts > .wp-block-column { padding: 18px; border-right: 1px solid var(--rule); background: var(--lav); }
.about-content .ma-facts > .wp-block-column:last-child { border-right: 0; }
.about-content .ma-facts h3 { font-size: 20px; text-transform: none; letter-spacing: -.01em; font-weight: 400; margin: 0; }
.about-content .ma-facts p { font-size: 14px; color: var(--mut); }
.about-content .ma-facts + .ma-section { margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 780px) {
  .about-content .wp-block-columns { flex-direction: column; }
  .about-content .ma-section > .wp-block-column:first-child { flex-basis: auto; }
  .about-content .ma-img img { max-width: 220px; }
  .about-content .ma-facts > .wp-block-column { border-right: 0; border-bottom: 1px solid var(--rule); }
  .about-content .ma-facts > .wp-block-column:last-child { border-bottom: 0; }
}
@media (max-width: 780px) {
  .about-content .wp-block-columns { display: grid; grid-template-columns: minmax(0, 1fr); }
  .about-content .wp-block-column { flex-basis: auto !important; width: auto !important; }
}

/* ---------- Sticky header ----------
   Fixed from the start; JS keeps it under the top bar while that is visible.
   Gets a frosted background once the page scrolls (front page: once the giant logo has docked). */
.site-header { position: fixed; top: 0; transition: background-color .25s, box-shadow .25s; }
.site-header .s-head { transition: padding .25s; }
.site-header.is-stuck { background: rgba(245, 240, 252, .88); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(23, 17, 42, .12); }
.has-logo-anim .site-header .mini-logo { opacity: 0; transition: opacity .15s; }
.has-logo-anim .site-header.logo-docked .mini-logo { opacity: 1; }
.hero .giant { transform-origin: 0 0; will-change: transform; position: relative; z-index: 3; }
.mobile-nav { z-index: 70; }
