:root { --ink: #231a16; --ink2: #374151; --muted: #6b7280; --gold: #c2410c; --gold2: #9a3412; --bg: #f5f7fb; --card: #ffffff; --line: #dde3ee; --soft: #e9eef8; --err: #b42318; --ok: #146c43; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font: 16px/1.6 Manrope, Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: Archivo, "Arial Black", Arial, sans-serif; letter-spacing: -.01em; line-height: 1.15; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; padding: 40px 0 64px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
.link { color: var(--gold2); font-weight: 700; }
.notice { overflow-wrap: anywhere; background: var(--ink); color: #e8efff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }
.top { background: rgba(245, 247, 251, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; font-weight: 700; font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--gold2); }
.cart-link { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 12px; margin-left: 4px; padding: 0 5px; }
.btn { display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 13px 26px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #1f2937; }
.btn:disabled { background: #a5abb8; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.block { display: block; width: 100%; margin-top: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; color: var(--gold2); margin-bottom: 12px; }

/* hero */
.hero { background: linear-gradient(180deg, var(--soft), var(--bg)); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 56px 0 48px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); margin-bottom: 16px; }
.hero h1 em { color: var(--gold2); }
.lead { font-size: 18px; color: var(--ink2); max-width: 500px; margin-bottom: 26px; }
.hero-mocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-mocks .mock { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.hero-mocks .mock:nth-child(2) { margin-top: 36px; }
.prices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.price-chip { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 14px; }
.price-chip b { color: var(--ink); font-size: 16px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 0 8px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.step span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.step h3 { font-size: 20px; margin-bottom: 4px; }
.step p { color: var(--ink2); font-size: 15px; }

/* design browser */
#designs { padding: 44px 0 64px; scroll-margin-top: 80px; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.shop-head h2 { font-size: 34px; }
.search { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 16px; width: 260px; max-width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.chip span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on span { color: #c9cfdb; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29, 43, 69, .1); }
.card .art { aspect-ratio: 1; background: var(--soft); display: grid; place-items: center; }
.card .art img { max-width: 86%; max-height: 86%; object-fit: contain; }
.card .meta { padding: 10px 12px 12px; }
.card .name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .from { font-size: 13px; color: var(--muted); }
.more { text-align: center; margin-top: 26px; }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* builder */
.builder > *, .cart-grid > *, .hero-in > * { min-width: 0; }
.builder { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 34px 0 64px; align-items: start; }
.stage { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; position: sticky; top: 92px; }
.stage .mock svg { width: 100%; height: auto; display: block; }
.stage .art-thumb { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.stage .art-thumb img { width: 56px; height: 56px; object-fit: contain; background: var(--soft); border-radius: 10px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; }
.builder h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; overflow-wrap: anywhere; }
.opt { margin-top: 22px; }
.opt-label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.opt-label span { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.garments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.garment { border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 8px 12px; cursor: pointer; text-align: center; }
.garment svg { width: 70px; height: 70px; margin: 0 auto 4px; display: block; }
.garment b { display: block; font-size: 14px; }
.garment small { color: var(--muted); font-size: 12px; display: block; line-height: 1.3; }
.garment .gp { font-weight: 800; color: var(--gold2); margin-top: 2px; display: block; }
.garment[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); cursor: pointer; position: relative; }
.sw[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--ink); border-radius: 50%; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 54px; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 10px; font-weight: 700; cursor: pointer; }
.size small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.size[aria-pressed="true"] small { color: #c9cfdb; }
.size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.qty button { width: 40px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty input { width: 48px; text-align: center; border: 0; padding: 9px 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.breakdown { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 800; font-size: 18px; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }
.details { margin-top: 26px; font-size: 14px; color: var(--ink2); }
.details li { margin: 4px 0 4px 18px; }

/* cart + checkout */
.page-title { font-size: 38px; margin: 34px 0 20px; }
.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; padding-bottom: 64px; }
.lines { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: center; }
.line:first-child { border-top: 0; }
.line .thumb { background: var(--soft); border-radius: 12px; padding: 4px; }
.line .thumb svg { width: 100%; height: auto; display: block; }
.line h3 { font: 700 15px Manrope, sans-serif; overflow-wrap: anywhere; }
.line .sub { font-size: 13px; color: var(--muted); }
.line .end { text-align: right; display: grid; gap: 6px; justify-items: end; }
.line .rm { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: sticky; top: 92px; }
.panel h2 { font-size: 22px; margin-bottom: 10px; }
.field { display: grid; gap: 4px; margin-top: 12px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.rates { display: grid; gap: 8px; margin-top: 12px; }
.rate { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 14px; }
.rate:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.rate .amt { margin-left: auto; font-weight: 800; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.box + .box { margin-top: 18px; }
.box h2 { font-size: 22px; }
.closed { margin-top: 14px; background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink2); }

.policies h2 { font-size: 24px; margin: 26px 0 8px; }
.policies p, .policies li { color: var(--ink2); }
.policies ul { padding-left: 20px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer img { height: 40px; width: auto; }
footer nav { display: flex; gap: 18px; }

@media (max-width: 900px) {
  .hero-in, .builder, .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .stage, .panel { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top-in { height: 64px; }
  .brand img { height: 40px; }
  .nav { gap: 12px; }
  .nav .hide-sm { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .line { grid-template-columns: 72px 1fr; }
  .line .end { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: flex-start; text-align: left; align-items: center; gap: 10px 16px; }
  .three { grid-template-columns: 1fr 1fr; }
  .three .field:first-child { grid-column: 1 / -1; }
  .page-title { font-size: 30px; }
}

/* PPP Apparel wordmark (text; no logo file from the client yet) */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark img { height: 40px; width: 40px; }
.wordmark span { font: 800 22px/1 Archivo, "Arial Black", Arial, sans-serif; letter-spacing: .06em; color: var(--ink); }
.wordmark b { color: var(--gold); margin-left: 6px; font-weight: 800; }
.wordmark.foot span { font-size: 18px; }

@media (max-width: 520px) { .wordmark b { display: none; } .wordmark span { font-size: 18px; } .wordmark.foot span { font-size: 16px; } }
.pay { margin: 14px 0 12px; }
.pay h3 { font-size: 15px; margin: 0 0 10px; }
.secure { margin-top: 10px; }

@media (max-width: 520px) { .wordmark b { display: none; } .wordmark span { font-size: 18px; } .wordmark.foot span { font-size: 16px; } }
