/* === 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;
  }
}

:root {
  --accent: #E5000D;
  --accent-dark: #C6000B;
}
.btn-primary,
.btn.btn-primary,
a.btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.btn-primary:hover,
.btn.btn-primary:hover,
a.btn-primary:hover {
  background: var(--accent-dark) !important;
}
.search-box {
  width: 100% !important;
  max-width: 600px !important;
}
.search-input {
  width: 100% !important;
}
@media (min-width: 769px) {
  .navbar {
    flex-wrap: wrap !important;
    row-gap: 12px !important;
  }
  .search-box {
    order: 10 !important;
    flex: 1 1 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
  }
}

.ozon-footer {
  width: 100%;
  margin-top: auto;
  padding: 48px 0 24px;
  background: #14161A !important;
  color: #FFFFFF;
}
.ozon-footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.ozon-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.ozon-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ozon-footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.ozon-footer-brand-name {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
}
.ozon-footer-description {
  max-width: 230px;
  color: #A8ABB2;
  font-size: 14px;
  line-height: 1.5;
}
.ozon-footer-col h3 {
  margin: 0 0 16px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
}
.ozon-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ozon-footer-col li {
  margin-bottom: 10px;
  color: #A8ABB2;
  font-size: 14px;
  line-height: 1.5;
}
.ozon-footer-col a {
  color: #A8ABB2 !important;
  font-size: 14px;
  text-decoration: none !important;
  transition: color 0.15s;
}
.ozon-footer-col a:hover {
  color: #FFFFFF !important;
}
.ozon-footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #888C94;
  font-size: 13px;
}
.ozon-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ozon-footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: background 0.15s;
}
.ozon-footer-social a:hover {
  background: #E5000D;
}
.ozon-footer-social svg {
  width: 19px;
  height: 19px;
}
.ozon-footer-social-vk {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.ozon-footer-social a.ozon-footer-social-whatsapp {
  color: #25D366 !important;
}
.ozon-footer-social a.ozon-footer-social-whatsapp:hover {
  background: #25D366;
  color: #FFFFFF !important;
}
.ozon-footer-social-whatsapp svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 992px) {
  .ozon-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}
@media (max-width: 576px) {
  .ozon-footer {
    padding: 36px 0 20px;
  }
  .ozon-footer-inner {
    padding: 0 16px;
  }
  .ozon-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ozon-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
