/* Špajzinka — Greenhouse glass-house style */

:root {
  --ivory: #FAF7F0;
  --forest: #36543D;
  --forest-dark: #26392B;
  --terracotta: #B66B48;
  --beige: #E9DCC5;
  --charcoal: #292B26;
  --saffron: #D9A441;
  --white: #FFFFFF;
  --mist: rgba(54, 84, 61, 0.08);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px -12px rgba(41, 43, 38, 0.25);
  --shadow-soft: 0 4px 16px -6px rgba(41, 43, 38, 0.18);
  --container: 1240px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest-dark);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  left: -9999px;
}

.honeypot-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 2px solid transparent;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  transition: color .25s ease, border-color .25s ease, transform .2s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--forest-dark);
  z-index: -1;
  transition: left .35s cubic-bezier(.65,0,.35,1);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--ivory);
  border-color: var(--terracotta);
}
.btn-primary::before { background: var(--forest-dark); }
.btn-primary:hover::before, .btn-primary:focus-visible::before { left: 0; }
.btn-primary:hover, .btn-primary:focus-visible { border-color: var(--forest-dark); }

.btn-secondary {
  background: transparent;
  color: var(--forest-dark);
  border-color: var(--forest-dark);
}
.btn-secondary::before { background: var(--forest-dark); }
.btn-secondary:hover, .btn-secondary:focus-visible { color: var(--ivory); border-color: var(--forest-dark); }
.btn-secondary:hover::before, .btn-secondary:focus-visible::before { left: 0; }

.btn-light {
  background: var(--ivory);
  color: var(--forest-dark);
  border-color: var(--ivory);
}
.btn-light::before { background: var(--saffron); }
.btn-light:hover::before, .btn-light:focus-visible::before { left: 0; }
.btn-light:hover { color: var(--charcoal); }

.btn-ghost-dark {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(250,247,240,.55);
}
.btn-ghost-dark:hover { border-color: var(--ivory); background: rgba(250,247,240,.12); }

.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Icon sprite ===== */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; vertical-align: middle; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(41,43,38,.08);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--forest-dark);
}
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-word { width: 150px; height: 28px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav a.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: 999px;
  position: relative;
}
.main-nav a.nav-link span { position: relative; }
.main-nav a.nav-link span::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width .25s ease;
}
.main-nav a.nav-link:hover span::after, .main-nav a.nav-link.is-active span::after { width: 100%; }

.nav-item-dropdown { position: relative; }
.nav-item-dropdown > .nav-link .icon { width: 14px; height: 14px; margin-left: 4px; transition: transform .2s ease; }
.nav-item-dropdown:hover > .nav-link .icon,
.nav-item-dropdown:focus-within > .nav-link .icon { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -10px;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  list-style: none;
  z-index: 10;
}
.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--charcoal);
}
.dropdown-panel a:hover { background: var(--beige); color: var(--forest-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.search-form { position: relative; display: flex; align-items: center; }
.search-form input[type="search"] {
  width: 0;
  opacity: 0;
  padding: 10px 12px;
  border: 1px solid rgba(41,43,38,.15);
  border-radius: 999px;
  background: var(--white);
  font-size: .9rem;
  transition: width .3s ease, opacity .3s ease, padding .3s ease;
}
.search-form.is-open input[type="search"] { width: 190px; opacity: 1; padding: 10px 14px; margin-right: 6px; }
.icon-btn {
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  color: var(--forest-dark);
  transition: background .2s ease;
}
.icon-btn:hover { background: var(--mist); }

.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--terracotta);
  color: var(--ivory);
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
}
.cart-count.is-bump { animation: cartBump .4s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.menu-toggle { display: none; }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  height: 100vh;
  background: var(--ivory);
  z-index: 80;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -14px 0 40px -10px rgba(41,43,38,.3);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.65,0,.35,1), visibility .35s;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav-close { margin-left: auto; display: flex; }
