:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --paper: #ffffff;
  --surface: #f4f4f2;
  --promo: #163d32;
  --cta: #111111;
  --cta-hover: #2a2a2a;
  --danger: #b42318;
  --radius: 4px;
  --max: 1200px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .82; }
button, input, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.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;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.page-pad { padding: 28px 0 72px; }
.narrow { max-width: 760px; }

.announce {
  background: var(--promo);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 10px 16px;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
}

.brand {
  justify-self: center;
  text-align: center;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: lowercase;
}

.nav {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
}
.nav--left { justify-content: flex-start; }
.nav a {
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink);
}
.nav a.is-active { text-decoration: underline; text-underline-offset: 5px; }

.header-tools {
  justify-self: end;
  display: flex; align-items: center; gap: 14px;
}
.search-form {
  display: flex; align-items: center; gap: 4px;
  border-bottom: 1px solid var(--line); padding: 2px 0;
}
.search-form input {
  border: 0; outline: 0; background: transparent; width: 96px; min-width: 0; font-size: 14px;
}
.search-form button { border: 0; background: transparent; cursor: pointer; }

.cart-link {
  position: relative; display: inline-flex; align-items: center; color: var(--ink);
}
.cart-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 700;
  display: inline-grid; place-items: center; padding: 0 4px;
}

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 5px auto;
}

/* NutriBullet-like hero: media first, bold copy, solid CTA */
.hero-nb {
  position: relative;
  background: var(--surface);
  padding-bottom: 36px;
}
.hero-nb__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(68vh, 620px);
  overflow: hidden;
  background: #e9e9e7;
}
.hero-nb__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-nb__fallback {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, #dfe8e4 0%, #f4f4f2 45%, #c9d8d1 100%);
  min-height: 360px;
}
.hero-nb__copy {
  padding-top: 28px;
  max-width: 720px;
  text-align: center;
  margin-inline: auto;
}
.hero-nb__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--promo);
}
.hero-nb__title {
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero-nb__lead {
  margin: 14px auto 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40ch;
}
.hero-nb__dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 22px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: #cfcfcf; cursor: pointer;
}
.hero-dot.is-active { background: var(--ink); }

