/* Vaikų krautuvė: shop extras: out-of-stock product state, gift guide, brands index */

.text-link { color: var(--c-navy); font-weight: 650; text-decoration: underline; text-decoration-color: var(--c-line-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.text-link:hover { text-decoration-color: var(--c-tomato); }
[data-stock-state][hidden] { display: none !important; }

/* ================= Out of stock product (preke-neturime.html) ================= */
.swatch--red { background: #C8423A; }
.swatch--white { background: #F4F1EC; }
.swatch--black { background: #2A2D33; }
/* Unavailable colour: soft diagonal strike, still selectable to see the notify form */
.swatch--out { overflow: hidden; }
.swatch--out::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--c-white); box-shadow: 0 0 0 1px rgba(31, 42, 68, .35); transform: translateX(-50%) rotate(45deg); pointer-events: none; }
.swatch--out { opacity: .78; }
.swatch--out:has(input:checked) { opacity: 1; }
.swatches__note { font-weight: 650; color: var(--t-sun-ink); }

[data-buy-main] { display: flex; flex-direction: column; }
.instock { display: flex; flex-direction: column; gap: 20px; }

.oos { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; border-radius: var(--radius); background: var(--t-sun); scroll-margin-top: calc(var(--header-offset, 128px) + 24px); }
.oos__status { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--c-navy); }
.oos__status .icon { color: var(--t-sun-ink); stroke-width: 2; }
.oos__text { font-size: 15px; line-height: 1.5; color: var(--c-navy-soft); }
.notify { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 2px; }
.notify__input { height: 56px; border-radius: 999px; padding: 0 22px; border-color: transparent; box-shadow: 0 1px 2px rgba(31, 42, 68, .06); }
.notify__input:focus { border-color: var(--c-navy); }
.notify__input[aria-invalid="true"] { border-color: var(--c-tomato); }
.notify__btn { min-height: 56px; font-size: 16px; }
.notify__msg { grid-column: 1 / -1; font-size: 14px; font-weight: 650; color: var(--c-tomato-dark); }
.notify__msg:empty { display: none; }
.notify-done { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--c-white); font-size: 15px; line-height: 1.45; }
.notify-done .pbadge { width: 36px; height: 36px; border-radius: 12px; }
.notify-done strong { display: block; color: var(--c-navy); }
.oos__alt { font-size: 14px; color: var(--c-navy-soft); }
.oos__link { padding: 0; border: 0; background: none; font-weight: 700; color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.oos__link:hover { color: var(--c-tomato-dark); }

.alt { padding-block: 64px 72px; }
.alt .section-head { margin-bottom: 28px; }

/* ================= Gift guide (dovanos.html) ================= */
.gift-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 16px 56px; }
.gift-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.gift-hero__copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.gift-hero__copy .lead { max-width: 52ch; }
.gift-hero__group { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.gift-hero__label { font-size: 15px; font-weight: 700; }
.chip--occ { min-height: 56px; padding: 0 22px 0 8px; gap: 12px; font-size: 16px; font-weight: 700; }
.chip--occ .pbadge { width: 40px; height: 40px; border-radius: 13px; }
.gift-hero__media { position: relative; }
.gift-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l) 160px var(--radius-l) var(--radius-l); background: var(--c-sand); }
.gift-hero__note { position: absolute; left: -24px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: var(--radius); background: var(--c-white); box-shadow: var(--shadow-lift); font-size: 15px; line-height: 1.35; color: var(--c-navy-soft); }
.gift-hero__note strong { display: block; color: var(--c-navy); }

