:root {
  --chocolate: #5c3317;
  --milk-chocolate: #7b4a2c;
  --dark-chocolate: #3e1f0d;
  --beige: #f5f0e6;
  --warm-white: #faf7f2;
  --linen: #e8dcc8;
  --gold-thread: #c8a951;
  --ink: #2b1a0e;
  --muted: #8a7a6b;
  --line: #e0d5c2;
  --radius: 4px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--beige);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: .01em;
}

h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 500; }

.site-header {
  position: sticky; top: 0; z-index: 50; text-align: center;
  background: rgba(250, 247, 242, .96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 18px 20px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-family: var(--serif); font-size: 26px; letter-spacing: .12em;
  color: var(--chocolate); text-decoration: none; text-transform: uppercase;
}
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  text-transform: uppercase; letter-spacing: .14em;
}
.nav a:hover { color: var(--chocolate); }

.header-tagline {
  font-family: "Allison", cursive; color: var(--gold-thread);
  font-size: 30px; line-height: 1; padding-bottom: 10px; letter-spacing: .02em;
}

.cart-btn {
  position: relative; background: none; cursor: pointer;
  border: 1px solid var(--chocolate); color: var(--chocolate);
  padding: 8px 20px; font-family: var(--sans); font-size: 12px;
  text-transform: uppercase; letter-spacing: .14em; border-radius: var(--radius);
}
.cart-btn:hover { background: var(--chocolate); color: var(--beige); }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--gold-thread); color: var(--dark-chocolate);
  min-width: 19px; height: 19px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; padding: 0 4px;
}

.hero {
  text-align: center; padding: 110px 20px 90px;
  background:
    radial-gradient(circle at 12% 20%, rgba(200,169,81,.18), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(200,169,81,.14), transparent 40%),
    linear-gradient(150deg, var(--linen), var(--beige));
}
.hero-kicker {
  font-size: 12px; text-transform: uppercase; letter-spacing: .22em;
  color: var(--muted); margin-bottom: 26px;
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); color: var(--chocolate); line-height: 1.05; }
.hero h1 em { color: var(--gold-thread); }
.hero-sub {
  max-width: 480px; margin: 26px auto 36px; color: var(--muted); font-weight: 300; font-size: 17px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  border-radius: var(--radius); padding: 14px 34px; font-size: 12.5px;
  font-weight: 500; text-transform: uppercase; letter-spacing: .16em;
  transition: all .18s ease;
}
.btn-chocolate { background: var(--chocolate); color: var(--beige); border: 1px solid var(--chocolate); }
.btn-chocolate:hover { background: var(--dark-chocolate); border-color: var(--dark-chocolate); }
.btn-outline { background: transparent; color: var(--chocolate); border: 1px solid var(--chocolate); }
.btn-outline:hover { background: var(--chocolate); color: var(--beige); }
.btn-beige { background: var(--beige); color: var(--chocolate); border: 1px solid var(--beige); }
.btn-beige:hover { background: var(--warm-white); }
.btn-block { width: 100%; text-align: center; }

.marquee-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 17px 0; background: var(--warm-white);
  font-family: var(--serif); font-size: 16px; color: var(--chocolate);
  letter-spacing: .18em; text-transform: uppercase;
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 26s linear infinite; }
.marquee-group { display: flex; align-items: center; white-space: nowrap; }
.marquee-band span, .marquee-band i { display: inline-block; }
.marquee-band i { color: var(--gold-thread); font-style: normal; margin: 0 clamp(10px, 3vw, 24px); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@media (max-width: 720px) {
  .marquee-band { font-size: 12.5px; letter-spacing: .14em; padding: 13px 0; }
}

.shop { max-width: 1160px; margin: 0 auto; padding: 90px 20px; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); color: var(--chocolate); }
.section-head p { color: var(--muted); margin-top: 10px; font-weight: 300; }
.eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .24em;
  color: var(--gold-thread); margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold-thread); }

.product-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-card {
  background: var(--warm-white); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(92,51,23,.10); }

.product-visual {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  font-size: 72px; position: relative;
}
.badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--chocolate); color: var(--beige);
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 12px;
}
.product-info { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-size: 21px; color: var(--ink); }
.product-desc { font-size: 13.5px; color: var(--muted); flex: 1; font-weight: 300; }
.product-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--linen);
}
.price { font-family: var(--serif); font-size: 20px; color: var(--chocolate); }
.add-btn {
  background: none; cursor: pointer;
  border: 1px solid var(--chocolate); color: var(--chocolate);
  padding: 9px 18px; font-family: var(--sans); font-size: 11px;
  text-transform: uppercase; letter-spacing: .14em; border-radius: var(--radius);
}
.add-btn:hover, .add-btn.in-cart { background: var(--chocolate); color: var(--beige); }

