/* NADvance parduotuvės papildai: krepšelis, atsiskaitymas, blogas, kalbų perjungiklis. */
:root {
  --nv-ink: #111418;
  --nv-muted: #5b6573;
  --nv-line: #e2e8f0;
  --nv-soft: #f5fafc;
  --nv-accent: #00aeef;
  --nv-accent-dark: #0b8fc4;
  --nv-ok: #16794c;
  --nv-warn: #9a6700;
  --nv-err: #c4291c;
  --nv-radius: 20px;
}

/* ── Puslapiai be herojaus juostos ─────────────────────────────────── */
.nv-page { position: relative; padding-top: 140px; padding-bottom: 80px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; max-width: 1240px; }
.nv-doc { max-width: 860px; }
.nv-page::before, .nv-post::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 118px; background: linear-gradient(180deg, #dff1fa 0%, var(--nv-soft) 100%);
  border-radius: 0 0 50px 50px;
}
.nv-post { position: relative; padding-top: 118px; }
.nv-page__title { font-size: clamp(30px, 4vw, 44px); margin: 0 0 28px; letter-spacing: -.01em; }
.nv-muted { color: var(--nv-muted); }
.nv-empty, .nv-empty-cart { text-align: center; padding: 60px 0; font-size: 18px; }
.nv-empty-cart .button { margin-top: 16px; }

/* ── Kalbos perjungiklis ────────────────────────────────────────────── */
.nv-lang { position: fixed; left: 14px; bottom: 14px; z-index: 60; font-size: 14px; }
.nv-lang__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--nv-line);
  background: #fff; color: var(--nv-ink); border-radius: 999px; cursor: pointer; font: inherit;
  box-shadow: 0 6px 20px rgba(15, 30, 48, .12);
}
.nv-lang__btn img, .nv-lang__list img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.nv-lang__caret { transition: transform .2s; }
.nv-lang.is-open .nv-lang__caret { transform: rotate(180deg); }
.nv-lang__list {
  position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--nv-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 30, 48, .16);
}
.nv-lang__list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--nv-ink); text-decoration: none; }
.nv-lang__list a:hover { background: var(--nv-soft); }
.nv-lang__list a[aria-current] { font-weight: 600; background: #e9f6fc; }

/* ── Krepšelio ženkliukas antraštėje ────────────────────────────────── */
.header-cart-bubble .cart-count-bubble {
  position: absolute; top: 8px; right: 12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--nv-accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.header-cart-bubble .cart-count-bubble[hidden] { display: none; }

/* ── Pranešimas ─────────────────────────────────────────────────────── */
.nv-toast {
  position: fixed; right: 16px; top: 96px; z-index: 80; width: min(340px, calc(100vw - 32px)); padding: 18px; background: #fff;
  border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 30, 48, .22); transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; font-size: 15px;
}
.nv-toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.nv-toast__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nv-toast__x { border: 0; background: none; font-size: 22px; cursor: pointer; line-height: 1; color: var(--nv-muted); }
.nv-toast__note { margin: 0 0 10px; color: var(--nv-warn); }
.nv-toast .button { width: 100%; }

/* ── Produkto pirkimo blokas ────────────────────────────────────────── */
.nv-buy .price { margin-top: 10px; }
.nv-tiers { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.nv-tiers__item {
  position: relative; padding: 10px 12px; border: 1.5px solid var(--nv-line); border-radius: 14px; cursor: pointer; background: #fff;
  display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.3; transition: border-color .15s, background .15s;
}
.nv-tiers__item strong { font-size: 15px; }
.nv-tiers__item small { color: var(--nv-muted); }
.nv-tiers__item em {
  position: absolute; top: -9px; right: 10px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--nv-accent); padding: 1px 7px; border-radius: 999px;
}
.nv-tiers__item.is-active { border-color: var(--nv-ink); background: var(--nv-soft); }
.nv-stock { margin: 6px 0 0; font-size: 14px; }
.nv-stock--low { color: var(--nv-warn); }
.nv-crypto-hint { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--nv-muted); }
.nv-review-stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; font-size: 16px; }
.nv-review-stars span { color: #d9dde3; }

/* ── Dėžutės ir laukai ──────────────────────────────────────────────── */
.nv-box { background: #fff; border: 1px solid var(--nv-line); border-radius: var(--nv-radius); padding: 24px; margin-bottom: 18px; }
.nv-box__title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 18px; }
.nv-step { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--nv-ink); color: #fff; font-size: 14px; font-weight: 700; }
.nv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 14px; }
.nv-box__title + .nv-grid-2 { margin-top: 0; }
.nv-field--wide { grid-column: 1 / -1; }
.nv-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.nv-field label { font-size: 14px; font-weight: 600; color: var(--nv-ink); }
.nv-field input, .nv-field select, .nv-field textarea, .nv-code input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--nv-ink); background: #fff;
  border: 1.5px solid #cfd7e1; border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.nv-field input:focus, .nv-field select:focus, .nv-field textarea:focus, .nv-code input:focus { border-color: var(--nv-accent); box-shadow: 0 0 0 3px rgba(0, 174, 239, .18); }
