/* =========================================================
   Market Box Clean Commerce V1
   Спокойный слой для основного магазина: меньше градиентов,
   меньше декоративного шума, больше ощущения каталога/площадки.
   Offer-лендинги остаются отдельным продажным режимом.
   ========================================================= */
:root {
  --mb-clean-bg: #f6f7f9;
  --mb-clean-surface: #ffffff;
  --mb-clean-surface-2: #f9fafb;
  --mb-clean-border: #e5e7eb;
  --mb-clean-border-strong: #d1d5db;
  --mb-clean-text: #111827;
  --mb-clean-muted: #6b7280;
  --mb-clean-header: #111827;
  --mb-clean-primary: #c62828;
  --mb-clean-primary-hover: #b91c1c;
  --mb-clean-blue: #2563eb;
  --mb-clean-green: #15803d;
  --mb-clean-radius: 12px;
  --mb-clean-shadow: 0 2px 10px rgba(15, 23, 42, .06);
  --mb-clean-shadow-hover: 0 5px 18px rgba(15, 23, 42, .10);
}

body {
  background: var(--mb-clean-bg) !important;
  color: var(--mb-clean-text) !important;
}

/* Header: проще, без “премиум-градиентной” перегрузки */
.site-header-v18-1,
.site-header {
  background: var(--mb-clean-header) !important;
  background-image: none !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 2px 12px rgba(15,23,42,.14) !important;
}

.site-header-v18-1 .container {
  gap: 10px !important;
}

.site-header-v18-1 .header-topline {
  color: rgba(255,255,255,.70) !important;
}

.site-header-v18-1 .header-topline-badge,
.site-header-v18-1 .header-topline-right a,
.site-header-v18-1 .desktop-nav > a,
.site-header-v18-1 .header-trust-strip span,
.site-header-v18-1 .desktop-cart-link,
.site-header-v18-1 .mobile-menu-toggle,
.site-header-v18-1 .mobile-cart-link {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: rgba(255,255,255,.84) !important;
  box-shadow: none !important;
}

.site-header-v18-1 .header-topline-badge {
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.site-header-v18-1 .desktop-logo-mark,
.site-header-v18-1 .mobile-logo-mark {
  background: #fff !important;
  color: #111827 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
}

.site-header-v18-1 .site-logo-image {
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}

.site-header-v18-1 .desktop-logo-text strong,
.site-header-v18-1 .mobile-logo-text {
  letter-spacing: -.01em !important;
  font-weight: 800 !important;
}

.site-header-v18-1 .desktop-logo-text small {
  color: rgba(255,255,255,.56) !important;
  font-weight: 600 !important;
}

.site-header-v18-1 .desktop-nav-category span[aria-hidden="true"],
.mobile-menu-category-link span[aria-hidden="true"] {
  display: none !important;
}

.site-header-v18-1 .desktop-nav > a:hover,
.site-header-v18-1 .header-topline-right a:hover,
.site-header-v18-1 .desktop-cart-link:hover {
  transform: none !important;
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.16) !important;
}

.site-header-v18-1 .desktop-header-search input[type="search"],
.site-header-v18-1 .mobile-search-row .mobile-header-search input[type="search"] {
  border-radius: 10px !important;
  border-color: rgba(255,255,255,.20) !important;
  box-shadow: none !important;
}

