/* ====================================================================
   JIHE-TCM Clinical Catalog Theme
   jihe.css - Complete stylesheet
   ==================================================================== */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --ink:          #0E1A2B;
  --ink-2:        #2B3A52;
  --ink-3:        #5A6A82;
  --line:         #DCE5F0;
  --line-2:       #BFCEE0;
  --bg:           #F4F8FD;
  --bg-2:         #E6EFF8;
  --bg-3:         #D5E2F1;
  --accent:       #0B5FA8;
  --accent-2:     #19C2C4;
  --accent-ink:   #ffffff;
  --accent-soft:  #DCE9F7;
  --ok:           #137B5A;
  --warn:         #B07306;
  --crit:         #B5232F;
  --r-sm:         4px;
  --r-md:         6px;
  --r-lg:         10px;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
  --font-serif:   'Newsreader', Georgia, serif;
  --shadow-sm:    0 1px 3px rgba(11,95,168,.10);
  --shadow-md:    0 4px 16px rgba(11,95,168,.13);
  --shadow-lg:    0 8px 32px rgba(11,95,168,.16);
  --topbar-h:     40px;
  --header-h:     72px;
  --nav-h:        46px;
}

/* ── Reset & Base ────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Utility ─────────────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ── Topbar ──────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: linear-gradient(180deg, #1B4576 0%, #2563A8 100%);
  color: rgba(255,255,255,.88);
  font-size: .75rem;
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ECC71;
  box-shadow: 0 0 0 0 rgba(46,204,113,.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%  { box-shadow: 0 0 0 0 rgba(46,204,113,.6); }
  70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100%{ box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.topbar-label { font-weight: 600; letter-spacing: .03em; }
.topbar-badge {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 5px; }
.topbar-right a:hover { color: #fff; }
.topbar-right svg { width:14px; height:14px; flex-shrink:0; }
.lang-toggle {
  display: flex; align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  overflow: hidden;
}
.lang-toggle button {
  padding: 2px 9px; font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: all .2s;
}
.lang-toggle button.active,
.lang-toggle button:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* ── Sticky Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 46px; height: 46px;
  background: var(--accent);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; color: #fff;
  letter-spacing: -.02em;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 800; font-size: 1rem; color: var(--ink);
  letter-spacing: .03em; text-transform: uppercase;
}
.brand-sub { font-size: .68rem; color: var(--ink-3); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

/* Search */
.search-bar {
  flex: 1;
  display: flex;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-cat {
  padding: 0 12px;
  background: var(--bg-2);
  border-right: 1px solid var(--line-2);
  font-size: .8rem;
  color: var(--ink-2);
  cursor: pointer;
  min-width: 120px;
  border: none;
  outline: none;
  font-family: inherit;
}
.search-input {
  flex: 1; padding: 0 14px;
  border: none; outline: none;
  font-size: .875rem;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}
.search-input::placeholder { color: var(--ink-3); }
.search-btn {
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: none;
  transition: background .2s;
}
.search-btn:hover { background: #094d8a; }

/* Header utilities */
.header-utils { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.util-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.util-btn:hover { background: var(--bg-2); color: var(--accent); }
.util-btn svg { width: 22px; height: 22px; }
.util-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  background: var(--crit);
  color: #fff; font-size: .62rem; font-weight: 700;
  border-radius: 9px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border-radius: var(--r-md);
  transition: background .2s;
}
.hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--ink-2);
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Category Nav ────────────────────────────────────────────────── */
.cats-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
  position: sticky;
  top: var(--header-h);
  z-index: 190;
}
.cats-nav .container {
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.cats-nav .container::-webkit-scrollbar { display: none; }
.cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .02em;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .2s, border-color .2s;
  text-decoration: none;
}
.cat-tab:hover, .cat-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding: 60px 0 48px;
  background: linear-gradient(135deg, var(--bg) 0%, #e8f2fc 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-overline {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.hero-overline::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--accent-2);
  border-radius: 1px;
}
.hero-h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-h1 em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--accent);
}
.hero-lead {
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: .875rem; font-weight: 700;
  letter-spacing: .03em;
  transition: all .2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: #094d8a; color: #fff; }
.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.hero-stats { display: flex; gap: 28px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.stat-lbl { font-size: .75rem; color: var(--ink-3); font-weight: 500; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-img-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-img-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-placeholder {
  font-size: 4rem; opacity: .3; color: var(--accent);
}
.hero-corner-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--ok);
  color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.hero-product-mini {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.hero-product-mini img {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  flex-shrink: 0;
}
.hero-product-mini-info { flex: 1; min-width: 0; }
.hero-product-mini-name {
  font-size: .85rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-product-mini-price { font-size: .8rem; color: var(--accent); font-weight: 700; margin-top: 2px; }

/* ── Trust Strip ─────────────────────────────────────────────────── */
.trust {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-title { font-size: .875rem; font-weight: 700; color: var(--ink); }
.trust-sub { font-size: .75rem; color: var(--ink-3); margin-top: 1px; }

/* ── Blocks (sections) ───────────────────────────────────────────── */
.block { padding: 60px 0; }
.block + .block { padding-top: 0; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.block-head h2 {
  font-size: 1.4rem; font-weight: 800; color: var(--ink);
  position: relative;
}
.block-head h2::after {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
}
.block-head a { font-size: .8rem; font-weight: 600; color: var(--accent); }
.overline {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* ── Category Cards ──────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.cat-card:hover img { transform: scale(1.05); }
.cat-card-body {
  position: relative; z-index: 1;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(14,26,43,.75) 0%, transparent 100%);
}
.cat-card-name {
  font-size: .875rem; font-weight: 700; color: #fff;
  line-height: 1.2;
}
.cat-card-count {
  font-size: .72rem; color: rgba(255,255,255,.7); margin-top: 2px;
}
.cat-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--accent); opacity: .3;
  position: absolute; inset: 0;
}

/* ── Promo Banners ───────────────────────────────────────────────── */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}
.promo-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, #19C2C4 100%);
  color: #fff;
}
.promo-card:nth-child(2) {
  background: linear-gradient(135deg, #1B4576 0%, var(--accent) 100%);
}
.promo-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: .35;
}
.promo-card-body { position: relative; z-index: 1; }
.promo-overline { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }
.promo-title { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.btn-white {
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn-white:hover { background: rgba(255,255,255,.35); color: #fff; }

/* ── Product Grid ────────────────────────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.prod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.prod-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.prod-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prod-card:hover .prod-card-img img { transform: scale(1.06); }
.prod-card-img-placeholder { font-size: 3rem; color: var(--accent); opacity: .25; }
.prod-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px;
}
.prod-badge.sale { background: #fff0f0; color: var(--crit); }
.prod-card-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; }
.prod-cat { font-size: .72rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.prod-name {
  font-size: .9rem; font-weight: 700; color: var(--ink);
  line-height: 1.35;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.prod-price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.prod-price-main { font-size: 1.05rem; font-weight: 800; color: var(--accent); }
.prod-price-orig { font-size: .8rem; color: var(--ink-3); text-decoration: line-through; }
.prod-card-foot {
  padding: 0 16px 14px;
  display: flex; gap: 8px;
}
.btn-cart {
  flex: 1;
  padding: 9px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s;
}
.btn-cart:hover { background: #094d8a; color: #fff; }
.btn-inquire {
  padding: 9px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: .78rem; font-weight: 700; color: var(--ink-2);
  transition: all .2s;
}
.btn-inquire:hover { border-color: var(--accent); color: var(--accent); }
.btn-cart svg, .btn-inquire svg { width: 15px; height: 15px; }

/* Wishlist button overlay */
.prod-wish {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.prod-wish:hover, .prod-wish.active { color: var(--crit); }
.prod-wish svg { width: 16px; height: 16px; }

/* ── Editorial Band ──────────────────────────────────────────────── */
.editorial {
  background: linear-gradient(135deg, #1B4576 0%, #0E2A50 100%);
  color: #fff;
  padding: 72px 0;
}
.editorial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.editorial-overline {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.editorial-overline::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--accent-2);
  border-radius: 1px;
}
.editorial h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.editorial h2 em {
  font-style: italic;
  font-family: var(--font-serif);
  color: rgba(255,255,255,.85);
}
.editorial p { color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 28px; }
.editorial-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.editorial-img img { width: 100%; height: 100%; object-fit: cover; }
.editorial-img-placeholder { font-size: 4rem; color: rgba(255,255,255,.15); }

/* ── Reviews ─────────────────────────────────────────────────────── */
.reviews { padding: 60px 0; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.review-stars { color: #F4A800; font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: .9rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; color: var(--accent);
  flex-shrink: 0;
}
.review-name { font-size: .85rem; font-weight: 700; color: var(--ink); }
.review-role { font-size: .72rem; color: var(--ink-3); }

/* ── Newsletter Band ─────────────────────────────────────────────── */
.news-band {
  background: linear-gradient(135deg, #1B4576 0%, #2563A8 100%);
  color: #fff;
  padding: 40px 0;
}
.news-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.news-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.news-icon svg { width: 26px; height: 26px; }
.news-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.news-sub { font-size: .85rem; opacity: .75; }
.news-form { display: flex; gap: 0; }
.news-input {
  flex: 1; padding: 12px 16px;
  border: none; outline: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-size: .875rem;
  font-family: inherit;
  min-width: 220px;
}
.news-submit {
  padding: 12px 22px;
  background: var(--accent-2);
  color: #fff;
  border: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.news-submit:hover { background: #14a8aa; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #1B4576 0%, #0E1A2B 100%);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { }
.footer-logo { margin-bottom: 16px; }
.footer-logo .brand-mark { display: inline-flex; }
.footer-desc { font-size: .875rem; line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all .2s;
}
.social-btn:hover { background: var(--accent); color: #fff; }
.social-btn svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icon {
  padding: 3px 8px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.5);
  letter-spacing: .05em;
}

/* ── List page ───────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #e8f2fc 0%, var(--bg) 100%);
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.page-hero-overline {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 8px;
}
.page-hero h1 { font-size: 2rem; font-weight: 800; color: var(--ink); }
.page-hero p { color: var(--ink-2); margin-top: 8px; }

/* subcategory tabs */
.subcat-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.subcat-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .8rem; font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1.5px solid transparent;
  transition: all .2s;
}
.subcat-tab:hover, .subcat-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Show / Product detail ───────────────────────────────────────── */
.product-detail { padding: 40px 0; }
.product-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.product-gallery { }
.product-img-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-2);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.product-img-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 8px; }
.product-thumb {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: border-color .2s;
}
.product-thumb:hover, .product-thumb.active { border-color: var(--accent); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { }
.product-cat { font-size: .75rem; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.product-title { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.25; margin-bottom: 16px; }
.product-price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.product-price { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.product-price-orig { font-size: 1rem; color: var(--ink-3); text-decoration: line-through; }
.product-actions { display: flex; gap: 12px; margin-bottom: 28px; }
.product-actions .btn { flex: 1; justify-content: center; }
.product-desc { font-size: .9rem; color: var(--ink-2); line-height: 1.75; }
.product-desc h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: .8rem; color: var(--ink-3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .5; }

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0 8px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2);
  font-size: .875rem; font-weight: 600;
  color: var(--ink-2);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── Mobile nav drawer ───────────────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 300;
  pointer-events: none;
}
.mobile-nav-overlay {
  position: absolute; inset: 0;
  background: rgba(14,26,43,.5);
  opacity: 0; transition: opacity .3s;
}
.mobile-nav-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { pointer-events: all; }
.mobile-nav.open .mobile-nav-overlay { opacity: 1; }
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 1.2rem;
  transition: background .2s;
}
.mobile-nav-close:hover { background: var(--bg-2); }
.mobile-nav-links { flex: 1; padding: 8px 0; }
.mobile-nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { background: var(--bg-2); color: var(--accent); }

/* ── Responsive Breakpoints ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
  .editorial-inner { gap: 36px; }
  .news-inner { grid-template-columns: auto 1fr; }
  .news-form { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --topbar-h: 36px; --header-h: 60px; --nav-h: 42px; }

  .topbar-right .topbar-phone, .topbar-right .topbar-email { display: none; }
  .topbar-right { gap: 10px; }

  .site-header .container { gap: 12px; }
  .search-bar { display: none; }
  .search-bar.mobile-show { display: flex; position: absolute; top: 100%; left: 0; right: 0; border-radius: 0; border: none; border-top: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .hamburger { display: flex; }

  .cats-nav { display: none; }
  .cats-nav.mobile-show { display: block; top: var(--header-h); }

  .hero { padding: 36px 0 28px; }
  .hero-stats { gap: 18px; }

  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line); padding: 14px; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-item:last-child, .trust-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }

  .editorial-inner { grid-template-columns: 1fr; }
  .editorial-img { display: none; }

  .review-grid { grid-template-columns: 1fr; }

  .news-inner { grid-template-columns: 1fr; text-align: center; }
  .news-icon { margin: 0 auto; }
  .news-form { flex-direction: column; }
  .news-input { border-radius: var(--r-md); min-width: unset; }
  .news-submit { border-radius: var(--r-md); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: unset; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .product-detail-inner { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.6rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 14px; }

  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .block { padding: 36px 0; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; }

  .container { padding: 0 14px; }
}
