@import url("https://fonts.cdnfonts.com/css/old-london");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0d0d0d;
  --bg-deep: #050505;
  --panel: #141414;
  --panel-strong: #1b1b1b;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e10600;
  --whatsapp: #16a34a;
  --logo-source: url("underhouse-logo-transparent.png?v=20260620");
  --hero-source: url("hero-underhouse.png?v=20260620");
  --font-old: "Old London", "UnifrakturMaguntia", "UnifrakturCook", "Engravers Old English BT", Georgia, serif;
  --font-display: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: "Montserrat", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #161616 0%, var(--bg-deep) 42%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.28;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 5vw, 76px);
  background: rgba(8, 8, 8, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo-crop {
  display: block;
  width: 150px;
  height: 76px;
  background-image: var(--logo-source);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.62));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.nav-links a,
.nav-whatsapp,
.button {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-whatsapp,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nav-whatsapp {
  padding: 9px 16px;
}

.button {
  padding: 10px 22px;
}

.nav-whatsapp:hover,
.button:hover,
.product-card:hover {
  transform: translateY(-2px);
}

.nav-whatsapp:hover,
.button:hover {
  border-color: rgba(225, 6, 0, 0.72);
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
}

.button.primary:hover {
  background: #ff0d07;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(560px, 78vh, 780px);
  width: 100%;
  margin: 0px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #050505;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-source);
  background-position: center 45%;
  background-size: cover;
  filter: contrast(1.08) saturate(1.05) brightness(0.95);
  transform: scale(1.01);
  transform-origin: center;
}

.hero.underground-hero {
  min-height: clamp(657px, 91.5vh, 915px);
}

.hero.esportes-hero,
.hero.sports-hero {
  min-height: clamp(756px, 105.3vh, 1053px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.625) 45%, rgba(0, 0, 0, 0.225)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 760px;
  padding: clamp(24px, 5vw, 58px);
}

.hero-logo {
  width: clamp(210px, 28vw, 420px);
  height: clamp(104px, 14vw, 210px);
  margin-bottom: clamp(18px, 4vw, 34px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 0 0 16px;
  font-family: var(--font-old);
  font-size: clamp(72px, 14vw, 158px);
  font-weight: 400;
  line-height: 0.82;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 26px;
  color: #e0e0e0;
  font-family: var(--font-old);
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.02;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1260px, calc(100% - 40px));
  margin: 14px auto 0;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.88);
}

.feature-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: #d9d9d9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

.feature-strip span:first-child {
  border-left: 0;
}

.stock,
.contact-band,
.footer {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
}

.stock {
  padding: 56px 0 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px 18px;
}

.section-head h2,
.contact-band h2,
.cart-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 0.86;
  text-transform: uppercase;
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(100%, 380px);
}

.search-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a0a0a;
  color: var(--text);
  outline: 0;
  padding: 0 14px;
}

.search-box input:focus {
  border-color: rgba(225, 6, 0, 0.72);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.brand-heading {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  border-color: rgba(225, 6, 0, 0.62);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #090909;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-pair {
  display: flex;
  flex-direction: row;
  gap: 1px;
}

.image-pair img {
  flex: 1 1 0;
  min-width: 0;
}

.product-info {
  display: grid;
  grid-template-rows: auto minmax(42px, 1fr) auto;
  gap: 9px;
  min-height: 262px;
  overflow: hidden;
  padding: 16px;
}

.product-info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.25vw, 31px);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
}

.product-info h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-wrap: balance;
}

.product-details {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  padding-left: 2px;
  margin-top: 10px;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.stock-label {
  color: #fff;
}

.size-select,
.detail-size-select {
  display: grid;
  gap: 6px;
}

.size-select span,
.detail-size-select span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.size-select select,
.detail-size-select select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a0a0a;
  color: var(--text);
  outline: 0;
  padding: 0 10px;
}

.size-select select:focus,
.detail-size-select select:focus {
  border-color: rgba(225, 6, 0, 0.72);
}

.product-info strong {
  margin-top: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.old-price {
  text-decoration: line-through;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.card-actions .button {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  text-align: center;
}

.empty-results,
.empty-cart {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.empty-results {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.cart-panel {
  position: sticky;
  top: 120px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.cart-header,
.cart-footer {
  padding: 18px;
}

.cart-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-size: 34px;
}

.cart-header strong {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(225, 6, 0, 0.58);
  border-radius: 50%;
  color: #fff;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 118px;
  padding: 14px 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.cart-item p {
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.remove-item {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 800;
}

.cart-footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cart-checkout {
  width: 100%;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(225, 6, 0, 0.12), transparent 42%),
    var(--panel-strong);
}

.accessory-stock,
.coming-soon-stock {
  padding-top: 30px;
}

.contact-band p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
}

.footer p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.product-page-shell {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 24px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 10px;
}

.product-gallery img {
  width: 100%;
  height: auto;
  max-height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
  object-fit: cover;
}

.product-gallery-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-gallery-multiple img {
  aspect-ratio: 1 / 1;
}

.product-detail-info {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.back-link {
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--red);
}

.product-detail-info h1,
.empty-detail h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 0.86;
  text-transform: uppercase;
}

.product-description {
  margin: 0;
  color: #dfdfdf;
  font-size: 15px;
  font-weight: 600;
}

.product-specs {
  display: grid;
  gap: 10px;
  margin: 0;
}

.product-specs div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-specs dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.product-specs dd {
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.product-whatsapp {
  width: 100%;
}

.empty-detail {
  min-height: 440px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}

.empty-detail p:not(.eyebrow) {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: auto auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-strip span:nth-child(odd) {
    border-left: 0;
  }

  .feature-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail,
  .product-gallery-multiple {
    grid-template-columns: 1fr;
  }

  .product-detail-info {
    position: static;
  }
}

@media (max-width: 620px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 18px;
  }

  .brand,
  .nav-whatsapp {
    justify-self: center;
  }

  .logo-crop {
    width: 122px;
    height: 62px;
  }

  .nav-links {
    justify-content: center;
    gap: 12px 18px;
    font-size: 11px;
    letter-spacing: 1.1px;
  }

  .nav-whatsapp {
    padding-inline: 13px;
  }

  .hero {
    width: 100%;
    min-height: 610px;
  }

  .hero::after {
    background-position: center top;
  }

  .hero.underground-hero {
    min-height: 716px;
  }

  .hero.esportes-hero,
  .hero.sports-hero {
    min-height: 824px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.275), rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 1)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  }

  .hero-content {
    padding: 20px;
  }

  .hero-logo {
    width: 235px;
    height: 118px;
  }

  .stock,
  .contact-band,
  .footer,
  .feature-strip {
    width: min(100% - 28px, 1260px);
  }

  .section-head,
  .contact-band,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .feature-strip,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feature-strip span:first-child {
    border-top: 0;
  }

  .footer p {
    text-align: left;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: auto 1fr auto;
  }

  .product-info {
    min-height: 0;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 460px) {
  .hero-content,
  .product-detail-info,
  .contact-band {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(56px, 18vw, 72px);
  }

  .hero p:not(.eyebrow) {
    font-size: clamp(23px, 8vw, 30px);
  }

  .product-page-shell {
    width: min(100% - 28px, 1260px);
    padding-top: 34px;
  }

  .product-specs div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .card-actions {
    padding: 0 12px 12px;
  }

  .product-info {
    padding: 14px 12px;
  }

  .whatsapp-float {
    max-width: calc(100% - 32px);
  }
}
