/* =============================================
   MB CAR — WordPress Theme Extra Styles
   Supplements components.css with WP/WC elements
   ============================================= */

/* ── WordPress admin bar fix ────────────────── */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* ═══════════════════════════════════════
   index.html — ГЛАВНАЯ (hero, ticker, smart-search, categories, catalog, visual-scheme, why-us)
═══════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--c-black);
  color: var(--c-white);
  height: 650px;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero__slide--active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; opacity: .55; display: block; }
.hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__content {
  max-width: 36rem;
  position: absolute;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hero__content--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: relative;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 var(--sp-6);
}
.hero__title span {
  background: linear-gradient(to right, #E5E7EB, #9CA3AF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  color: var(--c-gray-400);
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  margin-bottom: var(--sp-10);
  max-width: 32rem;
  line-height: 1.6;
}
.hero__cta { display: flex; flex-direction: column; gap: var(--sp-4); }
@media (min-width: 640px) { .hero__cta { flex-direction: row; } }
.hero__btn {
  background: var(--c-white);
  color: var(--c-black);
  padding: var(--sp-4) var(--sp-8);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-sm);
  transition: background var(--t-fast);
  text-align: center;
  display: inline-block;
}
.hero__btn:hover { background: var(--c-gray-200); }
.hero__btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,.5);
}
.hero__btn--outline:hover { background: rgba(255,255,255,.12); color: var(--c-white); }
.hero__dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
  z-index: 2;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: background var(--t-base), transform var(--t-base);
}
.hero__dot--active {
  background: var(--c-white);
  transform: scale(1.3);
}
.hero__controls {
  position: absolute;
  bottom: 2.5rem;
  right: var(--sp-4);
  display: flex;
  gap: var(--sp-4);
}
@media (min-width: 1024px) { .hero__controls { right: var(--sp-8); } }
.hero__ctrl {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: var(--fs-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.hero__ctrl:hover { background: var(--c-white); color: var(--c-black); }
@media (max-width: 640px) {
  .hero { height: clamp(420px, 90vh, 650px); }
  .hero__title { margin-bottom: var(--sp-4); }
  .hero__sub { font-size: var(--fs-base); margin-bottom: var(--sp-6); }
  .hero__btn { min-height: 44px; justify-content: center; }
}
.smart-search { padding: var(--sp-12) 0; background: var(--c-gray-bg); border-bottom: 1px solid var(--c-gray-200); }
@media (max-width: 640px) { .smart-search { padding: var(--sp-8) 0; } }
.smart-search__card { background: var(--c-white); padding: var(--sp-6); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); border: 1px solid var(--c-gray-100); }
@media (max-width: 640px) { .smart-search__card { padding: var(--sp-4); } }
.smart-search__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.smart-search__title i { color: var(--c-accent); }
.smart-search__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 640px)  { .smart-search__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .smart-search__grid { grid-template-columns: repeat(5, 1fr); } }
.categories { padding: var(--sp-16) 0; }
@media (min-width: 1024px) { .categories { padding: var(--sp-24) 0; } }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
@media (min-width: 1024px) { .categories__grid { grid-template-columns: repeat(4, 1fr); } }
.category-card {
  position: relative;
  background: var(--c-gray-100);
  border-radius: var(--r-2xl);
  aspect-ratio: 4/5;
  overflow: hidden;
  display: block;
  transition: box-shadow var(--t-slow);
}
.category-card:hover { box-shadow: var(--shadow-xl); }
.category-card__info {
  position: absolute;
  top: var(--sp-6);
  left: var(--sp-6);
  z-index: 1;
}
.category-card__name {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-1);
  line-height: 1.2;
  color: var(--c-text);
  transition: color var(--t-fast);
}
.category-card:hover .category-card__name { color: var(--c-accent); }
.category-card__desc { font-size: var(--fs-sm); color: var(--c-gray-500); }
.category-card__price { margin-top: var(--sp-4); font-weight: var(--fw-semibold); color: var(--c-text); }
.category-card__img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 75%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--sp-4);
}
.category-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--t-slower);
}
.category-card:hover .category-card__img img { transform: scale(1.05); }
@media (max-width: 639px) {
  .categories { padding: var(--sp-10) 0; }
  .categories__grid { gap: var(--sp-3); }
  .category-card { aspect-ratio: 1 / 1; border-radius: var(--r-xl); }
  .category-card__info { top: var(--sp-3); left: var(--sp-3); right: var(--sp-3); }
  .category-card__name { font-size: var(--fs-sm); margin-bottom: 2px; }
  .category-card__desc { display: none; }
  .category-card__price { font-size: var(--fs-xs); margin-top: var(--sp-1); }
  .category-card__img { height: 62%; padding: var(--sp-2); }
}
.catalog-section { background: var(--c-gray-bg); padding: var(--sp-16) 0; }
@media (min-width: 1024px) { .catalog-section { padding: var(--sp-24) 0; } }
@media (max-width: 640px) { .catalog-section { padding: var(--sp-10) 0; } }
.catalog-section__tabs { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-10); flex-wrap: wrap; }
@media (max-width: 480px) {
  .catalog-section__tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: var(--sp-2); }
  .catalog-tab-btn { flex-shrink: 0; padding: var(--sp-3) var(--sp-5); font-size: var(--fs-base); }
}
.catalog-tab-btn {
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-lg);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  border: 2px solid var(--c-black);
}
.catalog-tab-btn--active { background: var(--c-black); color: var(--c-white); }
.catalog-tab-btn--inactive { background: var(--c-white); color: var(--c-black); }
.catalog-tab-btn--inactive:hover { background: var(--c-black); color: var(--c-white); }
.catalog-section__grid-4 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--sp-6);
}
@media (min-width: 640px)  { .catalog-section__grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog-section__grid-4 { grid-template-columns: repeat(4, 1fr); } }
.catalog-section__grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 640px)  { .catalog-section__grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog-section__grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Engines page (engines.html layout) ─────────────────────── */
.engines-page-header { padding: var(--sp-12) 0; background: var(--c-white); }
@media (max-width: 640px) { .engines-page-header { padding: var(--sp-8) 0; } }
.engines-page-header__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
@media (min-width: 1024px) {
  .engines-page-header__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.engines-page-header__title {
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.engines-page-header__sub { font-size: var(--fs-lg); color: var(--c-gray-600); max-width: 40rem; }
.engines-page-header__count {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-gray-600);
  white-space: nowrap;
}
.engines-page-header__count i { color: var(--c-accent); }
.engines-page-header__count strong { font-weight: var(--fw-medium); }

.engines-filters { padding: var(--sp-8) 0; background: var(--c-gray-bg); border-top: 1px solid var(--c-gray-200); border-bottom: 1px solid var(--c-gray-200); }
@media (max-width: 640px) { .engines-filters { padding: var(--sp-5) 0; } }

.filter-bar__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.filter-bar__title-row .filter-bar__title { margin-bottom: 0; }

.engines-filter-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  background: var(--c-white);
  color: var(--c-text);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.engines-filter-toggle:hover { background: var(--c-gray-100); border-color: var(--c-gray-400); }
.engines-filter-toggle[aria-expanded="true"] {
  background: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
}
.engines-filter-toggle i { transition: transform var(--t-base); }
.engines-filter-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

@media (max-width: 1023px) {
  .engines-filter-toggle { display: flex; }
  #engines-filter-grid {
    display: none;
    margin-top: var(--sp-4);
  }
  #engines-filter-grid.is-open { display: grid; }
}

.sort-bar { padding: var(--sp-4) 0; background: var(--c-white); border-bottom: 1px solid var(--c-gray-100); }
.sort-bar__inner { display: flex; justify-content: space-between; align-items: center; }
.sort-bar__left { display: flex; align-items: center; gap: var(--sp-6); }
.sort-bar__sort { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.sort-bar__sort label { color: var(--c-gray-600); }
.sort-bar__right { display: flex; align-items: center; gap: var(--sp-3); }
.view-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  cursor: pointer;
  border: 1px solid var(--c-gray-200);
  background: var(--c-white);
  transition: background var(--t-fast), color var(--t-fast);
}
.view-btn--active { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }

.engines-grid { padding: var(--sp-12) 0; }

/* ── catalog-section__grid-3--list (engine cards) ── */
.catalog-section__grid-3--list {
  grid-template-columns: 1fr !important;
  gap: var(--sp-4);
}
.catalog-section__grid-3--list .engine-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.catalog-section__grid-3--list .engine-card__media {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
.catalog-section__grid-3--list .engine-card__img {
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
.catalog-section__grid-3--list .engine-card__body {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-6);
}
.catalog-section__grid-3--list .engine-card__head { flex: 1; margin-bottom: 0; }
.catalog-section__grid-3--list .engine-card__specs {
  display: flex;
  gap: var(--sp-6);
  margin-bottom: 0;
}
.catalog-section__grid-3--list .engine-card__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: var(--sp-3);
  min-width: 140px;
}
@media (max-width: 560px) {
  .catalog-section__grid-3--list .engine-card { flex-direction: column; }
  .catalog-section__grid-3--list .engine-card__media { width: 100%; min-width: unset; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .catalog-section__grid-3--list .engine-card__img { border-radius: var(--r-xl) var(--r-xl) 0 0; height: 200px; }
  .catalog-section__grid-3--list .engine-card__body { flex-direction: column; align-items: stretch; }
  .catalog-section__grid-3--list .engine-card__footer { align-items: flex-start; border-top: 1px solid var(--c-border); padding-top: var(--sp-4); }
}

@media (max-width: 639px) {
  .engine-card__media { height: clamp(160px, 48vw, 220px); }
  .engine-card__price { font-size: var(--fs-xl); }
  .engine-card__footer { flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
  .engine-card__footer .btn { width: 100%; justify-content: center; }
  .engine-card__body { padding: var(--sp-4); }
  .engine-card__specs { gap: var(--sp-1); }
}
@media (max-width: 640px) {
  .sort-bar__sort label { display: none; }
  .sort-bar__inner { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .sort-bar__left { justify-content: space-between; }
  .sort-bar__right { align-self: flex-end; }
  .sort-bar__sort select { width: 100%; }
}

.warranty-section { padding: var(--sp-16) 0; background: var(--c-gray-bg); }
.warranty-section__header { text-align: center; margin-bottom: var(--sp-12); }
.warranty-section__title { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.warranty-section__sub { color: var(--c-gray-600); max-width: 32rem; margin-inline: auto; }
.warranty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 768px) { .warranty-grid { grid-template-columns: repeat(3, 1fr); } }

.visual-scheme { padding: var(--sp-16) 0; background: var(--c-white); overflow: hidden; }
@media (max-width: 640px) { .visual-scheme { padding: var(--sp-10) 0; } }
.visual-scheme__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
}
@media (min-width: 1024px) {
  .visual-scheme__grid { flex-direction: row; }
  .visual-scheme__text { width: 50%; }
  .visual-scheme__canvas { width: 50%; }
}
.visual-scheme__canvas {
  position: relative;
  height: clamp(280px, 50vw, 500px);
  width: 100%;
  background: var(--c-gray-100);
  border-radius: var(--r-3xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-scheme__canvas img { width: 100%; height: 100%; object-fit: cover; }
.scheme-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: background var(--t-fast);
  margin-bottom: var(--sp-4);
}
.scheme-item:hover  { background: var(--c-gray-50); }
.scheme-item--active {
  background: var(--c-blue-light) !important;
  border-color: var(--c-blue-border) !important;
}
.scheme-item--active .scheme-item__icon {
  background: var(--c-accent) !important;
  color: var(--c-white) !important;
}
.scheme-item--active .scheme-item__arrow { color: var(--c-accent); }
.scheme-item__icon {
  width: 3rem;
  height: 3rem;
  background: var(--c-gray-100);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  transition: background var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}
.scheme-item:hover .scheme-item__icon { background: var(--c-accent); color: var(--c-white); }
.scheme-item__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.scheme-item__desc { font-size: var(--fs-sm); color: var(--c-gray-500); }
.scheme-item__arrow { margin-left: auto; color: var(--c-gray-300); margin-top: var(--sp-2); }
@media (max-width: 640px) {
  .scheme-item { padding: var(--sp-3); }
  .scheme-item__title { font-size: var(--fs-base); }
}
.why-us { padding: var(--sp-16) 0; background: var(--c-black); color: var(--c-white); }
@media (max-width: 640px) { .why-us { padding: var(--sp-10) 0; } }
.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  text-align: center;
}
@media (min-width: 768px) { .why-us__grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
  padding: var(--sp-6);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-2xl);
  transition: background var(--t-slow);
}
.why-card:hover { background: rgba(255,255,255,.05); }
.why-card__icon {
  width: 4rem;
  height: 4rem;
  background: var(--c-accent);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  margin: 0 auto var(--sp-6);
}
.why-card__title { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.why-card__text { color: var(--c-gray-400); font-size: var(--fs-base); }
.section-title { font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-6); }
.hidden { display: none !important; }
.pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (max-width: 640px) {
  .pills { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: var(--sp-2); }
  .pill { flex-shrink: 0; }
}
.pill {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  background: var(--c-gray-100);
  color: var(--c-gray-600);
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}
.pill:hover, .pill--active { background: var(--c-accent); color: var(--c-white); }

/* ── WooCommerce notices ─────────────────────── */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.woocommerce-message { background: var(--c-green-light); color: var(--c-green); border: 1px solid #86efac; }
.woocommerce-error   { background: var(--c-red-light);   color: var(--c-red);   border: 1px solid #fca5a5; }
.woocommerce-info    { background: var(--c-blue-light);  color: var(--c-blue);  border: 1px solid var(--c-blue-border); }
.woocommerce-error li { list-style: none; }

/* ── Quantity input (WC) ─────────────────────── */
.quantity { display: flex; }
.quantity input.qty {
  width: 60px;
  text-align: center;
  border: 1px solid var(--c-border-input);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-base);
}

/* ── Payment methods ─────────────────────────── */
.wc_payment_methods { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.wc_payment_method { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--sp-4); cursor: pointer; transition: border-color var(--t-base); }
.wc_payment_method:has(input:checked) { border-color: var(--c-accent); background: var(--c-blue-light); }
.wc_payment_method label { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; font-weight: var(--fw-medium); }
.wc_payment_method input[type=radio] { accent-color: var(--c-accent); width: 18px; height: 18px; }
.payment_box { padding: var(--sp-3) var(--sp-3) 0; font-size: var(--fs-sm); color: var(--c-text-muted); }

/* ── Shipping methods ────────────────────────── */
#shipping_method { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
#shipping_method li { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--sp-4); cursor: pointer; transition: border-color var(--t-base); }
#shipping_method li:has(input:checked) { border-color: var(--c-accent); background: var(--c-blue-light); }
#shipping_method label { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
#shipping_method input[type=radio] { accent-color: var(--c-accent); width: 18px; height: 18px; }

/* ── Cart item quantity input ────────────────── */
.woocommerce-cart-form .quantity input { border: 1px solid var(--c-border-input); border-radius: var(--r-md); }

/* ── Select2 override ────────────────────────── */
.select2-container--default .select2-selection--single {
  border: 1px solid var(--c-border-input);
  border-radius: var(--r-md);
  height: 44px;
  display: flex;
  align-items: center;
}

/* ── Order summary on checkout ───────────────── */
.order-summary {
  background: var(--c-gray-50);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.order-summary__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.order-summary__items { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.order-summary__item { display: flex; align-items: center; gap: var(--sp-3); }
.order-summary__item-img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-md); flex-shrink: 0; }
.order-summary__item-info { flex: 1; min-width: 0; }
.order-summary__item-name { font-size: var(--fs-sm); font-weight: var(--fw-medium); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-summary__item-qty  { font-size: var(--fs-xs); color: var(--c-text-muted); }
.order-summary__item-price { font-size: var(--fs-sm); font-weight: var(--fw-semibold); flex-shrink: 0; }
.order-summary__totals,
.order-summary__rows { border-top: 1px solid var(--c-border); padding-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.order-summary__row { display: flex; justify-content: space-between; font-size: var(--fs-sm); }
.order-summary__row--total { font-weight: var(--fw-bold); font-size: var(--fs-base); padding-top: var(--sp-2); border-top: 1px solid var(--c-border); margin-top: var(--sp-2); }
.order-summary__row--discount { color: var(--c-green); }

/* ── Order success (order-success.html) ──────── */
.order-success { padding: var(--sp-16) 0; min-height: 600px; }
.order-success__inner { max-width: 56rem; margin-inline: auto; }
.order-success__hero { text-align: center; margin-bottom: var(--sp-12); }
.order-success__icon {
  width: 6rem;
  height: 6rem;
  background: #DCFCE7;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
}
.order-success__icon i { font-size: 3rem; color: var(--c-green); }
.order-success__title { font-size: clamp(2rem, 4vw, 3.125rem); font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.order-success__sub { font-size: var(--fs-xl); color: var(--c-gray-600); }
.order-card {
  background: var(--c-white);
  border-radius: var(--r-2xl);
  border: 1px solid var(--c-gray-200);
  padding: var(--sp-6) var(--sp-8);
  margin-bottom: var(--sp-8);
}
.order-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-gray-200);
}
@media (min-width: 768px) { .order-card__head { flex-direction: row; align-items: center; justify-content: space-between; } }
.order-card__num-label { font-size: var(--fs-sm); color: var(--c-gray-500); margin-bottom: var(--sp-1); }
.order-card__num { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
.order-card__date-label { font-size: var(--fs-sm); color: var(--c-gray-500); margin-bottom: var(--sp-1); }
.order-card__date { font-size: var(--fs-lg); font-weight: var(--fw-medium); }
.order-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
@media (min-width: 640px) { .order-details-grid { grid-template-columns: repeat(2, 1fr); } }
.order-detail-group__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.order-detail-group__title i { color: var(--c-accent); }
.order-detail-group p { font-size: var(--fs-sm); color: var(--c-gray-600); margin-bottom: var(--sp-2); }
.order-detail-group p.bold { font-weight: var(--fw-medium); color: var(--c-text); }
.order-detail-group__value { font-size: var(--fs-sm); color: var(--c-gray-600); margin-bottom: var(--sp-2); }
.order-detail-group__value--bold { font-weight: var(--fw-semibold); color: var(--c-text); }
.order-detail-group__value--muted { color: var(--c-gray-500); font-size: var(--fs-xs); }
.order-items-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-8); }
.order-items-list__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.order-item {
  display: flex;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-gray-100);
}
.order-item:last-child { border-bottom: none; padding-bottom: 0; }
.order-item__img {
  width: 5rem;
  height: 5rem;
  background: var(--c-gray-50);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
  flex-shrink: 0;
}
.order-item__img img { width: 100%; height: 100%; object-fit: contain; }
.order-item__body { flex: 1; min-width: 0; }
.order-item__name { font-weight: var(--fw-medium); margin-bottom: var(--sp-1); }
.order-item__qty { font-size: var(--fs-sm); color: var(--c-gray-500); }
.order-item__price { font-weight: var(--fw-bold); text-align: right; flex-shrink: 0; white-space: nowrap; }
.order-totals { background: var(--c-gray-bg); border-radius: var(--r-xl); padding: var(--sp-6); }
.order-totals__rows { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.order-totals__row { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--c-gray-600); }
.order-totals__row--discount { color: var(--c-green); }
.order-totals__total { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-4); border-top: 1px solid var(--c-gray-300); }
.order-totals__total-label { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.order-totals__total-price { font-size: var(--fs-3xl); font-weight: var(--fw-bold); }
.order-info-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.order-info-box__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.order-info-box__icon {
  width: 3rem;
  height: 3rem;
  background: var(--c-accent);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: var(--fs-xl);
  flex-shrink: 0;
}
.order-info-box__content {
  flex: 1;
  min-width: 0;
}
.order-info-box__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.order-info-box__list { display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--c-gray-700); padding: 0; margin: 0; list-style: none; }
.order-info-box__item { display: flex; align-items: flex-start; gap: var(--sp-2); line-height: 1.5; }
.order-info-box__item i { color: var(--c-accent); margin-top: 3px; flex-shrink: 0; }
.order-info-box__item span { flex: 1; min-width: 0; }
.order-success__actions { display: flex; flex-direction: column; gap: var(--sp-4); justify-content: center; }
@media (min-width: 640px) { .order-success__actions { flex-direction: row; } }
.order-totals__total { flex-wrap: wrap; gap: var(--sp-2); }
@media (max-width: 640px) {
  .order-success { padding: var(--sp-8) 0; min-height: unset; }
  .order-success__hero { margin-bottom: var(--sp-8); }
  .order-success__icon { width: 4.5rem; height: 4.5rem; }
  .order-success__icon i { font-size: 2.25rem; }
  .order-success__sub { font-size: var(--fs-base); }
  .order-success__actions .btn--lg { width: 100%; }
  .order-info-box { padding: var(--sp-4); margin-bottom: var(--sp-6); }
  .order-info-box__inner { gap: var(--sp-3); }
  .order-info-box__icon  { width: 2rem; height: 2rem; font-size: var(--fs-sm); flex-shrink: 0; }
  .order-info-box__title { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
  .order-info-box__list  { gap: var(--sp-2); font-size: var(--fs-xs); }
  .order-info-box__item  { gap: var(--sp-2); line-height: 1.55; }
  .order-totals__total-label { font-size: var(--fs-sm); }
  .order-totals__total-price { font-size: var(--fs-xl); }
  .order-card__num  { font-size: var(--fs-xl); }
  .order-card__date { font-size: var(--fs-base); }
  .order-details-grid { gap: var(--sp-4); margin-bottom: var(--sp-6); }
  .order-items-list   { gap: var(--sp-3); margin-bottom: var(--sp-6); }
  .order-item__name { white-space: normal; }
  .order-item__img  { width: 3.5rem; height: 3.5rem; }
}

/* ── Favorites page (1:1 с favorites.html) ───────────────────────── */
.favorites-page { padding: var(--sp-12) 0; }
.favorites-page__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-8); flex-wrap: wrap; gap: var(--sp-4); }
.favorites-page__title { font-size: var(--fs-4xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-2); }
.favorites-page__count { color: var(--c-gray-500); }
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}
@media (min-width: 640px)  { .favorites-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .favorites-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  .favorites-page__title { font-size: var(--fs-2xl); }
  .favorites-page__head  { flex-direction: column; align-items: flex-start; }
}