.bespoke { background: var(--dark-chocolate); color: var(--beige); }
.bespoke-inner { max-width: 1160px; margin: 0 auto; padding: 100px 20px; }
.bespoke h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; }
.bespoke-sub { max-width: 460px; margin: 20px 0 40px; opacity: .82; font-weight: 300; }
.bespoke-steps {
  list-style: none; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 44px; counter-reset: step;
}
.bespoke-steps li {
  border-left: 1px solid var(--gold-thread); padding-left: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.bespoke-steps strong { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.bespoke-steps span { font-size: 13.5px; opacity: .72; font-weight: 300; }

.story { max-width: 1160px; margin: 0 auto; padding: 90px 20px; }
.story-grid {
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.story-card {
  background: var(--warm-white); border: 1px solid var(--line);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 16px;
}
.story-card blockquote { font-size: 19px; color: var(--chocolate); line-height: 1.45; flex: 1; }
.story-card figcaption {
  font-size: 11px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--gold-thread);
}

.cta-band { background: var(--linen); text-align: center; padding: 80px 20px; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); color: var(--chocolate); }
.cta-band p { font-family: "Allison", cursive; color: var(--muted); font-size: 34px; line-height: 1.1; margin: 12px 0 28px; }

.site-footer { background: var(--dark-chocolate); color: var(--beige); }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 48px 20px;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-inner strong { font-family: var(--serif); font-size: 22px; letter-spacing: .1em; }
.footer-inner p { opacity: .75; font-size: 14px; font-weight: 300; }
.footer-inner small { grid-column: 1 / -1; opacity: .55; }

.cart-drawer {
  position: fixed; top: 0; right: -430px; width: min(410px, 94vw); height: 100dvh;
  background: var(--warm-white); z-index: 100;
  box-shadow: -12px 0 40px rgba(62,31,13,.25);
  transition: right .25s ease; display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 24px; color: var(--chocolate); }
.close-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); }

.checkout-form { display: flex; flex-direction: column; gap: 8px; padding: 14px 22px 0; }
.checkout-form input {
  width: 100%; background: var(--beige); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; font-size: 13px; font-family: var(--sans); outline: none;
}
.checkout-form input:focus { border-color: var(--gold-thread); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 14px; font-weight: 300; }
.cart-line { display: flex; gap: 12px; align-items: center; }
.cart-line-visual {
  width: 56px; height: 70px; border-radius: var(--radius);
  display: grid; place-items: center; font-size: 26px; flex-shrink: 0;
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-family: var(--serif); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line-price { font-size: 12.5px; color: var(--muted); }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--warm-white); cursor: pointer; font-weight: 500; color: var(--chocolate);
}
.remove-btn { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }

.cart-foot { border-top: 1px solid var(--line); padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 17px; }
.cart-total-row strong { font-family: var(--serif); font-size: 22px; color: var(--chocolate); }
.cart-note { text-align: center; color: var(--muted); font-size: 12px; font-weight: 300; }

.overlay {
  position: fixed; inset: 0; background: rgba(43,26,14,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }

@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 70px 16px 60px; }
}

.login-body {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(circle at 80% 15%, rgba(200,169,81,.12), transparent 45%), var(--dark-chocolate);
}
.login-card {
  background: var(--warm-white); border-radius: var(--radius); padding: 44px 38px;
  width: min(390px, 92vw); display: flex; flex-direction: column; gap: 14px;
}
.login-card h1 { font-size: 30px; color: var(--chocolate); }
.login-sub { color: var(--muted); font-size: 14px; font-weight: 300; }
.login-error { background: #f6e8e4; color: #7c2d12; border-radius: var(--radius); padding: 8px 12px; font-size: 13px; }
.login-card input { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); font-size: 16px; }
.login-back { text-align: center; color: var(--muted); font-size: 13px; }

.admin-body { background: var(--beige); }
.admin-main { max-width: 1160px; margin: 0 auto; padding: 28px 20px; display: flex; flex-direction: column; gap: 22px; }
.admin-main .card { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.version { font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.btn-ghost-dark { border: 1px solid var(--line); background: var(--warm-white); color: var(--chocolate); padding: 6px 12px; }
.muted { color: var(--muted); }

.orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.orders-table th, .orders-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.status-pill { background: var(--beige); color: var(--chocolate); border-radius: 999px; padding: 3px 12px; font-size: 12px; }

.new-product { margin-top: 16px; }
.new-product summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--chocolate); letter-spacing: .06em; }
.np-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 14px; align-items: center; }
.np-form input { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); }

