/* Perlice Koralj — Japanese-minimal editorial, ink navy / sand / coral */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  --ink: #1c2430;
  --ink-2: #2c3747;
  --sand: #ede4d3;
  --sand-2: #f7f2e7;
  --paper: #faf7f0;
  --coral: #e2714f;
  --coral-dark: #b84b30;
  --seal: #a8382a;
  --line: rgba(28, 36, 48, 0.14);
  --ff-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --ff-body: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --ff-mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --radius: 2px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; }
li { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* focus rings */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--coral-dark);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ===== grain overlay ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
}

/* ===== icon sprite ===== */
.icon-sprite { display: none; }
.icon {
  width: 1.3em;
  height: 1.3em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.25em;
}

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  flex-shrink: 0;
}
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-word { width: 150px; height: 26px; color: var(--ink); }

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
}
.main-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--coral-dark);
  transition: right 0.25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }

.cart-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-family: var(--ff-mono);
  font-size: 0.82rem;
}
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 0.25em;
  border-radius: 50%;
  background: var(--coral);
  color: var(--paper);
  font-size: 0.78rem;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.bump { transform: scale(1.4); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== mobile nav ===== */
@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--ink);
    color: var(--sand-2);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease;
    z-index: 200;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.5rem; }
  .main-nav a { color: var(--sand-2); font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 150;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}

/* ===== buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.8em;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  left: -100%;
  background: var(--ink);
  z-index: -1;
  transition: left 0.3s ease;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--paper); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary::before { background: var(--coral-dark); }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--paper); }

.btn-coral { border-color: var(--coral-dark); color: var(--coral-dark); }
.btn-coral::before { background: var(--coral-dark); }
.btn-coral:hover { color: var(--paper); }

.btn-ghost-dark {
  border-color: rgba(247,242,231,0.55);
  color: var(--sand-2);
}
.btn-ghost-dark::before { background: var(--sand-2); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { color: var(--ink); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled::before { display: none; }

/* ===== hero ===== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--sand-2);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-beads.jpg") center 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.1) brightness(0.55) sepia(0.3);
  mix-blend-mode: luminosity;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,36,48,0.55), rgba(28,36,48,0.92) 70%);
}
.hero-vertical-tag, .hero-inner { z-index: 1; }

.hero-vertical-tag {
  position: absolute;
  right: clamp(0.75rem, 2vw, 2.5rem);
  top: 6rem;
  writing-mode: vertical-rl;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: rgba(247,242,231,0.55);
  display: none;
}
@media (min-width: 900px) { .hero-vertical-tag { display: block; } }

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  color: var(--sand-2);
  margin-bottom: 0.6em;
}
.hero h1 .wipe {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: wipe-reveal 1.1s cubic-bezier(.65,0,.2,1) forwards;
}
.hero h1 .wipe:nth-child(2) { animation-delay: 0.18s; }
@keyframes wipe-reveal { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .wipe { clip-path: none; animation: none; }
}

.hero p.lede {
  max-width: 34ch;
  color: rgba(247,242,231,0.85);
  font-size: 1.05rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.hero-visual {
  position: relative;
  display: grid;
  justify-content: center;
}
.hero-art { width: 100%; max-width: 420px; height: auto; animation: hero-art-in 1.1s ease 0.35s both; }
@keyframes hero-art-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-art { animation: none; } }

.hero-card {
  position: absolute;
  bottom: -2.4rem;
  left: -1.2rem;
  width: min(220px, 60%);
  background: var(--sand-2);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1.1rem;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,0.45);
  transform: rotate(-3deg);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 1px;
  margin-bottom: 0.6rem;
}
.hero-card .hc-price {
  font-family: var(--ff-mono);
  color: var(--coral-dark);
  font-size: 0.85rem;
}
.hero-card .hc-name { font-size: 0.88rem; font-weight: 600; }

.seal {
  position: absolute;
  top: -1.4rem;
  right: -0.6rem;
  width: 92px;
  height: 92px;
  color: var(--seal);
  transform: rotate(8deg);
}

/* ===== section scaffolding ===== */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-tag {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 0.7rem;
  display: block;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

.divider {
  width: 100%;
  height: 28px;
  color: var(--coral-dark);
  opacity: 0.55;
}

.on-dark { background: var(--ink); color: var(--sand-2); }
.on-dark .section-tag { color: var(--coral); }
.on-sand { background: var(--sand); }

/* ===== reveal ===== */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.js-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.js-hidden.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.js-hidden { opacity: 1; transform: none; transition: none; }
}