/* ── Checkout page (layout как в checkout.html) ── */
.checkout-page { padding: var(--sp-12) 0; }
.checkout-page__title { font-size: var(--fs-4xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-8); }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: 2fr 1fr; } }
.checkout-steps { display: flex; flex-direction: column; gap: var(--sp-6); }
.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 768px) { .checkout-form-grid { grid-template-columns: repeat(2, 1fr); } }
.checkout-delivery-options { display: flex; flex-direction: column; gap: var(--sp-3); }
.checkout-payment-options { display: flex; flex-direction: column; gap: var(--sp-3); }
.checkout-confirm-note { font-size: var(--fs-xs); color: var(--c-gray-500); text-align: center; line-height: 1.5; }
.checkout-confirm-note a { color: var(--c-accent); }
.checkout-confirm-note a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .checkout-page__title { font-size: var(--fs-2xl); }
  .checkout-step__title { font-size: var(--fs-xl); }
  .order-summary__total-price { font-size: var(--fs-2xl); }
  .checkout-page { padding: var(--sp-8) 0; }
}

/* ═══════════════════════════════════════
   contacts.html — КОНТАКТЫ (layout 1:1)
═══════════════════════════════════════ */
.contact-main { padding: var(--sp-16) 0; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}
@media (min-width: 1024px) { .contact-layout { grid-template-columns: repeat(2, 1fr); } }
.contact-info-panel__title { font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-8); }
.contact-cards-list { display: flex; flex-direction: column; gap: var(--sp-6); margin-bottom: var(--sp-10); }
.contact-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  border: 1px solid var(--c-gray-100);
  transition: box-shadow var(--t-base);
}
.contact-card:hover { box-shadow: var(--shadow-lg); }
.contact-card__inner { display: flex; align-items: flex-start; gap: var(--sp-4); }
.contact-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-white);
  font-size: var(--fs-xl);
}
.contact-card__icon--blue   { background: var(--c-accent); }
.contact-card__icon--green  { background: var(--c-green); }
.contact-card__icon--orange { background: var(--c-orange); }
.contact-card__icon--purple { background: #9333EA; }
.contact-card__title { font-weight: var(--fw-bold); font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.contact-card__link { color: var(--c-accent); font-size: var(--fs-xl); font-weight: var(--fw-medium); }
.contact-card__link:hover { text-decoration: underline; }
.contact-card__text { font-size: var(--fs-sm); color: var(--c-gray-600); margin-top: var(--sp-1); }
.social-panel { background: var(--c-gray-bg); border-radius: var(--r-xl); padding: var(--sp-6); }
.social-panel__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.social-panel__links { display: flex; gap: var(--sp-3); }
.social-panel__link {
  width: 3rem;
  height: 3rem;
  background: var(--c-white);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  color: var(--c-text);
  transition: background var(--t-base), color var(--t-base);
}
.social-panel__link:hover { background: var(--c-accent); color: var(--c-white); }
.contact-form-panel {
  background: var(--c-white);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  border: 1px solid var(--c-gray-100);
  box-shadow: var(--shadow-lg);
}
.contact-form-panel__title { font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-6); }
.contact-form-panel__sub { color: var(--c-gray-600); margin-bottom: var(--sp-8); }
.contact-form { display: flex; flex-direction: column; gap: var(--sp-5); }
.map-section { padding: var(--sp-16) 0; }
.map-section__title { font-size: var(--fs-4xl); font-weight: var(--fw-bold); text-align: center; margin-bottom: var(--sp-12); }
.map-wrapper { background: var(--c-white); border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--c-gray-100); }
.map-frame { line-height: 0; }
.map-frame iframe { display: block; width: 100%; height: clamp(260px, 50vw, 500px); border: 0; }
.map-info { padding: var(--sp-8); background: var(--c-gray-bg); }
.map-info__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 768px) { .map-info__grid { grid-template-columns: repeat(3, 1fr); } }
.map-info-item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.map-info-item i { color: var(--c-accent); font-size: var(--fs-xl); margin-top: 2px; }
.map-info-item__title { font-weight: var(--fw-bold); margin-bottom: var(--sp-1); }
.map-info-item__text { font-size: var(--fs-sm); color: var(--c-gray-600); }
.contact-features { padding: var(--sp-16) 0; background: var(--c-gray-bg); }
.contact-features__title { font-size: var(--fs-4xl); font-weight: var(--fw-bold); text-align: center; margin-bottom: var(--sp-12); }
.contact-features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--sp-6);
}
@media (min-width: 640px)  { .contact-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-features-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  .contact-info-panel__title,
  .contact-form-panel__title { font-size: var(--fs-2xl); }
  .contact-features__title,
  .map-section__title { font-size: var(--fs-2xl); }
  .map-frame iframe { height: 300px; }
  .contact-main { padding: var(--sp-10) 0; }
  .contact-form-panel { padding: var(--sp-5); }
  .contact-card__link { word-break: break-all; }
}