.agent-card h2 { display: flex; align-items: center; gap: 8px; }
.ag-status { font-size: 10px; font-weight: 400; letter-spacing: .08em; opacity: .55; text-transform: uppercase; }
.ag-thread {
  max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 6px 2px 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line);
}
.ag-msg { display: flex; }
.ag-me { justify-content: flex-end; }
.ag-bubble {
  max-width: 85%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.45;
}
.ag-bot .ag-bubble { background: rgba(0,0,0,.05); }
.ag-me .ag-bubble { background: var(--chocolate, #10b981); color: #fff; }
.ag-bubble ul { margin: 6px 0 2px 16px; }
.ag-bubble li { margin-bottom: 3px; }
.ag-bubble code { background: rgba(0,0,0,.08); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.ag-confirm { color: inherit; }
.ag-error { color: #b91c1c; }
.ag-typing { opacity: .5; letter-spacing: .3em; }

.ag-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.ag-chips button {
  cursor: pointer; font-family: inherit; font-size: 11.5px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; opacity: .75;
}
.ag-chips button:hover { opacity: 1; border-color: currentColor; }

.ag-input-row { display: flex; gap: 8px; }
.ag-input-row input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13.5px; font-family: inherit; outline: none;
}
.ag-send {
  cursor: pointer; border: none; border-radius: 8px; padding: 10px 18px;
  font-weight: 700; font-size: 13px; color: #fff;
  background: var(--green, var(--chocolate));
}

/* ═══ v2 upgrades — photos, popup, forge dock, engine (Ms. El palette) ═══ */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

.cart-btn.pop { animation: cart-pop .45s cubic-bezier(.22,1,.36,1); }
@keyframes cart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* product visuals with real pictures */
.product-card { cursor: pointer; border-radius: 6px; }
.product-card:hover .product-visual img { transform: scale(1.05); }
.product-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.add-btn:disabled { background: none; border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.product-card.soldout .product-visual img { filter: grayscale(.9); opacity: .55; }
.product-card.soldout .product-name { color: var(--muted); }

/* ── Forge: stats + side-dock layout ─────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--warm-white); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 19px; position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; right: -22px; top: -22px;
  width: 84px; height: 84px; border-radius: 999px; background: var(--beige);
}
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.stat-value { font-family: var(--serif); font-size: 26px; color: var(--chocolate); margin-top: 5px; position: relative; z-index: 1; }
.stat-hint { font-size: 12px; color: var(--muted); position: relative; z-index: 1; }

.forge-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.forge-col-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.forge-col-agent { position: sticky; top: 110px; }
.forge-col-agent .ag-thread { max-height: 400px; }
.admin-main > .card { background: var(--warm-white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.card h2 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card .count { background: var(--beige); border-radius: 999px; padding: 1px 9px; font-size: 11px; }
.np-open-btn { margin-left: auto; text-transform: uppercase; letter-spacing: .1em; }
.btn-small { padding: 7px 14px !important; font-size: 11px !important; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prod-thumb {
  width: 34px; height: 42px; border-radius: 4px; overflow: hidden;
  background: var(--beige); display: inline-grid; place-items: center;
  vertical-align: middle; margin-right: 8px; font-size: 15px;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-actions { white-space: nowrap; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.soldout-pill {
  display: inline-block; margin-left: 7px;
  background: #f6e8e4; color: #7c2d12;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 8px; vertical-align: middle;
}
.stock-btn.is-soldout { border-color: var(--gold-thread); color: var(--dark-chocolate); }

/* ── Modals + FAB ─────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(43,26,14,.5); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(460px, 100%); background: var(--warm-white);
  border-radius: 8px; padding: 28px 26px 24px;
  box-shadow: 0 40px 90px rgba(62,31,13,.4);
  transform: translateY(24px) scale(.97);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
  max-height: 90dvh; overflow-y: auto;
}
.modal-overlay.show .modal-card { transform: translateY(0) scale(1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 24px; color: var(--chocolate); }
.close-btn { font-size: 17px; }
.np-form-modal { display: flex; flex-direction: column; gap: 12px; }
.np-form-modal input:not([type=file]) {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--sans); font-size: 13.5px; outline: none; background: var(--white, #fff);
  transition: border-color .15s ease;
}
.np-form-modal input:focus { border-color: var(--gold-thread); }
.np-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.np-photo-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.np-photo-label input { font-size: 12px; }

.fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 150;
  width: 56px; height: 56px; border-radius: 999px; border: none;
  background: var(--gold-thread); color: var(--dark-chocolate); font-size: 26px;
  cursor: pointer; box-shadow: 0 10px 30px rgba(200,169,81,.45);
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 38px rgba(200,169,81,.55); }
.fab:active { transform: scale(.95); }

/* photo manager */
.pm-card { width: min(520px, 100%); }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pm-item { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; border: 2px solid var(--line); }
.pm-item.is-cover { border-color: var(--gold-thread); }
.pm-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-cover-tag {
  position: absolute; bottom: 5px; left: 5px;
  background: var(--gold-thread); color: var(--dark-chocolate);
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 8px;
}
.pm-star, .pm-del {
  position: absolute; top: 5px; cursor: pointer; border: none;
  width: 22px; height: 22px; border-radius: 999px; font-size: 11px;
  display: grid; place-items: center;
}
.pm-star { left: 5px; background: rgba(255,255,255,.92); }
.pm-del { right: 5px; background: rgba(62,31,13,.65); color: #fff; }
.pm-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }

/* product detail popup (storefront) */
.pd-card { position: relative; padding-top: 22px; }
.pd-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(250,247,242,.9); border-radius: 999px; width: 30px; height: 30px; }
.pd-visual { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; display: grid; place-items: center; font-size: 84px; }
.pd-visual img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 50px; height: 62px; border-radius: 3px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--beige);
  transition: border-color .15s ease, transform .15s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--gold-thread); }
