:root {
  --bg: #0a0a0a;
  --bg-soft: #111;
  --card: #ececec;
  --ink: #fff;
  --ink-dark: #111;
  --muted: #8d8d8d;
  --line: rgba(255, 255, 255, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
}

body.menu-open,
body.cart-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
}

/* Header — Cold Culture / Scuffers style */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.75rem 1.25rem;
  color: #fff;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-right {
  justify-content: flex-end;
}

.primary-nav {
  display: flex;
  gap: 1.1rem;
}

.nav-link,
.text-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-btn {
  display: none;
  width: 2rem;
  height: 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 1.5px;
  background: #fff;
  margin: 0.35rem 0;
}

.logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.1rem;
  font-family: "Archivo Black", sans-serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.logo span {
  background: linear-gradient(120deg, #fff 0%, #bdbdbd 40%, #fff 70%, #9a9a9a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chrome 7s linear infinite;
}

.logo sup {
  font-size: 0.55rem;
  font-style: normal;
  margin-top: 0.15rem;
  opacity: 0.75;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0.15rem;
  cursor: pointer;
  opacity: 0.92;
}

.icon-btn:hover,
.nav-link:hover {
  opacity: 1;
}

/* Mega menu */
.mega {
  position: absolute;
  top: 4.25rem;
  left: 0;
  right: 0;
  z-index: 35;
  background: #0f0f0f;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
}

.mega[hidden],
.search-panel[hidden],
.overlay[hidden] {
  display: none !important;
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
}

.mega h4 {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.86);
}

.mega a:hover {
  color: #fff;
}

.search-panel {
  position: absolute;
  top: 4.25rem;
  left: 0;
  right: 0;
  z-index: 35;
  background: #0f0f0f;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.25rem;
}

.search-panel input {
  width: 100%;
  max-width: 520px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.65rem 0;
  outline: none;
}

.search-panel p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.45);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(360px, 92vw);
  height: 100%;
  background: #111;
  border-left: 1px solid var(--line);
  padding: 1.25rem;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease);
}