/* ═══════════════════════════════════════
   delivery.html — ДОСТАВКА И ОПЛАТА (layout 1:1)
═══════════════════════════════════════ */
.delivery-methods { padding: var(--sp-16) 0; }
.delivery-methods__title { font-size: var(--fs-4xl); font-weight: var(--fw-bold); text-align: center; margin-bottom: var(--sp-12); }
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
}
@media (min-width: 768px) { .delivery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .delivery-methods { padding: var(--sp-10) 0; }
  .delivery-methods__title { font-size: var(--fs-2xl); }
  .delivery-card { padding: var(--sp-5); }
}
.delivery-card {
  background: var(--c-white);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  border: 1px solid var(--c-gray-100);
  transition: box-shadow var(--t-slow);
}
.delivery-card:hover { box-shadow: var(--shadow-xl); }
.delivery-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  color: var(--c-white);
  margin-bottom: var(--sp-6);
}
.delivery-card__icon--green  { background: var(--c-green); }
.delivery-card__icon--orange { background: var(--c-orange); }
.delivery-card__title { font-size: var(--fs-2xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.delivery-card__desc { color: var(--c-gray-600); margin-bottom: var(--sp-6); }
.delivery-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--c-gray-600); margin-bottom: var(--sp-6); }
.delivery-card__list li { display: flex; align-items: center; gap: var(--sp-2); }
.delivery-card__list li i { color: var(--c-green); }
.delivery-card__footer { border-top: 1px solid var(--c-gray-200); padding-top: var(--sp-4); display: flex; justify-content: space-between; align-items: center; }
.delivery-card__price-label { font-weight: var(--fw-medium); }
.delivery-card__price { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.delivery-card__price--free { color: var(--c-green); }
.delivery-card__price-note { font-size: var(--fs-xs); color: var(--c-gray-500); margin-top: 2px; }
.payment-section { padding: var(--sp-16) 0; background: var(--c-gray-bg); }
.payment-section__title { font-size: var(--fs-4xl); font-weight: var(--fw-bold); text-align: center; margin-bottom: var(--sp-12); }
.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 640px)  { .payment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .payment-grid { grid-template-columns: repeat(4, 1fr); } }
.faq-section { padding: var(--sp-16) 0; }
.faq-section__title { font-size: var(--fs-4xl); font-weight: var(--fw-bold); text-align: center; margin-bottom: var(--sp-12); }
.faq-section__inner { max-width: 56rem; margin-inline: auto; }
@media (max-width: 640px) {
  .delivery-methods__title,
  .payment-section__title,
  .faq-section__title { font-size: var(--fs-2xl); }
}

