/* Alpha Greek Apparel — redesign preview */

:root {
  --maroon: #8a1c2b;
  --maroon-deep: #5e111c;
  --maroon-soft: #f4e5e3;
  --ink: #1b1416;
  --ink-2: #3a2f32;
  --muted: #6f6266;
  --paper: #faf7f3;
  --card: #ffffff;
  --line: #e9dfd9;
  --gold: #c39a4e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 20, 22, .06), 0 8px 24px rgba(27, 20, 22, .06);
  --shadow-lg: 0 2px 4px rgba(27, 20, 22, .06), 0 24px 48px rgba(27, 20, 22, .12);
  --wrap: 1200px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --greek: "Noto Serif", Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.display {
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -.01em;
  word-spacing: .12em;
  line-height: .98;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--maroon);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--maroon); color: #fff; box-shadow: 0 6px 16px rgba(138, 28, 43, .28); }
.btn-primary:hover { background: var(--maroon-deep); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--maroon-deep); }
.btn-light:hover { background: var(--maroon-soft); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.topbar {
  background: var(--maroon-deep); color: #f6dcdc;
  font-size: 13px; text-align: center; padding: 8px 16px;
}
.topbar a { color: #fff; font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 243, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 4px; }
.brand-name { font-weight: 800; font-stretch: 80%; font-size: 19px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand-name span { color: var(--maroon); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-2);
}
.nav a:hover { background: var(--maroon-soft); color: var(--maroon-deep); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-actions { margin-left: 8px; }
  .menu-btn { display: none !important; }
}
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--maroon-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--maroon); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 16px 16px; }
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: 12px 4px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 64px 0 88px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
/* Friendly headline: sentence case and a medium weight, with a script accent like the embroidery */
.hero-title { font-size: clamp(40px, 6.4vw, 72px); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 18px 0 20px; }
.hero-title em { display: block; font-family: "Yellowtail", cursive; font-style: normal; font-weight: 400; font-size: 1.12em; line-height: 1.1; letter-spacing: 0; color: var(--maroon); }
.hero-lede { font-size: 18px; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stage {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 28px;
  background:
    radial-gradient(120% 80% at 50% 0%, #fff 0%, transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(138, 28, 43, .045) 22px 23px),
    var(--maroon-soft);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center; padding: 8%;
}
.hero-stage .garment { width: 100%; height: 100%; transition: opacity .35s ease, transform .35s ease; }
.hero-stage .garment.swap { opacity: 0; transform: scale(.97); }
.stage-chip {
  position: absolute; left: 18px; top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600;
}
.stage-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #2e9e5b; box-shadow: 0 0 0 4px rgba(46, 158, 91, .18); }
.stage-caption {
  position: absolute; right: 18px; bottom: 18px;
  padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff;
  font-size: 13px; line-height: 1.3; text-align: right;
}
.stage-caption b { display: block; font-family: var(--greek); font-size: 20px; letter-spacing: .06em; }

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--line); background: var(--card); }
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 22px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 719px) { .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
.stat strong { display: block; font-size: 34px; font-weight: 800; font-stretch: 75%; color: var(--maroon); line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(36px, 5.5vw, 60px); margin: 10px 0 0; }
.section-head p { margin: 0; max-width: 30em; color: var(--muted); }
.link-arrow { font-weight: 700; color: var(--maroon); text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 720px) and (max-width: 1079px) { .product-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .product-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { aspect-ratio: 1 / 1; background: #f3eeea; display: grid; place-items: center; padding: 10%; }
.card-media .garment { width: 100%; height: 100%; transition: transform .3s ease; }
.card:hover .card-media .garment { transform: scale(1.04); }
/* Real product photos sit on white, edge to edge */
.card-media:has(.garment.photo), .preview:has(.garment.photo), .hero-stage:has(.garment.photo) { background: #fff; padding: 3%; }
.look-media:has(.garment.photo) { padding: 4%; }
/* Keep tall photos from stretching their box past its aspect ratio */
.card-media, .look-media { position: relative; }
.card-media > .garment, .look-media > .garment { position: absolute; inset: 0; margin: auto; width: 84%; height: 84%; }
.card-media > .garment.photo, .look-media > .garment.photo { width: 94%; height: 94%; }
.cart-thumb:has(.garment.photo) { background: #fff; padding: 2px; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.25; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { font-weight: 800; font-size: 17px; }
.card-cta { font-size: 14px; font-weight: 700; color: var(--maroon); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
}
/* Photos from the old site's "Step 1 / 2 / 3" banner, cropped below its text */
.step-photo { margin: -28px -24px 22px; aspect-ratio: 20 / 9; background: var(--line) center / cover no-repeat; }
.step-photo-style { background-image: url("../images/step-style.jpg"); }
.step-photo-color { background-image: url("../images/step-color.jpg"); }
.step-photo-look { background-image: url("../images/step-look.jpg"); }
.step-num { font-family: var(--greek); font-size: 44px; font-weight: 800; color: var(--maroon); line-height: 1; }
.step h3 { margin: 16px 0 6px; font-size: 21px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.look { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.look-media { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 12%; }
.look figcaption { padding: 12px 14px; font-size: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.look figcaption b { font-family: var(--greek); letter-spacing: .05em; }

/* ---------- Instagram gallery ---------- */
.insta-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .insta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.insta-post {
  container-type: inline-size;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
}
/* Starting height while loading (header + photo + action bar); the embed then reports its exact height */
.insta-post iframe { display: block; width: 100%; height: calc(125cqw + 175px); border: 0; }
.insta-grid { align-items: start; }
/* While an embed loads: a soft shimmering placeholder instead of a blank white box */
.insta-post iframe { transition: opacity .3s; }
.insta-post.loading iframe { opacity: 0; }
.insta-post.loading {
  background: linear-gradient(100deg, #f1ebe7 30%, #faf6f3 50%, #f1ebe7 70%) 0 0 / 300% 100%;
  animation: insta-shimmer 1.4s ease-in-out infinite;
}
@keyframes insta-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .insta-post.loading { animation: none; } }
.insta-cta { display: flex; justify-content: center; margin-top: 28px; }

/* Yelp rating card */
.yelp { padding-top: 0; }
.yelp-card {
  display: grid; gap: 24px; align-items: center; padding: 28px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 820px) { .yelp-card { grid-template-columns: 1fr auto; padding: 36px 44px; } }
.yelp-card h2 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 14px; }
.yelp-score { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.yelp-score p { margin: 0; color: var(--ink-2); }
.yelp-stars { display: inline-flex; gap: 3px; }
.yelp-star {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px;
  background: linear-gradient(90deg, #e00707 var(--fill), #d8d3d0 var(--fill));
}
.yelp-star svg { width: 20px; height: 20px; fill: #fff; }
.yelp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Banner ---------- */
.banner {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 44px 24px;
  background: var(--maroon); color: #fff;
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 860px) { .banner { grid-template-columns: 1.4fr 1fr; padding: 64px 56px; } }
.banner::after {
  content: "ΑΓΑ"; position: absolute; right: -10px; bottom: -60px;
  font-family: var(--greek); font-weight: 800; font-size: 240px; line-height: 1;
  color: rgba(255, 255, 255, .07); pointer-events: none;
}
.banner h2 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 12px; }
.banner p { margin: 0; color: #f3d3d6; font-size: 17px; max-width: 32em; }
.banner-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.banner .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.banner .btn-ghost:hover { background: #fff; color: var(--maroon-deep); }

/* ---------- About split ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split h2 { font-size: clamp(36px, 5vw, 56px); margin: 12px 0 18px; }
.split p { color: var(--ink-2); font-size: 17px; }
.letter-wall {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  font-family: var(--greek); font-weight: 800; text-align: center;
}
.letter-wall span {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); font-size: clamp(18px, 3vw, 28px); color: var(--ink-2);
  transition: background-color .2s, color .2s, transform .2s;
}
.letter-wall span:hover { background: var(--maroon); color: #fff; transform: rotate(-4deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdbfc2; padding: 56px 0 28px; margin-top: 32px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .brand-name { color: #fff; }
.footer-blurb { margin: 14px 0 0; max-width: 26em; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a2f32; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }

/* ---------- Page header ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(44px, 7vw, 80px); margin: 10px 0 8px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--maroon); }

/* ---------- Shop toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.select {
  min-height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231b1416' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; font-weight: 600; font-size: 14px; cursor: pointer;
}
.result-count { font-size: 14px; color: var(--muted); }

/* ---------- Design Studio garment picker ---------- */
.garment-picker { margin-top: 18px; }
.garment-row {
  display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 12px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.garment-tile {
  flex: none; width: 118px; scroll-snap-align: start;
  display: grid; gap: 2px; padding: 8px 8px 10px; border-radius: 12px;
  background: var(--card); border: 1.5px solid var(--line); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.garment-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.garment-tile[aria-current="true"] { border-color: var(--maroon); box-shadow: 0 0 0 2px var(--maroon); }
.garment-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; background: #f3eeea; overflow: hidden; }
.garment-thumb:has(.photo) { background: #fff; }
.garment-thumb .garment { position: absolute; inset: 6%; width: 88%; height: 88%; }
.garment-name { font-size: 13px; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.garment-price { font-size: 12px; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 32px; padding: 20px 0 64px; }
.pdp > * { min-width: 0; } /* wide content (the size table) scrolls inside its box instead of widening the page */
@media (min-width: 960px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.pdp-media { position: relative; }
@media (min-width: 960px) { .pdp-media { position: sticky; top: 92px; } }
.preview {
  position: relative; aspect-ratio: 1 / 1; border-radius: 24px; padding: 9%;
  background:
    radial-gradient(100% 70% at 50% 0%, #fff 0%, transparent 65%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(138, 28, 43, .04) 22px 23px),
    #f1e9e5;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.preview .garment { width: 100%; height: 100%; }
/* Front / back switch on the preview */
.view-toggle {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: flex; padding: 3px; gap: 2px; background: #fff; border-radius: 999px; box-shadow: var(--shadow);
}
.view-toggle button {
  min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-2);
}
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-toggle button:disabled { color: #c9bfc0; cursor: not-allowed; }

/* Sleeve & back embroidery */
.emb-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.emb-tab {
  position: relative; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px;
}
.emb-tab:hover { border-color: var(--ink); }
.emb-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.emb-tab small { margin-left: 6px; font-size: 12px; font-weight: 600; opacity: .7; }
.price-breakdown { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.price-breakdown:empty { display: none; }
.ship-note { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--maroon); }
/* Phones: a small copy of the live preview stays in the corner once the big one scrolls away */
.mini-preview {
  position: fixed; right: 12px; bottom: 12px; z-index: 45; width: 112px; aspect-ratio: 4 / 5; padding: 4px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
  box-shadow: 0 10px 28px rgba(40, 20, 25, .22);
}
.mini-preview[hidden] { display: none; }
.mini-preview svg { display: block; width: 100%; height: 100%; }
@media (min-width: 960px) { .mini-preview { display: none !important; } }
/* "Most popular" on the Vertical Left layout button */
.pill-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--maroon); }
.pill[aria-checked="true"] .pill-tag { color: #f3d48b; }
/* Group orders: a quantity per size */
.link-btn { display: inline-block; margin-top: 12px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--maroon); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.size-qtys { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.size-qtys[hidden], .pills[hidden], .buy-row .qty[hidden] { display: none; }
.size-qty { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.size-qty.on { border-color: var(--ink); }
.size-qty-name { font-weight: 700; }
.size-qty .qty { border: 0; }
.size-qty .qty button { width: 34px; height: 34px; font-size: 17px; }
.size-qty .qty button:disabled { color: #c9bfc0; cursor: default; background: none; }
/* Share this design (under the preview) and the note when changing a cart item */
.share-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.share-btn:hover { border-color: var(--ink); }
.share-btn svg { width: 18px; height: 18px; }
.edit-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--maroon-soft); font-size: 13.5px; color: var(--ink-2); }
.edit-note a { color: var(--maroon); font-weight: 700; }
.cart-edit { margin-right: 14px; font-size: 13px; font-weight: 700; color: var(--maroon); }
/* Size guide under the size buttons */
.pill-extra { margin-left: 4px; font-size: 11px; font-weight: 600; opacity: .7; }
.size-guide { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.size-guide summary { cursor: pointer; font-weight: 700; color: var(--maroon); width: fit-content; }
.size-guide p { margin: 10px 0; }
.size-guide a { color: var(--maroon); font-weight: 600; }
.size-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table tbody tr:last-child > * { border-bottom: 0; }
.size-table thead th { font-weight: 700; color: var(--ink); background: #fbf8f6; }
.size-table tbody th { text-align: left; font-weight: 600; white-space: normal; min-width: 130px; }
.emb-dot { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.emb-panel { padding: 16px; border-radius: 12px; background: #fbf8f6; border: 1px solid var(--line); }
.emb-panel [hidden] { display: none; }
/* Lines within one embroidery spot */
.emb-lines { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.emb-lines[hidden] { display: none; }
.emb-line {
  display: flex; flex-direction: column; justify-content: center; min-height: 44px; max-width: 150px; padding: 4px 12px;
  border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; text-align: left;
}
.emb-line small { font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.emb-line:hover { border-color: var(--ink); }
.emb-line[aria-pressed="true"] { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); }
.emb-line.add { border-style: dashed; color: var(--maroon); }
/* Embroidery thread picker: Sessa's 20-column chart */
.thread-find { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.thread-find label { font-size: 13px; font-weight: 700; }
.thread-find .input { width: 110px; min-height: 40px; }
.thread-find-msg { font-size: 13px; color: var(--maroon); }
.thread-chart {
  display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); grid-template-rows: auto repeat(23, auto);
  grid-auto-flow: column; gap: 2px; padding: 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  max-width: 460px;
}
/* Popular threads, above the full chart */
.thread-popular { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.thread-popular .thread { width: 34px; height: 34px; border-radius: 50%; }
.thread-popular .thread.metallic { font-size: 12px; }
.thread-more { margin: 10px 0 0; }
.thread-all { margin-top: 12px; }
.thread-all[hidden] { display: none; }
/* Optional sections that fold away on phones */
.opt-group { border-top: 1px solid var(--line); }
.opt-group > summary { display: flex; flex-direction: column; gap: 2px; padding: 18px 28px 18px 0; cursor: pointer; list-style: none; position: relative; }
.opt-group > summary::-webkit-details-marker { display: none; }
.opt-group > summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--maroon); }
.opt-group[open] > summary::after { content: "−"; }
.opt-group-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.opt-group > summary small { font-size: 13px; color: var(--muted); }
.thread-col-num { font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 2px; }
.thread {
  aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.thread:hover { box-shadow: 0 0 0 2px var(--ink); position: relative; z-index: 1; }
.thread[aria-checked="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--maroon); position: relative; z-index: 2; }
/* Metallic threads (column 20): foil gradient plus a sparkle so they read as metallic, not flat gold or gray */
.thread.metallic { position: relative; display: grid; place-items: center; color: #fff; font-size: 9px; line-height: 1; text-shadow: 0 0 2px rgba(0, 0, 0, .45); }
.thread.metallic::after { content: "✦"; }
.thread.metallic.MG { background: linear-gradient(135deg, #7a5c1c, #f7e7a1 30%, #b88f2c 55%, #fff4c2 75%, #8f6c22); }
.thread.metallic.MS { background: linear-gradient(135deg, #70767d, #f7f9fb 30%, #a3a9b0 55%, #ffffff 75%, #7d848b); }
/* Line height slider */
.emb-size { display: flex; align-items: center; gap: 10px; }
.emb-size-btn {
  flex: none; width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); font-size: 18px; font-weight: 700; line-height: 1;
}
.emb-size-btn:hover:not(:disabled) { border-color: var(--ink); }
.emb-size-btn:disabled { color: #c9bfc0; cursor: default; }
.emb-size input[type="range"] {
  flex: 1; min-width: 0; height: 6px; margin: 0; border-radius: 999px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: linear-gradient(var(--maroon), var(--maroon)) 0 / var(--fill, 50%) 100% no-repeat, var(--line);
}
.emb-size input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--maroon); box-shadow: var(--shadow);
}
.emb-size input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--maroon); }
.emb-keys { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.emb-key {
  min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); font-family: var(--greek); font-size: 15px; color: var(--ink-2);
}
.emb-key:hover { border-color: var(--ink); color: var(--ink); }
.emb-fonts .pill { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 96px; padding: 6px 12px; }
.emb-fonts .pill span { font-size: 17px; line-height: 1.2; }
.emb-fonts .pill small { font-size: 12px; opacity: .7; }
.emb-fonts .font-more { min-width: 0; font-family: var(--font); color: var(--maroon); border-style: dashed; }
/* All fonts: searchable, grouped by style, each name in its own font */
.font-browser { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.font-browser .input { min-height: 40px; }
.font-groups { max-height: 360px; overflow-y: auto; margin-top: 10px; padding-right: 4px; }
.font-group + .font-group { margin-top: 12px; }
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin-top: 6px; }
.font-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.font-pick span { font-size: 18px; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.font-pick small { font-size: 12px; color: var(--muted); }
.font-pick:hover { border-color: var(--ink); }
.font-pick[aria-checked="true"] { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); background: var(--maroon-soft); }

/* Zoomable window inside the preview card */
.preview-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; touch-action: pan-y; user-select: none; }
.preview-viewport.zoomed { cursor: grab; touch-action: none; }
.preview-viewport.dragging { cursor: grabbing; }
#preview { transform-origin: 0 0; will-change: transform; }
.zoom-controls {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
}
.zoom-btn {
  min-width: 36px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; color: var(--ink);
}
.zoom-btn:hover:not(:disabled) { background: var(--maroon-soft); }
.zoom-btn:disabled { color: #c9bfc0; cursor: default; }
.zoom-reset { font-size: 13px; color: var(--maroon); }
.zoom-reset[hidden] { display: none; }
.zoom-level { min-width: 44px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.zoom-hint {
  position: absolute; left: 14px; bottom: 18px; z-index: 2;
  font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 999px;
}
.zoom-hint[hidden] { display: none; }
@media (max-width: 520px) { .zoom-hint { display: none; } }
.preview-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600;
}
.preview-summary {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px;
  font-size: 14px; color: var(--muted);
}
.preview-summary b { color: var(--ink); font-weight: 600; }
.preview-disclaimer { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); font-style: italic; }
.pdp-info h1 { font-size: clamp(38px, 5vw, 56px); margin: 8px 0 6px; }
.pdp-price { font-size: 26px; font-weight: 800; margin: 0 0 12px; }
.pdp-desc { color: var(--ink-2); margin: 0 0 24px; }
.opt { padding: 20px 0; border-top: 1px solid var(--line); }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.opt-label { font-weight: 700; font-size: 15px; }
.opt-value { font-size: 14px; color: var(--muted); }
.opt-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  position: relative; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 0; padding: 0; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
  transition: transform .12s ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.swatches.small .swatch { width: 26px; height: 26px; }
/* Label above each set of twill swatches (Sports Twill, Sports Brite Metallic) */
.swatch-set { flex-basis: 100%; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.swatch-set:first-child { margin-top: 0; }
/* Custom foreground fabric */
/* "Use my own fabric": the logo's maroon, so it stands out from the swatches whether or not it's chosen */
.fabric-pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 8px 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #a8283a 0%, var(--maroon) 45%, var(--maroon-deep) 100%);
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(138, 28, 43, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fabric-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(138, 28, 43, .38), inset 0 1px 0 rgba(255, 255, 255, .18); }
.fabric-pill:active { transform: translateY(0); }
.fabric-pill-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.fabric-pill-icon svg { width: 17px; height: 17px; }
.fabric-pill-price {
  padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--maroon);
  font-size: 12px; font-weight: 800;
}
/* Chosen: a ring around it and a check in place of the picture */
.fabric-pill[aria-checked="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--maroon), 0 8px 20px rgba(138, 28, 43, .32); }
.fabric-pill[aria-checked="true"] .fabric-pill-icon { background: #fff; color: var(--maroon); }
.fabric-pill[aria-checked="true"] .fabric-pill-icon svg { display: none; }
.fabric-pill[aria-checked="true"] .fabric-pill-icon::after { content: "✓"; font-size: 16px; font-weight: 900; }
.fabric-panel { margin-top: 14px; padding: 16px; border-radius: 12px; background: #fbf8f6; border: 1px solid var(--line); }
.fabric-panel .pills .pill[aria-checked="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.fabric-panel { border-color: rgba(138, 28, 43, .25); }
.fabric-drop {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed var(--line); background: var(--card); font-weight: 700; font-size: 14px; color: var(--maroon);
}
.fabric-drop:hover { border-color: var(--maroon); }
.fabric-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fabric-drop:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.fabric-drop img { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.fabric-drop img[hidden] { display: none; }
.fabric-status { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.fabric-status:empty { display: none; }
#fabric-mail a { color: var(--maroon); font-weight: 600; }
/* Photos of letters to recreate, under "Notes for us" */
.refs { margin-top: 18px; }
.refs .opt-hint { margin: 4px 0 0; }
.refs-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.refs-list:empty { display: none; }
.ref { position: relative; width: 84px; }
.ref img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); background: #f1ebe7; }
.ref.busy img { opacity: .45; }
.ref small { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref button { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.ref button:hover { background: var(--maroon); }
.fabric-drop[hidden] { display: none; }
.fabric-cut { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(138, 28, 43, .15); }
.fabric-cut label { font-size: 14px; }
.fabric-cut .textarea { min-height: 84px; }
.fabric-rule {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
  background: var(--maroon-soft); color: var(--maroon-deep); font-size: 14px;
}
.swatch.metallic::after {
  content: "✦"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 11px; text-shadow: 0 0 2px rgba(0, 0, 0, .5);
}
.swatch.none {
  background: #fff;
  background-image: linear-gradient(135deg, transparent 46%, #c43a3a 46%, #c43a3a 54%, transparent 54%);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-width: 52px; min-height: 44px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pills.layouts .pill { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 10px; min-width: 88px; font-size: 12px; }
.pills.layouts svg { width: 30px; height: 30px; }
.letter-pickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.letter-pickers select {
  width: 100%; min-height: 48px; padding: 0 30px 0 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background-color: var(--card); font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231b1416' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.letter-pickers label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.letter-pickers .glyph { font-family: var(--greek); font-size: 22px; color: var(--ink); line-height: 1; }
details.threads { margin-top: 14px; }
details.threads summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--maroon); }
details.threads .swatches { margin-top: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.input, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .letter-pickers select:focus { border-color: var(--ink); outline: none; }
.notes { margin: 0; padding: 14px 16px 14px 34px; border-radius: 12px; background: var(--maroon-soft); font-size: 14px; color: var(--ink-2); }
.notes li + li { margin-top: 4px; }
.buy-row { display: flex; gap: 10px; margin-top: 8px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: var(--maroon-soft); }
.qty output { min-width: 24px; text-align: center; font-weight: 700; }
.buy-row .btn { flex: 1; }
.form-error { color: #b42318; font-size: 14px; font-weight: 600; margin: 8px 0 0; min-height: 1.2em; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(27, 20, 22, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(420px, 100%); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--card); }
.drawer-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.drawer-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 76px; height: 76px; border-radius: 10px; background: #f1e9e5; padding: 8px; }
.cart-item h3 { margin: 0; font-size: 15px; }
.cart-meta { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.cart-meta b { font-family: var(--greek); color: var(--ink); letter-spacing: .04em; }
.cart-notes { display: inline-block; margin-top: 4px; font-style: italic; white-space: pre-line; overflow-wrap: anywhere; }
.cart-addons { font-size: 12px; color: var(--muted); margin: -4px 0 8px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-row .qty button { width: 34px; height: 34px; font-size: 16px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.empty { text-align: center; padding: 48px 8px; color: var(--muted); }
.empty .display { font-size: 30px; color: var(--ink); margin-bottom: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
  transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- About / contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 40px; } }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { margin: 0 0 16px; font-size: 22px; }
.contact-hint { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.contact-hint a { color: var(--maroon); font-weight: 600; overflow-wrap: anywhere; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.contact-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--maroon-soft); color: var(--maroon); display: grid; place-items: center; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list a { font-weight: 600; word-break: break-word; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.policies { display: grid; gap: 12px; }
@media (min-width: 760px) { .policies { grid-template-columns: repeat(3, 1fr); } }
.policy { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 96px; }
.policy h3 { margin: 0 0 6px; font-size: 18px; }
.policy p { margin: 0; color: var(--muted); font-size: 15px; }
/* A policy with full text spans the row, its topics side by side on wide screens */
.policy.wide { grid-column: 1 / -1; }
.policy-points { display: grid; gap: 18px; margin-top: 12px; }
@media (min-width: 760px) { .policy-points { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.policy-points h4 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.policy-points p { line-height: 1.6; }
/* Long policies: summary up front, full text behind a toggle */
.policy-full { margin-top: 12px; }
.policy-full summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--maroon); }
.policy-text { max-width: 72ch; margin-top: 8px; }
.policy-text h4 { margin: 24px 0 6px; font-size: 16px; color: var(--ink); }
.policy-text h5 { margin: 14px 0 4px; font-size: 14px; color: var(--ink-2); }
.policy-text p, .policy-text li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.policy-text p + p { margin-top: 10px; }
.policy-text ul { margin: 0; padding-left: 20px; }
.policy-text li + li { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
