:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --soft: #f4ece3;
  --ink: #2a1f1a;
  --body: #4d3f37;
  --muted: #74645a;       /* 5.3:1 on --bg */
  --line: #eadfd3;
  --brand: #8c2f39;       /* deep maroon */
  --brand-dark: #6d222b;
  --accent: #e0a526;      /* marigold */
  --accent-dark: #c48a12;
  --green: #1f7a4d;
  --wa: #25d366;
  --header: #2b1b17;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(60, 30, 20, 0.08), 0 4px 14px rgba(60, 30, 20, 0.05);
  --shadow-lg: 0 18px 50px rgba(40, 20, 10, 0.25);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.2; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--header);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--header); color: #fff; }
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 16px; min-height: 64px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; flex-shrink: 0; }
.logo-mark { color: var(--accent); font-size: 26px; }
.logo-text { font-family: "Fraunces", serif; font-size: 20px; font-weight: 700; }

.mainnav { display: flex; gap: 4px; }
.mainnav a {
  color: #f3e6da; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
}
.mainnav a:hover { background: #ffffff14; color: #fff; }

.search {
  flex: 1; display: flex; height: 42px; border-radius: 10px; overflow: hidden; max-width: 420px; margin-left: auto;
  background: #fff; transition: box-shadow .15s;
}
.search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 12px; font: inherit; font-size: 16px; outline: none; }
.search button { border: 0; width: 48px; background: var(--accent); color: var(--header); }
.search button:hover { background: var(--accent-dark); }

.cart-btn {
  position: relative; display: flex; align-items: flex-end; gap: 4px; min-height: 44px;
  background: none; border: 0; color: #fff; padding: 4px 6px; flex-shrink: 0;
}
.cart-count {
  position: absolute; top: -2px; left: 14px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--accent); color: var(--header);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.cart-label { font-weight: 600; font-size: 14px; }