/* ── Single product page (product.html layout) ─────────────────────── */
.product-page { padding: var(--sp-12) 0; }
.product-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
@media (min-width: 1024px) { .product-page__grid { grid-template-columns: repeat(2, 1fr); } }

/* Product images panel */
.product-images { display: flex; flex-direction: column; gap: var(--sp-4); }
.product-images__main {
  position: relative;
  background: var(--c-gray-50);
  border-radius: var(--r-2xl);
  overflow: hidden;
  height: clamp(280px, 50vw, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
}
.product-images__main img { width: 100%; height: 100%; object-fit: contain; }
.product-images__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.9);
  border: none;
  color: var(--c-text);
  font-size: var(--fs-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--t-fast), color var(--t-fast);
  box-shadow: var(--shadow-md);
}
.product-images__arrow:hover { background: var(--c-white); color: var(--c-accent); }
.product-images__arrow--prev { left: var(--sp-3); }
.product-images__arrow--next { right: var(--sp-3); }
.product-images__arrow.is-hidden { display: none; }
.product-images__badges {
  position: absolute;
  top: var(--sp-6);
  left: var(--sp-6);
  display: flex;
  gap: var(--sp-2);
}
.product-images__fav-btn {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--c-white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gray-400);
  font-size: var(--fs-xl);
  box-shadow: var(--shadow-lg);
  transition: color var(--t-fast);
  border: none;
  cursor: pointer;
}
.product-images__fav-btn:hover { color: #EF4444; }
.product-images__fav-btn.fav-toggle--active { color: #EF4444; }
.product-images__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.product-images__thumb {
  height: 6rem;
  background: var(--c-gray-50);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.product-images__thumb--active { border-color: var(--c-accent); }
.product-images__thumb:hover:not(.product-images__thumb--active) { border-color: var(--c-accent); }
.product-images__thumb img { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-2); }
.product-images__main-img { cursor: zoom-in; }

/* Lightbox для увеличения фото */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), visibility var(--t-fast);
}
.product-lightbox--open {
  opacity: 1;
  visibility: visible;
}
.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}
.product-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.9);
  border: none;
  color: var(--c-text);
  font-size: var(--fs-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--t-fast), color var(--t-fast);
}
.product-lightbox__arrow:hover { background: var(--c-white); color: var(--c-accent); }
.product-lightbox__arrow--prev { left: var(--sp-4); }
.product-lightbox__arrow--next { right: var(--sp-4); }
.product-lightbox__arrow.is-hidden { display: none; }
.product-lightbox__content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2xl);
}
.product-lightbox__close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--c-white);
  border: none;
  border-radius: var(--r-full);
  color: var(--c-text);
  font-size: var(--fs-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.product-lightbox__close:hover {
  background: var(--c-gray-100);
  color: var(--c-black);
}
@media (max-width: 640px) {
  .product-lightbox { padding: var(--sp-4); }
  .product-lightbox__close { top: var(--sp-2); right: var(--sp-2); }
}
body.lightbox-open { overflow: hidden; }

/* Product info panel */
.product-info { display: flex; flex-direction: column; gap: var(--sp-8); }
.product-info__title { font-size: var(--fs-4xl); font-weight: var(--fw-bold); color: var(--c-text); margin-bottom: var(--sp-2); }
.product-info__subtitle { font-size: var(--fs-xl); color: var(--c-gray-600); margin-bottom: var(--sp-4); }
.product-info__article { font-size: var(--fs-sm); color: var(--c-gray-600); }

/* Price block */
.product-price-block {
  background: var(--c-gray-bg);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
}
.product-price-block__price { display: flex; align-items: flex-end; gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.product-price-block__main { font-size: var(--fs-4xl); font-weight: var(--fw-bold); }
.product-price-block__old { font-size: var(--fs-xl); color: var(--c-gray-400); text-decoration: line-through; }
.product-price-block__disc { background: var(--c-green); color: var(--c-white); font-size: var(--fs-sm); font-weight: var(--fw-bold); padding: 0.25em 0.5em; border-radius: var(--r-sm); }
.product-price-block__status { font-size: var(--fs-sm); color: var(--c-green); font-weight: var(--fw-medium); display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.product-price-block__actions { display: flex; flex-direction: column; gap: var(--sp-4); }
.product-price-block__row { display: flex; align-items: stretch; gap: var(--sp-4); }
.product-price-block__secondary { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }

/* Tabs & description */
.product-tabs-section { border-top: 1px solid var(--c-gray-200); padding-top: var(--sp-12); }
.product-specs-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.product-desc-text p { color: var(--c-gray-700); line-height: 1.7; margin-bottom: var(--sp-4); }
.product-desc-text h4 { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--sp-2); }
.product-desc-text ul { list-style: disc; padding-left: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-1); color: var(--c-gray-700); }

/* Related products */
.related-products { border-top: 1px solid var(--c-gray-200); padding-top: var(--sp-12); }
.related-products__title { font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-8); }
.related-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 640px)  { .related-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* product.html — mobile adjustments */
@media (max-width: 640px) {
  .product-info__title { font-size: var(--fs-2xl); }
  .product-info__subtitle { font-size: var(--fs-base); }
  .product-price-block__main { font-size: var(--fs-2xl); }
  .product-price-block__row { flex-direction: column; }
  .product-images__thumbs { grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
  .product-images__thumb { height: 4.5rem; }
}

/* ── Engine detail page (engine-detail.html layout) ─────────────────────── */
.product-detail { padding: var(--sp-12) 0; }
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
}
@media (min-width: 1024px) { .product-detail__grid { grid-template-columns: repeat(2, 1fr); } }

.product-info__price-block {
  border-top: 1px solid var(--c-gray-200);
  border-bottom: 1px solid var(--c-gray-200);
  padding: var(--sp-6) 0;
}
.product-info__price { display: flex; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; }
.product-info__price-main { font-size: var(--fs-4xl); font-weight: var(--fw-bold); color: var(--c-accent); }
.product-info__price-old { font-size: var(--fs-xl); color: var(--c-gray-400); text-decoration: line-through; }
.product-info__price-disc { background: var(--c-red); color: var(--c-white); font-size: var(--fs-xs); font-weight: var(--fw-bold); padding: 0.25em 0.5em; border-radius: var(--r-sm); align-self: center; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  font-size: var(--fs-sm);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-gray-100);
}
.spec-row__label { color: var(--c-gray-600); }
.spec-row__val { font-weight: var(--fw-medium); }
.spec-row__val--green { color: var(--c-green); font-weight: var(--fw-medium); }

