/* The Faithful Crumb Bakery Co. — site styles
   Palette and type from the brand kit: Playfair Display, Allura, Lora */

:root {
  --ivory: #FDF7EE;
  --wall: #F2E9DF;
  --cream: #F3E6D9;
  --tan: #D7B899;
  --caramel: #B88C64;
  --brown: #5A3E2B;
  --deep: #58351C;
  --gold: #D4AF7C;
  --ok: #3F6B3A;
  --err: #9A2E2E;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(88, 53, 28, 0.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Allura", "Brush Script MT", cursive;
  --body: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--wall); color: var(--brown); font-family: var(--body); font-size: 1.05rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
a:hover { color: var(--caramel); }
h1, h2, h3 { font-family: var(--serif); color: var(--deep); line-height: 1.15; margin: 0 0 .6rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 99; background: var(--deep); color: var(--ivory); padding: .5rem 1rem; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }
.center { text-align: center; }
.muted { color: var(--caramel); }
.small { font-size: .9rem; }

/* ---------- Header ---------- */
.preview-bar { background: var(--gold); color: var(--deep); text-align: center; font-size: .9rem; padding: .45rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(253, 247, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(184, 140, 100, .25); padding-top: env(safe-area-inset-top, 0px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.wordmark { display: inline-grid; grid-template-columns: auto; justify-items: center; text-decoration: none; color: var(--deep); line-height: 1; position: relative; padding-bottom: .15rem; }
.wm-the { font-family: var(--body); font-size: .62rem; letter-spacing: .45em; text-transform: uppercase; margin-bottom: .1rem; }
.wm-faithful { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .02em; text-transform: uppercase; }
.wm-crumb { font-family: var(--script); font-size: 1.85rem; color: var(--caramel); margin-top: -.55rem; margin-left: 1.6rem; }
.wordmark:hover { color: var(--deep); }
.wordmark.light { color: var(--ivory); }
.wordmark.light .wm-crumb { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { text-decoration: none; padding: .5rem .9rem; border-radius: 999px; letter-spacing: .06em; font-size: .98rem; }
.site-nav a[aria-current="page"], .site-nav a:hover { background: var(--cream); color: var(--deep); }
.cart-link { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--tan); }
.cart-link svg { width: 1.2rem; height: 1.2rem; }
.cart-count { background: var(--deep); color: var(--ivory); border-radius: 999px; font-size: .75rem; min-width: 1.4rem; height: 1.4rem; display: inline-grid; place-items: center; padding: 0 .35rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--deep); margin: 5px 0; border-radius: 2px; transition: transform .2s; }
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--tan); padding: .5rem 1.25rem 1rem; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .5rem; border-radius: 10px; }
  .cart-link { border: 0; }
}

