:root {
  color-scheme: light;
  --bg: #f7f8f2;
  --ink: #10120f;
  --muted: #62665e;
  --line: #dfe3d3;
  --panel: #ffffff;
  --accent: #b7ff2a;
  --accent-dark: #2f5e00;
  --danger: #b3261e;
  --shadow: 0 24px 80px rgb(39 47 28 / 0.14);
  --radius: 18px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgb(183 255 42 / 0.18), transparent 34rem),
    var(--bg);
  color: var(--ink);
}

body:has(.cart-drawer.is-open) {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  background: rgb(247 248 242 / 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgb(16 18 15 / 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 160ms ease;
}

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

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

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.lang-button {
  min-width: 54px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.lang-button.is-active {
  background: var(--ink);
  color: var(--accent);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font-weight: 800;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 48px;
  min-height: min(760px, calc(100dvh - 82px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 30px;
}

.hero-copy {
  display: grid;
  gap: 24px;
  max-width: 620px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(48px, 7.6vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

html[lang="zh-CN"] h1 {
  font-size: clamp(46px, 7vw, 90px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.05;
}

.hero-text {
  max-width: 570px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  background: var(--ink);
  color: var(--accent);
}

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

.hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.visual-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: calc(var(--radius) - 6px);
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.visual-panel span {
  color: var(--muted);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 70px;
  gap: 1px;
}

.status-strip p {
  margin: 0;
  padding: 22px 18px;
  background: var(--ink);
  color: var(--accent);
  text-align: center;
  font-weight: 800;
}

.status-strip p:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.status-strip p:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.shop-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.shop-head > div:first-child {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}

.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

.product-media {
  position: relative;
}

.product-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-media span {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgb(16 18 15 / 0.9);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.product-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
}

.product-title-row small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-title-row strong {
  color: var(--accent-dark);
  font-size: 18px;
  white-space: nowrap;
}

.product-content p,
.step-grid p,
.custom-copy li,
.support-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef3e3;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.buy-box {
  display: grid;
  grid-template-columns: 1fr 0.76fr 0.72fr;
  gap: 8px;
}

.buy-box label,
.checkout-form label {
  display: grid;
  gap: 7px;
}

.buy-box span,
.checkout-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.buy-box select,
.buy-box input,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  outline: none;
}

.buy-box select,
.buy-box input,
.checkout-form input {
  min-height: 42px;
  padding: 0 12px;
}

.checkout-form textarea {
  resize: vertical;
  padding: 12px;
}

.buy-box select:focus,
.buy-box input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--accent-dark);
}

.add-to-cart {
  width: 100%;
  margin-top: 2px;
}

.checkout-flow {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.step-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--accent-dark);
  font-weight: 900;
}

.custom-block {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 52px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 24px;
}

.custom-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.custom-image img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
}

.custom-copy {
  display: grid;
  gap: 18px;
}

.custom-copy ul {
  display: grid;
  gap: 14px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.custom-copy li {
  padding-left: 22px;
  border-left: 4px solid var(--accent);
}

.support-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto 40px;
  padding: 48px 24px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--ink);
  color: white;
}

.support-block .eyebrow {
  color: var(--accent);
}

.support-panel {
  display: grid;
  align-content: center;
  gap: 18px;
}

.support-panel p {
  color: rgb(255 255 255 / 0.72);
}

.mail-link {
  width: max-content;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
}

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

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

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(16 18 15 / 0);
  transition: background 180ms ease;
}

.cart-drawer.is-open .drawer-backdrop {
  background: rgb(16 18 15 / 0.46);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: min(860px, 100vw);
  height: 100%;
  padding: 24px;
  overflow: auto;
  background: var(--bg);
  box-shadow: -30px 0 80px rgb(0 0 0 / 0.18);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

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

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

.drawer-header h2 {
  margin-top: 8px;
  font-size: clamp(28px, 5vw, 42px);
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.checkout-steps li {
  min-height: 38px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.checkout-steps li.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.cart-line img {
  width: 82px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-line h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.cart-line p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.cart-line strong {
  white-space: nowrap;
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-line-actions button,
.cart-line-actions input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8f2;
  color: var(--ink);
}

.cart-line-actions button {
  padding: 0 12px;
  font-weight: 800;
}

.cart-line-actions input {
  width: 70px;
  padding: 0 10px;
  text-align: center;
}

.cart-empty {
  align-self: start;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.62);
}

.cart-empty p {
  margin: 0;
  color: var(--muted);
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-summary span {
  color: var(--muted);
}

.summary-total strong {
  color: var(--accent-dark);
}

.checkout-form {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

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

.checkout-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.checkout-section-head {
  display: grid;
  gap: 4px;
}

.checkout-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.checkout-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-button {
  width: 100%;
  margin-top: 4px;
}

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

.radio-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f8f2;
}

.radio-card:has(input:checked) {
  border-color: var(--accent-dark);
  background: rgb(183 255 42 / 0.14);
}

.radio-card.is-disabled {
  opacity: 0.52;
}

.radio-card input,
.checkbox-line input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent-dark);
}

.radio-card > span {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: 14px;
}

.radio-card strong {
  color: var(--ink);
}

.radio-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.radio-card b {
  color: var(--accent-dark);
  font-size: 12px;
  white-space: nowrap;
}

.checkbox-line {
  display: flex;
  align-items: start;
  gap: 10px;
}

.checkout-form .checkbox-line span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.review-box {
  background:
    linear-gradient(135deg, rgb(183 255 42 / 0.14), transparent),
    white;
}

.review-totals {
  display: grid;
  gap: 8px;
  margin: 0;
}

.review-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.review-totals dt {
  color: var(--muted);
}

.review-totals dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.order-result {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.order-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 42px;
  color: var(--muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

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

  .step-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .store-hero,
  .checkout-flow,
  .custom-block,
  .support-block {
    grid-template-columns: 1fr;
  }

  .store-hero {
    min-height: auto;
    padding-top: 40px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 520px;
  }

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

  .status-strip p,
  .status-strip p:first-child,
  .status-strip p:last-child {
    border-radius: 0;
  }

  .status-strip p:first-child {
    border-radius: var(--radius) 0 0 0;
  }

  .status-strip p:nth-child(2) {
    border-radius: 0 var(--radius) 0 0;
  }

  .status-strip p:nth-child(3) {
    border-radius: 0 0 0 var(--radius);
  }

  .status-strip p:last-child {
    border-radius: 0 0 var(--radius) 0;
  }

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

  .catalog-tools {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .header-actions {
    justify-content: space-between;
  }

  .nav-links {
    gap: 18px;
    font-size: 13px;
  }

  .store-hero,
  .section,
  .checkout-flow,
  .custom-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  html[lang="zh-CN"] h1 {
    font-size: clamp(40px, 11vw, 48px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 440px;
  }

  .visual-panel {
    display: grid;
  }

  .status-strip,
  .product-grid,
  .buy-box,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .status-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .status-strip p,
  .status-strip p:first-child,
  .status-strip p:nth-child(2),
  .status-strip p:nth-child(3),
  .status-strip p:last-child {
    border-radius: 0;
  }

  .status-strip p:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .status-strip p:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .support-block {
    margin-left: 16px;
    margin-right: 16px;
    padding: 28px 18px;
  }

  .drawer-panel {
    padding: 18px 14px;
  }

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

  .cart-line {
    grid-template-columns: 70px 1fr;
  }

  .cart-line img {
    width: 70px;
    height: 90px;
  }

  .cart-line strong {
    grid-column: 2;
  }

  .checkout-section {
    padding: 14px;
  }

  .radio-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .radio-card b {
    grid-column: 2;
  }

  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
