/* ==========================================================================
   Components — buttons, badges, header, cards, forms, footer, pagination…
   ========================================================================== */

/* ------------------------------ Buttons ------------------------------ */
.btn {
  --btn-bg: var(--red-600);
  --btn-fg: #fff;
  --btn-bd: var(--red-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-align: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }

.btn--primary { --btn-bg: var(--red-600); --btn-bd: var(--red-600); box-shadow: 0 1px 2px rgba(228,0,43,.22); }
.btn--primary:hover { --btn-bg: var(--red-700); --btn-bd: var(--red-700); box-shadow: var(--sh-red); }

.btn--navy { --btn-bg: var(--navy-900); --btn-bd: var(--navy-900); }
.btn--navy:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }

.btn--outline { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bg: var(--surface-2); --btn-fg: var(--red-600); --btn-bd: var(--red-200); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-700); --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--red-50); --btn-fg: var(--red-700); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--red-50); --btn-fg: var(--red-700); --btn-bd: var(--red-50); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.42); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.7); }

.btn--sm { padding: 8px 14px; min-height: 36px; font-size: var(--fs-xs); border-radius: var(--r-xs); }
.btn--lg { padding: 15px 26px; min-height: 52px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--pill { border-radius: var(--r-pill); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .58; box-shadow: none; pointer-events: none; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn__label { opacity: .65; }
.spin { animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ Badges / pills ------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
  white-space: nowrap;
  background: var(--bg-alt);
  color: var(--ink-600);
}
.badge .ico { width: 12px; height: 12px; }
.badge--red { background: var(--red-50); color: var(--red-700); }
.badge--solid-red { background: var(--red-600); color: #fff; }
.badge--navy { background: var(--navy-900); color: #fff; }
.badge--green { background: var(--green-50); color: var(--green-700); }
.badge--solid-green { background: var(--green-700); color: #fff; }
.badge--amber { background: var(--amber-50); color: var(--amber-700); }
.badge--blue { background: var(--blue-50); color: var(--blue-700); }
.badge--violet { background: var(--violet-50); color: var(--violet-700); }
.badge--on-dark { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(4px); }
.badge--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-600); }

.demo-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--amber-50); color: var(--amber-700);
  border: 1px dashed rgba(150, 86, 11, .35);
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
}
.demo-pill .ico { width: 12px; height: 12px; }

/* ------------------------------ Brand tri-colour line ------------------------------ */
/* 3px rule in the logo's own đỏ / lá / dương order — the smallest possible
   brand signature above the announcement bar. */
.brand-line { height: 3px; background: var(--grad-brand); }

/* ------------------------------ Announcement bar ------------------------------ */
.announce { background: var(--navy-950); color: #C9D5E4; font-size: var(--fs-xs); }
.announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.announce__msg { margin: 0; display: flex; align-items: center; gap: 7px; color: #DCE5F0; }
.announce__msg .ico { width: 14px; height: 14px; color: #4FD08A; }
.announce__links { display: flex; align-items: center; gap: 12px; }
.announce__links a { color: #C9D5E4; }
.announce__links a:hover { color: #fff; }
.announce__sep { width: 1px; height: 12px; background: rgba(255,255,255,.22); }
@media (max-width: 900px) { .announce__links { display: none; } }
@media (max-width: 560px) { .announce__inner { justify-content: center; } .announce__msg { font-size: var(--fs-2xs); } }

/* ------------------------------ Header ------------------------------ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-head__main {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 14px;
}

/* ------------------ Brand lockup (official VTV Shop logo) ------------------ */
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__chip { display: inline-flex; align-items: center; }
.brand__logo {
  height: 40px;
  width: auto;
  max-width: 172px;
  object-fit: contain;
  display: block;
}
.brand--on-dark .brand__chip {
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(5, 16, 30, .35);
}
.brand--on-dark .brand__logo { height: 30px; max-width: 150px; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.brand__text small { font-size: .63rem; color: var(--ink-400); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.brand:hover .brand__text small { color: var(--red-700); }
.brand--on-dark .brand__text { border-left-color: rgba(255, 255, 255, .18); }

.searchbar {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.searchbar:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(22,48,79,.09); }
.searchbar__select {
  display: flex; align-items: center;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  flex: 0 0 auto;
}
.searchbar__select select {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 26px 0 12px;
  height: 100%;
  min-height: 46px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.searchbar input[type='search'] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  font-size: var(--fs-sm);
  background: transparent;
  min-height: 46px;
}
.searchbar input[type='search']:focus { outline: none; }
.searchbar input[type='search']::placeholder { color: var(--ink-400); }
.searchbar__btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0;
  background: var(--red-600);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0 22px;
  transition: background var(--t-fast);
}
.searchbar__btn:hover { background: var(--red-700); }

.head-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.head-action {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
}
.head-action:hover { background: var(--bg); color: var(--red-700); }
.head-action .ico { color: var(--ink-500); }
.head-action:hover .ico { color: var(--red-600); }

.burger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  color: var(--navy-900);
}

/* Main nav */
.site-nav { border-top: 1px solid var(--line-soft); background: var(--surface); }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav__mega-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav > a:hover, .nav__mega-btn:hover { color: var(--red-700); }
.nav > a[aria-current='page'] { color: var(--red-700); border-bottom-color: var(--red-600); font-weight: 600; }
.nav__mega-btn { border-bottom: 2px solid transparent; }
.nav__mega-btn[aria-expanded='true'] { color: var(--red-700); border-bottom-color: var(--red-600); }
.nav__mega-btn .ico--chev { width: 14px; height: 14px; transition: transform var(--t-fast); }
.nav__mega-btn[aria-expanded='true'] .ico--chev { transform: rotate(180deg); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900);
  padding: 8px 10px;
}
.nav__cta .ico { color: var(--red-600); }
.nav__cta:hover { color: var(--red-700); }

/* Mega menu */
.mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 55;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid { display: grid; grid-template-columns: 1.55fr .9fr; gap: 28px; padding: 26px 0 30px; }
.mega__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.mega__item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); }
.mega__item:hover { background: var(--bg); }
.mega__item .icobox {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--red-50); color: var(--red-700); flex: 0 0 auto;
}
.mega__item strong { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); }
.mega__item span { font-size: var(--fs-2xs); color: var(--ink-500); }
.mega__promo {
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.mega__promo h4 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.mega__promo p { font-size: var(--fs-xs); color: #C6D3E4; margin: 0; }
.mega__promo .btn { align-self: flex-start; }

/* Mobile drawer */
.scrim {
  position: fixed; inset: 0;
  background: rgba(6, 15, 30, .48);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
  z-index: 90;
  border: 0;
  padding: 0;
}
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--surface);
  z-index: 95;
  transform: translateX(-102%);
  transition: transform 260ms var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--sh-3);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__close { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); width: 36px; height: 36px; display: grid; place-items: center; }
