:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #f5f5f7;
  --card: #ffffff;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --orange: #bf4800;
  --green: #34c759;
  --red: #e30000;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --nav-h: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  top: 8px;
}
.wrap {
  width: min(1200px, 100% - 44px);
  margin-inline: auto;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--orange);
  text-transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 980px;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.18;
  text-decoration: none !important;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover {
  background: var(--blue-hover);
}
.btn-sm {
  padding: 6px 15px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Global nav ---------- */
.globalnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(250, 250, 252, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.3s var(--ease);
}
.globalnav.scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.gn-inner {
  height: 100%;
  width: min(1024px, 100% - 44px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.gn-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}
.gn-logo img {
  width: 22px;
  height: 22px;
}
.gn-links {
  display: flex;
  flex: 1;
  justify-content: space-between;
  max-width: 720px;
}
.gn-links a {
  display: block;
  padding: 0 8px;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.8);
  line-height: var(--nav-h);
  transition: color 0.2s;
}
.gn-links a:hover {
  color: #000;
  text-decoration: none;
}
.gn-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gn-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
}
.gn-icon:hover {
  color: #000;
}
.gn-icon svg {
  width: 18px;
  height: 18px;
}
.bag-count {
  position: absolute;
  right: 2px;
  bottom: 3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
  letter-spacing: 0;
  transition: transform 0.3s var(--ease);
}
.bag-count[data-zero="true"] {
  transform: scale(0);
}
.bag-btn.bump .bag-count {
  animation: bump 0.45s var(--ease);
}
@keyframes bump {
  40% {
    transform: scale(1.45);
  }
}
.gn-menu {
  display: none;
}
.gn-menu span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease);
}
.gn-menu span:first-child {
  transform: translateY(-3.5px);
}
.gn-menu span:last-child {
  transform: translateY(3.5px);
}
.menu-open .gn-menu span:first-child {
  transform: rotate(45deg);
}
.menu-open .gn-menu span:last-child {
  transform: rotate(-45deg);
}

.ribbon {
  background: var(--bg);
  text-align: center;
  padding: 14px 22px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ---------- Store head ---------- */
.store-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 64px 0 40px;
}
.store-head h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 820px;
}
.store-head h1 span {
  color: var(--text-2);
}
.store-help {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  flex-shrink: 0;
}
.store-help a {
  font-weight: 400;
}
.specialist {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  box-shadow: var(--shadow);
}
.specialist img {
  width: 26px;
  height: 26px;
}

/* ---------- Category row ---------- */
.cat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 24px;
}
.cat-row::-webkit-scrollbar {
  display: none;
}
.cat-row li {
  flex: 1 0 120px;
}
.cat-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.cat-art {
  width: 120px;
  height: 78px;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease);
}
.cat-row a:hover .cat-art {
  transform: translateY(-4px) scale(1.04);
}

/* ---------- Shelves ---------- */
.shelf {
  padding: 40px 0 24px;
}
.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 4px;
}
.shelf h2,
.shop h2,
.how h2,
.faq h2 {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.14;
}
.shelf h2 span,
.shop h2 span,
.how h2 span,
.faq h2 span {
  color: var(--text-2);
}
.shelf-arrows {
  display: flex;
  gap: 10px;
}
.arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(210, 210, 215, 0.64);
  color: rgba(0, 0, 0, 0.56);
  font-size: 24px;
  line-height: 1;
  padding-bottom: 3px;
  transition: background 0.2s;
}
.arrow:hover {
  background: rgba(223, 223, 227, 0.7);
  color: rgba(0, 0, 0, 0.64);
}
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 24px max(22px, (100% - 1200px) / 2) 40px;
  scroll-padding-inline: max(22px, (100% - 1200px) / 2);
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail > li {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.promo {
  position: relative;
  width: 400px;
  height: 500px;
  max-width: 86vw;
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.promo:hover {
  transform: scale(1.015);
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.16);
}
.promo-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: none;
  border-radius: inherit;
}
.promo h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  margin-top: 6px;
}
.promo-tag {
  font-size: 17px;
  margin-top: 6px;
}
.promo-price {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 8px;
}
.promo-art {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  transition: transform 0.6s var(--ease);
}
.promo:hover .promo-art {
  transform: translateY(-6px);
}

