/* Spree-inspired storefront styles — fonts match Yourslabel chrome */
:root {
  --bg: #ffffff;
  --bg-muted: #f7f7f5;
  --bg-product: #f3f0ea;
  --text: #111111;
  --text-muted: #6b6b6b;
  --border: #e5e5e5;
  --border-strong: #111111;
  --accent: #111111;
  --success: #16874a;
  --header-h: 110px;
  --max: 1280px;
  --radius: 10px;
  --font: "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Arial Narrow", "Franklin Gothic Medium", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  height: 100%;
}
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}
.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 36px;
}

.icon-btn {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  line-height: 0;
  flex: 0 0 36px;
  position: relative;
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--bg-muted); }
.icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Language / Account / Cart — same height row */
.action-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  flex: 0 0 auto;
}
.action-btn {
  box-sizing: border-box;
  height: 36px;
  min-width: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.action-btn:hover,
.action-btn.open {
  background: var(--bg-muted);
  border-color: var(--border);
}
.action-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.action-btn .flag-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  background:
    linear-gradient(#3c3b6e 0 45%, transparent 45%),
    repeating-linear-gradient(
      #b22234 0 2px,
      #fff 2px 4px
    );
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.action-btn .action-label {
  line-height: 1;
}
.action-btn.icon-only {
  width: 36px;
  padding: 0;
}
#cartBtn svg {
  transform: translateY(-1px);
}
.action-btn .flag-dot {
  width: 16px;
  height: 16px;
}
.action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  padding: 6px;
  display: none;
  z-index: 120;
}
.action-menu.open { display: block; }
.action-menu button,
.action-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.action-menu button:hover,
.action-menu a:hover { background: var(--bg-muted); }
.action-menu .active { font-weight: 600; }

.brand {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
  transition: opacity .2s;
}
.brand:hover { opacity: .7; }

