:root {
  color-scheme: light;
  --primary-color: #e67600;
  --primary-dark: #ea580c;
  --primary-button-text: #111827;
  --secondary-color: #64748b;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1e293b;
  --light-color: #ffffff;
  --border-color: #e2e8f0;
  --text-color: #334155;
  --text-muted: #64748b;
  --primary-text-color: #c2410c;
  --brand-text-color: #ea580c;
  --focus-ring-color: #9a3412;
  --layout-top-bg: #ffffff;
  --layout-main-bg: #f1f5f9;
  --layout-footer-bg: #ffffff;
  --footer-text-color: #111827;
  --hstore-bg: #f1f5f9;
  --hstore-surface-bg: #ffffff;
  --hstore-surface-soft: #ffffff;
  --hstore-surface-raised: #f1f5f9;
  --hstore-surface-border: #e2e8f0;
  --hstore-surface-border-strong: #cbd5e1;
  --hstore-button-start: #ed8b25;
  --hstore-button-end: #e67600;
  --hstore-button-hover-start: #e7831c;
  --hstore-button-hover-end: #dc7000;
  --hstore-button-active-start: #de7510;
  --hstore-button-active-end: #d36b00;
  --hstore-button-ink: #111827;
  --hstore-button-focus: #974700;
  --price-color: #ea7600;
  --hero-surface: #f8fafc;
  --hero-border: #dfe5ec;
  --hero-copy: #475569;
  --card-border: #e8edf3;
  --title-color: #334155;
  --seller-color: #475569;
  --stock-color: #607089;
  --search-ink: #0f172a;
  --img-ph: #f3f8fd;
  --login-color: rgba(0, 0, 0, 0.65);
  --product-price: #172033;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 8px;
  --shadow-nav: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-hero: 0 10px 26px rgba(15, 23, 42, 0.045);
  --shadow-card: 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow-icon: 0 2px 8px rgba(0, 0, 0, 0.1);
  --promote-a: #d9bb40;
  --promote-b: #ead36f;
  --promote-c: #c9a92f;
}
[data-theme="dark"] {
  color-scheme: dark;
  --primary-color: #ffb86b;
  --primary-dark: #ffd199;
  --primary-button-text: #111827;
  --secondary-color: #c7cbd1;
  --success-color: #34d399;
  --warning-color: #facc15;
  --danger-color: #f87171;
  --dark-color: #f4f4f5;
  --light-color: #24262d;
  --border-color: #6b7280;
  --text-color: #f4f4f5;
  --text-muted: #c7cbd1;
  --primary-text-color: #ffb86b;
  --brand-text-color: #ffb86b;
  --focus-ring-color: #facc15;
  --layout-top-bg: #18181b;
  --layout-main-bg: #121212;
  --layout-footer-bg: #18181b;
  --footer-text-color: #f4f4f5;
  --hstore-bg: #121212;
  --hstore-surface-bg: #1b1b1f;
  --hstore-surface-soft: #24262d;
  --hstore-surface-raised: #2f333d;
  --hstore-surface-border: #6b7280;
  --hero-surface: #18181b;
  --hero-border: #3f4653;
  --hero-copy: #c7cbd1;
  --card-border: #6b7280;
  --title-color: #f4f4f5;
  --seller-color: #cbd5e1;
  --stock-color: #c7cbd1;
  --search-ink: #f4f4f5;
  --img-ph: #2f333d;
  --login-color: #c7cbd1;
  --product-price: #f4f4f5;
  --price-color: #ffb86b;
  --hstore-button-focus: #ffb86b;
  --shadow-nav: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-hero: 0 16px 36px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 22px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { font-family: var(--font); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-color);
  background: var(--layout-main-bg);
}
a { color: var(--brand-text-color); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
html, body { overflow-x: hidden; max-width: 100%; }
.topbar { display: flex; flex-direction: column; }
.preview-banner {
  background: #fff7ed;
  color: #c2410c;
  border-bottom: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 6px 12px;
  line-height: 1.35;
}
[data-theme="dark"] .preview-banner { background: #3b2a14; color: #ffb86b; border-bottom-color: #6b7280; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--layout-top-bg);
  box-shadow: var(--shadow-nav);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 67px;
  padding: 8px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e67600;
  text-decoration: none;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 24px;
  line-height: 36px;
}
.brand:hover { text-decoration: none; color: #e67600; }
[data-theme="dark"] .brand, [data-theme="dark"] .brand:hover { color: #ffb86b; }
.brand-logo, .brand .brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 36px;
}
.brand .name { letter-spacing: -0.045em; color: #e67600; font-weight: 800; }
[data-theme="dark"] .brand .name { color: #ffb86b; }
.brand-footer { margin-bottom: 16px; }
.brand .pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  line-height: 1.3;
}
[data-theme="dark"] .brand .pill { background: #3b2a14; color: #ffb86b; }

.search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  max-width: 500px;
  height: 52px;
  background: var(--hstore-surface-raised);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--search-ink);
  padding: 0 16px;
  font: 400 15.2px/22.8px var(--font);
  outline: none;
  min-width: 0;
}
.search button, .search .search-ico {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  color: var(--login-color);
  font-weight: 400;
  font-size: 18.4px;
  line-height: 27.6px;
  padding: 8px;
  text-decoration: none;
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: var(--text-color); text-decoration: none; }
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text-color);
  width: 33px;
  height: 39px;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: var(--hstore-surface-raised); }