.site-header-v18-1 .desktop-header-search button,
.site-header-v18-1 .mobile-search-row .mobile-header-search button,
.header-search-form button,
.search-form-page button,
.btn,
.add-cart-btn,
.home-v18-card-buy,
.category-v18-card-actions .btn,
.search-v18-2-card .btn {
  background: var(--mb-clean-primary) !important;
  background-image: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.btn:hover,
.add-cart-btn:hover,
.home-v18-card-buy:hover,
.site-header-v18-1 .desktop-header-search button:hover,
.site-header-v18-1 .mobile-search-row .mobile-header-search button:hover {
  opacity: 1 !important;
  transform: none !important;
  background: var(--mb-clean-primary-hover) !important;
}

.site-header-v18-1 .desktop-cart-link b[data-cart-count],
.site-header-v18-1 .mobile-cart-count {
  background: var(--mb-clean-primary) !important;
  box-shadow: none !important;
}

/* Cards and catalog surfaces */
.card,
.product-card,
.home-v18-product-card,
.category-product-card-v18-2,
.search-v18-2-card,
.related-card,
.category-card,
.home-v18-category-card,
.category-subcat-card,
.lighting-subcat-card,
.category-benefit-card,
.category-use-card,
.category-faq-item,
.trust-content-card-v18_4,
.trust-sidebar-card-v18_4,
.blog-card-v20-3 {
  background: var(--mb-clean-surface) !important;
  border: 1px solid var(--mb-clean-border) !important;
  border-radius: var(--mb-clean-radius) !important;
  box-shadow: var(--mb-clean-shadow) !important;
}

.card:hover,
.product-card:hover,
.home-v18-product-card:hover,
.category-product-card-v18-2:hover,
.search-v18-2-card:hover,
.related-card:hover,
.category-card:hover,
.home-v18-category-card:hover,
.category-subcat-card:hover,
.lighting-subcat-card:hover {
  transform: none !important;
  box-shadow: var(--mb-clean-shadow-hover) !important;
}

.product-image-wrap,
.home-v18-product-media,
.home-v18-hero-media,
.home-v18-slim-img,
.category-v18-image-wrap,
.search-v18-2-image-wrap,
.related-card .product-image-wrap,
.category-subcat-image,
.lighting-subcat-image,
.category-hero-visual,
.category-page-product-first-v381 .category-hero-visual-v381 {
  background: var(--mb-clean-surface-2) !important;
  background-image: none !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.product-card img,
.home-v18-product-img,
.category-v18-product-img,
.search-v18-2-product-img,
.related-card img,
.category-subcat-image img,
.lighting-subcat-image img,
.category-hero-visual img,
.category-page-product-first-v381 .category-hero-visual-v381 img {
  border-radius: 10px !important;
}

.product-card h3,
.home-v18-product-title,
.category-v18-card-text h3,
.search-v18-2-title {
  color: var(--mb-clean-text) !important;
  font-weight: 750 !important;
}

.current-price,
.category-v18-price,
.home-v18-price,
.product-card-price .current-price {
  color: var(--mb-clean-primary) !important;
}

.old-price,
.home-v18-price del,
.category-v18-price del {
  color: #9ca3af !important;
}

/* Badges: меньше разноцветного шума */
.product-badge,
.product-stock-badge,
.category-v18-card-kicker span,
.home-v18-chip,
.subcategory-btn,
.category-filter-chip-v41,
.category-filter-chip-v39 {
  box-shadow: none !important;
  border-radius: 999px !important;
}

.product-badge {
  background: #374151 !important;
  color: #fff !important;
  padding: 5px 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.product-badge.badge-discount,
.product-badge.badge-hot-discount,
.product-badge.badge-clearance {
  background: var(--mb-clean-primary) !important;
}

.product-badge.badge-new,
.product-badge.badge-recommended,
.product-badge.badge-hit-sale,
.product-badge.badge-promo,
.product-badge.badge-top-price,
.product-badge.badge-limited {
  background: #374151 !important;
}

.product-stock-badge.in-stock {
  background: #ecfdf5 !important;
  color: var(--mb-clean-green) !important;
}

.product-stock-badge.out-of-stock {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}

/* Category / section hero: более B2B/каталожный вид */
.category-hero,
.lighting-hero,
.search-v17-hero,
.blog-hero-v20-3,
.trust-hero-v18_4,
.category-page-product-first-v381 .category-hero-product-first-v381,
.home-v18-hero {
  background: var(--mb-clean-surface) !important;
  background-image: none !important;
  color: var(--mb-clean-text) !important;
  border: 1px solid var(--mb-clean-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--mb-clean-shadow) !important;
}

.category-hero-text p,
.lighting-hero-text p,
.search-v17-hero p,
.blog-hero-content-v20-3 > p:not(.eyebrow),
.trust-hero-v18_4 p,
.category-page-product-first-v381 .category-hero-product-first-v381 p,
.home-v18-hero p {
  color: var(--mb-clean-muted) !important;
}

.category-hero-text h1,
.lighting-hero-text h1,
.search-v17-hero h1,
.blog-hero-content-v20-3 h1,
.trust-hero-v18_4 h1,
.category-page-product-first-v381 .category-hero-product-first-v381 h1,
.home-v18-hero h1 {
  color: var(--mb-clean-text) !important;
  font-weight: 800 !important;
}

.category-hero-badge,
.lighting-hero-badge,
.eyebrow,
.home-v18-eyebrow,
.category-page-product-first-v381 .category-hero-kicker-v381 {
  background: #f3f4f6 !important;
  border: 1px solid var(--mb-clean-border) !important;
  color: #374151 !important;
  box-shadow: none !important;
}

.category-ghost-btn,
.lighting-ghost-btn,
.btn-secondary,
.category-v18-card-actions .details-btn,
.product-card-actions .details-btn,
a.product-details-btn {
  background: #fff !important;
  color: var(--mb-clean-text) !important;
  border: 1px solid var(--mb-clean-border-strong) !important;
  box-shadow: none !important;
}

.category-ghost-btn:hover,
.lighting-ghost-btn:hover,
.btn-secondary:hover,
.category-v18-card-actions .details-btn:hover,
a.product-details-btn:hover {
  background: #f9fafb !important;
  color: var(--mb-clean-primary) !important;
}

/* Home/category sections: спокойнее */
.section,
.home-v18-section,
.category-section-v18,
.category-page-product-first-v381 .category-products-panel-v39,
.category-page-product-first-v381 .category-filter-panel-v39,
.category-filter-panel-v41 {
  border-color: var(--mb-clean-border) !important;
}

.subcategory-btn,
.home-v18-chip,
.category-filter-chip-v41,
.category-filter-chip-v39 {
  background: #fff !important;
  border: 1px solid var(--mb-clean-border) !important;
  color: #374151 !important;
}

.subcategory-btn:hover,
.subcategory-btn.active,
.home-v18-chip:hover,
.category-filter-chip-v41.is-active,
.category-filter-chip-v39.is-active {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: var(--mb-clean-primary) !important;
}

/* Floating helpers keep their function, but look less “toy-like” */
.category-floating-filter-v41,
.category-floating-filter-v39,
.mbx-ai-site-launcher-v47,
.mbx-ai-assistant-button,
.scroll-top-btn {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18) !important;
}

.category-floating-filter-v41,
.category-floating-filter-v39 {
  background: #111827 !important;
  color: #fff !important;
}

/* Mobile: less height/noise */
@media (max-width: 768px) {
  .site-header-v18-1 {
    box-shadow: 0 2px 12px rgba(15,23,42,.16) !important;
  }

  .site-header-v18-1 .header-trust-strip span {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.10) !important;
  }

  .category-hero,
  .lighting-hero,
  .category-page-product-first-v381 .category-hero-product-first-v381,
  .home-v18-hero {
    border-radius: 12px !important;
  }

  .product-badge {
    font-size: 10px !important;
    padding: 4px 7px !important;
  }
}