.pd-badge { position: static; display: inline-block; margin-top: 14px; }
.pd-name { font-size: 27px; margin-top: 8px; }
.pd-desc { color: var(--muted); font-size: 14px; font-weight: 300; margin-top: 8px; line-height: 1.6; }
.pd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 14px; }
.pd-price { font-size: 24px; }

/* engine popup */
.engine-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; vertical-align: middle; margin-left: 3px; }
.engine-dot.on { background: var(--gold-thread); box-shadow: 0 0 0 3px rgba(200,169,81,.25); }
.engine-dot.off { background: #cbc0ae; }
.engine-modal-card { width: min(430px, 100%); }
.engine-status { font-family: var(--sans); font-size: 11px; padding: 3px 10px; border-radius: 999px; }
.engine-status.on  { background: var(--beige); color: var(--dark-chocolate); }
.engine-status.off { background: var(--linen); color: var(--muted); }
.engine-form { display: flex; flex-direction: column; gap: 11px; }
.engine-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.engine-form input, .engine-form select {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--sans); font-size: 13px; outline: none; background: #fff;
  transition: border-color .15s ease;
}
.engine-form input:focus, .engine-form select:focus { border-color: var(--gold-thread); }
.engine-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.engine-toggle { flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px !important; color: var(--ink) !important; }
.engine-toggle input { width: 16px; height: 16px; accent-color: var(--gold-thread); }
.engine-actions { display: flex; gap: 8px; justify-content: flex-end; }
.engine-note { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.5; }

.login-logo {
  width: 52px; height: 52px; border-radius: 50%; align-self: center;
  background: var(--dark-chocolate); display: grid; place-items: center; font-size: 22px; margin-bottom: 4px;
}

.ag-send { background: var(--chocolate); }

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero { padding: 60px 16px 50px; }
  .shop, .story { padding: 60px 14px; }
  .bespoke-inner { padding: 64px 16px; }
  .cta-band { padding: 54px 16px; }
  .section-head { margin-bottom: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 13px 12px 15px; }
  .product-name { font-size: 16px; }
  .price { font-size: 16px; }
  .add-btn { padding: 8px 12px; font-size: 10px; letter-spacing: .1em; }
  .cart-drawer { width: 100vw; right: -100vw; }
  .cart-drawer.open { right: 0; }
  .modal-card { padding: 22px 18px; max-height: 92dvh; }
  .pd-name { font-size: 21px; }
  .pd-foot { flex-wrap: wrap; }
  .pd-foot .btn { flex: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-tagline { display: none; }

  .admin-main { padding: 16px 13px 90px; gap: 14px; }
  .admin-main .card { padding: 16px 14px; }
  .header-inner { flex-wrap: wrap; row-gap: 8px; }
  .version { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 20px; }
  .forge-layout { grid-template-columns: 1fr; gap: 14px; }
  .forge-col-agent { position: static; order: -1; }
  .ag-thread { max-height: 300px; }
  .orders-table { min-width: 480px; }
  .fab { right: 18px; bottom: 18px; width: 52px; height: 52px; font-size: 24px; }
  .row-actions { flex-wrap: wrap; }
}

/* ── Logo ─────────────────────────────────────────────── */
.brand-logo { height: 34px; width: auto; display: block; }
.footer-logo { height: 30px; width: auto; display: block; margin-bottom: 8px; }
.login-card .login-logo-img { height: 44px; width: auto; align-self: center; }
.atelier-brand .brand-logo { height: 26px; }
@media (max-width: 720px) { .brand-logo { height: 28px; } }

/* ── Category chips ───────────────────────────────────── */
.cat-chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: -20px 0 40px;
}
.cat-chips button {
  cursor: pointer; font-family: var(--sans);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .12em; padding: 7px 18px;
  transition: all .18s ease;
}
.cat-chips button:hover { border-color: var(--gold-thread); color: var(--chocolate); }
.cat-chips button.active {
  background: var(--dark-chocolate); color: var(--beige); border-color: var(--dark-chocolate);
}

/* ── Logo centred in the nav bar ──────────────────────── */
.site-header .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-header .brand { order: 2; justify-self: center; grid-column: 2; }
.site-header .nav { order: 1; justify-self: start; grid-column: 1; }
.site-header .cart-btn { order: 3; justify-self: end; grid-column: 3; }

.brand-logo { height: 44px !important; }
@media (max-width: 720px) { .brand-logo { height: 34px !important; } }

/* ── Bigger imagery, description lives in the popup only ── */
.product-visual { aspect-ratio: 3 / 4; font-size: 88px; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-info { padding: 16px 18px 18px; gap: 4px; }
.product-name { font-size: 22px; }
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 11px 11px 13px; }
  .product-name { font-size: 15px; }
}

