:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-soft: #f6efe4;
  --ink: #1f2a24;
  --muted: #68746d;
  --line: #e5ded2;
  --brand: #315b46;
  --brand-dark: #244434;
  --accent: #b97b38;
  --accent-soft: #f1ddc4;
  --danger: #b24a3b;
  --shadow: 0 16px 40px rgba(49, 91, 70, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.text-link {
  color: var(--brand);
}

.topbar {
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}

.topbar .container,
.header-main,
.nav-list,
.header-actions {
  display: flex;
  align-items: center;
}

.topbar .container { justify-content: space-between; gap: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-main {
  min-height: 78px;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--brand-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 3px;
  background: var(--accent);
  top: 18px;
  right: -13px;
  transform: rotate(35deg);
  border-radius: 2px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.nav-list a,
.nav-list button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  border: 0;
}

.nav-list a:hover,
.nav-list button:hover,
.icon-btn:hover {
  background: var(--surface-soft);
}

.nav-group { position: relative; }

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s ease;
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-actions {
  gap: 8px;
}

.icon-btn {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  position: relative;
}

.cart-count {
  position: absolute;
  right: -6px;
  top: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  font-weight: 700;
}

.language-select {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 10px;
}

.mobile-toggle { display: none; }

.mobile-nav-backdrop {
  display: none;
}

.mobile-menu-head,
.mobile-menu-search,
.mobile-menu-actions {
  display: none;
}

.search-bar {
  display: none;
  padding: 0 0 16px;
}

.search-bar.open { display: block; }

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input,
.newsletter-form input,
.field input,
.field select,
.field textarea,
.coupon-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
}

.page-hero {
  padding: 44px 0 28px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.blog-layout,
.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.blog-toolbar {
  margin-bottom: 24px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(49, 91, 70, .08), rgba(255, 255, 255, .96) 52%),
    var(--surface);
}

.blog-toolbar-copy {
  margin-bottom: 18px;
}

.blog-toolbar-label,
.blog-side-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-toolbar h2,
.blog-list-head h3,
.blog-side-card h3 {
  margin-bottom: 10px;
}

.blog-list-wrap {
  min-width: 0;
}

.blog-list-head {
  margin-bottom: 18px;
}

.blog-list-head p,
.blog-side-card p,
.blog-toolbar-copy p {
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.blog-card,
.blog-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f4eadb, #e9d2b6);
  overflow: hidden;
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card h2,
.blog-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  min-height: 60px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog-card p {
  margin: 0 0 14px;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-meta,
.blog-detail-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.blog-category-list,
.blog-related-list {
  display: grid;
  gap: 10px;
}

.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-category-list a,
.blog-related-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.blog-category-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.blog-category-list a.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.blog-side-panel {
  position: sticky;
  top: 104px;
}

.blog-side-card {
  padding: 24px;
}

.blog-detail-cover {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}

.blog-detail-cover img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.blog-article {
  padding: 28px;
}

.blog-article img {
  height: auto;
  border-radius: var(--radius);
}

.blog-article h1,
.blog-article h2,
.blog-article h3 {
  line-height: 1.25;
}

.blog-article p,
.blog-article li {
  color: var(--ink);
}

.rich-content {
  line-height: 1.7;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.empty-state {
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.muted {
  color: var(--muted);
}

/* PayPal 成功/取消后落到公开结果页，按钮需要在移动端自然换行。 */
.payment-result-layout {
  display: grid;
  place-items: start center;
}

.payment-result-card {
  width: min(720px, 100%);
  display: grid;
  gap: 18px;
  text-align: center;
}

.payment-result-card h2 {
  margin: 0;
  font-size: 28px;
}

.payment-result-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  color: #fff;
  background: var(--accent);
}

.payment-result-icon.success {
  background: var(--brand);
}

.payment-result-icon.cancel,
.payment-result-icon.failed {
  background: var(--danger);
}

.payment-order-box {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
}

.payment-order-box span {
  color: var(--muted);
  font-size: 14px;
}

.payment-order-box strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #fffaf3 0%, #f4eadb 58%, #e9d2b6 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: .9;
  pointer-events: none;
  overflow: hidden;
}

.reader-visual {
  position: absolute;
  right: 6%;
  top: 120px;
  width: 520px;
  height: 260px;
}

.lens {
  position: absolute;
  width: 190px;
  height: 120px;
  border: 14px solid rgba(49, 91, 70, .85);
  border-radius: 70px 70px 82px 82px;
  background: rgba(255,255,255,.32);
  box-shadow: inset 0 0 40px rgba(255,255,255,.8), var(--shadow);
}

.lens.left { left: 22px; top: 72px; transform: rotate(-7deg); }
.lens.right { right: 22px; top: 72px; transform: rotate(7deg); }
.bridge {
  position: absolute;
  left: 229px;
  top: 128px;
  width: 64px;
  height: 14px;
  background: var(--accent);
  border-radius: 999px;
}
.temple {
  position: absolute;
  width: 170px;
  height: 12px;
  background: rgba(49, 91, 70, .85);
  top: 93px;
  border-radius: 999px;
}
.temple-left { left: -70px; transform: rotate(-22deg); }
.temple-right { right: -70px; transform: rotate(22deg); }

.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
  position: relative;
  z-index: 1;
  padding: 56px 0 40px;
}

.hero-copy { max-width: none; }
.hero-banner-shell {
  margin: 18px 0 24px;
  position: relative;
}
.hero-banner {
  position: relative;
}
.hero-banner-stage {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(49, 91, 70, .12);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .7), transparent 32%),
    linear-gradient(135deg, #f6ecdf 0%, #f2dfc5 48%, #ead2b0 100%);
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.hero-banner-stage:active { cursor: grabbing; }
.hero-banner-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.hero-banner-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.hero-banner-card {
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}
.hero-banner-card::before {
  content: "";
  position: absolute;
  inset: auto -6% -22% 54%;
  height: 84%;
  background: radial-gradient(circle, rgba(255, 255, 255, .64), transparent 68%);
  z-index: 0;
}
.hero-banner-card::after {
  content: "";
  position: absolute;
  inset: 22px auto auto 22px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .46), transparent 72%);
  z-index: 0;
}
.hero-banner-image-wrap,
.hero-banner-copy {
  position: absolute;
}
.hero-banner-image-wrap {
  inset: 14px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #f8f0e5, #ebd0ad);
  z-index: 1;
  margin: -10px;
}
.hero-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.02);
}
.hero-banner-copy {
  z-index: 2;
  inset: auto auto 28px 28px;
  width: min(420px, calc(100% - 56px));
  padding: 24px 24px 22px;
  color: var(--ink);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 252, 246, .82);
  backdrop-filter: blur(14px);
}
.hero-banner-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(49, 91, 70, .08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero-banner-copy h1 {
  margin: 14px 0 10px;
  color: var(--brand-dark);
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.04;
}
.hero-banner-copy p {
  margin: 0;
  max-width: 34ch;
  color: rgba(31, 42, 36, .72);
  font-size: 17px;
}
.hero-banner-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 252, 246, .76);
  backdrop-filter: blur(12px);
}
.hero-banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(49, 91, 70, .28);
  transition: transform .2s ease, background-color .2s ease;
}
.hero-banner-dot.active {
  width: 28px;
  background: var(--accent);
}
.hero-banner.loading .hero-banner-card,
.hero-banner.empty .hero-banner-card,
.hero-banner-card.is-fallback {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .28), transparent 30%),
    linear-gradient(135deg, #315b46, #b97b38);
}
.hero-banner.loading .hero-banner-copy,
.hero-banner.empty .hero-banner-copy,
.hero-banner-card.is-fallback .hero-banner-copy {
  position: relative;
  inset: auto auto 28px 28px;
  width: min(420px, calc(100% - 56px));
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}

