/* The shop's fonts, served from here (no request to Google). Latin subsets of Sancreek and Old Standard TT, SIL OFL:
   see /fonts/OFL-*.txt. */
@font-face { font-family: 'Sancreek'; font-weight: 400; font-display: swap; src: url(/fonts/Sancreek_400Regular.woff2) format('woff2'); }
@font-face { font-family: 'Old Standard TT'; font-weight: 400; font-display: swap; src: url(/fonts/OldStandardTT_400Regular.woff2) format('woff2'); }
@font-face { font-family: 'Old Standard TT'; font-weight: 700; font-display: swap; src: url(/fonts/OldStandardTT_700Bold.woff2) format('woff2'); }
@font-face { font-family: 'Old Standard TT'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/OldStandardTT_400Regular_Italic.woff2) format('woff2'); }

: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: 84px; }
.brand { flex: none; display: inline-flex; } /* never squeezed by the menu */
.brand img { height: 52px; width: auto; } /* the full logo: hat, boot, wordmark and lasso */
.brand .emblem { display: none; }
.site-head .ico { display: none; width: 22px; height: 22px; }
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-head nav a { text-decoration: none; white-space: nowrap; }
.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; }
.head-meta { display: inline-flex; align-items: center; gap: 8px; }
.head-meta .cur { font: 600 11px var(--sans); letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; cursor: help; display: inline-flex; align-items: center; gap: 5px; }
.head-meta .cur .flag { width: 18px; height: 9px; border-radius: 1.5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.head-meta .lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.head-meta .lang button { border: 0; background: none; padding: 4px 9px; font: 600 12px var(--sans); color: var(--muted); cursor: pointer; }
.head-meta .lang button.on { background: var(--ink); color: var(--paper); }
.head-meta .lang button:not(.on):hover { color: var(--ink); }
.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: 48px; width: auto; max-width: 100%; } /* the full logo, as in the header */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--muted); }
.summary .fine, dialog.signin .fine a { font-size: 12px; color: var(--muted); }
.summary .fine { margin: 12px 0 0; }
.delivery { border: 0; padding: 0; margin: 6px 0 12px; display: grid; gap: 8px; }
.delivery legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.deliv-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 12px 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.deliv-card:hover { border-color: var(--muted); }
.deliv-card.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.deliv-card input { position: absolute; opacity: 0; pointer-events: none; }
.deliv-card::before { content: ''; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--paper); }
.deliv-card.on::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.deliv-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.deliv-top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.deliv-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pickup-where { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.co-sum { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.co-sum .r { display: flex; justify-content: space-between; padding: 4px 0; }
.co-sum .r.total { font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.summary .fine a, dialog.signin .fine a { color: inherit; }
.my-data .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.btn.danger:hover { background: #a3271f; border-color: #a3271f; color: #fff; }
.legal { max-width: 760px; line-height: 1.6; }
.legal h2 { font: 400 26px/1.2 var(--display); margin: 36px 0 10px; }
.legal li { margin: 6px 0; }

/* ---------- 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 > a { display: block; height: 100%; }
/* The carousel: the four picked shirts' photos (portrait), side by side in a strip that snaps to each. */
.hero-shot.carousel { aspect-ratio: 4 / 5; }
.hero-shot.carousel .strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hero-shot.carousel .strip::-webkit-scrollbar { display: none; }
.hero-shot.carousel .slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.hero-shot.carousel img { object-position: 50% 30%; }
.hero-shot.carousel .shot-arrow[hidden] { display: none; }
.hero-shot.carousel:hover .shot-arrow { opacity: 1; }
.hero-shot.carousel .pager { bottom: 22px; left: auto; right: 22px; }
@media (hover: none) { .hero-shot.carousel .shot-arrow { display: none; } }
.hero-shot .tag { position: absolute; left: 18px; bottom: 18px; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 13px; text-decoration: none; }

.facts { border-block: 1px solid var(--line); }
/* The logos picked in DTF Studio, each on its shirt's color, under the facts: rows of 8 (6, 4 on smaller
   screens), the last row centered. */
.mosaic-band { padding-top: 48px; }
.mosaic-band:has(.mosaic:empty) { display: none; }
.mosaic { --per: 8; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mosaic .tile { flex: 0 0 calc((100% - (var(--per) - 1) * 8px) / var(--per)); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 14px; overflow: hidden; transition: transform .2s; }
.mosaic .tile:hover { transform: scale(1.04); }
.mosaic .tile img { width: 76%; height: 76%; object-fit: contain; }
@media (max-width: 900px) { .mosaic { --per: 6; } }
@media (max-width: 560px) { .mosaic { --per: 4; gap: 6px; } .mosaic .tile { flex-basis: calc((100% - 18px) / 4); border-radius: 10px; } .mosaic-band { padding-top: 32px; } }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } /* as many as there are, sharing the width */
.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; }
.filters-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: -10px 0 24px; }
.capsules { display: flex; flex-wrap: wrap; gap: 8px; }
.capsule { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 500 14px var(--sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.capsule:hover { border-color: var(--ink); }
.capsule.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.capsule { text-decoration: none; display: inline-block; }
.more-designs { display: block; margin: -2px 0 4px; font-size: 13px; color: var(--muted); }
.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; }
/* A shirt's photos side by side: swipe through them (arrows on hover with a mouse), dots show which one. */
.card .strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.card .strip::-webkit-scrollbar { display: none; }
.card .strip img { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.card .shot:hover .shot-arrow, .card .shot-arrow:focus-visible { opacity: 1; }
.card .shot-arrow[hidden] { display: none; }
.pager { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pager i { width: 6px; height: 6px; border-radius: 50%; background: rgba(31, 26, 20, .25); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .75); transition: background .2s, transform .2s; }
.pager i.on { background: rgba(31, 26, 20, .7); transform: scale(1.15); }
@media (hover: none) { .card .shot-arrow { display: none; } }
.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; }
.gallery .main.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.gallery .main.strip::-webkit-scrollbar { display: none; }
.gallery .main.strip img { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.shown-size { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.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: 108px; }
.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 .fabric-head { margin: 14px 0 0; font-weight: 600; }
.details .fabric-fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.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: 108px; }
.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; }
.thanks .pickup-where { margin: 0 0 20px; font-size: 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; }
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: 104px; 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); }