.product-actions { display: flex; flex-direction: column; gap: var(--sp-6); }
.product-actions__qty { display: flex; align-items: center; gap: var(--sp-4); }
.product-actions__qty-label { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.product-actions__delivery-info { display: flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-sm); color: var(--c-gray-600); flex-wrap: wrap; }
.product-actions__delivery-item { display: flex; align-items: center; gap: var(--sp-2); }
.product-actions__delivery-item i { color: var(--c-accent); }

.compatibility-block {
  background: var(--c-gray-50);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
.compatibility-block__title {
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.compatibility-block__title i { color: var(--c-accent); }
.compat-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  padding: var(--sp-2) 0;
}
.compat-row__model { color: var(--c-gray-600); }
.compat-row__years { font-weight: var(--fw-medium); }

.product-desc-section { padding: var(--sp-16) 0; background: var(--c-gray-bg); }
.product-desc-section__inner { max-width: 56rem; margin-inline: auto; }
.product-desc h3 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.product-desc h4 { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.product-desc p { color: var(--c-gray-600); margin-bottom: var(--sp-6); line-height: 1.7; }
.product-desc ul { list-style: disc; padding-left: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); color: var(--c-gray-600); margin-bottom: var(--sp-6); }

.related-section { padding: var(--sp-16) 0; }
.related-section__title { font-size: var(--fs-3xl); font-weight: var(--fw-bold); text-align: center; margin-bottom: var(--sp-12); }
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 640px) {
  .product-detail .product-info__title { font-size: var(--fs-2xl); }
  .product-detail .product-info__subtitle { font-size: var(--fs-base); }
  .specs-grid { grid-template-columns: 1fr; }
  .product-actions__qty { flex-wrap: wrap; }
}

