/* bartendershirt.com — mobile-first. Brand tokens live in :root; change them there. */

:root {
  --ink: #111111;
  --ink-2: #3d3d3d;
  --muted: #6e6e6e;
  --line: #e7e5e1;
  --bg: #ffffff;
  --surface: #f4f2ee;       /* product photo tiles, soft panels */
  --surface-2: #faf9f7;
  --dark: #121212;          /* hero, footer, announcement */
  --on-dark: #f5f5f4;
  --on-dark-muted: #a3a3a3;
  --accent: #111111;        /* buttons; swap for a brand color later */
  --accent-hover: #2e2e2e;
  --on-accent: #ffffff;
  --error-bg: #fdecea;
  --error-ink: #9b1c13;
  --ok-bg: #e8f3ea;
  --ok-ink: #1d5b2c;
  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; width: 100%; padding-bottom: 64px; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-2); }

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.025em; }

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.narrow { max-width: 680px; }
.center { text-align: center; }
.block { display: block; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 30; }
.skip-link:focus { left: 8px; }

.eyebrow, .kicker {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .75rem; font-weight: 600; color: var(--muted);
  margin: 0 0 12px;
}

/* JS / no-JS swaps (site.js sets html.js) */
.js .no-js-only { display: none !important; }

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

.announcement {
  background: var(--dark); color: var(--on-dark);
  text-align: center; font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 16px;
}

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.logo {
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-weight: 800; font-size: .9375rem; letter-spacing: .18em; text-transform: uppercase;
}
.logo:hover { color: var(--ink); }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: 8px 10px; font-size: .9375rem; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover { color: var(--ink); }
.header-nav a[aria-current="page"]:not(.cart-link) { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 419px) {
  .logo { font-size: .8125rem; letter-spacing: .12em; }
  .header-nav a { padding: 8px 6px; font-size: .875rem; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}
.cart-link { position: relative; display: inline-flex; align-items: center; }
.icon-link { display: inline-flex; align-items: center; }
.header-nav a.icon-link[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
.cart-count {
  position: absolute; top: 0; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--ink); color: #fff;
  font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }

.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 56px 0 32px; font-size: .9375rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .muted { color: var(--on-dark-muted); }
.footer-inner { display: grid; gap: 32px; margin-bottom: 40px; }
.footer-brand { color: var(--on-dark); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .875rem; margin: 0 0 10px; }
.footer-heading { color: var(--on-dark); font-weight: 600; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.site-footer .wrap.small { border-top: 1px solid #2a2a2a; padding-top: 24px; }

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .logo { font-size: 1rem; }
}

/* ---------- buttons, forms, notices ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 13px 26px; min-height: 50px;
  font: 600 .9375rem/1.2 var(--font); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.button:disabled { background: #bdbdbd; border-color: #bdbdbd; cursor: not-allowed; }
.button-light { background: #fff; color: var(--ink); border-color: #fff; }
.button-light:hover { background: #e9e9e9; border-color: #e9e9e9; color: var(--ink); }
.button-wide { width: 100%; }
.button-link {
  background: none; border: 0; padding: 4px 0; color: var(--muted);
  font: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.button-link:hover { color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, legend { font-weight: 600; font-size: .875rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input:not([type]), select {
  font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid #cfccc6; border-radius: var(--radius);
  padding: 11px 13px; min-height: 48px; width: 100%;
  transition: border-color .15s;
}
input:disabled { background: var(--surface); color: var(--muted); }
input:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--ink); }
.stack-form { max-width: 440px; margin-top: 24px; }

.notice { padding: 13px 16px; border-radius: var(--radius); background: var(--surface); margin: 0 0 16px; font-size: .9375rem; }
.notice-error { background: var(--error-bg); color: var(--error-ink); }
.notice-ok { background: var(--ok-bg); color: var(--ok-ink); }
.field-hint { margin: 2px 0 0; font-size: .8125rem; color: var(--muted); }
.field-error { margin: 2px 0 0; font-size: .875rem; color: var(--error-ink); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error-ink); }
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1.4fr 1fr .8fr; } }
.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: .9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-actions { display: flex; align-items: center; gap: 20px; }
.button-small { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.form-error { color: var(--error-ink); margin: 10px 0 0; font-size: .9375rem; }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  max-width: 440px; margin: 0 auto;
  background: var(--dark); color: var(--on-dark);
  padding: 14px 18px; border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: .9375rem;
}
.toast a { color: #fff; font-weight: 600; white-space: nowrap; }

/* ---------- home ---------- */

.hero { background: var(--dark); color: var(--on-dark); }
.hero-inner { padding-top: 72px; padding-bottom: 80px; }
.hero .eyebrow { color: var(--on-dark-muted); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; margin-bottom: 20px; }
.hero .lede { color: #c9c9c9; font-size: 1.125rem; max-width: 34em; margin: 0 0 32px; }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
  .hero-art { display: block; width: 100%; max-width: 420px; justify-self: end; }
}

/* Random featured product in the hero circle (falls back to the SVG shirt) */
.hero-feature { position: relative; color: inherit; text-decoration: none; }
.hero-feature-photo {
  display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #1b1b1b; box-shadow: 0 0 0 10px #1b1b1b;
}
.hero-feature-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-feature:hover .hero-feature-photo img { transform: scale(1.05); }
.hero-feature-label {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; max-width: 92%;
  background: #fff; color: var(--ink); border-radius: 999px;
  padding: 10px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  font-size: .875rem; white-space: nowrap;
}
.hero-feature-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.hero-feature-cta { color: var(--muted); flex: none; transition: color .15s; }
.hero-feature:hover .hero-feature-cta { color: var(--ink); }
.hero-feature:focus-visible { outline: none; }
.hero-feature:focus-visible .hero-feature-photo { box-shadow: 0 0 0 10px #1b1b1b, 0 0 0 13px #fff; }

.section { padding: 56px 0 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0; }
/* Home rows of up to 4: 2 columns on phones, 4 from tablet up, so a row never leaves one card alone. */
@media (min-width: 720px) { .product-grid.product-grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
.section-link { font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.section-link:hover { color: var(--ink); text-decoration: underline; }
.shop-all { text-align: center; padding: 40px 0 8px; }

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

.shop-head { padding-bottom: 8px; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 14px; }
.search-field { position: relative; display: flex; flex: 1 1 320px; min-width: 0; }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field input[type="search"] {
  font: inherit; color: var(--ink); width: 100%; min-height: 50px;
  padding: 12px 14px 12px 44px;
  border: 1px solid #cfccc6; border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg); -webkit-appearance: none; appearance: none;
}
.search-field input[type="search"]:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.search-button { border-radius: 0 var(--radius) var(--radius) 0; padding-left: 20px; padding-right: 20px; }
.sort-field { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; }
.sort-field label { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.sort-field select { width: auto; min-width: 190px; min-height: 50px; }
.results-meta { color: var(--muted); font-size: .9375rem; margin: 0 0 24px; }
.results-meta a { color: var(--ink-2); }
@media (max-width: 559px) {
  .sort-field { flex: 1 1 100%; }
  .sort-field select { flex: 1; min-width: 0; }
}

.coming-soon {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 56px 24px; text-align: center;
}
.coming-soon h3 { font-size: clamp(1.375rem, 4vw, 1.75rem); }
.coming-soon p:last-child { margin: 0 auto; max-width: 30em; }

.product-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1040px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card a { color: inherit; text-decoration: none; display: block; }
.product-card-image { aspect-ratio: 1; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card a:hover img { transform: scale(1.04); }
.product-card-body { padding-top: 12px; }
.product-card-title { font-size: .9375rem; font-weight: 600; letter-spacing: -0.005em; margin: 0 0 2px; }
.product-card-price { margin: 0; color: var(--muted); font-size: .9375rem; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 48px; font-size: .9375rem; }

.perks {
  display: grid; gap: 24px; margin: 48px 0 0; padding: 40px 0 0;
  border-top: 1px solid var(--line);
}
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk .icon { width: 28px; height: 28px; margin-top: 2px; }
.perk div { display: flex; flex-direction: column; }
.perk strong { font-weight: 600; }
.perk span { color: var(--muted); font-size: .9375rem; }
@media (min-width: 720px) { .perks { grid-template-columns: repeat(3, 1fr); } }

.empty { padding: 40px 0; }

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

.breadcrumbs { font-size: .8125rem; color: var(--muted); padding: 20px 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

.product { display: grid; gap: 28px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; } }

.gallery-main { aspect-ratio: 1; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
/* contain, not cover: non-square images (size charts) show whole, as in BigCommerce's Cornerstone */
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-zoom { display: block; position: relative; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  opacity: .85; transition: opacity .15s, transform .15s;
}
.gallery-zoom:hover .gallery-zoom-hint { opacity: 1; transform: scale(1.06); }
.gallery-zoom-hint .icon { width: 20px; height: 20px; }
.gallery-thumbs {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
}
.js .gallery-thumbs .is-filtered { display: none; }
.gallery-thumbs button {
  padding: 0; border: 1px solid transparent; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); cursor: pointer; width: 100%; aspect-ratio: 1;
  opacity: .7; transition: opacity .15s, border-color .15s;
}
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* Full-screen image viewer (native <dialog>, built by site.js) */
.lightbox-open { overflow: hidden; }
.lightbox {
  padding: 0; margin: 0; border: 0;
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  background: rgba(12,12,12,.97); color: #fff;
}
.lightbox::backdrop { background: rgba(12,12,12,.97); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 68px 12px 84px; touch-action: pan-y pinch-zoom;
}
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-btn {
  position: absolute; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  transition: background .15s;
}
.lightbox-btn:hover { background: rgba(255,255,255,.24); }
.lightbox-btn .icon { stroke-width: 2; }
.lightbox :focus-visible { outline-color: #fff; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev, .lightbox-next { bottom: 18px; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-counter {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  margin: 0; font-size: .875rem; font-weight: 500; letter-spacing: .04em; color: #d4d4d4;
}
@media (min-width: 720px) {
  .lightbox-stage { padding: 72px 96px; }
  .lightbox-prev, .lightbox-next { bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
  .lightbox-close { top: 20px; right: 24px; }
  .lightbox-counter { bottom: 28px; }
}

@media (min-width: 860px) { .product-info { position: sticky; top: 96px; } }
.product-info h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin-bottom: 10px; }
.price { font-size: 1.25rem; font-weight: 500; margin: 0 0 28px; }
.compare-at { color: var(--muted); font-weight: 400; font-size: 1rem; margin-left: 10px; }

.option-group { border: 0; padding: 0; margin: 0 0 22px; }
.option-group legend { margin-bottom: 10px; padding: 0; }
.option-group legend span { font-weight: 400; color: var(--muted); }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.option-value { position: relative; }
.option-value input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-value span {
  display: inline-block; min-width: 54px; min-height: 46px; padding: 11px 16px;
  border: 1px solid #cfccc6; border-radius: var(--radius); background: var(--bg);
  text-align: center; font-size: .875rem; font-weight: 500; line-height: 1.5;
  transition: border-color .15s, background .15s, color .15s;
}
.option-value input:hover + span { border-color: var(--ink); }
.option-value input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.option-value input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.option-value input:disabled + span { color: #b5b2ac; border-color: var(--line); background: var(--surface-2); text-decoration: line-through; }
.option-value input:disabled { cursor: not-allowed; }

.add-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 8px; }
.qty-field { width: 84px; flex: none; margin-bottom: 0; }
.add-row .button { flex: 1; }

.product-perks { list-style: none; padding: 20px 0; margin: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9375rem; }
.product-perks li { padding: 4px 0 4px 26px; position: relative; color: var(--ink-2); }
.product-perks li::before,
.product-description li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px;
  border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg);
}
.product-description { color: var(--ink-2); }
.product-description h2 { font-size: 1rem; color: var(--ink); margin: 24px 0 8px; }
.product-description ul { list-style: none; padding: 0; margin: 0 0 16px; }
.product-description li { padding: 4px 0 4px 26px; position: relative; }

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

.page-title { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-top: 40px; margin-bottom: 24px; }

.cart-layout { display: grid; gap: 32px; }
@media (min-width: 860px) { .cart-layout { grid-template-columns: 1fr 360px; gap: 48px; align-items: start; } }

.cart-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 4px 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.cart-item-image { grid-row: span 2; }
.cart-item-image img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.cart-item-info { display: flex; flex-direction: column; min-width: 0; }
.cart-item-title { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-item-total { grid-column: 3; grid-row: 1; font-weight: 600; text-align: right; }
.cart-item-actions { grid-column: 2 / 4; display: flex; align-items: center; gap: 16px; }
.qty-form { display: flex; align-items: center; gap: 8px; }
.qty-form input { width: 72px; min-height: 40px; padding: 6px 10px; }

.cart-summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; }
.cart-summary form, .cart-summary > .button { margin: 18px 0 10px; }

/* ---------- orders ---------- */

.order-details { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 24px 0; }
.order-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.order-totals { margin: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.order-totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.order-totals dt, .order-totals dd { margin: 0; }
.order-total { font-weight: 700; }
.ship-to { margin-top: 18px; }
.ship-to address { font-style: normal; color: var(--ink-2); }
.small-heading { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.shipments ul { padding-left: 18px; }

.status-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--surface); font-weight: 600; font-size: .8125rem;
}
.status-shipped, .status-delivered { background: var(--ok-bg); color: var(--ok-ink); }
.status-canceled { background: var(--error-bg); color: var(--error-ink); }

/* ---------- accounts ---------- */

.auth { max-width: 440px; margin: 0 auto; padding-bottom: 24px; }
.auth .stack-form { margin-top: 8px; }
.auth-switch { margin: 22px 0 8px; }

.account-layout { display: grid; gap: 8px 48px; padding-top: 8px; }
@media (min-width: 860px) { .account-layout { grid-template-columns: 200px 1fr; align-items: start; } }
.account-nav {
  display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center;
  border-bottom: 1px solid var(--line); padding: 16px 0 12px;
}
.account-nav-name { display: none; }
.account-nav a, .account-nav .button-link {
  padding: 8px 12px; border-radius: var(--radius); text-decoration: none;
  color: var(--ink-2); font-size: .9375rem; font-weight: 500;
}
.account-nav a:hover, .account-nav .button-link:hover { background: var(--surface); color: var(--ink); }
.account-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.account-nav form { margin-left: auto; }
.account-nav .button-link { text-decoration: none; }
@media (min-width: 860px) {
  .account-nav { flex-direction: column; align-items: stretch; border-bottom: 0; padding-top: 40px; position: sticky; top: 88px; }
  .account-nav-name { display: block; font-weight: 600; margin: 0 12px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-nav form { margin: 8px 0 0; }
  .account-nav .button-link { width: 100%; text-align: left; }
}
.account-main { min-width: 0; }
.account-main .page-title { margin-top: 24px; }
@media (min-width: 860px) { .account-main .page-title { margin-top: 40px; } }

.account-cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .account-cards { grid-template-columns: 1fr 1fr; } .account-card-wide { grid-column: 1 / -1; } }
.account-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.account-cards .account-card { margin-bottom: 0; }
.account-card h2 { font-size: 1.125rem; letter-spacing: -0.01em; margin: 0 0 14px; }
.account-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.account-card address { font-style: normal; color: var(--ink-2); margin-bottom: 6px; }
.account-card .stack-form { margin-top: 0; }
.verify-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; }
.verify-banner p { margin: 0; }

.order-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.order-row a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.order-row a:hover { background: var(--surface); }
.order-row-main { display: flex; flex-direction: column; }
.order-row-items { grid-column: 1; }
.order-row .status-badge { grid-column: 2; grid-row: 1; justify-self: end; }
.order-row-total { grid-column: 2; grid-row: 2; justify-self: end; font-weight: 600; }
@media (min-width: 720px) {
  .order-row a { grid-template-columns: 1.1fr 1.6fr auto 90px; }
  .order-row-items, .order-row .status-badge, .order-row-total { grid-column: auto; grid-row: auto; }
}

.address-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .address-list { grid-template-columns: 1fr 1fr; } }
.address-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: var(--bg); }
.address-card.is-default { border-color: var(--ink); }
.address-card address { font-style: normal; color: var(--ink-2); line-height: 1.6; }
.address-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--ink); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.address-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; font-size: .875rem; }
.address-actions a { color: var(--ink-2); }
.address-add { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 20px; background: var(--surface-2); }
.address-add summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.address-add[open] summary { margin-bottom: 4px; }
.address-form { max-width: 560px; margin-top: 0; padding-bottom: 16px; }

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

.prose { color: var(--ink-2); }
.prose h1, .prose h2 { color: var(--ink); }
.prose h2 { font-size: 1.1875rem; margin-top: 2em; letter-spacing: -0.015em; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.contact-email { font-size: 1.25rem; font-weight: 600; }