.tile {
  position: relative;
  width: 400px;
  max-width: 86vw;
  min-height: 300px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover {
  transform: scale(1.015);
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.16);
}
.tile h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.17;
  margin-top: 8px;
}
.tile-sub {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
}
.tile-icon {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 56px;
}
.tile-link {
  display: inline-block;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.tile-dark {
  background: #000;
  color: #f5f5f7;
}
.tile-dark .eyebrow {
  color: #f5f5f7;
  opacity: 0.8;
}
.tile-dark .tile-link {
  color: #2997ff;
}
.tile-glow {
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(41, 151, 255, 0.55), rgba(175, 82, 222, 0.35) 55%, transparent);
  filter: blur(10px);
  animation: glow 8s ease-in-out infinite alternate;
}
@keyframes glow {
  to {
    transform: translateX(14%) scale(1.15);
  }
}
.tile-sm {
  width: 290px;
  min-height: 200px;
}
.tile-sm svg {
  width: 40px;
  margin-bottom: 24px;
}
.tile-sm h3 {
  font-size: 21px;
  line-height: 1.24;
}

/* ---------- Shop grid ---------- */
.shop {
  padding: 64px 0 40px;
}
.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.shop-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-3);
}
.search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
.search svg {
  width: 16px;
  flex-shrink: 0;
}
.search input {
  border: 0;
  outline: 0;
  background: none;
  width: 220px;
  font-size: 15px;
  color: var(--text);
}
.sort select {
  height: 40px;
  padding: 0 34px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 15px;
  appearance: none;
  background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 14px center / 11px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip span {
  color: var(--text-3);
  font-size: 12px;
}
.chip:hover {
  border-color: var(--text-3);
}
.chip[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.chip[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.6);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: fade-up 0.6s var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 12) * 40ms);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card.skeleton {
  height: 420px;
  background: linear-gradient(100deg, #fff 30%, #f0f0f2 50%, #fff 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.card-art {
  border: 0;
  background: none;
  padding: 28px 24px 4px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.card-art svg {
  transition: transform 0.6s var(--ease);
}
.card:hover .card-art svg {
  transform: scale(1.04);
}
.card-body {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.21;
  margin-top: 2px;
}
.linkish {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-weight: inherit;
}
.linkish:hover {
  color: var(--link);
}
.card-spec {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  min-height: 16px;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.low {
  font-size: 12px;
  color: var(--orange);
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
}
.price {
  font-size: 17px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
}
.empty-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

/* ---------- How buying works ---------- */
.how {
  padding: 64px 0 40px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.06);
}
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 22px;
}
.step h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.24;
}
.step p {
  color: var(--text-2);
  margin-top: 10px;
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 64px 0 96px;
}
.faq-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 980px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: var(--text-2);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 26px;
  max-width: 760px;
  color: var(--text-2);
  animation: fade-up 0.4s var(--ease);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.33;
  color: var(--text-2);
  padding: 18px 0 24px;
}
.footer .wrap {
  width: min(980px, 100% - 44px);
}
.fine-print {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}
.footer h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.footer li {
  margin-bottom: 8px;
}
.footer-cols a {
  color: #424245;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.footer-domain {
  color: var(--text);
}

/* ---------- Dialogs ---------- */
dialog {
  border: 0;
  padding: 0;
  color: var(--text);
  background: var(--card);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #e8e8ed;
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}
.close:hover {
  background: #dcdce1;
  color: var(--text);
}
.close svg {
  width: 18px;
}
.modal {
  width: min(1000px, 100% - 32px);
  max-height: calc(100% - 48px);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.modal[open] {
  animation: modal-in 0.45s var(--ease);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

.product-modal[open] {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.pd-art {
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 48px;
}
.pd-body {
  padding: 48px 40px 40px;
  overflow-y: auto;
}
.pd-body h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 4px;
}
.pd-tagline {
  font-size: 21px;
  color: var(--text-2);
  margin-top: 6px;
}
.pd-price {
  font-size: 21px;
  font-weight: 600;
  margin-top: 20px;
}
.pd-blurb {
  margin-top: 14px;
  color: #424245;
}
.pd-specs-title {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.specs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--text-2);
}
.specs li {
  padding-left: 14px;
  position: relative;
}
.specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}
.pd-ship {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 14px;
  color: var(--text-2);
}
.pd-ship strong {
  color: var(--text);
  font-weight: 600;
}
.pd-ship svg {
  width: 24px;
  flex-shrink: 0;
  color: var(--text);
}
.pd-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.pd-actions .btn {
  flex: 1;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 980px;
  overflow: hidden;
}
.qty button {
  width: 40px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 18px;
  color: var(--text);
}
.qty button:hover:not(:disabled) {
  background: var(--bg);
}
.qty button:disabled {
  color: var(--line);
  cursor: default;
}
.qty output {
  min-width: 24px;
  text-align: center;
  font-size: 16px;
}
.qty-sm button {
  width: 30px;
  height: 30px;
  font-size: 15px;
}
.qty-sm output {
  font-size: 14px;
}

