:root {
  --ink: #171511;
  --muted: #68635b;
  --paper: #f7f2e8;
  --paper-2: #efe6d6;
  --line: #d8cbb6;
  --charcoal: #202024;
  --accent: #b6fb51;
  --accent-2: #cc4b24;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(23, 21, 17, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 21, 17, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(circle at 10% 0%, rgba(204, 75, 36, 0.12), transparent 28rem),
    var(--paper);
  font-family: Manrope, sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 21, 17, 0.12);
  background: rgba(247, 242, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav a,
.primary-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.8rem;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-button,
.secondary-link,
.filter,
.buy-button,
.try-button,
.checkout-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--charcoal);
  border-radius: 999px;
  font-weight: 800;
}

.cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.82rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - 74px);
  padding: clamp(32px, 6vw, 78px) clamp(18px, 5vw, 70px) 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.story-section h2,
.tryon-layout h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 8vw, 8.8rem);
  line-height: 0.84;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions,
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.buy-button,
.try-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-link,
.buy-button {
  color: var(--ink);
  background: var(--accent);
}

.secondary-link,
.try-button {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.media-tag {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--paper);
  background: rgba(23, 21, 17, 0.86);
  border-radius: 8px;
}

.media-tag span {
  color: rgba(247, 242, 232, 0.78);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 18px;
  padding: 20px clamp(18px, 5vw, 70px);
  border-block: 1px solid var(--line);
  background: rgba(239, 230, 214, 0.62);
}

.search-wrap {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.filter {
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.filter.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.drop-section,
.story-section {
  padding: clamp(44px, 7vw, 90px) clamp(18px, 5vw, 70px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2,
.story-section h2,
.tryon-layout h2 {
  font-size: clamp(2rem, 4.5vw, 4.8rem);
  line-height: 0.95;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 0.75fr);
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-shell + .product-shell {
  margin-top: 28px;
}

.product-shell[hidden] {
  display: none;
}

.gallery {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.gallery-main,
.thumb {
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.gallery-main {
  order: 2;
  min-width: 0;
  background: var(--paper-2);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  background: var(--paper);
}

.thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
}

.thumb.active {
  border-color: var(--accent-2);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 46px);
}

.listing-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.listing-status span {
  padding: 7px 10px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 0.98;
}

.product-subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 26px 0;
}

.price-line strong {
  font-size: 2.7rem;
  letter-spacing: 0;
}

.price-line span {
  color: var(--muted);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.spec-grid div {
  min-height: 94px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-grid strong {
  line-height: 1.35;
}

.inspection {
  margin-top: 24px;
  padding: 18px;
  background: var(--paper);
  border-radius: 8px;
}

.inspection h4 {
  margin: 0 0 10px;
}

.inspection ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) 1fr;
  gap: clamp(24px, 5vw, 70px);
  background: var(--charcoal);
  color: var(--paper);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(247, 242, 232, 0.2);
  border: 1px solid rgba(247, 242, 232, 0.2);
}

.story-grid div {
  padding: 22px;
  background: var(--charcoal);
}

.story-grid span {
  color: var(--accent);
  font-weight: 800;
}

.story-grid h3 {
  margin: 18px 0 10px;
}

.story-grid p {
  margin: 0;
  color: rgba(247, 242, 232, 0.7);
  line-height: 1.65;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  justify-content: flex-end;
  background: rgba(23, 21, 17, 0.42);
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  width: min(420px, 100%);
  height: 100%;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h2 {
  margin: 0;
}

.cart-head button,
.lightbox-close {
  width: 42px;
  height: 42px;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

.cart-empty {
  margin: 32px 0;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  margin: 24px 0;
}

.cart-item img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item span,
.cart-item b {
  display: block;
  margin-top: 6px;
}

.cart-item span {
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

.checkout-button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 999px;
  font-weight: 800;
}

.lightbox,
.tryon-modal {
  width: min(980px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lightbox::backdrop,
.tryon-modal::backdrop {
  background: rgba(23, 21, 17, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: var(--paper-2);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.tryon-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(260px, 0.65fr);
  gap: 0;
}

.tryon-layout img {
  width: 100%;
  height: min(82vh, 760px);
  object-fit: cover;
}

.tryon-layout div {
  align-self: center;
  padding: clamp(28px, 5vw, 54px);
}

.tryon-layout p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .product-shell,
  .story-section,
  .tryon-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .filters {
    justify-content: flex-start;
  }

  .gallery {
    grid-template-columns: 1fr;
    border-right: 0;
  }

  .gallery-main {
    order: 0;
    min-height: 460px;
  }

  .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 560px) {
  .topbar {
    padding: 14px;
  }

  .brand span:last-child,
  .cart-button span:first-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .hero-media {
    min-height: 430px;
  }

  .media-tag {
    flex-direction: column;
  }

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

  .price-line {
    display: block;
  }

  .gallery-main {
    min-height: 360px;
  }
}