/* ── Cart page (layout cart.html) ───────────────── */
.cart-page { padding: var(--sp-12) 0; }
.cart-page__title { font-size: var(--fs-4xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-8); }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 2fr 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: var(--sp-4); }
.cart-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.cart-items-header__count { font-size: var(--fs-sm); color: var(--c-gray-500); }
.cart-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-gray-600);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast);
}
.cart-clear-btn:hover { color: var(--c-red); }
.cart-empty {
  text-align: center;
  padding: var(--sp-20) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}
.cart-empty i { font-size: 4rem; color: var(--c-gray-300); }
.cart-empty p { margin: 0; font-size: var(--fs-lg); color: var(--c-text-muted); }
@media (max-width: 640px) {
  .cart-page__title { font-size: var(--fs-2xl); }
  .cart-page { padding: var(--sp-8) 0; }
  .cart-items-header { flex-wrap: wrap; gap: var(--sp-2); }
}

/* ── Generic page ────────────────────────────── */
.generic-page { padding: var(--sp-12) 0; }
.page-title { font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin: var(--sp-4) 0 var(--sp-8); }
.page-content { max-width: 800px; line-height: 1.8; }
.page-content h2, .page-content h3 { margin-top: var(--sp-8); }

/* ── Breadcrumbs (layout uses breadcrumb__nav; list for mbcar_breadcrumbs) ── */
.breadcrumb__list { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); color: var(--c-gray-600); }
.breadcrumb__item a { color: var(--c-gray-600); transition: color var(--t-fast); }
.breadcrumb__item a:hover { color: var(--c-accent); }
.breadcrumb__item--current { color: var(--c-text); font-weight: var(--fw-medium); }

