/* Veřejná stránka "Stáčená vína" (sekce 10 dokumentu) - vlastní layout, ne
   sdílený s Katalogem/Burčákem. Hero cedulka zvýrazňuje jedno konkrétní víno
   týdne, nabídka dole je škálovatelná mřížka (počítá se s ~20 sudy najednou). */
.stacene-page {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.2rem clamp(1rem, 3vw, 3rem) 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ---------- Hero: dva samostatné panely vedle sebe (ne jeden banner
   rozpůlený čárou) - text o stáčení zvlášť, konkrétní víno v akci zvlášť. ---------- */
.stacene-hero {
  display: flex;
  gap: 1.4rem;
  min-height: 300px;
}
.stacene-hero-copy {
  position: relative;
  flex: .75;
  background: radial-gradient(ellipse at 30% 30%, var(--wine) 0%, var(--wine-2) 80%);
  color: var(--cream);
  border-radius: 6px;
  border: 1px solid rgba(201,162,75,.5);
  padding: 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
/* Zlaté rohové zdobení - stejný motiv jako u .stacene-hero-featured-item a
   hero banerů jinde na webu (Katalog/Burčák). */
.stacene-hero-copy::before,
.stacene-hero-copy::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(201,162,75,.65);
}
.stacene-hero-copy::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.stacene-hero-copy::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.stacene-hero .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .7rem;
}
.stacene-hero-copy h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  margin: 0 0 .8rem;
  color: var(--cream);
}
.stacene-hero-copy .gold-divider {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
  color: var(--gold);
}
.stacene-hero-copy .gold-divider .line { width: 34px; height: 1px; background: var(--gold); }
.stacene-hero-copy .gold-divider svg { width: 13px; height: 13px; }
.stacene-hero-copy .lede {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 46ch;
  color: rgba(243,234,217,.9);
}

/* Vypíchnuté víno v akci vychází ze stejného stylu jako karty v mřížce dole
   (.stacene-item - světlé pozadí, stejné barvy/fonty/odznak), ale jako
   samostatná hero kompozice - vystředěná, větší ikona/text, vyplní celou
   výšku sekce, ne jen zmenšenina karty z mřížky. Schválně BEZ --promo
   (červená/zlatá) - vedle už červeného .stacene-hero-copy by dva červené
   boxy vedle sebe byly příliš mnoho, tahle zůstává ve světlých barvách.
   Dole v mřížce akční položka červená zůstává beze změny.
   Selektor je schválně SLOŽENÝ (.stacene-item.stacene-hero-featured-item),
   ne jen .stacene-hero-featured-item - element v HTML má obě třídy najednou,
   takže single-class .stacene-hero-featured-item má STEJNOU specificitu jako
   základní .stacene-item, a která z nich vyhraje by pak bylo jen náhodou
   podle pořadí v souboru (přesně tohle už jednou rozbilo kruh u ikony). */
.stacene-item.stacene-hero-featured-item {
  flex: .8;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.4rem;
  padding: 2.6rem 2rem;
  border-color: var(--gold);
  border-width: 2px;
}
.stacene-item.stacene-hero-featured-item:hover { border-color: var(--gold); }

/* Zlaté rohové zdobení - stejný motiv jako v hero baneru Katalogu/Burčáku. */
.stacene-hero-featured-item::before,
.stacene-hero-featured-item::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(201,162,75,.65);
}
.stacene-hero-featured-item::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.stacene-hero-featured-item::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Ikona jako medailonek - červeno-zlatý kroužek místo ploché siluety. */
.stacene-hero-featured-item .stacene-item-art {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--wine) 0%, var(--wine-2) 85%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  overflow: hidden;
}
.stacene-hero-featured-item .stacene-item-art svg {
  width: auto;
  height: 42px;
  flex-shrink: 0;
}

.stacene-hero-featured-item .stacene-item-body {
  width: auto;
  flex: none;
  padding: 0;
}
.stacene-hero-featured-item .stacene-item-tag { font-size: .88rem; }
.stacene-hero-featured-item .stacene-item-body h3 {
  font-size: 2rem;
  margin: 0 0 .8rem;
}
.stacene-hero-featured-item .stacene-item-price {
  font-size: 1.8rem;
  margin-bottom: 0;
}
.stacene-hero-featured-item .stacene-item-sizes { text-align: center; }
.stacene-hero-featured-item .stacene-item-badge { margin-top: .4rem; }
.stacene-hero-featured-item .add-btn {
  display: inline-block;
  text-decoration: none;
  margin-top: .3rem;
}