/* ---------- Buttons & bits ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-size: .92rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; background: var(--deep); color: var(--ivory); border: 1px solid var(--deep); border-radius: 999px; padding: .95rem 1.9rem; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--brown); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--caramel); }
.btn-ghost:hover { background: var(--cream); color: var(--deep); }
.btn-sm { padding: .55rem 1.1rem; font-size: .78rem; letter-spacing: .16em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--deep); text-decoration: underline; cursor: pointer; }
.heart-rule { display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--deep); line-height: 1; margin: 1rem auto 1.5rem; }
.heart-rule::before, .heart-rule::after { content: ""; width: 4.5rem; height: 1px; background: var(--caramel); }
.heart-rule.light { color: var(--cream); }
.heart-rule.light::before, .heart-rule.light::after { background: var(--gold); }
.eyebrow { display: block; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--caramel); margin-bottom: .5rem; }
.script { font-family: var(--script); font-weight: 400; color: var(--caramel); }
.flash { padding: .9rem 1.2rem; border-radius: 12px; margin: 1.25rem 0 0; background: #E6EFDF; color: var(--ok); }
.flash.err { background: #F6E0DD; color: var(--err); }
.card { background: var(--ivory); border: 1px solid rgba(184, 140, 100, .35); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: -.01em; }
.page-head p { max-width: 38rem; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem);
  background: url("/assets/props-left.webp") left bottom / auto 100% no-repeat, url("/assets/props-right.webp") right bottom / auto 100% no-repeat, url("/assets/wall.webp") center / 100% 100% no-repeat, var(--wall); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 55% at 50% 40%, rgba(253, 247, 238, .75), rgba(253, 247, 238, 0)); }
.hero-logo { width: min(460px, 82vw); margin: 0 auto; }
.hero h1 { font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-family: var(--body); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; margin: 1.5rem 0 .5rem; color: var(--deep); }
.hero .lede { font-style: italic; font-size: clamp(1.1rem, 2.8vw, 1.35rem); max-width: 34rem; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
@media (max-width: 860px) {
  .hero { background: url("/assets/wall.webp") center / 100% 100% no-repeat, var(--wall); }
}

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 44rem; margin: 0 auto; text-align: center; }
.values div { display: grid; justify-items: center; gap: .7rem; padding: .25rem .5rem; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.7; }
.values div + div { border-left: 1px solid var(--caramel); }
.values svg { width: 2.6rem; height: 2.6rem; color: var(--deep); }
@media (max-width: 540px) {
  .values div { font-size: .56rem; letter-spacing: .08em; padding: .25rem .2rem; }
  .values svg { width: 2rem; height: 2rem; }
}

/* ---------- Products ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--ivory); border: 1px solid rgba(184, 140, 100, .3); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(88, 53, 28, .12); }
.pc-media { display: block; aspect-ratio: 4 / 3; background: var(--cream); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-placeholder { display: grid; place-items: center; height: 100%; color: var(--tan); background: radial-gradient(circle at 50% 45%, var(--ivory), var(--cream)); }
.pc-placeholder svg { width: 30%; height: auto; }
.pc-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.pc-body h3 a { text-decoration: none; }
.pc-body p { font-size: .95rem; flex: 1; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price { font-family: var(--serif); font-size: 1.2rem; color: var(--deep); }
.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 auto 2.5rem; }
.cat-nav a { text-decoration: none; border: 1px solid var(--tan); border-radius: 999px; padding: .45rem 1.1rem; font-size: .9rem; letter-spacing: .08em; background: var(--ivory); }
.cat-nav a:hover { background: var(--cream); }
.cat-section { margin-bottom: 3.5rem; }
.cat-section > h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); text-align: center; }
.cat-section > p { text-align: center; max-width: 36rem; margin: 0 auto 1.5rem; }
.empty { text-align: center; padding: 3rem 1rem; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: 2rem 0 4rem; }
.product-media { border-radius: var(--radius); overflow: hidden; background: var(--cream); aspect-ratio: 1; position: sticky; top: 6rem; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .pc-placeholder svg { width: 25%; }
.product-info h1 { font-size: clamp(2rem, 5vw, 3rem); }
.product-info .price { font-size: 1.6rem; display: block; margin-bottom: 1rem; }
.crumbs { font-size: .88rem; margin-bottom: 1rem; }
.crumbs a { color: var(--caramel); }
@media (max-width: 820px) { .product-layout { grid-template-columns: 1fr; } .product-media { position: static; aspect-ratio: 4 / 3; } }

fieldset.choices { border: 0; padding: 0; margin: 0 0 1.4rem; }
fieldset.choices legend { font-family: var(--serif); font-size: 1.15rem; color: var(--deep); padding: 0; margin-bottom: .6rem; }
fieldset.choices legend small { font-family: var(--body); font-size: .85rem; color: var(--caramel); margin-left: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border: 1px solid var(--tan); border-radius: 999px; background: var(--ivory); font-size: .95rem; cursor: pointer; transition: all .15s; }
.chip span em { font-style: normal; color: var(--caramel); font-size: .85rem; }
.chip input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--ivory); }
.chip input:checked + span em { color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--caramel); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.buy-row { display: flex; gap: .8rem; align-items: stretch; flex-wrap: wrap; margin-top: 1.25rem; }
.buy-row .btn { flex: 1 1 14rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--tan); border-radius: 999px; background: var(--ivory); overflow: hidden; }
.qty button { background: none; border: 0; width: 2.6rem; height: 100%; min-height: 2.8rem; font-size: 1.3rem; color: var(--deep); cursor: pointer; }
.qty input { width: 2.8rem; text-align: center; border: 0; background: transparent; font: inherit; color: var(--deep); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.live-total { font-family: var(--serif); font-size: 1.3rem; color: var(--deep); margin-top: .5rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: block; font-weight: 500; font-size: .95rem; color: var(--deep); }
label.field small { font-weight: 400; color: var(--caramel); }
.field input, .field select, .field textarea, textarea.field-input {
  display: block; width: 100%; margin-top: .35rem; font: inherit; font-size: 1rem; color: var(--brown); background: #fff; border: 1px solid var(--tan); border-radius: 12px; padding: .8rem 1rem; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--caramel); outline-offset: 1px; border-color: var(--caramel); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; }
.radio-cards label { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--tan); border-radius: 12px; padding: .9rem 1rem; background: #fff; cursor: pointer; }
.radio-cards input { margin-top: .35rem; accent-color: var(--deep); }
.radio-cards label:has(input:checked) { border-color: var(--deep); box-shadow: 0 0 0 1px var(--deep); }
.radio-cards strong { display: block; color: var(--deep); }
.radio-cards span small { color: var(--caramel); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors { background: #F6E0DD; color: var(--err); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.errors p { margin: .2rem 0; }

/* ---------- Cart & checkout ---------- */
.cart-list { display: grid; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: center; background: var(--ivory); border: 1px solid rgba(184, 140, 100, .3); border-radius: var(--radius); padding: .9rem; }
.cart-thumb { width: 5.5rem; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--cream); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .pc-placeholder svg { width: 45%; }
.cart-line h3 { font-size: 1.15rem; margin: 0 0 .15rem; }
.cart-line .opts, .cart-line .note { font-size: .88rem; color: var(--brown); margin: 0; }
.cart-line .note { font-style: italic; }
.cart-line .line-side { text-align: right; display: grid; gap: .5rem; justify-items: end; }
.cart-line form { display: inline; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 4rem 1fr; } .cart-thumb { width: 4rem; } .cart-line .line-side { grid-column: 1 / -1; grid-template-columns: 1fr auto auto; align-items: center; justify-items: start; } }
.totals { display: grid; gap: .45rem; margin: 1rem 0; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--serif); font-size: 1.35rem; color: var(--deep); border-top: 1px solid var(--tan); padding-top: .7rem; margin-top: .3rem; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; padding-bottom: 4rem; }
.two-col aside { position: sticky; top: 6rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col aside { position: static; } }
.summary-item { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; padding: .5rem 0; border-bottom: 1px dashed rgba(184, 140, 100, .4); }
.summary-item small { display: block; color: var(--caramel); }
.secure-note { display: flex; gap: .5rem; align-items: center; justify-content: center; font-size: .85rem; color: var(--caramel); margin-top: .8rem; }
.secure-note svg { width: 1rem; height: 1rem; }

