/* =========================================
   SNEAKER CATALOGUE
   Mobile-first black & white design
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050505;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

.page {
  display: none;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 38px 24px 60px;
}

.page.active {
  display: block;
}


/* =========================================
   HOME HEADER
========================================= */

.site-header {
  width: 100%;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-row h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 7px;
}

.header-row span {
  color: #9a9a9a;
  font-size: 13px;
  letter-spacing: 3px;
  white-space: nowrap;
}

.divider {
  width: 100%;
  height: 1px;
  background: #292929;
  margin: 26px 0 38px;
}


/* =========================================
   HERO
========================================= */

.hero {
  max-width: 720px;
}

.hero h2 {
  font-size: clamp(46px, 8vw, 78px);
  line-height: 0.92;
  letter-spacing: -3px;
  font-weight: 800;
}

.hero p {
  max-width: 650px;
  margin-top: 28px;
  color: #a3a3a3;
  font-size: 18px;
  line-height: 1.65;
}


/* =========================================
   PRODUCT SECTION
========================================= */

.products-section {
  margin-top: 64px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 30px;
  font-weight: 700;
}

.section-heading span {
  color: #858585;
  font-size: 13px;
  letter-spacing: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}


/* =========================================
   PRODUCT CARDS
========================================= */

.product-card {
  background: #101010;
  border: 1px solid #292929;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #4a4a4a;
}

.product-card:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.product-image {
  background: #f2f2f2;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7%;
}

.product-info {
  padding: 22px;
}

.product-info h3 {
  font-size: 23px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.product-info p {
  color: #a2a2a2;
  font-size: 16px;
  line-height: 1.55;
}

.card-divider {
  width: 100%;
  height: 1px;
  background: #2c2c2c;
  margin: 22px 0;
}

.view-product {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
}


/* =========================================
   PRODUCT PAGE
========================================= */

.product-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.product-page-header > span {
  color: #999999;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: right;
}

.back-button {
  border: 1px solid #484848;
  border-radius: 999px;
  background: transparent;
  padding: 13px 21px;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.back-button:hover {
  background: #ffffff;
  color: #000000;
}


/* =========================================
   LARGE PRODUCT IMAGE
========================================= */

.main-product-image {
  width: 100%;
  background: #f2f2f2;
  border-radius: 25px;
  overflow: hidden;
  aspect-ratio: 1.35 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7%;
}


/* =========================================
   PRODUCT INFORMATION
========================================= */

.product-details {
  margin-top: 34px;
}

.product-details h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -2px;
}

.product-meta {
  margin-top: 14px;
  color: #929292;
  font-size: 17px;
}

.colour-section {
  margin-top: 46px;
}

.small-heading {
  color: #9b9b9b;
  font-size: 13px;
  letter-spacing: 4px;
}

.colour-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}


/* =========================================
   COLOUR OPTION CARDS
========================================= */

.colour-option {
  width: 160px;
  background: #101010;
  border: 1px solid #333333;
  border-radius: 20px;
  padding: 10px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.colour-option:hover {
  transform: translateY(-2px);
  border-color: #666666;
}

.colour-option.active {
  border: 2px solid #ffffff;
}

.colour-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f2f2f2;
  border-radius: 13px;
  padding: 8%;
}

.colour-option span {
  display: block;
  margin-top: 12px;
  padding-bottom: 3px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}


/* =========================================
   DM BUTTON
========================================= */

.dm-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  margin-top: 48px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.dm-button:hover {
  background: #ffffff;
  color: #000000;
}


/* =========================================
   TABLET / DESKTOP
========================================= */

@media (min-width: 760px) {

  .page {
    padding: 55px 40px 80px;
  }

  .product-grid {
    gap: 28px;
  }

  .product-info {
    padding: 28px;
  }

  .main-product-image {
    max-height: 650px;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .page {
    padding: 30px 18px 50px;
  }

  .header-row h1 {
    font-size: 21px;
    letter-spacing: 5px;
  }

  .header-row span {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .divider {
    margin: 22px 0 32px;
  }

  .hero h2 {
    font-size: 50px;
    letter-spacing: -2px;
  }

  .hero p {
    margin-top: 23px;
    font-size: 16px;
    line-height: 1.6;
  }

  .products-section {
    margin-top: 52px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .section-heading span {
    font-size: 11px;
  }

  .product-grid {
    gap: 12px;
  }

  .product-card {
    border-radius: 19px;
  }

  .product-info {
    padding: 15px;
  }

  .product-info h3 {
    font-size: 17px;
  }

  .product-info p {
    font-size: 14px;
  }

  .card-divider {
    margin: 17px 0;
  }

  .view-product {
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  .product-page-header > span {
    max-width: 55%;
    font-size: 11px;
    letter-spacing: 2px;
  }

  .back-button {
    padding: 11px 16px;
    font-size: 11px;
  }

  .main-product-image {
    border-radius: 20px;
    aspect-ratio: 1 / 1;
  }

  .product-details {
    margin-top: 27px;
  }

  .product-details h1 {
    font-size: 38px;
  }

  .product-meta {
    font-size: 15px;
  }

  .colour-section {
    margin-top: 38px;
  }

  .colour-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .colour-option {
    width: 100%;
    border-radius: 18px;
  }

  .dm-button {
    min-height: 60px;
    margin-top: 38px;
    font-size: 13px;
    letter-spacing: 2px;
  }
}

/* =====================
   CATEGORY NAVIGATION
===================== */

.category-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
}

.category-tab {
  width: 100%;
  min-height: 54px;
  padding: 12px 10px;

  background: transparent;
  color: #ffffff;
  border: 1px solid #444444;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  line-height: 1.3;

  cursor: pointer;
}

.category-tab.active {
  background: #ffffff;
  color: #050505;
  border-color: #ffffff;
}

.category-tab:hover {
  border-color: #ffffff;
}

/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 370px) {

  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h2 {
    font-size: 43px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 15px;
  }

  .product-info p {
    font-size: 12px;
  }
}