/* Bez akce zůstane hero jen jako jedna barevná plocha, vycentrovaná. */
.stacene-hero:has(.stacene-hero-copy:only-child) .stacene-hero-copy {
  align-items: center;
  text-align: center;
}

/* ---------- Nabídka ---------- */
.stacene-offer .section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--wine);
  margin: 0 0 1.5rem;
}

.stacene-empty {
  font-family: 'Inter', sans-serif;
  color: var(--ink-soft);
}

#stacene-content.is-loading {
  opacity: .55;
  pointer-events: none;
  transition: opacity .15s ease;
}

/* ---------- Nabídka - stejný vzhled jako okno Stáčená vína na pokladně
   (Pos.css .pos-wine-*): krémové karty se sklenkou v barvě vína vlevo,
   název Playfair, sladkost kurzívou, cena pod zlatou linkou. Karty jsou na
   šířku, tolik sloupců, kolik se vejde. ---------- */
.stacene-wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr));
  gap: 1.2rem;
}
.stacene-wine-card {
  --wine-fill: var(--gold);
  --wine-tint: rgba(201, 162, 75, .14);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem 1rem .8rem;
  background:
    linear-gradient(100deg, var(--wine-tint) 0%, transparent 38%),
    var(--paper);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(74, 15, 24, .12), inset 0 0 0 1px rgba(201, 162, 75, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stacene-wine-card--white { --wine-fill: #e3c766; --wine-tint: rgba(227, 199, 102, .28); }
.stacene-wine-card--rose  { --wine-fill: #e07f96; --wine-tint: rgba(224, 127, 150, .22); }
.stacene-wine-card--red   { --wine-fill: #7a1424; --wine-tint: rgba(122, 20, 36, .16); }
.stacene-wine-card.stacene-item--clickable { cursor: pointer; }
.stacene-wine-card.stacene-item--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(74, 15, 24, .2), inset 0 0 0 1px var(--gold);
}

.stacene-wine-glass { height: 92px; width: auto; overflow: visible; }
.stacene-wine-glass-wine { fill: var(--wine-fill); }
.stacene-wine-glass-line {
  fill: none;
  stroke: #9c7a2e;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stacene-wine-glass-shine {
  fill: none;
  stroke: rgba(255, 255, 255, .8);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.stacene-wine-text { display: flex; flex-direction: column; min-width: 0; }
.stacene-wine-name {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--wine-2);
}
.stacene-wine-sub {
  margin: .1rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink-soft);
}
.stacene-wine-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .45rem;
  padding-top: .4rem;
  border-top: 1px solid rgba(201, 162, 75, .5);
}
.stacene-wine-amount {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.05;
  color: var(--wine);
  font-variant-numeric: lining-nums tabular-nums;
}
.stacene-wine-amount small {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .55em;
  color: var(--ink-soft);
}
.stacene-wine-regular {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--ink-soft);
}
.stacene-wine-promo {
  align-self: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--wine);
  padding: .15em .6em;
  border-radius: 999px;
}
.stacene-wine-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: .45rem;
}
.stacene-wine-note {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.stacene-wine-foot .add-btn {
  display: inline-block;
  text-decoration: none;
  padding: .5rem 1.2rem;
  font-size: .95rem;
  margin-left: auto;
}

@media (max-width: 480px) {
  .stacene-wine-glass { height: 76px; }
  .stacene-wine-name, .stacene-wine-amount { font-size: 1.25rem; }
}

/* Karta "Akce týdne" v hero (.stacene-hero-featured-item) - původní styl. */
.stacene-item {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid rgba(74,15,24,.14);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.stacene-item--clickable { cursor: pointer; }
.stacene-item--clickable:hover {
  border-color: rgba(138,31,40,.4);
  box-shadow: 0 6px 18px rgba(74,15,24,.1);
  transform: translateY(-2px);
}
.stacene-item--promo {
  background: radial-gradient(ellipse at 25% 30%, var(--wine) 0%, var(--wine-2) 82%);
  border-color: var(--gold);
  color: var(--cream);
}
.stacene-item--promo:hover { box-shadow: 0 6px 18px rgba(74,15,24,.28); }

/* O trochu vyšší než Katalog .card-art (190px) - "trochu větší karty". */
.stacene-item-art {
  height: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
}
/* Barevné odlišení placeholder ikony podle typu vína (jen tady, na hlavním
   katalogu ne - tam se místo ikony skoro vždy zobrazuje skutečná fotka).
   Zvlášť pro RŮŽOVÉ komplikovaný odstín (--wine je moc tmavá, --gold zase
   splývá s bílým) - vlastní barva mimo standardní paletu proměnných.
   Deklarováno PŘED ".stacene-item--promo .stacene-item-art" níž - stejná
   specificita (dvě třídy), takže pořadí v souboru rozhoduje, kdo vyhraje;
   akční karta má zůstat vždy zlatá bez ohledu na typ vína.
   BÍLÉ schválně nepoužívá --gold/--gold-deep - splývalo by to s barvou akční
   karty (--promo) a zákazník by si bílé víno mohl splést se slevou. Vlastní
   světlejší slámová barva mimo standardní paletu proměnných. */
.stacene-item--white .stacene-item-art { color: #ddc27a; }
.stacene-item--red .stacene-item-art { color: var(--wine); }
.stacene-item--rose .stacene-item-art { color: #c06a7a; }
.stacene-item--promo .stacene-item-art { color: var(--gold); }
.stacene-item-art svg { width: auto; height: 150px; }

.stacene-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem 1.3rem;
}

.stacene-item-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 .4rem;
}
.stacene-item--promo .stacene-item-tag { color: var(--gold); }

.stacene-item-body h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 .4rem;
  color: var(--ink);
  line-height: 1.25;
}
.stacene-item--promo .stacene-item-body h3 { color: var(--cream); }

.stacene-item-price {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--wine);
  margin-bottom: .3rem;
}
.stacene-item--promo .stacene-item-price { color: var(--cream); }
.stacene-item-unit {
  font-weight: 400;
  font-size: .92rem;
  color: var(--ink-soft);
  margin-left: .15rem;
}
.stacene-item--promo .stacene-item-unit { color: rgba(243,234,217,.7); }