/* ── Badge ───────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0.2rem var(--sp-2); border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1; }
.badge--green  { background: var(--c-green-light); color: var(--c-green); }
.badge--orange { background: var(--c-orange-light); color: var(--c-orange); }
.badge--red    { background: var(--c-red-light);    color: var(--c-red); }
.badge--blue   { background: var(--c-blue-light);   color: var(--c-blue); }
.badge--new    { background: #f0fdf4; color: #15803d; }

/* ── Buttons ─────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: var(--fw-semibold); font-family: var(--font); cursor: pointer; transition: all var(--t-base); border: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.btn--primary  { background: var(--c-accent);  color: var(--c-white); border-color: var(--c-accent); }
.btn--primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.btn--outline  { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn--outline:hover { background: var(--c-blue-light); }
.btn--ghost    { background: var(--c-gray-100); color: var(--c-text); border-color: transparent; }
.btn--ghost:hover { background: var(--c-gray-200); }
.btn--lg  { padding: var(--sp-4) var(--sp-8); font-size: var(--fs-base); }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Products grid ───────────────────────────── */
.products-grid { display: grid; gap: var(--sp-5); }
.products-grid--4 { grid-template-columns: repeat(4, 1fr); }
.products-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1279px) { .products-grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1023px) { .products-grid--4 { grid-template-columns: repeat(2, 1fr); } .products-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid--4, .products-grid--3 { grid-template-columns: 1fr; } }

/* ── Section ─────────────────────────────────── */
.section { padding: var(--sp-16) 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-8); flex-wrap: wrap; gap: var(--sp-4); }
.section__title { font-size: var(--fs-2xl); font-weight: var(--fw-bold); margin: 0; }
.section__title--center { text-align: center; width: 100%; }
.section__link { font-size: var(--fs-sm); color: var(--c-accent); display: flex; align-items: center; gap: var(--sp-2); transition: gap var(--t-base); }
.section__link:hover { gap: var(--sp-3); }

