/* socico.cn — design system (Karto-derived), 2026-12 */
@import url("/static/css/fonts.css");

:root {
  --theme: #ff6633;
  --theme-hover: #e8551f;
  --theme-soft: #fff1ec;
  --ink: #010f1c;
  --ink-2: #0b1b28;
  --text: #55585b;
  --muted: #8a8f94;
  --line: #e7e7e7;
  --border: rgba(118, 118, 118, .3);
  --bg: #f7f7f7;
  --bg-2: #f6f6f6;
  --bg-3: #f3f7ff;
  --white: #fff;
  --ok: #1f8f55;
  --warn: #b4690e;
  --danger: #d13b2e;
  --r: 2px;
  --r-lg: 4px;
  --shadow-sm: 0 1px 14px rgba(0, 0, 0, .06);
  --shadow-md: 0 18px 40px rgba(1, 15, 28, .1);
  --font-display: "Manrope", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-body: "Jost", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: var(--ink); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--theme); }
h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 3.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.0625rem; line-height: 1.4; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
small, .small { font-size: .8125rem; line-height: 1.6; }
.muted { color: var(--muted); }
.strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--theme); color: #fff; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 30px; }
.container-narrow { max-width: 920px; }
.section { padding: 90px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--bg); }
.section-ink { background: var(--ink); color: rgba(255, 255, 255, .72); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.spacer { flex: 1 1 auto; }
.center { text-align: center; }
.grid { display: grid; gap: 30px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- typographic helpers ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--theme);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lede { font-size: 1.0625rem; color: var(--text); max-width: 62ch; }
.section-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 46px; }
.section-head .spacer { flex: 1 1 auto; }
.section-head h2 { margin: 0; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: "\2192"; font-size: .95em; }
.link-arrow:hover { color: var(--theme); }

/* ---------- buttons ---------- */
.btn, .btn-primary, .btn-danger, .btn-dark, .btn-outline, button, .theme-btn {
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.btn, .btn-primary, .btn-danger, .btn-dark, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--theme); border-color: var(--theme); color: #fff; }
.btn-primary:hover { background: var(--theme-hover); border-color: var(--theme-hover); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #102a3d; border-color: #102a3d; color: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { border-color: rgba(209, 59, 46, .35); color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .8125rem; }
.btn-block { width: 100%; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.inline-form { display: inline; margin: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--r);
}
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.site-nav { flex: 1 1 auto; }
.site-nav > ul { display: flex; justify-content: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: inline-block;
  padding: 28px 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.site-nav > ul > li > a:hover, .site-nav > ul > li.on > a { color: var(--theme); }
.site-nav .sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 210px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.site-nav > ul > li:hover .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { display: block; padding: 8px 20px; font-size: .875rem; color: var(--text); }
.site-nav .sub a:hover { color: var(--theme); background: var(--bg); }
.header-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover { color: var(--theme); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-badge { position: relative; padding-right: 4px; }
.cart-badge span {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--theme);
  color: #fff;
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.header-search { position: relative; }
.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(340px, 84vw);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 5;
}
.nav-toggle:checked ~ .header-search .search-panel, .header-search .search-toggle:checked ~ .search-panel { display: block; }
.search-panel form { display: flex; gap: 8px; margin: 0; }
.search-panel input[type="search"], .search-panel input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--ink);
  background: #fff;
}
.search-panel .btn-primary { min-height: 44px; padding: 0 18px; }
.nav-burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.nav-burger span, .nav-burger::before, .nav-burger::after { content: ""; display: block; height: 2px; background: var(--ink); }

