/* ==========================================================================
   Viržių ūkis – el. prekyba
   Vienas stiliaus failas be jokių išorinių karkasų. Spalvos ir šriftai –
   tie patys kaip pirminėje svetainėje (violetinė + kreminė, Playfair Display).
   ========================================================================== */

/* Šriftai įkeliami <head> dalyje – @import čia pridėdavo papildomą
   laukimo grandinę prieš pirmą piešimą. */

/* --------------------------------------------------------------------------
   1. Kintamieji
   -------------------------------------------------------------------------- */
:root {
  --background: 40 33% 97%;
  --foreground: 285 25% 14%;
  --card: 40 40% 99%;
  --primary: 288 42% 32%;
  --primary-foreground: 40 33% 97%;
  --secondary: 90 18% 90%;
  --muted: 40 20% 92%;
  --muted-foreground: 285 10% 42%;
  --accent: 300 45% 55%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 46%;
  --success: 145 45% 34%;
  --warning: 35 85% 45%;
  --border: 40 16% 86%;
  --heath: 300 50% 42%;
  --moss: 120 22% 30%;

  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-sm: 0 1px 2px hsl(288 20% 20% / 0.06);
  --shadow: 0 6px 24px -8px hsl(288 25% 20% / 0.18);
  --shadow-lg: 0 24px 60px -24px hsl(288 30% 20% / 0.32);
  --header-height: 4.5rem;
  --container: 78rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Bazė
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: hsl(var(--accent)); }

img { max-width: 100%; display: block; }
/* <picture> yra tik apvalkalas: be šito jis įsiterpia tarp konteinerio ir
   paveikslėlio, ir taisyklės su „height: 100%“ nustoja veikti. */
picture { display: contents; }

/* „hidden“ atributas turi nugalėti komponentų display taisykles */
[hidden] { display: none !important; }

hr {
  border: 0;
  border-top: 1px solid hsl(var(--border));
  margin: 2rem 0;
}

:focus-visible {
  outline: 3px solid hsl(var(--accent) / 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Maketas
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: 60rem; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--muted { background: hsl(var(--muted) / 0.55); }

.page-head { margin-bottom: 2.5rem; }
.page-head--center { text-align: center; }
.page-head p {
  max-width: 44rem;
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}
.page-head--center p { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--accent));
  margin-bottom: 0.75rem;
}

.grid { display: grid; gap: 1.75rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1; }

.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8rem; }
.strong { font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.latin { font-style: italic; color: hsl(var(--muted-foreground)); }
.price { font-family: "Playfair Display", Georgia, serif; color: hsl(var(--heath)); font-weight: 600; }

/* --------------------------------------------------------------------------
   4. Antraštė ir navigacija
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: hsl(var(--background) / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  color: hsl(var(--primary));
  font-weight: 600;
}
.brand svg { color: hsl(var(--accent)); flex: none; }
.brand:hover { color: hsl(var(--primary)); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 500;
}
.nav a { color: hsl(var(--foreground)); }
.nav a:hover,
.nav a[aria-current="page"] { color: hsl(var(--accent)); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.95rem;
}
.cart-button:hover { background: hsl(var(--accent)); color: #fff; }
.cart-button__count {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: hsl(var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-button:hover .cart-button__count { background: #fff; color: hsl(var(--accent)); }

.menu-toggle {
  display: none;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--primary));
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 0.75rem 0 1rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.8rem 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: hsl(var(--foreground));
}
.mobile-nav a:hover { background: hsl(var(--muted)); }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 520px) {
  .site-header__inner { gap: 0.5rem; }
  .brand { font-size: 1.1rem; }
  .brand svg { width: 22px; height: 22px; }
  .hide-sm { display: none; }
  .cart-button { padding: 0.55rem 0.85rem; }
}

/* --------------------------------------------------------------------------
   5. Mygtukai
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--accent { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: hsl(var(--heath)); color: #fff; }

.btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn--primary:hover { background: hsl(288 42% 26%); color: #fff; }

.btn--outline { border-color: hsl(var(--primary) / 0.35); color: hsl(var(--primary)); background: transparent; }
.btn--outline:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

.btn--ghost { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.btn--ghost:hover { background: hsl(var(--secondary)); }

.btn--light { background: hsl(0 0% 100% / 0.18); color: #fff; border-color: hsl(0 0% 100% / 0.4); }
.btn--light:hover { background: hsl(0 0% 100% / 0.3); color: #fff; }

.btn--danger { background: hsl(var(--destructive)); color: #fff; }
.btn--danger:hover { background: hsl(0 72% 38%); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.1rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }

.link-quiet { color: hsl(var(--muted-foreground)); text-decoration: underline; text-underline-offset: 3px; }
.link-quiet:hover { color: hsl(var(--accent)); }

/* --------------------------------------------------------------------------
   6. Kortelės, ženkleliai
   -------------------------------------------------------------------------- */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--pad-lg { padding: 2.25rem; }
.card__title { font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; margin-bottom: 1rem; }

.panel {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel__head {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.5);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* Veiksmai antraštėje visada dešinėje */
.panel__head > form,
.panel__head > .btn,
.panel__head > a:last-child,
.panel__head > span:last-child:not(:first-child) { margin-left: auto; }
.panel__body { padding: 1.5rem; }
.panel__body--tight { padding: 1rem 1.5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}
.badge--success { background: hsl(var(--success) / 0.12); color: hsl(var(--success)); }
.badge--warning { background: hsl(var(--warning) / 0.14); color: hsl(var(--warning)); }
.badge--danger  { background: hsl(var(--destructive) / 0.12); color: hsl(var(--destructive)); }
.badge--accent  { background: hsl(var(--accent) / 0.14); color: hsl(var(--heath)); }
.badge--primary { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.chip:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent)); }
.chip.is-active { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }

/* --------------------------------------------------------------------------
   7. Herojus, juosta, animacijos
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(84vh, 44rem);
  color: hsl(40 33% 96%);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, hsl(288 45% 12% / 0.9) 0%, hsl(288 45% 15% / 0.6) 45%, hsl(288 45% 15% / 0.15) 100%);
}
.hero__body { position: relative; max-width: 40rem; padding-block: 4rem; }
.hero__body h1 { color: #fff; }
.hero__body h1 em { font-style: italic; color: hsl(300 60% 78%); }
.hero__lead { font-size: 1.2rem; color: hsl(40 25% 88%); max-width: 34rem; }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(0 0% 100% / 0.28);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.marquee {
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  overflow: hidden;
  padding-block: 0.85rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 34s linear infinite;
  white-space: nowrap;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--moss));
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   8. Prekių tinklelis
   -------------------------------------------------------------------------- */
.product-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); }

.product-card {
  display: flex;
  flex-direction: column;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card.is-out { border-style: dashed; }

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  /* Fonas matomas tik tada, kai nuotraukos nėra – tada jis turi atrodyti
     kaip tuščias langelis, o ne kaip violetinė prekės nuotrauka. */
  background: hsl(var(--muted));
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card.is-out .product-card__media img { filter: grayscale(1); opacity: 0.6; }

/* Sezono pabaigos juosta – matoma visuose puslapiuose */
.season-banner {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.season-banner .container {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.season-banner svg { flex: none; margin-top: 0.1rem; }
.season-banner p { margin: 0; font-size: 0.92rem; line-height: 1.45; }

/* Vietoje nuotraukos, kai prekė jos neturi arba failas dingo */
.photo-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.photo-empty span { font-size: 0.82rem; line-height: 1.25; }

.product-card__number {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  background: hsl(var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.product-card__out {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: hsl(288 40% 10% / 0.45);
}
.product-card__out span {
  transform: rotate(-5deg);
  border: 2px solid hsl(0 0% 100% / 0.9);
  background: hsl(288 40% 10% / 0.6);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem; gap: 0.35rem; }
.product-card__body h3 { font-size: 1.3rem; margin: 0; }
.product-card__body h3 a { color: inherit; }
.product-card__body h3 a:hover { color: hsl(var(--accent)); }
.product-card__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.product-card__price { font-size: 1.75rem; line-height: 1.1; }
.product-card__price s { color: hsl(var(--muted-foreground)); font-size: 1rem; margin-left: 0.35rem; }
.product-card__actions { display: flex; gap: 0.5rem; padding: 0 1.35rem 1.35rem; }
.product-card__actions .btn { flex: 1; }

.zoom-button {
  position: absolute;
  right: 0.85rem; bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: hsl(288 40% 10% / 0.55);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.zoom-button:hover { background: hsl(288 40% 10% / 0.8); }

/* Prekės puslapis */
.product-detail { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.product-detail__gallery { display: grid; gap: 0.75rem; }
.product-detail__main {
  position: relative;            /* rodyklėms ir numeriui */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  aspect-ratio: 4 / 3;
}
.product-detail__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.product-detail__thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.product-detail__thumbs button {
  width: 5rem; height: 4rem;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid hsl(var(--border));
  background: none;
  cursor: pointer;
}
.product-detail__thumbs button.is-active { border-color: hsl(var(--accent)); }
.product-detail__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 2.5rem; }
.product-detail__meta { display: grid; gap: 0.6rem; margin: 1.5rem 0; }
.product-detail__meta div { display: flex; gap: 0.5rem; align-items: center; color: hsl(var(--muted-foreground)); }

@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   9. Formos
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label, .label {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.field .hint { font-size: 0.82rem; color: hsl(var(--muted-foreground)); }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], input[type="url"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: hsl(var(--foreground));
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 7rem; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, hsl(var(--muted-foreground)) 50%), linear-gradient(135deg, hsl(var(--muted-foreground)) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.18);
}
input.has-error, select.has-error, textarea.has-error { border-color: hsl(var(--destructive)); }
.field-error { font-size: 0.82rem; color: hsl(var(--destructive)); font-weight: 500; }

.checkbox, .radio {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.checkbox input, .radio input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; accent-color: hsl(var(--accent)); flex: none; }

/* Pasirinkimo kortelės (siuntimas, mokėjimas) */
.option-list { display: grid; gap: 0.85rem; }
.option {
  position: relative;
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--card));
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.option:hover { border-color: hsl(var(--accent) / 0.6); }
.option input { margin-top: 0.3rem; accent-color: hsl(var(--accent)); flex: none; width: 1.1rem; height: 1.1rem; }
.option__body { flex: 1; display: grid; gap: 0.2rem; }
.option__title { font-weight: 600; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.option__desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.option__price { font-weight: 700; color: hsl(var(--heath)); white-space: nowrap; }
.option:has(input:checked) { border-color: hsl(var(--accent)); background: hsl(var(--accent) / 0.05); }
.option-extra { display: none; padding: 0 1.25rem 1.25rem 3rem; }
.option:has(input:checked) + .option-extra { display: block; }

/* Kiekio laukas */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.qty button {
  border: 0;
  background: transparent;
  width: 2.4rem; height: 2.6rem;
  font-size: 1.1rem;
  color: hsl(var(--primary));
  cursor: pointer;
}
.qty button:hover { background: hsl(var(--muted)); }
.qty input {
  width: 3rem;
  border: 0;
  text-align: center;
  font-weight: 600;
  padding: 0;
  background: transparent;
}
.qty input:focus { box-shadow: none; }

/* --------------------------------------------------------------------------
   10. Lentelės (krepšelis, užsakymai)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.table th, table.table td {
  padding: 0.9rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}
table.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  font-weight: 700;
  white-space: nowrap;
}
table.table tbody tr:hover { background: hsl(var(--muted) / 0.4); }
table.table td.right, table.table th.right { text-align: right; }
table.table tfoot td { border-bottom: 0; font-weight: 600; }

.cart-item { display: flex; gap: 1rem; align-items: center; }
.cart-item__thumb {
  width: 4.5rem; height: 4.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
  background: hsl(var(--muted));
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Sumų suvestinė */
.summary { display: grid; gap: 0.7rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.98rem; }
.summary__row span:first-child { color: hsl(var(--muted-foreground)); }
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.9rem;
  margin-top: 0.3rem;
  border-top: 1px solid hsl(var(--border));
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
}
.summary__total strong { color: hsl(var(--heath)); }

.sticky-summary { position: sticky; top: calc(var(--header-height) + 1.5rem); }

.free-shipping-note {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: hsl(var(--moss) / 0.1);
  color: hsl(var(--moss));
  font-size: 0.88rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Atsiskaitymas
   -------------------------------------------------------------------------- */
.checkout-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .sticky-summary { position: static; }
}

.steps { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; list-style: none; padding: 0; }
.steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}
.steps li b {
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 999px;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}
.steps li.is-active { color: hsl(var(--primary)); }

/* --- Paštomatų / atsiėmimo punktų paieška atsiskaitant --- */
.pickup-search { display: grid; gap: 0.75rem; }
.pickup-list {
  max-height: 17rem;
  overflow-y: auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: #fff;
}
.pickup-list__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid hsl(var(--border));
  background: transparent;
  padding: 0.75rem 0.9rem;
  font: inherit;
  cursor: pointer;
}
.pickup-list__item:last-child { border-bottom: 0; }
.pickup-list__item:hover { background: hsl(var(--muted) / 0.6); }
.pickup-list__item.is-selected { background: hsl(var(--accent) / 0.1); }
.pickup-list__item strong { display: block; font-size: 0.95rem; }
.pickup-list__item span { font-size: 0.83rem; color: hsl(var(--muted-foreground)); }
.pickup-selected {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: hsl(var(--moss) / 0.09);
  font-size: 0.9rem;
}

.steps li.is-active b { background: hsl(var(--accent)); color: #fff; }

/* --------------------------------------------------------------------------
   12. Pranešimai
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.alert svg { flex: none; margin-top: 0.15rem; }
.alert--success { background: hsl(var(--success) / 0.1); border-color: hsl(var(--success) / 0.3); color: hsl(var(--success)); }
.alert--error { background: hsl(var(--destructive) / 0.08); border-color: hsl(var(--destructive) / 0.3); color: hsl(var(--destructive)); }
.alert--info { background: hsl(var(--primary) / 0.07); border-color: hsl(var(--primary) / 0.2); color: hsl(var(--primary)); }
.alert--warning { background: hsl(var(--warning) / 0.1); border-color: hsl(var(--warning) / 0.3); color: hsl(35 85% 32%); }

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-xl);
  background: hsl(var(--card));
}
.empty-state svg { color: hsl(var(--accent)); margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   13. Kvietimai, informacinės sekcijos
   -------------------------------------------------------------------------- */
.cta {
  border-radius: var(--radius-xl);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: hsl(40 25% 86%); max-width: 40rem; margin-inline: auto; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

.cta--accent { background: hsl(var(--accent)); }
.cta--accent p { color: hsl(0 0% 100% / 0.9); }

.feature-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.feature {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}
.feature svg { color: hsl(var(--accent)); }
.feature strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; }
.feature span { font-size: 0.92rem; color: hsl(var(--muted-foreground)); }

.split { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: center; }
.split img { border-radius: var(--radius-xl); box-shadow: var(--shadow); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; color: hsl(var(--foreground)); }
.prose li { margin-bottom: 0.5rem; }

.definition-list { display: grid; gap: 0.75rem; }
.definition-list > div { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; gap: 1rem; }
.definition-list dt { color: hsl(var(--muted-foreground)); font-size: 0.92rem; }
.definition-list dd { margin: 0; font-weight: 500; }
@media (max-width: 640px) {
  .definition-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* --- Klausimai ir atsakymai --- */
.faq { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.faq__item {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--card));
  padding: 0 1.25rem;
}
.faq__item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: hsl(var(--accent));
  flex: none;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding-bottom: 1.1rem; margin: 0; color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   14. Poraštė
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 4rem;
  background: hsl(288 42% 16%);
  color: hsl(40 33% 92%);
}
.site-footer a { color: hsl(40 25% 88%); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding-block: 3.5rem;
}
.site-footer h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.site-footer li { display: flex; align-items: center; gap: 0.5rem; color: hsl(40 20% 80%); }
.site-footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; color: #fff; }
.site-footer__brand svg { color: hsl(300 55% 70%); }
.site-footer__note { color: hsl(40 20% 78%); max-width: 26rem; margin-top: 1rem; font-size: 0.95rem; }
.site-footer__bottom {
  border-top: 1px solid hsl(0 0% 100% / 0.1);
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: hsl(40 20% 68%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --------------------------------------------------------------------------
   15. Nuotraukos padidinimas
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: hsl(288 40% 6% / 0.92);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 1rem; font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; }
.lightbox__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 3rem; height: 3rem;
  border: 0;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.15);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__close:hover { background: hsl(0 0% 100% / 0.3); }

/* --------------------------------------------------------------------------
   16. Spausdinimas
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn, .no-print { display: none !important; }
  body { background: #fff; }
  .card, .panel { border: 1px solid #ddd; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   17. Telefonams (dauguma pirkėjų naršo telefonu)
   -------------------------------------------------------------------------- */

/* Rodoma tik siaurame ekrane */
.checkout-bar,
.only-sm { display: none; }

@media (max-width: 640px) {
  /* --- Herojus: mažiau tuščios erdvės --- */
  .hero { min-height: auto; }
  .hero__body { padding-block: 3.5rem 3rem; }
  .hero__lead { font-size: 1.05rem; }
  .hero__actions { gap: 0.75rem; margin-top: 1.75rem; }
  .hero__actions .btn { width: 100%; }

  /* --- Patogesni liesti mygtukai --- */
  .btn--sm { min-height: 2.6rem; }
  .qty button { width: 2.75rem; height: 2.9rem; }

  /* --- Prekių tinklelis: dvi kortelės eilėje --- */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
  .product-card__body { padding: 0.8rem; gap: 0.15rem; }
  .product-card__body h3 {
    font-size: 0.98rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card__desc { display: none; }
  .product-card__body .latin { font-size: 0.78rem; }
  .product-card__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding-top: 0.7rem;
  }
  .product-card__price { font-size: 1.35rem; }
  .product-card__foot .badge { align-self: flex-start; }
  .product-card__actions { flex-direction: column; padding: 0 0.8rem 0.8rem; gap: 0.4rem; }
  .product-card__actions .btn { width: 100%; }
  .product-card__number { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
  .zoom-button { display: none; }

  /* --- Krepšelis: eilutės virsta kortelėmis --- */
  .table--cart thead { display: none; }
  .table--cart, .table--cart tbody { display: block; }
  .table--cart tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid hsl(var(--border));
  }
  .table--cart tr:last-child { border-bottom: 0; }
  .table--cart tr:hover { background: none; }
  .table--cart td { display: block; padding: 0; border: 0; }
  .table--cart td[data-cell="product"] { grid-column: 1 / -1; padding-right: 3.25rem; }
  .table--cart td[data-cell="price"] { display: none; }
  .table--cart td[data-cell="qty"] { justify-self: start; }
  .table--cart td[data-cell="total"] { justify-self: end; font-size: 1.15rem; }
  .table--cart td[data-cell="remove"] { position: absolute; top: 0.85rem; right: 0; }
  .only-sm { display: block; }

  /* --- Atsiskaitymas --- */
  .option-extra { padding: 0 0.5rem 1rem 0.5rem; }
  .option { padding: 0.9rem 1rem; }
  .panel__body { padding: 1.1rem; }
  .steps { gap: 0.5rem 0.9rem; font-size: 0.85rem; }

  /* Apatinė juosta su suma ir patvirtinimu */
  .checkout-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: hsl(var(--card) / 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid hsl(var(--border));
    box-shadow: 0 -8px 24px -16px hsl(288 30% 20% / 0.5);
  }
  .checkout-bar__total { display: grid; line-height: 1.2; }
  .checkout-bar__total strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    color: hsl(var(--heath));
  }
  .checkout-bar .btn { flex: 1; max-width: 14rem; padding: 0.8rem 1rem; }
  [data-checkout] .checkout-layout { padding-bottom: 5.5rem; }

  /* --- Kita --- */
  .section { padding-block: 2.5rem; }
  .card { padding: 1.25rem; }
  .cta { padding: 2rem 1.25rem; }
  .cta__actions .btn { width: 100%; }
}

/* --- Nuolaidos kodas atsiskaitymo lange --- */
.discount-box {
  padding: 0.85rem 0;
  border-top: 1px solid hsl(var(--border));
  margin-bottom: 0.25rem;
}
.discount-box__row { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.discount-box__row input { flex: 1; min-width: 0; text-transform: uppercase; }
.discount-box__on { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
/* „Nuimti“ yra <button>, bet turi atrodyti kaip nuoroda */
.discount-box__on button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.summary__row--save { color: hsl(var(--moss)); font-weight: 600; }

.code-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--primary));
  font: 600 0.85rem/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

/* --- Atsiliepimai --- */
.stars { color: #d99a2b; letter-spacing: 0.08em; white-space: nowrap; }

/* Žvaigždučių pasirinkimas: eilė apversta, kad :hover nudažytų ir kairiau esančias */
.rating { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; margin-top: 0.75rem; }
.rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating label {
  font-size: 2rem;
  line-height: 1;
  color: hsl(var(--border));
  cursor: pointer;
  transition: color 0.12s var(--ease), transform 0.12s var(--ease);
}
.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label { color: #d99a2b; }
.rating label:hover { transform: scale(1.12); }
.rating input:focus-visible + label { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; border-radius: 4px; }

/* --- Nuolaida prekei --- */
.sale-flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: hsl(354 70% 46%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px hsl(354 70% 30% / 0.35);
}
.product-card.is-sale { border-color: hsl(354 70% 46% / 0.45); }
.product-card.is-sale:hover { border-color: hsl(354 70% 46%); }
.price--sale { color: hsl(354 70% 42%); }
.price-was { font-size: 0.85rem; color: hsl(var(--muted-foreground)); }
.price-was--lg { font-size: 1rem; }
.price-was s { text-decoration-thickness: 1.5px; }

/* --- Nuotraukų karuselė prekės puslapyje --- */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.86);
  color: hsl(var(--primary));
  cursor: pointer;
  box-shadow: 0 2px 10px hsl(288 40% 10% / 0.18);
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-nav:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; }
.gallery-nav--prev { left: 0.6rem; }
.gallery-nav--next { right: 0.6rem; }

.gallery-count {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: hsl(288 40% 10% / 0.62);
  color: #fff;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  /* Telefone braukiama pirštu, todėl rodyklės mažesnės ir nedengia vaizdo */
  .gallery-nav { width: 2.25rem; height: 2.25rem; }
  .gallery-nav--prev { left: 0.35rem; }
  .gallery-nav--next { right: 0.35rem; }
}
