/* ===== Another Happy Mess — calm, minimal styles ===== */
/* Fallback fonts sized to match Inter / Open Sans, so text doesn't jump when the web fonts arrive */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"); ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%; size-adjust: 107.4%; }
@font-face { font-family: "Open Sans Fallback"; src: local("Arial"), local("Helvetica"); ascent-override: 101.65%; descent-override: 27.86%; line-gap-override: 0%; size-adjust: 105.08%; }

:root {
  --cream: #fcf8f3;
  --paper: #ffffff;
  --blush: #f8e6e4;
  --blush-deep: #f1cfd3;
  --pink: #ff8fcb;
  --green: #029c1c;
  --forest: #1f5130;          /* buttons & headings accent */
  --forest-dark: #173d24;
  --ink: #3a2e2a;
  --ink-soft: #66574f;
  --line: #ece2da;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(58, 46, 42, .18);
  --serif: "Inter", "Inter Fallback", system-ui, sans-serif;
  --sans: "Open Sans", "Open Sans Fallback", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--forest); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 28px; border-radius: 8px; border: 1px solid var(--forest);
  background: var(--forest); color: #fff; font-size: .88rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 6px 16px -8px rgba(31, 81, 48, .6);
}
.btn:hover { background: var(--forest-dark); }
.btn--ghost { background: transparent; color: var(--forest); box-shadow: none; }
.btn--ghost:hover { background: var(--forest); color: #fff; }
.btn--wa { background: #167f43; border-color: #167f43; }
.btn--wa:hover { background: #116936; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; }
@media (max-width: 400px) { .brand span { font-size: 1.15rem; } .brand img { width: 38px; height: 38px; } }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: .9rem; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.bag-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px; color: var(--ink); font-size: .9rem; }
.bag-btn svg { width: 22px; height: 22px; }
.bag-count {
  position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--pink); color: var(--ink); font-size: .68rem; font-weight: 600; display: grid; place-items: center;
}
.bag-count[data-n="0"] { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; }
.menu-btn svg { width: 24px; height: 24px; display: block; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 8px 20px 20px; box-shadow: 0 12px 20px -14px #0003; display: none;
  }
  .nav.open { display: flex; }
  .nav a { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; padding: 10px 0; }
  .nav a::after { display: none; }
}

/* ---------- sections ---------- */
section { padding: clamp(64px, 8vw, 100px) 0; }
.section-blush { background: var(--blush); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: clamp(30px, 5vw, 60px) 0 clamp(60px, 8vw, 90px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.hero p.lead { margin: 22px 0 34px; color: var(--ink-soft); max-width: 40ch; font-size: 1rem; }
.hero-media {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--blush); box-shadow: var(--shadow); display: grid; place-items: center;
}
.hero-media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .ring { width: 70%; height: auto; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- category / product cards ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
@media (max-width: 960px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -16px rgba(58, 46, 42, .28); }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 0; padding: 0; width: 100%; background: var(--blush); cursor: pointer; display: block; }
.card-media img, .card-media .art { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img, .card:hover .card-media .art { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.1rem; }
.card-body p { font-size: .85rem; color: var(--ink-soft); line-height: 1.6; }
.card-body .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--forest); white-space: nowrap; }
.card-tag {
  position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.92);
  font-size: .7rem; font-weight: 500; letter-spacing: .04em; color: var(--ink);
}
.card-tag.sold { background: var(--ink); color: #fff; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { padding: 10px 14px; font-size: .82rem; flex: 1; }
.icon-btn {
  width: 42px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--forest); background: var(--cream); }
.icon-btn svg { width: 18px; height: 18px; }
.card.is-sold .card-media { opacity: .6; }

