:root {
  --paper: #FBF7F2;
  --cream: #F3EADF;
  --cream-deep: #EADCCB;
  --ink: #2B2420;
  --ink-muted: #6E6158;
  --line: #E6DACC;
  --terracotta: #C2563D;
  --terracotta-soft: #F6DDD3;
  --sage: #557763;
  --sage-soft: #DFE9E1;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'DynaPuff', var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; font-variation-settings: 'SOFT' 100, 'opsz' 72; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 247, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-family: var(--font-brand); font-weight: 600; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--ink-muted); margin-left: 2px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: #A84630; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); padding: 10.5px 18.5px; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-sm.btn-line { padding: 6.5px 12.5px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); }
.section-head p { margin-top: 8px; max-width: 52ch; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; white-space: nowrap; }
.link-arrow:hover { color: var(--terracotta); }
@media (max-width: 720px) { .section { padding: 52px 0; } }

/* ---------- Photo + placeholder ---------- */
.photo { position: relative; aspect-ratio: 1; background: var(--cream); border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing { display: grid; place-items: center; background: var(--cream); }
.photo.is-missing::before {
  content: attr(data-initial);
  font-family: var(--font-display); font-size: 64px; font-weight: 600;
  color: var(--cream-deep);
}
.photo.is-missing::after {
  content: 'foto segera';
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: var(--ink-muted);
}

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; } }
.card { display: block; text-decoration: none; }
.card .photo img { transition: transform .4s ease; }
.card:hover .photo img { transform: scale(1.04); }
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.card-name { font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: 0; }
.card:hover .card-name { color: var(--terracotta); }
.card-price { color: var(--ink-muted); font-size: 15px; }
.card-size { color: var(--ink-muted); font-size: 13px; }
.tag-preorder { color: #8A6A1F; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.tag-ready { color: var(--sage); }
.tag-custom { color: var(--terracotta); }
@media (max-width: 640px) { .card-name { font-size: 15px; } }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: var(--ink-muted);
}
.chip:hover { border-color: var(--ink-muted); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .count { opacity: .6; margin-left: 4px; font-size: 13px; }
.empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--ink-muted); }

/* ---------- FAQ / accordion ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--ink-muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--ink-muted); max-width: 64ch; }
.faq ul { margin: 0; padding-left: 18px; }
.faq li + li { margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .brand { color: var(--ink); font-size: 17px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .35);
}
.float-wa svg { width: 26px; height: 26px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--ink-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
/* .anim is set by shop.js only when the visitor has not asked for reduced motion */
@keyframes tc-pop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes tc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tc-in { from { opacity: 0; transform: scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
.anim .rv { opacity: 0; transform: translateY(22px); }
.anim .rv.in { opacity: 1; transform: none; transition: opacity .6s ease var(--rv-d, 0ms), transform .7s cubic-bezier(.25, 1.35, .45, 1) var(--rv-d, 0ms); }
.anim .grid:not(.in) > .card { opacity: 0; }
.anim .grid.in > .card { animation: tc-pop .6s cubic-bezier(.25, 1.35, .45, 1) both; }
.anim .grid.in > .card:nth-child(2) { animation-delay: .07s; }
.anim .grid.in > .card:nth-child(3) { animation-delay: .14s; }
.anim .grid.in > .card:nth-child(4) { animation-delay: .21s; }
.anim .grid.in > .card:nth-child(5) { animation-delay: .28s; }
.anim .grid.in > .card:nth-child(6) { animation-delay: .35s; }
.anim .grid.in > .card:nth-child(7) { animation-delay: .42s; }
.anim .grid.in > .card:nth-child(n+8) { animation-delay: .49s; }
.mosaic .photo { transition: transform .35s cubic-bezier(.25, 1.35, .45, 1); }
.mosaic .photo:hover { transform: rotate(-1.5deg) scale(1.02); }
.mosaic .photo:nth-child(2):hover { transform: rotate(1.5deg) scale(1.03); }
.anim .float-wa { animation: tc-in .6s cubic-bezier(.25, 1.35, .45, 1) .8s both, tc-bob 3.2s ease-in-out 2s infinite; }
.anim .float-wa:hover { animation-play-state: paused; }