body.cart-open .cart-drawer {
  transform: none;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h2 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-head button {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

.cart-empty {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.04);
  animation: zoom 22s var(--ease) infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-tag {
  position: absolute;
  left: 1.25rem;
  bottom: 1.5rem;
  margin: 0;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-shop {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  min-width: 7.5rem;
  min-height: 2.75rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.25s var(--ease);
}

.hero-shop:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Rails / product grids */
.rail {
  padding: 1.25rem 0 2.5rem;
  background: #0a0a0a;
}

.rail.soft {
  background: #0d0d0d;
}

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 1.25rem 1rem;
}

.rail-head h2,
.stores h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.rail-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.cat-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  max-width: min(78vw, 980px);
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.cat-scroll::-webkit-scrollbar {
  display: none;
}

.cat-scroll a,
.view-all {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.view-all {
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #2a2a2a;
  border-left: 1px solid #2a2a2a;
}

.product {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  background: var(--bg);
  color: inherit;
  min-width: 0;
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--card);
  overflow: hidden;
}

.badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  padding: 0.2rem 0.4rem;
  background: #111;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fav {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}

.fav svg {
  width: 16px;
  height: 16px;
}

.blank-garment {
  position: absolute;
  inset: 18% 28%;
  border: 1.5px dashed rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.04);
}

.blank-garment.tall {
  inset: 14% 30% 12%;
}

.blank-garment.wide {
  inset: 28% 18%;
}

.product-meta {
  padding: 0.7rem 0.75rem 0.9rem;
  background: #0a0a0a;
}

.blank-title-line {
  display: block;
  height: 0.7rem;
  width: 72%;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.price-row .label {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-row .value {
  font-size: 0.92rem;
  font-weight: 700;
}

/* Split campaign */
.split-campaign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.campaign-card {
  position: relative;
  min-height: 50vh;
  overflow: hidden;
}

.campaign-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transition: transform 0.6s var(--ease);
}

.campaign-card:hover img {
  transform: scale(1.04);
}

.campaign-card span {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Category tiles */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.category-tiles a {
  position: relative;
  min-height: 9rem;
  display: grid;
  place-items: end start;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 8px,
      transparent 8px,
      transparent 16px
    ),
    #121212;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Stores */
.stores {
  padding: 2rem 0 2.5rem;
}

.store-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 1.25rem;
  scrollbar-width: thin;
}

.store-blank {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 8px,
      transparent 8px,
      transparent 16px
    ),
    #1a1a1a;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.store-row h3 {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.about-strip {
  padding: 4rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.about-strip > p:first-child {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-style: italic;
  letter-spacing: -0.02em;
}

.about-strip h2 {
  margin: 0.75rem auto 0.85rem;
  max-width: 16ch;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.about-strip p {
  margin: 0 auto 1rem;
  max-width: 46ch;
  color: var(--muted);
}

.about-strip a {
  display: inline-block;
  margin: 0.35rem 0.55rem;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 1.5rem;
  background: #080808;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer a {
  display: block;
  padding: 0.28rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer a:hover {
  color: #fff;
}

.footer-signup p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.signup {
  display: flex;
  gap: 0.4rem;
}

.signup input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.65rem 0.7rem;
  outline: none;
}

.signup button {
  border: 0;
  background: #fff;
  color: #111;
  padding: 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.socials {
  display: flex;
  gap: 0.85rem;
}

.socials a {
  display: inline;
  padding: 0;
}

/* PDP */
.pdp-page .header {
  position: sticky;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.pdp {
  padding: 1.25rem 1.25rem 3.5rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.pdp-main-frame {
  position: relative;
  aspect-ratio: 1 / 1.15;
  background: var(--card);
  display: grid;
  place-items: center;
}

.pdp-ghost {
  width: 38%;
  height: 55%;
  border: 1.5px dashed rgba(0, 0, 0, 0.28);
  background: #111;
  transition: background 0.25s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease);
}

.pdp-ghost.tall {
  width: 34%;
  height: 66%;
}

.pdp-ghost.wide {
  width: 52%;
  height: 42%;
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.thumb {
  aspect-ratio: 1;
  border: 1px solid #333;
  background: #171717;
  cursor: pointer;
}

.thumb.is-active {
  border-color: #fff;
}

.blank-title {
  margin: 0.4rem 0 1rem;
  min-height: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.pdp-price-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.pdp-price-block > div {
  padding: 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.price-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-price,
.pdp-compare,
.pdp-meta p {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.pdp-compare {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1rem;
}

.option-block {
  margin-bottom: 1.15rem;
}

.option-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.option-head span:last-child {
  color: var(--muted);
  font-weight: 500;
}

.color-options,
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-swatch {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  cursor: pointer;
}

.color-swatch.is-active {
  border-color: #fff;
}

.size-chip {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
}

.size-chip.is-active,
.size-chip:hover {
  border-color: #fff;
}

.pdp-cta {
  width: 100%;
  min-height: 3rem;
  margin: 0.4rem 0 1.5rem;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  cursor: not-allowed;
}

.pdp-desc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blank-lines {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.blank-lines span {
  display: block;
  height: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.blank-lines .short {
  width: 60%;
}

.desc-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 40ch;
}

.pdp-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.pdp-meta p {
  font-size: 1rem;
  color: var(--muted);
}

.kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes chrome {
  to {
    background-position: 200% center;
  }
}

@keyframes zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .split-campaign,
  .pdp-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mega-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .primary-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  body.menu-open .primary-nav {
    display: flex;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #0f0f0f;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }

  body.menu-open .primary-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .text-btn:not(#cartBtn) {
    display: none;
  }

  .pdp-meta,
  .pdp-price-block {
    grid-template-columns: 1fr;
  }
}