/* placeholder art (until real photos are added) */
.art { display: grid; place-items: center; }
.art img { width: 34% !important; height: auto !important; opacity: .55; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.features p.intro { color: var(--ink-soft); margin-top: 16px; max-width: 44ch; line-height: 2; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.feature svg { width: 40px; height: 40px; stroke: var(--ink); stroke-width: 1.3; fill: none; }
.feature h3 { font-size: 1.05rem; }
.feature p { font-size: .82rem; color: var(--ink-soft); line-height: 1.6; margin-top: 4px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta p { color: var(--ink-soft); margin: 12px 0 30px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.step .num { font-family: var(--serif); font-size: 2.2rem; color: #b8336f; line-height: 1; display: block; margin-bottom: 12px; }
.step p { color: var(--ink-soft); font-size: .88rem; margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- page head ---------- */
.page-head { padding: clamp(30px, 5vw, 60px) 0 10px; text-align: center; }
.page-head p { color: var(--ink-soft); max-width: 56ch; margin: 16px auto 0; }

/* ---------- shop bar ---------- */
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; color: var(--ink); transition: all .2s; }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.shop-tools { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.select, .input, .textarea {
  font: inherit; font-size: .9rem; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); width: 100%; transition: border-color .2s;
}
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--forest); }
.shop-tools .select { width: auto; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--forest); }
.empty { text-align: center; padding: 50px 0; color: var(--ink-soft); }
.empty img { width: 70px; margin: 0 auto 14px; opacity: .5; }
.empty .btn { margin-top: 16px; }

/* ---------- modal ---------- */
.modal { border: 0; border-radius: 18px; padding: 0; width: min(900px, 100% - 30px); max-height: calc(100vh - 40px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(58, 46, 42, .45); }
.modal[open] { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { background: var(--blush); }
.modal-media img, .modal-media .art { width: 100%; height: 100%; object-fit: cover; min-height: 100%; aspect-ratio: 1; }
.modal-body { padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.modal-body h2 { font-size: 1.9rem; }
.modal-body .price { font-size: 1.6rem; }
.modal-body p { color: var(--ink-soft); }
.field label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); font-weight: 500; }
.opt-group { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-group input { position: absolute; opacity: 0; pointer-events: none; }
.opt-group label { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--ink); margin: 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--paper); transition: all .2s; }
.opt-group label:hover { border-color: var(--forest); }
.opt-group input:checked + label { background: var(--forest); border-color: var(--forest); color: #fff; }
.opt-group input:focus-visible + label { outline: 2px solid var(--pink); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: var(--paper); font-size: 1.1rem; }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 32px; text-align: center; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.3rem; line-height: 1; z-index: 2; color: var(--ink); }
.lead-time { font-size: .85rem; color: var(--forest); }
.modal-ctas { display: grid; gap: 10px; margin-top: 8px; }
@media (max-width: 760px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-media img, .modal-media .art { aspect-ratio: 4/3; }
  .modal-body { padding: 26px 22px; }
}

/* ---------- bag drawer ---------- */
.drawer-back { position: fixed; inset: 0; background: rgba(58,46,42,.4); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-back.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 100; background: var(--cream); transform: translateX(105%); transition: transform .35s ease; display: flex; flex-direction: column; box-shadow: -20px 0 40px -20px rgba(0,0,0,.25); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.4rem; }
.drawer-head .modal-close { position: static; background: var(--paper); }
.drawer-items { flex: 1; overflow: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border-radius: 12px; padding: 10px; }
.bag-item .thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.bag-item .thumb img, .bag-item .thumb .art { width: 100%; height: 100%; object-fit: cover; }
.bag-item h4 { font-size: .95rem; }
.bag-item small { color: var(--ink-soft); display: block; line-height: 1.4; font-size: .78rem; }
.bag-item .rm { background: none; border: 0; font-size: 1.2rem; padding: 6px; color: var(--ink-soft); }
.bag-item .rm:hover { color: #c0392b; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--paper); }
.drawer-foot .total { display: flex; justify-content: space-between; font-weight: 500; }
.drawer-foot small { color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%); z-index: 120; visibility: hidden; background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 8px; font-size: .85rem; transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split p { color: var(--ink-soft); margin-top: 16px; line-height: 1.9; }
.split .media { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--blush); box-shadow: var(--shadow); display: grid; place-items: center; }
.split .media img { width: 66%; height: auto; }
.split .media img.ring { animation: spin 60s linear infinite; }
.split .media { position: relative; }
.split .media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.care-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.care-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-soft); }
.care-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-top: 10px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .media { aspect-ratio: 4/3; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.form-card { background: var(--paper); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.textarea { min-height: 130px; resize: vertical; }
.contact-side { display: grid; gap: 18px; }
.info-card { background: var(--blush); border-radius: var(--radius); padding: 26px; }
.info-card h3 { margin-bottom: 6px; }
.info-card p { color: var(--ink-soft); font-size: .88rem; margin-bottom: 16px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card a.link { color: var(--forest); font-weight: 500; text-decoration: none; }
.faq { max-width: 800px; margin: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.4rem; line-height: 1.2; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 860px) { .contact-grid, .form-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--blush-deep); padding: 50px 0 26px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 30px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; font-size: .9rem; }
.foot-nav a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(58,46,42,.12); font-size: .78rem; color: var(--ink-soft); }
.foot-bottom a { text-decoration: none; }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #167f43; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ---------- layout-shift guards ---------- */
#site-header { min-height: 88px; }            /* header is injected by script */
#shopGrid:empty, #featured:empty { min-height: 420px; }