.nv-field input:disabled { background: #f3f5f8; color: var(--nv-muted); }
.nv-field.has-error input, .nv-field.has-error select { border-color: var(--nv-err); }
.nv-field__error { margin: 0; min-height: 0; font-size: 13px; color: var(--nv-err); }
.nv-field__error:empty { display: none; }

/* pasirinkimų kortelės */
.nv-options { display: grid; gap: 10px; }
.nv-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid var(--nv-line); border-radius: 14px; transition: border-color .15s, background .15s;
}
.nv-option:hover { border-color: #b9c5d3; }
.nv-option:has(input:checked) { border-color: var(--nv-ink); background: var(--nv-soft); }
.nv-option input { width: 18px; height: 18px; accent-color: var(--nv-ink); margin: 0; }
.nv-option__body { display: flex; flex-direction: column; gap: 2px; }
.nv-option__title { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nv-option__desc { font-size: 14px; color: var(--nv-muted); line-height: 1.4; }
.nv-option__price { font-weight: 600; white-space: nowrap; font-size: 15px; }
.nv-option__icons { display: flex; gap: 6px; }
.nv-options--compact .nv-option { padding: 10px 14px; }
.nv-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: #16a34a; padding: 2px 8px; border-radius: 999px; }
.nv-delivery { margin-top: 16px; }
.nv-delivery .nv-options + .nv-field__error + .nv-grid-2 { margin-top: 16px; }
.nv-locker-picked { margin: 12px 0 0; padding: 12px 14px; background: var(--nv-soft); border-radius: 12px; font-size: 14px; }

/* combobox */
.nv-combo__list {
  position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 6px; list-style: none; max-height: 300px; overflow: auto;
  background: #fff; border: 1px solid var(--nv-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15, 30, 48, .16);
}
.nv-combo__list li { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.nv-combo__list li small { color: var(--nv-muted); font-size: 13px; }
.nv-combo__list li:hover, .nv-combo__list li[aria-selected="true"] { background: var(--nv-soft); }
.nv-combo__list .nv-combo__empty { cursor: default; color: var(--nv-muted); }
.nv-combo__list[hidden] { display: none; }

/* pranešimai */
.nv-alert { padding: 12px 16px; border-radius: 12px; font-size: 15px; margin: 12px 0; line-height: 1.45; }
.nv-alert--error { background: #fdecea; color: var(--nv-err); }
.nv-alert--warn { background: #fff5d6; color: #6b4a00; border: 1px solid #f1d98a; }
.nv-alert--info { background: #e8f6fd; color: #0c5a7d; }
.nv-alert[hidden] { display: none; }

/* ── Atsiskaitymo išdėstymas ────────────────────────────────────────── */
.nv-co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.nv-co[hidden] { display: none; }
.nv-co__summary { position: sticky; top: 110px; }
.nv-submit { margin-top: 6px; min-height: 56px; font-size: 16px; }
.nv-submit:disabled { opacity: .45; cursor: not-allowed; }
.nv-submit [hidden] { display: none; }
.nv-legal { font-size: 13px; color: var(--nv-muted); text-align: center; margin: 12px 0 0; }

.nv-summary.is-loading { opacity: .6; transition: opacity .15s; }
.nv-lines { list-style: none; margin: 0; padding: 0; }
.nv-line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nv-line); align-items: start; }
.nv-order .nv-line { grid-template-columns: 1fr auto; }
.nv-line__img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--nv-soft); }
.nv-line__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nv-line__name { font-weight: 600; }
.nv-line__unit { font-size: 14px; }
.nv-line__unit s { color: var(--nv-muted); }
.nv-line__total { font-weight: 600; white-space: nowrap; }
.nv-qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.nv-qty button[data-q] { width: 32px; height: 32px; border: 1px solid #cfd7e1; background: #fff; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.nv-qty button[data-q]:disabled { opacity: .35; cursor: default; }
.nv-qty input { width: 48px; height: 32px; text-align: center; border: 1px solid #cfd7e1; border-radius: 8px; font: inherit; -moz-appearance: textfield; }
.nv-qty input::-webkit-outer-spin-button, .nv-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nv-line__remove { margin-left: 6px; border: 0; background: none; color: var(--nv-muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.nv-tier-hint { margin: 12px 0 0; padding: 10px 12px; background: #e8f6fd; color: #0c5a7d; border-radius: 10px; font-size: 14px; }
.nv-tier-hint[hidden] { display: none; }

.nv-code { display: flex; gap: 8px; margin-top: 16px; }
.nv-code input { padding: 10px 12px; }
.nv-code .button { min-width: 0; padding: 0 18px; min-height: 44px; }
.nv-code__msg { margin: 8px 0 0; font-size: 14px; color: var(--nv-muted); }
.nv-code__msg.is-ok { color: var(--nv-ok); }
.nv-code__msg.is-error { color: var(--nv-err); }
.nv-code__msg[hidden] { display: none; }

.nv-totals { margin: 18px 0 0; }
.nv-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.nv-totals > div[hidden] { display: none; }
.nv-totals dt { color: var(--nv-muted); }
.nv-totals dd { margin: 0; font-weight: 600; text-align: right; }
.nv-totals__total { border-top: 1px solid var(--nv-line); margin-top: 8px; padding-top: 14px !important; font-size: 20px !important; }
.nv-totals__total dt { color: var(--nv-ink); font-weight: 700; }
.nv-summary__tax { margin: 6px 0 0; font-size: 13px; color: var(--nv-muted); }

/* ── Užsakymo puslapis ──────────────────────────────────────────────── */
.nv-order__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.nv-order__kicker { margin: 0 0 6px; color: var(--nv-accent-dark); font-weight: 600; }
.nv-status { display: inline-block; margin: -14px 0 24px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff5d6; color: #6b4a00; }
.nv-status--paid, .nv-status--shipped, .nv-status--delivered { background: #dcfce7; color: var(--nv-ok); }
.nv-status--cancelled { background: #fdecea; color: var(--nv-err); }
.nv-bank { margin: 16px 0; border: 1px solid var(--nv-line); border-radius: 14px; overflow: hidden; }
.nv-bank > div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--nv-line); }
.nv-bank > div:last-child { border-bottom: 0; background: var(--nv-soft); }
.nv-bank dt { color: var(--nv-muted); }
.nv-bank dd { margin: 0; word-break: break-all; }
.nv-switch { margin: 16px 0 0; }
.nv-switch button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--nv-ink); }
.nv-order__save { margin-top: 24px; font-size: 14px; }

/* ── Blogas ─────────────────────────────────────────────────────────── */
.nv-blog { padding-top: 48px; padding-bottom: 72px; }
.nv-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.nv-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nv-line); border-radius: var(--nv-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.nv-card:hover { box-shadow: 0 16px 40px rgba(15, 30, 48, .1); transform: translateY(-2px); }
.nv-card__media { display: block; aspect-ratio: 16 / 9; background: var(--nv-soft); overflow: hidden; }
.nv-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nv-card__date { font-size: 13px; color: var(--nv-muted); letter-spacing: .04em; text-transform: uppercase; }
.nv-card__title { font-size: 20px; line-height: 1.3; margin: 0; }
.nv-card__title a { color: var(--nv-ink); text-decoration: none; }
.nv-card__title a:hover { text-decoration: underline; }
.nv-card__excerpt { margin: 0; color: var(--nv-muted); font-size: 15px; line-height: 1.55; }
.nv-card__more { margin-top: auto; font-weight: 600; color: var(--nv-ink); text-decoration: none; font-size: 15px; }
.nv-pages { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.nv-pages a, .nv-pages span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; color: var(--nv-ink); border: 1px solid var(--nv-line); }
.nv-pages span { background: var(--nv-ink); color: #fff; border-color: var(--nv-ink); }
.nv-post .article-template__content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.nv-post .article-template__content td, .nv-post .article-template__content th { border: 1px solid var(--nv-line); padding: 12px; vertical-align: top; }
.nv-post .article-template__content td p { margin: 0 0 4px; }
.nv-post__cta { text-align: center; margin-top: 36px; }

/* 404 */
.nv-404 { text-align: center; }
.nv-404__code { font-size: 96px; font-weight: 700; line-height: 1; margin: 0; color: var(--nv-accent); }
.nv-404__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* kontaktų forma */
.nv-contact-msg { margin: 8px 0 0; color: var(--nv-ok); font-size: 14px; }
.nv-contact-msg.is-error { color: var(--nv-err); }

@media (max-width: 989px) {
  .nv-co, .nv-order__grid { grid-template-columns: 1fr; }
  .nv-co__summary { position: static; order: -1; }
  .nv-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 749px) {
  .nv-page { padding-top: 110px; }
  .nv-page::before { height: 92px; border-radius: 0 0 32px 32px; }
  .nv-grid-2 { grid-template-columns: 1fr; }
  .nv-box { padding: 18px 16px; }
  .nv-blog__grid { grid-template-columns: 1fr; }
  .nv-bank > div { grid-template-columns: 1fr; gap: 2px; }
  .nv-option { grid-template-columns: auto 1fr; }
  .nv-option__price, .nv-option__icons { grid-column: 2; }
  .nv-lang { bottom: 10px; left: 10px; }
  .nv-lang__btn span { display: none; }
}

/* ── Atsiliepimų nuotraukos, sertifikatai, peržiūros langas ─────────── */
.nv-review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nv-review-photos a { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #eef3f7; }
.nv-review-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.nv-review-photos a:hover img { transform: scale(1.06); }
.nv-cert-link { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 15px; }
.nv-cert-link svg { color: var(--nv-accent-dark); flex-shrink: 0; }
.nv-cert-link a { color: var(--nv-ink); text-underline-offset: 3px; }
.nv-certs { margin-top: 28px; text-align: center; }
.nv-certs__title { font-weight: 600; margin: 0 0 14px; }
.nv-certs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.nv-certs__item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 150px; text-decoration: none; color: var(--nv-ink); font-size: 14px; line-height: 1.3; }
.nv-certs__item img { width: 150px; height: 200px; object-fit: cover; object-position: top; border-radius: 10px; background: #fff; border: 1px solid var(--nv-line); box-shadow: 0 6px 18px rgba(15, 30, 48, .08); transition: transform .2s, box-shadow .2s; }
.nv-certs__item:hover img { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 30, 48, .16); }
.nv-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.nv-lightbox::backdrop { background: rgba(8, 14, 22, .88); }
.nv-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.nv-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 120px); }
.nv-lightbox img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 8px; background: #fff; }
.nv-lightbox figcaption { color: #fff; font-size: 15px; }
.nv-lightbox__close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.nv-lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-size: 36px; cursor: pointer; }
.nv-lightbox__nav--prev { left: 14px; }
.nv-lightbox__nav--next { right: 14px; }
.nv-lightbox__nav[hidden] { display: none; }
@media (max-width: 749px) {
  .nv-lightbox figure { max-width: calc(100vw - 24px); }
  .nv-lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .nv-certs__item, .nv-certs__item img { width: 120px; }
  .nv-certs__item img { height: 160px; }
}

/* ── Informaciniai puslapiai (taisyklės, politikos) ────────────────── */
.nv-doc__body { font-size: 16px; line-height: 1.7; }
.nv-doc__body h2 { font-size: 24px; margin: 36px 0 12px; }
.nv-doc__body h3 { font-size: 19px; margin: 28px 0 10px; }
.nv-doc__body ul { padding-left: 22px; }
.nv-doc__body li { margin: 4px 0; }
.nv-doc__body table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; display: block; overflow-x: auto; }
.nv-doc__body th, .nv-doc__body td { border: 1px solid var(--nv-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.nv-doc__body th { background: var(--nv-soft); }
.nv-doc__body code { font-size: 13px; background: #eef3f7; padding: 1px 5px; border-radius: 4px; }
.nv-doc__updated { margin-top: 40px; font-size: 14px; }

.nv-option[hidden] { display: none; }
.nv-courier-country { margin-bottom: 14px; }
.nv-certs__text { max-width: 640px; margin: 18px auto 0; font-size: 15px; line-height: 1.6; color: var(--nv-muted); }
.nv-certs__text a { color: var(--nv-accent-dark); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
