:root {
  --ink: #171512;
  --muted: #67615a;
  --paper: #fffdf8;
  --line: #ddd5c9;
  --cream: #f5efe3;
  --charcoal: #22252a;
  --accent: #e84a2a;
  --gold: #f0b33d;
  --mint: #d8f1df;
  --blue: #304b7d;
  --shadow: 0 24px 60px rgba(34, 37, 42, 0.16);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(23, 21, 18, 0.1);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 17%, transparent 18%),
    conic-gradient(from 45deg, var(--accent), var(--gold), var(--blue), var(--accent));
  box-shadow: inset 0 0 0 5px var(--paper);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--ink);
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg,
.primary-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(360px, 0.93fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  min-height: calc(100svh - 72px);
  padding: clamp(28px, 5vw, 70px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 78px);
}

.gallery-panel {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.main-image-frame {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(23, 21, 18, 0.12);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.main-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-strip {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  max-height: min(620px, calc(100svh - 132px));
  overflow-y: auto;
  padding: 0 2px 2px;
  scrollbar-width: thin;
}

.thumb {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.thumb.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.thumb:hover {
  transform: translateY(-1px);
}

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

.purchase-panel {
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.65rem);
  line-height: 0.92;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.rating-row,
.price-row,
.quantity-row,
.trust-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-row {
  flex-wrap: wrap;
  margin-top: 24px;
  font-weight: 750;
}

.stars,
.review-stars {
  color: var(--gold);
  letter-spacing: 0;
}

.rating-row a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.price-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.price {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
}

.compare {
  color: var(--muted);
  font-size: 1.15rem;
  text-decoration: line-through;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffe4da;
  color: #a32f19;
  font-weight: 850;
}

.buy-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.quantity-row > span {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.quantity-row {
  justify-content: space-between;
}

.stepper {
  display: grid;
  grid-template-columns: 42px 52px 42px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qty-button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
}

#quantity-output {
  text-align: center;
  font-weight: 850;
}

.primary-button,
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.checkout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(23, 21, 18, 0.18);
}

.checkout-button[aria-disabled="true"] {
  opacity: 0.62;
}

.checkout-button[aria-disabled="true"]:hover,
.checkout-button[aria-busy="true"]:hover {
  transform: none;
  box-shadow: none;
}

.checkout-button[aria-busy="true"] {
  cursor: wait;
}

.trust-list {
  flex-wrap: wrap;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.93rem;
  font-weight: 700;
}

.trust-list li {
  position: relative;
  padding-left: 18px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.53em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
  color: #fff;
}

.feature-band > div {
  min-height: 250px;
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-band > div:last-child {
  border-right: 0;
}

.feature-band span {
  color: var(--gold);
  font-weight: 900;
}

.feature-band h2,
.detail-section h2,
.spec-band h2,
.reviews-section h2,
.faq-section h2 {
  margin: 12px 0 0;
  font-size: clamp(1.85rem, 3vw, 3.25rem);
  line-height: 1.04;
}

.feature-band p {
  max-width: 390px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.detail-section,
.reviews-section,
.faq-section {
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
}

.detail-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.detail-item,
.review-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-item h3,
.review-card p {
  margin: 0;
}

.detail-item h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.detail-item p,
.review-card p,
.faq-list p,
.spec-copy p {
  color: var(--muted);
  line-height: 1.62;
}

.spec-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(216, 241, 223, 0.82), rgba(245, 239, 227, 0.96)),
    var(--cream);
}

.spec-copy {
  max-width: 620px;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.spec-list div {
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(23, 21, 18, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

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

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
}

.review-card span {
  margin-top: auto;
  color: var(--ink);
  font-weight: 850;
}

.faq-section {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-top: 30px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

summary {
  min-height: 60px;
  padding: 18px 20px;
  font-weight: 850;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 21, 18, 0);
  transition: background 180ms ease;
}

.cart-drawer.is-open .drawer-overlay {
  background: rgba(23, 21, 18, 0.46);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100%;
  padding: 22px;
  background: var(--paper);
  box-shadow: -24px 0 70px rgba(23, 21, 18, 0.2);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

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

.drawer-header,
.cart-line,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.cart-empty {
  display: grid;
  place-items: center;
  flex: 1;
  color: var(--muted);
  font-weight: 750;
}

.cart-filled {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.cart-line {
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-product-image {
  overflow: hidden;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--charcoal);
  flex: 0 0 auto;
}

.cart-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line div {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.cart-line strong {
  line-height: 1.25;
}

.cart-line span {
  color: var(--muted);
  font-weight: 700;
}

.cart-total {
  font-size: 1.05rem;
}

.cart-total strong {
  font-size: 1.5rem;
}

.checkout-button {
  width: 100%;
}

@media (max-width: 980px) {
  .product-hero,
  .spec-band {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: 0;
  }

  .purchase-panel {
    justify-content: flex-start;
  }

  .feature-band,
  .detail-grid,
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-band > div:nth-child(2) {
    border-right: 0;
  }

  .feature-band > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .nav-links {
    display: none;
  }

  .product-hero {
    padding: 18px 14px 42px;
  }

  .main-image-frame {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 0.92 / 1;
  }

  .gallery-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-strip {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

  .feature-band,
  .detail-grid,
  .reviews-grid,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .feature-band > div,
  .feature-band > div:nth-child(2),
  .feature-band > div:last-child {
    min-height: auto;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .feature-band > div:first-child {
    border-top: 0;
  }

  .quantity-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
