:root {
  --orange: #ff6a00;
  --orange-dark: #e45f00;
  --orange-soft: #fff4eb;
  --text: #222;
  --muted: #888;
  --line: #e8e8e8;
  --bg: #f5f5f5;
  --card: #fff;
  --blue: #1664ff;
  --gold: #f5a623;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  --max: 1280px;
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: #555;
  cursor: pointer;
}
.linkish:hover { color: var(--orange); }

/* Topbar */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #666;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  gap: 16px;
}
.topbar a, .topbar button { color: #666; margin-left: 14px; }
.topbar-left .sep { margin: 0 8px; color: #ddd; }
.topbar-left button { margin: 0; }

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
}
.logo img { height: 52px; width: auto; }
.search-tabs { display: flex; gap: 16px; margin-bottom: 8px; font-size: 13px; }
.search-tabs button {
  border: 0;
  background: none;
  color: #666;
  cursor: pointer;
  padding: 0 0 4px;
  border-bottom: 2px solid transparent;
}
.search-tabs button.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
  font-weight: 600;
}
.search-box {
  display: flex;
  border: 2px solid var(--orange);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 10px 16px;
  min-width: 0;
}
.search-btn {
  background: var(--orange);
  color: #fff;
  border: 0;
  padding: 0 28px;
  font-weight: 700;
  cursor: pointer;
}
.search-btn:hover { background: var(--orange-dark); }
.header-actions { display: flex; gap: 8px; }
.ha-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: none;
  cursor: pointer;
  color: #444;
  font-size: 12px;
  min-width: 64px;
}
.ha-ico { font-size: 18px; line-height: 1; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 0;
  font-size: 12px;
  color: #888;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .current { color: #555; }

/* Product hero */
.product-hero {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 24px;
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}
.thumbs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
}
.thumbs button.active { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-media {
  position: relative;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.main-media img {
  width: 100%;
  height: 480px;
  object-fit: contain;
  background: #fff;
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nav-btn:hover { background: rgba(0,0,0,.65); }
.nav-btn.prev { left: 12px; }
.nav-btn.next { right: 12px; }
.media-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.supplier-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.supplier-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8a3d, #ff6a00);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.supplier-avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.supplier-name { font-weight: 700; color: #222; }
.supplier-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: #555;
}
.badge img { width: 14px; height: 10px; object-fit: cover; }
.badge.gold {
  background: #fff8e8;
  border-color: #f5d58a;
  color: #b36b00;
  font-weight: 600;
}
.supplier-stats {
  display: flex;
  gap: 16px;
  text-align: center;
  font-size: 11px;
  color: #888;
}
.supplier-stats strong {
  display: block;
  color: #222;
  font-size: 14px;
}
.markets {
  margin: 10px 0 0;
  font-size: 12px;
  color: #888;
}

.product-info h1 {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 650;
}
.reviews-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}
.stars { letter-spacing: 1px; color: #ccc; }
.stars.filled { color: var(--gold); }

.price-box {
  background: linear-gradient(180deg, #fff7f0, #fff);
  border: 1px solid #ffe0c2;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}
.price-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tier {
  text-align: left;
  border: 1px solid #ffd7b0;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
}
.tier.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
  background: var(--orange-soft);
}
.tier .price {
  color: var(--orange);
  font-size: 22px;
  font-weight: 800;
}
.tier .qty { color: #888; font-size: 12px; margin-top: 4px; }
.link-select {
  margin-top: 10px;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.variant-row, .qty-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  font-size: 13px;
}
.variant-row .label, .qty-row .label { color: #888; padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}
.chip.active {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-control button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.qty-control input {
  width: 64px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.key-attrs-mini, .shipping-box {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
}
.key-attrs-mini h3, .shipping-box h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.key-attrs-mini dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
.key-attrs-mini dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  font-size: 13px;
}
.key-attrs-mini dt { color: #888; }
.key-attrs-mini dd { margin: 0; }
.see-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 13px;
}
.shipping-box p { margin: 0; font-size: 13px; color: #555; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.btn.full { width: 100%; }
.btn-orange {
  background: var(--orange);
  color: #fff;
}
.btn-orange:hover { background: var(--orange-dark); }
.btn-outline {
  background: #fff;
  border-color: var(--orange);
  color: var(--orange);
}
.btn-outline:hover { background: var(--orange-soft); }
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: #333;
}
.finance {
  margin-top: 14px;
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.finance-label {
  background: #eef4ff;
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Details */
.details-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin: 20px 0 40px;
}
.details-main {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  background: #fafafa;
}
.tab {
  border: 0;
  background: none;
  padding: 14px 18px;
  cursor: pointer;
  color: #666;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}
.tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
  background: #fff;
}
.tab-panel { display: none; padding: 22px; }
.tab-panel.active { display: block; }
.tab-panel h2 { margin: 0 0 16px; font-size: 20px; }
.tab-panel h3 { margin: 22px 0 12px; font-size: 16px; }
.attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.attr-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.attr-card h4 {
  margin: 0;
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.attr-card table, .lead-table, .spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.attr-card th, .attr-card td,
.lead-table th, .lead-table td,
.spec-table th, .spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.attr-card th { width: 42%; color: #888; font-weight: 500; background: #fcfcfc; }
.lead-table thead th { background: #f7f7f7; text-align: center; }
.lead-table td { text-align: center; }
.lead-table th:first-child, .lead-table td:first-child { text-align: left; }

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: #444;
}
.feature-list li { margin-bottom: 8px; }
.desc-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.desc-gallery img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
  min-height: 220px;
}
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.spec-table th { background: #fafafa; color: #666; width: 20%; }
.spec-table thead th {
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-size: 15px;
}

.related {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.related-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.related-card img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  background: #fafafa;
}
.related-card p {
  margin: 8px 10px 4px;
  font-size: 13px;
  height: 36px;
  overflow: hidden;
}
.related-card span {
  display: block;
  margin: 0 10px 10px;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
}

.company-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.company-head { display: flex; gap: 14px; align-items: center; }
.company-head h3 { margin: 0 0 4px; }
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.company-grid div {
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.company-grid strong { display: block; font-size: 18px; }
.company-grid span { color: #888; font-size: 12px; }

.review-empty { text-align: center; padding: 10px 0 20px; }
.big-stars { font-size: 28px; color: #ddd; letter-spacing: 2px; }
.review-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9eef7;
  color: #456;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
}
.review-meta { font-size: 13px; color: #666; margin-bottom: 4px; }

.details-side { position: relative; }
.sticky-card {
  position: sticky;
  top: 88px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
}
.sticky-price {
  color: var(--orange);
  font-size: 24px;
  font-weight: 800;
}
.sticky-supplier {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* Footer */
.footer {
  background: #2e2e2e;
  color: #bbb;
  margin-top: 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 32px;
  padding: 36px 0;
}
.footer-logo { height: 46px; margin-bottom: 12px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.footer-cols h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.footer-cols a {
  display: block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #444;
  padding: 14px 0;
  font-size: 12px;
  color: #888;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: #888;
}
.modal h3 { margin: 0 0 6px; }
.modal label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-size: 13px;
  color: #666;
}
.modal input, .modal textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: #222;
  resize: vertical;
}

/* Sign in modal */
.signin-modal {
  width: min(420px, 100%);
  padding: 28px 28px 22px;
}
.signin-header {
  text-align: center;
  margin-bottom: 18px;
}
.signin-logo {
  height: 44px;
  margin: 0 auto 14px;
}
.signin-header h3 {
  margin: 0 0 4px;
  font-size: 22px;
}
.signin-header .muted {
  margin: 0;
  font-size: 13px;
}
.signin-error {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.signin-error[hidden] { display: none; }
.signin-field {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  color: #666;
}
.signin-field input {
  height: 44px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: #222;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.signin-field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.15);
}
.signin-field input.invalid {
  border-color: #ff4d4f;
  background: #fffafa;
}
.signin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px;
  font-size: 13px;
}
.signin-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  cursor: pointer;
}
.signin-link {
  color: var(--blue);
  font-size: 13px;
}
.signin-link:hover { color: var(--orange); }
.signin-footer {
  text-align: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #666;
}
#signInSubmit {
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
}
#signInSubmit.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.register-modal { width: min(460px, 100%); }
.register-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.register-names .signin-field { margin-bottom: 14px; }
.register-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 14px 0 18px;
  font-size: 13px;
  color: #666;
}
.register-terms-inline {
  align-items: flex-start;
  max-width: 240px;
  line-height: 1.35;
}
.register-terms-inline input { margin-top: 2px; }

/* Fake Google reCAPTCHA */
.recaptcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 12px 14px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  cursor: pointer;
  user-select: none;
}
.recaptcha-box:hover { border-color: #bdbdbd; }
.recaptcha-box:focus { outline: 2px solid rgba(66,133,244,.45); outline-offset: 1px; }
.recaptcha-box.is-error {
  border-color: #d93025;
  box-shadow: 0 0 0 1px #d93025;
}
.recaptcha-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.recaptcha-check {
  width: 28px;
  height: 28px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
}
.recaptcha-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #4285f4;
  border-top-color: transparent;
  border-radius: 50%;
  animation: rc-spin .7s linear infinite;
}
.recaptcha-tick {
  width: 22px;
  height: 22px;
}
.recaptcha-label {
  font-size: 14px;
  color: #202124;
}
.recaptcha-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 70px;
}
.recaptcha-logo {
  width: 32px;
  height: 32px;
  position: relative;
}
.rc-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.rc-blue { background: #4285f4; left: 4px; top: 4px; }
.rc-red { background: #ea4335; right: 4px; top: 6px; width: 10px; height: 10px; }
.rc-yellow { background: #fbbc05; left: 8px; bottom: 4px; width: 11px; height: 11px; }
.rc-green { background: #34a853; right: 6px; bottom: 6px; width: 9px; height: 9px; }
.recaptcha-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 8px;
  color: #555;
  line-height: 1.2;
}
.recaptcha-brand-text strong {
  font-size: 10px;
  color: #555;
  font-weight: 700;
}
.recaptcha-hint {
  margin: 8px 0 0;
  color: #d93025;
  font-size: 12px;
}
.recaptcha-hint[hidden] { display: none; }

@keyframes rc-spin {
  to { transform: rotate(360deg); }
}

/* Infinite challenge panel — Google reCAPTCHA style */
.captcha-backdrop {
  z-index: 110;
  background: rgba(0,0,0,.35);
}
.captcha-panel {
  width: min(304px, calc(100% - 24px));
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  overflow: hidden;
  border: 1px solid #d3d3d3;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}
.captcha-panel-head {
  display: block;
  padding: 24px 24px 20px;
  background: #4a90e2;
  color: #fff;
}
.captcha-kicker {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 1;
}
.captcha-panel-head h3 {
  margin: 2px 0 0;
  font-size: 28px;
  font-weight: 400;
  text-transform: none;
  line-height: 1.15;
}
.captcha-sub {
  margin-top: 8px;
  font-size: 12px;
  opacity: .95;
}
.captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 7px;
  background: #fff;
}
.captcha-cell {
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #e8eaed;
}
.captcha-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform .12s ease;
}
.captcha-cell.selected img {
  transform: scale(0.82);
}
.captcha-cell.selected::after {
  content: none;
}
.captcha-cell.selected::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  background: #4a90e2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.captcha-panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 4px;
  border-top: 1px solid #f0f0f0;
  min-height: 52px;
}
.captcha-tools { display: flex; gap: 0; align-items: center; }
.captcha-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}
.captcha-icon-btn:hover { background: #f1f3f4; }
.captcha-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.captcha-skip {
  border: 0;
  background: transparent;
  color: #555;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 2px;
}
.captcha-skip:hover { background: #f5f5f5; }
.captcha-verify {
  border: 0;
  border-radius: 2px;
  padding: 10px 16px;
  min-width: 88px;
  background: #4a90e2;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
}
.captcha-verify:hover { background: #3b7dd8; }
.captcha-fail {
  color: #d93025;
  font-size: 12px;
  padding: 0 10px 6px;
  margin: 0;
}
.captcha-fail[hidden] { display: none; }

.signin-footer .linkish.signin-link {
  display: inline;
  color: var(--blue);
  font-size: 13px;
  margin-left: 4px;
}
.signin-footer .linkish.signin-link:hover { color: var(--orange); }
#registerSubmit {
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
}
#registerSubmit.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

@media (max-width: 520px) {
  .register-names { grid-template-columns: 1fr; gap: 0; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.82);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 120;
  font-size: 14px;
}
.toast[hidden] { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .product-hero { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }
  .details-layout { grid-template-columns: 1fr; }
  .details-side { display: none; }
  .attr-grid, .related, .company-grid, .footer-inner, .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .header-inner { grid-template-columns: 1fr; gap: 12px; }
  .header-actions { justify-content: space-between; }
  .supplier-strip { grid-template-columns: auto 1fr; }
  .supplier-stats { grid-column: 1 / -1; justify-content: space-between; width: 100%; }
  .variant-row, .qty-row, .key-attrs-mini dl > div { grid-template-columns: 1fr; }
  .price-tiers, .desc-gallery, .attr-grid, .related, .company-grid, .footer-cols, .footer-inner {
    grid-template-columns: 1fr;
  }
  .main-media img { height: 320px; }
  .main-media { min-height: 320px; }
  .topbar-right { display: none; }
}