.mobile-nav ul { list-style: none; margin-top: 20px; }
.mobile-nav li { border-bottom: 1px solid rgba(41,43,38,.08); }
.mobile-nav a { display: block; padding: 14px 4px; font-weight: 600; font-size: 1.05rem; color: var(--forest-dark); }
.mobile-nav .sub-list { padding-left: 14px; }
.mobile-nav .sub-list a { font-size: .95rem; font-weight: 500; padding: 10px 4px; }
.scrim {
  position: fixed; inset: 0; background: rgba(41,43,38,.45);
  z-index: 70; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 880px) {
  .main-nav, .search-form { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest-dark);
  color: var(--ivory);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,57,43,.78) 0%, rgba(38,57,43,.55) 45%, rgba(38,57,43,.9) 100%);
}
.hero-arch {
  position: absolute;
  bottom: -2px; left: 0; width: 100%;
  z-index: 2;
  color: var(--ivory);
  line-height: 0;
}
.hero-arch svg { width: 100%; height: auto; display: block; }

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 150px 0 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 700;
}
.hero-inner h1 {
  color: var(--ivory);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0;
}
.hero-inner .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(250,247,240,.88);
  max-width: 540px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.ticker-wrap {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(250,247,240,.2);
  background: rgba(38,57,43,.55);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: tickerMove 32s linear infinite;
  will-change: transform;
}
.ticker-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ivory);
  opacity: .85;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.ticker-track span::after { content: "·"; color: var(--saffron); margin-left: 48px; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 86px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--beige); }
.section-dark { background: var(--forest-dark); color: var(--ivory); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head .kicker {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 620px; }
.section-head p { max-width: 520px; color: rgba(41,43,38,.75); margin: 0; }

.divider-svg { width: 100%; display: block; color: var(--terracotta); }
.divider-svg.alt { color: var(--forest); }

/* ===== Reveal animation ===== */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  clip-path: inset(0 0 12% 0);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), clip-path .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
  .ticker-track { animation: none; }
  .cart-count.is-bump { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ===== Category cards ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.4;
  background: var(--beige);
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,16,0) 25%, rgba(10,12,8,.72) 65%, rgba(10,12,8,.96) 100%);
}
.cat-card .cat-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cat-card .cat-label h3 { color: var(--ivory); font-size: 1.15rem; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cat-card .cat-label .icon { color: var(--ivory); width: 22px; height: 22px; transition: transform .3s ease; }
.cat-card:hover .cat-label .icon { transform: translateX(5px); }

@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ===== Product cards / grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.product-card .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--beige); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--forest-dark); color: var(--ivory);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px;
}
.product-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); font-weight: 700; }
.product-card h3 { font-size: 1.05rem; margin: 0; }
.product-card h3 a:hover { text-decoration: underline; }
.product-card .size { font-size: .85rem; color: rgba(41,43,38,.6); }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product-card .price { font-family: var(--font-display); font-size: 1.25rem; color: var(--forest-dark); font-weight: 700; }
.product-card .avail { font-size: .78rem; color: var(--forest); font-weight: 600; }
.product-card .avail.unavail { color: var(--terracotta); }
.product-card .add-row { display: flex; gap: 8px; margin-top: 10px; }
.product-card .add-row .btn { flex: 1; }

/* horizontal scroll-snap strip (mobile only) */
@media (max-width: 760px) {
  .strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .strip > * { scroll-snap-align: start; }
}

/* ===== Timeline / winding route (home composition) ===== */
.route {
  position: relative;
  margin-top: 20px;
}
.route-svg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 48px; height: 100%; color: var(--forest); }
.route-path { stroke: currentColor; stroke-width: 2; fill: none; stroke-dasharray: 6 10; }
.route-steps { display: flex; flex-direction: column; gap: 70px; position: relative; }
.route-step {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  gap: 24px;
}
.route-step .route-dot {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--forest);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  z-index: 2;
}
.route-step .route-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.route-step:nth-child(even) .route-card { grid-column: 3; }
.route-step:nth-child(even) .route-spacer { grid-column: 1; }
.route-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.route-step p { margin: 0; color: rgba(41,43,38,.75); font-size: .95rem; }