/* ── Catalog page (catalog.html layout) ──────── */
.catalog-header { padding: var(--sp-12) 0; background: var(--c-gray-bg); }
@media (max-width: 640px) { .catalog-header { padding: var(--sp-8) 0; } }
.catalog-header__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .catalog-header__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.catalog-header__title { font-size: clamp(2rem, 4vw, 3.125rem); font-weight: var(--fw-bold); letter-spacing: -0.02em; margin-bottom: var(--sp-4); }
.catalog-header__sub { font-size: var(--fs-lg); color: var(--c-gray-600); }
.catalog-header__search { width: 100%; max-width: 26rem; position: relative; }
.catalog-header__search input {
  width: 100%;
  height: 3rem;
  padding: 0 2.8rem 0 2.8rem;
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  outline: none;
  background: var(--c-white);
  transition: border-color var(--t-fast);
}
.catalog-header__search input:focus { border-color: var(--c-black); }
.catalog-search__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-gray-400);
  font-size: var(--fs-sm);
  pointer-events: none;
}
.catalog-search__clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-gray-400);
  font-size: var(--fs-base);
  transition: color var(--t-fast);
  line-height: 1;
}
.catalog-search__clear:hover { color: var(--c-black); }
.catalog-search__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--c-white);
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.catalog-search__dropdown.csearch-dropdown--open { display: block; }
.catalog-layout { display: flex; flex-direction: column; gap: var(--sp-8); padding: var(--sp-12) 0; }
@media (max-width: 640px) { .catalog-layout { padding: var(--sp-6) 0; } }
@media (min-width: 1024px) { .catalog-layout { flex-direction: row; } }
.catalog-main { flex: 1; }
.products-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 640px)  { .products-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── List view ── */
.products-grid-3--list {
  grid-template-columns: 1fr !important;
  gap: var(--sp-4);
}
.products-grid-3--list .product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.products-grid-3--list .product-card__media {
  width: 180px;
  min-width: 180px;
  flex-shrink: 0;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
.products-grid-3--list .product-card__img {
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
.products-grid-3--list .product-card__body {
  flex: 1;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.products-grid-3--list .product-card__footer {
  border-top: none;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: var(--sp-3);
  min-width: 140px;
}
@media (max-width: 560px) {
  .products-grid-3--list .product-card { flex-direction: column; }
  .products-grid-3--list .product-card__media { width: 100%; min-width: unset; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .products-grid-3--list .product-card__img   { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .products-grid-3--list .product-card__footer { align-items: flex-start; padding: 0 var(--sp-5) var(--sp-5); border-top: 1px solid var(--c-border); }
}

@media (max-width: 1023px) { .catalog-header__search { max-width: 100%; } }
@media (max-width: 640px) {
  .catalog-header__title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .catalog-header__sub { font-size: var(--fs-base); }
}
.catalog-page { padding: var(--sp-8) 0 var(--sp-16); }
.catalog-page__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.catalog-page__title { font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin: 0; }
.catalog-page__search { display: flex; align-items: center; gap: var(--sp-3); border: 1px solid var(--c-border-input); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); flex: 1; max-width: 400px; }
.catalog-page__search i { color: var(--c-text-muted); }
.catalog-page__search input { border: none; outline: none; flex: 1; font-size: var(--fs-sm); font-family: var(--font); }
.catalog-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
@media (min-width: 1024px) {
  .catalog-sidebar { width: 20rem; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; }
}
.sidebar-block { margin-bottom: var(--sp-6); }
.sidebar-block__title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted); margin: 0 0 var(--sp-3); }
.sidebar-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.sidebar-cats__label { display: flex; align-items: center; gap: var(--sp-2); cursor: pointer; font-size: var(--fs-sm); }
.sidebar-cats__count { margin-left: auto; color: var(--c-text-muted); font-size: var(--fs-xs); }
.sidebar-check { display: flex; align-items: center; gap: var(--sp-2); cursor: pointer; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.sidebar-check input { accent-color: var(--c-accent); }
.price-range { display: flex; align-items: center; gap: var(--sp-2); }
.price-range__input { flex: 1; border: 1px solid var(--c-border-input); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); font-family: var(--font); outline: none; min-width: 0; }
.catalog-sidebar-backdrop,
.catalog-sidebar__backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }
.catalog-sidebar-backdrop.is-visible { display: block; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); gap: var(--sp-4); flex-wrap: wrap; }
@media (max-width: 480px) {
  .catalog-toolbar { gap: var(--sp-3); }
  .catalog-toolbar__count { font-size: var(--fs-xs); }
  .catalog-toolbar__sort { max-width: 140px; }
}
.catalog-toolbar__left { display: flex; align-items: center; gap: var(--sp-4); }
.catalog-toolbar__count { font-size: var(--fs-sm); color: var(--c-text-muted); }
.catalog-toolbar__right { display: flex; align-items: center; gap: var(--sp-3); }
.catalog-toolbar__filter-btn { display: none; cursor: pointer; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--c-border-input); border-radius: var(--r-md); background: var(--c-white); font-size: var(--fs-sm); }
.catalog-toolbar__sort { border: 1px solid var(--c-border-input); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); font-family: var(--font); outline: none; cursor: pointer; }
.view-toggle { display: flex; border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.view-toggle__btn { padding: var(--sp-2) var(--sp-3); background: none; border: none; cursor: pointer; color: var(--c-text-muted); font-size: var(--fs-sm); transition: all var(--t-fast); }
.view-toggle__btn--active, .view-toggle__btn:hover { background: var(--c-accent); color: var(--c-white); }
.filter-badge { background: var(--c-accent); color: white; border-radius: var(--r-full); font-size: var(--fs-xs); padding: 2px 6px; margin-left: var(--sp-2); }
.catalog__empty { grid-column: 1/-1; text-align: center; padding: var(--sp-12); color: var(--c-text-muted); }
.catalog-pagination { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-10); flex-wrap: wrap; }
.catalog-pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid var(--c-border); font-size: var(--fs-sm); color: var(--c-text); transition: all var(--t-fast); }
.catalog-pagination .page-numbers.current, .catalog-pagination .page-numbers:hover { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }
.sidebar-reset { width: 100%; justify-content: center; margin-top: var(--sp-4); }
.catalog-sidebar__mobile-head { display: none; }
@media (max-width: 1023px) {
  .catalog-layout { flex-direction: column; }
  .catalog-sidebar__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-4);
    border-bottom: 1px solid var(--c-gray-200);
  }
  .catalog-sidebar__mobile-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
  }
  .catalog-sidebar__mobile-title i { color: var(--c-accent); }
  .catalog-sidebar__close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-gray-100);
    border: none;
    cursor: pointer;
    color: var(--c-gray-600);
    transition: background var(--t-fast), color var(--t-fast);
  }
  .catalog-sidebar__close:hover { background: var(--c-gray-200); }
  .catalog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 85vw);
    z-index: 95;
    border-radius: 0;
    max-height: 100vh;
    transform: translateX(-100%);
    transition: transform var(--t-slow);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .catalog-sidebar.is-open { transform: translateX(0); }
  .catalog-toolbar__filter-btn { display: flex; }
}