/* Budget tiles */
.budgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.budget { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px 24px 26px; border-radius: var(--radius-l); background: var(--b-bg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.budget:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.budget__pre { font-size: 15px; font-weight: 700; color: var(--b-ink); text-transform: uppercase; letter-spacing: .08em; }
.budget__sum { font-size: 56px; line-height: 1.05; }
.budget__text { margin-top: 16px; padding-top: 14px; padding-right: 44px; border-top: 1px solid rgba(31, 42, 68, .14); font-size: 15px; color: var(--c-navy-soft); }
.budget__go { position: absolute; right: 20px; top: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--c-white); color: var(--c-navy); transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.budget:hover .budget__go { transform: rotate(-30deg); background: var(--c-navy); color: var(--c-white); }
.budget--1 { --b-bg: var(--t-peach); --b-ink: var(--t-peach-ink); }
.budget--2 { --b-bg: var(--t-sun); --b-ink: var(--t-sun-ink); }
.budget--3 { --b-bg: var(--t-mint); --b-ink: var(--t-mint-ink); }
.budget--4 { --b-bg: var(--t-sky); --b-ink: var(--t-sky-ink); }

.gift-row .section-head h2:not(.doodle) { padding-bottom: 0; }

/* Ages (copied from home.css: homepage pastel tiles) */
.ages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.age { display: flex; flex-direction: column; height: 100%; padding: 26px 24px 28px; border-radius: var(--radius-l); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.age:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.age__num { font-size: 64px; line-height: 1; }
.age__unit { margin-top: 2px; font-weight: 700; font-size: 17px; }
.age__text { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(31, 42, 68, .14); font-size: 15px; color: var(--c-navy-soft); }
.age--1 { background: var(--t-peach); }
.age--2 { background: var(--t-sun); }
.age--3 { background: var(--t-mint); }
.age--4 { background: var(--t-sky); }
.age--5 { background: var(--t-lilac); }
.section--sand .age { box-shadow: inset 0 0 0 1px rgba(31, 42, 68, .05); }

/* SEO text + FAQ */
.gift-seo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.gift-seo__text { display: flex; flex-direction: column; gap: 22px; }
.prose-x { display: flex; flex-direction: column; gap: 14px; max-width: 64ch; color: var(--c-navy-soft); font-size: 17px; }
.gift-seo__more { display: flex; flex-direction: column; gap: 10px; }
.gift-faq { display: flex; flex-direction: column; gap: 12px; }
.gift-faq__title { margin-bottom: 4px; font-size: 28px; }

/* FAQ accordion (copied from home.css .qa) */
.qa { --qa: var(--t-peach); --qa-ink: var(--c-tomato-dark); border-radius: 22px; background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.qa--sun { --qa: var(--t-sun); --qa-ink: var(--t-sun-ink); }
.qa--mint { --qa: var(--t-mint); --qa-ink: var(--c-sage); }
.qa--sky { --qa: var(--t-sky); --qa-ink: var(--t-sky-ink); }
.qa:hover { transform: translateY(-2px); }
.qa[open] { box-shadow: 0 0 0 2px var(--qa), var(--shadow); }
.qa summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px 16px 16px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__badge { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--qa); color: var(--qa-ink); transform: rotate(-4deg); transition: transform .25s var(--ease); }
.qa:hover .qa__badge, .qa[open] .qa__badge { transform: rotate(4deg) scale(1.05); }
.qa__q { font-size: 17px; font-weight: 700; line-height: 1.35; }
.qa__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--qa); color: var(--qa-ink); transition: transform .25s var(--ease); }
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa p { padding: 0 22px 20px 80px; color: var(--c-navy-soft); }

/* ================= Brands index (prekes-zenklai.html) ================= */
.brands-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-block: 16px 24px; }
.brands-head > div { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.brands-head__note { font-size: 14px; }
.brands-stats { display: flex; gap: 12px; }
.brands-stats li { display: flex; flex-direction: column; min-width: 150px; padding: 18px 22px; border-radius: var(--radius); background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); }
.brands-stats strong { font-size: 36px; line-height: 1.05; }
.brands-stats span { font-size: 14px; font-weight: 600; color: var(--c-muted); }

