:root {
  --ink: #171717;
  --muted: #5f6461;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dedbd2;
  --green: #2f6b56;
  --mint: #d8eadf;
  --coral: #d86f57;
  --gold: #d4a94f;
  --teal: #5a9ea3;
  --shadow: 0 22px 70px rgba(28, 29, 27, 0.14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
select,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(222, 219, 210, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.cart-button,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: white;
}

.nav-links {
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.cart-button {
  justify-content: center;
  gap: 8px;
  min-width: 70px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.cart-icon {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  position: relative;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -8px;
  width: 9px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.hero {
  min-height: clamp(560px, 88vh, 820px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 250, 246, 0.94) 0%, rgba(251, 250, 246, 0.77) 37%, rgba(251, 250, 246, 0.18) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-bottom: clamp(60px, 10vh, 120px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.88;
}

.hero-content p:not(.eyebrow) {
  max-width: 540px;
  color: #373b38;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.product-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action,
.product-actions button,
.dialog-actions button,
.checkout-button {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
}

.primary-action,
.product-actions button:first-child,
.dialog-actions button:first-child,
.checkout-button {
  background: var(--ink);
  color: white;
}

.secondary-action,
.product-actions button:last-child,
.dialog-actions button:last-child {
  border-color: rgba(23, 23, 23, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  min-height: 112px;
  padding: 24px clamp(18px, 4vw, 52px);
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 7px;
}

.trust-strip span,
.section-head p,
.catalog-panel p,
.editorial-band p,
.policy-grid p,
.product-copy,
.meta,
.cart-items,
.collection-tile span {
  color: var(--muted);
  line-height: 1.55;
}

.section-band,
.collections,
.catalog-section,
.warranty {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 70px);
}

.section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-head.compact {
  max-width: 620px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.98;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(20, 20, 18, 0.06);
  display: flex;
  flex-direction: column;
}

.product-visual {
  min-height: 230px;
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--art-bg, #edf4ef);
}

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  display: block;
  padding: 10px;
  position: relative;
  z-index: 1;
}

.product-visual.has-image {
  background: #fff;
}

.product-visual.has-image::before {
  display: none;
}

.product-visual::before {
  content: "";
  width: min(44%, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.product-visual::after {
  content: attr(data-code);
  position: absolute;
  inset: auto 20px 20px auto;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.product-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--mint);
  color: #214536;
  font-size: 0.73rem;
  font-weight: 800;
}

.badge.sale {
  background: #f9ded6;
  color: #884331;
}

.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.offer-summary {
  margin: -2px 0 0;
  color: #2f6b56;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: auto;
}

.sale-price {
  font-size: 1.35rem;
  font-weight: 900;
}

.regular-price {
  color: #8c918d;
  text-decoration: line-through;
}

.product-actions button {
  flex: 1 1 150px;
}

.collections {
  background: #eef5ef;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.collection-tile {
  min-height: 210px;
  border: 1px solid rgba(47, 107, 86, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 22px;
  text-align: left;
  cursor: pointer;
}

.collection-tile:hover,
.filter-button:hover,
.product-card:hover {
  border-color: rgba(47, 107, 86, 0.55);
}

.tile-code {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--green);
  color: white !important;
  font-size: 0.72rem;
  font-weight: 900;
}

.collection-tile strong,
.collection-tile span {
  display: block;
}

.collection-tile strong {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.catalog-panel {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.filter-button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.catalog-toolbar p {
  margin: 0;
  color: var(--muted);
}

select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
}

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

.product-grid .product-visual {
  min-height: 190px;
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 1fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: clamp(52px, 7vw, 92px) clamp(18px, 5vw, 70px);
  background: var(--ink);
  color: white;
}

.editorial-band p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.policy-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 22px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: min(420px, 100vw);
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 180ms ease;
  display: flex;
  flex-direction: column;
}

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

.drawer-header,
.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-header button,
.dialog-close {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong {
  color: var(--ink);
}

.cart-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.checkout-button {
  margin: 0 18px 18px;
  width: calc(100% - 36px);
}

.quick-view {
  width: min(920px, calc(100vw - 24px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.quick-view::backdrop {
  background: rgba(23, 23, 23, 0.42);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 0 14px;
}

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

.dialog-product .product-visual {
  min-height: 100%;
  aspect-ratio: auto;
}

.dialog-product .product-visual img {
  padding: 18px;
  object-fit: contain;
}

.dialog-copy {
  padding: clamp(28px, 5vw, 54px);
}

.dialog-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.meta {
  margin-bottom: 20px;
}

.offer-picker {
  display: grid;
  gap: 10px;
  margin: 18px 0 18px;
}

.offer-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.offer-option:has(input:checked) {
  border-color: var(--green);
  background: #eef5ef;
}

.offer-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.offer-option span {
  display: grid;
  gap: 2px;
}

.offer-option small {
  color: var(--muted);
  font-size: 0.82rem;
}

.offer-option b {
  font-size: 1.05rem;
}

.policy-note {
  margin-top: 22px;
  padding: 16px;
  border-radius: 8px;
  background: #f4f1ea;
  color: #404540;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

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

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

  .catalog-layout,
  .editorial-band,
  .dialog-product {
    grid-template-columns: 1fr;
  }

  .catalog-panel {
    position: static;
  }

  .dialog-product .product-visual {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: flex-end;
    min-height: 650px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.72) 47%, rgba(251, 250, 246, 0.12) 100%);
  }

  .hero-content {
    margin: 0;
    width: 100%;
    padding: 0 18px 44px;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .trust-strip,
  .featured-grid,
  .product-grid,
  .policy-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    min-height: 92px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  select {
    width: 100%;
  }
}
