/* Seno z Orlických hor — styles.css
   Směr: upravená verze B (kompaktní nákupní panel), klidnější typografie,
   jednotný kontejner max 1120 px, na desktopu galerie vedle nákupního panelu.
   Barvy: krém / lesní zelená / okr; kontrast cíleně >= 4.5:1.
   Žádné gradienty, žádné externí fonty. */

:root {
  --cream: #F6F2E7;
  --cream-2: #EFEADC;
  --panel: #1D3527;        /* forest */
  --panel-soft: #D9D2BC;
  --ink: #20241D;
  --ink-soft: #565B4E;     /* on cream: ~5.7:1 */
  --ochre: #6E4E14;        /* on cream: ~6.5:1 */
  --ochre-lt: #E7D7B4;
  --ochre-ink: #54390F;    /* on ochre-lt: ~7:1 */
  --line: #D8D0BC;
  --paper: #FBF8EF;
  --radius: 3px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--ochre); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.panel :focus-visible, .stickybar :focus-visible, .drawer :focus-visible { outline-color: var(--ochre-lt); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--panel); color: #FBF7EC; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }

/* --- topbar --- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.logo { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--panel); }
.logo a { color: inherit; text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.harvest { font-size: 12.5px; color: var(--ink-soft); }
.cart-toggle {
  min-height: 44px; min-width: 44px; padding: 8px 12px;
  background: none; border: 1.5px solid var(--panel); border-radius: var(--radius);
  color: var(--panel); font-size: 13.5px; font-weight: 600;
}
.cart-count {
  display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 999px;
  background: var(--panel); color: #FBF7EC; font-size: 12px; text-align: center;
}

/* --- hero: mobile first (buy panel first, gallery below) --- */
.hero { padding: 0 0 8px; }
.hero-wrap { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }

.panel {
  order: -1; /* nákupní panel nad galerií na mobilu */
  background: var(--panel); color: #F3EEDF;
  border-radius: var(--radius); padding: 20px 16px 18px;
}
h1 {
  font-size: clamp(24px, 6vw, 30px); line-height: 1.15; letter-spacing: -.01em;
  font-weight: 700; color: #FBF7EC;
}
.origin-line { font-size: 13.5px; color: var(--panel-soft); margin-top: 6px; }
.product-promise { font-size: 14px; color: #F3EEDF; margin-top: 8px; }
.delivery-summary { color: var(--panel-soft); font-size: 13px; margin-top: 8px; }
.selection-total { color: var(--panel-soft); font-size: 13px; margin-top: 8px; }
.selection-total strong { color: #FBF7EC; }
.dispatch-note { font-size: 13px; color: var(--panel-soft); margin-top: 6px; }

.priceband { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.pricenow { font-size: 30px; font-weight: 700; color: #FBF7EC; }
.price-unit { font-size: 14px; color: var(--panel-soft); }

.variant-set { border: 0; margin-top: 10px; }
.legend { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-soft); margin-bottom: 8px; }
.vcards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vcard {
  position: relative; min-height: 64px; text-align: left;
  background: rgba(251, 247, 236, .06); border: 1.5px solid rgba(243, 238, 223, .35);
  border-radius: var(--radius); color: #F3EEDF; padding: 10px 12px 8px;
}
.vcard .w { display: block; font-size: 16px; font-weight: 600; }
.vcard .p { display: block; font-size: 13px; color: var(--panel-soft); }
.vcard .selected-mark { display: none; font-size: 12px; margin-top: 4px; color: #FBF7EC; font-weight: 600; }
.vcard[aria-pressed="true"] { background: #FBF7EC; color: var(--panel); border-color: #FBF7EC; }
.vcard[aria-pressed="true"] .p { color: var(--ink-soft); }
.vcard[aria-pressed="true"] .selected-mark { display: block; color: var(--panel); }
.vcard .best {
  position: absolute; top: -9px; left: 8px;
  background: var(--ochre-lt); color: var(--ochre-ink);
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 2px;
}
.vcard.has-badge { margin-top: 6px; }

.saving-note { font-size: 13px; color: var(--panel-soft); margin: 12px 0 0; }

.buyrow { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 14px; }
.qty { display: flex; align-items: center; border: 1.5px solid rgba(243, 238, 223, .5); border-radius: var(--radius); }
.qty button { width: 48px; height: 52px; background: none; border: 0; color: #FBF7EC; font-size: 22px; line-height: 1; }
.qty output { min-width: 34px; text-align: center; font-weight: 600; color: #FBF7EC; }

.cta {
  min-height: 52px; width: 100%;
  background: #FBF7EC; color: var(--panel);
  border: 0; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; letter-spacing: .03em; padding: 14px 12px;
}
.cta:hover { background: #fff; }
.cta:disabled { opacity: .45; cursor: not-allowed; }
.cta.ghost { background: none; border: 1.5px solid var(--panel); color: var(--panel); min-height: 44px; width: auto; padding: 10px 16px; font-size: 14px; }

.trustline { margin-top: 12px; font-size: 12.5px; color: var(--panel-soft); }
.status-line { font-size: 13px; color: #FBF7EC; min-height: 18px; margin-top: 6px; }
.noscript-note {
  margin-top: 12px; background: var(--ochre-lt); color: var(--ochre-ink);
  border-radius: var(--radius); padding: 10px 12px; font-size: 13px;
}

/* --- gallery (placeholders clearly labelled) --- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph {
  background: var(--cream-2); border: 1.5px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 14px; min-height: 130px; text-align: center;
}
.ph figcaption { font-size: 12px; color: var(--ink-soft); line-height: 1.45; }
.ph strong { color: var(--panel); font-size: 13px; }
.ph.has-image { padding: 0; overflow: hidden; }
.ph img { display: block; width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.lifestyle-gallery { display: block; }
.editorial-photo { overflow: hidden; border-radius: var(--radius); background: var(--cream-2); }
.editorial-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.editorial-photo figcaption { padding: 8px 12px; font-size: 11px; line-height: 1.5; color: var(--ink-soft); }
.story-layout { display: grid; gap: 24px; align-items: center; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ochre); margin-bottom: 12px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.final-panel { max-width: 720px; margin: 0 auto; }
.final-panel h2 { color: #FBF7EC; }
.final-panel .vcards { margin-top: 20px; }
.final-cta { margin-top: 16px; }

/* --- sections --- */
.sec { padding: 30px 0; }
.sec-alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 20px; font-weight: 700; color: var(--panel); margin-bottom: 14px; }
.lead { font-size: 15px; color: var(--ink); max-width: 62ch; margin-bottom: 10px; }
.illustration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.illustration-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.illustration-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.illustration-card figcaption { padding: 8px 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.todo { color: var(--ochre); font-weight: 600; }
.todo-note { font-size: 14px; color: var(--ochre); }
.todo-list { margin: 10px 0 10px 20px; font-size: 15px; color: var(--ink); }
.todo-list li { margin-bottom: 6px; }

.grid-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.fact-k { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ochre); margin-bottom: 4px; }
.fact p { font-size: 14px; }

.facts-table { font-size: 14.5px; }
.facts-table .r { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts-table dt { flex: 0 0 36%; font-weight: 600; color: var(--panel); }
.facts-table dd { flex: 1; color: var(--ink); }

.faq details { border-bottom: 1px solid var(--line); max-width: 760px; }
.faq summary {
  min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 2px; font-weight: 600; font-size: 15px; color: var(--panel);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--ochre); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 2px 14px; font-size: 14.5px; color: var(--ink); max-width: 66ch; }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 130px; font-size: 13px; color: var(--ink-soft); }
.foot-brand { color: var(--panel); font-weight: 600; margin-bottom: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--ink-soft); min-height: 44px; display: inline-flex; align-items: center; }
.reopen-cookies {
  background: none; border: 0; color: var(--ink-soft); text-decoration: underline;
  min-height: 44px; font-size: 13px; padding: 0;
}
.foot-note { margin-top: 10px; }

/* --- sticky mobile buy bar --- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--panel); padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
}
.stickybar .sinfo { color: var(--panel-soft); font-size: 12px; line-height: 1.3; min-width: 0; }
.stickybar .sinfo strong { display: block; font-size: 15px; color: #FBF7EC; white-space: nowrap; }
.stickybar .cta { flex: 1; min-height: 48px; }

/* --- cart drawer --- */
.overlay { position: fixed; inset: 0; background: rgba(20, 24, 18, .5); z-index: 50; opacity: 0; transition: opacity .2s; }
.overlay.open { opacity: 1; }
.drawer {
  position: fixed; z-index: 60; background: var(--cream);
  display: flex; flex-direction: column;
  left: 0; right: 0; bottom: 0; max-height: 88vh;
  border-radius: 8px 8px 0 0; transform: translateY(102%); transition: transform .22s ease;
}
.drawer.open { transform: translateY(0); }
/* r3 a11y: autorský display:flex přebíjel UA [hidden]{display:none} — zavřený drawer
   byl exponovaný asistivním technologiím i axe (duplicitní landmarky). */
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 17px; margin: 0; }
.drawer-close { width: 48px; height: 48px; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 18px; color: var(--panel); }
.drawer-body { padding: 16px; overflow-y: auto; }
.cart-line { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.cart-line .thumb { width: 56px; height: 56px; flex: 0 0 56px; min-height: 0; }
.cart-line .meta { flex: 1; min-width: 0; font-size: 14px; }
.cart-line .meta strong { display: block; color: var(--panel); font-size: 14.5px; }
.cart-line .meta .variant { font-size: 13px; color: var(--ink-soft); }
.cart-line .lp { font-weight: 700; white-space: nowrap; color: var(--ink); }
.drawer .qty { border-color: var(--line); margin-top: 8px; width: fit-content; }
.drawer .qty button { width: 44px; height: 44px; color: var(--panel); font-size: 18px; }
.drawer .qty output { color: var(--ink); }
.rm { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; min-height: 44px; min-width: 44px; font-size: 13px; padding: 9px 12px 9px 0; margin-top: 2px; text-align: left; }
.drawer-sum { padding: 0 16px 8px; font-size: 14px; }
.drawer-sum .row { display: flex; justify-content: space-between; padding: 3px 0; }
.drawer-sum .row.total { font-size: 17px; font-weight: 700; color: var(--panel); }
.ship-note { font-size: 12.5px; color: var(--ochre-ink); background: var(--ochre-lt); border-radius: var(--radius); padding: 9px 11px; margin-top: 8px; }
.drawer-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.checkout-msg { font-size: 13px; color: var(--ochre-ink); margin-top: 8px; min-height: 16px; }

/* --- cookie banner (compact, equal choices) --- */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--cream); border-top: 2px solid var(--panel);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.cookies .inner { max-width: 680px; margin: 0 auto; }
.cookies p { font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.cookies .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cookies .btns button {
  min-height: 48px; border-radius: var(--radius); font-size: 14.5px; font-weight: 600;
  border: 1.5px solid var(--panel); background: none; color: var(--panel);
}
.ck-settings-toggle { width: 100%; margin-top: 6px; min-height: 44px; background: none; border: 0; color: var(--ink-soft); text-decoration: underline; font-size: 13px; }
.settings-panel { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13.5px; color: var(--ink); }
.settings-panel label { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.settings-panel input { width: 20px; height: 20px; accent-color: var(--panel); }
#ck-save { margin-top: 6px; min-height: 44px; width: 100%; border: 1.5px solid var(--panel); border-radius: var(--radius); background: var(--panel); color: #FBF7EC; font-weight: 600; }
.ck-msg { min-height: 16px; margin-top: 6px; color: var(--ochre-ink); font-size: 13px; }

/* --- thanks --- */
.thanks-status { font-size: 16px; color: var(--ink); margin: 10px 0; }
.order-detail { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.order-detail h2 { font-size: 17px; }
.order-detail table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0; }
.order-detail th, .order-detail td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.order-detail .sum-total { font-weight: 700; font-size: 16px; color: var(--panel); }
.thanks-actions { margin: 12px 0; }
.thanks-actions .cta { width: auto; padding: 10px 18px; }
.thanks-help { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* --- desktop --- */
@media (min-width: 900px) {
  .hero-wrap {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start;
    padding-top: 28px; padding-bottom: 20px;
  }
  .panel { order: 0; padding: 26px 24px 22px; }
  h1 { font-size: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; position: sticky; top: 20px; }
  .lifestyle-gallery { display: block; }
  .hero-photo img { aspect-ratio: 1 / 1; }
  .story-layout { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .ph { min-height: 200px; }
  .grid-facts { grid-template-columns: repeat(4, 1fr); }
  .stickybar { display: none; }
  .site-footer { padding-bottom: 30px; }
  .drawer {
    left: auto; right: 0; top: 0; bottom: 0; width: 400px; max-height: none;
    border-radius: 0; transform: translateX(102%);
  }
  .drawer.open { transform: translateX(0); }
  .sec { padding: 40px 0; }
}

@media (max-width: 899px) {
  .panel { padding: 16px; }
  .saving-note { margin-top: 8px; font-size: 12px; }
  .priceband { margin-top: 8px; }
  .variant-set { margin-top: 6px; }
  .legend { margin-bottom: 4px; }
  .vcard { padding: 8px 10px 6px; }
  .buyrow { margin-top: 8px; }
  .trustline { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