/* ---------- flash ---------- */
[data-flash-host] { position: fixed; top: 92px; right: 24px; z-index: 60; display: grid; gap: 10px; max-width: min(420px, 90vw); }
.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  box-shadow: var(--shadow-md);
  font-size: .9375rem;
  color: var(--ink);
}
.flash.success { border-left-color: var(--ok); }
.flash.error, .flash.danger { border-left-color: var(--danger); }
.flash.info { border-left-color: var(--theme); }
.flash.warning { border-left-color: var(--warn); }
.flash [data-dismiss] { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.125rem; line-height: 1; padding: 0 2px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, .66); font-size: .9375rem; }
.site-footer a:hover { color: var(--theme); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; font-size: .9375rem; }
.footer-contact li { display: flex; gap: 10px; font-size: .9375rem; }
.footer-contact b { color: #fff; font-weight: 500; flex: 0 0 auto; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom a { font-size: .8125rem; color: rgba(255, 255, 255, .5); }

/* ---------- hero ---------- */
/* The legacy sliders are full-bleed 1500x650 banners with their own artwork,
   so the hero shows the whole image (never cropped) and puts the copy in a
   caption band underneath instead of squeezing the banner into a media column. */
.hero { position: relative; overflow: hidden; background: var(--theme); color: #fff; }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.hero-slide { flex: 0 0 100%; min-width: 100%; display: flex; flex-direction: column; }
.hero-figure { margin: 0; line-height: 0; background: var(--bg); }
.hero-figure img { display: block; width: 100%; height: auto; }
.hero-caption { background: var(--theme); }
.hero-caption-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.hero-copy { max-width: 720px; min-width: 0; }
.hero .eyebrow { color: rgba(255, 255, 255, .88); }
.hero h1 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.35rem); letter-spacing: -.02em; margin: 6px 0 8px; }
.hero-copy p {
  color: rgba(255, 255, 255, .85);
  margin: 0;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero .btn { flex: 0 0 auto; border-color: rgba(255, 255, 255, .6); color: #fff; }
.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-dots { display: flex; justify-content: center; gap: 10px; padding: 0 0 22px; background: var(--theme); }
.hero-dots button {
  width: 30px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
}
.hero-dots button.on { background: #fff; }
.lang-switch { display: flex; align-items: center; gap: 8px; margin-right: 4px; }
.lang-switch a { font-size: .75rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.on { color: var(--ink); font-weight: 600; }
.nav-lang { display: none; }
.nav-lang a { font-size: .8125rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.nav-lang a.on { color: var(--theme); }

/* ---------- trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; align-items: center; gap: 16px; padding: 34px 26px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--theme);
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-item b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); letter-spacing: -.01em; }
.trust-item span { font-size: .8125rem; color: var(--muted); }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.cat-card { position: relative; display: block; padding: 34px; background: var(--bg); border: 1px solid transparent; min-height: 210px; transition: border-color .2s ease, background .2s ease; }
.cat-card:hover { border-color: var(--border); background: #fff; }
.cat-card .num { font-family: var(--font-display); font-size: .8125rem; font-weight: 700; color: var(--theme); letter-spacing: .12em; }
.cat-card h3 { margin: 16px 0 10px; font-size: 1.5rem; }
.cat-card p { margin: 0; font-size: .9375rem; color: var(--muted); max-width: 30ch; }
.cat-card .go { position: absolute; top: 28px; right: 28px; color: var(--ink); font-size: 1.25rem; }

/* ---------- banners / promo collage ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.promo-col { display: grid; gap: 30px; }
.promo-card { position: relative; overflow: hidden; padding: 40px; min-height: 240px; background: var(--bg); display: flex; flex-direction: column; justify-content: center; }
.promo-card h3 { margin: 10px 0 22px; font-size: clamp(1.5rem, 2.1vw, 2rem); }
.promo-card .btn { align-self: flex-start; }
.promo-card.media { min-height: 540px; padding: 44px; justify-content: flex-end; color: #fff; background: var(--ink); }
.promo-card.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.promo-card.media > * { position: relative; }
.promo-card.media h3 { color: #fff; margin: 8px 0 22px; }
.promo-card.media .eyebrow { color: rgba(255, 255, 255, .82); }

/* ---------- product card ---------- */
.product-card { display: flex; flex-direction: column; }
.product-card .thumb {
  display: block;
  position: relative;
  background: var(--bg);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .cat { margin: 16px 0 6px; font-size: .8125rem; color: var(--muted); letter-spacing: .02em; }
.product-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--theme); }
.product-card .foot { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.price { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.price-was { font-size: .875rem; color: var(--muted); text-decoration: line-through; }
.price-now { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.stock-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: .75rem; color: var(--ok); background: #eef9f2; border-radius: 999px; }
.stock-pill.out { color: var(--warn); background: #fdf4e7; }

/* ---------- page head / breadcrumb ---------- */
.page-head { padding: 64px 0 30px; }
.page-head h1 { margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 3rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--theme); }
.breadcrumb span.sep { color: var(--border); }

/* ---------- shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 90px; }
.shop-side { position: sticky; top: 104px; display: grid; gap: 26px; }
.side-panel { padding: 26px; background: var(--bg); }
.side-panel h2, .side-panel h3 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 0 0 18px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: .9375rem; color: var(--text); border-bottom: 1px solid rgba(0, 0, 0, .05); }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover, .side-list a.on { color: var(--theme); }
.side-list a.on { font-weight: 600; }
.side-list .count { color: var(--muted); font-size: .8125rem; }
.side-note { padding: 26px; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.side-note h3 { color: #fff; font-family: var(--font-body); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.side-note a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 0 0 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.toolbar .count-text { font-size: .9375rem; color: var(--muted); }
.toolbar form { display: flex; align-items: center; gap: 10px; margin: 0; }
.select-wrap { position: relative; display: inline-flex; }
.select-wrap select {
  appearance: none;
  height: 48px;
  padding: 0 44px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--ink);
  cursor: pointer;
}
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 54px; }
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: .9375rem;
  color: var(--ink);
}
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager.compact { margin-top: 26px; }
.pager.compact a, .pager.compact span { min-width: 36px; height: 36px; font-size: .875rem; }

/* ---------- product detail ---------- */
.pdp { background: var(--bg); padding: 48px 0 44px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.gallery { position: relative; }
.gallery > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.gallery .frame { background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 26px; }
.gallery .shot { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; }
.gallery .shot img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.gallery .thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.gallery .thumbs label { display: block; cursor: pointer; background: #fff; border: 1px solid var(--line); padding: 5px; transition: border-color .18s ease; }
.gallery .thumbs label:hover { border-color: var(--muted); }
.gallery .thumbs img { display: block; width: 72px; height: 72px; object-fit: contain; }
.pdp-info h1 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin: 10px 0 12px; }
.review-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .9375rem; color: var(--muted); margin-bottom: 18px; }
.stars { color: var(--theme); letter-spacing: 2px; font-size: .875rem; }
.pdp-info .lede {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 26px;
}
.price-list { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.price-list .price-now { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.price-list .price-was { font-size: 1rem; }
.pdp-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 22px; }
.pdp-tool-icons { display: flex; align-items: center; gap: 10px; }
.pdp-tool-icons .icon-form { margin: 0; }
.pdp-tools .icon-btn {
  width: 50px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  transition: border-color .18s ease, color .18s ease;
}
.pdp-tools .icon-btn:hover { border-color: var(--ink); color: var(--theme); }
.pdp-tools .icon-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pdp-buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.pdp-buy > * { flex: 1 1 190px; }
.pdp-buy .buy-form { display: flex; flex: 1 1 190px; }
.pdp-buy .btn-primary, .pdp-buy .btn-dark { width: 100%; min-height: 54px; }
.details-info { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; font-family: var(--font-body); font-size: .9375rem; font-weight: 400; }
.details-info > span:first-child { flex: 0 0 96px; color: var(--ink); font-weight: 600; }
.details-info b, .details-info a { font-weight: 400; color: var(--text); }
.details-info a:hover { color: var(--theme); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 3px 12px; border: 1px solid var(--border); font-size: .8125rem; color: var(--text); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; font-weight: 400; text-align: left; }
.spec-table th { width: 220px; color: var(--ink); font-weight: 600; }
.spec-table a { color: var(--text); }
.spec-table a:hover { color: var(--theme); }
.desc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-bottom: 36px; }
.desc-text h3 { font-size: 1.5rem; margin-bottom: 16px; }
.desc-text p { color: var(--text); }
.desc-media { background: var(--bg); padding: 18px; }
.desc-media img { width: 100%; height: auto; object-fit: contain; }

/* gallery thumbnails switch the main shot through the radios above */
#pg1:checked ~ .frame .shot-1 { display: flex; }
#pg1:checked ~ .thumbs label:nth-child(1) { border-color: var(--ink); }
#pg2:checked ~ .frame .shot-2 { display: flex; }
#pg2:checked ~ .thumbs label:nth-child(2) { border-color: var(--ink); }
#pg3:checked ~ .frame .shot-3 { display: flex; }
#pg3:checked ~ .thumbs label:nth-child(3) { border-color: var(--ink); }
#pg4:checked ~ .frame .shot-4 { display: flex; }
#pg4:checked ~ .thumbs label:nth-child(4) { border-color: var(--ink); }
#pg5:checked ~ .frame .shot-5 { display: flex; }
#pg5:checked ~ .thumbs label:nth-child(5) { border-color: var(--ink); }
#pg6:checked ~ .frame .shot-6 { display: flex; }
#pg6:checked ~ .thumbs label:nth-child(6) { border-color: var(--ink); }
#pg7:checked ~ .frame .shot-7 { display: flex; }
#pg7:checked ~ .thumbs label:nth-child(7) { border-color: var(--ink); }
#pg8:checked ~ .frame .shot-8 { display: flex; }
#pg8:checked ~ .thumbs label:nth-child(8) { border-color: var(--ink); }
.tabs { margin-top: 30px; background: #fff; }
.tab-bar { display: flex; gap: 36px; border-bottom: 1px solid var(--line); padding: 0 0 0; overflow-x: auto; }
.tab-bar button, .tab-bar a {
  padding: 20px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
}
.tab-bar button.on, .tab-bar button:hover, .tab-bar a:hover { color: var(--theme); border-bottom-color: var(--theme); }
.tab-panel { padding: 40px 0 10px; }
.detail-sections { padding: 26px 0 0; background: #fff; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 18px; }
.comment-list li { padding: 22px 24px; background: var(--bg); }
.comment-list .meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.comment-list .meta b { color: var(--ink); font-weight: 600; font-size: .9375rem; }
.related { padding: 70px 0 0; }

/* ---------- content body (DB rich html) ---------- */
.content-body {
  overflow-x: auto;
  max-width: 100%;
}
.content-body h2, .content-body h3, .content-body h4 { margin: 1.6em 0 .6em; }
.content-body img { height: auto; margin: 18px 0; max-width: 100%; }
.content-body ul, .content-body ol { padding-left: 1.4em; }
.content-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9375rem; }
.content-body th, .content-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.content-body a { color: var(--theme); text-decoration: underline; }
.content-body iframe, .content-body video { max-width: 100%; }

/* ---------- article list / detail ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-bottom: 90px; }
.post-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.post-card:last-child { border-bottom: 0; }
.post-card .cover { display: block; background: var(--bg); aspect-ratio: 4 / 3; overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: .8125rem; color: var(--muted); margin-bottom: 10px; }
.post-meta .sep { color: var(--border); }
.post-card h2 { font-size: 1.5rem; margin: 0 0 12px; }
.post-card h2 a { color: var(--ink); }
.post-card p { color: var(--text); margin-bottom: 14px; }
.widget { background: var(--bg); padding: 28px; margin-bottom: 26px; }
.widget h3 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.widget form { display: flex; margin: 0; }
.widget input[type="search"], .widget input[type="text"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-right: 0; border-radius: var(--r) 0 0 var(--r); font-family: var(--font-body); font-size: .9375rem; background: #fff; }
.widget button { width: 56px; height: 48px; border: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--theme); color: #fff; font-size: .9375rem; }
.widget-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.widget-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #fff; font-size: .9375rem; color: var(--text); }
.widget-list a:hover, .widget-list a.on { color: var(--theme); }
.article-head { padding: 8px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.article-head h1 { font-size: clamp(1.8rem, 3vw, 2.75rem); margin: 12px 0 14px; }

/* ---------- search ---------- */
.search-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 26px; font-size: .9375rem; color: var(--muted); }
.search-summary b { color: var(--ink); font-weight: 600; }
.search-block { margin-bottom: 60px; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); padding: 40px; }
.field { display: block; margin-bottom: 20px; }
.field > label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 500; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="tel"], .field input[type="number"], .field input[type="search"],
.field input[type="url"], .field input[type="datetime-local"], .field input:not([type]),
.field textarea, .field select {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.6;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(1, 15, 28, .06); }
.field.has-error input, .field.invalid input, .field.has-error textarea, .field.invalid textarea, .field.has-error select, .field.invalid select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(209, 59, 46, .08); }
.field-hint { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.field-error { display: none; margin-top: 6px; font-size: .8125rem; color: var(--danger); }
.field.has-error .field-error, .field.invalid .field-error, .field-error:not(:empty) { display: block; }
.required::after { content: " *"; color: var(--theme); }

/* ---------- auth / account ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: 1080px; margin: 60px auto 90px; background: #fff; border: 1px solid var(--line); }
.auth-form { padding: 56px; }
.auth-form h1 { font-size: 2rem; margin: 0 0 8px; }
.auth-side { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.auth-side h2 { color: #fff; font-size: 1.75rem; margin: 0; }
.auth-side a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 90px; }
.account-nav { display: grid; gap: 2px; }
.account-nav a, .account-nav button { display: block; width: 100%; padding: 12px 18px; border: 0; background: var(--bg); text-align: left; font-family: var(--font-body); font-size: .9375rem; color: var(--text); }
.account-nav a.on, .account-nav a:hover, .account-nav button:hover { background: var(--ink); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat { padding: 24px; background: var(--bg); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; color: var(--ink); }
.stat span { font-size: .8125rem; color: var(--muted); }
.panel { padding: 34px; background: #fff; border: 1px solid var(--line); margin-bottom: 26px; }
.panel h2 { font-size: 1.25rem; margin: 0 0 18px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.list-plain li:last-child { border-bottom: 0; }

/* ---------- misc ---------- */
.empty { padding: 70px 24px; text-align: center; background: var(--bg); }
.empty h3 { margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 18px; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: .75rem; color: var(--text); }
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: start; padding-bottom: 90px; }
.card { background: #fff; border: 1px solid var(--line); }
.card.pad, .pad { padding: 34px; }
.sidebar { background: var(--bg); border: 0; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sidebar a { display: block; padding: 8px 0; font-size: .9375rem; }
.error-hero { padding: 90px 0; text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--bg); letter-spacing: -.04em; margin: 0; }
.skip-link { position: absolute; left: -9999px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .header-inner { gap: 18px; }
  .site-nav > ul { gap: 22px; }
  .shop-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 34px; }
  .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; }
  .hero h1 { font-size: clamp(1.375rem, 2.4vw, 2rem); }
}
@media (max-width: 992px) {
  .container { padding: 0 22px; }
  .section { padding: 64px 0; }
  .nav-burger { display: inline-flex; order: 3; }
  .site-nav { order: 4; flex: 0 0 100%; display: none; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .nav-lang { display: flex; gap: 16px; padding: 12px 0 2px; }
  .site-nav > ul { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav > ul > li > a { padding: 14px 0; display: block; }
  .site-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 14px; min-width: 0; display: block; }
  .site-nav .sub a { padding: 6px 0; }
  .header-inner { flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
  .grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .trust-item:nth-child(even) { padding-left: 22px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .pdp-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .desc-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .spec-table th { width: 150px; }
  .pdp { padding: 30px 0 44px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-main, .shop-side, .side-panel, .side-list { min-width: 0; }
  .shop-side { position: static; }
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .promo-grid { grid-template-columns: minmax(0, 1fr); }
  .promo-card.media { min-height: 380px; }
  .account-grid, .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-form, .auth-side { min-width: 0; }
  .auth { margin: 30px auto 60px; }
  .auth-form, .auth-side { padding: 34px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
  .grid, .cat-grid, .post-card { gap: 16px; }
  .grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-card .grid, .panel .grid, .auth-form .grid, .split .grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .toolbar form { flex-wrap: wrap; width: 100%; }
  .toolbar .select-wrap { flex: 1 1 160px; min-width: 0; }
  .toolbar select { min-width: 0; width: 100%; }
  .content-body { overflow-x: auto; }
  .content-body > *, .content-body img, .content-body table { max-width: 100%; }
  .auth h1, .auth h2, .panel h1, .panel h2, .form-card h2 { overflow-wrap: anywhere; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 0; padding: 26px; }
  .hero-caption-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
  .hero h1 { font-size: clamp(1.25rem, 5.6vw, 1.75rem); }
  .hero-copy p { -webkit-line-clamp: 3; }
  .lang-switch { display: none; }
  .promo-card { padding: 26px; min-height: 200px; }
  .promo-card.media { min-height: 300px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card .cover { aspect-ratio: 16 / 9; }
  .pdp-buy { flex-direction: column; align-items: stretch; }
  .pdp-buy .btn-primary, .pdp-buy .btn-dark { flex: 1 1 auto; }
  .qty { align-self: flex-start; }
  .tab-bar { gap: 22px; }
  .form-card, .panel, .pad, .card.pad { padding: 22px; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-top: 1px solid var(--line); padding: 18px 0; }
  .trust-item:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
  [data-flash-host] { top: auto; bottom: 16px; right: 16px; left: 16px; max-width: none; }
  .page-head { padding: 40px 0 22px; }
  .gallery .thumbs img { width: 56px; height: 56px; }
  .account-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .account-nav a, .account-nav button { white-space: nowrap; }
}

/* Tabs implemented with CSS-only radio controls (product detail) */
.tabs { position: relative; }
.tabs > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tab-bar label {
  display: inline-block;
  padding: 20px 0;
  margin-right: 40px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.tab-bar label:hover { color: var(--theme); }
.tabs .tab-panel { display: none; }
#tab-desc:checked ~ .panel-desc,
#tab-info:checked ~ .panel-info,
#tab-rev:checked ~ .panel-rev { display: block; }
#tab-desc:checked ~ .tab-bar label[for="tab-desc"],
#tab-info:checked ~ .tab-bar label[for="tab-info"],
#tab-rev:checked ~ .tab-bar label[for="tab-rev"] { color: var(--theme); border-bottom-color: var(--theme); }
.desc-grid, .panel, .spec-table { min-width: 0; }

/* Amazon A+ blocks embedded in product HTML carry fixed pixel widths;
   contain them so the page never scrolls sideways on narrow screens. */
.content-body img, .content-body video, .content-body iframe, .content-body table, .content-body .aplus-v2, .content-body .celwidget { max-width: 100%; }
.content-body .aplus-v2, .content-body .celwidget { overflow-x: auto; }
.pdp, .pdp-grid, .pdp-info, .detail-sections, .panel, .split { min-width: 0; }

/* Buttons keep their label on one line, including inside table cells. */
.btn, .btn-primary, .btn-danger, .btn-dark, .btn-outline, .btn-sm { white-space: nowrap; }

/* Square picture tiles inside the promo collage. */
.promo-tile { display: block; background: var(--bg); }
.promo-tile .thumb { display: block; }
.promo-tile img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }