:root {
  --bg: #fbfcfd;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --surface-warm: #faf8f5;
  --line: #e7eaf0;
  --line-strong: #d8dde6;
  --text: #15191f;
  --text-soft: #303744;
  --muted: #697381;
  --faint: #9aa3af;
  --black: #171b20;
  --success: #178651;
  --warning: #f28c28;
  --danger: #e5484d;
  --blue: #3375e8;
  --chip: #f3f5f8;
  --shadow: 0 18px 55px rgba(25, 32, 45, .055);
  --shadow-soft: 0 8px 24px rgba(25, 32, 45, .045);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1184px;
  --header: 58px;
}

/* API-backed content states */
.promotion-list,.address-list{display:grid;gap:12px}.test-badge,.verified-badge{display:inline-flex;align-items:center;margin-left:8px;padding:3px 7px;border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:700;color:var(--muted)}.verified-badge{color:var(--success)}.review-card{display:flex;flex-direction:column;gap:10px;min-height:180px}.review-card p{line-height:1.7;flex:1}.review-form{display:grid;grid-template-columns:120px 1fr;gap:12px;margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.review-form h3,.review-form p,.review-form button{grid-column:1/-1}.review-form label{display:grid;gap:7px}.product-specs{margin-top:16px;padding:14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;white-space:pre-wrap;font:inherit;line-height:1.7}.inline-field{display:grid;grid-template-columns:1fr auto;gap:8px}.address-card,.notification-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}.address-card p,.notification-row p{margin-top:5px}.notification-row.unread{border-left:3px solid var(--blue)}.order-note{margin-top:8px;padding:8px 10px;border-left:3px solid var(--blue);background:var(--surface-soft);font-size:13px}.mini-cart.active,.btn.square.active{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 50%,var(--line))}.faq-list{display:grid;gap:0}.faq-list details{padding:18px 0;border-bottom:1px solid var(--line)}.faq-list details:last-child{border-bottom:0}.faq-list summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:28px;cursor:pointer;font-weight:750;line-height:1.45}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary::before{content:'+';display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;color:var(--muted);font-size:16px;font-weight:500;line-height:1}.faq-list details[open] summary::before{content:'−'}.faq-list .faq-question{min-width:0}.faq-list .test-badge{flex:0 0 auto;margin-left:auto}.faq-list p{margin:14px 0 0 34px;color:var(--muted);line-height:1.8;white-space:pre-wrap}.brand-pill{font:inherit;color:inherit;cursor:pointer}
.detail-wide{grid-column:1/-1}

@media (max-width:720px){.review-form{grid-template-columns:1fr}.address-card,.notification-row{flex-direction:column}.inline-field{grid-template-columns:1fr}.inline-field .btn{width:100%}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(246,248,251,.9), rgba(255,255,255,0) 280px),
    var(--bg);
  font-family: Inter, "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--container), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.brand-name {
  display: grid;
  gap: 1px;
  line-height: 1;
  font-size: 18px;
}

.brand-sub {
  font-size: 9px;
  letter-spacing: .38em;
  text-transform: uppercase;
  font-weight: 700;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  height: 100%;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: #2a303a;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 8px;
  height: 2px;
  background: var(--black);
  border-radius: 99px;
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.icon-btn,
.cart-btn,
.avatar {
  border: 0;
  background: transparent;
  color: var(--black);
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  position: relative;
  border-radius: 999px;
}

.icon-btn:hover,
.cart-btn:hover,
.avatar:hover { background: var(--surface-soft); }

.cart-count {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.cart-count.show { display: grid; }
.avatar {
  background: #f0f2f5;
  font-weight: 800;
  font-size: 13px;
}

.page { min-height: calc(100vh - var(--header)); }
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.muted { color: var(--muted); }
.loading,
.error,
.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.error { color: var(--danger); }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .01em;
}

.view-more {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 14px;
}

.hero {
  min-height: 300px;
  padding: 58px 70px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 18% 22%, rgba(232,224,211,.7), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(222,204,176,.5), transparent 28%),
    linear-gradient(100deg, #fff 0%, #fcfbfa 52%, #f5f1eb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 40px;
  width: 130px;
  height: 190px;
  opacity: .75;
  background:
    radial-gradient(circle at 70% 12%, #d7c5aa 0 5px, transparent 6px),
    radial-gradient(circle at 52% 27%, #d7c5aa 0 4px, transparent 5px),
    radial-gradient(circle at 83% 42%, #d7c5aa 0 4px, transparent 5px),
    linear-gradient(72deg, transparent 49%, #ccb79a 50%, transparent 51%),
    linear-gradient(110deg, transparent 49%, #d9c9b2 50%, transparent 51%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-left: 150px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: .02em;
}

.hero p {
  margin: 0 0 24px;
  color: #505966;
  font-size: 17px;
  font-weight: 500;
}

.hero-art {
  position: absolute;
  right: 42px;
  bottom: 30px;
  width: 252px;
  height: 205px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 70% 22%, rgba(255,255,255,.45), transparent 18%),
    linear-gradient(145deg, #dac099, #ae8f66);
  box-shadow: 0 28px 48px rgba(119, 89, 55, .18);
}

.hero-art::before {
  content: "";
  position: absolute;
  left: -94px;
  bottom: 18px;
  width: 64px;
  height: 120px;
  border-radius: 24px 24px 40px 40px;
  background: linear-gradient(#fbfaf7, #e9dfd0);
  box-shadow: 72px 42px 0 -16px #f6eee2;
}

.hero-art::after {
  content: "姬可貓";
  position: absolute;
  left: -44px;
  top: 58px;
  width: 92px;
  height: 122px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #867052;
  background: #fffaf2;
  border: 1px solid rgba(120,95,64,.12);
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(40,30,20,.08);
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.btn:hover { background: #f8f9fb; border-color: #cfd5df; }
.btn:active { transform: translateY(1px); }
.btn.primary,
.btn.dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.btn.primary:hover,
.btn.dark:hover { background: #252a32; }
.btn.square {
  width: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 10px;
}

.hero-points {
  margin-top: 28px;
  display: flex;
  gap: 30px;
  color: #343b46;
  font-size: 12px;
  font-weight: 800;
}

.hero-points span::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 1.7px solid currentColor;
  border-radius: 999px;
}

.news {
  padding: 18px 22px 16px;
}
.news ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: news;
}
.news li {
  counter-increment: news;
  min-height: 25px;
  display: grid;
  grid-template-columns: 26px 1fr 44px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: #242b35;
  font-size: 12px;
  font-weight: 700;
}
.news li:last-child { border-bottom: 0; }
.news li::before {
  content: counter(news) ".";
  color: var(--text);
  font-weight: 800;
}
.news time {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}
.news-title{min-width:0}.news-title .test-badge{vertical-align:middle;white-space:nowrap}

.quick-services,
.wide-benefits {
  margin-top: 14px;
  padding: 18px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.service-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}
.service-item:last-child { border-right: 0; }
.service-icon,
.round-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #1b2028;
  flex: 0 0 auto;
}
.service-item b { display: block; font-size: 14px; }
.service-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.content-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 14px;
}

.home-card { padding: 20px; }
.product-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  container-type: inline-size;
  min-width: 0;
  min-height: 282px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(20,26,36,.025);
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-card:hover {
  border-color: #ccd2dc;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.product-media {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.product-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f8fa;
}

.tag,
.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--chip);
  color: #596371;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

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

.product-category {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name {
  margin-top: 9px;
  color: #181d25;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-brand {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  min-height: 19px;
}

.product-bottom {
  margin-top: auto;
  padding-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.price {
  min-width: 0;
  color: #12161d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.product-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.mini-cart {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  color: #11161d;
}
.mini-cart:hover { background: var(--surface-soft); }
.mini-cart svg { width: 18px; height: 18px; }

@container (max-width: 195px) {
  .product-bottom { grid-template-columns: 1fr; }
  .product-actions { justify-self: end; }
}

.platform-list { display: grid; gap: 8px; }
.platform-row {
  min-height: 48px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 118px 1fr 18px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.platform-row span { color: var(--muted); font-size: 12px; font-weight: 600; }

.coupon {
  min-height: 72px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #fff, #f8f9fb);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.coupon h3 { margin: 0 0 4px; font-size: 24px; }
.coupon p { margin: 0; }
.coupon button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--black);
  color: #fff;
  font-weight: 800;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.flow-step {
  position: relative;
  min-height: 104px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.flow-step b { color: var(--text); font-size: 13px; }
.flow-step .round-icon {
  background: #fff;
  font-weight: 850;
  font-size: 14px;
}

.feature-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.feature-item b { display: block; margin-bottom: 4px; }
.feature-item p { margin: 0; }

.page-heading {
  display: grid;
  gap: 8px;
  margin: 12px 0 22px;
}
.page-heading p { margin: 0; color: var(--muted); font-weight: 600; }
.page-heading h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: .01em;
}

.products-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 78px;
  padding: 16px 14px;
}
.filter-block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.filter-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.filter-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.filter-option {
  width: 100%;
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4f5967;
  font-size: 12px;
  font-weight: 700;
}
button.filter-option:hover,
button.filter-option.active { background: #f0f2f5; color: var(--text); }
.filter-option input { accent-color: var(--black); }

.search-panel {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -70px 0 42px;
}
.search-box {
  width: min(360px, 100%);
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.search-box input,
.field,
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  outline: none;
  min-height: 42px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
}
.search-box input {
  border: 0;
  min-height: auto;
  padding: 0;
}
textarea.field {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}
.field:focus,
.select:focus,
.search-box:focus-within {
  border-color: #aeb6c3;
  box-shadow: 0 0 0 3px rgba(28,35,45,.045);
}

.toolbar {
  min-height: 84px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.proxy-note {
  margin-top: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.proxy-note div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proxy-note b { display: block; color: var(--text); }
.proxy-note small { display: block; font-weight: 600; }
.proxy-note a { color: var(--text); font-weight: 800; }

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

.brand-strip {
  margin-top: 24px;
  padding: 18px;
}
.brand-strip-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.brand-pill {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 900;
  color: #232832;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  gap: 16px;
  align-items: stretch;
}
.gallery,
.buybox {
  padding: 18px;
}
.main-product-image {
  width: 100%;
  aspect-ratio: 1.48 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #f5f6f8;
}
.thumbs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.thumb:first-child { border-color: #111; }
.thumb img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: contain;
  background: #f6f7f9;
}
.buybox h1 {
  margin: 14px 0 8px;
  font-size: 25px;
  line-height: 1.28;
}
.rating {
  color: #f7b500;
  font-size: 13px;
  font-weight: 850;
}
.buybox .price {
  margin-top: 18px;
  font-size: 30px;
}
.option-grid {
  margin: 24px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.option-label,
.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.qty-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.qty-control {
  height: 36px;
  display: inline-grid;
  grid-template-columns: 34px 48px 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.qty-control button,
.qty-control input {
  border: 0;
  background: #fff;
  text-align: center;
  font-weight: 800;
}
.qty-control button { background: #f7f8fa; }
.purchase-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 14px;
}
.service-lines {
  margin-top: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}
.detail-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 14px;
}
.feature-list,
.copy-panel {
  padding: 20px;
}
.feature-list {
  display: grid;
  gap: 12px;
}
.copy-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.copy-panel p {
  margin: 0;
  color: #4f5865;
  font-size: 14px;
  font-weight: 600;
}

.legal-page { max-width: 1040px; }
.legal-page .page-heading > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.legal-document { padding: 30px 34px; }
.legal-document section {
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.legal-document section:last-of-type { margin-bottom: 0; }
.legal-document h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
}
.legal-document p,
.legal-document li {
  color: #4f5865;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.85;
}
.legal-document a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-document ol,
.legal-document ul {
  margin: 0;
  padding-left: 1.4rem;
}
.legal-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 3px solid #747f8f;
  background: var(--surface-soft);
  color: #4f5865;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
}
.legal-contact {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.legal-contact b,
.legal-contact span { display: block; }
.legal-contact span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.spec-table th,
.spec-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: left;
}
.spec-table th {
  width: 130px;
  background: #f7f8fa;
  color: var(--muted);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}
.checkout-form,
.summary {
  padding: 22px;
}
.checkout-form h1,
.checkout-form h2,
.summary h2 { margin: 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wide { grid-column: 1 / -1; }
.summary-row {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.summary-row.total {
  min-height: 56px;
  font-size: 18px;
}

.account-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.account-main { min-width: 0; }
.account-sidebar {
  position: sticky;
  top: 76px;
  padding: 16px;
  align-self: start;
}
.side-group {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.side-group:last-child { border-bottom: 0; margin-bottom: 0; }
.side-title {
  padding: 0 10px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.side-link {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  padding: 0 12px;
  color: #394250;
  font-weight: 750;
}
.side-link.active,
.side-link:hover { background: #f0f2f5; color: var(--text); }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1.15fr) minmax(320px, .85fr);
  gap: 14px;
}
.dashboard-grid .news {
  grid-column: 1 / -1;
}
.profile-hero {
  min-height: 230px;
  padding: 28px;
  display: grid;
  grid-template-columns: 170px minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 45%, rgba(219,226,239,.65), transparent 24%),
    repeating-linear-gradient(170deg, rgba(225,230,238,.5) 0 1px, transparent 1px 12px),
    #fff;
}
.profile-hero > div:last-child {
  min-width: 0;
}
.profile-face {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at 50% 55%, #fff 0 46%, #dfe5ee 47% 100%);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 35px rgba(25,32,45,.08);
  font-size: 0;
}
.profile-face::before,
.profile-face::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 42px;
  height: 50px;
  background: #dfe5ee;
  border: 1px solid var(--line);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.profile-face::before { left: 32px; transform: rotate(-18deg); }
.profile-face::after { right: 32px; transform: rotate(18deg); }
.profile-face {
  --eye: radial-gradient(circle, #111 0 48%, transparent 51%);
  background:
    var(--eye) 48px 66px / 24px 24px no-repeat,
    var(--eye) 88px 66px / 24px 24px no-repeat,
    radial-gradient(circle at 50% 84px, #e8a5a1 0 5px, transparent 6px),
    radial-gradient(circle at 50% 55%, #fff 0 46%, #dfe5ee 47% 100%);
}
.profile-hero h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.25;
  word-break: keep-all;
}
.profile-hero p {
  margin: 6px 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
  word-break: keep-all;
}
.progress {
  width: 100%;
  height: 9px;
  margin: 18px 0 8px;
  border-radius: 999px;
  background: #edf0f5;
  overflow: hidden;
}
.progress span {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}
.status-overview {
  padding: 24px;
}
.status-icons {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  text-align: center;
  gap: 12px;
}
.status-icons > div {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.status-icons strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
}
.status-icons span {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.order-panels {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}
.order-panels .list-panel:nth-child(2) {
  grid-column: 1;
}
.order-panels .list-panel:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.list-panel { padding: 20px; }
.order-row {
  min-height: 70px;
  padding: 10px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 9px;
}
.order-main {
  min-width: 0;
}
.order-main b,
.order-main .muted {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-row > b {
  justify-self: end;
  white-space: nowrap;
}
.order-row .status-pill {
  grid-column: 2 / -1;
  justify-self: start;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-row img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f7f9;
}
.status-pill.good {
  color: #53606e;
  background: #f0f2f5;
}
.status-pill.warn {
  color: #d96d13;
  background: #fff1e4;
  border-color: #ffe0c2;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,14,18,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 91;
  width: min(420px, 100vw);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 45px rgba(20,26,36,.12);
  transform: translateX(100%);
  transition: transform .24s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.cart-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.cart-open .drawer { transform: translateX(0); }
.drawer-head,
.drawer-foot {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.drawer-body {
  overflow: auto;
  padding: 16px;
}
.cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #f7f8fa;
  border-radius: 8px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--black);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
}

.footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 34px;
}
.footer p,
.footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}
.footer h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.footer-company > p { margin: 7px 0 0; }
.copyright {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.related-products .product-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.recommendation-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 282px;
  padding: 22px;
  background: var(--surface-soft);
}
.recommendation-link-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.recommendation-link b { display: block; font-size: 17px; line-height: 1.45; }
.recommendation-link small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.65; }
.recommendation-link strong { font-size: 13px; }

.review-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.review-form h3,
.review-form p { margin: 0; }
.review-form label,
.review-upload { display: grid; gap: 8px; }
.review-form .select { width: 100%; }
.review-form .review-text {
  width: 100%;
  min-height: 168px;
  line-height: 1.7;
}
.review-upload-button {
  display: inline-flex;
  justify-self: start;
  width: auto;
  min-height: 42px;
}
.review-image-preview,
.review-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.review-image-preview:empty { display: none; }
.review-image-preview-item,
.review-images a {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}
.review-image-preview img,
.review-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-card .review-images { margin-top: 2px; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 170px 1fr 150px; }
  .main-nav { gap: 22px; }
  .home-grid,
  .content-grid,
  .product-detail-layout,
  .detail-grid,
  .checkout-layout,
  .dashboard-grid,
  .order-panels {
    grid-template-columns: 1fr;
  }
  .dashboard-grid .news,
  .order-panels .list-panel:nth-child(2),
  .order-panels .list-panel:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }
  .products-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .search-panel { margin: 0 0 14px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-shell { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
}

@media (max-width: 760px) {
  :root { --header: auto; }
  .site-header { position: static; height: auto; }
  .header-inner {
    width: calc(100% - 28px);
    padding: 10px 0;
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    height: 40px;
  }
  .nav-link { height: 40px; white-space: nowrap; }
  .header-tools { gap: 8px; }
  .container { width: calc(100% - 28px); padding-top: 14px; }
  .hero { padding: 36px 24px; min-height: 360px; }
  .hero-copy { margin-left: 0; }
  .hero h1 { font-size: 30px; }
  .hero-art { opacity: .28; right: 14px; }
  .quick-services,
  .wide-benefits,
  .product-row,
  .product-grid,
  .brand-strip-grid,
  .flow,
  .option-grid,
  .form-grid,
  .status-icons {
    grid-template-columns: 1fr 1fr;
  }
  .service-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .product-grid { gap: 10px; }
  .purchase-row { grid-template-columns: 48px 1fr; }
  .purchase-row .btn.primary { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .legal-document { padding: 22px 20px; }
  .legal-contact { align-items: stretch; flex-direction: column; }
  .legal-contact .btn { width: 100%; }
}

@media (max-width: 520px) {
  .product-grid,
  .product-row,
  .quick-services,
  .wide-benefits,
  .flow,
  .option-grid,
  .form-grid,
  .status-icons,
  .brand-strip-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .page-heading h1 { font-size: 28px; }
  .faq-list summary { align-items: flex-start; }
  .faq-list .test-badge { margin-left: 0; }
  .faq-list p { margin-left: 34px; }
  .product-card { min-height: 0; }
}

/* Complete member center */
.sidebar-member { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; align-items: center; padding: 4px 6px 17px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.sidebar-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: #eef1f5; color: #26313d; font-weight: 850; }
.sidebar-member > div { min-width: 0; display: grid; gap: 2px; }
.sidebar-member b,
.sidebar-member span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-member span { color: var(--muted); font-size: 11px; }
.side-link { width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.side-link svg { width: 18px; height: 18px; }
.side-link-label { min-width: 0; }
.side-badge { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.side-link.active .side-badge { border-color: #c7ced7; color: var(--text); background: var(--surface); }
.side-logout { color: #9c343b; }
.account-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 14px; padding: 2px 2px 0; }
.account-page-heading span { color: var(--muted); font-size: 11px; font-weight: 800; }
.account-page-heading h1 { margin: 3px 0 2px; font-size: 26px; }
.account-page-heading p { margin: 0; color: var(--muted); }
.member-shortcuts { margin-top: 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.member-shortcuts > a,
.member-shortcuts > button { min-height: 82px; padding: 16px; display: flex; gap: 12px; align-items: center; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; text-decoration: none; }
.member-shortcuts > :last-child { border-right: 0; }
.member-shortcuts > :hover { background: var(--surface-soft); }
.member-shortcuts svg { flex: 0 0 auto; }
.member-shortcuts span { display: grid; gap: 3px; }
.member-shortcuts small { color: var(--muted); }
.status-icons .status-metric { min-width: 0; padding: 6px; display: grid; justify-items: center; gap: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); }
.status-icons .status-metric:hover { background: var(--surface-soft); }
.status-icons .status-metric > span:last-child { color: var(--muted); font-weight: 700; font-size: 12px; }
.order-list-panel { padding-top: 0; overflow: hidden; }
.order-toolbar { margin: 0 -20px 14px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.order-filter-tabs { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.order-filter-tabs,
.account-sidebar { scrollbar-width: none; }
.order-filter-tabs::-webkit-scrollbar,
.account-sidebar::-webkit-scrollbar { display: none; }
.order-filter-tabs button { min-height: 36px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 750; white-space: nowrap; }
.order-filter-tabs button:hover,
.order-filter-tabs button.active { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
.order-search { width: min(260px, 100%); min-height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.order-search svg { width: 17px; height: 17px; color: var(--muted); }
.order-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.order-result-count { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.address-management { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 14px; align-items: start; }
.panel-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0 0 3px; font-size: 18px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.address-list { display: grid; gap: 10px; }
.address-card { padding: 16px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.address-card.default { border-color: #b9c3cf; background: #fafbfc; }
.address-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.default-badge { padding: 3px 8px; border-radius: 999px; background: #e8f1ec; color: #276344; font-size: 11px; font-weight: 800; }
.address-card p { margin: 0; line-height: 1.65; }
.address-actions,
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.danger-text { color: #a0333d !important; }
.address-editor { position: sticky; top: 76px; }
.check-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px !important; }
.check-row input { width: 17px; height: 17px; accent-color: #20262d; }
.account-settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.account-security { padding: 22px; }
.security-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-soft); }
.account-security h2 { margin: 16px 0 8px; font-size: 18px; }
.account-security p { color: var(--muted); line-height: 1.7; }
.account-security dl { margin: 18px 0; display: grid; gap: 10px; }
.account-security dl > div { padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.account-security dt { color: var(--muted); }
.account-security dd { margin: 0; font-weight: 700; }
.integration-list { display: grid; gap: 10px; }
.integration-card { padding: 16px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 8px; }
.integration-logo { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: #edf0f3; font-size: 11px; font-weight: 900; }
.integration-card p { margin: 3px 0; color: var(--muted); }
.integration-card small { color: var(--muted); }
.integration-help { padding: 13px 15px; border-radius: 7px; background: var(--surface-soft); color: var(--muted); }
.order-timeline { margin: 0; padding: 0; list-style: none; }
.order-timeline li { position: relative; min-height: 58px; padding: 0 0 17px 27px; }
.order-timeline li:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 13px; bottom: -2px; width: 1px; background: var(--line); }
.timeline-dot { position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border: 3px solid var(--surface); border-radius: 50%; background: #536170; box-shadow: 0 0 0 1px #8d99a6; }
.order-timeline li > div { display: grid; gap: 3px; }
.order-timeline p { margin: 0; color: var(--muted); }
.order-timeline time { color: var(--muted); font-size: 11px; }
.order-modal-actions { display: flex; justify-content: space-between; gap: 10px; }

@media (max-width: 1100px) {
  .address-management,
  .account-settings-grid { grid-template-columns: 1fr; }
  .address-editor { position: static; }
  .member-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-shortcuts > :nth-child(2) { border-right: 0; }
  .member-shortcuts > :nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .account-sidebar { display: flex; gap: 6px; padding: 9px; overflow-x: auto; }
  .sidebar-member,
  .account-sidebar .side-title,
  .account-sidebar .side-group:last-of-type { display: none; }
  .account-sidebar .side-group { flex: 0 0 auto; display: flex; gap: 4px; padding: 0; margin: 0; border: 0; }
  .account-sidebar .side-link { width: auto; min-height: 40px; grid-template-columns: 18px auto auto; white-space: nowrap; }
  .account-page-heading { align-items: start; }
  .account-page-heading h1 { font-size: 23px; }
  .member-shortcuts { grid-template-columns: 1fr; }
  .member-shortcuts > a,
  .member-shortcuts > button { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--line); }
  .member-shortcuts > :last-child { border-bottom: 0; }
  .order-toolbar { align-items: stretch; flex-direction: column; }
  .order-search { width: 100%; }
  .integration-card { grid-template-columns: 42px minmax(0, 1fr); }
  .integration-card .status-pill { grid-column: 2; width: fit-content; }
}

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

@media (max-width: 520px) {
  .related-products .product-row { grid-template-columns: 1fr; }
  .review-image-preview,
  .review-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Member center and guided checkout */
.checkout-page { padding-bottom: 40px; }
.checkout-heading { margin-bottom: 18px; }
.checkout-heading h1 { margin-bottom: 4px; }
.checkout-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0 22px;
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.checkout-steps li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--faint);
}
.checkout-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% + 58px);
  right: calc(-50% + 58px);
  height: 1px;
  background: var(--line-strong);
}
.checkout-steps li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-weight: 800;
}
.checkout-steps li.active,
.checkout-steps li.done { color: var(--text); }
.checkout-steps li.active > span { color: #fff; border-color: var(--black); background: var(--black); }
.checkout-steps li.done > span { color: var(--success); border-color: #b9dec9; background: #eef9f2; }
.checkout-layout { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: 20px; }
.checkout-stage { display: none; }
.checkout-stage.active { display: block; }
.stage-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.stage-heading > span {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--black);
  font-weight: 800;
}
.stage-heading h2 { font-size: 21px; }
.stage-heading p { margin: 2px 0 0; color: var(--muted); }
.saved-addresses { margin-bottom: 22px; }
.address-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.address-choice {
  min-width: 0;
  padding: 13px 14px;
  display: grid;
  gap: 3px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.address-choice:hover { border-color: var(--text-soft); background: var(--surface); }
.address-choice span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-nav { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; }
.checkout-nav .btn { min-width: 142px; }
.payment-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-method {
  min-height: 82px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.payment-method.selected { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.payment-method input { position: absolute; opacity: 0; pointer-events: none; }
.payment-radio { flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 50%; }
.payment-method.selected .payment-radio { border: 5px solid var(--black); }
.payment-method > span:last-child { min-width: 0; display: grid; gap: 4px; }
.payment-method small { color: var(--muted); line-height: 1.45; }
.card-fields { display: none; grid-template-columns: 1.65fr 1fr 1fr; gap: 12px; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.card-fields.active { display: grid; }
.secure-label,
.field-message { grid-column: 1 / -1; }
.secure-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.secure-label small { color: var(--muted); font-weight: 600; }
.tappay-field { height: 48px; padding: 13px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.field-message { margin: 0; color: var(--muted); font-size: 12px; }
.field-message.valid { color: var(--success); }
.promo-field { display: grid; gap: 7px; margin-top: 20px; }
.checkout-review { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.checkout-review > div { padding: 15px 16px; display: grid; grid-template-columns: 110px 1fr; gap: 4px 14px; border-bottom: 1px solid var(--line); }
.checkout-review > div:last-child { border-bottom: 0; }
.checkout-review span { color: var(--muted); }
.checkout-review small { grid-column: 2; color: var(--muted); }
.terms-check { margin-top: 20px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.terms-check input { margin-top: 4px; }
.terms-check a { margin: 0 3px; text-decoration: underline; text-underline-offset: 3px; }
.checkout-submit { min-width: 220px !important; }
.checkout-summary { position: sticky; top: 78px; }
.summary-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.summary-title span { color: var(--muted); font-size: 12px; }
.checkout-assurance { display: grid; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.checkout-assurance span::before { content: "✓"; margin-right: 8px; color: var(--success); font-weight: 900; }

.account-page-heading { min-height: 74px; margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.account-page-heading span,
.profile-hero .eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.account-page-heading h1 { margin: 2px 0 2px; font-size: 27px; letter-spacing: 0; }
.account-page-heading p { margin: 0; color: var(--muted); }
.profile-hero { min-height: 196px; grid-template-columns: 92px minmax(0, 1fr); padding: 24px; gap: 20px; background: linear-gradient(145deg, #fff 0%, #f5f7fa 100%); }
.profile-avatar { width: 88px; height: 88px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #fff; background: var(--black); font-size: 31px; font-weight: 800; }
.profile-hero h2 { margin-top: 5px; }
.profile-alert,
.profile-clear { margin-top: 13px; min-height: 40px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #f3d6b9; border-radius: 8px; color: #a34f0e; background: #fff8f0; text-align: left; }
.profile-alert span { white-space: nowrap; font-weight: 800; }
.profile-clear { color: var(--success); border-color: #cae6d5; background: #f4fbf7; }
.member-news { grid-column: 1 / -1; padding: 18px 20px; }
.member-news .section-title { margin-bottom: 8px; }
.member-news-row { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.member-news-row span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.order-list-panel { padding: 22px; }
.order-row { min-height: 102px; padding: 14px; grid-template-columns: 62px minmax(0, 1fr) 120px 178px; gap: 14px; }
.order-row img { width: 60px; height: 60px; }
.order-id { margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.order-meta { display: grid; justify-items: end; gap: 7px; }
.order-row .status-pill { grid-column: auto; justify-self: auto; }
.order-actions { display: flex; justify-content: flex-end; gap: 7px; }
.order-actions .btn { padding: 0 13px; white-space: nowrap; }
.tracking-line { margin-top: 5px; color: var(--text-soft); font-size: 12px; }
.notification-row { position: relative; align-items: center; padding: 15px 16px; background: #fff; }
.notification-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.notification-row.unread .notification-dot { background: var(--blue); }
.notification-copy { min-width: 0; flex: 1; }
.notification-copy p { overflow-wrap: anywhere; }
.notification-copy small { color: var(--muted); }
.notification-action { flex: 0 0 auto; min-width: 90px; white-space: nowrap; }
.read-state { flex: 0 0 42px; color: var(--muted); text-align: center; }
.order-panels .order-row { grid-template-columns: 52px minmax(0, 1fr) 88px 98px; gap: 10px; }
.order-panels .order-row img { width: 50px; height: 50px; }
.order-panels .order-actions .btn { width: 100%; padding: 0 10px; }
.order-panels .notification-row { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; }
.order-panels .notification-action,
.order-panels .read-state { grid-column: 2; width: fit-content; margin-top: 4px; }

.modal-open { overflow: hidden; }
.order-modal-root { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.order-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 19, 24, .46); backdrop-filter: blur(3px); }
.order-modal { position: relative; width: min(860px, 100%); max-height: min(880px, calc(100vh - 48px)); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 28px 90px rgba(16, 21, 28, .22); }
.modal-loading,
.modal-error { min-height: 240px; display: grid; place-items: center; padding: 30px; color: var(--muted); }
.order-modal-header { position: sticky; top: 0; z-index: 2; min-height: 92px; padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.order-modal-header span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.order-modal-header h2 { margin: 2px 0 0; font-size: 20px; }
.order-modal-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.modal-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 24px; line-height: 1; }
.order-modal-body { padding: 22px 24px 26px; display: grid; gap: 14px; }
.order-detail-status { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.order-detail-status > b { font-size: 20px; }
.order-detail-section { padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.detail-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.detail-section-title h3 { margin: 0; font-size: 16px; }
.detail-section-title span { color: var(--muted); font-size: 12px; }
.order-item-list { display: grid; gap: 10px; }
.order-detail-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.order-detail-item img { width: 58px; height: 58px; object-fit: contain; border-radius: 7px; background: var(--surface-soft); }
.order-detail-item > div { min-width: 0; display: grid; gap: 3px; }
.order-detail-item span,
.order-detail-item small { color: var(--muted); }
.order-detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-list { margin: 0; display: grid; gap: 9px; }
.detail-list > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.public-order-note { padding: 11px 12px; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; border-radius: 7px; background: var(--surface-soft); }
.public-order-note small { color: var(--muted); }
.modal-totals { display: grid; gap: 8px; }
.modal-totals > div { display: flex; justify-content: space-between; gap: 20px; }
.modal-totals .total { margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 17px; }
.payment-history { min-height: 42px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; border-top: 1px solid var(--line); }
.payment-history small { grid-column: 1 / -1; color: var(--muted); }
.order-payment-panel { border: 1px solid #edd4b7; border-radius: 8px; background: #fffaf4; overflow: hidden; }
.payment-callout { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.payment-callout > div { display: grid; gap: 3px; }
.payment-callout span { color: #a35a1d; font-size: 12px; font-weight: 800; }
#order-payment-form { padding: 0 18px 18px; display: grid; gap: 14px; }
#order-payment-form > label { display: grid; gap: 7px; }
#order-payment-form .card-fields { background: #fff; }
.order-pay-submit { width: 100%; }
.payment-help { margin: 0; color: var(--muted); text-align: center; font-size: 12px; }

@media (max-width: 1100px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
  .order-row { grid-template-columns: 62px minmax(0, 1fr) 110px; }
  .order-actions { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .checkout-steps { padding: 0 12px; }
  .checkout-steps li { display: grid; justify-items: center; gap: 4px; font-size: 12px; }
  .checkout-steps li:not(:last-child)::after { left: calc(50% + 30px); right: calc(-50% + 30px); top: 16px; }
  .payment-method-grid,
  .address-choice-list,
  .card-fields.active,
  .order-detail-columns { grid-template-columns: 1fr; }
  .card-fields .secure-label,
  .card-fields .field-message { grid-column: 1; }
  .secure-label { display: grid; }
  .checkout-review > div { grid-template-columns: 1fr; }
  .checkout-review small { grid-column: 1; }
  .account-page-heading { min-height: 0; }
  .order-row { grid-template-columns: 52px minmax(0, 1fr); }
  .order-row img { width: 50px; height: 50px; }
  .order-meta { grid-column: 2; justify-items: start; display: flex; align-items: center; }
  .order-actions { grid-column: 1 / -1; }
  .order-actions .btn { flex: 1; }
  .notification-row { display: grid; grid-template-columns: 8px minmax(0, 1fr); }
  .notification-action,
  .read-state { grid-column: 2; width: fit-content; }
  .order-modal-root { padding: 0; }
  .order-modal { width: 100%; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
  .order-modal-header { padding: 16px; }
  .order-modal-body { padding: 16px; }
  .public-order-note { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .checkout-form,
  .checkout-summary { padding: 18px; }
  .checkout-nav { display: grid; grid-template-columns: 1fr; }
  .checkout-nav .btn { width: 100%; }
  .checkout-nav > span { display: none; }
  .profile-hero { grid-template-columns: 64px minmax(0, 1fr); padding: 18px; }
  .profile-avatar { width: 62px; height: 62px; font-size: 23px; }
  .profile-alert { grid-column: 1 / -1; }
}

.order-list-panel { padding-top: 0; }
.order-modal { border-radius: 8px; }

@media (max-width: 760px) {
  .account-sidebar { display: flex; gap: 6px; padding: 9px; overflow-x: auto; }
  .sidebar-member,
  .account-sidebar .side-title,
  .account-sidebar .side-group:last-of-type { display: none; }
  .account-sidebar .side-group { flex: 0 0 auto; display: flex; gap: 4px; padding: 0; margin: 0; border: 0; }
  .account-sidebar .side-link { width: auto; min-height: 40px; grid-template-columns: 18px auto auto; white-space: nowrap; }
}

/* Member level card and overview layout */
.member-level-card {
  width: 100%;
  aspect-ratio: 85.6 / 53.98;
  min-width: 0;
  perspective: 1200px;
}
.member-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.22,.72,.18,1);
}
.member-level-card.is-flipped .member-card-inner { transform: rotateY(180deg); }
.member-card-face {
  --level-position: 0%;
  position: absolute;
  inset: 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  color: #fff;
  background-color: #20252a;
  background-image: url('/img/member-level-textures-v1.webp');
  background-size: 500% 100%;
  background-position: var(--level-position) center;
  background-repeat: no-repeat;
  box-shadow: 0 16px 36px rgba(20,25,31,.16);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.member-card-face::before { content: ''; position: absolute; inset: 0; background: rgba(8,12,16,.48); pointer-events: none; }
.member-card-face > * { position: relative; z-index: 1; }
.level-1 .member-card-face { --level-position: 0%; }
.level-2 .member-card-face { --level-position: 25%; }
.level-3 .member-card-face { --level-position: 50%; }
.level-4 .member-card-face { --level-position: 75%; }
.level-5 .member-card-face { --level-position: 100%; }
.level-4 .member-card-face::before { background: rgba(22,19,15,.58); }
.member-card-back { transform: rotateY(180deg); pointer-events: none; }
.member-level-card.is-flipped .member-card-front { pointer-events: none; }
.member-level-card.is-flipped .member-card-back { pointer-events: auto; }
.member-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.member-card-brand { display: grid; gap: 2px; }
.member-card-brand .brand-mark { font-size: 19px; font-weight: 900; letter-spacing: 0; }
.member-card-brand small,
.member-card-identity span,
.member-level-heading > span { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.level-chip { min-width: 54px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(0,0,0,.2); text-align: center; font-size: 12px; font-weight: 850; }
.member-card-identity { margin-top: 30px; display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 17px; align-items: center; }
.member-card-avatar { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(0,0,0,.3); font-size: 25px; font-weight: 900; }
.member-card-identity h2 { margin: 3px 0 2px; color: #fff; font-size: 25px; }
.member-card-identity p { margin: 0; color: rgba(255,255,255,.82); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card-identity small { display: block; margin-top: 7px; color: rgba(255,255,255,.66); letter-spacing: .08em; }
.member-card-alert,
.member-card-clear { position: absolute; left: 26px; bottom: 24px; min-height: 36px; max-width: calc(100% - 88px); padding: 8px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; color: #fff; background: rgba(0,0,0,.28); font-size: 12px; text-align: left; }
.member-card-alert b { margin-left: 8px; }
.member-card-flip { position: absolute; right: 20px; bottom: 20px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; background: rgba(0,0,0,.28); }
.member-card-flip:hover { background: rgba(255,255,255,.14); }
.member-level-heading strong { display: block; margin: 7px 0 3px; font-size: 38px; line-height: 1; }
.member-level-heading p { margin: 0; color: rgba(255,255,255,.76); }
.member-exp { margin-top: 34px; width: calc(100% - 58px); }
.member-exp > div:first-child,
.member-exp-scale { display: flex; justify-content: space-between; gap: 16px; }
.member-exp > div:first-child span { color: rgba(255,255,255,.72); }
.member-exp-track { height: 8px; margin: 12px 0 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.2); }
.member-exp-track i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.member-exp-scale { color: rgba(255,255,255,.64); font-size: 10px; }
.member-level-note { position: absolute; left: 26px; right: 76px; bottom: 23px; margin: 0; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.45; }
.dashboard-grid .member-news { grid-column: auto; min-height: 100%; }
.dashboard-grid .status-overview { grid-column: 1 / -1; padding: 22px 24px; }
.status-overview .status-icons { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 18px; }
.member-news .empty-state { min-height: 210px; }

/* Keep totals and actions separated in compact overview order rows. */
.order-panels .order-row { min-height: 122px; grid-template-columns: 52px minmax(0,1fr) auto; align-items: start; }
.order-panels .order-meta { grid-column: 3; min-width: 78px; justify-items: end; }
.order-panels .order-actions { grid-column: 2 / -1; justify-content: flex-end; }
.order-panels .order-actions .btn { width: auto; min-width: 96px; }

@media (max-width: 1100px) {
  .member-level-card { width: min(620px,100%); justify-self: center; }
  .dashboard-grid .member-news { min-height: 220px; }
}

@media (max-width: 520px) {
  .member-card-face { padding: 16px; }
  .member-card-brand .brand-mark { font-size: 15px; }
  .member-card-brand small { font-size: 8px; }
  .level-chip { min-width: 48px; padding: 5px 8px; }
  .member-card-identity { margin-top: 16px; grid-template-columns: 46px minmax(0,1fr); gap: 11px; }
  .member-card-avatar { width: 46px; height: 46px; font-size: 18px; }
  .member-card-identity h2 { font-size: 19px; }
  .member-card-identity p { font-size: 11px; }
  .member-card-identity small { margin-top: 3px; font-size: 8px; }
  .member-card-alert,
  .member-card-clear { left: 16px; bottom: 14px; min-height: 30px; max-width: calc(100% - 66px); padding: 6px 9px; font-size: 10px; }
  .member-card-flip { right: 12px; bottom: 12px; width: 34px; height: 34px; }
  .member-level-heading strong { font-size: 29px; }
  .member-level-heading p { font-size: 10px; }
  .member-exp { width: calc(100% - 42px); margin-top: 18px; font-size: 11px; }
  .member-exp-track { margin: 8px 0 5px; }
  .member-level-note { display: none; }
  .status-overview .status-icons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-panels .order-row { grid-template-columns: 48px minmax(0,1fr) auto; }
  .order-panels .order-meta { grid-column: 2 / -1; display: flex; justify-content: space-between; justify-items: start; width: 100%; }
  .order-panels .order-actions { grid-column: 1 / -1; }
  .order-panels .order-actions .btn { flex: 1; min-width: 0; }
}

.rich-product-content{color:var(--text);font-size:15px;line-height:1.85;overflow-wrap:anywhere}.rich-product-content>:first-child{margin-top:0}.rich-product-content>:last-child{margin-bottom:0}.rich-product-content p{margin:0 0 14px}.rich-product-content h2,.rich-product-content h3,.rich-product-content h4{margin:24px 0 10px;line-height:1.35}.rich-product-content h2{font-size:24px}.rich-product-content h3{font-size:19px}.rich-product-content h4{font-size:16px}.rich-product-content ul,.rich-product-content ol{margin:12px 0;padding-left:24px}.rich-product-content img{display:block;max-width:100%;height:auto;margin:20px auto;border-radius:8px}.rich-product-content figure{margin:20px 0}.rich-product-content figcaption{text-align:center;color:var(--muted);font-size:12px}.rich-product-content blockquote{margin:16px 0;padding:12px 16px;border-left:3px solid var(--line-strong);background:var(--surface-soft)}.rich-product-content a{color:var(--link);text-decoration:underline}.warranty-copy{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.warranty-copy>h3{margin:0 0 12px;font-size:17px}

@media (prefers-reduced-motion: reduce) {
  .member-card-inner { transition: none; }
}