/* ── Footer contact & social ──────────────────────────── */
.footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer-social a, .footer-contact {
  color: var(--beige); text-decoration: none; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; opacity: .85;
}
.footer-social a:hover, .footer-contact:hover { opacity: 1; color: var(--gold-thread); }
.footer-social p { font-family: var(--serif); font-style: italic; font-size: 14px; margin-top: 4px; }

/* ── Footer, arranged ─────────────────────────────────── */
.site-footer { border-top: 1px solid var(--gold-thread); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1.2fr;
  gap: 40px; max-width: 1160px; margin: 0 auto; padding: 60px 20px 40px;
}
.footer-brand .footer-tagline {
  font-family: "Allison", cursive; color: var(--gold-thread);
  font-size: 30px; line-height: 1; margin: 14px 0 8px;
}
.footer-brand .footer-note { font-size: 13px; opacity: .65; max-width: 240px; font-weight: 300; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h4 {
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--gold-thread); margin-bottom: 6px;
}
.footer-col a, .footer-col span {
  color: rgba(250,247,242,.82); text-decoration: none;
  font-family: var(--sans); font-size: 13.5px; font-weight: 300;
}
.footer-col a:hover { color: var(--gold-thread); }
.footer-bottom {
  max-width: 1160px; margin: 0 auto; padding: 18px 20px 26px;
  border-top: 1px solid rgba(250,247,242,.12);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom small { font-size: 12px; opacity: .55; letter-spacing: .06em; }
.footer-bottom a { text-decoration: none; opacity: .45; }
.footer-bottom a:hover { opacity: .9; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand .footer-note { max-width: none; }
}

/* ── Shop All page ────────────────────────────────────── */
.shop-all-page { padding-top: 60px; }
.shop-more-wrap { text-align: center; margin-top: 46px; }
.cat-chips button .count { opacity: .6; }

/* ── Logo + slogan grouped at the centre of the nav ───── */
.site-header .brand {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  text-align: center;
}
.brand-slogan {
  font-family: "Allison", cursive; color: var(--gold-thread);
  font-size: 27px; line-height: .9; letter-spacing: .02em; margin-top: 4px;
}
.brand-slogan { text-transform: none; letter-spacing: .02em; font-weight: 400; }

/* ═══ 02 — Bespoke, upgraded ═══ */
.bespoke {
  position: relative;
  background:
    radial-gradient(circle at 88% 8%, rgba(200,169,81,.14), transparent 40%),
    radial-gradient(circle at 6% 92%, rgba(200,169,81,.08), transparent 38%),
    linear-gradient(160deg, #3e1f0d, #2a1508);
  border-top: 1px solid rgba(200,169,81,.35);
  border-bottom: 1px solid rgba(200,169,81,.35);
}
.bespoke-inner { max-width: 1160px; margin: 0 auto; padding: 100px 20px 70px; }
.bespoke-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 70px; align-items: center;
}
.bespoke h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
.bespoke h2 em { color: var(--gold-thread); font-style: italic; }
.bespoke-sub { max-width: 470px; margin: 22px 0 34px; opacity: .82; font-weight: 300; }
.bespoke-note {
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em;
  color: rgba(245,240,230,.55); margin-top: 16px; text-transform: uppercase;
}

.bespoke-steps {
  list-style: none; counter-reset: step;
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 0;
}
.bespoke-steps li {
  counter-increment: step;
  background: rgba(250,247,242,.045);
  border: 1px solid rgba(200,169,81,.22);
  border-radius: 6px; padding: 20px 22px 18px 74px;
  position: relative; display: flex; flex-direction: column; gap: 5px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.bespoke-steps li:hover {
  border-color: rgba(200,169,81,.65); background: rgba(250,247,242,.07);
  transform: translateX(4px);
}
.bespoke-steps li::before {
  content: "0" counter(step);
  position: absolute; left: 22px; top: 18px;
  font-family: var(--serif); font-size: 26px; color: var(--gold-thread);
}
.bespoke-steps strong { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--beige); }
.bespoke-steps span { font-size: 13.5px; opacity: .68; font-weight: 300; line-height: 1.5; }

.bespoke-assure {
  list-style: none;
  display: flex; align-items: center; justify-content: center; gap: 26px;
  flex-wrap: wrap;
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid rgba(200,169,81,.25);
}
.bespoke-assure li {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: rgba(245,240,230,.85); letter-spacing: .04em;
}
.bespoke-assure li.dot { color: var(--gold-thread); font-style: normal; font-size: 13px; }

@media (max-width: 900px) {
  .bespoke-grid { grid-template-columns: 1fr; gap: 44px; }
  .bespoke-inner { padding: 64px 16px 52px; }
  .bespoke-assure { margin-top: 44px; }
}
.recio-link { color: var(--gold-thread); text-decoration: none; }
.recio-link:hover { text-decoration: underline; }

/* ═══ CTA band, upgraded ═══ */
.cta-band {
  position: relative;
  background:
    radial-gradient(circle at 12% 20%, rgba(200,169,81,.18), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(200,169,81,.14), transparent 40%),
    linear-gradient(150deg, var(--linen), var(--beige));
  border-top: 1px solid rgba(200,169,81,.4);
  text-align: center; padding: 96px 20px; overflow: hidden;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-ornament {
  color: var(--gold-thread); font-size: 13px; letter-spacing: .6em;
  margin-bottom: 22px;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); color: var(--chocolate); line-height: 1.08; }
.cta-slogan {
  font-family: "Allison", cursive; color: var(--milk-chocolate);
  font-size: clamp(38px, 5vw, 52px); line-height: 1.1;
  margin: 14px 0 34px;
}
.cta-band .eyebrow { margin-bottom: 18px; }

/* ═══ Atelier upgrades ═══ */
.admin-main { padding-top: 34px; }
.card {
  border: 1px solid rgba(92,51,23,.14);
  box-shadow: 0 10px 28px rgba(92,51,23,.06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 16px 38px rgba(92,51,23,.1); }

.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-thread), transparent);
}
.stat-ico {
  position: absolute; right: 16px; top: 12px; font-size: 22px; opacity: .8;
}
.stat-card.stat-hot { border-color: rgba(200,169,81,.7); background: #fffaf0; }
.stat-card.stat-hot .stat-value { color: var(--gold-thread); }

.orders-rich tbody tr { cursor: pointer; }
.order-row:hover td { background: rgba(200,169,81,.07); }
.order-row.is-open td { background: rgba(200,169,81,.1); }
.order-row .chev { width: 18px; color: var(--gold-thread); font-size: 12px; }
.order-detail > td {
  background: #fdf9f0; border-left: 3px solid var(--gold-thread);
  cursor: default; padding: 18px 20px;
}
.od-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 26px; align-items: start; }
.od-label {
  font-family: var(--sans); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--milk-chocolate); margin-bottom: 6px;
}
.od-block ul { list-style: none; margin-bottom: 8px; }
.od-block li { font-size: 13.5px; padding: 3px 0; border-bottom: 1px dashed rgba(92,51,23,.15); }
.od-sum { font-size: 12px; opacity: .65; }
.od-actions { align-self: center; }

