/* === OZON OVERRIDE: Переопределение существующих классов === */

/* ШАПКА */
.navbar {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

/* КАРТОЧКИ ТОВАРОВ */
.product-card,
.top-product-card {
  background: #fff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: box-shadow 0.25s, transform 0.25s !important;
  border: 1px solid transparent !important;
}
.product-card:hover,
.top-product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  transform: translateY(-3px) !important;
  border-color: #E8ECEF !important;
}

/* Изображение в карточке */
.product-card .product-image,
.top-product-card .product-image {
  height: 180px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%) !important;
  border-bottom: 1px solid #E8ECEF !important;
}
.product-card .product-image img,
.top-product-card .product-image img {
  max-height: 90px !important;
  max-width: 85% !important;
  object-fit: contain !important;
  transition: transform 0.3s !important;
}
.product-card:hover .product-image img,
.top-product-card:hover .product-image img {
  transform: scale(1.05) !important;
}

/* Название вендора */
.product-vendor {
  font-size: 11px !important;
  color: #96A3AE !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

/* Название товара */
.product-name {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #001A34 !important;
}
.product-name a {
  color: inherit !important;
  text-decoration: none !important;
}
.product-name a:hover {
  color: #005BFF !important;
}

/* Описание */
.product-desc {
  font-size: 13px !important;
  color: #96A3AE !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Цена */
.product-price {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #001A34 !important;
}

/* Кнопки */
.btn-primary,
.top-product-more,
.product-footer a[href] {
  background: #005BFF !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s !important;
}
.btn-primary:hover,
.top-product-more:hover {
  background: #0040cc !important;
}

/* Бейджи */
.product-badge,
.top-product-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
}
.badge-sale { background: #FF6B00 !important; }
.badge-hit { background: #10C44C !important; }

/* Фильтры */
.filter-chip,
.catalog-filter a {
  background: #fff !important;
  border: 1px solid #E8ECEF !important;
  border-radius: 20px !important;
  padding: 7px 18px !important;
  font-size: 14px !important;
  color: #001A34 !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}
.filter-chip:hover,
.filter-chip.active,
.catalog-filter a:hover {
  border-color: #005BFF !important;
  color: #005BFF !important;
  background: #F0F5FF !important;
}

/* Пагинация */
.pagination a,
.pagination span {
  min-width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: 1px solid #E8ECEF !important;
  background: #fff !important;
  color: #001A34 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin: 0 4px !important;
}
.pagination a:hover {
  border-color: #005BFF !important;
  color: #005BFF !important;
}
.pagination .current {
  background: #005BFF !important;
  color: #fff !important;
  border-color: #005BFF !important;
}

/* Корзина */
.cart-btn,
#cart-toggle {
  background: #F91155 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
}

/* Сетка */
.products-grid,
.catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 16px !important;
}

/* Адаптив */
@media (max-width: 768px) {
  .products-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
@media (max-width: 480px) {
  .products-grid,
  .catalog-grid {
    grid-template-columns: 1fr !important;
  }
}
/* === OZON CART OVERRIDE === */

/* Кнопка корзины */
.cart-icon {
  background: #F91155 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.cart-icon:hover {
  background: #d40f48 !important;
}
.cart-count {
  background: #fff !important;
  color: #F91155 !important;
  border-radius: 50% !important;
  min-width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 0 6px !important;
}

/* Сайдбар корзины */
.cart-sidebar {
  width: 420px !important;
  max-width: 100% !important;
  background: #fff !important;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15) !important;
}
.cart-sidebar-header {
  padding: 20px 24px !important;
  border-bottom: 1px solid #E8ECEF !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.cart-sidebar-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.cart-sidebar-close {
  background: none !important;
  border: none !important;
  font-size: 28px !important;
  cursor: pointer !important;
  color: #96A3AE !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.cart-sidebar-body {
  padding: 16px 24px !important;
}
.cart-sidebar-empty {
  text-align: center !important;
  padding: 40px 0 !important;
  color: #96A3AE !important;
}
.cart-sidebar-empty-icon {
  font-size: 48px !important;
  margin-bottom: 12px !important;
}

/* Элементы корзины */
.cart-item {
  display: flex !important;
  gap: 14px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #E8ECEF !important;
}
.cart-item img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background: #F4F5F7 !important;
}
.cart-item-info {
  flex: 1 !important;
}
.cart-item-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
  color: #001A34 !important;
}
.cart-item-vendor {
  font-size: 12px !important;
  color: #96A3AE !important;
}
.cart-item-remove {
  background: none !important;
  border: none !important;
  color: #F91155 !important;
  cursor: pointer !important;
  font-size: 13px !important;
  padding: 0 !important;
}

/* Футер корзины */
.cart-sidebar-footer {
  padding: 20px 24px !important;
  border-top: 2px solid #E8ECEF !important;
  background: #fafbfc !important;
}
.cart-total {
  font-size: 20px !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  color: #001A34 !important;
}
.cart-checkout-btn {
  width: 100% !important;
  padding: 14px !important;
  background: #F91155 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.cart-checkout-btn:hover {
  background: #d40f48 !important;
}

/* Overlay */
.cart-sidebar-overlay {
  background: rgba(0,0,0,0.5) !important;
}

/* Адаптив */
@media (max-width: 480px) {
  .cart-sidebar {
    width: 100% !important;
  }
}
/* === OZON FILTERS OVERRIDE === */

/* Боковые фильтры */
.filters-sidebar {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 20px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
.filter-section {
  margin-bottom: 22px !important;
}
.filter-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #E8ECEF !important;
  color: #001A34 !important;
}
.filter-group {
  margin-bottom: 8px !important;
}
.filter-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 0 !important;
  cursor: pointer !important;
  transition: color 0.2s !important;
  font-size: 14px !important;
  color: #4a5568 !important;
}
.filter-checkbox:hover {
  color: #005BFF !important;
}
.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
  accent-color: #005BFF !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
}
.filter-checkbox label {
  cursor: pointer !important;
  flex: 1 !important;
}
.filter-count {
  font-size: 12px !important;
  color: #96A3AE !important;
  font-weight: 500 !important;
}
.filter-price input {
  border: 1px solid #E8ECEF !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border-color 0.2s !important;
}
.filter-price input:focus {
  border-color: #005BFF !important;
}
.filter-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 16px !important;
}
.btn-filter {
  flex: 1 !important;
  padding: 10px !important;
  background: #005BFF !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.btn-filter:hover {
  background: #0040cc !important;
}
.btn-filter.clear {
  background: transparent !important;
  color: #96A3AE !important;
  border: 1px solid #E8ECEF !important;
}
.btn-filter.clear:hover {
  border-color: #F91155 !important;
  color: #F91155 !important;
}