.drawer__body { padding: 12px 10px 20px; }
.drawer__group-label { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-400); font-weight: 700; padding: 12px 12px 6px; }
.drawer__link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: var(--r-sm);
  color: var(--ink-800); font-size: var(--fs-sm); font-weight: 500;
}
.drawer__link:hover { background: var(--bg); color: var(--red-700); }
.drawer__link .ico { color: var(--ink-400); }
.drawer__foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

/* ------------------------------ Section heads ------------------------------ */
.section-head { margin-bottom: 30px; }
.section-head__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-700);
  margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red-600); border-radius: 2px; }
.section-head h2 { margin-bottom: 8px; }
.section-head__desc { color: var(--ink-500); font-size: var(--fs-body); max-width: 62ch; margin: 0; }
.section-head__link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900); }
.section-head__link:hover { color: var(--red-700); }
.section--navy .section-head__desc { color: #A9BACC; }
.section--navy .eyebrow { color: #FF9AA9; }
.section--navy .eyebrow::before { background: #FF9AA9; }
.section--navy .section-head__link { color: #fff; }

/* ------------------------------ Cards: product ------------------------------ */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  height: 100%;
}
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #EDF1F6 0%, #DCE4EE 100%);
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 320ms var(--ease), transform 500ms var(--ease); }
.product-card__media img.is-loaded { opacity: 1; }
.product-card:hover .product-card__media img.is-loaded { transform: scale(1.035); }
.product-card__tags { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); }
.product-card__body { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.product-card__cat { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
.product-card__name { font-size: .96rem; font-weight: 600; line-height: 1.36; color: var(--ink-900); margin: 0; }
.product-card__name a:hover { color: var(--red-700); }
.product-card__supplier { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-500); min-width: 0; }
.product-card__supplier .ico { width: 13px; height: 13px; color: var(--green-600); }
.product-card__supplier span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); color: var(--ink-500); margin-top: 2px; }
.product-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.product-card__meta .ico { width: 13px; height: 13px; color: var(--ink-300); }
.product-card__foot { padding: 12px 14px 14px; margin-top: auto; }
.product-card__price {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px dashed var(--line);
  margin-bottom: 10px;
}
.product-card__price strong { font-size: 1rem; color: var(--navy-900); font-weight: 700; letter-spacing: -.01em; }
.product-card__price span { font-size: var(--fs-2xs); color: var(--ink-500); }
.product-card__price--contact strong { color: var(--red-700); font-size: .92rem; }
.product-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-card__actions .btn { padding-inline: 10px; }

/* ------------------------------ Cards: supplier ------------------------------ */
.supplier-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  transition: border-color var(--t), box-shadow var(--t);
  height: 100%;
}
.supplier-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.supplier-card__head { display: flex; gap: 12px; align-items: flex-start; }
.supplier-logo {
  width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-600));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.02em;
  border: 1px solid rgba(255,255,255,.08);
}
.supplier-logo--lg { width: 76px; height: 76px; border-radius: 16px; font-size: 1.35rem; }
.supplier-logo--sm { width: 34px; height: 34px; border-radius: 8px; font-size: .72rem; }
.supplier-card__title { min-width: 0; }
.supplier-card__name { font-size: .98rem; font-weight: 600; color: var(--ink-900); margin: 0 0 4px; line-height: 1.34; }
.supplier-card__name a:hover { color: var(--red-700); }
.supplier-card__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-xs); color: var(--ink-500); }
.supplier-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.supplier-card__meta .ico { width: 12px; height: 12px; color: var(--ink-300); }
.supplier-card__desc { font-size: var(--fs-xs); color: var(--ink-500); margin: 12px 0 0; line-height: 1.6; }
.supplier-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.supplier-card__stat { font-size: var(--fs-2xs); color: var(--ink-500); }
.supplier-card__stat strong { color: var(--ink-800); font-size: var(--fs-xs); }

/* ------------------------------ Cards: category ------------------------------ */
.category-card {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy-800);
  min-height: 176px;
  border: 1px solid rgba(255,255,255,.07);
  transition: transform var(--t), box-shadow var(--t);
  isolation: isolate;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.category-card__img { position: absolute; inset: 0; z-index: -2; }
.category-card__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms var(--ease), transform 600ms var(--ease); }
.category-card__img img.is-loaded { opacity: .62; }
.category-card:hover .category-card__img img.is-loaded { transform: scale(1.05); }
.category-card::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,15,30,.14) 0%, rgba(6,15,30,.78) 62%, rgba(6,15,30,.93) 100%);
}
.category-card__body { padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 176px; gap: 6px; }
.category-card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.category-card__name { color: #fff; font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.3; }
.category-card__desc { color: rgba(255,255,255,.72); font-size: var(--fs-2xs); margin: 0; line-height: 1.5; }
.category-card__count { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); color: rgba(255,255,255,.62); font-weight: 500; }
.category-card__count .ico { width: 12px; height: 12px; }

/* ------------------------------ Forms ------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-700); }
.field__label .req { color: var(--red-600); margin-left: 2px; }
.field__hint { font-size: var(--fs-2xs); color: var(--ink-400); }
.field__error { font-size: var(--fs-2xs); color: var(--red-700); font-weight: 500; display: none; }
.field.has-error .field__error { display: block; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red-500); background: #FFFAFA; }

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 11px 13px;
  font-size: var(--fs-sm);
  color: var(--ink-900);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 44px;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(22,48,79,.09);
}
.textarea { resize: vertical; min-height: 104px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: span 1; } }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-sm); color: var(--ink-700); cursor: pointer; line-height: 1.5; }
.check input[type='checkbox'], .check input[type='radio'] {
  width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--red-600); flex: 0 0 auto; cursor: pointer;
}

/* ------------------------------ Breadcrumb ------------------------------ */
.breadcrumb { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--ink-500); padding-block: 16px; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--red-700); }
.breadcrumb .ico { width: 12px; height: 12px; color: var(--ink-300); }
.breadcrumb [aria-current='page'] { color: var(--ink-800); font-weight: 500; }