.section { padding: 56px 0; }
.section--muted { background: var(--surface); }
.section-head { margin-bottom: 28px; max-width: 42ch; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head h2, .page-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-head p, .page-intro p { margin: 0; color: var(--muted); }
.section-head--row {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: none;
}
.text-link {
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.shop-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 160px; padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background .2s ease, transform .2s ease;
  overflow: hidden;
}
.shop-tile--media { padding: 0; position: relative; }
.shop-tile:hover { background: #ebebe8; transform: translateY(-2px); opacity: 1; }
.shop-tile__media {
  position: absolute; inset: 0;
  display: block;
}
.shop-tile__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.shop-tile__body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 160px; padding: 22px;
  gap: 12px;
}
.shop-tile--media .shop-tile__body {
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.45) 100%);
  color: #fff;
}
.shop-tile__name {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
}
.shop-tile__cta {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
}
.subcat-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 24px;
}
.subcat-chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.subcat-chip:hover { background: #ebebe8; border-color: #c9cdc4; opacity: 1; }

.product-card__media {
  position: relative; display: block; overflow: hidden;
  background: #ececec; aspect-ratio: 1 / 1;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #e8e8e8, #cfcfcf);
}
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px;
}
.product-card__body { padding-top: 12px; }
.product-card__cat {
  margin: 0 0 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.product-card__title {
  margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.35;
}
.product-card__price {
  margin: 8px 0 0; display: flex; gap: 8px; align-items: baseline; font-weight: 700;
}
.product-card__price s { color: var(--muted); font-size: .9rem; font-weight: 500; }

.benefit-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.benefit {
  border: 1px solid var(--line); padding: 22px 20px; background: var(--paper);
}
.benefit strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.benefit span { color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; font-size: 13px;
}
.btn--solid, .btn--primary {
  background: var(--cta); color: #fff;
}
.btn--solid:hover, .btn--primary:hover {
  background: var(--cta-hover); color: #fff; opacity: 1;
}
.btn--primary:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost {
  background: transparent; border-color: var(--ink); color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; opacity: 1; }
.btn--block { width: 100%; }
.btn--danger { color: var(--danger); border-color: var(--danger); }

.breadcrumb { margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #b0b0b0; }

.filter-bar { display: flex; gap: 10px; margin: 0 0 24px; }
.filter-bar input {
  flex: 1; min-height: 48px; border: 1px solid var(--line);
  padding: 0 16px; background: var(--paper);
}

.product-detail {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start;
}
.product-detail__gallery {
  overflow: hidden; background: var(--surface); aspect-ratio: 1 / 1;
}
.product-detail__gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__info h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
}
.product-detail__price {
  font-size: 1.25rem; font-weight: 800; display: flex; gap: 10px; align-items: baseline;
}
.product-detail__price s { color: var(--muted); font-size: 1rem; font-weight: 500; }
.product-detail__desc { margin: 18px 0; color: var(--muted); }
.buy-box { display: grid; gap: 12px; margin-top: 22px; max-width: 380px; }
.qty { display: grid; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.qty input {
  width: 96px; min-height: 48px; border: 1px solid var(--line); padding: 0 12px; background: var(--paper);
}
.product-meta { margin-top: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }

.cart-table, .order-items { display: grid; gap: 14px; }
.cart-line, .order-items li {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); padding: 12px;
}
.cart-line img, .order-items img { width: 72px; height: 72px; object-fit: cover; }
.cart-line__title { font-weight: 700; margin: 0 0 6px; }
.cart-line__ops { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.cart-summary {
  margin-top: 20px; padding: 18px; border: 1px solid var(--line); background: var(--surface);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}

.checkout-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start;
}
.checkout-form, .checkout-summary, .order-card {
  background: var(--paper); border: 1px solid var(--line); padding: 20px;
}
.checkout-form { display: grid; gap: 14px; }
.checkout-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.checkout-form input, .checkout-form textarea {
  border: 1px solid var(--line); padding: 12px; background: #fff; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink);
}
.form-note { color: var(--danger); margin: 0; }
.order-total { font-size: 1.2rem; font-weight: 800; margin: 16px 0 0; }
.pager { display: flex; justify-content: center; gap: 16px; margin-top: 28px; align-items: center; }
.empty { color: var(--muted); padding: 24px 0; }

.seo-block {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 760px;
}
.seo-block h2 {
  margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em;
}
.seo-block p, .seo-block li { color: #333; }
.seo-block ul { margin: 0; padding-left: 1.15rem; list-style: disc; }
.spec-list { display: grid; gap: 8px; margin: 0; }
.spec-list > div {
  display: grid; grid-template-columns: 120px 1fr; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.spec-list dt { margin: 0; color: var(--muted); font-weight: 700; }
.spec-list dd { margin: 0; }
.review-list { display: grid; gap: 12px; }
.review-card {
  margin: 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface);
}
.review-card p { margin: 0 0 8px; }
.review-card footer { color: var(--muted); font-size: 13px; }
.topic-cluster { margin: 0 0 28px; }
.topic-cluster > h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
.topic-cluster > p { margin: 0 0 14px; color: var(--muted); }

.type-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px;
}
.type-tabs a {
  min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); font-size: 13px; font-weight: 700;
}
.type-tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.guide-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.guide-card {
  border: 1px solid var(--line); background: var(--paper);
}
.guide-card__link { display: block; padding: 22px; }
.guide-card__type {
  display: inline-block; margin-bottom: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--promo);
}
.guide-card h2, .guide-card h3 {
  margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em;
}
.guide-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.guide-layout {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start;
}
.guide-article__head { margin-bottom: 22px; }
.guide-article__head h1 {
  margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em;
}
.guide-article__summary { color: var(--muted); margin: 0; font-size: 1.05rem; }
.prose h2 { margin: 28px 0 10px; font-size: 1.2rem; font-weight: 800; }
.prose p { margin: 0 0 12px; color: #333; }
.prose ul { margin: 0 0 14px; padding-left: 1.2rem; list-style: disc; color: #333; }
.prose li { margin: 0 0 6px; }
.prose .mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; overflow-x: auto; }
.faq-item { border-top: 1px solid var(--line); padding: 14px 0; }
.faq-q { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.faq-a { margin: 0; color: var(--muted); }

.aside-block {
  border: 1px solid var(--line); padding: 18px; margin-bottom: 14px; background: var(--surface);
}
.aside-block h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.aside-tip { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.aside-products { display: grid; gap: 10px; margin-bottom: 14px; }
.aside-product {
  display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line); padding: 8px;
}
.aside-product img { width: 56px; height: 56px; object-fit: cover; }
.aside-product strong { display: block; font-size: 14px; }
.aside-product em { font-style: normal; font-weight: 700; font-size: 13px; }
.aside-links { display: grid; gap: 8px; }
.aside-links a { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .guide-layout, .guide-grid { grid-template-columns: 1fr; }
}

.site-footer {
  border-top: 1px solid var(--line); background: var(--ink); color: #f2f2f2; padding: 56px 0 28px; margin-top: 8px;
}
.site-footer a:hover { color: #fff; opacity: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 28px;
}
.footer-brand { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -.02em; }
.footer-desc { color: #bdbdbd; margin: 0; max-width: 36ch; }
.footer-title { font-weight: 800; margin-bottom: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; color: #bdbdbd; font-size: 14px; }
.footer-copy { color: #8f8f8f; font-size: 13px; border-top: 1px solid #2c2c2c; padding-top: 16px; }

@media (max-width: 960px) {
  .product-detail, .checkout-grid, .footer-grid, .benefit-row { grid-template-columns: 1fr; }
  .product-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-nb__media { aspect-ratio: 4 / 3; max-height: none; }
  .nav-toggle { display: inline-block; justify-self: start; }
  .header-row { grid-template-columns: auto 1fr auto; }
  .nav--left {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px; flex-direction: column; align-items: flex-start; z-index: 30;
  }
  .nav--left.is-open { display: flex; }
  .brand { justify-self: center; }
  .search-form { display: none; }
}

@media (max-width: 560px) {
  .product-grid, .shop-grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line__price { grid-column: 2; }
  .hero-nb__copy { text-align: left; padding-inline: 16px; }
}