.brand-tops { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.brand-top { --bt: var(--t-peach); --bt-ink: var(--t-peach-ink); display: flex; flex-direction: column; height: 100%; min-height: 188px; padding: 22px 20px 18px; border-radius: var(--radius-l); background: var(--bt); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.brand-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.brand-top--sun { --bt: var(--t-sun); --bt-ink: var(--t-sun-ink); }
.brand-top--mint { --bt: var(--t-mint); --bt-ink: var(--t-mint-ink); }
.brand-top--sky { --bt: var(--t-sky); --bt-ink: var(--t-sky-ink); }
.brand-top--lilac { --bt: var(--t-lilac); --bt-ink: var(--t-lilac-ink); }
.brand-top__name { font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.brand-top__cats { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--c-navy-soft); }
.brand-top__count { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 750; color: var(--bt-ink); }
.brand-top__count .icon { transition: transform .25s var(--ease); }
.brand-top:hover .brand-top__count .icon { transform: translateX(4px); }

/* A–Ž jump bar (sticks under the header) */
.az { position: sticky; top: var(--az-top, 120px); z-index: 40; background: rgba(251, 247, 240, .96); backdrop-filter: blur(8px); border-block: 1px solid var(--c-line); }
.az__list { display: flex; gap: 4px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.az__list::-webkit-scrollbar { display: none; }
.az__link { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 12px; font-size: 16px; font-weight: 750; color: var(--c-navy); transition: background-color .2s var(--ease), color .2s var(--ease); }
a.az__link:hover { background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); }
.az__link.is-active { background: var(--c-navy); color: var(--c-white); box-shadow: none; }
.az__link.is-empty { color: var(--c-line-strong); font-weight: 600; }

.az-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.az-group { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 16px; padding-block: 22px; border-top: 1px solid var(--c-line); scroll-margin-top: calc(var(--az-top, 120px) + 76px); }
.az-group__letter { padding-top: 10px; font-size: 40px; line-height: 1; color: var(--c-tomato); }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.brand-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; height: 100%; padding: 16px 16px 16px 20px; border-radius: var(--radius); background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.brand-tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--c-navy), var(--shadow); }
.brand-tile__name { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.brand-tile__meta { grid-row: 2; font-size: 14px; color: var(--c-muted); }
.brand-tile__count { grid-row: 1 / span 2; grid-column: 2; min-width: 44px; padding: 4px 10px; border-radius: 999px; background: var(--c-cream); font-size: 14px; font-weight: 750; text-align: center; color: var(--c-navy-soft); font-variant-numeric: tabular-nums; }
.brand-tile:hover .brand-tile__count { background: var(--c-navy); color: var(--c-white); }

.brand-help { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 32px; border-radius: var(--radius-l); background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); }
.brand-help p { margin-top: 6px; color: var(--c-navy-soft); }

/* ================= Responsive ================= */
@media (max-width: 1200px) {
  .brand-tops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .az-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  /* A–Ž: edge-to-edge swipe row with a fade that shows there is more */
  .az__list { margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter); scroll-padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 32px), transparent); }
  .az__list li { flex: none; }
  .az__link { min-width: 44px; height: 44px; }
  .gift-hero { gap: 40px; }
  .gift-seo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
/* tablets: 5 age tiles as 3 + 2 (no empty slot) */
@media (min-width: 761px) and (max-width: 1200px) {
  .ages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ages li { grid-column: span 2; }
  .ages li:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 900px) {
  .gift-hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .gift-hero__media { order: -1; }
  .gift-hero__media img { aspect-ratio: 16 / 9; }
  .budgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-hero__note { left: 12px; bottom: 12px; }
  .brands-head { flex-direction: column; align-items: stretch; }
  .notify { grid-template-columns: minmax(0, 1fr); }
  .notify__btn { width: 100%; }
  .alt { padding-block: 48px; }
}
@media (max-width: 760px) {
  .gift-hero__media img { border-radius: var(--radius-l) 80px var(--radius-l) var(--radius-l); }
  .gift-hero__note { position: static; margin-top: 12px; box-shadow: var(--shadow); }
  .chip--occ { min-height: 50px; padding-right: 18px; font-size: 15px; }
  .budgets { gap: 10px; }
  .budget { padding: 18px 16px 20px; }
  .budget__sum { font-size: 40px; }
  .budget__go { right: 12px; top: 14px; width: 34px; height: 34px; }
  .budget__text { padding-right: 0; font-size: 14px; }
  /* ages: 2 columns, the odd last tile spans the full row */
  .ages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ages li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .age { padding: 18px 16px 20px; }
  .age__num { font-size: 44px; }
  .age__unit { font-size: 16px; }
  .age__text { margin-top: 14px; padding-top: 12px; font-size: 14px; }
  .qa p { padding: 0 18px 18px 18px; }
  .qa__q { font-size: 16px; }
  .prose-x { font-size: 16px; }
  .brand-tops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brand-top { min-height: 160px; padding: 18px 16px 16px; }
  .brand-top__name { font-size: 23px; }
  .brands-stats li { flex: 1; min-width: 0; }
  .az-wrap { grid-template-columns: minmax(0, 1fr); }
  .az__list li:has(> .is-empty) { display: none; } /* phones: only letters that have brands */
  .az-group { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-block: 18px; }
  .az-group__letter { font-size: 32px; }
  .brand-help { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 14px; }
  .brand-help .btn { justify-self: start; }
}

