/* Kanchi Silk House — heritage boutique, not marketplace.
   Deep maroon and temple gold on warm ivory. Generous whitespace, thin gold
   rules instead of heavy borders, serif headings.

   Every colour and typeface here is a var() defined in layout.html from
   brand.go. NOTHING in this file may hardcode a colour — a reskin edits one
   Go file, not this stylesheet.

   Note there is no pure white: #fff flattens silk in product photography and
   turns zari grey next to it. Panels sit on --panel (a warm off-white). */

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

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
/* Section headings carry a short gold rule — the temple-border motif, reduced to
   a typographic device. It is what stops the page reading as a generic warm
   neutral and makes the gold structural rather than decorative. */
main > section > h2::after,
.section-head h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: .55rem;
  background: linear-gradient(to right, var(--gold), var(--gold-soft));
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }

a { color: inherit; text-decoration: none; }
p a, .desc a, .plain-list a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold); }
p a:hover { color: var(--maroon); }

main { max-width: 1140px; margin: 0 auto; padding: 2rem 1.5rem 4.5rem; min-height: 55vh; }
img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* honeypot: off-screen rather than display:none, which some bots skip */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: color-mix(in srgb, var(--ink) 58%, var(--ivory)); font-size: .9rem; }
.nowrap { white-space: nowrap; }
.req { color: var(--maroon); font-weight: 600; }
.mt { margin-top: 1.6rem; }

/* ---------- header ---------- */

.promo-strip {
  background: var(--maroon-deep); color: var(--gold-soft);
  border-bottom: 1px solid var(--gold);
  font-size: .74rem; letter-spacing: .12em; text-align: center;
  padding: .55rem 1rem;
}
.topbar {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 2px solid var(--gold);
  background: var(--ivory); flex-wrap: wrap;
}
.logo {
  font-size: 1.6rem; color: var(--maroon); letter-spacing: .02em;
}
.logo span { color: var(--gold); font-style: italic; }
.topbar nav { display: flex; gap: 1.4rem; flex: 1; flex-wrap: wrap; }
.topbar nav a {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.topbar nav a:hover { color: var(--maroon); border-bottom-color: var(--gold); }
.head-actions { display: flex; gap: 1rem; align-items: center; }
.cart-link, .wish-link {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.cart-link:hover, .wish-link:hover { color: var(--maroon); }
.cart-count, .wish-link span {
  display: inline-block; background: var(--maroon); color: var(--ivory);
  min-width: 1.5em; text-align: center; border-radius: 999px;
  padding: .05em .45em; font-size: .72rem;
}
.admin-bar { background: var(--maroon-deep); border-bottom-color: var(--maroon); }
.admin-bar .logo, .admin-bar nav a { color: var(--ivory); }
.admin-bar .logo span { color: var(--gold); }
.admin-bar nav a { font-size: .75rem; letter-spacing: .06em; }
.admin-bar nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- flash ---------- */

.flash {
  max-width: 1140px; margin: 1.2rem auto 0; padding: .85rem 1.1rem;
  border-left: 3px solid var(--gold); background: var(--panel); font-size: .92rem;
}
.flash-err { border-left-color: var(--maroon); }

/* ---------- buttons & forms ---------- */

.btn {
  display: inline-block; background: var(--maroon); color: var(--ivory);
  border: 1px solid var(--maroon); border-radius: 2px;
  font-family: var(--font-body); font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; font-size: .78rem;
  padding: .8rem 1.8rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--maroon-deep); border-color: var(--gold); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-sm { padding: .5rem 1rem; font-size: .72rem; }

input, select, textarea {
  font-family: inherit; font-size: .95rem; padding: .65rem .8rem;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--panel); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
textarea { line-height: 1.6; }
label {
  display: block; margin: 1rem 0 .3rem;
  font-size: .76rem; letter-spacing: .09em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 70%, var(--ivory));
}
.check-row {
  display: flex; align-items: center; gap: .5rem;
  text-transform: none; letter-spacing: normal; font-size: .9rem;
}
.check-row input { width: auto; }
.mt-label { margin-top: 2.4rem; }
.inline { display: inline; }
.inline input, .inline select { width: auto; }
.form-section {
  font-size: 1.05rem; margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid var(--line); color: var(--maroon);
}
.form-section .req {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  vertical-align: middle; margin-left: .4rem;
}

/* ---------- hero ---------- */

.hero { padding: 3rem 0 3.5rem; border-bottom: 1px solid var(--gold); }
.hero-eyebrow {
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--maroon); }
.hero-lede { margin: 1.6rem 0 2rem; font-size: 1.08rem; max-width: 40rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 3rem 0 .5rem; flex-wrap: wrap; gap: .8rem;
}
.quiet-link {
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--maroon); border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}