/* ------------------------------ Pagination ------------------------------ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 34px; }
.pagination__btn {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  padding: 0 10px;
  transition: all var(--t-fast);
}
.pagination__btn:hover { border-color: var(--navy-700); color: var(--navy-900); }
.pagination__btn[aria-current='page'] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pagination__btn[disabled] { opacity: .45; pointer-events: none; }
.pagination__dots { color: var(--ink-400); padding: 0 4px; }

/* ------------------------------ Chips ------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  border: 1px solid transparent;
  font-size: var(--fs-xs);
  color: var(--ink-700);
  font-weight: 500;
}
.chip button { border: 0; background: transparent; display: grid; place-items: center; padding: 2px; color: var(--ink-500); border-radius: 50%; }
.chip button:hover { color: var(--red-700); background: #fff; }
.chip .ico { width: 13px; height: 13px; }
.chip--link { background: var(--surface); border-color: var(--line-strong); cursor: pointer; }
.chip--link:hover { border-color: var(--navy-700); color: var(--navy-900); }
.chip--link.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ------------------------------ Filter panel ------------------------------ */
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.filter-group { border-bottom: 1px solid var(--line-soft); padding: 16px; }
.filter-group:last-child { border-bottom: 0; }
.filter-group__title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-800); margin: 0 0 12px;
}
.filter-group__title .ico { width: 14px; height: 14px; color: var(--ink-400); }
.filter-list { display: flex; flex-direction: column; gap: 9px; }
.filter-list .check { font-size: var(--fs-sm); color: var(--ink-600); }
.filter-list .check:hover { color: var(--ink-900); }
.filter-count { margin-left: auto; font-size: var(--fs-2xs); color: var(--ink-400); font-variant-numeric: tabular-nums; }
.price-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-grid .input { padding: 9px 11px; font-size: var(--fs-xs); min-height: 40px; }

/* ------------------------------ Misc UI ------------------------------ */
.icobox {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--red-50); color: var(--red-700);
  flex: 0 0 auto;
}
.icobox--navy { background: rgba(22,48,79,.07); color: var(--navy-800); }
.icobox--green { background: var(--green-50); color: var(--green-700); }
.icobox--lg { width: 50px; height: 50px; border-radius: 13px; }
.icobox--on-dark { background: rgba(255,255,255,.1); color: #fff; }

.skeleton {
  position: relative;
  overflow: hidden;
  background: #E9EDF3;
  border-radius: var(--r-xs);
}
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.35s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.skel-card__media { aspect-ratio: 4 / 3; }
.skel-card__body { padding: 14px; display: grid; gap: 9px; }
.skel-line { height: 11px; }

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  padding: 48px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-state .icobox { width: 54px; height: 54px; border-radius: 14px; }
.empty-state h3 { margin: 4px 0 0; font-size: 1.05rem; }
.empty-state p { color: var(--ink-500); font-size: var(--fs-sm); max-width: 46ch; margin: 0; }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: var(--fs-sm);
  border: 1px solid transparent;
}
.alert .ico { margin-top: 2px; }
.alert--info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.alert--success { background: var(--green-50); border-color: #CDEBDA; color: var(--green-700); }
.alert--error { background: var(--red-50); border-color: var(--red-200); color: var(--red-700); }
.alert--warn { background: var(--amber-50); border-color: #F3E2C0; color: var(--amber-700); }
.alert strong { color: inherit; }

.notice-bar {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--amber-50);
  border: 1px dashed rgba(150,86,11,.3);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: var(--fs-xs);
  color: var(--amber-700);
  line-height: 1.55;
}
.notice-bar .ico { margin-top: 1px; flex: 0 0 auto; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: transparent;
  padding: 12px 14px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-600);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--red-700); }
