:root {
  --bg: #ffffff;
  --fg: #121212;
  --muted: #6d6d6d;
  --line: #e8e8e8;
  --soft: #f6f6f6;
  --accent: #121212;
  --demo: #1f3d2b;
  --page: 1180px;
  --header: 4rem;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.demo-bar {
  background: var(--demo);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.45rem 1rem;
}

.announce {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem 1rem;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
}

.logo {
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.92rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover {
  opacity: 0.65;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1rem;
  text-align: center;
}

.nav-toggle {
  display: none;
}

.wrap {
  width: min(var(--page), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 550;
}

.hero p {
  color: var(--muted);
  max-width: 36rem;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.25rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: #fff;
  color: var(--fg);
  border-color: var(--line);
}

.section {
  padding: 2.5rem 0;
}

.section h2 {
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.collection-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  text-decoration: none;
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--soft);
}

.card h3,
.card .title {
  margin: 0.7rem 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 550;
}

.card .price,
.price {
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 1.25rem 0 0.5rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  padding: 0.5rem 0 2rem;
}

.media {
  background: var(--soft);
}

.media-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--soft);
}

.thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0 0;
}

.thumbs button {
  width: 4.25rem;
  padding: 0;
  border: 1px solid transparent;
  background: var(--soft);
  cursor: pointer;
}

.thumbs button[aria-current="true"] {
  border-color: var(--fg);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-copy h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  font-weight: 550;
}

.product-copy .price {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.swatches {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.swatch {
  min-width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  background: #f3f3f3;
  font-size: 0.7rem;
}

.swatch[aria-pressed="true"] {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

.qty-row {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0;
}

.qty {
  display: flex;
  border: 1px solid var(--line);
}

.qty button,
.qty input {
  width: 2.5rem;
  height: 2.85rem;
  border: 0;
  background: #fff;
  text-align: center;
  font: inherit;
}

.qty input {
  width: 2.8rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.buy {
  flex: 1;
}

.trust-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.specs {
  margin-top: 1.25rem;
}

.specs h2,
.details h2,
.accordion h2 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.specs ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.accordion details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.accordion details:last-child {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  cursor: pointer;
  font-weight: 550;
}

.related {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
}

.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  margin: 0.3rem 0;
}

.legal {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  display: none;
  z-index: 40;
}

.toast.show {
  display: block;
}

.search-box {
  display: flex;
  max-width: 32rem;
  margin: 1rem 0 2rem;
  border: 1px solid var(--line);
}

.search-box input {
  flex: 1;
  border: 0;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.search-box button {
  border: 0;
  background: var(--fg);
  color: #fff;
  padding: 0 1rem;
  font: inherit;
  cursor: pointer;
}

.empty {
  padding: 2rem 0 4rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem 1.25rem 1.2rem;
    gap: 0.85rem;
  }

  .nav.open {
    display: flex;
  }

  .hero,
  .product,
  .collection-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