.status-pill.st-new { background: var(--gold-thread); color: #2a1508; font-weight: 500; }
.status-pill.st-done, .status-pill.st-fulfilled { background: rgba(92,51,23,.12); color: var(--chocolate); }

.cat-pill {
  display: inline-block; font-size: 11px; letter-spacing: .05em;
  background: rgba(200,169,81,.16); color: #8a6d2f;
  border: 1px solid rgba(200,169,81,.35);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}

.np-cat-label, .np-cat-label select {
  font-family: var(--sans); font-size: 13px; color: var(--chocolate);
}
.np-cat-label select {
  width: 100%; margin-top: 4px; padding: 9px 10px;
  border: 1px solid rgba(92,51,23,.25); border-radius: 6px; background: #fff;
}
@media (max-width: 800px) {
  .od-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-ico { display: none; }
}

/* ═══ Pieces actions dropdown ═══ */
.row-actions { position: relative; white-space: nowrap; }
.actions-wrap { position: relative; display: inline-block; }
.actions-toggle { min-width: 96px; text-align: left; }
.actions-wrap.open .actions-toggle { border-color: var(--gold-thread); color: var(--gold-thread); }
.actions-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid rgba(92,51,23,.18);
  border-radius: 8px; box-shadow: 0 14px 34px rgba(92,51,23,.16);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  min-width: 172px;
}
.actions-menu button {
  font-family: var(--sans); font-size: 13px; text-align: left;
  background: none; border: none; border-radius: 6px;
  padding: 9px 12px; cursor: pointer; color: var(--chocolate);
}
.actions-menu button:hover { background: rgba(200,169,81,.14); }
.actions-menu .stock-btn.is-soldout:hover { background: rgba(92,51,23,.08); }

/* dropdown visibility fix + icon trigger */
.actions-menu[hidden] { display: none; }
.actions-toggle {
  min-width: 0; width: 34px; height: 30px; padding: 0;
  text-align: center; font-size: 14px; line-height: 1;
  color: var(--gold-thread); border-color: rgba(200,169,81,.5);
}

/* ── Logo fallback visual ─────────────────────────────── */
.ph-logo { width: 46%; max-width: 150px; height: auto; opacity: .9; }
.cart-line-visual .ph-logo { width: 55%; }
#pdVisual .ph-logo { width: 40%; }
.prod-thumb .ph-logo { width: 26px; }