.occasions { margin-top: 3.5rem; }
.occasion-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.occasion-card {
  flex: 1 1 200px; padding: 2rem 1.5rem; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  font-family: var(--font-heading); font-size: 1.3rem; color: var(--maroon);
  transition: border-color .15s, background .15s;
}
.occasion-card:hover { border-color: var(--gold); background: var(--gold-soft); }

.honest {
  margin-top: 3.5rem; padding: 2rem; background: var(--panel);
  border-left: 3px solid var(--gold);
}
.honest p { margin-top: .8rem; max-width: 52rem; }
.honest .quiet-link { display: inline-block; margin-top: 1.2rem; }

/* ---------- product grid ---------- */

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem 1.6rem; margin-top: 1.8rem;
}
.card { display: flex; flex-direction: column; background: transparent; }
.card img {
  aspect-ratio: 3 / 4; object-fit: cover; background: var(--panel);
  border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s;
}
.card:hover img { box-shadow: 0 0 0 1px var(--gold); }
.card:hover img { border-color: var(--gold); }
.card-body { padding: .9rem .1rem 0; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h3 { font-size: 1.12rem; font-weight: 500; }
.card:hover h3 { color: var(--maroon); }

.weave-badge {
  align-self: flex-start; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .7rem; letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .15rem .7rem; background: var(--panel); color: var(--ink);
}
a.tag:hover { border-color: var(--gold); background: var(--gold-soft); }
.tag-on { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.tag-clear { border-style: dashed; }
.price { font-size: 1.05rem; margin-top: auto; color: var(--maroon); }
.soldout { color: var(--maroon); font-size: .85rem; }

/* ---------- shop ---------- */

.shop-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters {
  background: var(--panel); border: 1px solid var(--line); padding: 1.2rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: end;
}
.filters .f { flex: 1; min-width: 150px; }
.filters label { margin-top: 0; }
.facet-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 1.2rem 0; }
.facet-label {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-right: .4rem;
}
.empty { margin: 3rem 0; font-size: 1.05rem; }
.pagination { display: flex; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a {
  border: 1px solid var(--line); padding: .45rem .9rem; background: var(--panel); font-size: .9rem;
}
.pagination a.cur { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }

/* ---------- product page ---------- */

.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; padding-top: 1rem; }
.pd-info h1 { margin-top: .4rem; font-weight: 500; }
.eyebrow {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow:hover { color: var(--maroon); }
.pd-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .9rem 0; }
.pd .price { font-size: 1.7rem; margin: 1.2rem 0; }
.pd .desc { margin: 1.2rem 0 1.8rem; font-size: 1rem; }
.rating-line { display: inline-flex; gap: .5rem; align-items: center; margin-top: .6rem; }
.stars { color: var(--gold); letter-spacing: .1em; }
.pd-soldout { font-size: 1.1rem; margin: 1.2rem 0 .4rem; }
.alert-form, .wish-form { margin-top: 1.4rem; max-width: 24rem; }
.variant-opts { display: flex; gap: .7rem; margin: .8rem 0 1.4rem; flex-wrap: wrap; }
.variant-opts label {
  border: 1px solid var(--line); padding: .7rem 1.1rem; cursor: pointer;
  background: var(--panel); margin: 0; display: flex; gap: .55rem; align-items: center;
  font-size: .88rem; text-transform: none; letter-spacing: normal; color: var(--ink);
}
.variant-opts input { width: auto; }
.variant-opts label:has(input:checked) { border-color: var(--maroon); background: var(--gold-soft); }
.qty-row { display: flex; gap: .8rem; align-items: center; }
.qty-row input[type=number] { width: 5.5rem; }

/* ---------- deep zoom gallery ----------
   The single highest-value interaction on this site. The frame shows the
   ~1200px display rendition; on click it swaps to the full-resolution original
   as a background sized 250% and follows the pointer. No lightbox, no overlay,
   no chrome between the customer and the weave. */

.zoom-frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  background-repeat: no-repeat;
  background-size: 250%;
  cursor: zoom-in;
  overflow: hidden;
  touch-action: pan-y;
}
.zoom-frame img { width: 100%; display: block; transition: opacity .12s; }
.zoom-frame.zooming { cursor: zoom-out; border-color: var(--gold); touch-action: none; }
.zoom-frame.zooming img { opacity: 0; }
.zoom-frame.zoom-off { cursor: default; }
.zoom-hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  color: var(--ivory); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; text-align: center; padding: .5rem;
  pointer-events: none;
}
.gal-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.gal-thumb { padding: 0; border: 1px solid var(--line); background: var(--panel); cursor: pointer; width: 74px; }
.gal-thumb img { width: 100%; height: 92px; object-fit: cover; }
.gal-thumb.cur { border-color: var(--maroon); border-width: 2px; }