/* Чипсы вендоров */
.vendor-chips {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding: 16px 0 !important;
}
.vendor-chip {
  background: #fff !important;
  border: 1px solid #E8ECEF !important;
  border-radius: 20px !important;
  padding: 7px 18px !important;
  font-size: 14px !important;
  color: #001A34 !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.vendor-chip:hover,
.vendor-chip.active {
  border-color: #005BFF !important;
  color: #005BFF !important;
  background: #F0F5FF !important;
}
.vendor-chip img {
  height: 18px !important;
  width: auto !important;
}

/* Пагинация */
.pagination {
  display: flex !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 24px !important;
  list-style: none !important;
}
.pagination a,
.pagination span {
  min-width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: 1px solid #E8ECEF !important;
  background: #fff !important;
  color: #001A34 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}
.pagination a:hover {
  border-color: #005BFF !important;
  color: #005BFF !important;
}
.pagination .current {
  background: #005BFF !important;
  color: #fff !important;
  border-color: #005BFF !important;
}
.pagination .disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  color: #96A3AE !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
}
.breadcrumbs a {
  color: #005BFF !important;
  text-decoration: none !important;
}
.breadcrumbs a:hover {
  text-decoration: underline !important;
}

/* Адаптив фильтров */
@media (max-width: 768px) {
  .filters-sidebar {
    display: none !important;
  }
  .filters-sidebar.open {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100% !important;
    z-index: 120 !important;
    overflow-y: auto !important;
  }
}

/* === MOBILE FIX: Корзина не обрезается === */
@media (max-width: 576px) {
  .cart-icon {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  .header-actions {
    gap: 6px !important;
  }
}

/* === LOGO FIX === */
.logo img, .navbar-brand img, header .logo img {
  max-height: 50px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
}

/* ===== HEADER FIXES v2 ===== */
.navbar {
    background: #e8e8ed !important;
    border-bottom: 1px solid #d0d0d8 !important;
}

/* Logo text */
.logo span {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
}

/* All nav icons - black on red */
.nav-icons > a,
    color: #000 !important;
.nav-icons > button,
.nav-user-info {
    background: #E5000D !important;
    color: #000000 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none !important;
    position: relative !important;
    box-shadow: 0 2px 6px rgba(229,0,13,0.25) !important;
    transition: transform 0.2s !important;
}

.nav-icons > a:hover,
.nav-icons > button:hover,
.nav-user-info:hover {
    transform: scale(1.06) !important;
    background: #c50000 !important;
}

/* Icon colors - force black */
.nav-icons .nav-user-icon,
.nav-icons .cart-icon,
.nav-icons .wishlist-icon,
#temaPereklyuchatel {
    color: #000000 !important;
    filter: none !important;
}

/* Hide user name */
.nav-user-name {
    display: none !important;
}

/* Count badges */
.cart-count, .wishlist-count {
    top: -5px !important;
    right: -5px !important;
    background: #fff !important;
    color: #E5000D !important;
    border: 2px solid #E5000D !important;
    font-weight: 800 !important;
    font-size: 0.65rem !important;
    min-width: 20px !important;
    height: 20px !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0.75rem !important;
        gap: 6px !important;
    }
    .logo img {
        max-height: 36px !important;
        max-width: 130px !important;
    }
    .logo span {
        font-size: 1.1rem !important;
    }
    .nav-icons {
        gap: 5px !important;
    }
    .nav-icons > a,
    color: #000 !important;
    .nav-icons > button,
    .nav-user-info {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 380px) {
    .search-box {
        display: none !important;
    }
}
/* ===== PRODUCT DETAIL — FULL LIGHT REDESIGN ===== */

/* Main container */
.product-detail-container {
    background: #fff !important;
    color: #1a1a1a !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

/* Product title */
.product-title {
    color: #1a1a1a !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
}

/* Short description */
.product-short-desc {
    color: #666 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* Vendor link */
.product-vendor-link {
    color: #E5000D !important;
    background: #fff5f5 !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 1px solid #ffe0e0 !important;
    margin-bottom: 1rem !important;
}

/* Badges */
.product-badge {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin-bottom: 0.5rem !important;
}
.badge-authentic {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}

/* Price section */
.product-price-section {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin: 1.5rem 0 !important;
    border: 1px solid #e9ecef !important;
}

.product-price {
    color: #E5000D !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.product-price-old {
    color: #999 !important;
    font-size: 1.1rem !important;
    text-decoration: line-through !important;
}

.product-price-note {
    color: #666 !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
}

.product-price-ot {
    color: #888 !important;
    font-size: 0.8rem !important;
}

/* TKP Block */
.tkp-sam {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
}
.tkp-sam h3 {
    color: #1a1a1a !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}
.tkp-sam p {
    color: #666 !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
}
.tkp-sam input {
    background: #fff !important;
    border: 1px solid #d0d0d8 !important;
    color: #1a1a1a !important;
    padding: 0.7rem !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
}
.tkp-sam input::placeholder {
    color: #999 !important;
}

/* Calculator */
.product-info div[style*="background: rgba(255,255,255,0.05)"] {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
}
.product-info div[style*="background: rgba(255,255,255,0.05)"] h3 {
    color: #1a1a1a !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}
.product-info div[style*="background: rgba(255,255,255,0.05)"] label {
    color: #555 !important;
    font-size: 0.9rem !important;
}
.product-info div[style*="background: rgba(255,255,255,0.05)"] input {
    background: #fff !important;
    border: 1px solid #d0d0d8 !important;
    color: #1a1a1a !important;
    padding: 0.75rem !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
}
.product-info div[style*="background: rgba(255,255,255,0.08)"] {
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 1rem !important;
}
.product-info div[style*="background: rgba(255,255,255,0.08)"] span {
    color: #555 !important;
}
.product-info div[style*="background: rgba(255,255,255,0.08)"] span[style*="color: var(--white)"] {
    color: #1a1a1a !important;
}
.product-info div[style*="background: rgba(255,255,255,0.08)"] span[style*="color: var(--vyveska-tekst)"] {
    color: #E5000D !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
}

/* Stock notification */
.product-info div[style*="background: rgba(239,68,68,0.1)"] {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
}
.product-info div[style*="background: rgba(239,68,68,0.1)"] h3 {
    color: #dc2626 !important;
}
.product-info div[style*="background: rgba(239,68,68,0.1)"] p {
    color: #666 !important;
}
.product-info div[style*="background: rgba(239,68,68,0.1)"] input {
    background: #fff !important;
    border: 1px solid #d0d0d8 !important;
    color: #1a1a1a !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
}

/* Product actions */
.product-actions {
    display: flex !important;
    gap: 0.75rem !important;
    margin: 1.5rem 0 !important;
}
.btn-add-cart {
    background: #E5000D !important;
    color: #fff !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.2s !important;
}
.btn-add-cart:hover {
    background: #c50000 !important;
}
.btn-request-quote {
    background: #fff !important;
    color: #E5000D !important;
    border: 2px solid #E5000D !important;
    padding: 1rem 2rem !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
}
.btn-request-quote:hover {
    background: #fff5f5 !important;
}

.btn-request-price {
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
}

/* Compare button */
.btn-compare-full {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #555 !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
    transition: all 0.2s !important;
}
.btn-compare-full:hover {
    background: #e9ecef !important;
    border-color: #d0d0d8 !important;
}

/* Product specs */
.product-specs {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    border: 1px solid #e9ecef !important;
}
.product-specs h3 {
    color: #1a1a1a !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}
.product-specs table {
    width: 100% !important;
    border-collapse: collapse !important;
}
.product-specs td {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #e9ecef !important;
    color: #555 !important;
    font-size: 0.95rem !important;
}
.product-specs td:first-child {
    color: #888 !important;
    width: 40% !important;
}
.product-specs tr:last-child td {
    border-bottom: none !important;
}

/* Description */
.product-description {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-top: 2rem !important;
    border: 1px solid #e9ecef !important;
}
.product-description h2 {
    color: #1a1a1a !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}
.product-description p,
.product-description div {
    color: #444 !important;
    line-height: 1.7 !important;
    font-size: 0.95rem !important;
}

/* Thumbnails */
.product-thumbnails {
    display: flex !important;
    gap: 8px !important;
    margin-top: 1rem !important;
    flex-wrap: wrap !important;
}
.product-thumbnail {
    width: 64px !important;
    height: 64px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px solid #e9ecef !important;
    cursor: pointer !important;
    transition: border-color 0.2s !important;
}
.product-thumbnail.active {
    border-color: #E5000D !important;
}
.product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Main image */
.product-image-main {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e9ecef !important;
    background: #fff !important;
}
.product-image-main img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Sticky buy button */
.sticky-buy-button {
    background: #E5000D !important;
    color: #fff !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    position: sticky !important;
    bottom: 1rem !important;
    box-shadow: 0 4px 12px rgba(229,0,13,0.3) !important;
}

/* Fix all inline white text */
.product-info [style*="color: var(--white)"],
.product-info [style*="color:var(--white)"] {
    color: #1a1a1a !important;
}
.product-info [style*="color: rgba(255,255,255"],
.product-info [style*="color:rgba(255,255,255"] {
    color: #555 !important;
}
.product-info [style*="background: rgba(0,0,0"],
.product-info [style*="background:rgba(0,0,0"] {
    background: #fff !important;
    border: 1px solid #d0d0d8 !important;
}
.product-info [style*="border: 1px solid rgba(255,255,255"],
.product-info [style*="border:1px solid rgba(255,255,255"] {
    border-color: #e9ecef !important;
}
/* ===== FIX LOW CONTRAST TEXT ===== */

/* Hero text on homepage */
.hero-title, .hero h1, .banner h1,
section h1, .section-title,
[style*="opacity: 0.3"], [style*="opacity:0.3"],
[style*="opacity: 0.4"], [style*="opacity:0.4"] {
    opacity: 1 !important;
    color: #1a1a1a !important;
}

/* Catalog heading */
.catalog-header h1, .catalog-title,
.page-title, .page-header h1 {
    color: #1a1a1a !important;
    opacity: 1 !important;
}

/* Any text with low opacity in main content */
main p, .content p, .page-content p,
.catalog-description, .hero-description {
    color: #444 !important;
    opacity: 1 !important;
}

/* Fix specific hero text */
[style*="Лицензионное ПО"],
[style*="для вашего бизнеса"] {
    color: #1a1a1a !important;
    opacity: 1 !important;
}

/* Headings */
h1, h2, h3, h4 {
    color: #1a1a1a !important;
}

/* Ensure all text is readable */
body, .content, main {
    color: #333 !important;
}

/* Fix ALL nav buttons including login button */
.nav-icons > a.wishlist-icon[href*="login"],
.nav-icons > a[href*="login"] {
    background: #E5000D !important;
    color: #000 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(229,0,13,0.25) !important;
}

/* Force wishlist icon to red */
.navbar .nav-icons a.wishlist-icon,
.nav-icons a.wishlist-icon,
a.wishlist-icon {
    background: #E5000D !important;
    border: none !important;
    color: #000 !important;
    box-shadow: 0 2px 6px rgba(229,0,13,0.25) !important;
}
.navbar .nav-icons a.wishlist-icon:hover,
.nav-icons a.wishlist-icon:hover,
a.wishlist-icon:hover {
    background: #c50000 !important;
    transform: scale(1.06) !important;
}

/* Fix blue user icon */
.nav-icons a.wishlist-icon[href*="login"],
.nav-icons .nav-user-info {
    color: #000 !important;
}
.nav-icons a.wishlist-icon[href*="login"] span,
.nav-icons .nav-user-info span {
    color: #000 !important;
}

/* Fix product tabs spacing */
.product-tabs {
    display: flex !important;
    gap: 1.5rem !important;
    border-bottom: 2px solid #e9ecef !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.5rem !important;
}
.product-tab {
    color: #888 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    padding: 0.5rem 0 !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -0.5rem !important;
    transition: color 0.2s !important;
    white-space: nowrap !important;
}
.product-tab.active {
    color: #E5000D !important;
    border-bottom-color: #E5000D !important;
}
.product-tab:hover {
    color: #1a1a1a !important;
}

/* ===== FINAL HEADER LAYOUT FIX ===== */
@media (max-width: 768px) {
    .navbar {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 0.5rem 0.75rem !important;
    }
    .logo {
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    .logo img {
        max-height: 36px !important;
        max-width: 120px !important;
        width: auto !important;
        height: auto !important;
    }
    .nav-icons {
        order: 2 !important;
        margin-left: auto !important;
        gap: 5px !important;
    }
    .mobile-menu-btn {
        order: 3 !important;
        margin-left: 4px !important;
        display: flex !important;
    }
}

/* Desktop: normal order */
@media (min-width: 769px) {
    .logo {
        order: 1 !important;
    }
    .nav-links {
        order: 2 !important;
    }
    .nav-icons {
        order: 3 !important;
        margin-left: auto !important;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Logo image sizing */
.logo-img {
    max-height: 40px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
    display: block !important;
}

@media (max-width: 768px) {
    .logo-img {
        max-height: 36px !important;
        max-width: 100px !important;
    }
}
