/* =====================================================
   BTCH CLOTHING
   CLEAN WHITE / BLACK STREETWEAR
===================================================== */


/* =========================
   RESET
========================= */

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

html {
  width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  width: 100%;
  overflow-x: hidden;

  background: #ffffff;
  color: #111111;

  font-family: Arial, Helvetica, sans-serif;
}


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

header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 82px;

  padding: 10px 55px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.94);

  border-bottom: 1px solid #eeeeee;

  z-index: 10000;

  backdrop-filter: blur(8px);
}


/* LOGO */

.logo {
  width: 150px;
  height: 65px;

  display: flex;
  align-items: center;

  text-decoration: none;
}

.logo img {
  width: 150px;
  height: auto;

  max-height: 65px;

  display: block;

  object-fit: contain;
}


/* NAVIGATION */

header nav {
  display: flex;
  align-items: center;

  gap: 35px;

  position: relative;
  z-index: 10001;
}

header nav a {
  color: #111111;

  text-decoration: none;

  font-size: 12px;

  font-weight: 600;

  letter-spacing: 1px;

  transition: opacity 0.2s ease;
}

header nav a:hover {
  opacity: 0.5;
}


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

.hero {
  position: relative;

  /*
     Increased from 90vh to 100vh so more
     of the original hero photo is visible.
  */
  min-height: 100vh;

  padding: 170px 60px 100px;

  display: flex;
  align-items: center;

  background-image: url("hero.jpg");

  /*
     Keep the full width filled while keeping
     the top of the original photo visible.
  */
  background-size: cover;

  background-repeat: no-repeat;

  background-position: center top;

  color: #ffffff;
}


/* HERO OVERLAY */

.hero-overlay {
  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.42);

  z-index: 0;

  pointer-events: none;
}


/* HERO CONTENT */

.hero-content {
  position: relative;

  z-index: 2;

  max-width: 950px;
}


/* HERO TITLE */

.hero h1 {
  font-size: 4.5rem;

  line-height: 1;

  font-weight: 800;

  letter-spacing: 0.07em;

  color: #ffffff;
}


/* HERO DESCRIPTION */

.hero p {
  margin-top: 18px;

  font-size: 13px;

  letter-spacing: 0.18em;

  color: #eeeeee;
}


/* HERO BUTTON */

.hero-shop-button {
  display: inline-block;

  margin-top: 35px;

  padding: 15px 38px;

  background: #ffffff;

  color: #111111;

  text-decoration: none;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1.5px;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero-shop-button:hover {
  background: #111111;

  color: #ffffff;

  transform: translateY(-2px);
}


/* =====================================================
   SHOP
===================================================== */

.shop-section {
  width: 100%;

  max-width: 1500px;

  margin: 0 auto;

  padding: 115px 45px 130px;

  background: #ffffff;

  color: #111111;
}


/* SECTION HEADER */

.section-header {
  text-align: center;

  margin-bottom: 70px;
}

.section-label {
  margin-bottom: 15px;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 5px;

  color: #999999;
}

.shop-section h2 {
  font-size: 30px;

  font-weight: 800;

  letter-spacing: 3px;

  color: #111111;
}


/* =====================================================
   PRODUCTS
===================================================== */

.products-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 60px 35px;
}


/* PRODUCT CARD */

.product-card {
  text-align: left;

  background: #ffffff;

  color: #111111;
}


/* PRODUCT IMAGE WRAPPER */

.product-image {
  width: 100%;

  aspect-ratio: 3 / 4;

  background: #ffffff;

  overflow: hidden;

  position: relative;
}

.product-image img {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: contain;

  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
}


/* DIRECT PRODUCT IMAGE */

.product-card > img {
  width: 100%;

  aspect-ratio: 3 / 4;

  display: block;

  object-fit: contain;

  background: #ffffff;

  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
}


/* PRODUCT HOVER */

.product-card:hover .product-image img,
.product-card:hover > img {
  transform: scale(1.025);

  opacity: 0.92;
}


/* PRODUCT NAME */

.product-card h3 {
  margin-top: 17px;

  font-size: 12px;

  line-height: 1.4;

  letter-spacing: 1px;

  font-weight: 600;

  color: #222222;
}


/* PRICE */

.product-card p {
  margin-top: 6px;

  font-size: 13px;

  font-weight: 600;

  color: #777777;
}


/* =====================================================
   ABOUT
===================================================== */

.about-section {
  width: 100%;

  /*
     Reduced from 150px so there isn't
     too much empty space.
  */
  padding: 110px 30px;

  background: #ffffff;

  color: #111111;

  text-align: center;

  border-top: 1px solid #eeeeee;
}

.about-content {
  max-width: 780px;

  margin: 0 auto;
}

.about-section h2 {
  margin-bottom: 35px;

  font-size: 46px;

  font-weight: 800;

  letter-spacing: 4px;

  color: #111111;
}

.about-section p:not(.section-label):not(.about-tagline) {
  margin-bottom: 18px;

  font-size: 15px;

  line-height: 1.9;

  color: #666666;
}

.about-tagline {
  margin-top: 45px;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 5px;

  color: #333333;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-section {
  width: 100%;

  /*
     Reduced from 150px.
  */
  padding: 110px 30px;

  background: #ffffff;

  color: #111111;

  text-align: center;

  border-top: 1px solid #eeeeee;
}

.contact-content {
  max-width: 850px;

  margin: 0 auto;
}

.contact-section h2 {
  margin-bottom: 35px;

  font-size: 46px;

  font-weight: 800;

  letter-spacing: 4px;

  color: #111111;
}


/* CONTACT LINKS */

