/* ========= Topbar ========= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brand);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.topbar__inner {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  /* было 48px справа */
  align-items: center;
  height: 72px;
  padding: 0 12px;
}

/* Правая зона: аккуратный отступ, чтобы "Корзина" не прилипала к краю */
.topbar__inner> :last-child {
  justify-self: end;
  padding-right: 6px;
  /* можно 8-10 если хочешь ещё левее */
}

.topbar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.topbar__logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.topbar__divider {
  height: 1px;
  background: var(--whiteLine);
}

/* ===== Light header (catalog/product) ===== */
.topbar--light {
  background: #fff;
}

.topbar--light .topbar__divider {
  background: rgba(0, 0, 0, .10);
}

.topbar--light .icon-btn {
  border: 1px solid rgba(0, 0, 0, .12);
  background: transparent;
  color: var(--ink);
}

.topbar--light .icon-btn--ghost {
  color: var(--ink);
}

/* ========= Home: transparent topbar over video ========= */
.topbar--transparent {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  box-shadow: none;
}

.topbar--transparent .topbar__divider {
  background: transparent;
}

.topbar--transparent.is-scrolled {
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.topbar--transparent.is-scrolled .topbar__divider {
  background: var(--whiteLine);
}

.topbar--transparent .icon-btn {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(0, 0, 0, .18);
}

/* ========= FULLSCREEN MENU ========= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  background: rgba(14, 14, 14, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, .92);
}

.mobile-menu.is-open {
  display: block;
}

.drawer {
  position: absolute;
  inset: 0;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.drawer__close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(0, 0, 0, .10);
  color: rgba(255, 255, 255, .90);
  font-size: 18px;
  cursor: pointer;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6px;
  text-decoration: none;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.drawer__link::after {
  content: "›";
  opacity: .55;
  font-size: 18px;
  margin-left: 12px;
}

.drawer__footer {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  gap: 10px;
  opacity: .85;
}

.drawer__footer a {
  text-decoration: none;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
}

.drawer__footer .drawer__meta {
  opacity: .75;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
}

/* Cart link (text, not button) */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 0;
  border: 0;
  background: transparent;

  color: #111;
  text-decoration: none;

  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cart-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: rgba(0, 0, 0, 0.30);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.cart-btn:hover::after {
  transform: scaleX(1);
}

/* Badge – маленькая “пилюля” справа сверху */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;

  min-width: 16px;
  height: 16px;
  padding: 0 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: #111;
  color: #fff;

  font-size: 10px;
  line-height: 1;
}