:root {
  --black: #111;
  --paper: #f7f5ef;
  --line: #dedbd2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;

  color: var(--black);
  background: var(--paper);
}

body.modal-open {
  overflow: hidden;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  height: 76px;

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

  padding: 14px 5vw;

  border-bottom: 1px solid var(--line);

  background: rgba(255, 255, 255, .96);

  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;

  width: auto;
  height: 42px;

  max-width: 190px;

  object-fit: contain;
}

.cart-label {
  font-size: 13px;
  font-weight: 600;
}

/* MAIN */

main {
  max-width: 1250px;

  margin: auto;

  padding:
    76px
    5vw
    160px;
}

/* HERO */

.hero {
  padding: 85px 0 55px;

  max-width: 720px;
}

.eyebrow {
  font-size: 12px;

  font-weight: 800;

  letter-spacing: .16em;

  margin-bottom: 18px;
}

h1 {
  font-size: clamp(42px, 7vw, 78px);

  line-height: .95;

  margin: 0 0 22px;

  letter-spacing: -.055em;
}

.hero p:not(.eyebrow) {
  font-size: 18px;

  line-height: 1.55;

  color: #555;

  margin: 0;
}

/* COLLECTIONS */

.collection {
  margin-bottom: 70px;
}

.collection-header {
  display: flex;

  align-items: baseline;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 24px;

  border-bottom: 1px solid var(--line);

  padding-bottom: 12px;
}

.collection-title {
  margin: 0;

  font-size: 22px;

  letter-spacing: -.02em;
}

.collection-count {
  color: #777;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: .08em;

  text-transform: uppercase;
}

/* PRODUCTS */

.products {
  display: block;
}

.product-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;
}

.card {
  background: #fff;

  border: 1px solid var(--line);

  overflow: hidden;
}

/* PRODUCT IMAGE */

.photo {
  aspect-ratio: 1;

  background: #eee;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  cursor: zoom-in;
}

.photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition:
    transform .25s ease;
}

.photo:hover img {
  transform: scale(1.025);
}

.placeholder {
  color: #aaa;

  font-size: 13px;
}

/* PRODUCT BODY */

.card-body {
  padding: 22px;
}

.card h2 {
  font-size: 21px;

  margin: 0 0 9px;
}

.desc {
  color: #666;

  font-size: 14px;

  line-height: 1.5;

  min-height: 42px;
}

/* PRICE */

.price {
  margin: 18px 0;

  font-weight: 800;

  line-height: 1.35;
}

.price-original {
  font-size: 16px;
}

.price-bundle {
  margin-top: 4px;

  font-size: 14px;

  color: #555;

  font-weight: 700;
}

/* QUANTITY */

.qty {
  display: flex;

  align-items: center;

  justify-content: space-between;

  border-top: 1px solid var(--line);

  padding-top: 18px;
}

.qty button {
  width: 38px;
  height: 38px;

  border: 1px solid #bbb;

  background: #fff;

  font-size: 20px;

  cursor: pointer;
}

.qty button:hover {
  background: #f5f5f5;
}

.qty-value {
  min-width: 35px;

  text-align: center;

  font-weight: 700;
}

/* SIZES */

.sizes {
  margin-top: 18px;

  padding-top: 18px;

  border-top: 1px solid var(--line);
}

.sizes-title {
  font-size: 10px;

  font-weight: 800;

  letter-spacing: .15em;

  color: #777;

  margin-bottom: 10px;
}

.size-list {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.size-row {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 13px;
}

.size-row span {
  color: #555;
}

.size-row select {
  flex: 1;

  height: 40px;

  padding: 0 10px;

  border: 1px solid #bbb;

  background: #fff;

  color: var(--black);

  font: inherit;

  font-size: 14px;

  cursor: pointer;
}

.size-row select:focus {
  outline: 2px solid #111;

  outline-offset: 1px;
}

/* IMAGE MODAL */

.image-modal {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(0, 0, 0, .92);

  cursor: zoom-out;
}

.image-modal.open {
  display: flex;
}

.image-modal img {
  max-width: 95vw;

  max-height: 92vh;

  width: auto;
  height: auto;

  object-fit: contain;

  cursor: default;

  user-select: none;
}

.image-modal-close {
  position: absolute;

  top: 18px;
  right: 22px;

  z-index: 1;

  width: 48px;
  height: 48px;

  border: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, .12);

  color: #fff;

  font-size: 36px;

  line-height: 1;

  cursor: pointer;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, .22);
}

/* CHECKOUT */

.checkout-bar {
  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 900;

  background: #fff;

  border-top: 1px solid var(--line);

  padding: 16px 5vw;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;
}

.small {
  font-size: 10px;

  font-weight: 800;

  letter-spacing: .15em;

  color: #777;

  margin-bottom: 5px;
}

.checkout-right {
  display: flex;

  align-items: center;

  gap: 24px;
}

.total {
  font-size: 22px;

  font-weight: 900;
}

#checkout {
  border: 0;

  background: #111;

  color: #fff;

  padding: 16px 28px;

  font-weight: 800;

  cursor: pointer;
}

#checkout:disabled {
  opacity: .35;

  cursor: not-allowed;
}

/* MOBILE */

@media (max-width: 800px) {

  .site-header {
    height: 68px;

    padding:
      12px
      5vw;
  }

  .brand img {
    height: 36px;

    max-width: 160px;
  }

  main {
    padding-top: 68px;
  }

  .hero {
    padding-top: 55px;
  }

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

  .collection {
    margin-bottom: 55px;
  }

  .checkout-bar {
    padding:
      12px
      5vw;
  }

  .checkout-right {
    gap: 12px;
  }

  .total {
    font-size: 18px;
  }

  #checkout {
    padding:
      14px 18px;
  }

  .image-modal {
    padding: 15px;
  }
}
