/* The public website (templates/public_base.html and the pages that
   extend it): Home, Services, Pickup & Delivery, About Us, Contact, and
   the legal pages. Deep green and cream with a gold accent; Playfair
   Display headings, Inter text. */
:root {
    --ink: #17201b; --muted: #5a6560; --green: #0f7b4f; --green-dark: #0b5e3c; --deep: #12201a; --deep-2: #1a2d24;
    --paper: #f7f4ed; --paper-2: #efe9dc; --card: #ffffff; --line: #e3dccb; --gold: #b8862b; --gold-soft: #f5ead2;
    --radius: 14px; --shadow: 0 12px 32px rgba(18, 32, 26, .08); --shadow-lg: 0 24px 60px rgba(18, 32, 26, .16);
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--green); }
h1, h2, h3 { text-wrap: balance; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.ic { flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; }

/* ---- Top bar, menu bar ---- */
.topbar { background: var(--deep); color: #d9e2dc; font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #f3efe3; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .tb-group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.topbar .tb-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e3a33a; }
.topbar .tb-status.open::before { background: #3ccf8e; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.site-header .brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.site-header .brand img { height: 64px; width: auto; display: block; }
.tm { align-self: flex-start; margin-left: 3px; font: 600 12px/1 var(--sans); color: var(--muted); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 8px; }
.site-nav a:hover { color: var(--green); background: #f3f0e8; }
.site-nav a[aria-current="page"] { color: var(--green); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ic-close { display: none; }
.site-header.open .menu-btn .ic-open { display: none; }
.site-header.open .menu-btn .ic-close { display: block; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); text-decoration: none; padding: 14px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--gold-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { gap: 10px; }

/* ---- Page openers ---- */
.hero { position: relative; color: #fff; background: var(--deep) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 16, .92) 0%, rgba(10, 22, 16, .78) 42%, rgba(10, 22, 16, .25) 100%); }
.hero .container { position: relative; padding-block: 96px 120px; }
.hero-inner { max-width: 620px; }
.hero-photo { display: none; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.hero .eyebrow { color: #e9c77e; }
.hero h1 { font: 700 clamp(36px, 5.4vw, 60px)/1.08 var(--serif); margin: 0 0 18px; letter-spacing: -.5px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: #e4ebe6; margin: 0 0 30px; max-width: 54ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.award-chip { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(233, 199, 126, .45); color: #f6e7c4; border-radius: 999px; padding: 7px 14px 7px 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 22px; text-decoration: none; }
.award-chip .medal { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; }

.page-hero { position: relative; background: var(--deep); color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(233, 199, 126, .07); }
.page-hero .container { position: relative; padding-block: 64px 58px; }
.crumbs { font-size: 13.5px; color: #b9c7bf; margin: 0 0 14px; }
.crumbs a { color: #e4ebe6; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font: 700 clamp(32px, 4.4vw, 50px)/1.1 var(--serif); margin: 0 0 12px; }
.page-hero p.lead { font-size: 18px; color: #d9e2dc; margin: 0; max-width: 62ch; }

/* ---- Sections ---- */
.section { padding-block: 84px; }
.section.tight { padding-block: 56px; }
.section.alt { background: var(--card); }
.section.cream { background: var(--paper-2); }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font: 700 clamp(28px, 3.4vw, 40px)/1.15 var(--serif); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 rgba(18, 32, 26, .03); }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d2c8b1; }
.card h3 { font: 700 21px/1.25 var(--serif); margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0; }
.card .more { margin-top: 16px; color: var(--green); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.icon-badge { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: #e6f2eb; color: var(--green); }
.icon-badge.gold { background: var(--gold-soft); color: #8f6418; }

/* Trust strip under the home page's photo */
.trust { position: relative; z-index: 2; margin-top: -58px; }
.trust .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.trust .item { display: flex; gap: 14px; align-items: flex-start; padding: 24px; }
.trust .item + .item { border-left: 1px solid var(--line); }
.trust .item strong { display: block; font-size: 15.5px; line-height: 1.3; }
.trust .item span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.trust .item .ic { color: var(--green); margin-top: 2px; }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--deep); color: #fff; font: 700 17px/1 var(--serif); margin-bottom: 16px; }
.step h3 { font: 700 19px/1.3 var(--serif); margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Photos */
.photo-frame { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--deep); }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.before-after figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--deep); }
.before-after img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-width: 100%; }
.before-after figcaption { position: absolute; top: 14px; left: 14px; background: rgba(18, 32, 26, .88); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; }
.before-after figure.after figcaption { background: var(--green); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery span { display: block; padding: 12px 14px; font-size: 14.5px; font-weight: 500; }

/* Award */
.award-feature { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.award-feature img { width: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); display: block; }
.award-feature h3 { font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--serif); margin: 0 0 10px; }
.award-feature p { color: var(--muted); margin: 0 0 18px; font-size: 17px; }

/* Bands */
.cta-band { background: linear-gradient(120deg, var(--deep) 0%, var(--deep-2) 100%); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block: 56px; }
.cta-band h2 { font: 700 clamp(26px, 3vw, 36px)/1.2 var(--serif); margin: 0 0 6px; }
.cta-band p { margin: 0; color: #d3ddd7; }
.cta-band .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.reviews-band { background: var(--gold-soft); }
.reviews-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 44px; }
.reviews-band .stars { color: var(--gold); display: flex; gap: 3px; margin-bottom: 6px; }
.reviews-band .stars .ic { fill: currentColor; }
.reviews-band h2 { font: 700 26px/1.25 var(--serif); margin: 0 0 4px; }
.reviews-band p { margin: 0; color: #6b5a33; }

/* Text messages (the wording SMS carriers reviewed) */
.sms-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 26px 28px; max-width: 860px; }
.sms-box p { margin: 0 0 12px; }
.sms-box p:last-child { margin-bottom: 0; }

/* Visit: map, hours, contact */
.map-card { display: block; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #e9e5da; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.map-card img { display: block; width: 100%; height: auto; max-width: 100%; }
.map-card .tap { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; font-weight: 600; font-size: 14.5px; padding: 10px 14px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.map-card.no-image { aspect-ratio: 720 / 400; max-width: 100%; display: grid; place-items: center; text-align: center; padding: 22px;
    background-color: #ece7da; background-image: linear-gradient(#ddd5c1 2px, transparent 2px), linear-gradient(90deg, #ddd5c1 2px, transparent 2px); background-size: 52px 52px; }
.map-card.no-image .pin { color: #c0262d; }
.map-card.no-image .tap { position: static; margin-top: 12px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; color: var(--green); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; padding: 6px 12px; border-radius: 999px; background: #fdf1de; color: #8a4b08; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.open { background: #e2f3ea; color: var(--green); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { width: 46px; height: 46px; border-radius: 12px; }
.contact-list strong { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a, .contact-list span.v { font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--green); }
.area-list { display: grid; gap: 14px; }
.area { display: flex; gap: 16px; align-items: flex-start; }
.area h3 { font: 700 20px/1.25 var(--serif); margin: 0 0 4px; }
.area p { margin: 0; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .ic { color: var(--green); margin-top: 3px; }
.prose p { margin: 0 0 16px; font-size: 17.5px; color: #34403a; }
.prose p.big { font: 600 clamp(22px, 2.4vw, 28px)/1.4 var(--serif); color: var(--ink); }

/* ---- Home: "Do we pick up at your address?" and specialty care ---- */
.zip-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; margin: 0;
    background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 18px; padding: 34px 40px; box-shadow: var(--shadow); }
.zip-panel h2 { font: 700 clamp(26px, 3vw, 34px)/1.2 var(--serif); margin: 0 0 8px; }
.zip-panel p { margin: 0; color: var(--muted); }
.zip-row { display: flex; gap: 10px; }
.zip-row input { flex: 1; min-width: 0; font: 600 18px/1 var(--sans); letter-spacing: 1px; font-variant-numeric: tabular-nums; padding: 14px 16px;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.zip-row input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 123, 79, .16); }
.zip-result { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: #e2f3ea; border: 1px solid #bfe3cf; }
.zip-result.no { background: var(--gold-soft); border-color: #ead7ac; }
.zip-result.bad { background: #fdf1de; border-color: #f0d9b3; }
.zip-result p { margin: 0; color: var(--ink); font-weight: 500; }
.zip-result p.zip-next { margin-top: 6px; font-weight: 700; color: var(--green-dark); }
.zip-result .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.specialty-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.specialty-list li { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.specialty-list .icon-badge { flex: none; width: 50px; height: 50px; }
.specialty-list h3 { font: 700 20px/1.25 var(--serif); margin: 2px 0 4px; }
.specialty-list p { margin: 0; color: var(--muted); }

/* ---- "Get the app" buttons ---- */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.store-label { width: 100%; font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; opacity: .8; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 8px 16px 8px 12px; border-radius: 12px; background: #0b0f0d; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .28); transition: transform .15s, background .15s; }
.store-badge:hover { transform: translateY(-1px); background: #000; }
.store-badge span { display: flex; flex-direction: column; font: 600 18px/1.05 var(--sans); letter-spacing: -.2px; }
.store-badge small { font-size: 10.5px; font-weight: 500; letter-spacing: .3px; opacity: .85; margin-bottom: 2px; }
.store-badge .ic { width: 26px; height: 26px; }

/* ---- Footer ---- */
.site-footer { background: var(--deep); color: #c9d4cd; font-size: 15px; }
.site-footer .container { padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr .8fr; gap: 40px; }
.site-footer img.f-logo { height: 72px; width: auto; display: block; }
.site-footer .f-brand { display: inline-flex; margin-bottom: 14px; }
.site-footer .f-brand .tm { color: #9fb0a6; }
.site-footer h4 { color: #fff; font: 600 13px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; margin: 6px 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #e6ede8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .f-line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.site-footer .f-line .ic { color: #e9c77e; margin-top: 2px; }
.site-footer .f-hours { font-variant-numeric: tabular-nums; }
.site-footer .f-hours div { display: flex; justify-content: space-between; gap: 12px; }
.site-footer .f-hours div.today { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13.5px; color: #9fb0a6; }
.footer-bottom nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.footer-bottom .copyright { max-width: 470px; line-height: 1.55; }

/* ---- Legal pages (terms, privacy, text messages...) ---- */
.wrap.doc { max-width: 820px; margin: 0 auto; padding: 8px 24px 56px; }
.doc h1 { font: 700 clamp(30px, 4vw, 42px)/1.15 var(--serif); margin: 44px 0 6px; }
.doc h2 { font: 700 23px/1.3 var(--serif); margin: 34px 0 10px; }
.doc p, .doc li { max-width: 72ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.sub { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }

/* ---- Shop (/shop). The shop floor: a pinstripe opener with the newest
   item and our own hang tag, prices on hang tags, a rubber stamp for sold
   out, and the bag as a claim ticket. The bag sits right of the items
   (below them on phones, with a "View bag" bar at the bottom). ---- */
.btn-gold { background: linear-gradient(180deg, #e2b968, #b8862b); color: #1d1606; box-shadow: 0 8px 22px rgba(184, 134, 43, .35); }
.btn-gold:hover { background: linear-gradient(180deg, #d6aa52, #a87a24); }
.shop-hero { position: relative; overflow: hidden; color: #fff; background-color: var(--deep);
    background-image: radial-gradient(900px 420px at 82% 30%, rgba(233, 199, 126, .16), transparent 62%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 26px); }
.shop-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; border-top: 2px dashed rgba(233, 199, 126, .4); }
.shop-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 48px 84px; }
.shop-hero-grid.solo { grid-template-columns: minmax(0, 1fr); }
.shop-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #e9c77e; }
.shop-hero h1 { font: 700 clamp(38px, 5.2vw, 64px)/1.04 var(--serif); margin: 0 0 18px; letter-spacing: -.5px; }
.shop-hero h1 em { display: block; font-style: italic; color: #e9c77e; }
.shop-hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: #d9e2dc; margin: 0 0 28px; max-width: 46ch; }
.shop-promises { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; color: #d3ddd7; }
.shop-promises li { display: inline-flex; align-items: center; gap: 8px; }
.shop-promises .ic { color: #e9c77e; }

.shop-feature { position: relative; justify-self: end; width: 100%; max-width: 450px; padding-top: 18px; }
.feature-card { position: relative; background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .38); }
.feature-photo { position: relative; aspect-ratio: 5 / 4; max-width: 100%; background: #e5e5e5; border-radius: 18px 18px 0 0; overflow: hidden; } /* the shop pictures' backdrop */
.feature-photo img { display: block; width: 100%; height: 100%; object-fit: contain; } /* the whole item, a tall picture too */
/* Our own hang tag (the one on every piece at the counter): the Dar
   Mercanya crest on deep green (the family's clothing brand, 2026-10-20),
   what the item is and its price, tied on at the card's corner (Kamran,
   2026-10-19: it took the hanger's place). */
.brand-tag { position: absolute; top: -12px; right: 22px; z-index: 2; width: 88px; padding: 30px 8px 12px; background: #1f4a33; color: #d9b25a;
    border: 1px solid #c79a3e; border-radius: 7px; text-align: center; transform: rotate(5deg); transform-origin: 50% 0; box-shadow: 0 8px 16px rgba(0, 0, 0, .32);
    font-size: 10.5px; font-weight: 700; line-height: 1.25; letter-spacing: 1.2px; text-transform: uppercase; pointer-events: none; }
.brand-tag::before { content: ""; position: absolute; top: 9px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--deep);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.brand-tag::after { content: ""; position: absolute; top: -22px; left: 50%; width: 1.5px; height: 36px; background: #8a6a2a; transform: rotate(-20deg); transform-origin: 50% 100%; }
.brand-tag img { display: block; width: 66px; margin: 0 auto 6px; }
/* The same tag in the item window, hanging inside the picture's corner: the
   real tag's front (the crest, the town under it), no price (2026-10-21). */
.wait-tag { top: 10px; right: 16px; width: 76px; padding: 25px 6px 9px; font-size: 8.5px; letter-spacing: 1px; }
.wait-tag::after { top: -10px; height: 22px; }
.wait-tag img { width: 60px; margin-bottom: 4px; }
.brand-tag b { display: block; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(199, 154, 62, .5); font: 700 19px/1 var(--serif); letter-spacing: 0;
    color: #f2e8d2; font-variant-numeric: tabular-nums; }
.feature-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 22px 22px; }
.feature-body h2 { font: 700 26px/1.15 var(--serif); margin: 2px 0 0; }
.feature-low { margin: 4px 0 0; color: #a06d12; font-weight: 600; font-size: 14px; }
.feature-body .btn { flex: none; }

/* A hang tag with the price, tied on at the top of every photo. */
.hang-tag { position: absolute; top: 16px; right: 16px; transform: rotate(7deg); transform-origin: 50% 0; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .28)); pointer-events: none; }
.hang-tag::before { content: ""; position: absolute; left: 50%; top: -15px; width: 1.5px; height: 26px; background: #7c5d22; transform: rotate(-24deg); transform-origin: 50% 100%; }
.hang-tag-price { display: block; position: relative; background: #fbf7ec; color: var(--ink); font: 700 17px/1 var(--serif); font-variant-numeric: tabular-nums;
    padding: 21px 13px 11px; border-radius: 3px 3px 7px 7px; clip-path: polygon(50% 0, 100% 15px, 100% 100%, 0 100%, 0 15px); }
.hang-tag-price::before { content: ""; position: absolute; top: 9px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #5d4a26; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }

.shop-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 26px; }
.shop-head .eyebrow { margin-bottom: 8px; }
.shop-head h2 { font: 700 clamp(28px, 3vw, 36px)/1.15 var(--serif); margin: 0; }
.shop-chips { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
.chip { flex: none; border: 1px solid #d9cfb9; background: var(--card); color: var(--ink); font: 600 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { border-color: var(--deep); }
.chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
/* The filter bar over the items (2026-10-21, static/shop_filters.js): the type buttons, then Filter, how many items
   show and the sort in one slim row; the search once the shop is big; the picks as tags. The filters open in a panel
   from the side (from the bottom on a phone), so the items keep the full width next to the bag. */
.shop-bar { display: flex; flex-direction: column; gap: 12px; margin: -6px 0 22px; }
.shop-bar[hidden], .shop-bar [hidden] { display: none !important; }
.shop-tools { display: flex; align-items: center; gap: 12px; }
.shop-filter-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d9cfb9; background: var(--card); color: var(--ink);
    font: 600 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.shop-filter-btn:hover { border-color: var(--deep); }
.shop-filter-n { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--deep); color: #fff; font-size: 12px; text-align: center; }
.shop-count { flex: none; color: var(--muted); font-size: 14px; white-space: nowrap; }   /* the count stays whole; the sort box gives way */
.shop-sort { flex: 0 1 auto; min-width: 0; margin-left: auto; max-width: 52%; border: 1px solid #d9cfb9; background: var(--card); color: var(--ink); font: 600 14px var(--sans); padding: 9px 12px;
    border-radius: 12px; cursor: pointer; }
.shop-search { width: 100%; max-width: 420px; border: 1px solid #d9cfb9; background: var(--card); color: var(--ink); font: 400 15px var(--sans);
    padding: 11px 14px; border-radius: 12px; }
.shop-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shop-tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--deep); background: transparent; color: var(--ink);
    font: 600 13px/1 var(--sans); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.shop-tag::after { content: "\00d7"; font-size: 16px; line-height: 1; color: var(--deep); }
.shop-clear { border: 0; background: none; color: var(--deep); font: 700 13px var(--sans); text-decoration: underline; cursor: pointer; padding: 8px 4px; }
.shop-none { text-align: center; }
.shop-none[hidden], .shop-more[hidden] { display: none; }
.shop-more { display: flex; justify-content: center; margin-top: 26px; }
.shop-filters { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(380px, 100vw); height: 100%; max-height: none; max-width: 100vw;
    padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: -20px 0 60px rgba(0, 0, 0, .25); }
.shop-filters[open] { display: flex; flex-direction: column; }
.shop-filters::backdrop { background: rgba(12, 18, 15, .5); }
.sf-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 10px; }
.sf-head h3 { margin: 0; font: 700 22px/1.2 var(--serif); }
.sf-x { border: 0; background: none; color: var(--muted); font-size: 30px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.sf-body { flex: 1; overflow-y: auto; padding: 0 22px 10px; }
.sf-group { border-top: 1px solid var(--line); padding: 14px 0; }
.sf-title { font: 700 12px var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sf-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-opt { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d9cfb9; background: var(--card); color: var(--ink); font: 600 14px/1 var(--sans);
    padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.sf-opt small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.sf-opt:hover { border-color: var(--deep); }
.sf-opt[aria-pressed="true"] { border-color: var(--deep); box-shadow: inset 0 0 0 2px var(--deep); }
.sf-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); flex: none; }
.sf-foot { display: flex; align-items: center; gap: 14px; padding: 14px 22px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sf-clear { border: 0; background: none; color: var(--ink); font: 700 14px var(--sans); text-decoration: underline; cursor: pointer; padding: 10px 4px; }
.sf-show { flex: 1; justify-content: center; }
.shop-notice { background: var(--gold-soft); color: #6b4a10; border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-weight: 600; }

.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.shop-main { min-width: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 22px; }
.shop-item { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.shop-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shop-item[hidden] { display: none; }
.shop-photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--paper-2); }
.shop-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.shop-item:hover .shop-photo img { transform: scale(1.04); }
.shop-photo-blank { display: grid; place-items: center; height: 100%; color: #a99c7d; }
.shop-ribbon { position: absolute; left: 0; bottom: 16px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 7px 13px 7px 14px; border-radius: 0 6px 6px 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.shop-ribbon.new { background: var(--green); }
.shop-ribbon.soon { background: #5b4a8f; }
.shop-ribbon.pre { background: #8a5a12; }
.shop-sample { position: absolute; top: 12px; left: 12px; background: rgba(12, 14, 13, .72); color: #f4efe3; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.bag-promise, .preorder-note { background: var(--gold-soft); border: 1px dashed var(--gold, #b8862b); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: var(--ink, #1d1a16); margin: 12px 0; }
.preorder-note.late { border-style: solid; border-color: #b45309; }
.preorder-note .link-arrow { display: inline-flex; margin-left: 4px; }
.po-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 10px 0 14px; }
.po-steps li { border-top: 4px solid #d8d0bf; padding-top: 8px; font-size: 13px; font-weight: 700; color: #7a7266; }
.po-steps li.done { border-color: var(--green, #0f6e4a); color: #1d1a16; }
.po-steps li.now { border-color: var(--gold, #b8862b); color: #8a5a12; }
.po-cancel { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; align-items: flex-start; }
.po-cancel .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.shop-choices { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.shop-numbered { margin: 4px 0 0; font-size: 13.5px; font-weight: 700; color: var(--green); letter-spacing: .2px; }
/* The waiting list form for coming soon items: pick color, size and how many, no payment. */
.wait-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: auto; }
.wait-dialog::backdrop { background: rgba(12, 18, 15, .6); }
.wait-dialog [hidden] { display: none !important; }
.wait-dialog form { display: grid; grid-template-columns: minmax(0, 1fr); }
.wait-photo { position: relative; background: var(--paper-2); display: flex; justify-content: center; max-height: 340px; }
.wait-photo img { max-height: 340px; max-width: 100%; object-fit: contain; display: block; }
/* The turning picture (static/merch_turn.js): swipe or drag across it, or tap a dot. */
.wait-photo.turn-box { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.wait-photo.turn-box:focus-visible { box-shadow: inset 0 0 0 2px var(--deep); }
.wait-photo img.turn-fade { position: absolute; inset: 0; margin: auto; height: 100%; width: auto; opacity: 0; transition: opacity .17s ease; pointer-events: none; }
.wait-photo img.turn-fade.on { opacity: 1; }
.turn-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px 6px; border-radius: 999px; background: var(--deep); }
.turn-dot { width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.turn-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .15s, transform .15s; }
.turn-dot[aria-current="true"]::before { background: #e9c77e; transform: scale(1.25); }
.wait-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 22px; }
.wait-body h2 { font: 700 26px/1.15 var(--serif); margin: 0; }
.wait-body fieldset { border: 0; margin: 0; padding: 0; }
.wait-body legend, .wait-body label { font-size: 13px; font-weight: 700; color: var(--ink); }
.wait-body legend { margin-bottom: 6px; }
.wait-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wait-chip { position: relative; }
.wait-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wait-chip span { display: inline-flex; align-items: center; gap: 7px; min-width: 48px; justify-content: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 14px; }
.wait-chip input:checked + span { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.wait-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.wait-chip input:disabled { cursor: default; }
.wait-chip input:disabled + span { opacity: .45; }
.wait-chip span.wait-chip-text { display: inline; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; }
.wait-dot, .wait-chip span.wait-dot { display: inline-block; flex: none; width: 14px; min-width: 0; height: 14px; padding: 0; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.wait-body input[type=text], .wait-body input[type=tel], .wait-body select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 500 15px var(--sans); background: #fff; color: var(--ink); box-sizing: border-box; }
.wait-qty select { width: auto; min-width: 90px; }
.wait-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wait-done { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--ink); font-weight: 700; }
.wait-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .wait-row2 { grid-template-columns: minmax(0, 1fr); } .wait-body { padding: 16px; } }
.sold-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); border: 3px solid #b3261e; border-radius: 6px; padding: 8px 16px;
    color: #b3261e; background: rgba(255, 255, 255, .82); font: 800 22px/1 var(--sans); letter-spacing: 4px; text-transform: uppercase; white-space: nowrap; }
.shop-item.sold-out .shop-photo img { filter: grayscale(1); opacity: .55; }
.shop-item.sold-out .hang-tag { opacity: .7; }
.shop-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 16px 18px 18px; }
/* Dar Mercanya, the family's own clothing label, under the shop's heading (Kamran, 2026-10-20) */
.shop-label { display: flex; align-items: center; gap: 14px; max-width: 560px; margin: 0 0 18px; padding: 10px 16px 10px 10px;
  border: 1px solid rgba(199, 154, 62, .45); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.shop-label p { margin: 0; color: #f2e8d2; font-size: 15px; line-height: 1.45; }
@media (max-width: 560px) { .shop-label { padding: 9px 12px; } .shop-label p { font-size: 14px; } }
/* Dar Mercanya's sign-off under the shop's heading ("Now we sign them."): the
   merchant's mark in a double-ring seal, a thin rule, the name in spaced
   capitals (templates/site_icons.html dm_sign). */
.dm-sign { display: flex; align-items: center; gap: 12px; margin: -4px 0 20px; color: #d9b25a; }
.dm-seal { position: relative; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1.5px solid currentColor; border-radius: 50%; }
.dm-seal::after { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 50%; opacity: .55; }
.dm-seal svg { width: 15px; height: 26px; }
.dm-sign-rule { flex: none; width: 1px; height: 30px; background: currentColor; opacity: .55; }
.dm-sign-name { font: 600 14px/1.2 "Cormorant Garamond", Garamond, Georgia, serif; letter-spacing: 5px; text-transform: uppercase; }
.dm-sign-tm { margin-left: 1px; font: 600 9px/1 var(--sans); letter-spacing: 0; vertical-align: super; }
.shop-cat { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.shop-body h3 { font: 700 20px/1.25 var(--serif); margin: 0; }
.shop-desc { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-add { width: 100%; margin-top: 14px; }
.shop-add.in-bag, .feature-body .btn.in-bag { background: var(--deep); }
.shop-add.pop, .feature-body .btn.pop { animation: shop-pop .35s ease; }
@keyframes shop-pop { 40% { transform: scale(1.05); } }
.shop-buy .btn:disabled, .shop-add:disabled, .feature-body .btn:disabled, .bag-pay:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.shop-empty { text-align: center; padding: 48px 28px; }
.shop-empty .icon-badge { margin: 0 auto; }
.shop-closed { display: flex; gap: 12px; flex-wrap: wrap; }

/* The bag: a claim ticket with notches cut where it tears off. */
.ticket { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; scroll-margin-top: 90px;
    background: #fffdf7; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.ticket-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 12px; background: var(--deep); color: #fff; padding: 18px 22px 16px; border-radius: 15px 15px 0 0;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 26px); }
.ticket-label { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: #e9c77e; }
.ticket-head h2 { font: 700 25px/1.15 var(--serif); margin: 0; }
.ticket-count { font-size: 13.5px; color: #cfdad3; font-variant-numeric: tabular-nums; padding-bottom: 3px; }
.ticket-perf { position: relative; height: 22px; background: radial-gradient(circle at 0 50%, var(--paper) 10px, transparent 11px), radial-gradient(circle at 100% 50%, var(--paper) 10px, transparent 11px), #fffdf7; }
.ticket-perf::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 2px dashed #ddd1b6; }
.ticket-body { padding: 4px 22px 22px; }
.bag-empty { text-align: center; color: var(--muted); padding: 14px 0 6px; }
.bag-empty .ic { color: #c6b58b; }
.bag-empty p { margin: 8px 0 0; font-size: 15px; }
.bag-warn { background: #fdf1de; color: #8a4b08; border-radius: 10px; padding: 10px 14px; font-size: 14.5px; margin: 0 0 14px; }
.bag-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "pic name amt" "pic qty amt"; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed #e4d9c2; }
.bag-pic { grid-area: pic; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--paper-2); }
.bag-name { grid-area: name; min-width: 0; }
.bag-name b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.bag-name small { color: var(--muted); font-size: 13px; }
.bag-qty { grid-area: qty; justify-self: start; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.bag-qty button { width: 30px; height: 30px; border: 0; background: none; font: 600 17px/1 var(--sans); color: var(--ink); cursor: pointer; border-radius: 50%; }
.bag-qty button:disabled { opacity: .3; cursor: default; }
.bag-qty span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.bag-amt { grid-area: amt; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bag-form { display: grid; gap: 18px; margin-top: 18px; }
.bag-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.bag-form legend { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.bag-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.bag-form input[type="text"], .bag-form input[type="tel"], .bag-form input[type="email"] { font: 400 16px/1.3 var(--sans); padding: 11px 12px; border: 1px solid #cfc6b2; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
.bag-form input:focus { border-color: var(--green); outline: 2px solid rgba(15, 123, 79, .18); outline-offset: 0; }
.bag-form small { font-weight: 400; color: var(--muted); font-size: 13px; }
.bag-choice { display: flex !important; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; }
.bag-choice:has(input:checked) { border-color: var(--green); background: #f2f8f4; }
.bag-choice input { margin-top: 3px; accent-color: var(--green); }
.bag-choice b { display: block; font-size: 15px; }
.bag-ship { display: grid; gap: 10px; }
.bag-row3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, .9fr); gap: 8px; }
#ship_options { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.bag-totals { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.bag-totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 15px; }
.bag-totals .bag-total { color: var(--ink); font-weight: 700; font-size: 19px; border-top: 2px dashed #ddd1b6; padding-top: 12px; margin-top: 6px; }
.bag-totals .bag-total span:first-child { font-family: var(--serif); }
.bag-terms-text { font-size: 13.5px; color: var(--muted); margin: 0; }
.bag-order-terms { border-left: 3px solid var(--gold, #b8862b); background: var(--gold-soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ink, #1d1a16); }
.bag-order-terms p { margin: 0; }
.bag-order-terms p + p { margin-top: 6px; }
.bag-agree { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; }
.bag-agree input { margin-top: 4px; accent-color: var(--green); }
.bag-error { background: #fdecec; color: #a32121; border-radius: 10px; padding: 10px 14px; margin: 0; font-size: 14.5px; font-weight: 600; }
.bag-pay { width: 100%; padding-block: 16px; font-size: 16px; }
.bag-fine { margin: -8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.bag-bar { display: none; }

.shop-promise-band { background: var(--paper-2); border-top: 1px solid var(--line); }
.shop-promise-band .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 46px; }
.promise { display: flex; gap: 14px; align-items: flex-start; }
.promise .ic { color: var(--gold); margin-top: 2px; }
.promise strong { display: block; font: 700 19px/1.3 var(--serif); margin-bottom: 2px; }
.promise span { color: var(--muted); font-size: 15px; }

/* The thank-you page: the receipt as the same claim ticket. */
.shop-thanks { align-items: start; }
.receipt.ticket { position: static; max-height: none; overflow: visible; padding: 0; }
.receipt .ticket-body { position: relative; padding-top: 8px; }
/* Dar Mercanya's paid seal (templates/site_icons.html dm_paid_seal): faint
   over a paid order's lines, never in the way of a click. */
.paid-seal-dm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); display: flex; flex-direction: column;
  align-items: center; gap: 10px; opacity: .1; pointer-events: none; color: #1f4a33; }
.paid-seal-dm .dm-seal { width: 150px; height: 150px; border-width: 5px; }
.paid-seal-dm .dm-seal::after { inset: 9px; border-width: 2px; opacity: 1; }
.paid-seal-dm .dm-seal svg { width: 48px; height: 82px; }
.paid-seal-dm b { font: 800 15px/1 var(--sans); letter-spacing: 3px; white-space: nowrap; }
.receipt-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.receipt-lines td { padding: 10px 0; border-bottom: 1px dashed #e4d9c2; }
.receipt-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.receipt-lines tr.minor td { color: var(--muted); }
.receipt-lines tr.total td { font-weight: 700; font-size: 19px; border-bottom: 0; padding-top: 14px; }

/* ---- Photo viewer ---- */
dialog.viewer { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); }
dialog.viewer::backdrop { background: rgba(8, 14, 11, .9); }
dialog.viewer img { display: block; max-width: 100%; max-height: 82vh; border-radius: 10px; margin: 0 auto; }
dialog.viewer p { color: #f3efe3; text-align: center; margin: 12px auto 0; }
dialog.viewer button { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--deep); cursor: pointer; display: grid; place-items: center; }

/* ---- Smaller screens ---- */
@media (max-width: 1080px) {
    .site-nav a { padding: 10px 10px; font-size: 14.5px; }
    .header-actions .btn-signin { display: none; }
}
@media (max-width: 960px) {
    .menu-btn { display: inline-flex; }
    .site-header .container { gap: 12px; min-height: 66px; flex-wrap: wrap; }
    .site-header .brand img { height: 52px; }
    .site-nav, .header-actions { display: none; width: 100%; }
    .site-header.open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 4px; border-top: 1px solid var(--line); }
    .site-header.open .site-nav a { padding: 14px 10px; font-size: 17px; border-bottom: 1px solid #f0ebdf; border-radius: 0; }
    .site-header.open .site-nav a[aria-current="page"]::after { display: none; }
    .site-header.open .header-actions { display: flex; gap: 10px; padding: 8px 0 16px; }
    .site-header.open .header-actions .btn { flex: 1; }
    .site-header.open .header-actions .btn-signin { display: inline-flex; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .zip-panel { grid-template-columns: minmax(0, 1fr); }
    .trust .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust .item:nth-child(3) { border-left: 0; }
    .trust .item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .award-feature { grid-template-columns: 150px 1fr; gap: 26px; }
    .shop-layout { grid-template-columns: minmax(0, 1fr); }   /* minmax: a long row (the type buttons) scrolls, never widens the page */
    .shop-bag { position: static; max-height: none; overflow: visible; }
    .shop-hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 36px 72px; }
    .shop-feature { justify-self: center; }
    .shop-promise-band .container { grid-template-columns: 1fr; gap: 20px; }
    .bag-bar:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 12px; right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--deep); color: #fff; font-weight: 600;
        padding: 10px 10px 10px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); }
}
@media (max-width: 640px) {
    .container { padding-inline: 18px; }
    .topbar .tb-address, .topbar .tb-email { display: none; }
    .topbar .container { min-height: 36px; font-size: 13px; }
    /* The whole photo across the top, the words on green below it. */
    .hero { background-image: none !important; }
    .hero::before { display: none; }
    .hero-photo { display: block; position: relative; }
    .hero-photo img { display: block; width: 100%; height: auto; }
    .hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, rgba(18, 32, 26, 0), var(--deep)); }
    .hero .container { padding-block: 22px 96px; }
    .hero .ctas .btn { flex: 1 1 auto; }
    .section { padding-block: 60px; }
    .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
    .trust .row { grid-template-columns: 1fr; }
    .trust .item + .item { border-left: 0; border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .award-feature { grid-template-columns: 1fr; }
    .award-feature img { max-width: 200px; }
    .before-after { gap: 10px; }
    .cta-band .ctas .btn, .reviews-band .btn { flex: 1 1 auto; }
    .card { padding: 22px; }
    .zip-panel { padding: 24px 20px; }
    .zip-result .ctas .btn { flex: 1 1 auto; }
    .specialty-list li { padding: 18px; gap: 14px; }
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .shop-filters { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 86vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; }
    .shop-filter-btn, .shop-sort { font-size: 13.5px; }
    .shop-body { padding: 12px 12px 14px; }
    .shop-body h3 { font-size: 16.5px; }
    .shop-desc { display: none; }
    .shop-add { margin-top: 10px; padding-inline: 8px; }
    .hang-tag { top: 10px; right: 10px; }
    .hang-tag-price { font-size: 14.5px; padding: 18px 10px 9px; }
    .brand-tag { width: 70px; right: 14px; padding: 24px 6px 9px; font-size: 9px; }
    .brand-tag img { width: 54px; margin-bottom: 5px; }
    .brand-tag b { font-size: 15px; margin-top: 5px; padding-top: 5px; }
    .shop-ribbon { font-size: 10.5px; padding: 5px 9px 5px 10px; bottom: 10px; }
    .sold-stamp { font-size: 15px; letter-spacing: 2px; padding: 6px 10px; }
    .feature-body { flex-direction: column; align-items: stretch; }
    .feature-body h2 { font-size: 23px; }
    .ticket-head, .ticket-body { padding-inline: 18px; }
    .bag-row3 { grid-template-columns: 1fr 1fr; }
    .bag-row3 label:first-child { grid-column: 1 / -1; }
}

/* ---- Phones: the home page on one screen, sections that swipe, tab bar ----
   templates/home.html and public_base.html; static/site.js opens the
   sections (.deck) and More's list. Hidden on a computer. */
.front-status, .quick, .tiles, .deck-bar, .deck-foot, #visit, .tabbar { display: none; }
.more-sheet[open] { display: flex; }
@media (max-width: 640px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
    .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px;
        font: 600 11.5px/1 var(--sans); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
    .tabbar [aria-current="page"] { color: var(--green); }
    .bag-bar:not([hidden]) { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    .more-sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 85vh; border: 0; border-radius: 20px 20px 0 0;
        padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--paper); flex-direction: column; gap: 2px; }
    .more-sheet::backdrop { background: rgba(10, 22, 16, .55); }
    .more-grab { width: 40px; height: 5px; border-radius: 3px; background: #cfc6b2; margin: 0 auto 10px; }
    .more-sheet a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
    .more-sheet a .ic { color: var(--green); }
    .more-sheet .btn { margin-top: 12px; }

    /* Home: one screen. The photo shrinks to a strip, the words go on the
       page's own color, and the round buttons and tiles take the rest. */
    .page-home .topbar, .page-home .site-footer, .page-home .trust, .page-home .cta-band { display: none; }
    .page-home .hero { background: var(--paper) !important; color: var(--ink); }
    .page-home .hero-photo img { height: 104px; object-fit: cover; object-position: center top; }
    .page-home .hero-photo::after { height: 60%; background: linear-gradient(180deg, rgba(18, 32, 26, 0), rgba(18, 32, 26, .55)); }
    .page-home .hero .container { position: relative; padding-block: 10px 12px; }
    .page-home .award-chip { position: absolute; top: -44px; left: 18px; margin: 0; background: rgba(18, 32, 26, .78); font-size: 12px; padding: 4px 10px 4px 5px; gap: 7px; }
    .page-home .award-chip .medal { width: 20px; height: 20px; }
    .page-home .hero .eyebrow, .page-home .hero .lead, .page-home .hero .ctas, .page-home .hero .store-badges { display: none; }
    .page-home .front-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
    .page-home .front-status .status-pill { font-size: 12.5px; padding: 3px 10px; white-space: nowrap; }
    .page-home .front-status > span:not(.status-pill) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .page-home .hero h1 { font-size: 23px; line-height: 1.18; margin: 0 0 12px; letter-spacing: 0; }
    .quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 12px; }
    .quick a { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; text-align: center; }
    .quick a span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #e2f3ea; color: var(--green); }
    .quick a.go span { background: var(--green); color: #fff; }
    .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .tile { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 10px 11px;
        background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; box-shadow: 0 6px 16px rgba(18, 32, 26, .06); }
    .tile .tb { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e2f3ea; color: var(--green); }
    .tile .tb.gold { background: var(--gold-soft); color: #8f6418; }
    .tile b { font-size: 13.5px; line-height: 1.2; }
    .tile small { font-size: 11.5px; line-height: 1.25; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tile.go { background: var(--green); border-color: var(--green); color: #fff; }
    .tile.go small { color: #d8efe2; }
    .tile.go .tb { background: rgba(255, 255, 255, .18); color: #fff; }

    /* The sections: hidden until a tile opens them, then full screen above
       the tab bar, one at a time, swiping sideways. */
    .deck { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 60;
        background: var(--paper); flex-direction: column; }
    .deck.open { display: flex; }
    html.deck-open, html.deck-open body { overflow: hidden; }
    .deck-bar { display: flex; flex: none; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: #fff; border-bottom: 1px solid var(--line); }
    .deck-bar strong { flex: 1; min-width: 0; font-size: 15px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .deck-back { display: inline-flex; align-items: center; gap: 4px; font: 600 14.5px/1 var(--sans); color: var(--green); background: none; border: 0; padding: 8px 4px; cursor: pointer; }
    .deck-back .ic { transform: rotate(180deg); }
    .deck-dots { display: flex; gap: 5px; }
    .deck-dots i { width: 7px; height: 7px; border-radius: 50%; background: #cfc6b2; }
    .deck-dots i.on { width: 18px; border-radius: 5px; background: var(--green); }
    .deck-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
    .deck-track::-webkit-scrollbar { display: none; }
    .deck .deck-track > section.section { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; padding-block: 20px 22px; }
    .deck-track .zip-panel { padding: 18px 16px; gap: 14px; }
    .deck-track .zip-panel .eyebrow { margin-bottom: 6px; }
    .deck-track .specialty-list { gap: 10px; }
    .deck-track .specialty-list li { padding: 12px 14px; gap: 12px; }
    .deck-track .specialty-list h3 { font-size: 17px; margin: 0 0 2px; }
    .deck-track .specialty-list p { font-size: 14px; line-height: 1.45; }
    .deck-track .specialty-list .icon-badge { width: 40px; height: 40px; flex: none; }
    .deck-track .split > div > .btn { padding: 10px 16px; font-size: 14px; }
    .deck-track #specialty .split > div > .btn { display: none; }
    .deck-track .section-head { margin-bottom: 18px; }
    .deck-track .section-head h2, .deck-track .zip-panel h2 { font-size: 25px; }
    .deck-track .section-head p { font-size: 14.5px; line-height: 1.5; }
    .deck-track .grid { gap: 12px; }
    .deck-track .card { padding: 16px 18px; }
    .deck-track .card h3 { margin: 10px 0 4px; font-size: 18px; }
    .deck-track .card .icon-badge { width: 42px; height: 42px; }
    .deck-track .card .more { margin-top: 8px; }
    .deck-track .split { gap: 18px; }
    .deck-track .before-after img { aspect-ratio: 1 / 1; }
    .deck-track .sms-box { padding: 16px 18px; font-size: 14.5px; }
    #visit { display: block; }
    .visit-card { display: flex; flex-direction: column; gap: 14px; }
    .visit-line { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
    .visit-line > .ic { color: var(--green); margin-top: 3px; }
    .visit-btns { display: flex; flex-direction: column; gap: 10px; }
    .visit-more { color: var(--muted); margin: 16px 0 0; font-size: 14.5px; }
    .deck-foot { display: flex; flex: none; flex-direction: column; gap: 6px; padding: 6px 16px 10px; background: var(--paper); border-top: 1px solid var(--line); }
    .deck-steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
    .deck-steps button { font: 600 13px/1.2 var(--sans); color: var(--green); background: none; border: 0; padding: 4px 0; cursor: pointer; min-width: 0; }
    .deck-steps button:empty { visibility: hidden; }
    .deck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .deck-btns .btn { padding: 10px; font-size: 14.5px; }
}
/* A narrow phone: smaller round buttons; the open/closed line alone. */
@media (max-width: 370px) {
    .page-home .front-status > span:not(.status-pill) { display: none; }
    .quick a span { width: 44px; height: 44px; }
    .quick a { font-size: 11.5px; }
    .tile { padding: 9px; column-gap: 7px; }
    .tile b { font-size: 13px; }
}
/* A short phone screen: the photo strip goes so the buttons and tiles fit. */
@media (max-width: 640px) and (max-height: 700px) {
    .page-home .hero-photo { display: none; }
    .page-home .award-chip { position: static; margin: 0 0 8px; }
    .page-home .hero .award-chip { color: #8f6418; background: var(--gold-soft); border-color: #e6cf9c; }
}

/* ---- Dar Mercanya (body.brand-site): the family's clothing label, its home
   page (templates/brand_home.html) and, at darmercanya.com, the shop. The
   brand book's colors (design/uniforms/merch/brand_dm.py): deep green,
   antique gold, red, ivory; Cormorant Garamond in spaced capitals for the
   name. The shop's own styles take the label's colors through the tokens. */
body.brand-site {
    --green: #1f4a33; --green-dark: #163826; --deep: #17382a; --deep-2: #1f4a33; --gold: #a87d2a; --gold-soft: #f2e8d2;
    --paper: #f8f3e7; --paper-2: #f2e8d2; --line: #e3d7bb; --muted: #5d6258; --ink: #1c231d;
    --dm-gold: #c79a3e; --dm-red: #9b2c24; --dm-ivory: #f3ead6;
    --serif: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
}
.dm-header { background: rgba(248, 243, 231, .97); border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 -2px var(--dm-gold); }
.dm-header .container { gap: 18px 28px; }
.dm-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; color: var(--green); }
.dm-brand img { height: 46px; width: auto; display: block; }
.dm-brand > span { display: inline-flex; font: 700 20px/1 var(--serif); letter-spacing: 3.2px; text-transform: uppercase; }
.dm-brand .tm { color: var(--gold); letter-spacing: 0; }
.dm-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.dm-nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 8px; }
.dm-nav a:hover { color: var(--green); background: var(--paper-2); }
.dm-nav a[aria-current="page"] { color: var(--green); }
.dm-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--dm-gold); }
.dm-nav .dm-home-link { margin-left: 10px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.btn.dm-btn { background: var(--dm-gold); color: #1c231d; border-color: var(--dm-gold); letter-spacing: .3px; }
.btn.dm-btn:hover { background: #d6ab52; border-color: #d6ab52; }

.dm-hero { position: relative; background: radial-gradient(120% 90% at 50% 0%, #275a3f 0%, #1f4a33 48%, #17382a 100%); color: var(--dm-ivory); text-align: center; overflow: hidden; }
.dm-hero::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(199, 154, 62, .45); pointer-events: none; }
.dm-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-block: 64px 70px; }
.dm-crest { width: min(300px, 72vw); height: auto; margin: 0 0 22px; }
.dm-kicker { margin: 0 0 10px; color: var(--dm-gold); font: 600 13px/1 var(--sans); letter-spacing: 3px; text-transform: uppercase; }
.dm-name { margin: 0; font: 600 clamp(31px, 6.6vw, 72px)/1.05 var(--serif); letter-spacing: clamp(2px, 1vw, 10px); text-transform: uppercase; color: var(--dm-ivory); }
.dm-name .tm { display: inline-block; vertical-align: top; margin-left: 2px; font-size: 13px; color: var(--dm-gold); letter-spacing: 0; }
.dm-say { margin: 12px 0 0; font: 500 19px/1.4 var(--serif); color: #d9cfb6; }
.dm-say em { color: var(--dm-gold); letter-spacing: 1px; }
.dm-lead { margin: 20px auto 30px; max-width: 46ch; font-size: clamp(17px, 1.6vw, 19px); color: #e6dcc4; }
.dm-soon { margin: -10px 0 18px; font: italic 500 22px/1.3 var(--serif); color: var(--dm-gold); }

.dm-section { padding-block: 72px; }
.dm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 26px; }
.dm-head h2, .dm-story h2, .dm-launch h2 { font: 600 clamp(28px, 3.4vw, 40px)/1.12 var(--serif); margin: 0 0 12px; color: var(--green); }
.dm-head h2 { margin: 0; }
.dm-label { margin: 0 0 8px; color: var(--gold); font: 600 12.5px/1 var(--sans); letter-spacing: 2.4px; text-transform: uppercase; }
.dm-pieces { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dm-pieces a { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.dm-piece-photo { display: block; aspect-ratio: 4 / 5; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.dm-piece-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.dm-pieces a:hover .dm-piece-photo img { transform: scale(1.03); }
.dm-piece-name { font: 600 21px/1.2 var(--serif); }
.dm-piece-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.dm-story { background: var(--card); border-block: 1px solid var(--line); }
.dm-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.dm-story h2 { font-size: clamp(25px, 2.6vw, 31px); }
.dm-story p:not(.dm-label) { margin: 0; color: var(--muted); max-width: 40ch; }
.dm-story b, .dm-story i { color: var(--ink); }

.dm-launch-inner { max-width: 620px; text-align: center; }
.dm-launch-inner > p:not(.dm-label) { margin: 0 auto 26px; color: var(--muted); max-width: 48ch; }
.dm-form { display: grid; gap: 14px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; box-shadow: var(--shadow); }
.dm-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.dm-form input[type=text], .dm-form input[type=email], .dm-form input[type=tel] { font: 16px/1.3 var(--sans); padding: 12px 14px; border: 1px solid #d6c9a8; border-radius: 8px; background: #fffdf8; color: var(--ink); }
.dm-form input:focus { outline: 2px solid var(--dm-gold); outline-offset: 1px; border-color: var(--dm-gold); }
.dm-optional { font-weight: 400; color: var(--muted); }
.dm-form label.dm-agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.dm-agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.dm-form .btn { justify-self: start; }
.dm-form-note { margin: 0; font-size: 14.5px; min-height: 1.4em; }
.dm-form-note.ok { color: var(--green); font-weight: 600; }
.dm-form-note.bad { color: var(--dm-red); font-weight: 600; }

.dm-footer { background: #17382a; color: #d9cfb6; }
.dm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.dm-footer p { margin: 0 0 10px; max-width: 46ch; }
.dm-footer .dm-footer-brand { color: var(--dm-ivory); margin-bottom: 14px; }
.dm-footer .dm-footer-brand img { height: 52px; }
.dm-footer .f-line .ic { color: var(--dm-gold); }
.dm-footer .footer-bottom { color: #b9ae93; border-top-color: rgba(199, 154, 62, .25); }

@media (max-width: 860px) {
    .dm-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .dm-story-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
    body.brand-site { padding-bottom: 0; }
    body.brand-site .bag-bar:not([hidden]) { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .dm-header .container { min-height: 0; padding-block: 10px; gap: 6px 12px; flex-wrap: wrap; }
    .dm-brand img { height: 38px; }
    .dm-brand > span { font-size: 17px; letter-spacing: 2.4px; }
    .dm-nav { width: 100%; margin-left: 0; gap: 2px; }
    .dm-nav a { padding: 8px 10px; font-size: 14.5px; }
    .dm-nav .dm-home-link { margin-left: auto; font-size: 13px; padding: 6px 10px; }
    .dm-hero-inner { padding-block: 44px 52px; }
    .dm-section { padding-block: 52px; }
    .dm-form { padding: 18px; }
    .dm-form .btn { justify-self: stretch; }
    .dm-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