/* ═══ Collection gallery ═══ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 1160px; margin: 44px auto 0; padding: 0 20px;
}
.gallery-item {
  position: relative; margin: 0; overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 4; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item > img:not(.ph-logo) {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover > img:not(.ph-logo) { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(42,21,8,.72));
  color: var(--beige); font-family: var(--serif); font-style: italic;
  font-size: 18px; letter-spacing: .03em; text-align: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 14px; }
}

.feat-pill { color: var(--gold-thread); font-size: 13px; margin-left: 6px; }

/* ── Multi-line checkboxes ────────────────────────────── */
.cat-checks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
  margin-top: 6px; max-height: 180px; overflow-y: auto;
}
.cat-check {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 13px; color: var(--chocolate);
  padding: 5px 8px; border-radius: 6px; cursor: pointer;
}
.cat-check:hover { background: rgba(200,169,81,.12); }
.cat-check input { accent-color: var(--gold-thread); }

/* ═══ Bag lines, re-arranged ═══ */
.cart-line {
  display: flex; gap: 14px; align-items: stretch;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--warm-white);
}
.cart-line-visual {
  width: 64px; height: 80px; border-radius: 8px;
  display: grid; place-items: center; font-size: 26px; flex-shrink: 0;
}
.cart-line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.cart-line-top { display: flex; align-items: flex-start; gap: 8px; }
.cart-line-name { flex: 1; font-family: var(--serif); font-size: 16px; line-height: 1.25; color: var(--chocolate); }
.remove-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 13px; line-height: 1; padding: 2px 3px; border-radius: 4px;
}
.remove-btn:hover { color: #a33; background: rgba(170,51,51,.08); }
.cart-line-price { font-size: 12.5px; color: var(--muted); font-weight: 300; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.qty-stepper {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.qty-btn {
  width: 28px; height: 26px; border: none; background: transparent;
  cursor: pointer; font-weight: 500; color: var(--chocolate);
}
.qty-btn:hover { background: rgba(200,169,81,.15); }
.qty-num { min-width: 22px; text-align: center; font-size: 14px; font-weight: 500; }
.cart-line-total { font-family: var(--serif); font-size: 17px; color: var(--chocolate); white-space: nowrap; }

/* bag thumbs: compact, always contained */
.cart-line-visual img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
}
.cart-line-visual { width: 48px; height: 58px; }
.cart-line { padding: 9px; gap: 11px; }
.cart-line-name { font-size: 15px; }
.cart-line-total { font-size: 15.5px; }

/* bag: image locked to its frame + mobile response */
.cart-line-visual { overflow: hidden; flex-shrink: 0; }
.cart-line-visual img { max-width: 100%; max-height: 100%; }
@media (max-width: 520px) {
  .cart-drawer { width: 100vw; }
  .cart-head { padding: 16px 16px 12px; }
  .cart-items { padding: 12px 14px; gap: 10px; }
  .cart-foot { padding: 14px 16px; }
  .cart-line { padding: 8px; gap: 9px; align-items: center; }
  .cart-line-visual { width: 40px; height: 50px; border-radius: 6px; }
  .cart-line-name { font-size: 14px; }
  .qty-btn { width: 25px; height: 24px; }
  .checkout-form input { font-size: 13px; }
}

.checkout-form { display: flex; flex-direction: column; gap: 8px; }
.checkout-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 520px) { .checkout-row2 { grid-template-columns: 1fr; } }

/* agent dock removed for now — main column takes full width */
.forge-layout { display: block; }

/* ── Order status actions ─────────────────────────────── */
.od-status-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.order-status-btn {
  font-family: var(--sans); font-size: 12.5px; padding: 7px 12px;
  border: 1px solid rgba(92,51,23,.25); border-radius: 999px;
  background: #fff; color: var(--chocolate); cursor: pointer;
}
.order-status-btn:hover { border-color: var(--gold-thread); background: rgba(200,169,81,.1); }
.order-status-btn.is-current { background: var(--chocolate); color: var(--beige); border-color: var(--chocolate); cursor: default; }
.order-status-btn.danger:hover { border-color: #b0413e; background: rgba(176,65,62,.08); }
.order-status-btn.danger.is-current { background: #b0413e; border-color: #b0413e; color: #fff; }
.status-pill.st-made { background: var(--gold-thread); color: #2a1508; font-weight: 500; }
.status-pill.st-delivered { background: rgba(76,120,72,.18); color: #3c5c38; font-weight: 500; }
.status-pill.st-cancelled { background: rgba(176,65,62,.14); color: #8f322f; text-decoration: line-through; }

/* ── Order popup ──────────────────────────────────────── */
.od-card { width: min(640px, 94vw); max-height: 88vh; overflow-y: auto; }
#odBody .od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 20px; }
#odBody .od-block ul { list-style: none; margin-bottom: 8px; }
#odBody .od-block li { font-size: 13.5px; padding: 4px 0; border-bottom: 1px dashed rgba(92,51,23,.15); }
.od-pay-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fdf9f0; margin-bottom: 14px;
}
.paid-pill {
  display: inline-block; font-size: 11.5px; font-weight: 500;
  background: rgba(76,120,72,.16); color: #3c5c38;
  border-radius: 999px; padding: 3px 10px;
}
.unpaid-pill {
  display: inline-block; font-size: 11.5px;
  background: rgba(176,65,62,.1); color: #8f322f;
  border-radius: 999px; padding: 3px 10px;
}
.od-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.od-delete { color: #b0413e; border-color: rgba(176,65,62,.4); background: none; cursor: pointer; border-radius: 6px; }
.od-delete:hover { background: rgba(176,65,62,.08); }
@media (max-width: 640px) { #odBody .od-grid { grid-template-columns: 1fr; } }

/* ── Shop All cards: Instagram 4:5 frames ─────────────── */
.shop .product-visual { aspect-ratio: 4 / 5; }
.product-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}

/* ── Product popup: Instagram-style layout ────────────── */
.pd-card { width: min(880px, 94vw); padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.pd-close { top: 12px; right: 12px; background: rgba(42,21,8,.55); color: var(--beige); width: 32px; height: 32px; }
.pd-visual {
  aspect-ratio: auto; min-height: 100%; border-radius: 0; font-size: 84px;
}
#pdVisual img, #pdVisual .ph-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pd-visual { position: relative; }
#pdThumbs {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  margin: 0; flex-wrap: nowrap;
}
.pd-thumb {
  width: 44px; height: 54px; border-radius: 6px;
  border: 2px solid rgba(250,247,242,.85);
  box-shadow: 0 3px 10px rgba(42,21,8,.35);
}
.pd-thumb.is-active { border-color: var(--gold-thread); }
.pd-badge { position: absolute; top: 14px; left: 14px; z-index: 2; margin: 0; }
.pd-info-side {
  padding: 34px 30px; display: flex; flex-direction: column;
  justify-content: center; gap: 0; max-height: 78vh; overflow-y: auto;
}
.pd-name { font-size: clamp(24px, 3vw, 32px); margin-top: 10px; line-height: 1.15; }
.pd-desc { font-size: 14.5px; margin-top: 12px; }
.pd-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.pd-price { font-family: var(--serif); font-weight: 500; }
@media (max-width: 760px) {
  .pd-card { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .pd-visual { aspect-ratio: 4 / 5; min-height: 0; }
  .pd-info-side { max-height: none; padding: 22px 20px 26px; }
}
.pd-visual-wrap { position: relative; }

/* popup image: IG 4:5 frame inside split card */
.pd-card { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
.pd-visual { aspect-ratio: 4 / 5; min-height: 0; align-self: center; }
@media (max-width: 760px) { .pd-visual { aspect-ratio: 4 / 5; } }

/* ── Product popup on mobile: full-screen, image on top ─ */
@media (max-width: 760px) {
  .modal-overlay { padding: 0; }
  .modal-card.pd-card {
    display: flex; flex-direction: column;
    width: 100vw; height: 100dvh; max-height: none;
    border-radius: 0; margin: 0;
    overflow-y: auto;
  }
  .pd-visual-wrap { position: relative; flex-shrink: 0; width: 100%; }
  .pd-visual { width: 100%; aspect-ratio: 4 / 5; min-height: 0; align-self: stretch; }
  #pdVisual img, #pdVisual .ph-logo { object-position: center 20%; }
  .pd-thumbs { bottom: 12px; left: 12px; }
  .pd-info-side { flex: 1 0 auto; max-height: none; padding: 24px 18px calc(28px + env(safe-area-inset-bottom)); }
}

/* ── Mobile navigation ────────────────────────────────── */
.nav-burger { display: none; }
@media (max-width: 720px) {
  .nav-burger {
    display: block; background: none; border: none; cursor: pointer;
    font-size: 22px; color: var(--chocolate); padding: 6px 2px;
    justify-self: start; line-height: 1;
  }
}
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 120;
  width: min(78vw, 320px);
  background: var(--linen);
  border-right: 1px solid rgba(200,169,81,.4);
  box-shadow: 18px 0 50px rgba(42,21,8,.22);
  transform: translateX(-102%);
  transition: transform .28s ease;
  padding: 64px 30px 30px;
  display: flex; flex-direction: column; gap: 8px;
}
body.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--serif); font-size: 24px; color: var(--chocolate);
  text-decoration: none; padding: 13px 4px;
  border-bottom: 1px solid rgba(92,51,23,.12);
}
.mobile-nav a:last-child { border-bottom: none; color: var(--gold-thread); font-style: italic; }

/* ── Login show-password ──────────────────────────────── */
.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); opacity: .65; padding: 4px;
}
.pw-toggle:hover { opacity: 1; }
.pw-wrap input { padding-right: 42px; }

/* login: full-width inputs incl. password wrap */
.pw-wrap, .pw-wrap input { width: 100%; box-sizing: border-box; display: block; }
@media (max-width: 520px) {
  .login-card { width: calc(100vw - 32px); }
  .login-card input:not([type="hidden"]),
  .login-card .btn-block { width: 100%; font-size: 16px; padding: 14px; box-sizing: border-box; }
}