.contact-links {
  margin-top: 45px;

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 60px;

  flex-wrap: wrap;
}

.contact-links a {
  color: #555555;

  text-decoration: none;

  font-size: 14px;

  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: #000000;
}


/* =====================================================
   CART
===================================================== */


/*
   CART STARTS HIDDEN
*/

.cart-overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.65);

  z-index: 99999;

  display: none;

  justify-content: flex-end;
}


/*
   JavaScript can add .active
*/

.cart-overlay.active {
  display: flex;
}


/* CART CONTAINER */

.cart-container {
  width: 420px;

  max-width: 90%;

  height: 100%;

  padding: 30px;

  overflow-y: auto;

  background: #ffffff;

  color: #111111;

  box-shadow:
    -10px 0 30px rgba(0, 0, 0, 0.3);
}


/* CART HEADER */

.cart-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 30px;
}

.cart-header h2 {
  font-size: 24px;

  letter-spacing: 2px;
}

#close-cart {
  border: none;

  background: none;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  color: #111111;
}


/* CART ITEMS */

.cart-item {
  display: flex;

  align-items: center;

  gap: 15px;

  padding: 20px 0;

  border-bottom: 1px solid #dddddd;
}

.cart-item img {
  width: 80px !important;

  height: 100px !important;

  object-fit: contain;

  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h3 {
  font-size: 13px;

  margin-bottom: 8px;
}

.cart-item-info p {
  font-size: 13px;

  margin-bottom: 10px;
}


/* QUANTITY */

.quantity-controls {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 8px;
}

.quantity-controls button {
  width: 28px;

  height: 28px;

  border: 1px solid #111111;

  background: #ffffff;

  cursor: pointer;
}


/* REMOVE */

.remove-item {
  border: none;

  background: none;

  font-size: 10px;

  text-decoration: underline;

  cursor: pointer;
}


/* CART FOOTER */

.cart-footer {
  margin-top: 30px;
}


/* TOTAL */

.cart-total {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 20px;
}

.cart-total span {
  font-size: 12px;

  letter-spacing: 2px;
}

.cart-total strong {
  font-size: 18px;
}


/* CHECKOUT */

#checkout-button {
  width: 100%;

  padding: 15px;

  border: none;

  background: #111111;

  color: #ffffff;

  font-weight: 700;

  cursor: pointer;

  letter-spacing: 1px;
}

#checkout-button:hover {
  opacity: 0.8;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
  width: 100%;

  padding: 90px 30px 45px;

  background: #ffffff;

  color: #111111;

  text-align: center;

  border-top: 1px solid #eeeeee;
}


/* FOOTER LOGO */

.footer-logo {
  margin-bottom: 40px;
}

.footer-logo img {
  width: 190px;

  max-width: 70%;

  height: auto;

  display: block;

  margin: 0 auto;

  object-fit: contain;
}


/* FOOTER LINKS */

.footer-links {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 30px;
}

.footer-links a {
  color: #777777;

  text-decoration: none;

  font-size: 10px;

  letter-spacing: 1.2px;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #111111;
}


/* COPYRIGHT */

.copyright {
  margin-top: 35px;

  font-size: 10px;

  letter-spacing: 1px;

  color: #aaaaaa;
}


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

@media (max-width: 1200px) {

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}


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

@media (max-width: 768px) {

  header {
    height: 68px;

    padding: 9px 25px;
  }


  /* HEADER LOGO */

  .logo {
    width: 100px;

    height: 45px;
  }

  .logo img {
    width: 100px;

    max-height: 45px;
  }


  /* NAV */

  header nav {
    gap: 18px;
  }

  header nav a {
    font-size: 10px;
  }


  /* HERO */

  .hero {
    min-height: 90vh;

    padding: 130px 30px 80px;

    /*
       Keep the top of the photo visible
       on mobile too.
    */
    background-position: center top;
  }

  .hero h1 {
    font-size: 3rem;

    line-height: 1.05;
  }

  .hero p {
    font-size: 10px;

    letter-spacing: 0.12em;
  }


  /* SHOP */

  .shop-section {
    padding: 90px 25px 100px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 45px 18px;
  }

  .shop-section h2 {
    font-size: 26px;
  }


  /* ABOUT */

  .about-section {
    padding: 90px 25px;
  }

  .about-section h2 {
    font-size: 32px;
  }


  /* CONTACT */

  .contact-section {
    padding: 90px 25px;
  }

  .contact-section h2 {
    font-size: 32px;
  }

  .contact-links {
    flex-direction: column;

    gap: 25px;
  }


  /* FOOTER */

  .footer-logo img {
    width: 160px;
  }

}


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

@media (max-width: 480px) {

  header {
    padding: 8px 18px;
  }


  /* HEADER LOGO */

  .logo {
    width: 80px;

    height: 38px;
  }

  .logo img {
    width: 80px;

    max-height: 38px;
  }


  /* NAV */

  header nav {
    gap: 10px;
  }

  header nav a {
    font-size: 9px;
  }


  /* HERO */

  .hero {
    padding-left: 20px;

    padding-right: 20px;

    min-height: 85vh;

    background-position: center top;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 9px;
  }

  .hero-shop-button {
    padding: 13px 24px;

    font-size: 10px;
  }


  /* PRODUCTS */

  .products-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .shop-section {
    padding-left: 20px;

    padding-right: 20px;
  }


  /* FOOTER */

  footer {
    padding: 65px 20px 35px;
  }

  .footer-links {
    flex-direction: column;

    gap: 18px;
  }


  /* CART */

  .cart-container {
    width: 100%;

    max-width: 100%;
  }

}