.hero-eyebrow {
  text-transform: none;
  font-size: 14px;
  line-height: 1.35;
  max-width: 560px;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.actions-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  font-weight: 800;
  background: var(--surface);
  color: var(--brand);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.full { width: 100%; }

.hero-panel,
.summary-card,
.auth-card,
.content-card,
.order-card,
.drawer-panel {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel { padding: 0; }
.hero-panel {
  width: 100%;
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.trust-row {
  padding: 20px 22px;
  border: 1px solid rgba(49, 91, 70, .12);
  border-radius: 22px;
  background: rgba(255, 252, 246, .82);
  box-shadow: 0 10px 26px rgba(49, 91, 70, .08);
}

.trust-row strong { display: block; font-size: 22px; }
.trust-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section { padding: 72px 0; }
.soft-band { background: var(--surface-soft); }
.warm-band { background: #f3e2cc; }

.section-heading {
  margin-bottom: 28px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading a {
  color: var(--brand);
  font-weight: 800;
}

.category-grid,
.product-grid,
.feature-grid,
.review-grid {
  display: grid;
  gap: 18px;
}

.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.category-card,
.product-card,
.feature-item,
.quote,
.cart-line,
.checkout-line {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-card {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(145deg, #fff, #f5eadb);
}

.category-card span {
  color: var(--muted);
  font-size: 15px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #efe2d0, #ffffff);
  position: relative;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media.placeholder::before {
  content: "";
  position: absolute;
  width: 62%;
  height: 34%;
  left: 19%;
  top: 34%;
  border: 10px solid rgba(49, 91, 70, .78);
  border-radius: 999px;
  box-shadow: 0 0 0 18px rgba(255,255,255,.35);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-title {
  min-height: 52px;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

.text-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.product-price {
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.old-price {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: line-through;
}

.compact-price {
  gap: 6px;
}

.compact-price .product-price {
  font-size: 18px;
}

.product-meta,
.muted {
  color: var(--muted);
  font-size: 15px;
}

.product-card-rating {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card-rating .rating-stars {
  font-size: 14px;
}

.product-card-rating strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.feature-item,
.quote { padding: 22px; }
.quote p { font-size: 21px; margin-top: 0; }
.quote span { color: var(--muted); }

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: center;
}

.newsletter-form { display: flex; gap: 10px; }

.site-footer {
  background: #22372d;
  color: #f9f2e7;
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 12px 0 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a, .site-footer p { color: #d9e0da; }
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: #d9e0da;
  font-size: 14px;
}

.page-hero {
  padding: 54px 0;
  background: var(--surface-soft);
}

.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.breadcrumbs {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 104px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.filter-group { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.check-row { display: flex; gap: 9px; align-items: center; margin: 10px 0; color: var(--muted); }
.filter-clear {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sort-row select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination button {
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.pagination button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 36px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: pan-y;
}

.gallery-main-image {
  width: 100%;
  height: 100%;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(30,42,62,.62);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.gallery-nav:hover {
  background: rgba(30,42,62,.82);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb-row button {
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  padding: 0;
}

.thumb-row button.active { border-color: var(--brand); }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; }

.detail-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}

.detail-info h1 {
  font-size: 22px;
  line-height: 1.08;
  max-width: 100%;
  max-height: 225px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.detail-info > .muted {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.detail-price {
  font-size: 32px;
  color: var(--brand);
  font-weight: 900;
}

.detail-price-row {
  margin: 8px 0;
}

.detail-old-price {
  font-size: 18px;
}

.purchase-trust-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
  color: var(--ink);
}

.purchase-trust-list span,
.purchase-trust-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.purchase-trust-list a:hover {
  text-decoration: underline;
}

.strength-guide-note {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.option-group {
  margin-top: 18px;
}

.option-group strong { display: block; margin-bottom: 10px; }
.option-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.option-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.option-btn.active {
  border-color: var(--brand);
  background: #e7f0ea;
  color: var(--brand-dark);
  font-weight: 800;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 44px 64px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.quantity-control button,
.quantity-control input {
  height: 44px;
  border: 0;
  background: transparent;
  text-align: center;
}

.tabs {
  margin-top: 36px;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.tabs.sticky-detail-tabs .tab-buttons {
  position: sticky;
  top: var(--detail-tabs-offset, 0);
  z-index: 45;
  padding-top: 8px;
  background: rgba(255, 250, 243, .97);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(49, 91, 70, .08);
}

.tab-buttons button {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  border-bottom: 3px solid transparent;
  font-weight: 800;
}

.tab-buttons button.active { border-color: var(--brand); color: var(--brand); }
.tab-panel {
  display: none;
  padding: 24px 0;
}
.tab-panel.active { display: block; }

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.cart-lines,
.checkout-lines {
  display: grid;
  gap: 12px;
}

.cart-line,
.checkout-line {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  align-items: center;
}

.cart-line img,
.checkout-line img {
  width: 110px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.summary-card {
  padding: 20px;
  position: sticky;
  top: 104px;
}

.checkout-summary {
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(49, 91, 70, .08), rgba(255,255,255,.96) 110px),
    var(--surface);
  border: 1px solid rgba(49, 91, 70, .16);
}

.checkout-summary h3 {
  margin: 0;
  padding: 22px 22px 18px;
  font-size: 24px;
}

.checkout-summary .checkout-lines {
  margin: 0 16px;
  padding: 8px 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(49, 91, 70, .08);
  border-radius: calc(var(--radius) + 2px);
}

.checkout-summary .checkout-line {
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  align-items: start;
}

.checkout-summary .checkout-line:last-child {
  border-bottom: 0;
}

.checkout-summary .checkout-line img {
  width: 84px;
  border: 1px solid rgba(49, 91, 70, .08);
  box-shadow: 0 10px 24px rgba(49, 91, 70, .08);
}

.checkout-summary .checkout-line > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.checkout-summary .checkout-line h3 {
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.checkout-summary .checkout-line h3 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.checkout-summary .checkout-line .muted {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.checkout-summary .checkout-line strong {
  align-self: start;
  padding-left: 6px;
  font-size: 17px;
  color: var(--brand-dark);
  white-space: nowrap;
}

.checkout-summary .summary-row {
  margin: 0;
  padding: 14px 22px;
  color: var(--muted);
}

.checkout-summary .summary-row strong {
  color: var(--ink);
}

.checkout-summary .summary-row.total {
  margin: 12px 16px 16px;
  padding: 18px 20px;
  border: 1px solid rgba(49, 91, 70, .12);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, #f5ecdf, #fffdfa);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}

.summary-row.total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 22px;
  font-weight: 900;
}

.coupon-row { display: flex; gap: 8px; margin: 16px 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.paypal-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff7dd;
  margin: 18px 0;
}

.auth-wrap {
  min-height: 720px;
  display: grid;
  place-items: center;
  padding: 48px 0;
  background: linear-gradient(135deg, var(--surface-soft), var(--bg));
}

.auth-card {
  width: min(520px, calc(100% - 32px));
  padding: 28px;
}

.auth-card h1 { font-size: 40px; }
.auth-card form { display: grid; gap: 14px; margin-top: 22px; }

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 8px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 18px 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-card {
  padding: 24px;
}

.rich-content > :first-child {
  margin-top: 0;
}

.rich-content img {
  max-width: 100%;
  height: auto;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 104px;
}

.faq-type-list {
  display: grid;
  gap: 10px;
}

.faq-type-btn {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.faq-type-btn.active {
  border-color: var(--brand);
  background: #e7f0ea;
  color: var(--brand-dark);
}

.order-list { display: grid; gap: 16px; }
.order-load-state {
  min-height: 28px;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.order-card { padding: 18px; }
.order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.order-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}

.order-lookup-card {
  margin-top: 18px;
}

.order-lookup-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.order-lookup-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.order-lookup-meta span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.order-lookup-meta strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.error-state {
  border-color: rgba(178, 74, 59, .38);
  color: var(--danger);
}
.order-item img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.review-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.review-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.review-product img,
.review-product .product-media.placeholder {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--surface-soft);
  object-fit: cover;
}

.review-form {
  display: grid;
  gap: 16px;
}

.star-rating {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
}

.star-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #d8cfc3;
  font-size: 38px;
  line-height: 1;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.star-btn span {
  display: block;
}

.star-btn.full {
  color: #d49a34;
}

.star-btn.half {
  color: #d8cfc3;
}

.star-btn.half span {
  color: #d49a34;
  width: 50%;
  overflow: hidden;
}

.star-btn.half::after {
  content: "★";
  position: absolute;
  inset: 0;
  color: #d8cfc3;
  z-index: 0;
}

.star-btn.half span {
  position: relative;
  z-index: 1;
}

.review-image-list,
.review-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.upload-field {
  display: grid;
  gap: 8px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-drop {
  min-height: 128px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed rgba(49, 91, 70, .36);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffdfa, #f6efe4);
  color: var(--brand-dark);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.upload-drop:hover,
.file-input:focus + .upload-drop {
  border-color: var(--brand);
  background: #fff;
  transform: translateY(-1px);
}

.upload-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.upload-title {
  font-weight: 900;
}

.upload-note {
  color: var(--muted);
  font-size: 14px;
}

.review-image-thumb,
.review-gallery a {
  width: 92px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
  position: relative;
}

.review-image-thumb img,
.review-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-image-thumb button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 42, 36, .78);
  color: #fff;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 6px 0;
  color: #d8cfc3;
  font-size: 22px;
}

.review-stars span {
  position: relative;
}

.review-stars .full {
  color: #d49a34;
}

.review-stars .half {
  color: #d8cfc3;
}

.review-stars .half::before {
  content: "\2605";
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  color: #d49a34;
}

.review-stars .review-score {
  margin-left: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.product-rating-summary {
  margin: 8px 0 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.product-rating-summary:hover span:last-child {
  text-decoration: underline;
}

.rating-stars {
  color: #f6a700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.product-rating-summary strong {
  font-weight: 800;
}

.product-rating-summary span:last-child,
.tab-count {
  color: var(--muted);
}

.review-summary-panel {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-summary-score {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.review-summary-score strong {
  font-size: 24px;
  line-height: 1;
}

.review-distribution {
  display: grid;
  gap: 8px;
  width: 100%;
}

.review-distribution-row {
  display: grid;
  grid-template-columns: 56px minmax(90px, 1fr) 34px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.review-distribution-row strong {
  color: var(--text);
  text-align: right;
}

.review-distribution-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.review-distribution-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d49a34;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-load-state,
.blog-load-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
}

.review-load-more,
.blog-load-more {
  min-width: 190px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.drawer.open { display: block; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.drawer-head,
.drawer-foot {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.drawer-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  display: block;
}
.drawer-body {
  padding: 18px;
  overflow: auto;
  flex: 1;
}
.drawer-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-item-copy {
  display: grid;
  gap: 6px;
  align-content: start;
}

.drawer-remove {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(178, 74, 59, .28);
  border-radius: 999px;
  background: #fff5f3;
  color: var(--danger);
  font-weight: 700;
}

.drawer-remove:hover {
  background: #ffe9e5;
}

.drawer-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
}

.customer-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  font-family: Arial, Helvetica, sans-serif;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 85;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(49, 91, 70, .22);
  border-radius: 50%;
  background: #fffaf3;
  color: var(--brand-dark);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(31, 42, 36, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .18s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--brand);
  color: #fff;
}

.chat-launcher {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 36px rgba(31, 42, 36, .24);
  position: relative;
}

.chat-launcher:hover {
  background: var(--brand-dark);
}

.chat-bubble-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
}

.chat-bubble-icon svg {
  width: 31px;
  height: 31px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-chat.has-unread .chat-bubble-icon {
  animation: chat-shake 1.1s ease-in-out infinite;
}

.chat-badge {
  position: absolute;
  right: -3px;
  top: -4px;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.chat-window {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 110px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(31, 42, 36, .24);
}

.customer-chat.open .chat-window {
  display: flex;
}

.chat-head {
  min-height: 70px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--brand);
  color: #fff;
}

.chat-head strong,
.chat-head span {
  display: block;
}

.chat-head span {
  margin-top: 3px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

.chat-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #fbf7ef;
}

.chat-message {
  display: flex;
  margin-bottom: 12px;
}

.chat-message.mine {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(49, 91, 70, .08);
}

.chat-message.mine .chat-bubble {
  background: #e7f0ea;
  border-color: rgba(49, 91, 70, .22);
}

.chat-message-name {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-message-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message-meta {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chat-message-time {
  color: var(--muted);
  font-size: 12px;
}

.chat-message-read {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.chat-message-read.unread {
  color: #d48806;
}

.chat-compose {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chat-compose textarea {
  width: 100%;
  min-height: 52px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--bg);
  color: var(--ink);
}

@keyframes chat-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); }
  40% { transform: rotate(9deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(5deg); }
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100% - 36px));
  min-height: 116px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(49, 91, 70, .22);
  z-index: 100;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  place-items: center;
  background: rgba(255, 250, 243, .28);
  pointer-events: none;
}

.global-loading.open {
  display: grid;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(49, 91, 70, .18);
  border-top-color: var(--brand);
  border-right-color: var(--accent);
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 30px rgba(31, 42, 36, .16);
  animation: loading-spin .8s linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(1turn); }
}

.toast-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.toast-border span {
  position: absolute;
  background: var(--brand);
}

.toast-border-top,
.toast-border-bottom {
  height: 3px;
  left: 0;
  right: 0;
}

.toast-border-left,
.toast-border-right {
  width: 3px;
  top: 0;
  bottom: 0;
}

.toast-border-top {
  top: 0;
  transform-origin: right center;
  animation: toast-top var(--toast-duration, 2.6s) linear forwards;
}

.toast-border-right {
  right: 0;
  transform-origin: center bottom;
  animation: toast-right var(--toast-duration, 2.6s) linear forwards;
}

.toast-border-bottom {
  bottom: 0;
  transform-origin: left center;
  animation: toast-bottom var(--toast-duration, 2.6s) linear forwards;
}

.toast-border-left {
  left: 0;
  transform-origin: center top;
  animation: toast-left var(--toast-duration, 2.6s) linear forwards;
}

.toast-message {
  position: relative;
  z-index: 1;
  font-weight: 800;
  text-align: center;
}

@keyframes toast-top {
  0% { transform: scaleX(1); }
  25%, 100% { transform: scaleX(0); }
}

@keyframes toast-right {
  0%, 25% { transform: scaleY(1); }
  50%, 100% { transform: scaleY(0); }
}

@keyframes toast-bottom {
  0%, 50% { transform: scaleX(1); }
  75%, 100% { transform: scaleX(0); }
}

@keyframes toast-left {
  0%, 75% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

.empty-state {
  padding: 42px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hidden { display: none !important; }

@media (max-width: 980px) {
  .mobile-toggle { display: inline-flex; }
  .mobile-nav-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, .32);
  }
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88%);
    max-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: none;
    transform: none;
    transition: .2s ease;
    z-index: 70;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    border-radius: 0;
    flex-direction: column;
  }
  .site-nav.open {
    display: flex;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu-head .brand span:last-child {
    display: inline;
    max-width: none;
  }
  .mobile-menu-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 14px;
  }
  .mobile-menu-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    padding: 10px 12px;
  }
  .mobile-menu-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav-list {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .nav-list li {
    width: 100%;
  }
  .nav-list a,
  .nav-list button {
    width: 100%;
    min-height: 54px;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    font-size: 18px;
    font-weight: 800;
  }
  .nav-group > button::after {
    content: "+";
    font-size: 22px;
    color: var(--brand);
  }
  .nav-group.open > button::after {
    content: "-";
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 8px 0 2px;
    padding: 8px;
    border-radius: var(--radius);
    background: #fbf6ee;
    display: none;
  }
  .nav-group.open .submenu { display: block; }
  .submenu a {
    min-height: 46px;
    margin: 6px 0;
    background: var(--surface);
    font-size: 16px;
    font-weight: 700;
  }
  .hero-grid,
  .newsletter,
  .detail-grid,
  .cart-layout,
  .checkout-layout,
  .review-layout,
  .shop-layout,
  .content-grid,
  .faq-layout,
  .blog-layout,
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }
  .faq-sidebar {
    position: static;
  }
  .blog-side-panel {
    position: static;
  }
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reader-visual {
    display: none;
  }
  .hero-banner-card {
    min-height: 360px;
  }
  .hero-banner-image-wrap {
    inset: 12px;
  }
  .hero-banner-dots {
    right: 18px;
    bottom: 18px;
  }
  .hero-panel {
    max-width: none;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .header-main {
    gap: 10px;
  }
  .topbar {
    font-size: 13px;
  }
  .product-grid,
  .category-grid,
  .feature-grid,
  .review-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-panel,
  .summary-card { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container {
    width: min(100% - 24px, 1180px);
  }
  .topbar .container { display: block; text-align: center; }
  .topbar .container span:last-child { display: none; }
  .header-main { min-height: 68px; }
  .brand {
    min-width: 0;
    gap: 7px;
    font-size: 16px;
    flex: 0 0 auto;
  }
  .brand span:last-child {
    display: none;
  }
  .mobile-menu-head .brand span:last-child {
    display: inline;
  }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark::after { top: 15px; }
  .language-select {
    max-width: 58px;
    min-height: 38px;
    padding: 0 4px;
    font-size: 13px;
  }
  .hero, .hero-grid { min-height: 520px; }
  .hero-grid {
    padding: 34px 0;
  }
  .hero-banner-stage {
    border-radius: 20px;
  }
  .hero-banner-card {
    min-height: 320px;
  }
  .hero-banner-image-wrap {
    inset: 12px;
    border-radius: 16px;
  }
  .hero-banner-dots {
    right: 12px;
    top: 12px;
    bottom: auto;
    padding: 8px 10px;
  }
  h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.04;
  }
  h2 {
    font-size: clamp(27px, 9vw, 36px);
  }
  .hero-copy p:not(.eyebrow) { font-size: 18px; }
  .hero-actions .btn,
  .form-actions .btn {
    width: 100%;
  }
  .hero-panel {
    padding: 16px;
  }
  .trust-row strong {
    font-size: 19px;
  }
  .section { padding: 48px 0; }
  .section-heading.split { align-items: start; flex-direction: column; }
  .product-grid,
  .category-grid,
  .feature-grid,
  .review-grid,
  .footer-grid,
  .form-grid,
  .order-lookup-meta,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-toolbar,
  .blog-article,
  .blog-side-card {
    padding: 18px;
  }
  .blog-category-pills {
    gap: 8px;
  }
  .blog-category-pills a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }
  .blog-card-body h2,
  .blog-card-body h3 {
    font-size: 22px;
  }
  .newsletter-form,
  .search-form,
  .coupon-row {
    flex-direction: column;
  }
  .cart-line,
  .checkout-line,
  .order-item {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
  }
  .cart-line > .line-actions,
  .checkout-line > .line-actions,
  .order-item > .line-actions {
    grid-column: 1 / -1;
  }
  .cart-line img,
  .checkout-line img {
    width: 86px;
  }
  .code-row { grid-template-columns: 1fr; }
  .tab-buttons { overflow-x: auto; }
  .header-actions {
    gap: 4px;
    flex: 0 0 auto;
  }
  .icon-btn {
    min-width: 38px;
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .product-body {
    padding: 14px;
  }
  .filter-panel {
    padding: 14px;
  }
  .detail-info,
  .content-card,
  .summary-card,
  .auth-card {
    padding: 18px;
  }
  .review-summary-panel {
    align-items: flex-start;
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .review-load-more {
    width: 100%;
  }
  .gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }
  .gallery-prev {
    left: 8px;
  }
  .gallery-next {
    right: 8px;
  }
  .checkout-summary {
    padding: 0;
  }
  .checkout-summary h3 {
    padding: 18px 18px 14px;
  }
  .checkout-summary .checkout-lines {
    margin: 0 12px;
    padding: 4px 12px;
  }
  .checkout-summary .summary-row {
    padding: 14px 18px;
  }
  .checkout-summary .summary-row.total {
    margin: 10px 12px 12px;
    padding: 16px 18px;
  }
  .drawer-panel {
    width: 100%;
  }
  .customer-chat {
    right: 14px;
    bottom: 14px;
  }
  .back-to-top {
    right: 14px;
    bottom: 84px;
    width: 50px;
    height: 50px;
    font-size: 13px;
  }
  .chat-launcher {
    width: 56px;
    height: 56px;
  }
  .chat-window {
    right: -2px;
    bottom: 70px;
    width: calc(100vw - 24px);
    height: min(560px, calc(100vh - 92px));
  }
  .chat-compose {
    grid-template-columns: 1fr;
  }
  .chat-compose .btn {
    width: 100%;
  }
  .thumb-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .option-btn,
  .btn {
    min-height: 50px;
  }
  .detail-info h1 {
    max-height: 190px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 18px, 1180px);
  }
  .icon-btn {
    min-width: 34px;
    width: 34px;
    height: 34px;
  }
  .language-select {
    max-width: 50px;
    min-height: 34px;
  }
  .cart-count {
    right: -4px;
    top: -6px;
  }
}

@media (max-width: 340px) {
  .icon-btn[title="Account"],
  #accountLink {
    display: none;
  }
}