.menu-toggle { display: none; width: 50px; height: 50px; }
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 160px;
  background: var(--hstore-surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  padding: 6px 0;
  z-index: 50;
}
.dropdown.open .dropdown-menu, .dropdown-menu.show { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 16px;
  border: 0;
  background: transparent;
  color: var(--text-color);
  font: 400 16px/24px var(--font);
  cursor: pointer;
  text-decoration: none;
}
.dropdown-menu a.active, .dropdown-menu a:hover, .dropdown-menu button:hover {
  background: var(--hstore-surface-raised);
}
.mobile-panel,
.mobile-panel[hidden] {
  display: none !important;
}
.mobile-panel.open {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  padding: 8px 0 16px;
  border-top: 1px solid var(--border-color);
  background: var(--layout-top-bg);
}
.mobile-panel a, .mobile-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  text-align: left;
  padding: 10px 8px;
  background: none;
  border: 0;
  color: var(--login-color);
  font: 400 18.4px/27.6px var(--font);
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
}
.mobile-panel .btn { justify-content: center; margin: 8px 12px; width: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--hstore-button-end);
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  padding: 10px 20px;
}
.btn:hover { text-decoration: none; }
.btn-primary, .btn-buy {
  background: var(--hstore-button-end) linear-gradient(180deg, var(--hstore-button-start), var(--hstore-button-end)) border-box no-repeat;
  border-color: var(--hstore-button-end);
  color: var(--hstore-button-ink);
}
.btn-primary:hover, .btn-buy:hover {
  background: var(--hstore-button-hover-end) linear-gradient(180deg, var(--hstore-button-hover-start), var(--hstore-button-hover-end)) border-box no-repeat;
  border-color: var(--hstore-button-hover-end);
  color: var(--hstore-button-ink);
}
.btn-sm { padding: 10px 20px; font-size: 14px; line-height: 21px; }
.btn-lg { padding: 10px 24px; font-size: 20px; line-height: 30px; min-height: 52px; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-text-color);
  color: var(--primary-text-color);
}
.btn-outline:hover { background: rgba(194, 65, 12, 0.06); color: var(--primary-text-color); text-decoration: none; }

.main { flex: 1 1 auto; padding-top: 24px; }

