:root {
  --paper: #f6f2ea;
  --card: #ffffff;
  --ink: #1f1a14;
  --muted: #6e6458;
  --line: #e3dacb;
  --accent: #a9532b;
  --accent-dark: #86401f;
  --ok: #2f6b3d;
  --radius: 14px;
  --display: 'Sancreek', Georgia, serif;
  --serif: 'Old Standard TT', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- chrome ---------- */
.announce { background: var(--ink); color: var(--paper); text-align: center; font-size: 13px; letter-spacing: .04em; padding: 8px 16px; }
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(246, 242, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 34px; width: auto; }
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-head nav a { text-decoration: none; }
.site-head nav a:hover { color: var(--accent); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; }
.cart-link:hover { background: var(--ink); color: var(--paper) !important; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.cart-count:empty { display: none; }

.site-foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-foot img { height: 56px; width: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; background: var(--ink); border-color: var(--ink); }
.btn.wide { width: 100%; }

/* ---------- landing ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.kicker { font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font: 400 clamp(44px, 6.4vw, 84px)/1.02 var(--display); margin: 18px 0 20px; letter-spacing: .01em; }
.hero p.lede { font: 400 20px/1.5 var(--serif); color: var(--muted); max-width: 30em; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-shot { position: relative; background: var(--card); border-radius: 24px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 30px 60px -30px rgba(31, 26, 20, .35); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-shot.mosaic { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); grid-auto-rows: 1fr; gap: 6px; padding: 6px; }
.hero-shot.mosaic .tile { display: flex; align-items: center; justify-content: center; border-radius: 16px; padding: 12%; overflow: hidden; cursor: pointer; transition: transform .2s; }
.hero-shot.mosaic .tile:hover { transform: scale(1.03); }
.hero-shot.mosaic .tile img { width: 100%; height: 100%; object-fit: contain; }
.hero-shot .tag { position: absolute; left: 18px; bottom: 18px; background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 13px; text-decoration: none; }

.facts { border-block: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts div { padding: 22px 8px; text-align: center; font: 400 17px var(--serif); }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font: 600 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

.section { padding-top: 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font: 400 clamp(32px, 4vw, 46px)/1.1 var(--display); margin: 8px 0 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.card { text-decoration: none; display: block; }
.card .shot { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.card .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.card .shot img.alt { opacity: 0; }
.card:hover .shot img.alt { opacity: 1; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.badge.out { background: var(--ink); }
.card h3 { font: 400 24px/1.2 var(--display); margin: 14px 0 4px; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dots { display: flex; gap: 5px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); }
.price { font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.price .now { color: var(--accent); }

.story { margin-top: 96px; background: var(--card); }
.story .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.story h2 { font: 400 clamp(30px, 3.6vw, 42px)/1.1 var(--display); margin: 10px 0 16px; }
.story p { font: 400 18px/1.6 var(--serif); color: var(--muted); margin: 0 0 14px; }

.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- product ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 24px 0 8px; }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.gallery .main { background: var(--card); border-radius: 20px; overflow: hidden; aspect-ratio: 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumbs button { width: 92px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--card); cursor: pointer; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: 92px; }
.buy h1 { font: 400 clamp(38px, 4.4vw, 56px)/1.05 var(--display); margin: 8px 0 10px; }
.buy .price { font-size: 22px; }
.buy .save { display: inline-block; margin-left: 8px; font-size: 13px; color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 999px; vertical-align: 3px; }
.opt { margin-top: 26px; }
.opt-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.opt-label b { font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); cursor: pointer; padding: 0; box-shadow: 0 0 0 3px var(--paper); }
.swatch.on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.size { padding: 12px 0; border: 1px solid var(--line); background: var(--card); border-radius: 10px; cursor: pointer; font-weight: 600; }
.size:hover:not(:disabled) { border-color: var(--ink); }
.size.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size:disabled { color: #b8ae9f; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.stock-note { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--accent); }
.ship-note { font-size: 14px; opacity: .75; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.add-row { display: flex; gap: 12px; margin-top: 22px; }
.add-row .btn { flex: 1; }
.details { margin-top: 32px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: '+'; font-weight: 400; }
.details details[open] summary::after { content: '–'; }
.details p, .details table { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.details ul.fabric { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.details ul.fabric li { margin: 3px 0; }
.details table { border-collapse: collapse; width: 100%; }
.details td, .details th { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---------- cart ---------- */
.page-title { font: 400 clamp(38px, 5vw, 56px)/1.1 var(--display); margin: 32px 0 28px; }
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 110px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--card); }
.line h3 { font: 400 22px/1.2 var(--display); margin: 0 0 4px; }
.line h3 a { text-decoration: none; }
.line .meta { font-size: 14px; color: var(--muted); }
.line .end { display: flex; flex-direction: column; align-items: end; gap: 10px; }
.line.bad { background: #fbeee8; }
.line .warn { color: var(--accent); font-size: 14px; font-weight: 600; margin-top: 6px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.summary { background: var(--card); border-radius: var(--radius); padding: 24px; position: sticky; top: 92px; }
.summary h2 { margin: 0 0 14px; font-size: 18px; }
.summary .r { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 18px; }
.summary .note { font-size: 13px; color: var(--muted); margin: 12px 0 18px; }
.error { color: var(--accent); font-size: 14px; margin-top: 12px; }

.thanks { max-width: 640px; margin: 64px auto 0; text-align: center; }
.thanks img { width: 160px; margin: 0 auto 16px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 12px; display: flex; gap: 16px; align-items: center; transition: .25s; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: #f0b48f; font-weight: 600; }


/* ---------- account + sign-in ---------- */
.account-link { display: inline-flex; align-items: center; gap: 8px; }
.account-link img { width: 26px; height: 26px; border-radius: 50%; }
dialog.signin { border: 0; border-radius: 20px; padding: 32px 28px 24px; width: min(380px, calc(100vw - 32px)); text-align: center; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); }
dialog.signin::backdrop { background: rgba(31, 26, 20, .45); }
dialog.signin img { margin: 0 auto 8px; }
dialog.signin h2 { font: 400 32px/1.1 var(--display); margin: 4px 0 6px; }
dialog.signin .gbtn { display: flex; justify-content: center; min-height: 44px; margin: 18px 0 10px; }
dialog.signin .x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
dialog.signin.clerk { width: min(460px, calc(100vw - 24px)); padding: 28px 16px 20px; }
dialog.signin .clerk-box { display: flex; justify-content: center; min-height: 120px; margin: 14px 0 4px; }
dialog.signin .test-login { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 6px; text-align: left; }
dialog.signin .test-login input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.test-badge { align-self: center; font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.admin-link { font-weight: 600; color: var(--accent); }
dialog.signin .fine { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- design your own: catalog ---------- */
.custom-hero { padding: 48px 0 28px; }
.custom-hero h1 { font: 400 clamp(40px, 5.6vw, 72px)/1.04 var(--display); margin: 14px 0 22px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font: 400 18px var(--serif); color: var(--muted); }
.steps b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 13px var(--sans); }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 10px 16px; border-radius: 999px; font: 400 22px var(--display); cursor: pointer; color: var(--muted); }
.tab small { font: 600 12px var(--sans); vertical-align: 3px; margin-left: 2px; }
.tab.on { background: var(--ink); color: var(--paper); }
.tab:disabled { opacity: .35; cursor: default; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer; }
.chip.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip:disabled { opacity: .4; cursor: default; }
.blank-card { display: flex; flex-direction: column; }
.blank-card .shot { display: block; }
.blank-card .shot svg, .blank-main svg, .thumbs button svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.blank-card .shot svg { transition: transform .3s; }
.blank-card:hover .shot svg { transform: scale(1.03); }
.blank-card .kicker { margin-top: 14px; font-size: 11px; }
.blank-card h3 { margin-top: 6px; font-size: 22px; }
.blank-card h3 a { text-decoration: none; }
.blank-card .price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.card-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; align-items: center; }
.mini-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); padding: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--paper); }
.mini-swatch.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.card-swatches .more { font-size: 13px; color: var(--muted); }
.color-name { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.blank-card .btn { margin-top: auto; align-self: flex-start; }

/* Supplier photos are 4:5 */
.blank-card .shot.photo, .blank-main.photo { aspect-ratio: 4 / 5; background: #fff; }
.blank-card .shot.photo img, .blank-main.photo img { object-fit: cover; }
.blank-card:hover .shot.photo img { transform: scale(1.03); transition: transform .3s; }
.thumbs button.photo img { object-fit: cover; }
.print-box { position: absolute; border: 1.5px dashed rgba(0, 0, 0, .45); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); pointer-events: none; }

/* ---------- design your own: blank page ---------- */
.blank-main { position: relative; }
.thumbs button { position: relative; }
.area-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.buy .price small, .price2 small { font-weight: 400; font-size: 14px; }
.price2 { font-weight: 600; font-size: 17px; margin-top: 4px; }
.swatch.gone, .mini-swatch.gone, .dot.gone { opacity: .35; background-image: linear-gradient(135deg, transparent 46%, rgba(0, 0, 0, .6) 47%, rgba(0, 0, 0, .6) 53%, transparent 54%) !important; }
.swatches.sm { gap: 7px; }
.swatches.sm .swatch { width: 28px; height: 28px; box-shadow: 0 0 0 2px var(--card); }
.swatches.sm .swatch.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }

/* ---------- designer ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-top: 24px; }
.stage-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; position: relative; }
.seg button.on { background: var(--ink); color: var(--paper); }
.seg .has { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.seg.sm button { padding: 5px 11px; font-weight: 400; }
.icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--card); border-radius: 50%; cursor: pointer; font-size: 15px; display: inline-grid; place-items: center; padding: 0; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger:hover { border-color: var(--accent); color: var(--accent); }
.stage { background: var(--card); border-radius: 20px; overflow: hidden; touch-action: none; width: min(100%, calc(100vh - 210px)); min-width: min(100%, 420px); margin: 0 auto; }
.stage canvas { display: block; }
.stage-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.tools { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.tool-block { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.design-name { font: 400 26px var(--display); border: 0; border-bottom: 1px dashed var(--line); background: none; padding: 2px 0 6px; width: 100%; }
.design-name:focus { outline: none; border-bottom-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.field > span { color: var(--muted); }
.field b { color: var(--ink); font-weight: 600; }
.field select, .tool-block textarea { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.tool-block textarea { resize: vertical; min-height: 56px; }
.add-btns { display: flex; gap: 8px; }
.add-btns .btn { flex: 1; cursor: pointer; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.layer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.layer-list button { width: 100%; text-align: left; border: 1px solid transparent; background: var(--paper); border-radius: 8px; padding: 7px 10px; cursor: pointer; display: flex; gap: 10px; align-items: center; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.layer-list button.on { border-color: var(--ink); }
.layer-list .lt { width: 26px; text-align: center; color: var(--muted); flex: none; }
.lt-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lt-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acts { display: flex; gap: 4px; flex: none; }
.acts .icon-btn { width: 30px; height: 30px; font-size: 13px; }
.row2 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pal { display: flex; flex-wrap: wrap; gap: 6px; }
.pal-c { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.pal-c.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.pal-c.custom { background: conic-gradient(#e33, #ee3, #3e3, #3ee, #33e, #e3e, #e33); }
.pal-c.custom input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--ink); }
.quality { font-size: 13px; margin: 0; padding: 8px 10px; border-radius: 8px; }
.quality.good { background: #e7f2e9; color: var(--ok); }
.quality.ok { background: #f1efe6; color: #6b5f2a; }
.quality.low { background: #fbeee8; color: var(--accent-dark); }
.price-line { display: flex; justify-content: space-between; font-size: 15px; }
.price-line b { font-size: 20px; }
.tool-block .sizes { gap: 6px; }
.tool-block .size { padding: 9px 0; font-size: 14px; }
.tool-block .add-row { margin-top: 0; }
.order .link-btn { align-self: center; }

/* ---------- my designs ---------- */
.acct-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.acct-head img { width: 48px; height: 48px; border-radius: 50%; }
.acct-head > div { margin-right: auto; }
.designs-grid { grid-template-columns: repeat(4, 1fr); }
.design-card h3 { font-size: 20px; }
.design-card h3 a { text-decoration: none; }
.sub-title { font: 400 32px var(--display); margin: 56px 0 16px; }
.orders { border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: 140px 1fr 100px 170px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: start; }
.order-row .status { font-weight: 600; color: var(--accent); }
.order-row .status.shipped { color: var(--ok); }