/* ---------- spec table & reviews ---------- */

.spec-head { font-size: 1.15rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
table.spec { width: 100%; border-collapse: collapse; margin-top: .8rem; background: transparent; border: 0; }
table.spec th, table.spec td { border: 0; border-bottom: 1px solid var(--line); padding: .7rem 0; vertical-align: top; }
table.spec th {
  width: 40%; text-align: left; font-weight: 500; background: transparent;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 65%, var(--ivory));
}
table.spec td { font-size: .94rem; }
.spec-note { margin-top: 1rem; }

.reviews { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.review-list { list-style: none; margin-top: 1.2rem; }
.review { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
.review p { margin-top: .5rem; max-width: 46rem; }
.review-form { margin-top: 1.8rem; max-width: 38rem; }
.review-form summary {
  cursor: pointer; color: var(--maroon); font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.review-form form { margin-top: 1rem; padding: 1.4rem; background: var(--panel); border: 1px solid var(--line); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 3rem; align-items: start; }
.lede { font-size: 1.05rem; margin: 1rem 0 1.8rem; max-width: 34rem; }
.contact-form { max-width: 34rem; }
.contact-details h2 { font-size: 1.3rem; }
.contact-details h3 {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-top: 1.6rem; font-family: var(--font-body);
}
.contact-details address { font-style: normal; line-height: 1.7; }
.callout {
  background: var(--gold-soft); border-left: 3px solid var(--gold);
  padding: .8rem 1rem; margin-top: .6rem; font-size: .9rem;
}
.plain-list { list-style: none; margin-top: .6rem; }
.plain-list li { padding: .35rem 0; font-size: .92rem; }

/* ---------- tables ---------- */

table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
th, td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; background: var(--gold-soft); color: var(--maroon-deep);
}
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; }
.msg-cell { max-width: 34rem; font-size: .9rem; }
.row-done td { opacity: .5; }
.row-pending td { background: color-mix(in srgb, var(--gold-soft) 45%, var(--panel)); }

/* ---------- cart / checkout ---------- */

.totals { margin-top: 1.5rem; max-width: 26rem; margin-left: auto; }
.totals .grand td { font-weight: 600; font-size: 1.1rem; background: var(--gold-soft); }
.co-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 1.6rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }

/* ---------- order timeline & pills ---------- */