/* Hero */
.hero { margin: 0 0 32px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  background: var(--hero-surface);
  border: 1px solid var(--hero-border);
  border-radius: 8px;
  box-shadow: var(--shadow-hero);
  padding: 32px;
}
.hero h1 {
  margin: 0 0 16px;
  max-width: 640px;
  color: var(--dark-color);
  font-weight: 700;
  font-size: 33.6px;
  line-height: 43px;
}
.hero .lead {
  margin: 0 0 24px;
  max-width: 620px;
  color: var(--hero-copy);
  font-size: 16px;
  line-height: 27.2px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.hero-art .hi {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.hero-art .hi img, .hero-art .hi svg { width: 28px; height: 28px; display: block; }
[data-theme="dark"] .hero-art .hi { background: #fff; }

/* Sections */
.page-section { margin: 0 0 32px; }
.cat-panel {
  background: #fff;
  border-radius: 8px;
  padding: 24px 12px;
}
[data-theme="dark"] .cat-panel { background: var(--hstore-surface-bg); }
.cat-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; padding: 0 4px; }
.section-head h2 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 700; color: var(--dark-color); flex: 1 1 auto; min-width: 0; }
.section-head a { font-weight: 600; font-size: 14px; color: var(--brand-text-color); flex: 0 0 auto; white-space: nowrap; }
.section-head a.muted-link { color: #64748b; font-weight: 500; }
[data-theme="dark"] .section-head a.muted-link { color: var(--text-muted); }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 6px;
  justify-items: center;
}
.quick-icon {
  width: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}
.quick-icon:hover { text-decoration: none; transform: translateY(-2px); }
.quick-icon .glyph, .quick-icon .quick-icon-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 6px;
}
.quick-icon .quick-icon-img svg, .quick-icon .glyph svg { width: 32px; height: 32px; display: block; }
.quick-icon .label { font-size: 12px; line-height: 1.2; font-weight: 500; text-align: center; color: #666; word-break: break-word; }
[data-theme="dark"] .quick-icon .label { color: #d7dce4; }
[data-theme="dark"] .quick-icon .glyph, [data-theme="dark"] .quick-icon .quick-icon-img { background: #fff; }

/* Product cards — price + button side by side, promoted gold border */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 16px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 14px 14px 58px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
[data-theme="dark"] .product-card { background: var(--hstore-surface-bg); }
.product-card.promoted {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--hstore-surface-bg), var(--hstore-surface-bg)), linear-gradient(135deg, var(--promote-a), var(--promote-b) 50%, var(--promote-c));
  background-origin: border-box, border-box;
  background-clip: padding-box, border-box;
}
.product-card:not(.promoted):hover { border-color: var(--primary-color); }
.product-card .img-wrap {
  position: relative;
  display: block;
  height: 88px;
  margin: 0 0 12px;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}
.product-card .img-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background: var(--img-ph);
  transform: translate(-50%, -50%);
  z-index: 0;
}
.product-card .img-wrap img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.ph {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #64748b;
}
.shield {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #ea7600;
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.wishlist {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}
.product-card .title { margin: 0 0 8px; font-size: 13.12px; line-height: 17.06px; font-weight: 600; }
.product-card .title a {
  color: var(--title-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  font-weight: 600;
}
.product-card:hover .title a { color: var(--primary-text-color); }
.seller {
  color: var(--seller-color);
  font-size: 11.2px;
  line-height: 11.2px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  padding: 3px 5px;
  border-radius: 6px;
  text-decoration: none;
}
.seller .ui-ico { color: #ea7600; flex: 0 0 auto; }
.rating { display: flex; align-items: center; gap: 4px; font-size: 11.84px; line-height: 11.84px; font-weight: 700; color: var(--text-muted); margin: 0 0 8px; }
.star { color: #e6b52a; }
.stock { font-size: 12.16px; line-height: 15.2px; color: var(--stock-color); margin: 0; display: flex; align-items: center; gap: 8px; }
.stock-label { display: inline-flex; align-items: center; gap: 4px; color: var(--stock-color); }
.stock-qty { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.stock-qty::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 999px; background: #22c55e; }
.stock .dot { width: 6px; height: 6px; border-radius: 999px; background: #22c55e; flex: 0 0 6px; }
.price-info {
  position: absolute;
  left: 14px;
  bottom: 18px;
  color: #64748b;
  font-size: 12.16px;
  line-height: 1;
}
.price-info > span { display: none; }
.price-info strong { color: var(--price-color) !important; font-size: 18px; line-height: 18px; font-weight: 700; display: block; }
.card-footer {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}
.btn-buy {
  height: 32px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 12.16px;
  line-height: 32px;
  font-weight: 500;
  border-width: 0;
}
.view-label-short { display: none; }

/* Features + sellers */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-row > div, .seller-card {
  background: var(--hstore-surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.feature-row h3 { margin: 0 0 8px; font-size: 16px; color: var(--dark-color); }
.feature-row p { margin: 0; color: var(--text-muted); font-size: 14px; }
.seller-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.seller-card { text-align: center; text-decoration: none; color: inherit; padding: 16px 10px; }
.seller-card:hover { text-decoration: none; border-color: var(--primary-color); }
.seller-card .av {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px;
  background: #fff7ed; color: #c2410c; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.seller-card .nm { font-weight: 700; font-size: 14px; color: var(--dark-color); }
.seller-card .meta { font-size: 12px; color: var(--text-muted); }
.seo-block { padding: 8px 4px 16px; color: var(--hero-copy); }
.seo-block h2 { color: var(--dark-color); font-size: 22px; }

/* Browse */
.page-shell { padding: 8px 0 40px; }
.browse-head h1 { margin: 0 0 8px; font-size: 24px; line-height: 28.8px; font-weight: 700; color: var(--text-color); }
.browse-head .muted { color: var(--text-muted); margin: 0 0 16px; font-size: 14px; }
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 24px;
}
.toolbar label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.toolbar input, .toolbar select {
  height: 44px;
  border: 1px solid #dde6f0;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font: 400 14px/19.6px var(--font);
  padding: 10px 16px;
  min-width: 7rem;
}
.toolbar input[type="search"] { padding-left: 16px; }
[data-theme="dark"] .toolbar input, [data-theme="dark"] .toolbar select {
  background: var(--hstore-surface-bg); color: var(--text-color); border-color: var(--border-color);
}
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a, .pager strong, .pager span {
  min-width: 2rem; text-align: center; padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--border-color); background: var(--hstore-surface-bg); color: var(--text-color); text-decoration: none; font-size: 14px;
}
.pager strong { background: var(--primary-color); color: var(--hstore-button-ink); border-color: transparent; }
.empty { padding: 40px 0; text-align: center; }

/* Product page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-muted); margin: 0 0 16px; }
.crumbs a { color: var(--text-muted); }
.crumbs .current { color: var(--text-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-hero { display: grid; grid-template-columns: 0.42fr 0.58fr; gap: 20px; align-items: start; }
.media, .buy-col, .desc-card {
  background: var(--hstore-surface-bg);
  border: 1px solid #e1e7ef;
  border-radius: 12px;
}
.media { overflow: hidden; }
.media img { width: 100%; display: block; background: var(--img-ph); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; }
.facts div { text-align: center; }
.facts strong { display: block; color: var(--dark-color); }
.facts span { font-size: 13px; color: var(--text-muted); }
.buy-col { padding: 20px 22px 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--hstore-surface-raised); color: var(--text-color);
}
.badge-instant { background: #ecfdf3; color: #166534; }
.badge-ok { background: #dcfce7; color: #166534; }
.buy-col h1 { margin: 0 0 12px; font-size: 27.14px; line-height: 35.28px; font-weight: 700; color: #000; }
[data-theme="dark"] .buy-col h1 { color: #f4f4f5; }
.short { color: var(--text-muted); margin: 0 0 12px; }
.seller-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.price-label { font-size: 13px; color: var(--text-muted); }
.price-lg { font-size: 40.8px; line-height: 44.88px; font-weight: 700; color: var(--product-price); letter-spacing: -0.02em; }
.stock-pill { margin: 6px 0 12px; font-size: 14px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.tier { border: 1px solid var(--border-color); border-radius: 8px; padding: 8px; text-align: center; }
.tier span { display: block; font-size: 12px; color: var(--text-muted); }
.soon-note { color: var(--text-muted); font-size: 13px; margin: 10px 0 0; }
.desc-card { margin: 24px 0 40px; padding: 0; overflow: hidden; }
.desc-card .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-color); padding: 0 8px; }
.desc-card .tabs a, .desc-card .tabs span {
  padding: 12px 16px; font-weight: 600; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent;
}
.desc-card .tabs .on { color: var(--dark-color); border-bottom-color: var(--primary-color); }
.desc-body { padding: 20px 22px; overflow-wrap: anywhere; }
.product-mobile-buybar {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 11.2px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}
[data-theme="dark"] .product-mobile-buybar { background: rgba(27, 27, 31, 0.96); }

/* Footer */
.footer {
  background: var(--layout-footer-bg);
  border-top: 1px solid var(--border-color);
  color: var(--footer-text-color);
  padding: 32px 0 0;
  font-size: 16px;
  margin-top: auto;
}
.footer a { color: var(--footer-text-color); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
.footer-brand-col p { color: var(--footer-text-color); margin: 0 0 12px; }
.footer h3, .footer .fw { font-weight: 700; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; }
.footer-policies { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; }
.footer-policies .lab { font-weight: 700; margin-right: 8px; }
.footer-trust {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background: var(--hstore-surface-raised); border-radius: 8px; padding: 12px 16px; margin: 8px 0 16px;
}
.footer-copy { border-top: 1px solid var(--border-color); padding: 16px 0; display: flex; justify-content: space-between; }

/* Auth */
body.auth-body { background: #f7f8fa; }
[data-theme="dark"] body.auth-body { background: #121212; }
.auth-site-header { background: transparent; padding: 16px 20px; }
.auth-site-header__inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.auth-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 48px; }
.auth-card { width: 100%; max-width: 480px; }
.auth-card h1 { margin: 0 0 8px; font-weight: 650; font-size: 30px; line-height: 36px; color: #202b38; }
[data-theme="dark"] .auth-card h1 { color: #f4f4f5; }
.auth-card .sub { color: #5b6b7c; margin: 0 0 24px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: #202b38; }
.auth-card input[type="text"], .auth-card input[type="email"], .auth-card input[type="password"] {
  width: 100%; height: 50px; padding: 12px 14px; border: 1px solid #8793a2; border-radius: 6px;
  background: #fff; font: 400 16px/24px var(--font); color: #202b38; margin-bottom: 14px;
}
.auth-card .btn { width: 100%; height: 50px; border-radius: 6px; font-size: 15px; font-weight: 500; }
.auth-card .check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0 0 16px; }
.auth-alt { text-align: center; margin-top: 16px; color: #5b6b7c; }
.auth-foot { text-align: center; padding: 16px; font-size: 13px; color: #5b6b7c; }
.auth-foot a { color: #5b6b7c; margin: 0 8px; }
.field-error, .form-banner { display: none; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
.field-error.show, .form-banner.show { display: block; }

.legal { max-width: 760px; margin: 0 auto 48px; background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 28px; }
.legal h1 { margin: 0 0 12px; color: var(--dark-color); }
.soon-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 80; padding: 16px;
}
.soon-dialog { max-width: 28rem; background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; }

@media (max-width: 992px) {
  .hero-inner, .product-hero, .feature-row, .cat-groups, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .seller-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 700px) {
  .topbar-inner { gap: 8px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .brand { font-size: 20px; }
  .search { display: none; }
  .tools .nav-link, .tools .btn-sm, .tools .dropdown, .tools .theme-toggle { display: none; }
  .menu-toggle {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  }
  [data-theme="dark"] .menu-toggle { background: var(--hstore-surface-bg); border-color: var(--border-color); color: var(--text-color); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 12px 12px 54px; min-height: 220px; }
  .product-card .img-wrap, .product-card .img-wrap img, .ph { height: 82px; }
  .product-card .title { font-size: 12.16px; line-height: 15.81px; }
  .seller { font-size: 10.24px; }
  .rating { font-size: 10.72px; }
  .stock { font-size: 10.88px; line-height: 13.6px; }
  .price-info { left: 12px; bottom: 16px; }
  .price-info strong { font-size: 16px; line-height: 16px; }
  .card-footer { right: 12px; bottom: 12px; }
  .btn-buy { padding: 0 14px; font-size: 11.52px; min-width: 64px; }
  .view-label-full { display: none; }
  .view-label-short { display: inline; }
  .hero { margin-bottom: 24px; }
  .hero-inner { padding: 24px 16px; }
  .hero h1 { font-size: 23.2px; line-height: 30.6px; }
  .hero .lead { margin-bottom: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-lg { font-size: 16px; line-height: 19.2px; padding: 12.48px 16px; width: 100%; }
  .quick-grid { grid-template-columns: repeat(5, 1fr); }
  .seller-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .browse-price { grid-column: 1 / -1; }
  .browse-head h1 { font-size: 21.6px; line-height: 25.92px; }
  .buy-col h1 { font-size: 20px; line-height: 26px; }
  .price-lg { font-size: 32px; line-height: 35.2px; }
  .product-mobile-buybar { display: flex; }
  .product-page { padding-bottom: 110px; }
  .footer-copy { flex-direction: column; text-align: center; gap: 8px; }
  .main { padding-top: 16px; }
}


/* —— layout match pass v5 —— */
.ui-ico { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.lang-flag { display: inline-block; vertical-align: middle; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15,23,42,0.08); }
.btn-outline { font-weight: 700; }
.hero-art {
  display: block;
  position: relative;
  min-height: 280px;
}
.social-icons-float { position: relative; height: 280px; }
.hero-brand-logo-position { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hero-brand-logo-shell { display: grid; place-items: center; width: 144px; height: 144px; }
.hero-brand-logo-shell .brand-logo, .hero-brand-logo-shell svg {
  width: 104px;
  height: 104px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(230,118,0,0.18));
}
.hero-platform-icon {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; text-decoration: none; color: inherit;
}
.hero-platform-icon-surface {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: transparent;
}
.hero-platform-icon-surface svg { width: 28px; height: 28px; display: block; }
.hero-platform-twitter { top: 18px; left: 22%; }
.hero-platform-tiktok { top: 96px; left: 7%; }
.hero-platform-google { bottom: 14px; left: 21%; }
.hero-platform-telegram { bottom: 4px; left: 45%; }
.hero-platform-instagram { top: 16px; right: 20%; }
.hero-platform-youtube { top: 88px; right: 5%; }
.hero-platform-discord { bottom: 20px; right: 16%; }
.hero-platform-icon:hover .hero-platform-icon-surface { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 5px 7px rgba(15,23,42,0.16)); }

.seller-grid-five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.seller-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; text-decoration: none; color: inherit;
  padding: 24px 12px 20px; background: #fff; border: 1px solid #e8edf3;
  border-radius: 8px; box-shadow: 0 8px 22px rgba(15,23,42,0.06);
  min-height: 220px;
}
[data-theme="dark"] .seller-card { background: var(--hstore-surface-bg); border-color: var(--border-color); }
.seller-card:hover { text-decoration: none; border-color: var(--primary-color); }
.seller-card .av {
  width: 80px; height: 80px; border-radius: 50%;
  background: #fff3e6; color: #c2410c; font-weight: 700; font-size: 28px;
  display: grid; place-items: center; margin: 0 auto 12px;
}
.seller-card .nm { font-weight: 700; font-size: 16px; color: var(--dark-color); display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 8px; }
.elite-mark { color: #c9a92f; font-size: 12px; }
.badge-elite {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(180deg, #ead36f, #c9a92f); color: #3b2f08;
  font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 10px;
}
.badge-ok { background: #16a34a; color: #fff; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 10px; }
.seller-stars { margin-top: 10px; color: #e6b52a; font-size: 14px; }
.seller-stars .rating-number { color: var(--text-muted); font-weight: 500; }
.seller-card .meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: #fff; border: 1px solid #e8edf3; border-radius: 8px;
  padding: 24px 20px; box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}
[data-theme="dark"] .feature-card { background: var(--hstore-surface-bg); border-color: var(--border-color); }
.feature-ico { display: inline-flex; color: #e67600; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--dark-color); }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

.browse-title-row { display: flex; align-items: center; gap: 10px; }
.browse-category-icon { width: 36px; height: 36px; display: grid; place-items: center; }
.browse-category-icon svg { width: 28px; height: 28px; }
.toolbar { grid-template-columns: minmax(180px,1.2fr) minmax(160px,0.8fr) auto; }
.browse-search-field {
  position: relative; display: flex; align-items: center;
}
.browse-search-field .ui-ico { position: absolute; left: 12px; color: #8793a2; pointer-events: none; }
.browse-search-field input { padding-left: 36px !important; width: 100%; }
.browse-price { display: flex; align-items: end; gap: 8px; }
.browse-price-separator { padding-bottom: 12px; color: #8793a2; font-size: 18px; }
.browse-price .btn { height: 44px; min-width: 88px; border-radius: 8px; flex: 0 0 auto; }

/* Product page layout */
.product-media-visual { position: relative; padding: 20px 16px; background: #fff; border-radius: 8px; }
.product-media-visual img, .media > img, .product-media-visual .ph.big {
  width: 100%; max-height: 280px; object-fit: contain; border-radius: 16px; background: #f8fafc;
}
.product-main-fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #e8edf3; color: #64748b; }
.product-media-insights { padding: 8px 8px 16px; }
.product-media-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; padding: 8px 0 16px; }
.product-media-fact { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.product-media-fact strong { font-size: 18px; color: var(--dark-color); }
.product-media-fact span { font-size: 12px; color: var(--text-muted); }
.fact-ico { color: #e67600; font-size: 18px; margin-bottom: 4px; }
.stock-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f1f5f9; border: 1px solid #e8edf3; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; color: #334155; margin: 8px 0 12px;
}
.stock-pill .dot, .stock-pill .tiered-stock-dot { width: 6px; height: 6px; border-radius: 999px; background: #22c55e; display: inline-block; }
.buy-col .price-label { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.product-protection-card {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid #e8edf3; border-radius: 8px; padding: 14px; margin-top: 16px;
  background: #f8fafc;
}
.product-protection-card .protect-ico { color: #e67600; margin-top: 2px; }
.product-protection-card p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.protect-mobile { display: none; }
.buyer-note { margin-top: 12px; }
.product-seller-info { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; }
.seller-avatar-placeholder {
  width: 48px; height: 48px; border-radius: 50%; background: #fff3e6; color: #c2410c;
  display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: 0 0 auto;
}
.seller-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mobile-only { display: none; }
.desktop-only { display: block; }
.mobile-seller-card { background: #fff; border: 1px solid #e8edf3; border-radius: 8px; padding: 14px 16px; margin: 16px 0; }
.related { margin: 32px 0; }
.related h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; color: var(--dark-color); }

/* Auth extras */
.google-auth-btn {
  width: 100%; height: 50px; border: 1px solid #d0d7de; border-radius: 6px;
  background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 15px var(--font); color: #202b38; cursor: pointer; margin-bottom: 16px;
}
.google-auth-divider { display: flex; align-items: center; gap: 12px; color: #8793a2; font-size: 13px; margin: 0 0 16px; }
.google-auth-divider::before, .google-auth-divider::after { content: ""; flex: 1; height: 1px; background: #e8edf3; }
.auth-field-heading { display: flex; justify-content: space-between; align-items: baseline; }
.auth-field-heading a { font-size: 13px; }
.auth-password-field { position: relative; }
.auth-password-field input { width: 100%; }
.auth-password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-70%);
  border: 0; background: transparent; color: #8793a2; cursor: pointer; width: 32px; height: 32px;
}
.auth-password-toggle::before { content: "👁"; font-size: 16px; }

@media (max-width: 992px) {
  .seller-grid-five { grid-template-columns: repeat(3, 1fr); }
  .desktop-only, .product-media-insights { display: none !important; }
  .mobile-only { display: grid; }
  .mobile-seller-card.mobile-only { display: block; }
  .protect-full { display: none; }
  .protect-mobile { display: block; }
  .buy-col .badges { display: none; }
  .buy-col .price-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 700px) {
  .seller-grid-five { grid-template-columns: repeat(2, 1fr); }
  .product-media-visual img, .media > img, .product-media-visual .ph.big { max-height: 220px; }
}

@media (max-width: 992px) {
  .hero-art { display: none !important; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-card { border-right: 0; border-bottom: 1px solid #e8edf3; }
  .feature-card:last-child { border-bottom: 0; }
}
.feature-row {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  padding: 8px 0;
  gap: 0;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}
[data-theme="dark"] .feature-row { background: var(--hstore-surface-bg); border-color: var(--border-color); }
.feature-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-right: 1px solid #e8edf3 !important;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.feature-card:last-child { border-right: 0 !important; }
.feature-ico { margin-bottom: 0; margin-top: 2px; }
.browse-price { flex-wrap: nowrap; }
.browse-price label { flex: 1 1 0; min-width: 0; }
.browse-price input { width: 100%; box-sizing: border-box; }
.browse-price .btn { height: 44px; min-width: 72px; padding: 0 14px; margin-bottom: 0; }
.seller-copy .badge, .product-seller-info .badge-ok { width: fit-content; display: inline-flex; }
.star.empty { color: #e2e8f0; }


/* —— mobile header lock v20261116m —— */
.mobile-panel,
.mobile-panel[hidden] { display: none !important; }
.mobile-panel.open { display: flex !important; }
.topbar-inner { width: 100%; box-sizing: border-box; }
.tools { flex: 0 0 auto; flex-wrap: nowrap; }
@media (max-width: 991.98px) {
  .search { display: none !important; }
  .tools .nav-link, .tools .btn-sm, .tools .dropdown, .tools .theme-toggle { display: none !important; }
  .menu-toggle {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    flex: 0 0 auto;
  }
  [data-theme="dark"] .menu-toggle { background: var(--hstore-surface-bg); border-color: var(--border-color); color: var(--text-color); }
  .topbar-inner { min-height: 60px; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .section-head h2 { font-size: 16px; line-height: 20px; }
  .section-head a, .section-head a.muted-link { font-size: 13px; white-space: nowrap; }
}

.mobile-panel a.btn,
.mobile-panel a.btn-primary,
.mobile-panel .btn.btn-primary {
  display: inline-flex !important;
  justify-content: center;
  width: calc(100% - 0px);
  margin: 8px 0 4px;
  min-height: 44px;
  color: var(--hstore-button-ink) !important;
  background: var(--hstore-button-end) linear-gradient(180deg, var(--hstore-button-start), var(--hstore-button-end)) border-box no-repeat !important;
  border: 1px solid var(--hstore-button-end);
  border-radius: 8px;
}

.container.topbar-inner,
.topbar-inner.container,
.topbar .container {
  padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
}
.topbar .container.topbar-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}
