:root {
  --ink: #1f2320;
  --muted: #687069;
  --line: #dce4df;
  --paper: #fbfdfc;
  --soft: #eef5f1;
  --jade: #2f7d62;
  --jade-dark: #1f5d48;
  --gold: #b99255;
  --shadow: 0 18px 48px rgba(31, 35, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(251, 253, 252, 0.94);
  border-bottom: 1px solid rgba(220, 228, 223, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-name {
  color: var(--jade-dark);
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a:hover {
  color: var(--jade);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-button,
.cart-button,
.menu-button,
.primary-button,
.secondary-button,
.filter-tabs button {
  border: 0;
  cursor: pointer;
}

.ghost-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
}

.cart-button span {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border-radius: 50%;
  font-size: 12px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: min(820px, calc(100vh - 72px));
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero picture,
.hero picture img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(7, 12, 9, 0.76), rgba(7, 12, 9, 0.22) 55%, rgba(7, 12, 9, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 88px 8vw;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--jade);
}

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

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.secondary-button.dark {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.full {
  width: 100%;
}

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

.trust-strip div {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

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

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

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section {
  padding: 88px 6vw;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading.compact {
  text-align: center;
  margin: 0 auto 32px;
}

.section-heading h2,
.detail-copy h2,
.story-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
}

.section-heading p:not(.eyebrow),
.detail-copy p,
.story-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, 260px);
  gap: 20px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.collection-card.large {
  grid-row: 1 / span 2;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collection-card:hover img {
  transform: scale(1.04);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.58));
}

.collection-card div {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: #fff;
}

.collection-card span {
  color: #f1d19a;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.collection-card h3 {
  margin: 8px 0;
  font-size: 28px;
}

.collection-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.diy-feature {
  display: grid;
  scroll-margin-top: 72px;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  min-height: 580px;
  color: #fff;
  background: #183d31;
}

.diy-feature-media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 480px;
  padding: 32px clamp(24px, 3vw, 48px) 24px;
  overflow: hidden;
  color: #264c3d;
  background: #f2f5f1;
}

.home-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.home-preview-eyebrow { font-size: 10px; color: #7c8a80; }
.home-preview-heading h3 { margin: 6px 0 0; font-size: 16px; font-weight: 500; }
.home-preview-size { display: flex; gap: 9px; font-size: 11px; color: #79867d; white-space: nowrap; }
.home-preview-size span { color: #b8c6bb; }
.home-preview-stage {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin: 12px auto;
  display: grid;
  place-items: center;
}
.home-preview-ring { position: absolute; inset: 0; }
.home-preview-ring::before { content: ""; position: absolute; inset: 12%; border: 1px solid #d5dfd4; border-radius: 50%; }
.home-preview-bead {
  position: absolute;
  width: 15.8%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background-image: url("./imgs/diy/material-atlas.webp");
  background-size: 400% 300%;
  background-position: var(--sprite-x) var(--sprite-y);
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 3px rgba(35, 62, 47, .13));
}
.home-preview-caption { display: grid; gap: 9px; justify-items: center; max-width: 48%; text-align: center; }
.home-preview-caption > span:first-child { font-size: 11px; color: #819086; }
.home-preview-caption strong { font: 400 27px/1.4 "Songti SC", "SimSun", serif; }
.home-preview-rule { width: 22px; height: 1px; margin-top: 6px; background: #a6b6a6; }
.home-preview-bottom { width: 100%; }
.home-preview-palettes { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.home-preview-palette { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #6f7b72; font-size: 12px; cursor: pointer; transition: background .2s, border-color .2s; }
.home-preview-palette:hover { background: #e7eee7; }
.home-preview-palette.active { border-color: #bccdbf; color: #264c3d; background: #fff; }
.home-preview-palette:focus-visible, .home-preview-footer a:focus-visible { outline: 2px solid var(--jade-dark); outline-offset: 3px; }
.home-preview-swatch { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(44, 64, 47, .12); }
.swatch-campus { background: #a8c5b0; }.swatch-friendship { background: #b0a0c4; }.swatch-teacher { background: #b99a60; }
.home-preview-materials { margin: 12px 0 22px; color: #7c887f; font-size: 11px; text-align: center; }
.home-preview-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding-top: 18px; border-top: 1px solid #dce5db; }
.home-preview-footer > span { color: #879187; font-size: 10px; }
.home-preview-footer a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.home-preview-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-preview-footer img { opacity: .65; }
@media (prefers-reduced-motion: reduce) { .home-preview-palette { transition: none; } }

.diy-feature-copy {
  align-self: center;
  max-width: 680px;
  padding: 64px clamp(32px, 6vw, 90px);
}

.diy-feature-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
}

.diy-feature-copy > p:not(.eyebrow),
.diy-feature-copy li {
  color: #d3e4dc;
  line-height: 1.8;
}

.diy-feature-copy ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 28px;
  padding-left: 20px;
}

.product-section {
  background: #fff;
}

.product-section .section-heading.compact {
  max-width: 620px;
  margin: 0 0 28px;
  text-align: left;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.product-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.product-search input:focus {
  border-color: var(--jade);
  outline: 2px solid rgba(21, 92, 74, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filter-tabs {
  display: flex;
  gap: 4px;
}

.filter-tabs button {
  padding: 10px 12px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 6px;
}

.filter-tabs button.active {
  color: #fff;
  background: var(--jade);
}

.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.sort-select select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.filter-toggle {
  display: none;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--jade);
  border-radius: 999px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.sidebar-head button {
  color: var(--gold);
  background: transparent;
  font-size: 13px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-group h3 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-group button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  text-align: left;
}

.filter-group button.active {
  border-color: rgba(21, 92, 74, 0.26);
  color: var(--jade);
  background: rgba(21, 92, 74, 0.08);
  font-weight: 800;
}

.product-results {
  min-width: 0;
}

.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.result-summary button {
  border: 0;
  color: var(--jade);
  background: transparent;
  cursor: pointer;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  aspect-ratio: 1 / 1;
  background: var(--soft);
  cursor: pointer;
}

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

.product-info {
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
}

.product-info h3 {
  margin: 0 0 8px;
  min-height: 48px;
  font-size: 17px;
  line-height: 1.45;
}

.product-desc {
  margin: 0 0 14px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--jade);
  font-size: 20px;
  font-weight: 800;
}

.mini-button {
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}

.review-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d9a441;
}

.detail-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--soft);
}

a.product-image { display: block; }
.product-info h3 a { color: inherit; text-decoration: none; }
.product-info h3 a:hover { color: var(--green, #1f684f); }
a.mini-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cart-variant { color: #356c5a !important; font-weight: 600; }

.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.gift-guide {
  background: #f4f8f6;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.gift-grid a {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .2s ease, border-color .2s ease;
}

.gift-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--jade);
}

.gift-grid span,
.gift-grid small {
  color: var(--muted);
}

.gift-grid strong {
  margin: 6px 0;
  color: var(--jade-dark);
  font-size: 22px;
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(231, 226, 216, 0.9);
  border-radius: 8px;
}

.detail-list strong {
  color: var(--jade);
  font-size: 22px;
}

.detail-list span {
  color: var(--muted);
  line-height: 1.7;
}

.story-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-media {
  display: grid;
  place-items: center;
  min-height: 360px;
  border-radius: 8px;
  background: var(--soft);
}

.story-media img {
  width: min(240px, 60%);
}

.story-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.story-metrics span {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.story-metrics strong {
  display: block;
  color: var(--jade);
  font-size: 26px;
}

.service-section {
  background: var(--soft);
}

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

.service-grid a {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.service-grid a:hover {
  border-color: var(--jade);
  transform: translateY(-2px);
}

.service-grid strong,
.service-grid span { display: block; }
.service-grid strong { margin-bottom: 10px; color: var(--ink); }
.service-grid span {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 6vw;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer,
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 220;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

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

.mobile-drawer {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 28px;
}

.mobile-drawer a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
}

.drawer-logo {
  width: 120px;
  margin: 20px 0;
}

.drawer-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 32px;
  cursor: pointer;
}

.cart-drawer {
  display: flex;
  flex-direction: column;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
}

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

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

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-controls button,
.remove-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
}

.qty-controls button {
  width: 28px;
  height: 28px;
}

.remove-button {
  padding: 8px 10px;
  color: var(--muted);
}

.cart-empty {
  display: none;
  padding: 28px 24px;
  color: var(--muted);
  text-align: center;
}

.cart-empty.show {
  display: block;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

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

.checkout-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

.checkout-field textarea {
  min-height: 72px;
  resize: vertical;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.empty-state strong { color: var(--ink); }
.empty-state button { margin-top: 8px; border: 0; color: #fff; background: var(--jade); padding: 9px 14px; border-radius: 6px; cursor: pointer; }

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 820px) {
  .site-header {
    padding: 0 18px;
  }

  .desktop-nav,
  .ghost-button {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 680px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(7, 12, 9, 0.16), rgba(7, 12, 9, 0.82));
  }

  .hero-content {
    align-self: end;
    padding: 60px 24px;
  }

  .trust-strip,
  .collection-grid,
  .diy-feature,
  .detail-band,
  .story-section {
    grid-template-columns: 1fr;
  }

  .collection-grid {
    grid-template-rows: none;
  }

  .collection-card,
  .collection-card.large {
    min-height: 320px;
    grid-row: auto;
  }

  .shop-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .filter-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-tabs button { flex: 0 0 auto; }

  .product-search { grid-column: 1 / -1; }

  .product-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
  }

  .brand-name {
    font-size: 22px;
  }

  .cart-button {
    padding: 9px 12px;
    font-size: 13px;
  }

  .section {
    padding: 60px 18px;
  }

  .trust-strip,
  .product-grid,
  .service-grid,
  .gift-grid,
  .story-metrics {
    grid-template-columns: 1fr;
  }

  .shop-toolbar { grid-template-columns: 1fr 1fr; }
  .sort-select { display: grid; gap: 5px; }
  .sort-select select { width: 100%; }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .diy-feature-media {
    min-height: 0;
    padding: 24px 20px;
  }

  .home-preview-stage { margin: 16px auto; }
  .home-preview-caption strong { font-size: 23px; }
  .home-preview-palettes { gap: 4px; }
  .home-preview-palette { padding: 7px 8px; font-size: 11px; }

  .product-info h3,
  .product-desc {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
.consent-row,
.checkout-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted, #687069);
  font-size: 12px;
  line-height: 1.55;
}

.consent-row input,
.checkout-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.consent-row a,
.checkout-consent a {
  color: #176b50;
  text-decoration: underline;
  text-underline-offset: 2px;
}
