/* ============================================================================
   BLACK HAZE — blackhaze.store
   Streetwear storefront design system
   ========================================================================== */
:root {
  --ink:      #0d0d0d;
  --ink-2:    #161616;
  --paper:    #f5f3ee;   /* bone / off-white */
  --paper-2:  #ece8df;
  --line:     #e0dccf;
  --muted:    #6d6a62;
  --muted-2:  #97938a;
  --white:    #ffffff;
  --accent:   #e0341f;   /* haze red */
  --accent-ink:#ffffff;
  --ok:       #2fa84f;
  --radius:   4px;
  --maxw:     1240px;
  --header-h: 68px;
  --font-display: "Space Grotesk", "Archivo", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: .82rem;
  padding: .95rem 1.6rem; border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper); cursor: pointer;
  transition: transform .12s ease, background .2s ease, color .2s ease, opacity .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Announcement bar --------------------------------------------------------- */
.announce {
  background: var(--ink); color: var(--paper); text-align: center;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em;
  font-size: .68rem; padding: .55rem 1rem;
}

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,243,238,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 500; color: var(--ink); position: relative; padding: .2rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--accent); transition: width .22s ease; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--ink); display: inline-flex; position: relative; padding: 4px; }
.cart-count {
  position: absolute; top: -6px; right: -8px; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: .62rem; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 999px; display: grid; place-items: center; padding: 0 4px;
}
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* Mobile nav --------------------------------------------------------------- */
.mobile-nav { display: none; flex-direction: column; gap: .2rem; padding: .5rem 0 1rem; border-bottom: 1px solid var(--line); }
.mobile-nav a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; padding: .7rem clamp(16px,4vw,40px); }
.mobile-nav.open { display: flex; }

/* Hero --------------------------------------------------------------------- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero .container { position: relative; padding-block: clamp(64px, 12vw, 130px); z-index: 2; }
.hero h1 { color: var(--paper); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #c9c6bd; max-width: 46ch; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero .btn--ghost { color: var(--paper); border-color: #4a4a4a; }
.hero .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero-glow { position: absolute; inset: 0; background:
    radial-gradient(60% 80% at 85% 20%, rgba(224,52,31,.28), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(255,255,255,.06), transparent 60%); z-index: 1; }
.hero-mark { position: absolute; right: -4%; bottom: -12%; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(9rem, 26vw, 24rem); color: rgba(255,255,255,.03); letter-spacing: -.04em; z-index: 1; pointer-events: none; }

/* Marquee ------------------------------------------------------------------ */
.marquee { background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap; padding: .6rem 0; }
.marquee div { display: inline-block; animation: marquee 26s linear infinite; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; }
.marquee span { padding: 0 1.4rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections ----------------------------------------------------------------- */
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head .link { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }

/* Product grid ------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
.card { display: flex; flex-direction: column; background: transparent; }
.card-media { position: relative; aspect-ratio: 4/5; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8% 12%; transition: transform .4s ease; }
.card-media img.photo { object-fit: cover; padding: 0; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--paper); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .6rem; font-weight: 600; padding: .3rem .55rem; border-radius: 3px; z-index: 2; }
.badge--accent { background: var(--accent); color: #fff; }
.card-quick { position: absolute; inset-inline: 8px; bottom: 8px; opacity: 0; transform: translateY(6px); transition: .2s ease; }
.card:hover .card-quick { opacity: 1; transform: none; }
.card-body { padding: .85rem .1rem 0; }
.card-cat { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; color: var(--muted-2); }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: .92rem; margin: .2rem 0 .3rem; line-height: 1.25; }
.card-price { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }

/* Filters ------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 500;
  padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink); transition: .15s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Feature strip ------------------------------------------------------------ */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-strip .cell { background: var(--paper); padding: 1.4rem 1.2rem; }
.feature-strip .cell h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.feature-strip .cell p { font-size: .82rem; color: var(--muted); margin: 0; }

/* Collection tiles --------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 26px); }
.cat-tile { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--line); background: var(--ink) center 22% / cover no-repeat; }
.cat-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.12) 0%, rgba(13,13,13,.72) 100%); transition: background .3s ease; }
.cat-tile:hover::before { background: linear-gradient(180deg, rgba(224,52,31,.18) 0%, rgba(13,13,13,.8) 100%); }
.cat-tile__label { position: relative; z-index: 2; color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.05; padding: clamp(18px, 3vw, 34px); display: flex; flex-direction: column; gap: .5rem; }
.cat-tile__go { font-size: .74rem; letter-spacing: .16em; font-weight: 600; opacity: .9; }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* Product detail ----------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pdp-media { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; }
.pdp-media img { width: 100%; height: 100%; object-fit: contain; padding: 6% 10%; }
.pdp-media img.photo { object-fit: cover; padding: 0; }
.pdp-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.pdp-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: .4rem 0 1.2rem; }
.pdp-price .was { color: var(--muted-2); text-decoration: line-through; font-weight: 500; font-size: 1.1rem; margin-left: .5rem; }
.opt-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; margin: 1.2rem 0 .6rem; display: block; }
.size-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-btn { min-width: 48px; padding: .6rem .8rem; border: 1.5px solid var(--line); background: var(--white); border-radius: var(--radius); cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .82rem; transition: .15s; }
.size-btn:hover { border-color: var(--ink); }
.size-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.swatch-row { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--line); cursor: default; box-shadow: inset 0 0 0 2px var(--white); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 42px; height: 46px; background: var(--white); border: 0; cursor: pointer; font-size: 1.1rem; font-family: var(--font-display); }
.qty input { width: 46px; height: 46px; text-align: center; border: 0; border-inline: 1.5px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: .8rem; margin: 1.4rem 0; flex-wrap: wrap; }
.buy-row .qty { flex: 0 0 auto; }
.buy-row .btn { flex: 1 1 auto; }
.pdp-details { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.pdp-details ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.pdp-details li { margin-bottom: .3rem; color: var(--muted); font-size: .92rem; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; padding: 1rem 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.1rem; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding-bottom: 1rem; color: var(--muted); font-size: .92rem; }

/* Trust / info blocks ------------------------------------------------------ */
.trust-badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }

/* Cart --------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .thumb { width: 92px; aspect-ratio: 4/5; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.cart-item .thumb img { object-fit: contain; padding: 8%; width: 100%; height: 100%; }
.cart-item .thumb img.photo { object-fit: cover; padding: 0; }
.cart-item .meta h4 { font-family: var(--font-display); font-size: .95rem; margin: 0 0 .2rem; }
.cart-item .meta .sub { font-size: .8rem; color: var(--muted); }
.cart-item .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .78rem; text-decoration: underline; padding: 0; margin-top: .4rem; }
.cart-line-price { font-family: var(--font-display); font-weight: 600; text-align: right; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.summary .row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .92rem; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.empty-state { text-align: center; padding: 4rem 1rem; }

/* Legal / prose pages ------------------------------------------------------ */
.prose { max-width: 820px; }
.prose h1 { margin-bottom: .3rem; }
.prose .updated { color: var(--muted); font-size: .85rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.15rem; margin-top: 2.2rem; text-transform: none; letter-spacing: 0; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose li { color: #33322e; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--paper-2); font-family: var(--font-display); }
.note { background: var(--paper-2); border-left: 3px solid var(--accent); padding: 1rem 1.2rem; border-radius: var(--radius); margin: 1.4rem 0; font-size: .92rem; }

/* Page header banner ------------------------------------------------------- */
.page-banner { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 7vw, 72px); }
.page-banner h1 { color: var(--paper); }
.page-banner p { color: #c9c6bd; max-width: 60ch; margin: 0; }
.breadcrumbs { font-size: .78rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumbs a:hover { color: var(--ink); }

/* Forms -------------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-family: var(--font-body); font-size: .95rem; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form-note { font-size: .82rem; color: var(--muted); }

/* Split about -------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split .media { background: var(--ink); color: var(--paper); border-radius: var(--radius); aspect-ratio: 4/3; display: grid; place-items: center; padding: 2rem; }
.split .media .big-mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem,7vw,4.6rem); letter-spacing: .05em; text-align: center; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.5rem; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.stat .l { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Newsletter --------------------------------------------------------------- */
.newsletter { background: var(--ink-2); color: var(--paper); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); text-align: center; }
.newsletter h2 { color: var(--paper); }
.newsletter p { color: #c9c6bd; max-width: 42ch; margin-inline: auto; }
.newsletter form { display: flex; gap: .6rem; max-width: 440px; margin: 1.4rem auto 0; flex-wrap: wrap; }
.newsletter input { flex: 1 1 220px; padding: .95rem 1rem; border: 1.5px solid #3a3a3a; background: #0f0f0f; color: var(--paper); border-radius: var(--radius); }
.newsletter input::placeholder { color: #7d7a72; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b7b4ab; margin-top: 4rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(40px, 6vw, 64px); }
.site-footer .brand { color: var(--paper); font-size: 1.3rem; }
.footer-col h4 { color: var(--paper); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .3rem 0; font-size: .88rem; color: #b7b4ab; }
.footer-col a:hover { color: var(--paper); }
.footer-about p { font-size: .88rem; max-width: 34ch; }
.footer-pay { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.pay-pill { border: 1px solid #333; border-radius: 4px; padding: .28rem .55rem; font-family: var(--font-display); font-size: .62rem; letter-spacing: .06em; color: #cfccc3; }
.footer-bottom { border-top: 1px solid #262626; padding-block: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; }
.footer-bottom a { color: #b7b4ab; }
.footer-bottom a:hover { color: var(--paper); }

/* Toast -------------------------------------------------------------------- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: .9rem 1.4rem; border-radius: var(--radius); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Utility ------------------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,3vw,32px); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-strip { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.4rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .card-quick { position: static; opacity: 1; transform: none; margin-top: .5rem; }
  /* Cart: stack thumb + info, price on its own line to avoid clipping */
  .cart-item { grid-template-columns: 68px 1fr; gap: .8rem; }
  .cart-item .cart-line-price { grid-column: 2; justify-self: start; text-align: left; margin-top: .1rem; }
  .cart-item .thumb { width: 68px; }
  .section-head { align-items: flex-start; }
}
/* Never allow horizontal scroll on the page body */
html, body { overflow-x: hidden; max-width: 100%; }
