:root {
  --blue: #012F7A;
  --blue-dark: #012869;
  --blue-deep: #001F54;
  --gold: #FFAA07;
  --gold-dark: #e09400;
  --red: #c1121f;
  --red-dark: #a10e19;
  --bg: #f4f6fb;
  --card: #fff;
  --text: #12203a;
  --muted: #667085;
  --line: #e6eaf0;
  --shadow: 0 10px 28px rgba(1, 47, 122, .10);
  --radius: 14px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 32;
  overflow: visible;
}
.topbar-inner {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 10px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.logo img {
  height: 72px;
  width: auto;
  display: block;
}
.logo b { color: var(--blue); font-size: 20px; line-height: 1.1; display: block; }
.logo small { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .04em; }

.gico {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: var(--blue);
  background: linear-gradient(155deg, rgba(255,255,255,.92), rgba(1,47,122,.08) 52%, rgba(255,170,7,.22));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 10px 22px rgba(1,47,122,.12), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: relative;
}
.gico svg { width: 20px; height: 20px; display: block; }
.gico.sm { width: 32px; height: 32px; }
.gico.sm svg { width: 16px; height: 16px; }
.gico.nav {
  width: 18px; height: 18px; background: none; border: 0; box-shadow: none;
  backdrop-filter: none; color: #fff; padding: 0;
}
.gico.nav svg { width: 18px; height: 18px; }
.gico.light {
  background: linear-gradient(155deg, rgba(255,255,255,.28), rgba(255,255,255,.06));
  border-color: rgba(255,255,255,.35); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.gico.gold { color: var(--gold); }
.gico.cart-wrap { color: var(--blue); }
.gico.cart-wrap.bump { animation: cart-bump .45s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  30% { transform: scale(1.22) rotate(-8deg); }
  60% { transform: scale(1.08) rotate(6deg); }
  100% { transform: scale(1); }
}
#fly-layer {
  position: fixed; inset: 0; z-index: 99999;
  pointer-events: none; overflow: visible;
}
.fly-img {
  position: absolute; pointer-events: none;
  object-fit: contain; background: #fff; border-radius: 14px;
  box-shadow: 0 16px 36px rgba(1,47,122,.28);
  will-change: transform, opacity;
}
.fly-card {
  position: absolute; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(1,47,122,.24);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.fly-card img {
  width: 88px; height: 88px; object-fit: contain; flex-shrink: 0;
  background: #f8fafc; border-radius: 10px;
}
.fly-card .fly-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fly-card strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13px; line-height: 1.35; color: var(--blue-deep);
}
.fly-card .price { color: #e11d2e; font-weight: 800; font-size: 14px; }

.search {
  display: block;
  position: relative;
  height: auto;
  border: 0;
  overflow: visible;
  background: none;
  z-index: 25;
}
.search-bar {
  display: flex;
  height: 46px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.search select {
  border: 0; border-right: 1px solid var(--line);
  padding: 0 10px; color: var(--muted); background: #f8fafc; min-width: 150px;
}
.search input {
  flex: 1; border: 0; outline: none; padding: 0 14px; font-size: 14px; min-width: 0;
}
.search-bar > button {
  background: var(--gold); color: var(--blue-deep); border: 0; padding: 0 18px;
  font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.search-bar > button svg { width: 18px; height: 18px; }
.search-bar > button:hover { background: var(--gold-dark); color: #fff; }
.search-suggest {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: auto;
  max-height: min(420px, 70vh);
  z-index: 40;
}
.search-suggest.open { display: block; }
.sg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text);
}
.sg-item img {
  width: 48px; height: 48px; object-fit: contain;
  background: #f8fafc; border-radius: 8px; flex-shrink: 0;
}
.sg-item b { display: block; font-size: 13px; line-height: 1.35; }
.sg-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sg-item small .price { color: var(--red); font-weight: 800; }
.sg-item:hover, .sg-item.on { background: rgba(255,170,7,.12); }
.search-suggest mark {
  background: rgba(255,170,7,.38);
  color: inherit;
  font-weight: 800;
  padding: 0;
}
.sg-empty { padding: 14px 12px; color: var(--muted); font-size: 13px; }
.sg-more {
  display: block; width: 100%; border: 0; border-top: 1px solid var(--line);
  background: #f8fafc; padding: 10px 12px; text-align: left;
  font-weight: 700; color: var(--blue); cursor: pointer; font-size: 13px;
}
.sg-more:hover { background: rgba(1,47,122,.06); }

.utils { display: flex; align-items: center; gap: 20px; }
.util {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text);
}
.util span { color: var(--muted); font-size: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: #eef4ff; color: var(--blue);
  display: grid; place-items: center; position: relative;
}
.util strong { display: block; font-size: 13px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 99px;
  display: grid; place-items: center; padding: 0 4px;
}
.cart-util { position: relative; }
.cart-drop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 380px;
  max-width: min(380px, calc(100vw - 16px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(1,47,122,.18);
  z-index: 70;
  overflow: hidden;
}
.cart-util.open .cart-drop { display: block; }
.cart-drop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px; font-weight: 800; color: var(--blue-deep); font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-drop-head span { color: var(--muted); font-weight: 700; font-size: 13px; }
.cart-drop-list { max-height: min(320px, 50vh); overflow: auto; }
.cart-drop-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.cart-drop-item:last-child { border-bottom: 0; }
.cart-drop-item:hover { background: rgba(255,170,7,.10); }
.cart-drop-item img {
  width: 56px; height: 56px; object-fit: contain;
  background: #f8fafc; border-radius: 8px;
}
.cart-drop-meta { min-width: 0; }
.cart-drop-meta b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13px; line-height: 1.35; color: var(--text);
}
.cart-drop-meta small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.cart-drop-item .price { font-size: 13px; white-space: nowrap; }
.cart-drop-empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.cart-drop-foot {
  display: grid; gap: 8px; padding: 12px 14px 14px;
  border-top: 1px solid var(--line); background: #f8fafc;
}
.cart-drop-total {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--blue-deep); margin-bottom: 2px;
}
.cart-drop-pay, .cart-drop-view { display: block; text-align: center; }
.cart-drop-view { padding: 10px 18px; }

.navbar { background: var(--blue-deep); color: #fff; position: relative; z-index: 28; overflow: visible; }
.navbar-inner { display: flex; align-items: center; gap: 8px; height: 52px; overflow: visible; }
.cat-btn {
  background: var(--gold); color: var(--blue-deep); border: 0; height: 100%;
  padding: 0 16px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.cat-btn svg { width: 18px; height: 18px; }
.cat-btn:hover { filter: brightness(1.05); }
.nav-links {
  display: flex; gap: 2px; flex: 1; overflow: visible;
  align-items: stretch; height: 100%; min-width: 0;
}
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-item > a {
  color: #fff; padding: 0 14px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px; white-space: nowrap; height: 100%;
}
.nav-item > a:hover, .nav-item:hover > a, .nav-item:focus-within > a,
.nav-item > a.on { background: rgba(255,255,255,.12); }
.nav-caret { font-size: 10px; opacity: .8; }
.nav-drop {
  display: none;
  position: absolute;
  left: 0; top: 100%;
  min-width: 240px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  border-radius: 0 0 12px 12px;
  padding: 8px 0;
  z-index: 40;
}
.nav-item:hover > .nav-drop,
.nav-item:focus-within > .nav-drop { display: block; }
.nav-drop a {
  display: block; color: var(--text); padding: 9px 16px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.nav-drop a:hover { background: rgba(255,170,7,.12); color: var(--blue); }
.promo-chip {
  background: var(--gold); color: var(--blue-deep) !important; font-weight: 800 !important;
  padding: 8px 14px !important; border-radius: 8px !important;
  display: flex !important; align-items: center; gap: 6px;
}
.promo-chip svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: 16px 0 8px; overflow: visible; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 250px);
  gap: 12px;
  overflow: visible;
}
.side-cats, .side-ads, .banner, .trust, .flash, .brands, .best, .panel, .feat-cats {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.side-cats {
  padding: 8px 0;
  overflow: visible;
  position: relative;
  z-index: 8;
}
.banner, .side-ads { z-index: 1; }
.side-item { position: relative; }
.side-cats .side-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; font-size: 13px; color: var(--text);
}
.side-cats .side-link > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side-item:hover > .side-link,
.side-item:focus-within > .side-link {
  background: rgba(255,170,7,.12); color: var(--blue);
}
.side-cats .chev { color: #b0b8c4; }
.side-flyout {
  display: none;
  position: absolute;
  left: calc(100% - 2px);
  top: 0;
  min-width: 280px;
  width: max-content;
  max-width: min(640px, 58vw);
  max-height: min(420px, 72vh);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  z-index: 20;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px 16px;
}
.side-flyout::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 16px;
}
.side-item:hover > .side-flyout,
.side-item:focus-within > .side-flyout { display: grid; }
.side-item:nth-last-child(-n+3) .side-flyout { top: auto; bottom: 0; }
.side-fly-col { min-width: 140px; }
.side-fly-parent {
  display: block; font-weight: 800; color: var(--blue); font-size: 13px;
  padding: 4px 0 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line);
}
.side-flyout a:not(.side-fly-parent) {
  display: block; font-size: 13px; color: var(--muted); padding: 4px 0;
}
.side-flyout a:hover { color: var(--blue); }

.banner {
  position: relative; min-height: 340px; overflow: hidden; color: #fff;
  background:
    radial-gradient(520px 240px at 88% 12%, rgba(255,170,7,.38), transparent 62%),
    radial-gradient(420px 220px at 8% 92%, rgba(1,47,122,.55), transparent 55%),
    linear-gradient(135deg, #00173f 0%, #012F7A 48%, #003C8D 100%);
}
.banner-slide { position: absolute; inset: 0; padding: 28px 32px; display: none; }
.banner-slide.active { display: block; }
.banner .eyebrow {
  display: inline-block; margin: 0; padding: 4px 10px; border-radius: 99px;
  background: rgba(255,170,7,.18); color: var(--gold); font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(255,170,7,.35); backdrop-filter: blur(10px);
}
.banner h1, .banner h2 { margin: 12px 0 10px; font-size: 38px; line-height: 1.1; max-width: 420px; }
.banner p { max-width: 360px; opacity: .92; }
.banner-actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.cta-gold {
  display: inline-flex; align-items: center; background: var(--gold); color: var(--blue-deep);
  font-weight: 800; padding: 11px 18px; border-radius: 10px;
}
.cta-play { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.banner-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; max-width: 420px; }
.banner-pills span {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px); padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 700;
}
.banner-pills svg { width: 14px; height: 14px; }
.banner-art {
  position: absolute; right: 10px; bottom: 8px; width: 48%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.banner-art img {
  height: 118px; width: 100%; object-fit: cover; border-radius: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.dots { position: absolute; left: 32px; bottom: 16px; display: flex; gap: 6px; }
.dots:empty { display: none; }
.dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer;
}
.dots button.on { background: var(--gold); width: 22px; border-radius: 99px; }

.side-ads { display: grid; grid-template-rows: 1fr 1fr; overflow: hidden; }
.ad {
  padding: 18px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
}
.ad-navy { background: linear-gradient(160deg, #012F7A, #00173f); }
.ad-gold { background: linear-gradient(160deg, #FFAA07, #e09400); color: var(--blue-deep); }
.ad h3 { margin: 6px 0 4px; font-size: 20px; }
.ad p { margin: 0; opacity: .92; font-size: 13px; }
.ad .mini {
  margin-top: auto; display: inline-flex; align-self: flex-start;
  background: rgba(255,255,255,.9); color: var(--blue); font-weight: 800; font-size: 12px;
  padding: 6px 10px; border-radius: 8px;
}
.ad-gold .mini { background: var(--blue-deep); color: #fff; }
.timer.light { display: flex; gap: 6px; margin: 8px 0; }
.timer.light div {
  background: rgba(1,47,122,.2); min-width: 42px; padding: 6px 4px; border-radius: 8px; text-align: center;
  backdrop-filter: blur(8px);
}
.timer.light strong { display: block; font-size: 16px; }
.timer.light span { font-size: 10px; opacity: .8; }

.trust {
  margin-top: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 14px 8px;
}
.trust-item { display: flex; gap: 10px; align-items: center; padding: 6px 10px; min-width: 0; }
.trust-item b { display: block; font-size: 13px; overflow-wrap: anywhere; }
.trust-item > div { min-width: 0; }
.trust-item > div span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.feat-cats { margin-top: 18px; padding: 18px; }
.sec-title { margin: 0 0 14px; font-size: 22px; position: relative; padding-bottom: 8px; }
.sec-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 3px;
  background: var(--gold); border-radius: 99px;
}
.feat-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.feat-item { text-align: center; }
.feat-photo {
  display: grid; place-items: center; height: 110px; border-radius: 14px; margin-bottom: 8px;
  background: linear-gradient(180deg, #f4f7ff, #fff);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.feat-photo img { height: 86px; width: 100%; object-fit: contain; }
.feat-photo .gico { position: absolute; top: 8px; left: 8px; }
.feat-item strong { font-size: 13px; color: var(--blue); }

.best-layout { display: block; }
.see-all { color: var(--blue); font-weight: 700; }

/* Flash */
.flash { margin-top: 18px; display: grid; grid-template-columns: 190px 1fr; overflow: hidden; }
.flash-left {
  background: linear-gradient(180deg, #ff3b3b, #c81e1e);
  color: #fff; padding: 22px 16px; text-align: center;
}
.flash-left h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: .04em; }
.timer { display: flex; justify-content: center; gap: 6px; margin: 12px 0 16px; }
.timer div {
  background: #111; min-width: 42px; padding: 8px 4px; border-radius: 8px;
}
.timer strong { display: block; font-size: 18px; }
.timer span { font-size: 10px; opacity: .8; }
.flash-left a {
  display: inline-block; border: 1px solid rgba(255,255,255,.5);
  padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 13px;
}
.flash-track {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.product {
  padding: 14px; border-right: 1px solid var(--line); position: relative; background: #fff;
}
.product:hover { box-shadow: inset 0 0 0 1px #dbe7ff; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--blue-deep); font-size: 12px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px; z-index: 1;
}
.product img { height: 140px; width: 100%; object-fit: contain; margin: 8px 0 10px; }
.product h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; min-height: 38px; }
.price { color: var(--red); font-weight: 800; font-size: 16px; }
.price.ask { color: var(--blue); }
.old { color: #98a2b3; text-decoration: line-through; font-size: 12px; font-weight: 500; margin-left: 6px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.add {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--gold); color: var(--blue-deep); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(255,170,7,.32);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.add svg { width: 18px; height: 18px; display: block; }
.add:hover { background: var(--gold-dark); color: #fff; transform: scale(1.08); }
.add:active { transform: scale(.94); }
.wish {
  width: 36px; height: 36px; border: 1px solid var(--line); background: #fff;
  border-radius: 50%; cursor: pointer; color: var(--muted); font-size: 16px;
}
.wish:hover { border-color: var(--red); color: var(--red); }
.wish.on { color: var(--red); border-color: var(--red); background: #fff4f4; }

.brands { margin-top: 18px; padding: 18px; }
.brand-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.brand {
  height: 56px; border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; color: var(--blue-dark);
  background: #fbfcfe; font-size: 12px;
}

.best { margin: 18px 0 28px; padding: 18px; }
#home-cat-sections .best { margin-top: 0; }
#home-cat-sections .best + .best { margin-top: 18px; }
.best-layout .grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.best-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: #fff; border-radius: 99px;
  padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.tab.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.grid .product { border: 1px solid var(--line); border-radius: 12px; }

/* Inner pages */
.page { padding: 18px 0 40px; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumb a:hover { color: var(--blue); }
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; }
.filter { padding: 16px; }
.filter h3 { margin: 0 0 12px; }
.filter label { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; cursor: pointer; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.products-page { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }

.detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.gallery { background: #f8fafc; border-radius: 12px; padding: 20px; }
.gallery img { width: 100%; height: 380px; object-fit: contain; }
.detail h1 { margin: 0 0 8px; font-size: 26px; }
.meta { color: var(--muted); margin-bottom: 12px; }
.detail .price { font-size: 28px; }
.qty { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.qty button { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.qty input { width: 56px; height: 36px; text-align: center; border: 1px solid var(--line); border-radius: 8px; }
.btn {
  border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 800; cursor: pointer;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-gold {
  background: var(--gold); color: var(--blue-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-gold svg { width: 20px; height: 20px; display: block; }
.btn-ghost { background: #eef4ff; color: var(--blue); }
.desc-box { margin-top: 16px; background: #fff; padding: 20px; border-radius: var(--radius); }

.cart-h1 { font-size: 20px; margin-bottom: 12px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.cart-main { min-width: 0; }
.cart-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px; font-size: 13px; color: var(--muted); font-weight: 700;
}
.cart-toolbar-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cart-clear, .cart-copy {
  border: 0; background: none; color: var(--blue); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0;
}
.cart-clear:hover, .cart-copy:hover { color: var(--red); }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 120px;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cart-thumb {
  display: grid; place-items: center;
  background: #f8fafc; border-radius: 10px; overflow: hidden;
}
.cart-thumb img { width: 84px; height: 84px; object-fit: contain; }
.cart-info { min-width: 0; }
.cart-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--blue);
}
.cart-suggest .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cart-name:hover { color: var(--blue-dark); text-decoration: underline; }
.cart-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cart-info .price { font-size: 15px; margin-top: 6px; display: inline-block; }
.cart-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.qty-ctrl {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
}
.qty-ctrl button {
  width: 32px; height: 32px; border: 0; background: #f4f6fb; color: var(--blue);
  font-size: 16px; font-weight: 800; cursor: pointer;
}
.qty-ctrl button:hover { background: #eef4ff; }
.qty-ctrl input {
  width: 44px; height: 32px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font-size: 14px; font-weight: 700; color: var(--text);
}
.cart-del {
  border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 0;
}
.cart-del:hover { color: var(--red); }
.cart-line {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px;
  font-size: 15px; font-weight: 800; text-align: right;
}
.cart-line span { font-size: 11px; font-weight: 700; color: var(--muted); }
.cart-continue { display: inline-block; margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--blue); }
.cart-continue:hover { text-decoration: underline; }
.cart-suggest { margin-top: 22px; }
.cart-summary { position: sticky; top: 88px; }
.cart-summary h3 { margin: 0 0 10px; font-size: 16px; color: var(--blue); }
.cart-summary p { margin: 8px 0; font-size: 13px; color: var(--text); }
.cart-summary .cart-ship, .cart-summary .cart-ask-note { color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.cart-summary .cart-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.cart-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cart-cta .btn { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; box-sizing: border-box; }
.cart-sticky { display: none; }
.cart-empty { padding: 28px 16px; }
.cart-empty p { margin: 0 0 8px; font-size: 15px; }
.cart-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.summary { background: #fff; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.checkout, .auth {
  max-width: 560px; margin: 0 auto; background: #fff; padding: 24px; border-radius: 12px; box-shadow: var(--shadow);
}
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.toast {
  position: fixed; top: 14px; right: 92px; left: auto;
  transform: translateY(-10px);
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--blue-deep);
  padding: 10px 18px 10px 10px; border-radius: 999px;
  border: 1px solid rgba(255,170,7,.55);
  box-shadow: 0 12px 32px rgba(1,47,122,.18);
  font-weight: 800; font-size: 14px;
  z-index: 100002; pointer-events: none;
  visibility: hidden; opacity: 0;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.toast.show {
  visibility: visible; opacity: 1;
  transform: translateY(0);
}
.toast-ico {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: var(--blue-deep);
  display: grid; place-items: center; font-size: 15px; font-weight: 900;
}

footer {
  background: #071a40;
  color: #c5d0e0;
  padding: 0 0 18px;
  margin-top: auto;
  border-top: 3px solid var(--gold);
}
.foot-cta {
  background: #0b2458;
  border-bottom: 1px solid #1e3355;
  padding: 18px 0;
}
.foot-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-call {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 10px 16px 10px 10px;
  background: var(--gold);
  color: var(--blue-deep) !important;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.foot-call .gico {
  width: 40px; height: 40px;
  background: var(--blue-deep);
  color: var(--gold);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.foot-call .gico svg { width: 18px; height: 18px; }
.foot-call span { display: flex; flex-direction: column; gap: 2px; }
.foot-call strong { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.foot-cta-side {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.foot-cta-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 8px 12px;
  border: 1px solid #1e3355;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #e8eef8 !important;
  font-size: 13px;
  font-weight: 600;
}
.foot-cta-item:hover { border-color: var(--gold); color: var(--gold) !important; }
.foot-cta-item .gico.nav { color: var(--gold); width: 16px; height: 16px; }
.foot-cta-item .gico.nav svg { width: 16px; height: 16px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr 1.15fr 1.2fr;
  gap: 28px 24px;
  padding: 28px 0 8px;
  align-items: start;
}
.foot-brand { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-brand-head { display: flex; align-items: center; gap: 12px; }
.foot-logo { display: block; flex-shrink: 0; margin: 0 !important; }
.foot-logo img {
  height: 52px; width: 52px; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 3px;
}
.foot-brand h4 {
  color: #fff; margin: 0; font-size: 18px; font-weight: 800;
}
.foot-tag {
  margin: 2px 0 0 !important;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.foot-legal {
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.6;
  color: #9aabc2;
}
footer h4, footer .foot-acc summary {
  color: #fff; margin: 0 0 12px; font-size: 14px; font-weight: 800;
  letter-spacing: .02em;
}
footer .foot-acc summary::after { display: none; }
footer p { line-height: 1.7; font-size: 14px; margin: 0 0 8px; }
footer a { display: block; margin: 0; color: #b7c3d6; font-size: 14px; }
.foot-links { display: grid; gap: 2px; }
.foot-links a {
  padding: 5px 0;
  border: 0;
  background: none;
}
.foot-links a:hover { color: var(--gold); }
.foot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.foot-chips a {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #1e3355;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  font-size: 13px;
  line-height: 1.3;
  color: #d5deea;
}
.foot-chips a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,170,7,.08);
}
.foot-svc {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.foot-svc a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,170,7,.08);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.foot-svc a:hover { background: rgba(255,170,7,.16); color: #fff; }
.foot-svc .gico.nav { color: var(--gold); width: 16px; height: 16px; }
.foot-svc .gico.nav svg { width: 16px; height: 16px; }
.foot-acc { min-width: 0; }
.foot-acc summary {
  list-style: none; cursor: default;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  width: max-content;
  max-width: 100%;
}
.foot-acc summary::-webkit-details-marker, .foot-acc summary::marker { display: none; }
.foot-acc-body { padding-top: 12px; }
.copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #1e3355;
  margin-top: 8px;
  padding-top: 14px;
  font-size: 12px;
  color: #8ea0ba;
  line-height: 1.5;
}
.company-card {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center;
}
.company-card img { width: 110px; height: 110px; object-fit: contain; }
.company-card h1 { margin: 0 0 8px; font-size: 20px; }
.company-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.news-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.news-list { display: grid; gap: 12px; }
.news-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 16px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px;
  align-items: center;
}
.news-card img {
  width: 100%; height: 120px; object-fit: cover; border-radius: 8px; background: #f3f6fb;
}
.news-card time { color: var(--gold-dark); font-size: 12px; font-weight: 700; }
.news-card h3 { margin: 4px 0 6px; font-size: 18px; color: var(--blue); }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-wrap { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 24px 28px; }
.article-wrap h1 { margin: 8px 0 12px; font-size: 28px; line-height: 1.3; }
.article-wrap .meta { margin-bottom: 16px; }
.article-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.article-body { line-height: 1.75; font-size: 15px; }
.article-body h2 { font-size: 20px; color: var(--blue-deep); margin: 22px 0 10px; line-height: 1.35; }
.article-body h3 { font-size: 17px; margin: 16px 0 8px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 22px; }
.article-body li { margin: 0 0 6px; }
.article-body p { margin: 0 0 12px; }
.article-body a { color: var(--blue); font-weight: 700; }

.empty { padding: 40px; text-align: center; background: #fff; border-radius: 12px; }
.grid .empty { grid-column: 1 / -1; }

.cat-wrap { position: relative; height: 100%; }
.mega {
  display: none; position: absolute; left: 0; top: 100%; z-index: 40;
  width: min(920px, 80vw); background: #fff; color: var(--text);
  box-shadow: var(--shadow); border-radius: 0 0 12px 12px; padding: 16px;
  max-height: 70vh; overflow: auto;
}
.cat-wrap:hover .mega { display: block; }
.mega-group { margin-bottom: 12px; }
.mega-root { display: block; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.mega-parent { font-weight: 700; display: block; margin-bottom: 4px; }
.mega-col a { display: block; font-size: 13px; color: var(--muted); padding: 3px 0; }
.mega-col a:hover { color: var(--blue); }

.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; position: relative; display: flex; flex-direction: column; gap: 6px;
  min-width: 0; overflow: hidden;
}
.p-card:hover { box-shadow: var(--shadow); }
.p-img { display: block; background: #f8fafc; border-radius: 8px; }
.p-card img { height: 150px; width: 100%; object-fit: contain; }
.p-card h4 {
  margin: 0; font-size: 13px; font-weight: 700; min-height: 38px; line-height: 1.35;
  overflow-wrap: anywhere; word-break: break-word;
}
.feat {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px;
}
.mini-specs { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12px; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.rate-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.stars { color: #f5b301; letter-spacing: 1px; }
.muted { color: var(--muted); }
.acts { margin-left: auto; display: flex; gap: 6px; }
.flash-track .p-card, .grid .p-card { height: 100%; }
.flash-track { gap: 0; }
.flash-track .p-card { border-radius: 0; border: 0; border-right: 1px solid var(--line); }

.cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; min-width: 0; }
.cat-layout > * { min-width: 0; }
.side-block { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.side-block h3, .side-block h4 { margin: 0 0 10px; font-size: 15px; }
.side-acc { padding: 14px; }
.side-acc > summary {
  list-style: none; cursor: default;
  font-size: 15px; font-weight: 800; margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.side-acc > summary::-webkit-details-marker { display: none; }
.side-acc > summary small {
  font-weight: 600; color: var(--muted); font-size: 12px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-tree a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 10px; border-radius: 8px; font-size: 14px;
  min-width: 0; gap: 8px;
}
.cat-tree a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cat-tree .chev { flex-shrink: 0; }
.cat-tree a.on { background: var(--blue); color: #fff; font-weight: 700; }
.cat-tree a:hover:not(.on) { background: #f3f7ff; color: var(--blue); }
.tree-kids { padding-left: 12px; }
.depth-1 a { font-size: 13px; }
.depth-2 a { font-size: 13px; color: var(--muted); }
.filter-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-acc .filter-block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.filter-block label { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 13px; cursor: pointer; }
.filter-block span { color: var(--muted); margin-left: auto; }
.price-custom { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-top: 8px; }
.price-custom input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-head small { color: var(--muted); font-weight: 600; font-size: 15px; }
.toolbar-right { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.toolbar-right select { margin-left: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.brand-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip, .chip-clear {
  border: 1px solid var(--line); background: #fff; border-radius: 99px;
  padding: 6px 12px; cursor: pointer; font-size: 13px;
}
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip-clear { color: var(--red); border-color: transparent; }
.products-page.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cat-more {
  text-align: center;
  margin: 16px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  min-height: 24px;
}
.cat-more.loading { color: var(--blue); }
.cat-more.done { font-weight: 600; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.pager button {
  min-width: 36px; height: 36px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; font-weight: 700;
}
.pager button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.pdp {
  display: grid; grid-template-columns: 1.1fr 1.2fr 280px; gap: 18px;
  background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.pdp-gallery, .pdp-info, .pdp-buy { min-width: 0; }
.pdp-gallery { min-width: 0; }
.pdp-gallery .main-img {
  position: relative; background: #f8fafc; border-radius: 12px; padding: 16px;
  overflow: hidden;
}
.pdp-stage {
  display: block; width: 100%; border: 0; padding: 0; background: none;
  cursor: zoom-in;
}
.pdp-gallery .main-img img,
.pdp-stage img {
  width: 100%; height: 360px; object-fit: contain; display: block;
  transition: opacity .22s ease;
}
.pdp-gallery .main-img img.is-fade,
.pdp-zoom img.is-fade { opacity: 0; }
.pdp-shift {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--blue);
  box-shadow: 0 6px 16px rgba(1,47,122,.16);
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 2;
}
.pdp-shift.prev { left: 8px; }
.pdp-shift.next { right: 8px; }
.pdp-shift:hover { background: var(--gold); }
.pdp-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(1,47,122,.82); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 99px;
}
.thumbs {
  display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  border: 2px solid var(--line); border-radius: 8px; padding: 0;
  background: #fff; cursor: pointer; overflow: hidden;
}
.thumb.on { border-color: var(--blue); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.pdp-zoom {
  position: fixed; inset: 0; z-index: 400;
  background: #001433;
  display: none; align-items: center; justify-content: center;
  padding: 56px 12px 20px;
}
body.zoom-open { overflow: hidden; }
body.zoom-open .pdp-zoom { display: flex; }
.pdp-zoom:focus { outline: none; }
.pdp-zoom img {
  width: 96vw; height: calc(100dvh - 80px);
  max-width: none; max-height: none;
  object-fit: contain; border-radius: 8px;
  transition: opacity .22s ease;
  flex: 0 0 auto;
  background: #001433;
}
.pdp-zoom-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: #fff; color: var(--text); font-size: 26px; cursor: pointer; z-index: 3;
}
.brand-link { color: var(--blue); font-weight: 800; letter-spacing: .04em; }
.pdp-info h1 { margin: 6px 0 8px; font-size: 24px; line-height: 1.25; }
.price-box .price { font-size: 32px; }
.save { color: #14804a; font-weight: 700; margin-top: 4px; }
.install { margin-top: 8px; background: #eef6ff; color: var(--blue); padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.offer-box { margin-top: 14px; border: 1px dashed #9ec0ff; background: #f5f9ff; border-radius: 10px; padding: 12px 14px; }
.offer-box h3 { margin: 0 0 8px; color: var(--blue); font-size: 14px; }
.offer-box ul { margin: 0; padding-left: 18px; font-size: 13px; }
.pdp-buy { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stock { font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.stock.ok { color: #14804a; }
.v-row { margin: 10px 0; }
.v-row > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.v-list { display: flex; flex-wrap: wrap; gap: 6px; }
.v-chip { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 10px; cursor: pointer; font-weight: 700; font-size: 13px; }
.v-chip.on { border-color: var(--blue); color: var(--blue); background: #eef4ff; }
.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 8px 0 0;
  box-sizing: border-box;
}
.pay-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.pdp-trust { margin-top: 14px; }
.pdp-bottom { display: grid; grid-template-columns: 1fr 280px; gap: 16px; margin-top: 16px; }
.tabs-card, .related { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px; }
.ptabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.ptabs button { border: 0; background: none; padding: 10px 12px; font-weight: 800; cursor: pointer; color: var(--muted); }
.ptabs button.on { color: var(--blue); border-bottom: 2px solid var(--blue); }
.ptab { display: none; line-height: 1.7; font-size: 14px; }
.ptab.on { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; }
.related h3 { margin: 0 0 12px; }
.rel { display: flex; gap: 10px; margin-bottom: 12px; }
.rel img { width: 72px; height: 72px; object-fit: contain; background: #f8fafc; border-radius: 8px; }
.rel b { display: block; font-size: 13px; margin-bottom: 4px; }

@media (max-width: 1100px) {
  .hero-grid, .flash, .layout, .detail, .foot-grid, .cat-layout, .pdp, .pdp-bottom, .best-layout, .news-layout, .news-card { grid-template-columns: 1fr; }
  .cat-layout > section { min-width: 0; width: 100%; }
  .products-page, .products-page.cols-5 { min-width: 0; width: 100%; }
  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo utils" "search search";
    gap: 8px 10px;
    align-items: center;
  }
  .topbar-inner .logo { grid-area: logo; min-width: 0; max-width: none; }
  .topbar-inner .utils { grid-area: utils; justify-self: end; flex-shrink: 0; }
  .topbar-inner .search { grid-area: search; min-width: 0; }
  .logo { gap: 6px; }
  .logo span {
    display: flex; flex-direction: column; justify-content: center;
    min-width: 7.6em; flex: 1 1 auto;
  }
  .logo b {
    font-size: 13px; line-height: 1.15;
    white-space: nowrap;
  }
  .logo small {
    display: block; font-size: 9px; letter-spacing: 0; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .search-bar { height: 44px; }
  .search-bar > button { padding: 0 10px; }
  .trust, .flash-track, .grid, .brand-row, .products-page, .products-page.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .banner-art { display: none; }
  .side-cats { display: none; }
  .side-ads { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mega { width: min(920px, calc(100vw - 24px)); }
  .navbar { display: none; }
  .desk-only { display: none !important; }
  .m-nav-btn { display: grid !important; }
  .logo img { height: 40px; }
  .utils { gap: 6px; }
  .utils .gico { width: 36px; height: 36px; }
  .m-nav-btn { width: 38px; height: 38px; }
  .best-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-gallery .main-img img, .pdp-stage img, .gallery img { height: 240px; }
  .banner { min-height: 0; }
  .banner-slide {
    position: relative;
    inset: auto;
    padding: 18px 16px 20px;
  }
  .banner h1, .banner h2 { font-size: 26px; max-width: none; }
  .banner p { max-width: none; font-size: 14px; }
  .banner-actions { margin-top: 12px; }
  .banner-pills { margin-top: 10px; }
  .pdp { display: flex; flex-direction: column; }
  .pdp-gallery { order: 1; }
  .pdp-info { order: 2; }
  .pdp-buy {
    order: 3;
    position: sticky;
    bottom: 0;
    z-index: 8;
    background: #fff;
    box-shadow: 0 -8px 22px rgba(1, 47, 122, .12);
  }
  .pdp-info h1 { font-size: 20px; }
  .search input { font-size: 16px; }
  .cart-h1 { font-size: 18px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr); padding: 10px; gap: 10px; }
  .cart-thumb img { width: 72px; height: 72px; }
  .cart-name { font-size: 13px; font-weight: 700; }
  .cart-info .price { font-size: 14px; margin-top: 4px; }
  .cart-meta { font-size: 11px; }
  .cart-line {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
  }
  .cart-summary { position: static; }
  .cart-summary .btn-red { display: none; }
  .cart-sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    bottom: 0;
    z-index: 12;
    margin: 12px -16px 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 22px rgba(1, 47, 122, .12);
  }
  .cart-sticky small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
  .cart-sticky .price { font-size: 16px; }
  .cart-sticky .btn { padding: 10px 18px; flex-shrink: 0; }
  .cart-drop {
    width: min(340px, calc(100vw - 20px));
    right: 0;
    left: auto;
  }
  .toast {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    white-space: normal;
  }
  .company-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    align-items: start;
  }
  .company-card img { width: 64px; height: 64px; }
  .company-card h1, .company-card h2 { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
  .company-card p { font-size: 13px; overflow-wrap: anywhere; }
  .checkout, .auth { padding: 16px; }
  .article-wrap { padding: 16px; }
  .article-wrap h1 { font-size: 22px; }
  .seo-links a { white-space: normal; }
  .cat-head { flex-direction: column; align-items: stretch; }
  .cat-head .sec-title { font-size: 18px; overflow-wrap: anywhere; }
  .toolbar-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 8px;
  }
  .toolbar-right label {
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
  }
  .toolbar-right select { width: 100%; max-width: 100%; margin-left: 0; font-size: 16px; }
  .cat-aside {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px;
    min-width: 0; width: 100%;
  }
  .cat-layout > section { display: flex; flex-direction: column; }
  .cat-layout > section .cat-head { order: 1; }
  .cat-layout > section .brand-chips { order: 2; }
  .cat-layout > section .products-page { order: 3; }
  .cat-layout > section .cat-more { order: 4; }
  .cat-layout > section .seo-block { order: 5; }
  .cat-layout > section #cat-faq { order: 6; }
  .side-acc { padding: 0; margin-bottom: 0; }
  .side-acc[open] { grid-column: 1 / -1; }
  .side-acc > summary {
    cursor: pointer; margin: 0; padding: 10px 12px; font-size: 13px;
  }
  .side-acc > summary small { display: none; }
  .side-acc > summary::after {
    content: ""; display: block; width: 7px; height: 7px; flex-shrink: 0;
    border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
    transform: rotate(45deg); margin-top: -3px; margin-left: auto;
    transition: transform .2s ease;
  }
  .side-acc[open] > summary { border-bottom: 1px solid var(--line); }
  .side-acc[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }
  .side-acc .cat-tree,
  .side-acc #cat-filters {
    padding: 8px 10px 10px;
    max-height: min(42vh, 320px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cat-tree a { padding: 7px 8px; font-size: 13px; }
  footer { padding: 0 0 16px; }
  .foot-cta { padding: 14px 0; }
  .foot-cta-inner { gap: 10px; }
  .foot-call { width: 100%; }
  .foot-cta-side { width: 100%; flex-direction: column; }
  .foot-cta-item { flex: 1 1 auto; width: 100%; }
  .foot-cta-item span { white-space: normal; overflow: visible; text-overflow: unset; }
  .foot-grid { gap: 0; padding: 16px 0 4px; }
  .foot-brand {
    display: flex; flex-direction: column; gap: 10px;
    padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid #1e3355;
  }
  .foot-logo img { height: 44px; width: 44px; margin: 0; }
  .foot-brand h4 { margin: 0; font-size: 16px; }
  .foot-tag { font-size: 12px; }
  .foot-legal { font-size: 12px; line-height: 1.45; }
  .foot-acc summary {
    display: flex; justify-content: space-between; align-items: center;
    margin: 0; padding: 12px 2px; width: 100%;
    border-bottom: 1px solid #1e3355;
    border-top: 0;
    cursor: pointer; font-size: 14px;
  }
  footer .foot-acc summary::after {
    content: ""; display: block; width: 7px; height: 7px; flex-shrink: 0;
    border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
    transform: rotate(45deg); margin-top: -3px;
    transition: transform .2s ease;
  }
  footer .foot-acc[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
  .foot-acc-body { padding: 10px 2px 12px; }
  .foot-links a { padding: 7px 0; font-size: 13px; }
  .foot-chips { gap: 6px; }
  .foot-chips a { padding: 6px 10px; font-size: 12px; }
  .foot-svc { margin-top: 8px; }
  .copy {
    margin-top: 8px; padding-top: 12px; font-size: 12px; line-height: 1.5;
    flex-direction: column; align-items: flex-start; gap: 4px;
  }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .hero { padding: 10px 0 4px; }
  .hero-grid { gap: 8px; }
  .side-ads { display: none; }
  .trust {
    grid-template-columns: 1fr 1fr;
    margin-top: 6px;
    padding: 4px 2px;
  }
  .trust-item { min-width: 0; padding: 4px 6px; gap: 6px; }
  .trust-item:nth-child(n+3) { display: none; }
  .trust-item .gico { width: 24px; height: 24px; }
  .trust-item .gico svg { width: 12px; height: 12px; }
  .trust-item b { font-size: 11px; line-height: 1.25; }
  .trust-item > div { min-width: 0; }
  .trust-item > div span { display: none; }
  .feat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-card img { height: 110px; }
  .p-card { padding: 8px; gap: 4px; }
  .p-card h4 {
    font-size: 12px; min-height: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .products-page .mini-specs { display: none; }
  .products-page .add { width: 32px; height: 32px; }
  .products-page .add svg { width: 16px; height: 16px; }
  .rate-row { gap: 4px; min-width: 0; }
  .stars { letter-spacing: 0; flex-shrink: 1; overflow: hidden; }
  .cat-aside { grid-template-columns: 1fr; }
  .crumb { overflow-wrap: anywhere; }
  .brand-chips { gap: 6px; }
  .chip, .chip-clear { padding: 6px 10px; font-size: 12px; }
  .search input, .field input, .field select, .field textarea { font-size: 16px; }
  .banner-pills { display: none; }
  .ptabs button { flex: 1 1 40%; text-align: center; }
  .qty-ctrl input { font-size: 16px; }
  .mega-cols { grid-template-columns: 1fr; }
  .price-custom { grid-template-columns: 1fr; }
  .pay-alt { grid-template-columns: 1fr; }
  .pdp-zoom { padding: 52px 10px 16px; }
  .pdp-zoom .pdp-shift.prev { left: 6px; }
  .pdp-zoom .pdp-shift.next { right: 6px; }
}

.m-nav-btn {
  display: none;
  width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: var(--blue); color: #fff; place-items: center; cursor: pointer;
}
.m-nav-btn svg { width: 20px; height: 20px; display: block; }
.m-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 26, 64, .46);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
body.nav-open { overflow: hidden; }
body.nav-open .m-drawer {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.m-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(300px, 90vw);
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 30px rgba(1, 47, 122, .16);
  transform: translateX(100%);
  transition: transform .26s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
body.nav-open .m-drawer-panel { transform: translateX(0); }
.m-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.m-drawer-brand {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.m-drawer-brand img {
  height: 36px; width: auto; border-radius: 8px;
}
.m-drawer-brand span { min-width: 0; }
.m-drawer-brand b {
  display: block; color: var(--blue); font-size: 13px; line-height: 1.2; font-weight: 800;
}
.m-drawer-brand small {
  display: block; color: var(--gold); font-size: 10px; font-weight: 700;
}
.m-drawer-close {
  width: 32px; height: 32px; border: 0; background: #f3f6fb; border-radius: 8px;
  font-size: 20px; cursor: pointer; line-height: 1; color: var(--text); flex-shrink: 0;
}
.m-drawer-scroll {
  flex: 1; overflow: auto; padding: 10px 10px 14px;
  -webkit-overflow-scrolling: touch;
}
.m-quick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px;
}
.m-quick-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  background: #f4f7fc; color: var(--blue); border: 1px solid var(--line);
}
.m-quick-link svg { width: 14px; height: 14px; display: block; flex-shrink: 0; }
.m-quick-link.on, .m-quick-link:active { border-color: var(--blue); background: #eef4ff; }
.m-quick-link.gold {
  background: var(--gold); color: #1a1400; border-color: transparent;
}
.m-label {
  margin: 8px 4px 6px; font-size: 10px; letter-spacing: .08em;
  color: var(--muted); font-weight: 800; text-transform: uppercase;
}
.m-group {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin-bottom: 4px;
}
.m-acc + .m-acc, .m-group > .m-link + .m-acc, .m-group > .m-acc + .m-link,
.m-group > .m-link + .m-link { border-top: 1px solid var(--line); }
.m-acc-row {
  display: flex; align-items: center; gap: 2px;
}
.m-acc-row .m-link { flex: 1; min-width: 0; border: 0; }
.m-link, .m-sub, .m-sub2 {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.25;
}
.m-link.on, .m-sub.on, .m-sub2.on { color: var(--blue); background: #f4f7fc; }
.m-ico { display: grid; place-items: center; flex-shrink: 0; color: var(--blue); }
.m-ico .gico.nav { width: 16px; height: 16px; color: var(--blue); }
.m-ico .gico.nav svg { width: 16px; height: 16px; }
.m-acc-tog {
  width: 32px; height: 32px; margin-right: 6px; border: 0; border-radius: 8px;
  background: #f3f6fb; color: var(--blue); cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center;
}
.m-caret {
  display: block; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-top: -3px;
  transition: transform .2s ease;
}
.m-acc.open .m-caret { transform: rotate(-135deg); margin-top: 2px; }
.m-acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height .22s ease;
  background: #fafbfd;
}
.m-acc.open .m-acc-body { max-height: 720px; }
.m-acc-inner { overflow: hidden; }
.m-sub {
  font-size: 12.5px; font-weight: 500; padding: 5px 10px 5px 32px; color: var(--text);
}
.m-sub2 {
  font-size: 12px; font-weight: 500; padding: 5px 10px 5px 46px; color: var(--muted);
}
.m-drawer-call {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff8e8; color: var(--text); flex-shrink: 0;
}
.m-drawer-call .gico.sm { width: 34px; height: 34px; }
.m-drawer-call span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.m-drawer-call strong { display: block; color: var(--blue); font-size: 14px; font-weight: 800; }

@media (min-width: 1101px) {
  .m-nav-btn, .m-drawer { display: none !important; }
}
img, svg, video { max-width: 100%; }
.hero-grid, .topbar-inner, .best-layout, .cat-layout, .pdp, .feat-row, .grid { min-width: 0; }
.banner-slide h1 br, .banner-slide h2 br { display: none; }

@media (min-width: 641px) {
  .banner-slide h1 br, .banner-slide h2 br { display: inline; }
}
@media (min-width: 1101px) {
  .m-nav-btn, .m-drawer { display: none !important; }
  footer .foot-acc summary { pointer-events: none; }
}

.seo-home {
  margin: 18px 0 8px;
  padding: 22px 24px 12px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #334;
  line-height: 1.7;
  width: 100%;
  max-width: none;
}
.seo-block { margin: 24px 0 8px; color: #334; line-height: 1.65; }
.seo-h1, .seo-block h2, .seo-home h2 { font-size: 22px; margin: 0 0 12px; color: var(--blue); overflow-wrap: anywhere; }
.seo-home p, .seo-block p { margin: 0 0 12px; overflow-wrap: anywhere; }
.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 16px;
  width: 100%;
}
.seo-links a { font-weight: 700; color: var(--blue); white-space: nowrap; }
.seo-faq { margin: 28px 0; }
.seo-faq details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: #fff; }
.seo-faq summary { cursor: pointer; font-weight: 700; }
.seo-faq p { margin: 8px 0 0; }
.cat-count { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.area-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.area-chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #eef3fb; font-weight: 700; color: var(--blue); }
.area-layout { display: flex; flex-direction: column; }
.area-layout #area-crumb { order: 0; }
.area-layout .area-products-head { order: 1; }
.area-layout #area-products { order: 2; }
.area-layout #area-title { order: 3; margin-top: 28px; }
.area-layout #area-intro { order: 4; }
.area-layout #area-cats { order: 5; }
.area-layout #area-others { order: 6; }
.area-layout #area-faq { order: 7; }

.zalo-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  color: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  min-height: 0;
}
.zalo-fab-ico {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 104, 255, .38);
  flex-shrink: 0;
}
.zalo-fab-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px;
  background: var(--blue);
  border-radius: 12px;
  border: 2px solid var(--gold);
  min-width: 0;
}
.zalo-fab-txt b {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.zalo-fab-txt small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  opacity: .92;
  white-space: nowrap;
}
body[data-page="cart"] .zalo-fab {
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1101px) {
  body[data-page="cart"] .zalo-fab {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 640px) {
  .zalo-fab { right: 12px; }
  .zalo-fab-txt { display: none; }
}