.top-link { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; margin-left: auto; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 600; text-decoration: none; text-align: center;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-lg { padding: 14px 26px; font-size: 16px; min-height: 52px; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid #ffffffaa; }
.btn-outline:hover { background: #ffffff1a; }
.btn-primary { background: var(--accent); color: var(--header); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-wa { background: var(--wa); color: #0b3d20; }
.btn-wa:hover { background: #1fb757; }
.btn-soft { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn-soft:hover { background: #ece1d5; }
.btn[disabled], .btn.disabled { background: #d8cfc7; color: #6f6259; cursor: not-allowed; pointer-events: none; }
.btn-block { width: 100%; }
.link-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  background: none; border: 0; padding: 4px 0; color: var(--brand); font-size: 14px; font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--brand) 0%, #5a1d25 100%); color: #fff; }
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 16px 56px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.hero-text { min-width: 0; }
.hero-kicker { text-transform: uppercase; letter-spacing: .15em; font-size: 12px; color: #ffd98a; margin: 0 0 12px; font-weight: 700; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 600px; overflow-wrap: break-word; }
.hero h1 em { font-style: italic; color: #ffd98a; }
.hero-sub { font-size: 18px; opacity: .95; margin: 16px 0 26px; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #f7e6dc; }
.hero-trust li::before { content: "✓"; color: #ffd98a; font-weight: 700; margin-right: 6px; }
/* Three overlapping product photos */
.hero-collage { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-collage img {
  position: absolute; object-fit: cover; border-radius: 14px;
  border: 5px solid #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.hero-collage .c1 { width: 58%; height: 72%; left: 21%; top: 4%; z-index: 2; }
.hero-collage .c2 { width: 42%; height: 56%; left: 0; top: 30%; transform: rotate(-6deg); }
.hero-collage .c3 { width: 44%; height: 50%; right: 0; bottom: 0; transform: rotate(5deg); z-index: 3; }

/* ---------- Shop ---------- */
.shop { max-width: 1200px; margin: 0 auto; padding: 40px 16px 8px; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.sort { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select { font: inherit; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button {
  min-height: 40px; padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); white-space: nowrap;
}
.filters button span { color: var(--muted); font-size: 12px; margin-left: 2px; }
.filters button:hover { border-color: var(--brand); }
.filters button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters button.active span { color: #f3d7d9; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.grid.collapsed > .card:nth-child(n + 9) { display: none; }
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(60, 30, 20, .14); }
/* Every photo gets the same 4:5 frame so the grid lines up */
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; background: #f1ebe4; overflow: hidden; }
.card-img img, .card-img .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title {
  font-family: "Inter", sans-serif; font-size: 15px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-custom { margin: 0; font-size: 13px; color: var(--brand); font-weight: 500; line-height: 1.35; }
.card-cta { margin-top: auto; }
.card .price-row { margin-top: 2px; }
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; background: var(--accent); color: var(--header);
}
.badge.soldout { background: #555; color: #fff; }
.badge.custom { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.from { font-size: 13px; color: var(--muted); }
.price { font-size: 20px; font-weight: 700; }
.ph { background: linear-gradient(135deg, #c9707a, #8c2f39); }

.show-all { text-align: center; margin-top: 24px; }
.show-all .btn { min-width: 240px; }
.empty { text-align: center; color: var(--body); padding: 32px 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty p { margin: 0 0 16px; font-size: 17px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 64px 16px 8px; }
.section[hidden] { display: none; }
.section-head { margin-bottom: 24px; }
.section-head h2, .shop-head h2, .handmade h2, .about-inner h2 { font-size: clamp(26px, 3.4vw, 36px); text-wrap: balance; }
.nowrap { white-space: nowrap; }
.lead { margin: 10px 0 0; font-size: 17px; color: var(--body); max-width: 600px; text-wrap: pretty; }
.eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
}

/* Handmade difference: the photo does the talking */
.handmade { max-width: 1200px; margin: 64px auto 0; padding: 0 16px; }
.handmade-inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--header); color: #fff; border-radius: 16px; overflow: hidden;
}
.handmade img { width: 100%; height: 100%; min-height: 320px; max-height: 460px; object-fit: cover; }
.handmade-text { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.handmade .eyebrow { color: #ffd98a; }
.handmade p:last-child { margin: 14px 0 0; font-size: 18px; color: #eadbd0; max-width: 420px; }

/* Make it yours */
.options { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 24px; }
.options li { padding: 14px 0; border-top: 2px solid var(--brand); }
.options b { display: block; font-family: "Fraunces", serif; font-size: 18px; margin-bottom: 4px; }
.options span { font-size: 14px; color: var(--body); }
.steps-title { font-size: 22px; margin: 40px 0 16px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: "Fraunces", serif; font-weight: 700; font-size: 17px;
}
.steps h4 { margin: 4px 0 4px; font-size: 16px; }
.steps p { margin: 0; color: var(--body); font-size: 15px; }
.custom-cta { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.custom-cta p { margin: 0; font-size: 14px; color: var(--muted); max-width: 380px; }

/* About the maker */
.about-inner {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; align-items: center;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.about-inner:has(#aboutPhotoBox[hidden]) { grid-template-columns: 1fr; }
#aboutPhotoBox[hidden] { display: none; }
.about-inner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 10px; }
.about-inner h2 { margin-bottom: 12px; }
.ig-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 44px; color: var(--brand); font-weight: 600; text-decoration: none; }
.ig-link:hover { text-decoration: underline; }
.ig-link svg { flex-shrink: 0; }
.ig-link[hidden] { display: none; }
#aboutText { margin: 0; font-size: 17px; color: var(--body); white-space: pre-line; max-width: 640px; }

/* Reviews */
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.review img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 12px; font-size: 16px; color: var(--body); }
.review figcaption { font-weight: 600; font-size: 14px; }
.review figcaption span { font-weight: 400; color: var(--muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 10px; border: 1px solid var(--line); padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--brand); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--body); }

/* Call to action */
.cta-band {
  max-width: 1168px; margin: 64px auto; padding: 36px 32px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #5a1d25 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-band p { margin: 8px 0 0; opacity: .92; max-width: 560px; }

/* Footer */
.footer { background: var(--header); color: #d9c9bc; padding: 44px 16px 22px; font-size: 14px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px;
}
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: #f0dcc6; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-tag { margin: 10px 0 0; max-width: 280px; }
.footer-copy { max-width: 1200px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid #ffffff1f; font-size: 13px; color: #b8a79a; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(25, 12, 8, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fade .2s ease;
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.close {
  background: none; border: 0; font-size: 30px; line-height: 1; color: var(--muted);
  width: 44px; height: 44px; border-radius: 50%;
}
.close:hover { background: #f1ebe4; color: var(--ink); }

.modal {
  position: relative; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 900px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
}
.modal > .close { position: sticky; top: 8px; float: right; margin: 8px 8px -52px 0; z-index: 3; background: #ffffffdd; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-gallery { background: #f1ebe4; }
/* Whole product visible: no cropping of hoops, fans or mats */
.modal-img { aspect-ratio: 1; display: grid; place-items: center; }
.modal-img img, .modal-img .ph { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; padding: 10px; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; }
.thumbs button[aria-current] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.modal-cat { margin: 0; font-size: 13px; color: var(--muted); }
.modal-info h2 { font-size: 26px; padding-right: 36px; }
.modal-info .price, .pd-info .price { font-size: 28px; }
.price-note { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.facts { list-style: none; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; background: var(--soft); border-radius: 10px; }
.desc { margin: 0; color: var(--body); }
.custom-note { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.custom-note small { font-weight: 400; color: var(--muted); font-size: 13px; }
.custom-note textarea {
  font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border: 1px solid #d9cabb;
  border-radius: 10px; resize: vertical;
}
.custom-note textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.modal-cta { display: flex; flex-direction: column; gap: 10px; }
.modal-secondary { display: flex; gap: 10px; }
.modal-secondary .btn { flex: 1; }
.next-note { margin: 0; font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.qty button { background: #f7f1ea; border: 0; width: 40px; height: 44px; font-size: 18px; color: var(--ink); }
.qty button:hover { background: #eee3d8; }
.qty span { min-width: 32px; text-align: center; font-weight: 600; }

/* ---------- Cart drawer ---------- */
#cartOverlay { justify-content: flex-end; padding: 0; }
.drawer {
  background: var(--surface); width: 100%; max-width: 420px; height: 100%;
  display: flex; flex-direction: column; animation: slide .25s ease;
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-content { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.cart-items { padding: 8px 18px; flex: 1; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.cart-item .thumb img, .cart-item .thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.cart-item .line-price { font-weight: 700; text-align: right; }
.line-note { margin: 0 0 6px; font-size: 12px; color: var(--muted); word-break: break-word; }
.line-todo { color: #9a4f00; }
.remove { background: none; border: 0; color: var(--brand); font-size: 13px; padding: 6px 0; }
.remove:hover { text-decoration: underline; }

.summary { padding: 16px 18px; border-top: 1px solid var(--line); background: #fcf9f5; }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.summary-row.total { font-size: 18px; font-weight: 700; margin-top: 8px; }
.hint { font-size: 13px; color: var(--green); margin: 4px 0 12px; }
.hint.muted { color: var(--muted); margin-bottom: 4px; }
.cart-empty { text-align: center; padding: 60px 24px; color: var(--muted); }
.cart-empty span { font-size: 56px; display: block; margin-bottom: 8px; }

.checkout { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.checkout label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.checkout input, .checkout textarea, .checkout select {
  font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border: 1px solid #d9cabb; border-radius: 10px; background: #fff;
}
.checkout input:focus, .checkout textarea:focus, .checkout select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.back { background: none; border: 0; color: var(--brand); padding: 6px 0; font-weight: 600; align-self: flex-start; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%);
  background: var(--header); color: #fff; padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-lg); z-index: 60; transition: transform .25s ease, opacity .25s; font-size: 14px;
  opacity: 0; visibility: hidden; max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Product pages (/p/…) ---------- */
.pd { max-width: 1100px; margin: 0 auto; padding: 20px 16px 20px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--brand); text-decoration: none; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-img { display: block; border-radius: 14px; overflow: hidden; background: #f1ebe4; }
.pd-img img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; margin: 0 auto; }
.pd-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-info h1 { font-size: clamp(28px, 4vw, 40px); }
.pd-info .desc { font-size: 17px; }
.pd-cta { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pd-cta-title { margin: 0; font-weight: 700; font-size: 17px; }
.pd-cta-sub { margin: 0 0 4px; color: var(--body); font-size: 15px; }
.pd-steps { margin: 0; padding-left: 20px; color: var(--body); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.pd-steps b { color: var(--ink); }
.more { max-width: 1100px; margin: 0 auto; padding: 40px 16px 56px; }
.more h2 { font-size: 26px; margin-bottom: 16px; }
.more-all { text-align: center; margin: 24px 0 0; }
.sticky-cta { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .mainnav a:nth-child(n + 3) { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .options { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  :root { --header-h: 108px; }
  .topbar-inner { flex-wrap: wrap; gap: 8px 10px; padding: 8px 16px 10px; }
  .mainnav { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .cart-btn { margin-left: auto; }
  .pd-page .topbar-inner { flex-wrap: nowrap; }
  .pd-page { --header-h: 56px; }

  .hero-inner { padding: 28px 16px 32px; grid-template-columns: 1fr; gap: 20px; }
  .hero-collage { display: none; }
  .hero-sub { font-size: 16px; margin: 12px 0 20px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-trust { flex-direction: column; gap: 6px; margin-top: 20px; }

  .shop { padding-top: 28px; }
  .shop-head h2 { font-size: 26px; }
  .sort { font-size: 0; gap: 0; }
  .sort select { font-size: 14px; }
  /* Filters become one swipeable row */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px 6px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px; gap: 5px; }
  .card-title { font-size: 14px; }
  .card-custom { font-size: 12px; }
  .price { font-size: 18px; }
  .card-cta { padding: 9px 10px; font-size: 14px; }

  .section { padding-top: 48px; }
  .handmade { margin-top: 48px; }
  .handmade-inner { grid-template-columns: 1fr; }
  .handmade img { min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
  .handmade-text { padding: 24px 20px 28px; }
  .handmade p:last-child { font-size: 16px; }
  .options { grid-template-columns: 1fr; }
  .options li { padding: 12px 0; border-top: 1px solid var(--line); }
  .options li:first-child { border-top: 2px solid var(--brand); }
  .options b { font-size: 17px; margin-bottom: 2px; }
  .custom-cta .btn { width: 100%; }
  .about-inner { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .cta-band { margin: 48px 16px; padding: 28px 22px; }
  .cta-band .btn { width: 100%; }
  .footer { padding-bottom: 88px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }

  .overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 94vh; max-height: 94dvh; border-radius: 16px 16px 0 0; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-img { aspect-ratio: auto; }
  .modal-img img { height: auto; max-height: 52vh; }
  .modal-info { padding: 18px 16px 20px; }
  .modal-info h2 { font-size: 23px; }
  /* Order button stays in reach while reading the details */
  .modal-cta { position: sticky; bottom: 0; background: var(--surface); margin: 0 -16px; padding: 10px 16px 12px; box-shadow: 0 -6px 14px rgba(40, 20, 10, .08); z-index: 2; }

  .pd { padding-top: 14px; }
  .pd-grid { grid-template-columns: 1fr; gap: 20px; }
  .pd-gallery { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; gap: 10px; scrollbar-width: none; }
  .pd-gallery .pd-img { flex: 0 0 100%; scroll-snap-align: center; }
  .pd-gallery:has(.pd-img + .pd-img) .pd-img { flex-basis: 88%; }
  .pd-img img { max-height: 70vh; }
  .pd-page .wa-float { display: none; }
  .pd-page .footer { padding-bottom: 96px; }
  .sticky-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(40, 20, 10, .12);
  }
  .sticky-cta .price { font-size: 18px; }
  .sticky-cta .from { font-size: 12px; }
  .sticky-cta .btn { flex: 0 1 auto; padding: 11px 16px; font-size: 15px; }
}

@media (max-width: 380px) {
  .logo-text { font-size: 18px; }
  .sticky-cta .price-row { flex-direction: column; gap: 0; }
  .sticky-cta .btn { font-size: 14px; padding: 10px 12px; }
}

/* ---------- Instagram / Facebook ---------- */
.hero-social { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.hero-social:not(:has(a)) { display: none; }
.hero-social > span { font-size: 14px; color: #f7e6dc; margin-right: 2px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px;
  border-radius: 999px; background: #ffffff1a; border: 1px solid #ffffff40; color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.social-btn:hover { background: #ffffff2e; }
.footer-social { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.footer-social:not(:has(a)) { display: none; }
.social-icon { display: inline-flex; align-items: center; gap: 8px; }
.social-icon svg { flex-shrink: 0; }
@media (max-width: 720px) {
  .hero-social { margin-top: 18px; }
  .hero-social > span { flex-basis: 100%; }
}