.stacene-price-old {
  text-decoration: line-through;
  opacity: .6;
  margin-right: .4rem;
  font-weight: 400;
  font-size: 1rem;
}

/* Poznámka, že víno jde koupit i v jiné velikosti - tlačítko/odkaz vede
   vždy jen na nejmenší (výchozí) variantu, kde se teprve vybírá 1/2/5 l na
   detailu. */
.stacene-item-sizes {
  font-size: .95rem;
  color: var(--ink-soft);
  margin: 0 0 .6rem;
}
.stacene-item--promo .stacene-item-sizes { color: rgba(243,234,217,.7); }

/* Drží dole (margin-top:auto v rámci sloupcového těla karty, viz
   .stacene-item-body výš), doprava - stejné umístění jako tlačítko v
   Katalog .card-foot (tam vpravo od ceny), tady je jen samotné
   tlačítko/odznak, ale zarovnání zůstává stejné. */
.stacene-item-foot {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}
  .stacene-item-foot .add-btn {
    display: inline-block;
    text-decoration: none;
    padding: .75rem 1.6rem;
    font-size: 1.05rem;
    margin-top: -20PX;
  }

/* Vycentrovaný ve spodní části karty ("Natočíme na prodejně" / "Zatím jen
   na prodejně"). */
.stacene-item-badge {
  display: inline-block;
  align-self: center;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(74,15,24,.06);
  border-radius: 999px;
  padding: .3rem .8rem;
  margin-top: auto;
}
.stacene-item--promo .stacene-item-badge {
  color: var(--cream);
  background: rgba(255,255,255,.16);
}

@media (max-width: 800px) {
  .stacene-hero { flex-direction: column; }
}

/* Štítky jen pro správce (StaceneNabidkaViewModel.IsAdminView) - šarže, které
   zákazník nevidí (nenaražené nebo skryté z e-shopu). */
.stacene-admin-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
}
.stacene-admin-flags span {
  background: var(--ink-soft);
  color: var(--cream);
  border-radius: 999px;
  padding: .15rem .6rem;
  font-weight: 600;
}
.stacene-admin-flags em { color: var(--ink-soft); }

/* Odkazy Detail / Upravit - jen pro správce. */
.stacene-admin-links {
  display: flex;
  gap: .5rem;
  margin: 0 0 .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
}
.stacene-admin-links a {
  position: relative;
  z-index: 1;
  color: var(--wine-2);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .15rem .7rem;
  font-weight: 600;
  text-decoration: none;
}
.stacene-admin-links a:hover { background: var(--wine-2); color: var(--cream); }
