:root {
  --ink: #17221b;
  --green: #146c43;
  --green-soft: #e7f3eb;
  --paper: #f4f1e9;
  --white: #fff;
  --muted: #737a75;
  --orange: #d75231;
  --line: #e4e5df;
  --shadow: 0 18px 55px rgba(23, 34, 27, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 72px; padding: 0 max(24px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(244,241,233,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(23,34,27,.07); }
.brand { color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand strong { font: inherit; }
.brand span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; border-radius: 50%; color: #fff; background: var(--green); }
nav { display: flex; gap: 5px; }
.nav-button { border: 0; background: transparent; color: var(--muted); padding: 10px 15px; border-radius: 999px; }
.nav-button.active { color: #fff; background: var(--ink); }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.view { display: none; padding: 62px 0 140px; }
.view.active { display: block; }
.hero { max-width: 800px; padding: 34px 0 54px; }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(44px, 7vw, 82px); line-height: 1.02; letter-spacing: -.055em; }
h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 610px; color: var(--muted); font-size: 17px; }
.channel-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.7); color: var(--muted); font-size: 13px; }
.channel-note i { width: 8px; height: 8px; border-radius: 50%; background: #e2a13b; box-shadow: 0 0 0 5px rgba(226,161,59,.12); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product { min-height: 235px; padding: 27px; display: flex; flex-direction: column; border-radius: 25px; background: var(--white); box-shadow: var(--shadow); }
.badge { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.product h2 { margin: 24px 0 2px; font-size: 20px; }
.product-price { color: var(--orange); font-size: 33px; font-weight: 850; letter-spacing: -.04em; }
.stock { color: var(--muted); font-size: 12px; }
.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; }
.stepper button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #edf0eb; color: var(--ink); font-size: 23px; }
.stepper button:last-child { background: var(--ink); color: #fff; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.quantity { min-width: 52px; text-align: center; font-size: 18px; font-weight: 800; }
.cart-bar { position: fixed; z-index: 30; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(720px, calc(100% - 28px)); min-height: 76px; padding: 10px 12px 10px 27px; display: flex; align-items: center; justify-content: space-between; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 18px 60px rgba(23,34,27,.2); }
.cart-bar div { display: flex; align-items: baseline; gap: 14px; }
.cart-bar span { color: var(--muted); }
.cart-bar strong { color: var(--orange); font-size: 26px; }
.cart-bar button, .primary-button { border: 0; border-radius: 999px; background: var(--green); color: #fff; font-weight: 750; }
.cart-bar button { height: 56px; padding: 0 27px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.checkout-panel { margin-top: 58px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2, .page-heading h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); }
.text-button { border: 0; background: transparent; color: var(--green); }
.checkout-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.surface { padding: 28px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.surface h3 { font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { color: var(--muted); font-size: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.fulfillment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fulfillment-options label { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.fulfillment-options input { width: auto; margin: 0; }
.fulfillment-options span { display: flex; flex-direction: column; }
.fulfillment-options small { color: var(--muted); }
.address-heading { margin-top: 26px; }
input { width: 100%; margin-top: 6px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fafaf7; color: var(--ink); }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,108,67,.1); }
.summary { position: sticky; top: 92px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.grand-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grand-total strong { color: var(--orange); font-size: 30px; }
.providers { display: grid; gap: 9px; }
.providers label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.providers input { width: auto; margin: 0; }
.providers span { display: flex; flex-direction: column; }
.providers small { color: var(--muted); }
.summary .primary-button { width: 100%; min-height: 50px; margin-top: 18px; }
.fine-print { margin: 11px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.page-heading { margin-bottom: 34px; }
.order-list, .admin-grid { display: grid; gap: 16px; }
.order-card { padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.order-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.order-id { font-weight: 800; }
.status { color: var(--green); font-weight: 800; }
.order-row { display: flex; justify-content: space-between; padding: 7px 0; }
.order-meta { color: var(--muted); font-size: 12px; }
.shipping { margin-top: 13px; padding: 11px 13px; border-radius: 12px; background: var(--green-soft); }
.login-box { max-width: 520px; }
.login-box p { color: var(--muted); }
.login-box .primary-button { width: 100%; min-height: 50px; margin-top: 14px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.mall-settings { margin-bottom: 22px; }
.mall-settings label { color: var(--muted); font-size: 12px; }
.mall-settings .primary-button { min-height: 46px; margin-top: 12px; padding: 0 22px; }
.admin-tabs button { padding: 10px 16px; border: 0; border-radius: 999px; background: #dddeda; }
.admin-tabs button.active { background: var(--ink); color: #fff; }
.admin-grid { grid-template-columns: repeat(2, 1fr); }
.admin-card { padding: 22px; border-radius: 20px; background: #fff; }
.admin-card .primary-button { width: 100%; min-height: 44px; margin-top: 12px; }
.admin-card label { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 99; top: 88px; left: 50%; transform: translate(-50%, -15px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.hidden { display: none !important; }
.empty { padding: 70px 20px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .topbar { padding: 10px 14px; align-items: flex-start; gap: 8px; }
  .brand { padding-top: 6px; }
  .brand span { display: none; }
  nav { overflow-x: auto; }
  .nav-button { white-space: nowrap; padding: 8px 10px; font-size: 13px; }
  main { width: min(100% - 28px, 1180px); }
  .view { padding-top: 30px; }
  .hero { padding-top: 18px; }
  h1 { font-size: 42px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product { min-height: 210px; padding: 19px; border-radius: 19px; }
  .checkout-layout, .admin-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .fulfillment-options { grid-template-columns: 1fr 1fr; }
  .form-grid .wide { grid-column: auto; }
  .cart-bar { min-height: 68px; padding-left: 19px; }
  .cart-bar strong { font-size: 21px; }
}