/* ---------- admin ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.admin-stats div { background: var(--card); border-radius: var(--radius); padding: 16px 18px; }
.admin-stats b { display: block; font: 400 34px/1 var(--display); }
.admin-stats span { color: var(--muted); font-size: 14px; }
.admin-orders .order-row { grid-template-columns: 120px 1fr 1.6fr 90px 100px; }
.admin-orders .order-row.done { opacity: .55; }
.admin-orders .it { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.admin-orders .it img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--card); }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 999px; }
.ship { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.small { font-size: 13px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.design-card .shot { display: block; aspect-ratio: 4 / 5; }
.design-card .shot .badge { top: 10px; left: 10px; }

@media (max-width: 900px) {
  .hero .wrap, .story .wrap, .product, .cart { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .buy, .summary { position: static; }
  .designer { grid-template-columns: 1fr; }
  .tools { position: static; }
  .designs-grid { grid-template-columns: repeat(2, 1fr); }
  .order-row, .admin-orders .order-row { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-head nav a:not(.cart-link, .account-link, .design-link) { display: none; }
  .site-head nav { gap: 14px; }
  .design-link .long { display: none; }
  .account-link img + span { display: none; }
  .account-link:not(.in) { font-size: 14px; }
  .tab { font-size: 18px; padding: 8px 12px; }
  .designer-page .site-foot { margin-top: 40px; }
  .brand img { height: 26px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .card h3 { font-size: 19px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .line { grid-template-columns: 80px 1fr; }
  .line img { width: 80px; }
  .line .end { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .thumbs button { width: 72px; }
}

/* Colors as DTF Studio shows them: fabric swatches, a searchable color menu, and photo arrows. */
.swatch, .mini-swatch { background-size: cover; background-position: center; }
.color-menu { position: relative; display: inline-block; margin: 2px 0 12px; }
.color-name .color-menu { margin: 0 10px 0 0; }
.color-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.color-menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.color-menu-btn:hover { border-color: var(--ink); }
.color-menu-btn i, .color-menu-row i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); flex-shrink: 0; }
.color-menu-btn .caret { color: var(--muted); font-size: 11px; }
.color-menu-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 270px; max-width: calc(100vw - 32px); padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(31, 26, 20, .18); }
.color-menu-pop[hidden] { display: none; }
.color-menu-pop input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; margin-bottom: 6px; }
.color-menu-list { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; }
.color-menu-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.color-menu-row:hover, .color-menu-row.on { background: var(--paper); }
.color-menu-row small { margin-left: auto; color: var(--muted); }
.color-menu-row[hidden] { display: none; }
.shot-arrow { position: absolute; top: calc(50% - 18px); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(31, 26, 20, .55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.shot-arrow.prev { left: 10px; } .shot-arrow.next { right: 10px; }
.blank-card .shot:hover .shot-arrow, .blank-main .shot-arrow, .shot-arrow:focus-visible { opacity: 1; }
.shot-arrow:hover { background: rgba(31, 26, 20, .8); }
.blank-card .shot > a { position: absolute; inset: 0; display: block; }
.blank-main { position: relative; }
.thumbs { flex-wrap: wrap; }
.thumbs button { width: 76px; }
@media (hover: none) { .blank-card .shot .shot-arrow { opacity: 1; } }

/* The size chart and how it's measured. */
.size-chart .chart-wrap { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-top: 12px; }
.size-chart .measure { display: flex; align-items: center; gap: 12px; }
.size-chart .measure img { width: 96px; height: 96px; object-fit: contain; background: var(--card); border-radius: 10px; padding: 6px; }
.size-chart .measure p { margin: 0; font-size: 13px; }
.size-chart .chart-scroll { overflow-x: auto; max-width: 100%; }
.details .size-chart table { width: auto; margin: 0; font-size: 14px; }
.size-chart th, .size-chart td { padding: 6px 10px !important; text-align: center !important; white-space: nowrap; }
.size-chart tbody th { text-align: left !important; font-weight: 600; color: var(--ink); }
.size-chart .on { background: var(--paper); color: var(--ink); font-weight: 600; }

/* Admin orders: the exact supplier shirt under each line */
.admin-orders .model { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.admin-orders .model b { color: var(--ink); }
.admin-orders .model details { margin-top: 2px; }
.admin-orders .model summary { cursor: pointer; }
.admin-orders .model details div { margin-top: 4px; line-height: 1.45; max-width: 560px; }
.order-views { margin: 4px 0 14px; align-items: center; gap: 6px; }