@media (max-width: 760px) {
  .route-svg { left: 32px; }
  .route-step { grid-template-columns: 64px 1fr; }
  .route-step .route-dot { grid-column: 1; }
  .route-step .route-card, .route-step:nth-child(even) .route-card { grid-column: 2; }
  .route-step .route-spacer { display: none; }
}

/* ===== Basket builder (signature feature) ===== */
.basket-builder {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) { .basket-builder { grid-template-columns: 1fr; padding: 22px; } }

.builder-list { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding-right: 6px; }
.builder-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(41,43,38,.1);
}
.builder-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.builder-item .info strong { display: block; font-size: .92rem; }
.builder-item .info span { font-size: .78rem; color: rgba(41,43,38,.6); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--forest); background: transparent; color: var(--forest-dark);
  display: flex; align-items: center; justify-content: center;
}
.stepper button:hover { background: var(--mist); }
.stepper .qty { min-width: 22px; text-align: center; font-weight: 700; }
.builder-item .line-price { font-weight: 700; font-family: var(--font-display); min-width: 64px; text-align: right; }

.builder-summary {
  background: var(--beige);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.builder-summary .row { display: flex; justify-content: space-between; font-size: .95rem; }
.builder-summary .row.total { font-size: 1.2rem; font-weight: 700; color: var(--forest-dark); font-family: var(--font-display); border-top: 1px solid rgba(41,43,38,.15); padding-top: 12px; }
.builder-summary .hint { font-size: .82rem; color: rgba(41,43,38,.65); }
.gift-weight-bar { height: 8px; border-radius: 999px; background: rgba(41,43,38,.12); overflow: hidden; }
.gift-weight-bar span { display: block; height: 100%; background: var(--terracotta); transition: width .3s ease; }

/* ===== Content blocks ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; box-shadow: var(--shadow-card); }
.split-media .ornament { position: absolute; bottom: -28px; right: -28px; width: 110px; height: 110px; color: var(--saffron); }
.split-media.flip { order: 2; }
@media (max-width: 860px) { .split-media.flip { order: 0; } }

/* ===== Seasonal / featured strip ===== */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid rgba(41,43,38,.15);
  font-size: .85rem; font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pill.is-active, .pill:hover { background: var(--forest-dark); color: var(--ivory); border-color: var(--forest-dark); }

/* ===== Newsletter ===== */
.newsletter {
  background: var(--forest-dark);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter h2 { color: var(--ivory); font-size: 1.6rem; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type="email"] {
  min-width: 240px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(250,247,240,.35);
  background: rgba(250,247,240,.08);
  color: var(--ivory);
}
.newsletter input::placeholder { color: rgba(250,247,240,.6); }
.form-msg { font-size: .85rem; margin-top: 8px; }
.form-msg.success { color: var(--saffron); }
.form-msg.error { color: #e38b6a; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; transition: transform .25s ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: rgba(41,43,38,.8); }

/* ===== Reviews ===== */
.review-note {
  background: var(--beige);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  color: rgba(41,43,38,.75);
}

/* ===== Footer ===== */
.site-footer { background: var(--charcoal); color: rgba(250,247,240,.82); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,247,240,.12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ivory); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer .logo { color: var(--ivory); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--saffron); }
.footer-note { font-size: .85rem; color: rgba(250,247,240,.6); margin-top: 16px; max-width: 320px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; font-size: .82rem; color: rgba(250,247,240,.55);
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 560px;
  background: var(--forest-dark);
  color: var(--ivory);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  z-index: 90;
  display: none;
  gap: 14px;
  flex-direction: column;
}
.cookie-banner.is-open { display: flex; }
.cookie-banner p { margin: 0; font-size: .9rem; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { font-size: .85rem; color: rgba(41,43,38,.6); padding: 18px 0 0; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; }

/* ===== Page header (for inner pages) ===== */
.page-header { padding: 48px 0 20px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header p { color: rgba(41,43,38,.72); max-width: 640px; }

/* ===== Forms (shared) ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .88rem; font-weight: 600; color: var(--forest-dark); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(41,43,38,.2);
  background: var(--white);
  font-family: inherit;
  font-size: .95rem;
  accent-color: var(--terracotta);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--forest); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.field-error { font-size: .8rem; color: var(--terracotta); min-height: 1em; }
.required-mark { color: var(--terracotta); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; }
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--forest); }

/* ===== Shop filters / layout ===== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } }
.filters-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  align-self: start;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.filters-card h3 { font-size: 1rem; margin-bottom: 10px; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.filter-group input[type="radio"], .filter-group input[type="checkbox"] { accent-color: var(--forest); width: 16px; height: 16px; }
.range-row { display: flex; gap: 10px; align-items: center; }
.range-row input[type="number"] { width: 100%; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(41,43,38,.2); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.shop-toolbar select { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(41,43,38,.2); background: var(--white); }
.empty-state { text-align: center; padding: 60px 20px; color: rgba(41,43,38,.65); }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 28px; } }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-card); background: var(--beige); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; }
.gallery-thumbs button.is-active { border-color: var(--terracotta); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-price { font-family: var(--font-display); font-size: 2rem; color: var(--forest-dark); font-weight: 700; margin: 10px 0; }
.detail-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: rgba(41,43,38,.7); margin-bottom: 18px; }
.qty-selector { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.qty-selector .stepper { border: 1px solid rgba(41,43,38,.2); border-radius: 999px; padding: 4px; }
.detail-tabs { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.detail-tabs h3 { font-size: 1.05rem; }
.related-strip { margin-top: 20px; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(41,43,38,.55); padding: 10px 8px; border-bottom: 1px solid rgba(41,43,38,.12); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid rgba(41,43,38,.08); vertical-align: middle; }
.cart-row-product { display: flex; align-items: center; gap: 14px; }
.cart-row-product img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-remove { color: var(--terracotta); font-size: .82rem; font-weight: 600; background: none; border: none; }
.cart-remove:hover { text-decoration: underline; }
.cart-summary { background: var(--beige); border-radius: var(--radius-md); padding: 26px; margin-top: 10px; max-width: 380px; margin-left: auto; display: flex; flex-direction: column; gap: 10px; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: .95rem; }
.cart-summary .row.total { font-weight: 700; font-size: 1.2rem; color: var(--forest-dark); font-family: var(--font-display); border-top: 1px solid rgba(41,43,38,.2); padding-top: 10px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 10px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.order-summary { background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-soft); align-self: start; position: sticky; top: 100px; }
.order-summary .mini-row { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 8px 0; border-bottom: 1px solid rgba(41,43,38,.08); }
.payment-options { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.payment-option { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(41,43,38,.15); border-radius: var(--radius-sm); cursor: pointer; }
.payment-option input { accent-color: var(--forest); }
.confirmation-box { text-align: center; padding: 60px 20px; }
.confirmation-box .icon { width: 64px; height: 64px; color: var(--forest); margin-bottom: 18px; }

/* ===== Legal pages ===== */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-content ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal-content li { margin-bottom: .4em; }
.legal-content .placeholder { background: var(--beige); padding: 2px 6px; border-radius: 4px; font-size: .92em; }

/* ===== Grain overlay ===== */
.grain-overlay {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  mix-blend-mode: soft-light;
}

/* ===== Misc ===== */
.center-text { text-align: center; }
.mt-lg { margin-top: 48px; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--forest-dark); color: var(--ivory);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
