:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #64727a;
  --line: #dbe4e7;
  --paper: #f7faf9;
  --white: #ffffff;
  --teal: #006e73;
  --teal-dark: #004f54;
  --blue: #1c6ea4;
  --amber: #c5792a;
  --coral: #d95f4b;
  --leaf: #627a45;
  --shadow: 0 20px 60px rgba(18, 37, 45, 0.16);
  --radius: 8px;
  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;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  background: rgba(247, 250, 249, 0.88);
  border-bottom: 1px solid rgba(219, 228, 231, 0.82);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.brand-word {
  font-size: 18px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.brand-word span {
  color: var(--teal);
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 22px;
  color: #33434a;
  font-size: 14px;
  font-weight: 720;
}

.desktop-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  border-color: var(--teal);
}

.cart-trigger,
.button,
.text-button,
.round-button {
  border: 0;
}

.cart-trigger {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  gap: 10px;
  font-weight: 780;
  padding: 10px 14px 10px 18px;
}

.cart-count {
  align-items: center;
  background: var(--coral);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 7px;
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.86) 38%, rgba(247, 250, 249, 0.1) 70%),
    url("./assets/hero-filters.png") center / cover no-repeat;
  display: flex;
  min-height: min(760px, calc(100svh - 72px));
  padding: clamp(54px, 9vw, 116px) clamp(20px, 7vw, 92px);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow,
.section-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.11em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 88px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 900px;
  overflow-wrap: anywhere;
}

.hero-lede {
  color: #314248;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  margin: 24px 0 0;
  max-width: 610px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 820;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.cart-trigger:hover,
.round-button:hover,
.product-card:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(0, 110, 115, 0.22);
  color: var(--white);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-metrics {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 44px 0 0;
  max-width: 560px;
}

.hero-metrics div {
  border-left: 2px solid var(--teal);
  padding-left: 14px;
}

.hero-metrics dt {
  font-size: 30px;
  font-weight: 880;
}

.hero-metrics dd {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.trust-band {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.trust-band div {
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  gap: 6px;
  padding: 24px clamp(20px, 4vw, 46px);
}

.trust-band span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.catalog-shell {
  align-items: start;
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  grid-template-columns: 300px minmax(0, 1fr);
  padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 72px);
}

.filter-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  padding: 22px;
  position: sticky;
  top: 86px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #405159;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  background: #fbfdfd;
  border: 1px solid #cfdce0;
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 110, 115, 0.14);
}

.category-stack {
  display: grid;
  gap: 8px;
}

