/* =========================================================
   VTV SHOP — LAYOUT: top bar, header, mega menu, hero, footer
   ========================================================= */

/* ------------------------------- top bar ------------------------------- */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, 0.74); }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.2); }
.topbar__hot { color: #fff; font-weight: 600; }

/* -------------------------------- header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(14, 26, 43, 0.5); }

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

/* brand lockup — official logo asset only */
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand:hover { opacity: 0.92; color: var(--ink); }
.brand__plate {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--dark);
  transition: box-shadow var(--t-fast);
}
.brand:hover .brand__plate { box-shadow: var(--sh-sm); }
.brand__plate img { height: 26px; width: auto; display: block; }
.brand--footer img { height: 36px; width: auto; display: block; }

/* search */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.search:focus-within {
  background: #fff;
  border-color: var(--blue);
  box-shadow: var(--ring);
}
.search__icon {
  display: grid;
  place-items: center;
  padding-left: 14px;
  color: var(--muted);
  flex: none;
}
.search__icon svg { width: 18px; height: 18px; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 8px 12px 10px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.search input::placeholder { color: var(--muted); }
.search__submit {
  flex: none;
  margin: 4px;
  padding: 8px 16px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--t-fast);
}
.search__submit:hover { background: var(--red-600); }

.search__suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 8px;
  display: none;
  z-index: 40;
  max-height: 420px;
  overflow-y: auto;
}
.search__suggest.is-open { display: block; }
.suggest-group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px 4px;
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-xs);
  text-align: left;
  color: var(--ink-2);
  font-size: 13.5px;
}
.suggest-item:hover { background: var(--bg-soft); color: var(--blue); }
.suggest-item img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: none; }
.suggest-item small { color: var(--muted); font-size: 12px; }

/* header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--blue); }
.icon-btn svg { width: 19px; height: 19px; }

.quote-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.quote-btn:hover { background: #fff; border-color: var(--blue); color: var(--blue-600); }
.quote-btn svg { width: 18px; height: 18px; }
.quote-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ------------------------------- navbar -------------------------------- */
.navbar { border-top: 1px solid var(--line); background: #fff; }
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}
.navbar__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding-right: 16px;
  margin-right: 6px;
  border-right: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.navbar__cat svg { width: 17px; height: 17px; color: var(--red); }
.navbar__cat:hover { color: var(--blue); }

.navbar__links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.navbar__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.navbar__links a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.navbar__links a:hover { color: var(--blue); }
.navbar__links a:hover::after,
.navbar__links a.is-active::after { transform: scaleX(1); }
.navbar__links a.is-active { color: var(--ink); font-weight: 600; }

.navbar__badge {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid rgba(16, 217, 17, 0.28);
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* mega menu */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-md);
  padding: 22px 0 26px;
  display: none;
  z-index: 60;
}
.mega.is-open { display: block; }
.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 26px;
}
.mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-xs);
  color: var(--ink-2);
  font-size: 13.5px;
  transition: background var(--t-fast), color var(--t-fast);
}
.mega-link:hover { background: var(--bg-soft); color: var(--blue); }
.mega-link img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; }
.mega-link small { display: block; color: var(--muted); font-size: 11.5px; }
.mega__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

/* ---------------------------- mobile drawer ---------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 38, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
  z-index: 95;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.drawer__close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); }
.drawer__close:hover { background: var(--bg-soft); }
.drawer__body { padding: 14px var(--gutter) 28px; }
.drawer__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 8px;
}
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--bg-soft-2);
}
.drawer__link:hover { color: var(--blue); }
.drawer__cta { margin-top: 20px; display: grid; gap: 10px; }

/* --------------------------------- hero -------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(237, 49, 46, 0.07), transparent 60%),
    radial-gradient(760px 420px at 6% 110%, rgba(11, 74, 192, 0.08), transparent 62%),
    linear-gradient(180deg, #F7F9FD 0%, #FFFFFF 78%);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 52px;
  padding-block: 56px 60px;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.hero__pill b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--red-50);
  color: var(--red-700);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.hero__title {
  margin-top: 18px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__title span { color: var(--blue); }
.hero__sub {
  margin-top: 18px;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.68;
  color: var(--body);
  max-width: 54ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero__trust-item b { color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.hero__trust-item span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 3.1;
  background: var(--bg-soft-2);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 21, 38, 0.02) 40%, rgba(11, 21, 38, 0.55) 100%);
}
.hero__frame-cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}
.hero__frame-cap b { display: block; font-size: 14.5px; font-weight: 700; }
.hero__frame-cap span { font-size: 12px; color: rgba(255, 255, 255, 0.8); }

.hero__float {
  position: absolute;
  left: -18px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.hero__float-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--green-50);
  color: var(--green-700);
  flex: none;
}
.hero__float b { display: block; font-size: 13px; color: var(--ink); }
.hero__float span { font-size: 11.5px; color: var(--muted); }

/* ------------------------------ page heads ----------------------------- */
.page-head {
  background: linear-gradient(180deg, #F7F9FD, #fff);
  border-bottom: 1px solid var(--line);
  padding-block: 30px 34px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span.sep { opacity: 0.6; }
.page-title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; }
.page-sub { margin-top: 10px; font-size: 14.5px; max-width: 68ch; }

/* -------------------------------- footer ------------------------------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.66); font-size: 13.5px; margin-top: 0; }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-block: 52px 40px;
}
.footer__brand { margin-bottom: 4px; }
.footer__desc { margin-top: 16px; line-height: 1.72; max-width: 34ch; color: rgba(255, 255, 255, 0.6); }
.footer__contact { margin-top: 18px; display: grid; gap: 8px; }
.footer__contact-item { display: flex; gap: 9px; align-items: flex-start; color: rgba(255, 255, 255, 0.7); }
.footer__contact-item svg { width: 15px; height: 15px; margin-top: 3px; flex: none; color: rgba(255, 255, 255, 0.4); }

.footer__col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { color: rgba(255, 255, 255, 0.64); font-size: 13.5px; }
.footer__col a:hover { color: #fff; }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px 26px;
  display: grid;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.7;
}
.footer__legal b { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------ responsive ----------------------------- */
@media (max-width: 1080px) {
  .header-main { gap: 16px; }
  .brand__plate { height: 38px; padding: 0 10px; }
  .brand__plate img { height: 23px; }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .header-main {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand actions actions' 'search search search';
    gap: 10px;
    padding-block: 10px;
    min-height: 0;
  }
  .brand { grid-area: brand; }
  .brand__plate { height: 36px; padding: 0 9px; }
  .brand__plate img { height: 21px; }
  .search { grid-area: search; max-width: none; margin-bottom: 6px; }
  .header-actions { grid-area: actions; justify-self: end; }
  .navbar { display: none; }
  .menu-toggle { display: inline-flex; }
  .icon-btn__label { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 34px 40px; }
  .hero__media { order: 2; }
  .hero__float { left: 12px; bottom: 12px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; padding-block: 40px 30px; }
}

@media (max-width: 640px) {
  .search__submit { padding: 8px 12px; font-size: 13px; }
  .header-actions { gap: 6px; }
  .icon-btn { padding: 0 8px; }
  .quote-btn { padding: 0 10px; }
  .quote-btn span.quote-btn__label { display: none; }
  .hero__trust { gap: 14px 22px; }
  .hero__frame { aspect-ratio: 4 / 3.4; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
