/* Typo Fire storefront — implemented from "Typo Fire Store Site.dc.html"
   (claude.ai/design project "Typo Fire website redesign").
   Fonts: DM Serif Display (display) + Hanken Grotesk (UI).
   Palette: ink #1A1A1A, red #CE1B21, gold #F5B70A, dark band #221C17,
   warm panel #FAF7F0, field #F7F6F2, borders #EAE7E1/#E0DCD3/#D8D4CC. */

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; font-family: 'Hanken Grotesk', sans-serif; color: #1A1A1A; }
::selection { background: #F5B70A; color: #221C17; }
a { color: inherit; }
input, select { font-family: 'Hanken Grotesk', sans-serif; }
h1, h2, h3, .serif { font-family: 'DM Serif Display', serif; font-weight: 400; }

.wrap { max-width: 1200px; margin: 0 auto; }

/* ============ promo / header / nav ============ */
.promo { background: #221C17; color: #F6EEDF; text-align: center; padding: 9px 40px; font-size: 12.5px; letter-spacing: .03em; }
.promo .gold { color: #F5B70A; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #EAE7E1; }
.header-row { display: flex; align-items: center; gap: 30px; padding: 18px 40px; }
.header-row .logo img { height: 30px; width: auto; display: block; }
.search-box { flex: 1; display: flex; align-items: center; background: #F7F6F2; border-radius: 8px; padding: 0 16px; gap: 10px; max-width: 440px; }
.search-box .search-icon { color: #A8A29A; flex: none; }
.search-box input { flex: 1; border: none; background: transparent; padding: 11px 0; font-size: 15px; color: #1A1A1A; }
.search-box input::placeholder { color: #A8A29A; }
.search-box input:focus { outline: none; }
.header-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; color: #3A3A3A; }
.header-links a { text-decoration: none; }
.nav-home { display: inline-flex; align-items: center; }
.nav-a { transition: color .15s; }
.nav-a:hover { color: #CE1B21; }
.cart-btn { color: #1A1A1A !important; background: transparent; border: 1.5px solid #D8D4CC; padding: 9px 17px; border-radius: 8px; font-weight: 600; transition: border-color .2s, color .2s; }
.cart-btn:hover { border-color: #CE1B21; color: #CE1B21 !important; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 8px; border-radius: 999px; background: #F5B70A; color: #221C17; font-size: 11px; font-weight: 700; }

.cat-nav-band { border-top: 1px solid #EAE7E1; }
.cat-nav { display: flex; gap: 26px; padding: 13px 40px; font-size: 14px; font-weight: 500; color: #3A3A3A; overflow-x: auto; }
.cat-nav a { text-decoration: none; white-space: nowrap; }
.cat-nav a.on { color: #CE1B21; font-weight: 700; }
.cat-nav a.nav-eddm { color: #8A6A22; font-weight: 700; }
.cat-nav a.nav-eddm:hover { color: #6E5419; }

/* ============ buttons / links / fields ============ */
.btn-dark { cursor: pointer; text-decoration: none; color: #fff; background: #1A1A1A; padding: 14px 26px; border-radius: 8px; border: none; font-weight: 600; font-size: 15px; font-family: 'Hanken Grotesk', sans-serif; display: inline-block; transition: background .2s; }
.btn-dark:hover { background: #000; }
.btn-dark:disabled { background: #A8A29A; cursor: not-allowed; }
.btn-red { cursor: pointer; text-decoration: none; color: #fff; background: #CE1B21; padding: 16px 34px; border-radius: 9px; border: none; font-weight: 600; font-size: 16px; font-family: 'Hanken Grotesk', sans-serif; display: inline-block; transition: background .2s; }
.btn-red:hover { background: #b3161b; }
.btn-red:disabled { background: #A8A29A; cursor: not-allowed; }
.btn-yellow { cursor: pointer; text-decoration: none; color: #1A1A1A; background: #F5B70A; padding: 16px 34px; border-radius: 9px; border: none; font-weight: 600; font-size: 16px; font-family: 'Hanken Grotesk', sans-serif; display: inline-block; transition: background .2s; }
.btn-yellow:hover { background: #dba209; }
.btn-yellow:disabled { background: #A8A29A; color: #fff; cursor: not-allowed; }
.btn-ghost { cursor: pointer; text-decoration: none; color: #1A1A1A; border: 1px solid #D8D4CC; background: transparent; padding: 14px 26px; border-radius: 8px; font-weight: 600; font-size: 15px; font-family: 'Hanken Grotesk', sans-serif; display: inline-block; transition: border-color .2s; }
.btn-ghost:hover { border-color: #1A1A1A; }
.lnk { cursor: pointer; font-weight: 600; font-size: 14px; color: #CE1B21; text-decoration: none; transition: color .15s; }
.lnk:hover { color: #b3161b; }

.fld { font-size: 15px; color: #1A1A1A; background: #fff; border: 1px solid #D8D4CC; border-radius: 8px; padding: 12px 14px; width: 100%; }
.fld:focus { outline: none; border-color: #CE1B21; }
.fld::placeholder { color: #A8A29A; }
select.fld { appearance: auto; }

.field-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8A8478; margin-bottom: 10px; display: block; }
.crumbs { font-size: 13px; color: #8A8478; margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #CE1B21; }
.crumbs .sep { color: #C9C3B8; }

/* ============ product page hero bar ============ */
/* Padding lives on the nested .wrap (like .wrap.header-row does) rather than
   the outer full-bleed bar, so hero content lines up exactly with the header
   and main content, which are both centered .wrap elements themselves. */
.product-hero { background: #9E0C0F; }
.product-hero .wrap { padding: 22px 40px 30px; }
.product-hero .crumbs { color: rgba(255,255,255,.6); margin-bottom: 16px; }
.product-hero .crumbs a { color: rgba(255,255,255,.85); }
.product-hero .crumbs a:hover { color: #fff; }
.product-hero .crumbs .sep { color: rgba(255,255,255,.4); }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F5B70A; margin-bottom: 10px; }
.hero-title { font-size: 44px; line-height: 1.05; margin: 0 0 14px; color: #fff; }
.hero-sub { font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 620px; margin: 0; }
@media (max-width: 600px) { .product-hero .wrap { padding: 18px 20px 24px; } }

/* ============ option pills ============ */
.opt { cursor: pointer; border: 1.5px solid #E0DCD3; background: #fff; color: #3A3A3A; border-radius: 8px; padding: 11px 16px; font-size: 14px; font-weight: 500; font-family: 'Hanken Grotesk', sans-serif; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #1A1A1A; }
.opt[aria-pressed="true"] { border-color: #1A1A1A; background: #1A1A1A; color: #fff; }
.opt.opt-qty[aria-pressed="true"] { border-color: #CE1B21; background: #FCEBEC; color: #CE1B21; font-weight: 600; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-unavail {
  cursor: help; color: #B0AAA0; border-style: dashed; background: #FAFAF8;
  background-image: linear-gradient(to top right, transparent 46%, #D5CFC5 48%, #D5CFC5 52%, transparent 54%);
}
.opt-unavail:hover { border-color: #C9C3B8; }
select.opt-select {
  width: auto; min-width: 170px; max-width: 100%;
  border: 1.5px solid #E0DCD3; border-radius: 8px; padding: 10px 14px;
  font-size: 14px; font-weight: 500; color: #3A3A3A; background: #fff; cursor: pointer;
}
select.opt-select:focus { outline: none; border-color: #1A1A1A; }
.spec-block { margin-bottom: 14px; }
.spec-block .field-label { margin-bottom: 6px; }

/* ============ info icon + popover ============ */
.info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 6px; border-radius: 50%;
  border: 1.5px solid #C9C3B8; background: transparent; color: #8A8478;
  font-size: 10px; font-weight: 700; font-style: normal; line-height: 1;
  cursor: pointer; padding: 0; vertical-align: middle;
}
.info-icon:hover { border-color: #CE1B21; color: #CE1B21; }
.info-popover {
  position: absolute; z-index: 30; top: 22px; left: 0; width: 260px;
  background: #fff; border: 1px solid #E0DCD3; border-radius: 10px;
  box-shadow: 0 12px 28px rgba(34,28,23,.14); padding: 14px 16px;
  font-size: 13px; line-height: 1.55; color: #3A3A3A; text-transform: none;
  letter-spacing: normal; font-weight: 400;
}
.info-popover strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: #CE1B21; margin-bottom: 6px; }
.info-popover p { margin: 0; }

/* ============ cards / tiles ============ */
.pc { cursor: pointer; text-decoration: none; color: inherit; display: block; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.pc:hover { transform: translateY(-4px); }
.pc-img { aspect-ratio: 4/3; border-radius: 10px; background: repeating-linear-gradient(45deg,#F0EEE9 0 11px,#F7F6F2 11px 22px); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: box-shadow .28s; position: relative; }
.pc:hover .pc-img { box-shadow: 0 16px 30px rgba(34,28,23,.16); }
.pc-img .ph { font-family: ui-monospace, monospace; font-size: 11px; color: #B0AAA0; padding: 0 10px; text-align: center; }
.pc-name { font-family: 'DM Serif Display', serif; font-size: 22px; }
.pc-blurb { font-size: 13.5px; color: #8A8478; margin-top: 3px; }
.pc-price { font-weight: 600; font-size: 14px; color: #CE1B21; margin-top: 8px; }

.ct { cursor: pointer; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 16px; background: #2C251E; border: 1px solid rgba(199,180,140,.2); border-radius: 10px; padding: 20px; transition: transform .24s; }
.ct:hover { transform: translateY(-3px); }
.ct .swatch { width: 48px; height: 48px; border-radius: 8px; background: repeating-linear-gradient(45deg,#3a322a 0 8px,#443a30 8px 16px); flex: none; }
.ct .ct-name { font-family: 'DM Serif Display', serif; font-size: 20px; color: #F6EEDF; }
.ct .ct-count { font-size: 12.5px; color: #B8AF9F; margin-top: 3px; }

/* ============ checkout step indicator ============ */
.steps-row { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.steps-row .step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #B0AAA0; }
.steps-row .step.on { color: #CE1B21; }
.steps-row .step.done { color: #1A1A1A; }
.steps-row .step-icon { display: flex; }
.steps-row .step-sep { flex: none; width: 26px; height: 1px; background: #E0DCD3; }
@media (max-width: 600px) { .steps-row .step-label { display: none; } .steps-row .step-sep { width: 14px; } }

/* ============ misc ============ */
.muted { color: #8A8478; font-size: 14px; }
.error { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #FCEBEC; color: #CE1B21; font-size: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 24px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } .header-row { flex-wrap: wrap; } }

/* ============ footer ============ */
.site-footer { background: #2E2B27; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 52px 40px 44px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid img { height: 28px; width: auto; display: block; margin-bottom: 16px; }
.footer-blurb { font-size: 14.5px; line-height: 1.6; color: #A79F92; max-width: 280px; margin: 0; }
.footer-head { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F5B70A; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: #D8D3C9; }
.footer-links a { text-decoration: none; transition: color .15s; cursor: pointer; }
.footer-links a:hover { color: #F5B70A; }
.footer-base { background: #0B0A09; }
.footer-base-row { padding: 20px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #7C7669; }
.footer-base-row a { color: inherit; text-decoration: none; }
.footer-base-row a:hover { color: #F5B70A; }
