* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f7f3;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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


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

.shop-header {
  height: 92px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e3e3dd;
  position: sticky;
  top: 0;
  z-index: 50;
}

.shop-logo img {
  width: 125px;
  height: auto;
}

.shop-nav {
  display: flex;
  gap: 30px;
}

.shop-nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.shop-nav a:hover {
  opacity: .55;
}

.cart-button {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cart-button span {
  margin-left: 8px;
}


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

.shop-hero {
  min-height: 480px;
  padding: 100px 7vw;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.58),
      rgba(0,0,0,.08)
    ),
    url("assets/photos/hero.jpg") center/cover;
  color: #fff;
}

.shop-hero h1 {
  margin: 25px 0;
  font-size: clamp(70px, 10vw, 145px);
  line-height: .82;
  font-weight: 400;
  letter-spacing: -.065em;
}

.shop-hero p {
  max-width: 500px;
  font-size: 18px;
  line-height: 1.5;
}

.shop-eyebrow {
  font-size: 11px;
  letter-spacing: .17em;
}


/* =========================
   CATEGORY BAR
========================= */

.category-bar {
  padding: 25px 7vw;
  background: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-button {
  border: 1px solid #ccc;
  background: transparent;
  padding: 12px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.category-button:hover,
.category-button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}


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

.shop-products {
  padding: 110px 7vw 150px;
}

.shop-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 70px;
}

.shop-section-label {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  color: #777;
  text-transform: uppercase;
}

.shop-heading h2 {
  margin: 25px 0 0;
  font-size: clamp(55px, 7vw, 100px);
  line-height: .9;
  font-weight: 400;
  letter-spacing: -.06em;
}

.shop-heading > p {
  max-width: 390px;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px 18px;
}

.shop-product {
  background: #fff;
  min-width: 0;
}

.product-image {
  height: 390px;
  position: relative;
  overflow: hidden;
  background: #e7e7e1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.shop-product:hover .product-image img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  padding: 8px 11px;
  font-size: 9px;
  letter-spacing: .1em;
}

.product-info {
  padding: 22px 20px 25px;
}

.product-info h3 {
  margin: 0 0 9px;
  font-size: 22px;
  font-weight: 400;
}

.product-description {
  margin: 0 0 24px;
  color: #777;
  font-size: 13px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.product-bottom strong {
  font-size: 17px;
  font-weight: 500;
}

.add-button {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 11px 19px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.add-button:hover {
  background: #333;
}

.featured-product {
  outline: 2px solid #111;
  outline-offset: -2px;
}


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

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
  z-index: 90;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}


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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(500px, 100%);
  height: 100vh;
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 30px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-header h2 {
  margin: 12px 0 0;
  font-size: 38px;
  font-weight: 400;
}

.close-cart {
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 25px 30px;
}

.empty-cart {
  color: #777;
  text-align: center;
  margin-top: 60px;
}

.cart-item {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.cart-item-image {
  width: 75px;
  height: 75px;
  object-fit: cover;
}

.cart-item-name {
  margin: 0 0 6px;
  font-size: 15px;
}

.cart-item-price {
  margin: 0 0 13px;
  color: #666;
  font-size: 13px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-controls button {
  width: 27px;
  height: 27px;
  border: 1px solid #bbb;
  background: #fff;
}

.quantity-controls span {
  min-width: 35px;
  text-align: center;
  font-size: 13px;
}

.remove-item {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 10px;
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.remove-item:hover {
  color: #111;
}


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

.cart-footer {
  padding: 25px 30px 30px;
  border-top: 1px solid #ddd;
  background: #fafaf7;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

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

.cart-limit {
  margin: 12px 0 20px;
  color: #777;
  font-size: 11px;
}

.checkout-button {
  width: 100%;
  border: 0;
  padding: 17px;
  background: #111;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.checkout-button:disabled {
  background: #bbb;
  cursor: not-allowed;
}


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

@media (max-width: 900px) {

  .shop-header {
    height: 80px;
    padding: 0 5vw;
  }

  .shop-logo img {
    width: 105px;
  }

  .shop-nav {
    display: none;
  }

  .shop-hero {
    min-height: 500px;
    padding: 80px 5vw;
  }

  .category-bar {
    padding: 20px 5vw;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .category-button {
    white-space: nowrap;
  }

  .shop-products {
    padding: 80px 5vw 110px;
  }

  .shop-heading {
    display: block;
    margin-bottom: 50px;
  }

  .shop-heading > p {
    margin-top: 30px;
  }

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

  .product-image {
    height: 320px;
  }
}

@media (max-width: 600px) {

  .shop-hero {
    min-height: 520px;
  }

  .shop-hero h1 {
    font-size: 75px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 420px;
  }

  .cart-header,
  .cart-items,
  .cart-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}