/* ===== product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.card-product {
  display: flex;
  flex-direction: column;
  background: var(--sand-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -22px rgba(28,36,48,0.35);
}
.card-product .cp-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-product .cp-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.card-product:hover .cp-media img { transform: scale(1.07); }
.cp-cat {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: var(--paper);
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 0.6em;
  border-radius: 2px;
}
.cp-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.cp-body h3 { font-size: 1.05rem; margin: 0; }
.cp-body p { font-size: 0.88rem; color: var(--ink-2); margin: 0; flex: 1; }
.cp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
.cp-price { font-family: var(--ff-mono); color: var(--coral-dark); font-size: 0.95rem; }
.cp-unit { font-size: 0.75rem; color: var(--ink-2); opacity: 0.8; display: block; }

.scroll-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.scroll-strip .card-product { scroll-snap-align: start; }
@media (min-width: 880px) {
  .scroll-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); grid-auto-flow: row; overflow: visible; }
}

/* ===== Perlometar (signature feature) ===== */
.perlometar {
  position: relative;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 760px) { .perlometar { grid-template-columns: 1fr; } }

.perlometar h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.perlometar .pm-intro { color: var(--ink-2); font-size: 0.95rem; }

.pm-form .field { margin-bottom: 1.1rem; }
.pm-form label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.pm-form input, .pm-form select {
  width: 100%;
  padding: 0.65em 0.8em;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  accent-color: var(--coral-dark);
}
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.pm-result {
  background: var(--ink);
  color: var(--sand-2);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  align-self: start;
}
.pm-result .pm-num {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--coral);
  line-height: 1;
}
.pm-result .pm-label { font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.08em; opacity: 0.75; }
.pm-result .pm-sub { margin-top: 1rem; font-size: 0.92rem; color: rgba(247,242,231,0.85); }
.pm-result .btn { margin-top: 1.2rem; }

/* ===== feature strip / about blurb grid ===== */
.editorial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .editorial-grid { grid-template-columns: 1fr; } }
.editorial-media { position: relative; }
.editorial-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.editorial-ornament {
  position: absolute;
  width: 72px; height: 72px;
  color: var(--coral-dark);
}
.editorial-ornament.tl { top: -1.2rem; left: -1.2rem; }
.editorial-ornament.br { bottom: -1.2rem; right: -1.2rem; transform: rotate(180deg); }

.value-list { display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-item .icon { width: 1.6em; height: 1.6em; color: var(--coral-dark); flex-shrink: 0; margin-top: 0.1em; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.value-item p { font-size: 0.92rem; color: var(--ink-2); }

/* ===== footer ===== */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--sand-2);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 2.5rem;
}
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .logo-word { color: var(--sand-2); width: 160px; height: 28px; }
.footer-brand p { font-size: 0.88rem; color: rgba(247,242,231,0.7); margin-top: 0.8rem; max-width: 26ch; }

.footer-col h3 {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,242,231,0.6);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: var(--coral); }

.footer-newsletter h3 { font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,242,231,0.6); margin-bottom: 1rem; }
.footer-newsletter form { display: flex; gap: 0.5rem; }
.footer-newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.7em 0.9em;
  border: 1px solid rgba(247,242,231,0.3);
  background: transparent;
  color: var(--sand-2);
  border-radius: var(--radius);
}
.footer-newsletter input::placeholder { color: rgba(247,242,231,0.5); }
.footer-newsletter .form-msg { margin-top: 0.6rem; font-size: 0.82rem; }