.tab.is-active { color: var(--red-700); border-bottom-color: var(--red-600); font-weight: 600; }

/* Specs table */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; font-weight: 500; color: var(--ink-500);
  padding: 11px 16px 11px 0; width: 42%; vertical-align: top;
}
.spec-table td { padding: 11px 0; color: var(--ink-900); font-weight: 500; }

/* Stat block */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__value { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 700; color: var(--navy-900); letter-spacing: -.03em; line-height: 1.1; }
.stat__label { font-size: var(--fs-xs); color: var(--ink-500); }
.section--navy .stat__value { color: #fff; }
.section--navy .stat__label { color: #9FB2C6; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(6,15,30,.55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  transform: translateY(10px) scale(.99);
  transition: transform var(--t);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 20px 0; }
.modal__title { font-size: 1.12rem; margin: 0; }
.modal__body { padding: 14px 20px 20px; font-size: var(--fs-sm); color: var(--ink-600); }
.modal__foot { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal__close { border: 1px solid var(--line); background: var(--surface); width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; flex: 0 0 auto; }
.modal__close:hover { background: var(--bg); }

/* ------------------------------ Footer ------------------------------ */
.site-foot { background: var(--navy-950); color: #A9BACC; margin-top: 0; position: relative; }
.site-foot::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); }
.site-foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 52px 40px; }
.site-foot__brand { max-width: 300px; }
.site-foot .brand__text small { color: rgba(255,255,255,.42); }
.site-foot .brand:hover .brand__text small { color: #fff; }
.site-foot__about { font-size: var(--fs-xs); line-height: 1.7; color: #93A6BA; margin: 14px 0 16px; }
.site-foot__contact { display: grid; gap: 8px; font-size: var(--fs-xs); }
.site-foot__contact a, .site-foot__contact span { display: flex; align-items: flex-start; gap: 8px; color: #C9D5E4; }
.site-foot__contact .ico { color: #6C87A3; margin-top: 2px; }
.site-foot__col h4 { color: #fff; font-size: var(--fs-sm); font-weight: 600; margin: 0 0 14px; letter-spacing: .01em; }
.site-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot__col a { color: #A9BACC; font-size: var(--fs-xs); }
.site-foot__col a:hover { color: #fff; }
.site-foot__legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 22px;
  font-size: var(--fs-2xs);
  line-height: 1.85;
  color: #8298AD;
}
.site-foot__legal p { margin: 0; }
.site-foot__legal strong { color: #C9D5E4; font-weight: 600; }
.site-foot__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: var(--fs-2xs); color: #7C93A8;
}
.site-foot__bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot__bottom-links a { color: #7C93A8; }
.site-foot__bottom-links a:hover { color: #fff; }

@media (max-width: 1100px) {
  .site-foot__top { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .site-foot__brand { grid-column: span 3; max-width: none; }
}
@media (max-width: 700px) {
  .site-foot__top { grid-template-columns: 1fr 1fr; padding-block: 36px 28px; }
  .site-foot__brand { grid-column: span 2; }
}
@media (max-width: 460px) {
  .site-foot__top { grid-template-columns: 1fr; }
  .site-foot__brand { grid-column: span 1; }
}

/* ------------------------------ Responsive header ------------------------------ */
@media (max-width: 1080px) {
  .head-action span { display: none; }
  .head-action { padding: 9px; }
}

@media (max-width: 960px) {
  .site-head__main { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
  .burger { display: inline-flex; }
  .brand { order: 1; }
  .brand__logo { height: 36px; }
  .head-actions { order: 2; margin-left: auto; }
  .searchbar { order: 3; flex-basis: 100%; }
  .searchbar__select { display: none; }
  .site-nav { display: none; }
  .mega { display: none; }
  .searchbar__btn { padding: 0 16px; }
  .searchbar__btn span { display: none; }
  .searchbar input[type='search'] { min-height: 42px; }
  .searchbar__btn { min-height: 42px; }
}

@media (max-width: 400px) {
  .brand__text { display: none; }
  .brand__logo { height: 28px; max-width: 120px; }
  .head-actions .btn--sm { padding-inline: 11px; }
}
