/* PencilSoul Studio — static storefront stylesheet */

:root {
  --ink: #141518;
  --ink-soft: #33363b;
  --muted: #6f7378;
  --paper: #f1f1ee;
  --paper-2: #e7e7e2;
  --cream: #fbfaf7;
  --gold: #c2a15f;
  --gold-soft: #dcc59c;
  --line: rgba(20, 21, 24, 0.12);
  --line-strong: rgba(20, 21, 24, 0.24);
  --shadow: 0 24px 60px -32px rgba(20, 21, 24, 0.45);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

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

button { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }

p { margin: 0; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- layout ---------- */

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tight { padding: clamp(44px, 6vw, 76px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .muted, .section--dark p { color: rgba(241, 241, 238, 0.68); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: 38ch; color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.center { text-align: center; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(241, 241, 238, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-name span { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  position: relative;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 0;
  color: var(--ink-soft);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ink); }

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

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0;
}

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; }
.burger span { display: block; width: 16px; height: 1px; background: var(--ink); margin: 4px auto; transition: transform 0.3s var(--ease), opacity 0.3s; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 89;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 26px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; }
body.nav-open .mobile-nav { display: flex; }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s, transform 0.2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--ink); border-color: var(--ink); }
.btn--wa { background: #1d8f4e; border-color: #1d8f4e; color: #fff; }
.btn--wa:hover { background: #16743f; border-color: #16743f; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; }
.link-arrow::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- hero ---------- */

.hero { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { max-width: 46ch; font-size: 1.02rem; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.hero-meta span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; display: block; filter: saturate(0.95); }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold-soft);
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -28px; bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-badge b { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0; text-transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { left: auto; right: 16px; bottom: -18px; }
}

/* ---------- trust strip ---------- */

.trust { border-block: 1px solid var(--line); background: var(--cream); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust div { padding: 22px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.trust div:first-child { border-left: 0; padding-left: 0; }
.trust b { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.trust span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) {
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust div:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- cards ---------- */

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid > * { min-width: 0; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative;
  min-width: 0;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  min-height: 300px;
  overflow: hidden;
}
.card-media img { max-height: 380px; width: auto; max-width: 100%; display: block; box-shadow: 0 18px 38px -24px rgba(20,21,24,.55); transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: translateY(-4px) scale(1.015); }
.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 10px;
  background: var(--paper);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 2;
}
.card-tag--sold { background: var(--ink); color: var(--paper); }
.card-body { padding: 16px 2px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card-body h3 { font-size: 1.12rem; }
.card-body .meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.card-price { font-family: var(--serif); font-size: 1rem; white-space: nowrap; padding-top: 3px; }
.card-price small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* ---------- CSS frame preview ---------- */

.fp { display: inline-block; max-width: 100%; }
.fp-frame {
  --fw: 14px;
  padding: var(--fw);
  background: linear-gradient(135deg, var(--f1, #3b2b20), var(--f2, #6b4c33) 45%, var(--f1, #3b2b20));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 2px rgba(0, 0, 0, 0.25),
    0 22px 44px -28px rgba(20, 21, 24, 0.65);
}
.fp-mat {
  --mat: 18px;
  padding: var(--mat);
  background: var(--mat-color, #fbfaf7);
  box-shadow: inset 0 0 0 1px rgba(20, 21, 24, 0.14);
}
.fp-mat img { display: block; max-width: 100%; height: auto; }

.frame--black-ash { --f1: #17161a; --f2: #3d3b40; }
.frame--natural-oak { --f1: #9c6f42; --f2: #c79a68; }
.frame--walnut { --f1: #3b2b20; --f2: #6b4c33; }
.frame--champagne { --f1: #a9884f; --f2: #e3c997; }
.frame--ivory { --f1: #d8cfbc; --f2: #f0e9db; }
.frame--silver { --f1: #8c8f93; --f2: #d3d6da; }

/* ---------- swatches / options ---------- */

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: border-color 0.2s, background 0.2s;
}
.swatch:hover { border-color: var(--line-strong); }
.swatch[aria-pressed="true"] { border-color: var(--ink); background: var(--cream); color: var(--ink); }
.swatch i { width: 22px; height: 22px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }

.section--dark .swatch { color: var(--paper); border-color: rgba(241, 241, 238, 0.28); }
.section--dark .swatch[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section--dark .option-head span { color: rgba(241, 241, 238, 0.62); }
.section--dark .option-head h4 { color: rgba(241, 241, 238, 0.86); }
.section--dark .eyebrow { color: var(--gold-soft); }

.option-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.pill:hover { border-color: var(--line-strong); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  border-radius: 2px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field .hint { font-size: 0.72rem; color: var(--muted); }

.radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.radio-card:hover { border-color: var(--line-strong); }
.radio-card input { margin-top: 4px; accent-color: var(--ink); }
.radio-card b { display: block; font-size: 0.84rem; font-weight: 500; }
.radio-card span { font-size: 0.76rem; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--ink); background: #fff; }

/* ---------- product detail ---------- */

.product-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }

.stage {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--paper-2);
  padding: clamp(24px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.stage .fp { width: 100%; max-width: 440px; }
.stage .fp-mat img { width: 100%; }

.breadcrumb { display: flex; gap: 8px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span::before { content: "/"; margin-right: 8px; opacity: 0.5; }

.price-line { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.price-line .price { font-family: var(--serif); font-size: 2rem; }
.price-line .was { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; }
.price-line .save { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #1d8f4e; }

.option-group { padding: 20px 0; border-top: 1px solid var(--line); }
.option-group:first-of-type { border-top: 0; }
.option-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.option-head h4 { margin: 0; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.option-head span { font-size: 0.74rem; color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); height: 48px; }
.qty button { width: 44px; height: 100%; background: transparent; border: 0; cursor: pointer; font-size: 1.1rem; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 48px; height: 100%; border: 0; text-align: center; font: inherit; background: transparent; }

.buy-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 180px; }

.accordion { border-top: 1px solid var(--line); margin-top: 30px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1rem; }
.accordion details[open] summary::after { content: "\2212"; }
.accordion .acc-body { padding: 0 0 20px; font-size: 0.9rem; color: var(--ink-soft); }
.accordion .acc-body ul { margin: 0; padding-left: 18px; }

/* ---------- steps / process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 26px 26px 0 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--serif); font-size: 2.1rem; color: var(--gold); }
.step h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.step p { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 26px; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; } }

/* ---------- gallery wall ---------- */

.wall { position: relative; background: var(--paper-2); padding: clamp(18px, 3vw, 36px); }
.wall-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 42px; gap: 10px; }
.wall-item { background: #fff; padding: 8px; box-shadow: 0 16px 30px -22px rgba(0,0,0,.6); }
.wall-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 7; }
.wall-item:nth-child(2) { grid-column: 6 / 10; grid-row: 1 / 5; }
.wall-item:nth-child(3) { grid-column: 10 / 13; grid-row: 2 / 7; }
.wall-item:nth-child(4) { grid-column: 6 / 10; grid-row: 5 / 8; }
.wall-item:nth-child(5) { grid-column: 2 / 6; grid-row: 7 / 10; }
@media (max-width: 700px) {
  .wall-grid { grid-auto-rows: 30px; gap: 6px; }
}

/* ---------- tables ---------- */

.price-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.price-table th, .price-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.price-table td:not(:first-child), .price-table th:not(:first-child) { text-align: right; }
.price-table tbody tr:hover { background: rgba(255,255,255,.5); }
.table-wrap { overflow-x: auto; }

/* ---------- cart ---------- */

.cart-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-layout.is-empty { grid-template-columns: 1fr; }

.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-thumb { width: 96px; height: 112px; background: var(--paper-2); display: grid; place-items: center; padding: 8px; }
.cart-thumb img { max-height: 100%; width: auto; max-width: 100%; box-shadow: 0 8px 18px -12px rgba(0,0,0,.6); }
.cart-item h4 { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; margin: 0 0 4px; }
.cart-item .opts { font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
.cart-item .line-price { font-family: var(--serif); font-size: 1.05rem; text-align: right; }
.cart-actions { text-align: right; }
.cart-actions .qty { margin-top: 10px; height: 38px; }
.cart-item .remove { display: block; margin: 8px 0 0 auto; background: none; border: 0; padding: 0; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: underline; cursor: pointer; }

@media (max-width: 640px) {
  .cart-item { grid-template-columns: 72px 1fr; row-gap: 12px; align-items: start; }
  .cart-thumb { width: 72px; height: 88px; }
  .cart-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }
  .cart-actions .qty { margin-top: 0; }
  .cart-item .remove { margin: 0; }
  .cart-item .line-price { font-size: 1rem; }
}

.summary { background: var(--cream); border: 1px solid var(--line); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { font-size: 1.2rem; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.9rem; }
.sum-row.total { border-top: 1px solid var(--line-strong); margin-top: 10px; padding-top: 16px; font-family: var(--serif); font-size: 1.25rem; }
.sum-row .free { color: #1d8f4e; font-size: 0.78rem; }

.ship-bar { margin: 14px 0 18px; }
.ship-bar .bar { height: 3px; background: var(--paper-2); margin-top: 8px; }
.ship-bar .bar i { display: block; height: 100%; background: var(--gold); transition: width 0.4s var(--ease); }
.ship-bar p { font-size: 0.74rem; color: var(--muted); }

.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-strong); }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(241,241,238,.72); padding: clamp(48px, 6vw, 76px) 0 26px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(241,241,238,.14); }
.site-footer h5 { margin: 0 0 14px; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(241,241,238,.5); font-weight: 500; }
.site-footer a { display: block; padding: 4px 0; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: var(--paper); }
.site-footer .brand-name span { color: rgba(241,241,238,.5); }
.site-footer .about { max-width: 34ch; font-size: 0.9rem; margin-top: 16px; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 24px; font-size: 0.74rem; color: rgba(241,241,238,.45); }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- whatsapp float ---------- */

.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 8px;
  border-radius: 999px;
  background: #1d8f4e;
  color: #fff;
  box-shadow: 0 16px 34px -14px rgba(29,143,78,.8);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.wa-float:hover { transform: translateY(-2px); background: #16743f; }
.wa-float i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.wa-float svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 0 7px; } }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- misc ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 0.74rem; letter-spacing: 0.08em; cursor: pointer; transition: all 0.2s; }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 0; border-block: 1px solid var(--line); margin-bottom: 36px; }
.toolbar .count { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.08em; }
.toolbar select { height: 40px; border: 1px solid var(--line-strong); background: transparent; padding: 0 10px; font: inherit; font-size: 0.8rem; }

.note { display: flex; gap: 14px; padding: 18px 20px; background: var(--cream); border: 1px solid var(--line); font-size: 0.86rem; }
.note b { display: block; margin-bottom: 2px; }

.visual-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .visual-split { grid-template-columns: 1fr; } }
.visual-split img { width: 100%; display: block; }

.cta-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
@media (max-width: 760px) { .cta-split { grid-template-columns: 1fr; } }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.1rem; color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 22px; color: var(--muted); font-size: 0.92rem; max-width: 70ch; }

.sticky-buy { display: none; }
@media (max-width: 900px) {
  .sticky-buy {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(241,241,238,.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }
  .sticky-buy .btn { flex: 1; min-height: 46px; }
  .wa-float { bottom: 84px; }
  body.has-sticky-buy #cart-lines { padding-bottom: 70px; }
}

/* ---------- motion & depth ---------- */

:root { --ease-spring: cubic-bezier(0.16, 1, 0.3, 1); }

/* scroll reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.9s var(--ease-spring) var(--delay, 0ms),
    transform 0.9s var(--ease-spring) var(--delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-reveal].is-in { will-change: auto; }

/* hero entrance */
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes frame-in {
  from { opacity: 0; translate: 0 34px; scale: 0.97; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
.hero-grid > div:first-child > * { animation: rise-in 1.1s var(--ease-spring) both; }
.hero-grid > div:first-child > *:nth-child(1) { animation-delay: 0.05s; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: 0.13s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: 0.21s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: 0.29s; }
.hero-grid > div:first-child > *:nth-child(5) { animation-delay: 0.37s; }
.hero-visual { animation: frame-in 1.3s var(--ease-spring) 0.18s both; }

.hero-badge { animation: rise-in 1s var(--ease-spring) 0.9s both; }

/* 3D tilt */
[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.8s var(--ease-spring);
  transform-style: preserve-3d;
}
[data-tilt].is-tilting { transition-duration: 0.14s; }

.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background: radial-gradient(
    58% 58% at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0) 68%
  );
  mix-blend-mode: soft-light;
  z-index: 3;
}
[data-tilt]:hover .tilt-glare,
[data-tilt].is-tilting .tilt-glare { opacity: 1; }

.card-media[data-tilt] { will-change: transform; }

/* depth inside the frame previews */
.stage .fp,
.section--dark .fp {
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-spring);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.stage .fp.is-tilting,
.section--dark .fp.is-tilting { transition-duration: 0.16s; }
.stage .fp-frame,
.section--dark .fp-frame { transform: translateZ(22px); transform-style: preserve-3d; }
.stage .fp-mat,
.section--dark .fp-mat { transform: translateZ(12px); transform-style: preserve-3d; }
.stage .fp-mat img { transform: translateZ(6px); }

/* header responds to scroll */
.site-header { transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(20, 21, 24, 0.55); }
body:not(.nav-open) .site-header.is-hidden { transform: translateY(-101%); }

/* button sheen */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.34) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(130%); }

/* cart badge pop */
@keyframes badge-pop {
  0% { transform: scale(0.55); }
  55% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.cart-count.bump { animation: badge-pop 0.5s var(--ease-spring); }

/* card media lift on focus for keyboard users */
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* hero parallax layer */
.hero-visual img { will-change: transform; }

@media (hover: none), (max-width: 640px) {
  [data-tilt] { transform: none; }
  .stage .fp, .section--dark .fp { transform: none; }
  .tilt-glare { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-grid > div:first-child > *,
  .hero-visual,
  .hero-badge { animation: none; }
  [data-tilt],
  .stage .fp,
  .section--dark .fp { transform: none !important; }
  .site-header { transition: none; }
  body:not(.nav-open) .site-header.is-hidden { transform: none; }
  .btn::after { display: none; }
  .card:hover .card-media img { transform: none; }
  .cart-count.bump { animation: none; }
}