.wholesale-link {
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  padding: 0 10px;
  margin-right: 4px;
  border-radius: 8px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.wholesale-link:hover { background: var(--bg-muted); color: var(--text); }

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.cart-count.show { display: inline-flex; }

/* Search — expand inside header (Spree-like) */
.search-panel {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fff;
}
.search-panel.open {
  display: block;
}
.search-panel .search-wrap {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-panel input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.search-panel input:focus { border-color: #999; }

/* Auth page */
.auth-page {
  display: flex;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 80px;
}
.auth-card {
  width: min(420px, 100%);
}
.auth-page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.auth-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-back:hover { color: var(--text); }

.header-actions .icon-btn {
  text-decoration: none;
}

/* Side menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 200;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  z-index: 210;
  overflow-y: auto;
  padding: 20px 24px 40px;
}
.side-menu.open { transform: translateX(0); }

.side-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.side-menu h2 {
  font-size: 18px;
  font-weight: 600;
}
.cat-group { margin-bottom: 20px; }
.cat-group > a,
.cat-group > button.cat-parent {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
}
.cat-children a {
  display: block;
  padding: 7px 0 7px 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.cat-children a:hover { color: var(--text); }

/* Page shell */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.page-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.cat-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.cat-card .thumb {
  height: 168px;
  background: #f4f6f8;
}
.cat-card .meta { padding: 14px 16px 18px; }
.cat-card .name { font-weight: 600; }
.cat-card .count { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .cat-grid { grid-template-columns: 1fr; }
}

.cat-products { margin-top: 48px; }
.cat-products-more { margin-top: 16px; font-size: 14px; }
.cat-guide { margin-top: 56px; padding-top: 8px; }
.cat-guide-kicker {
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.cat-guide h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  letter-spacing: -0.02em;
}
.cat-guide h3 { font-size: 17px; margin: 18px 0 8px; }
.cat-guide ul { margin: 0 0 12px; padding-left: 1.2em; }
.cat-guide li { margin: 4px 0; }
.cat-guide-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 28px;
  align-items: start;
  margin: 8px 0 24px;
}
.cat-guide-fig { margin: 0; }
.cat-guide-fig img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f4f6f8;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.cat-guide-fig figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}
.cat-guide-table-wrap { overflow-x: auto; margin: 12px 0 24px; }
.cat-guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.cat-guide th, .cat-guide td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.cat-guide th { background: #f6f8fb; font-weight: 600; }
.cat-guide-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 8px;
}
.cat-guide-point {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.cat-guide-point h3 { margin: 0 0 8px; font-size: 16px; }
.cat-guide-point p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.cat-guide-quote {
  color: #123a6d !important;
  font-weight: 600;
  margin-bottom: 8px !important;
}
.cat-lead {
  margin-top: 56px;
  padding: 28px 28px 24px;
  background: #f6f8fb;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.cat-lead h2 { font-size: 22px; margin: 0 0 8px; }
.cat-lead .lead-sub { color: var(--text-muted); margin: 0 0 8px; font-size: 14px; }
.cat-lead .inquiry-form { margin-top: 12px; padding-top: 0; border-top: 0; }
.cat-lead .btn-primary {
  display: inline-flex;
  flex: none;
  width: auto;
  min-width: 160px;
  margin-top: 4px;
}
@media (max-width: 800px) {
  .cat-guide-split,
  .cat-guide-points { grid-template-columns: 1fr; }
}

/* Toolbar */
.catalog-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}
.catalog-sidebar {
  padding: 4px 4px 8px 0;
}
.catalog-sidebar h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.cat-tree-all {
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.cat-tree-group { margin: 0; }
.cat-tree-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 0;
  line-height: 1.3;
}
.cat-tree-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f4f6f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat-tree-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cat-tree-icon-empty {
  font-size: 12px;
  font-weight: 600;
  color: #8a8f94;
}
.cat-tree-children {
  display: none;
  padding: 0 0 6px 36px;
}
.cat-tree-group.is-open .cat-tree-children { display: block; }
.cat-tree-child {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.cat-tree-all:hover,
.cat-tree-parent:hover,
.cat-tree-child:hover { color: var(--text); }
.cat-tree-all.is-on,
.cat-tree-parent.is-on,
.cat-tree-child.is-on {
  color: #123a6d;
  font-weight: 600;
}
.catalog-main .toolbar { margin: 0 0 18px; }
.catalog-main .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
}
.catalog-main .product-card .thumb {
  padding: 10px;
  background: #f5f6f8;
}
.catalog-main .product-cover,
.catalog-main .product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.catalog-main .product-visual {
  width: 70%;
  height: 70%;
  border-radius: 12px;
}
.catalog-main .product-visual .emoji { font-size: 32px; }
.catalog-main .product-card .meta { margin-top: 8px; }
.catalog-main .product-card .name {
  font-size: 13px;
  line-height: 1.35;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 24px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  transition: border-color .15s, background .15s;
  position: relative;
}
.filter-btn:hover,
.filter-btn.open { border-color: #bbb; background: var(--bg-muted); }
.filter-btn.active {
  border-color: var(--border-strong);
  background: #111;
  color: #fff;
}
.filter-btn svg { opacity: .6; }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  padding: 8px;
  display: none;
  z-index: 40;
}
.dropdown.open { display: block; animation: dropIn .18s ease; }
.dropdown.right { left: auto; right: 0; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown button,
.dropdown label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}
.dropdown button:hover,
.dropdown label:hover { background: var(--bg-muted); }
.dropdown .price-row {
  display: flex;
  gap: 8px;
  padding: 8px 12px 12px;
}
.dropdown .price-row input {
  width: 80px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 8px;
  font-size: 13px;
}
.dropdown .apply-row {
  padding: 0 8px 8px;
}
.dropdown .apply-row button {
  background: #111;
  color: #fff;
  justify-content: center;
  font-weight: 500;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}

.product-card {
  display: block;
  group: true;
}
.product-card .thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg-product);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.product-card:hover .thumb {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}
.product-visual {
  width: 72%;
  height: 72%;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-visual { transform: scale(1.04); }
.product-visual .emoji { font-size: 48px; line-height: 1; filter: grayscale(.15); }
.product-visual .badge-color {
  width: 56%;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}

.product-card .meta { margin-top: 14px; }
.product-card .name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.product-card .price {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}
.product-card .oos {
  margin-top: 4px;
  font-size: 12px;
  color: #b45309;
  font-weight: 500;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

/* Detail */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span.sep { opacity: .4; }

.pdp {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--bg-product);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gallery-main .product-visual {
  width: 68%;
  height: 68%;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumbs button {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--bg-product);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: border-color .15s;
}
.gallery-thumbs button.active { border-color: #111; }

.pdp-info h1 {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.pdp-price {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 700;
}
.stock {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--success);
}
.stock.out { color: #b45309; }
.stock-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.stock-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
}
.stock-tag-fast { background: #eef3ef; color: #2f6b4f; }
.stock-tag-hot { background: #e8f1fb; color: #1a5fa8; }
.stock-tag-tight { background: #fff1e6; color: #c2410c; }
.stock-tag-low { background: #fdecea; color: #c0392b; }
.stock-tag-none { background: #ececec; color: #6b6b6b; }
.stock-action {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.stock-action-reserve {
  background: #fff4e5;
  color: #c45c12;
  border: 1px solid #f0c48a;
}
.stock-action-low {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
.stock-action-alert {
  background: #f3f3f3;
  color: #5c5c5c;
  border: 1px solid #ddd;
}
.product-card .meta .stock-tag {
  margin-top: 6px;
}
#homeFeat .product-card .meta .stock-tag {
  height: 22px;
  padding: 0 7px;
  font-size: 11px;
}

.option-label {
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
}
.option-label span { color: var(--text-muted); font-weight: 400; }

.swatches {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  transition: border-color .15s, transform .15s;
}
.swatch:hover { transform: scale(1.05); }
.swatch.active { border-color: #111; }

.buy-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 48px;
  overflow: hidden;
}
.qty button {
  width: 40px;
  height: 100%;
  font-size: 18px;
  color: var(--text);
}
.qty button:disabled { opacity: .3; cursor: default; }
.qty input {
  width: 44px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.btn-primary {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s ease, opacity .15s;
}
.btn-primary:hover { opacity: .88; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .4; cursor: default; }

.pdp-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pdp-section h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.pdp-section p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  font-size: 14px;
}
.props dt { color: var(--text-muted); }
.props dd { font-weight: 500; margin-top: 2px; }

.details-row {
  display: flex;
  gap: 24px;
  font-size: 14px;
  flex-wrap: wrap;
}
.details-row dt { color: var(--text-muted); }
.details-row dd { font-weight: 500; margin-top: 2px; }

/* Cart page */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item .thumb {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: var(--bg-product);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.cart-item .name { font-weight: 600; font-size: 15px; }
.cart-item .meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.cart-item .line-price { font-weight: 700; font-size: 15px; text-align: right; }
.cart-item .remove {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
}
.summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.summary h2 { font-size: 18px; margin-bottom: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}
.summary-row.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
}
.summary .btn-primary { width: 100%; margin-top: 20px; }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 300;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fafafa;
  padding: 56px 24px 32px;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand {
  font-family: var(--display);
  font-size: 28px;
  margin-bottom: 12px;
}
.footer-blurb {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.loading {
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
}

/* Header actions — equal icon row */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  height: 40px;
}
.header-actions .icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}
.header-actions .icon-btn.signed-in {
  color: var(--success);
}
.flag-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  background:
    linear-gradient(#3c3b6e 0 45%, transparent 45%),
    repeating-linear-gradient(#b22234 0 2px, #fff 2px 4px);
}
.flag-dot[data-region="mx"] {
  background: linear-gradient(90deg, #006847 33%, #fff 33% 66%, #ce1126 66%);
}
.flag-dot[data-region="pa"] {
  background:
    linear-gradient(#005293 50%, #fff 50%),
    linear-gradient(90deg, #fff 50%, #d21034 50%);
  background-size: 50% 100%, 100% 50%;
  background-repeat: no-repeat;
  background-position: 0 0, 0 100%;
}
.flag-dot[data-region="cn"] {
  background: linear-gradient(#de2910, #de2910);
}
.cart-hit { position: relative; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cart-count.show { display: inline-flex; }

html.shop-lock,
html.shop-lock body {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

/* Locale / Auth modal */
.shop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.shop-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
}
.shop-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.shop-modal-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.shop-modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.shop-field {
  display: block;
  margin-bottom: 14px;
}
.shop-field span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.shop-field select,
.shop-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  outline: none;
}
.shop-field select:focus,
.shop-field input:focus { border-color: #999; }
.shop-modal-submit {
  width: 100%;
  margin-top: 8px;
  height: 48px;
}
#authModalBackdrop {
  z-index: 11000;
}
.auth-modal-switch {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-modal-switch button {
  color: var(--yl-blue, #0056b3);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tab.active {
  color: var(--text);
  border-bottom-color: #111;
}
.auth-error {
  color: #b42318;
  font-size: 13px;
  margin: 0 0 10px;
}
.auth-welcome {
  font-size: 15px;
  margin: 12px 0 20px;
  line-height: 1.5;
}

/* Cart drawer — Spree-like right sheet + slide */
.shop-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.4,0,.2,1), visibility .2s;
}
.shop-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.shop-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(448px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  transform: translateX(100%);
  transition: transform .2s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.shop-drawer-backdrop.is-open .shop-drawer {
  transform: translateX(0);
}
.shop-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.shop-drawer-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.shop-drawer-head h2 .drawer-bag {
  width: 24px;
  height: 24px;
  color: #6b7280;
  flex-shrink: 0;
}
.shop-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  min-height: 0;
}
.shop-drawer-foot {
  padding: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.shop-drawer-foot .btn-primary {
  width: 100%;
  margin-top: 12px;
}
.cart-empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 280px;
  padding: 32px;
}
.cart-empty-panel .empty-bag {
  width: 64px;
  height: 64px;
  color: #d1d5db;
  margin-bottom: 16px;
}
.cart-empty-panel p {
  font-size: 15px;
  margin-bottom: 16px;
  color: #6b7280;
}
.cart-empty-panel .continue-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.cart-empty-panel .continue-link:hover { opacity: .7; }

.cat-card .thumb img,
.scene-card .art img,
.product-cover,
.gallery-main img,
.gallery-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-card .thumb img {
  object-fit: contain;
  background: #f4f6f8;
}
.scene-card .art img {
  object-fit: contain;
  background: #f4f6f8;
}
.gallery-main img { object-fit: contain; background: #f4f6f8; }

.pdp-tags { margin-top: 16px; }
.pdp-tags .chip {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
}
.rich-body { font-size: 15px; line-height: 1.7; color: var(--text); }
.rich-body img { max-width: 100%; height: auto; }
.rich-body p { margin: 0 0 12px; }

.home-hero {
  background: linear-gradient(135deg, #0f2744 0%, #1c4d7c 55%, #2a6ea3 100%);
  color: #fff;
  padding: 72px 24px 80px;
}
.home-hero-inner { max-width: 1080px; margin: 0 auto; }
.home-kicker { letter-spacing: .12em; font-size: 12px; opacity: .75; text-transform: uppercase; margin-bottom: 10px; }
.home-hero h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; margin: 0 0 12px; }
.home-hero p { max-width: 560px; opacity: .88; font-size: 16px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-hero-actions .btn-primary { flex: none; min-width: 160px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-weight: 600;
}
.home-section { padding-top: 12px; }
.home-h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 6px; }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.scene-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.scene-card .art {
  height: 160px;
  background: #f4f6f8;
}
.scene-card h3 { font-size: 18px; margin: 14px 16px 6px; }
.scene-card p { font-size: 13px; color: var(--text-muted); margin: 0 16px 18px; }
.scene-hero { background: #f6f8fb; padding: 8px 0 24px; border-bottom: 1px solid var(--border); }

@media (max-width: 960px) {
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .scene-grid { grid-template-columns: 1fr; }
}
.drawer-items {
  padding: 0 16px;
}
.drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.drawer-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.drawer-name { font-weight: 600; font-size: 14px; }
.drawer-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.drawer-qty { margin-top: 10px; height: 32px; }
.drawer-qty button { width: 32px; }
.drawer-qty input { width: 36px; font-size: 13px; }
.drawer-remove {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
}
.drawer-line { font-weight: 700; font-size: 14px; }
.drawer-thumb img,
.cart-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.inquiry-kicker {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #123a6d;
}
.product-card .price.muted {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 13px;
}
.swatch.size-swatch {
  width: auto;
  min-width: 44px;
  padding: 0 10px;
  height: 40px;
  font-size: 13px;
  background: #fff;
  border: 1px solid #d4d4d4;
  color: #111;
}
.swatch.size-swatch.active { border-color: #111; background: #111; color: #fff; }
.swatch.size-swatch.oos { opacity: .7; }
.swatch.size-swatch small { display: block; font-size: 10px; font-weight: 400; }
.inquiry-form {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.inquiry-form h2 { font-size: 18px; margin-bottom: 16px; }
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.inquiry-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.inquiry-grid .full { grid-column: 1 / -1; }
.inquiry-grid input, .inquiry-grid textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: #111;
}
.inquiry-hint { margin: 12px 0; font-size: 13px; color: var(--text-muted); }
.inquiry-hint.err { color: #b45309; }
.inquiry-aside { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.inquiry-foot-note { font-size: 12px; color: var(--text-muted); margin: 0 0 8px; line-height: 1.4; }
.inquiry-done { text-align: center; padding: 64px 16px; }
.inquiry-done h2 { font-size: 28px; margin-bottom: 12px; }
.inquiry-done p { color: var(--text-muted); margin-bottom: 24px; }
.inquiry-done .btn-primary { display: inline-flex; width: auto; padding: 0 24px; }
.size-chart { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.size-chart th, .size-chart td { border: 1px solid var(--border); padding: 6px 8px; text-align: center; }
.size-chart th { background: #f7f7f7; }

@media (max-width: 1100px) {
  .catalog-main .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 16px; }
  .catalog-main .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .wholesale-link { display: none; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .catalog-main .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { padding: 0 12px; }
  .search-panel .search-wrap { padding: 0 12px; }
  .page { padding: 24px 16px 64px; }
  .buy-row { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .shop-modal { padding: 20px; }
}

/* Homepage 热销：更小图、一行 6 个、共 12 个 */
.hot-grid.product-grid,
#homeFeat.product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 10px;
  margin-top: 20px;
}
#homeFeat .product-card .thumb {
  aspect-ratio: 1;
  padding: 14px;
  background: #f5f6f8;
}
#homeFeat .product-cover,
#homeFeat .product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#homeFeat .product-visual {
  width: 58%;
  height: 58%;
  border-radius: 10px;
}
#homeFeat .product-visual .emoji { font-size: 22px; }
#homeFeat .product-card .meta { margin-top: 6px; }
#homeFeat .product-card .name {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}
#homeFeat .product-card .price.muted { font-size: 11px; }
#homeFeat .product-card:hover .thumb {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}
@media (max-width: 1100px) {
  #homeFeat.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #homeFeat.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #homeFeat.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