/* Last section before the footer: room for the floating footer toys */
.page-end { padding-bottom: calc(var(--section-y) + 72px); }

/* ---------- Gift set cards (parts/gift-set-card.php, page "Dovanų rinkiniai naujagimiui") ----------
   Wide card: photo collage of every item left, the item list + prices + set price right. 2 per row, 1 on phones. */
.gsets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.gset { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-l); background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line), var(--shadow); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.gset:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-lift); }

.gset__media { position: relative; display: grid; gap: 3px; min-height: 100%; background: var(--c-line); }
.gset__media--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
.gset__media--3 .gset__img:first-child { grid-column: 1 / -1; }
.gset__media--2 { grid-template-rows: 1fr 1fr; }
.gset__img { position: relative; overflow: hidden; background: var(--c-sand); }
.gset__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gset:hover .gset__img img { transform: scale(1.04); }
.gset__save { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--c-tomato); color: var(--c-white); font-size: 15px; font-weight: 800; box-shadow: 0 0 0 2px var(--c-white), 0 4px 12px rgba(31, 42, 68, .3); }

.gset__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 22px; }
.gset__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-tomato-dark); }
.gset__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.gset__title a:hover { color: var(--c-tomato-dark); }
.gset__items { display: flex; flex-direction: column; gap: 0; margin: 2px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.gset__items li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--c-line); font-size: 14.5px; line-height: 1.35; }
.gset__items .icon { flex: none; width: 16px; height: 16px; color: var(--c-sage); stroke-width: 2.4; }
.gset__item-name { flex: 1; min-width: 0; color: var(--c-navy); }
.gset__item-price { flex: none; font-weight: 650; color: var(--c-muted); white-space: nowrap; }

.gset__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.gset__price { display: flex; flex-direction: column; gap: 2px; }
.gset__was { font-size: 13px; color: var(--c-muted); text-decoration: line-through; }
.gset__now { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--c-tomato-dark); }
.gset__eta { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--c-sage); }
.gset__eta .icon { width: 15px; height: 15px; }
.gset__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.gset .gset__add { flex: none; width: auto; height: 46px; padding: 0 18px; white-space: nowrap; background: var(--c-navy); color: var(--c-white); }
.gset .gset__add:hover { background: var(--c-tomato); }
.gset__more { font-size: 14px; }
.gset__out { font-size: 14px; font-weight: 700; color: var(--c-muted); }

@media (max-width: 1200px) { .gsets { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .gset { grid-template-columns: minmax(0, 1fr); }
  .gset__media { aspect-ratio: 4 / 3; }
  .gset__body { padding: 18px 16px; }
  .gset__title { font-size: 20px; }
  .gset__foot { flex-wrap: wrap; }
  .gset__actions { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .gset .gset__add { flex: 1; }
}
/* Whole gift set card opens the set page (title link covers the card); the cart button stays clickable above it */
.gset { position: relative; cursor: pointer; }
.gset__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.gset .gset__add { position: relative; z-index: 2; }
.gset:hover .gset__title a { color: var(--c-tomato-dark); }