.category-pill {
  align-items: center;
  background: #f1f6f6;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #2a3c43;
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.category-pill.is-active {
  background: #e0f0ef;
  border-color: rgba(0, 110, 115, 0.36);
  color: var(--teal-dark);
}

.seller-note {
  background: #fff6ec;
  border: 1px solid #f0d3b5;
  border-radius: var(--radius);
  color: #5a3b1d;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.seller-note strong {
  color: var(--amber);
}

.catalog-content {
  min-width: 0;
}

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

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

.text-button {
  background: transparent;
  color: var(--teal);
  font-weight: 820;
  padding: 8px 0;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(31, 49, 56, 0.05);
  display: grid;
  gap: 14px;
  padding: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  box-shadow: 0 18px 36px rgba(31, 49, 56, 0.11);
}

.product-art-button {
  background: #f7faf9;
  border: 0;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.product-photo {
  align-items: center;
  background: #f8fbfb;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 174px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.product-photo img {
  background: #ffffff;
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.product-visual {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 26%),
    linear-gradient(135deg, #dfeaea, #f9fbfa 64%, #d6e4e8);
  height: 100%;
  min-height: 174px;
  position: relative;
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
}

.visual-fridge::before {
  background: repeating-linear-gradient(90deg, #fdfefe 0 7px, #e8eff0 7px 10px);
  border: 8px solid #2272a7;
  border-radius: 14px;
  bottom: 24px;
  height: 112px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
}

.visual-fridge::after {
  background: #2272a7;
  border-radius: 16px;
  bottom: 132px;
  height: 18px;
  left: calc(50% - 36px);
  width: 72px;
}

.visual-whole::before {
  background: repeating-linear-gradient(90deg, #ffffff 0 6px, #e6eeee 6px 10px);
  border-radius: 999px;
  bottom: 28px;
  box-shadow: -42px 14px 0 -8px #ffffff, 42px 10px 0 -10px #ffffff;
  height: 126px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: 58px;
}

.visual-whole::after {
  background: #1f79aa;
  border-radius: 999px;
  bottom: 146px;
  box-shadow: 0 116px 0 #1f79aa;
  height: 16px;
  left: calc(50% - 34px);
  width: 68px;
}

.visual-under::before {
  background: #ffffff;
  border: 7px solid #2d8ab0;
  border-radius: 10px 10px 26px 26px;
  bottom: 28px;
  height: 118px;
  left: 54%;
  transform: translateX(-50%);
  width: 72px;
}

.visual-under::after {
  background: var(--amber);
  border-radius: 999px;
  bottom: 134px;
  height: 12px;
  left: calc(54% - 52px);
  width: 104px;
}

.visual-ro::before {
  background: #ffffff;
  border: 6px solid #2c79a5;
  border-radius: 999px;
  bottom: 40px;
  box-shadow: 52px -12px 0 -5px #ffffff, -52px 8px 0 -7px #ffffff;
  height: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
}

.visual-ro::after {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: 999px;
  bottom: 116px;
  height: 12px;
  left: calc(50% - 82px);
  width: 164px;
}

.visual-accessory::before {
  border: 14px solid #1f79aa;
  border-radius: 50%;
  bottom: 46px;
  height: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
}

.visual-accessory::after {
  background: #1f79aa;
  border-radius: 999px;
  bottom: 38px;
  height: 18px;
  left: calc(50% + 34px);
  transform: rotate(24deg);
  width: 70px;
}

.product-badge {
  background: var(--leaf);
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 820;
  left: 10px;
  padding: 6px 9px;
  position: absolute;
  top: 10px;
}

.product-meta {
  color: var(--teal);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 820;
  gap: 8px;
  text-transform: uppercase;
}

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

.product-copy {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.product-bottom {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  font-size: 24px;
  font-weight: 880;
}

.stock {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.add-button {
  background: var(--ink);
  color: var(--white);
  min-height: 42px;
  padding: 0 14px;
}

.fit-band,
.shipping-band {
  display: grid;
  gap: clamp(24px, 5vw, 54px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  padding: clamp(46px, 7vw, 82px) clamp(20px, 5vw, 72px);
}

.fit-band {
  background: #eaf2f1;
  align-items: center;
}

.fit-copy p,
.shipping-grid p,
.site-footer p {
  color: var(--muted);
  line-height: 1.6;
}

.fit-search {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.shipping-band {
  background: var(--white);
}

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

.shipping-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.shipping-grid span {
  color: var(--coral);
  font-weight: 880;
}

.shipping-grid h3 {
  margin: 12px 0 6px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 32px clamp(20px, 5vw, 72px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  margin: 10px 0 0;
}

.footer-links {
  display: grid;
  gap: 10px;
  text-align: right;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.compact .brand-mark {
  background: var(--white);
  color: var(--ink);
}

.overlay {
  background: rgba(12, 21, 25, 0.52);
  inset: 0;
  position: fixed;
  z-index: 35;
}

.cart-drawer {
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  height: 100svh;
  max-width: 480px;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 220ms ease;
  width: min(100vw, 480px);
  z-index: 40;
}

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

.drawer-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.round-button {
  align-items: center;
  background: #edf4f4;
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  font-weight: 820;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.cart-lines {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.empty-cart {
  align-content: center;
  border: 1px dashed #bac8cd;
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.cart-line {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.cart-line-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.cart-line-title {
  font-weight: 820;
  line-height: 1.3;
}

.cart-line-price {
  font-weight: 850;
  white-space: nowrap;
}

.qty-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.qty-row button {
  background: #eef5f5;
  border: 1px solid #d4e2e4;
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

.qty-row span {
  min-width: 28px;
  text-align: center;
}

.coupon-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.shipping-choice {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.shipping-choice label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.totals {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.total-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.total-row.strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 880;
}

.checkout-button {
  width: 100%;
}

dialog {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  max-width: min(980px, calc(100vw - 28px));
  padding: 0;
}

dialog::backdrop {
  background: rgba(12, 21, 25, 0.58);
}

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

.product-detail {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
  padding: 26px;
}

.detail-art {
  border-radius: var(--radius);
  min-height: 360px;
}

.detail-art img {
  background: #ffffff;
  object-fit: contain;
  padding: 18px;
}

.detail-copy {
  display: grid;
  gap: 16px;
  padding-right: 34px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  background: #eef5f5;
  border-radius: 999px;
  color: #355057;
  font-size: 12px;
  font-weight: 780;
  padding: 7px 10px;
}

.checkout-dialog {
  width: min(1080px, calc(100vw - 28px));
}

.checkout-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.checkout-fields {
  display: grid;
  gap: 20px;
  padding: 28px;
}

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

.span-2 {
  grid-column: span 2;
}

.payment-box {
  background: #f1f6f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.payment-box h3,
.payment-box p {
  margin: 0;
}

.payment-box p,
.form-error {
  color: var(--muted);
}

.form-error {
  min-height: 22px;
  margin: 0;
}

.checkout-summary {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 18px;
  padding: 28px;
}

.checkout-summary .total-row {
  color: rgba(255, 255, 255, 0.75);
}

.checkout-summary .total-row.strong {
  color: var(--white);
}

.summary-lines {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
}

.summary-line {
  display: grid;
  gap: 2px;
}

.summary-line span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.success-dialog {
  max-width: min(520px, calc(100vw - 28px));
}

.success-panel {
  display: grid;
  gap: 18px;
  padding: 34px;
  text-align: center;
}

.success-panel p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1080px) {
  .product-grid,
  .shipping-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand-word {
    font-size: 15px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(247, 250, 249, 0.96) 0%, rgba(247, 250, 249, 0.86) 56%, rgba(247, 250, 249, 0.22) 100%),
      url("./assets/hero-filters.png") 62% center / cover no-repeat;
    min-height: 700px;
    padding: 54px 18px;
  }

  .hero-metrics,
  .trust-band,
  .catalog-shell,
  .fit-band,
  .shipping-band,
  .checkout-form,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .trust-band {
    gap: 0;
  }

  .filter-panel {
    position: static;
  }

  .fit-search {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    order: -1;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-metrics,
  .product-grid,
  .shipping-grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .footer-links {
    text-align: left;
  }

  .coupon-row,
  .shipping-choice,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .cart-drawer {
    max-width: none;
  }

  .detail-copy {
    padding-right: 0;
  }
}