.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 999px; }
.small { font-size: 13px; }
.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 { grid-template-columns: 1fr 1fr; }
}
/* The header steps down as the window narrows (a narrow desktop window, a tablet, a phone): under 960 px the
   account and cart become icons, CAD its flag and "Design your own" just "Design"; under 760 px Shop and About go
   (the home page has them); the logo gets smaller with it, and under 380 px the round emblem stands in for it. */
@media (max-width: 959px) {
  .site-head .wrap { gap: 16px; height: 72px; }
  .brand img { height: 42px; }
  .site-head nav { gap: 16px; }
  .design-link .long { display: none; }
  /* the words stay for screen readers */
  .site-head .word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-head .ico { display: block; }
  .account-link img { width: 24px; height: 24px; }
  .cart-link { padding: 6px 10px; gap: 5px; }
  .head-meta { gap: 6px; }
  .head-meta .cur { padding: 3px 5px; }
  .head-meta .lang button { padding: 4px 7px; }
}
@media (max-width: 759px) {
  .site-head nav a:not(.cart-link, .account-link, .design-link) { display: none; }
  .site-head .wrap, .site-head nav { gap: 12px; }
}
@media (max-width: 459px) {
  .site-head .wrap { height: 60px; }
  .site-head .wrap, .site-head nav { gap: 8px; }
  .head-meta .cur { display: none; } /* (room for the full logo: the flag goes) */
}
@media (max-width: 379px) {
  .brand .wordmark { display: none; }
  .brand .emblem { display: block; height: 36px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .tab { font-size: 18px; padding: 8px 12px; }
  .designer-page .site-foot { margin-top: 40px; }
  .brand img { height: clamp(24px, 6.2vw, 32px); }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .card h3 { font-size: 19px; }
  .pager { bottom: 7px; gap: 4px; }
  .pager i { width: 4px; height: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .75); }
  .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; }


/* Text only about Design your own (policies): hidden until the shop says it's open. */
[data-custom] { display: none !important; }

/* Checkout (/checkout): the order with its shirts large on the left, Stripe's payment form on the right; stacked on
   a phone. The form keeps a phone-like width, so Stripe shows it in one column with its own summary and total. */
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: start; margin-bottom: 60px; }
.co-back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; }
.co-back:hover { color: var(--ink); }
.co-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.co-line { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.co-line img, .co-noimg { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 18px 18px 0; background: var(--card); } /* (room around the shirt) */
.co-line figcaption { padding: 14px 16px 16px; }
.co-line h3 { font: 400 22px/1.2 var(--display); margin: 0 0 4px; }
.co-line .meta { font-size: 14px; color: var(--muted); }
.co-line .price { margin-top: 6px; font-weight: 600; }
.co-note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.co-pay { background: var(--card); border-radius: var(--radius); padding: 8px; position: sticky; top: 108px; min-height: 420px; }
@media (max-width: 860px) {
  .co { grid-template-columns: 1fr; gap: 24px; }
  .co-pay { position: static; }
  .co-lines { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .co-lines:has(> :only-child) { grid-template-columns: minmax(0, 300px); justify-content: center; } /* one shirt: centered */
  .co-lines:has(> :only-child) + .co-note { text-align: center; }
}