/* ---------- Order status ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.5rem 0 2rem; counter-reset: s; }
.steps li { list-style: none; text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tan); position: relative; padding-top: 2.4rem; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--tan); display: grid; place-items: center; background: var(--ivory); font-family: var(--serif); }
.steps li.done { color: var(--deep); }
.steps li.done::before { background: var(--deep); border-color: var(--deep); color: var(--ivory); content: "✓"; }
.steps { padding: 0; }
.status-pill { display: inline-block; padding: .25rem .9rem; border-radius: 999px; background: var(--cream); color: var(--deep); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Home sections ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.how .card h3 { font-size: 1.35rem; }
.how .num { font-family: var(--script); font-size: 3rem; color: var(--caramel); line-height: 1; display: block; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.band { background: var(--ivory); border-block: 1px solid rgba(184, 140, 100, .25); }
.verse { text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.25rem; }
.verse blockquote { margin: 0 auto; max-width: 40rem; font-family: var(--script); font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--deep); line-height: 1.15; }
.verse cite { display: block; margin-top: 1rem; font-style: normal; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--caramel); }
.occasions { text-align: center; padding: clamp(2rem, 5vw, 3rem); }
.occasions .script { font-size: clamp(2.4rem, 6vw, 3.2rem); display: block; line-height: 1.1; margin-bottom: 1rem; }
.occasions ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--deep); }
.occasions li { padding: .55rem 0; border-bottom: 1px solid rgba(184, 140, 100, .35); }
.feature-art { border-radius: var(--radius); background: url("/assets/props-right.webp") right bottom / auto 100% no-repeat, url("/assets/props-left.webp") left bottom / auto 100% no-repeat, url("/assets/wall.webp") center / 100% 100% no-repeat; aspect-ratio: 5 / 4; box-shadow: var(--shadow); border: 1px solid rgba(184, 140, 100, .3); }
.signup-box { max-width: 36rem; margin: 0 auto; text-align: center; }
.signup-form { display: flex; border: 1px solid var(--caramel); border-radius: 999px; overflow: hidden; background: #fff; margin-top: 1rem; }
.signup-form input[type=email] { flex: 1; min-width: 0; border: 0; padding: .95rem 1.4rem; font: inherit; background: transparent; color: var(--deep); }
.signup-form input:focus { outline: none; }
.signup-form:focus-within { outline: 2px solid var(--caramel); outline-offset: 3px; }
.signup-form button { border-radius: 0; border: 0; }
.form-status { min-height: 1.5em; margin-top: .6rem; font-style: italic; }
.form-status.err { color: var(--err); font-style: normal; }
@media (max-width: 480px) { .signup-form button { padding: .9rem 1rem; letter-spacing: .12em; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--cream); margin-top: 0; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer-grid h2 { font-family: var(--body); font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1rem; }
.footer-grid p { margin: 0 0 .5rem; font-size: .95rem; }
.footer-tag { margin-top: 1rem !important; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem !important; }
.footer-verse { font-style: italic; }
.footer-verse span { display: block; font-style: normal; font-size: .75rem; letter-spacing: .25em; color: var(--gold); margin-top: .2rem; }
.footer-base { text-align: center; padding: 0 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; }
.footer-base .copy { letter-spacing: .1em; text-transform: none; opacity: .75; }
.social { display: flex; gap: .7rem; margin-top: 1rem; }
.social a { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(253, 247, 238, .12); color: var(--ivory); }
.social a:hover { background: var(--caramel); color: var(--ivory); }
.social svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-grid .wordmark { margin: 0 auto; } .social { justify-content: center; } }

/* ---------- Prose ---------- */
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose p { max-width: 42rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =========================================================
   Refresh: photo-first cards, galleries, sticky controls
   ========================================================= */
:root { --radius: 20px; }

/* Grid: two columns on phones, roomy on desktop */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; } }