.timeline { display: flex; gap: .5rem; margin: 1.8rem 0; flex-wrap: wrap; }
.tl-step {
  flex: 1; min-width: 110px; text-align: center; padding: .8rem .4rem;
  border: 1px solid var(--line); background: var(--panel);
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
}
.tl-step.done { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.tl-step.cancelled { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.pill {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: .15rem .75rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--panel); white-space: nowrap;
}
.pill.paid, .pill.approved { background: var(--gold-soft); border-color: var(--gold); color: var(--maroon-deep); }
.pill.shipped, .pill.completed { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.pill.delivered { background: var(--maroon-deep); color: var(--gold-soft); border-color: var(--maroon-deep); }
.pill.cancelled { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.pill.refunded, .pill.rejected { background: var(--panel); border-color: var(--maroon); color: var(--maroon); }

/* ---------- supplier panel (admin) ---------- */

.supplier-panel {
  margin-top: 2rem; padding: 1.8rem;
  background: var(--panel); border: 1px solid var(--gold); border-top: 3px solid var(--gold);
}
.supplier-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.supplier-head h2 { font-size: 1.3rem; color: var(--maroon); }
.supplier-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.supplier-grid h3 {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-family: var(--font-body); margin-bottom: .6rem;
}
.supplier-lines { font-size: .9rem; }
.supplier-lines code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.supplier-lines tfoot td { background: var(--gold-soft); border-top: 2px solid var(--gold); }
.supplier-link { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; font-size: .85rem; }
.margin-ok { color: var(--maroon-deep); font-weight: 600; }
.margin-bad { color: #A11; font-weight: 600; }
.address-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem; line-height: 1.65; white-space: pre-wrap;
  background: var(--ivory); border: 1px dashed var(--gold);
  padding: 1rem; margin: .5rem 0 .8rem; user-select: all;
}

/* ---------- admin ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.2rem; margin: 1.5rem 0 2.5rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 1.2rem; }
.stat b { display: block; font-size: 2rem; font-family: var(--font-heading); color: var(--maroon); }
.stat span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; margin-top: 1.2rem; }
.gw-block { background: var(--panel); border: 1px solid var(--line); padding: 1.4rem; margin: 1.2rem 0; }
.gw-hint { font-size: .82rem; background: var(--ivory); border: 1px dashed var(--gold); padding: .6rem .8rem; margin: .6rem 0; word-break: break-all; }
.admin-gallery { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.admin-gallery figure { border: 1px solid var(--line); background: var(--ivory); padding: .5rem; text-align: center; }
.admin-gallery img { width: 100px; height: 125px; object-fit: cover; }
.admin-gallery figcaption { font-size: .7rem; margin-top: .3rem; }
.img-warn { color: var(--maroon); font-weight: 600; }
.auth-panel { max-width: 27rem; margin: 3rem auto; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); background: var(--maroon-deep); color: var(--ivory); margin-top: 5rem; }
.foot-grid {
  max-width: 1140px; margin: 0 auto; padding: 3.5rem 1.5rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem;
}
.foot-logo { font-size: 1.5rem; color: var(--gold-soft); }
.foot-tag { margin-top: .8rem; opacity: .85; font-size: .92rem; }
.foot-fine { font-size: .78rem; opacity: .7; margin-top: .6rem; }
.foot-address { font-style: normal; font-size: .88rem; line-height: 1.7; opacity: .85; margin-bottom: .6rem; }
footer h4 {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem; font-weight: 600;
}
footer a { display: block; padding: .2rem 0; opacity: .88; font-size: .92rem; }
footer a:hover { color: var(--gold); opacity: 1; }
.foot-bottom {
  border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  text-align: center; padding: 1.2rem; font-size: .76rem; letter-spacing: .08em; opacity: .75;
}
.news-form { display: flex; gap: .5rem; margin-top: 1rem; max-width: 22rem; }
.news-form input { background: var(--ivory); border-color: var(--gold); }
.news-form .btn { background: var(--gold); border-color: var(--gold); color: var(--maroon-deep); white-space: nowrap; }
.news-form .btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- consent banner ---------- */

.consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--ink); color: var(--ivory); padding: 1rem 1.5rem;
  display: flex; gap: 1rem; align-items: center; justify-content: center;
  flex-wrap: wrap; border-top: 2px solid var(--gold); font-size: .88rem;
}

/* ---------- markdown content pages ---------- */

.docs { max-width: 46rem; }
.docs h1 { margin-bottom: 1.5rem; }
.docs h2 { margin-top: 2.2rem; color: var(--maroon); }
.docs h3 { margin-top: 1.4rem; }
.docs p, .docs ul { margin: .9rem 0; }
.docs ul { padding-left: 1.4rem; }
.docs pre { background: var(--ink); color: var(--ivory); padding: 1rem; overflow-x: auto; margin: 1rem 0; font-size: .85rem; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .supplier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  main { padding: 1.5rem 1rem 3rem; }
  .topbar { gap: 1rem; padding: 1rem; }
  .topbar nav { gap: .9rem; order: 3; width: 100%; }
  .pd, .co-grid, .admin-cols, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .pd { gap: 2rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* wide tables scroll inside their own box instead of overflowing the page
     and breaking taps (admin orders/products, supplier lines, cart) */
  table { display: block; overflow-x: auto; }
  table.spec { display: table; }
  /* On touch, tap-to-zoom then drag is the interaction; the hint says so. */
  .zoom-frame { background-size: 220%; }
}