.footer-bottom {
  max-width: var(--container);
  margin: 2.8rem auto 0;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem) 0;
  border-top: 1px solid rgba(247,242,231,0.15);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(247,242,231,0.65);
}
.footer-bottom a { text-decoration: underline; text-decoration-color: rgba(247,242,231,0.35); }

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ===== forms (general) ===== */
.form-grid { display: grid; gap: 1.1rem; max-width: 42rem; }
.form-grid .field label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  background: var(--sand-2);
  border-radius: var(--radius);
  font: inherit;
  accent-color: var(--coral-dark);
}
.form-grid textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { font-size: 0.9rem; margin-top: 0.5rem; }
.form-msg.ok { color: #3a7a4a; }
.form-msg.err { color: var(--coral-dark); }
.field-error { color: var(--coral-dark); font-size: 0.8rem; margin-top: 0.3rem; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--coral-dark); }

/* ===== page hero (non-home pages) ===== */
.page-hero {
  background: var(--sand);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero .lede { max-width: 38rem; color: var(--ink-2); }
.breadcrumb {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--coral-dark); }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 1rem 0.5rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-info { display: flex; gap: 0.9rem; align-items: center; }
.cart-item-info img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-qty button { width: 32px; height: 32px; border: none; background: none; cursor: pointer; font-size: 1rem; }
.cart-qty input { width: 36px; border: none; text-align: center; font: inherit; background: none; }
.cart-remove { background: none; border: none; cursor: pointer; color: var(--coral-dark); font-size: 0.85rem; text-decoration: underline; }
.cart-summary { background: var(--sand); border-radius: var(--radius); padding: 1.5rem 1.6rem; max-width: 24rem; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 0.6rem; font-size: 0.95rem; }
.cart-summary .row.total { font-weight: 600; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.4rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }

.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
@media (max-width: 880px) { .checkout-layout { grid-template-columns: 1fr; } }
.order-summary { background: var(--sand); border-radius: var(--radius); padding: 1.5rem 1.6rem; position: sticky; top: 100px; }
.order-summary .oi { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.5rem; gap: 0.6rem; }
.order-summary .oi .name { color: var(--ink-2); }

.payment-note {
  display: flex;
  gap: 0.8rem;
  background: var(--sand-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.payment-note .icon { color: var(--coral-dark); flex-shrink: 0; margin-top: 0.1em; }

/* ===== product detail page ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; } }
.pd-media { position: relative; }
.pd-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.pd-cat { font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-dark); }
.pd-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0.3rem 0 0.8rem; }
.pd-price { font-family: var(--ff-mono); font-size: 1.5rem; color: var(--coral-dark); margin-bottom: 1rem; }
.pd-unit { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 1.4rem; }
.pd-qty-row { display: flex; gap: 1rem; align-items: center; margin: 1.4rem 0; }
.pd-specs { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.pd-specs .ps-row { display: flex; justify-content: space-between; max-width: 24rem; }
.pd-specs .ps-row span:first-child { color: var(--ink-2); }
.pd-calc-link { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 1.2rem; font-size: 0.88rem; color: var(--coral-dark); text-decoration: underline; }

/* ===== FAQ ===== */
.faq-list { max-width: 48rem; display: grid; gap: 0.1rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  padding: 1.2rem 0;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; transition: transform 0.25s ease; color: var(--coral-dark); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.2rem; color: var(--ink-2); max-width: 42rem; }

/* ===== legal pages ===== */
.legal-content { max-width: 40rem; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-content p, .legal-content li { color: var(--ink-2); font-size: 0.96rem; }
.legal-content ul { margin: 0.6rem 0 1rem 1.2rem; }
.legal-content li { list-style: disc; margin-bottom: 0.4rem; }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.page-404 .num { font-family: var(--ff-display); font-size: clamp(5rem, 16vw, 10rem); color: var(--coral); line-height: 1; }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--sand-2);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  z-index: 500;
  display: grid;
  gap: 1rem;
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.9rem; color: rgba(247,242,231,0.9); }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ===== continuous subtle motion element ===== */
.thread-float {
  position: absolute;
  width: 40px; height: 40px;
  color: var(--coral);
  opacity: 0.5;
  animation: float-bob 6s ease-in-out infinite;
}
@keyframes float-bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .thread-float { animation: none; } }

/* ===== misc ===== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.badge-list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.badge-list .badge { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--ff-mono); font-size: 0.78rem; border: 1px solid var(--line); border-radius: 20px; padding: 0.4em 0.9em; }
.badge-list .icon { width: 1.1em; height: 1.1em; color: var(--coral-dark); }