.product-card { border: 0; background: var(--ivory); box-shadow: 0 1px 0 rgba(184, 140, 100, .25), 0 12px 30px -12px rgba(88, 53, 28, .18); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(184, 140, 100, .25), 0 22px 40px -14px rgba(88, 53, 28, .28); }
.pc-media { position: relative; aspect-ratio: 1; overflow: hidden; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .45s; }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-media .pc-second { opacity: 0; }
.product-card:hover .pc-media.has-second .pc-second { opacity: 1; }
.pc-placeholder { background: radial-gradient(circle at 30% 20%, #fff 0, var(--ivory) 35%, var(--cream) 100%); }
.pc-placeholder svg { width: 26%; opacity: .75; }
.pc-body { padding: 1rem 1.1rem 1.15rem; }
.pc-body h3 { font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.pc-body p { font-size: .9rem; color: var(--brown); opacity: .9; }
.price small { font-family: var(--body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--caramel); }
.product-card.is-sold-out .pc-media img { filter: grayscale(.6) opacity(.7); }
@media (max-width: 600px) {
  .pc-body { padding: .75rem .8rem .9rem; }
  .pc-body p { display: none; }
  .pc-foot { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .pc-foot .btn { width: 100%; }
}

.badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: rgba(253, 247, 238, .92); backdrop-filter: blur(6px); color: var(--deep); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.badge-dark { background: var(--deep); color: var(--ivory); }
.badge-lg { font-size: .8rem; padding: .45rem .9rem; top: 1rem; left: 1rem; }

/* Menu: sticky, swipeable category chips */
.cat-nav { position: sticky; top: calc(4.5rem + env(safe-area-inset-top, 0px)); z-index: 10; background: rgba(242, 233, 223, .92); backdrop-filter: blur(8px); padding: .75rem 0; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-inline: -1.25rem; padding-inline: 1.25rem; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; }
@media (min-width: 800px) { .cat-nav { justify-content: center; } }
.cat-section { scroll-margin-top: 9rem; }

/* Product page gallery */
.product-layout { grid-template-columns: 1.1fr 1fr; }
.gallery { position: sticky; top: 6rem; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--cream); scrollbar-width: none; aspect-ratio: 1; box-shadow: 0 16px 40px -18px rgba(88, 53, 28, .35); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.gallery-slide a { display: block; height: 100%; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide .pc-placeholder { display: grid; place-items: center; height: 100%; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .2rem; }
.gallery-thumbs a { flex: none; width: 4.5rem; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumbs a.on, .gallery-thumbs a:hover { border-color: var(--deep); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery .badge { top: 1rem; left: 1rem; }
@media (max-width: 820px) {
  .product-layout { grid-template-columns: 1fr; padding-top: 1rem; }
  .gallery { position: relative; top: 0; margin-inline: -1.25rem; }
  .gallery-track { border-radius: 0; aspect-ratio: 4 / 3.4; box-shadow: none; }
  .gallery-thumbs { padding-inline: 1.25rem; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(40, 24, 12, .85); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 14px; display: block; }
.lb-close { position: fixed; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--ivory); color: var(--deep); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Phones: keep "Add to cart" in reach */
@media (max-width: 820px) {
  .sticky-buy { position: sticky; bottom: 0; z-index: 15; background: rgba(253, 247, 238, .96); backdrop-filter: blur(8px); margin-inline: -1.25rem; padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(184, 140, 100, .3); flex-wrap: nowrap; }
  .sticky-buy .btn { padding-inline: 1rem; letter-spacing: .12em; }
}

/* Softer, more modern section rhythm */
.section-head h2 { letter-spacing: -.01em; }
.card { border-color: rgba(184, 140, 100, .22); box-shadow: 0 12px 34px -16px rgba(88, 53, 28, .2); }
.btn { box-shadow: 0 8px 18px -10px rgba(88, 53, 28, .6); }
.btn-ghost, .btn-sm { box-shadow: none; }
.btn:active { transform: translateY(1px); }
.site-header { transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(88, 53, 28, .35); }

.check-line { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: var(--deep); cursor: pointer; }
.check-line input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--deep); flex: none; }
.check-line small { display: block; color: var(--caramel); }