/* Bag drawer */
.drawer {
  margin: 0 0 0 auto;
  height: 100%;
  max-height: 100%;
  width: min(440px, 100%);
  display: none;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}
.drawer[open] {
  display: flex;
  animation: drawer-in 0.45s var(--ease);
}
@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
}
.drawer-head {
  position: relative;
  padding: 28px 28px 12px;
}
.drawer-head h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.drawer-head .close {
  top: 30px;
  right: 24px;
}
.cart-lines {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px;
}
.line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.line-art {
  background: var(--bg);
  border-radius: 12px;
  padding: 6px;
}
.line-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
}
.line-info strong {
  font-weight: 600;
}
.line-info > span {
  font-size: 13px;
  color: var(--text-2);
}
.line-info .qty {
  align-self: flex-start;
  margin-top: 6px;
}
.line-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 15px;
}
.remove {
  border: 0;
  background: none;
  padding: 0;
  color: var(--link);
  font-size: 13px;
}
.remove:hover {
  text-decoration: underline;
}
.cart-empty {
  flex: 1;
  padding: 20px 28px;
  color: var(--text-2);
}
.cart-empty .btn {
  margin-top: 24px;
}
.cart-empty[hidden],
.drawer-foot[hidden] {
  display: none;
}
.drawer-foot {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}
.subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 21px;
  font-weight: 600;
}
.ship-note {
  font-size: 14px;
  color: var(--text-2);
  margin: 6px 0 18px;
}
.fine {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 12px;
  text-align: center;
}

/* Checkout */
.checkout-modal[open] {
  display: block;
  overflow-y: auto;
}
.co-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}
.co-wrap[hidden] {
  display: none;
}
.co-summary {
  background: var(--bg);
  padding: 48px 36px;
}
.co-summary h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.co-summary .fine {
  text-align: left;
}
.co-lines li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.co-lines .q {
  color: var(--text-2);
}
.co-summary .subtotal {
  margin-top: 16px;
}
.co-form {
  padding: 48px 36px 36px;
}
.co-step {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-right: 40px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  min-width: 0;
}
.field label,
.field legend {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.field em {
  font-style: normal;
  color: var(--text-3);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #86868b;
  background: #fff;
  font-size: 17px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  font-size: 15px;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
.err {
  display: none;
  font-size: 12px;
  color: var(--red);
}
.field.invalid input {
  border-color: var(--red);
  background: #fff5f5;
}
.field.invalid .err {
  display: block;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-row.three {
  grid-template-columns: 1.2fr 1fr 1fr;
}
.pay-pref {
  border: 0;
  padding: 0;
  margin: 6px 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pay-pref legend {
  margin-bottom: 8px;
}
.pay-pref label {
  position: relative;
  cursor: pointer;
}
.pay-pref input {
  position: absolute;
  opacity: 0;
}
.pay-pref span {
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pay-pref input:checked + span {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.pay-pref input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.25);
}
.hidden-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  background: #fff5f5;
  color: var(--red);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 14px;
}
.btn.loading {
  position: relative;
}
.co-done {
  text-align: center;
  padding: 72px 32px;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.co-done svg {
  width: 64px;
  margin-bottom: 6px;
}
.co-done h2,
.co-done h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.co-done p {
  color: var(--text-2);
}
.co-done .btn {
  margin-top: 14px;
}
.ref {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  padding: 12px 20px;
  border-radius: 980px;
  font-size: 14px;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  max-width: calc(100% - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Scroll reveal */
.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.will-reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .gn-menu {
    display: grid;
  }
  .gn-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 40px;
    background: rgba(250, 250, 252, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .menu-open .gn-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .menu-open {
    overflow: hidden;
  }
  .gn-links a {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text);
    padding: 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .product-modal[open] {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .pd-art {
    padding: 48px 40px 20px;
  }
  .pd-body {
    overflow: visible;
  }
  .co-wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 734px) {
  .store-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 0 24px;
  }
  .search input {
    width: 150px;
  }
  .promo {
    width: 310px;
    height: 420px;
    padding: 24px;
  }
  .promo h3 {
    font-size: 24px;
  }
  .tile {
    width: 310px;
  }
  .tile-sm {
    width: 250px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-base {
    flex-direction: column;
    gap: 6px;
  }
  .modal {
    width: 100%;
    max-height: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  .pd-body,
  .co-form,
  .co-summary {
    padding: 28px 22px;
  }
  .pd-body h2 {
    font-size: 32px;
  }
  .specs {
    grid-template-columns: 1fr;
  }
  .field-row,
  .field-row.three {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .shelf-arrows {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .will-reveal {
    opacity: 1;
    transform: none;
  }
}
