/* ===== Catalog Page Styles ===== */

.catalog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 30px;
}

/* Breadcrumbs */
.catalog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  font-size: 14px;
  color: #666;
}

.catalog-breadcrumbs a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}

.catalog-breadcrumbs a:hover {
  color: #e94560;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #999;
}

.breadcrumb-current {
  color: #333;
}

/* Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
}

/* Filters Sidebar */
.catalog-filters {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.catalog-filters h3 {
  font-size: 18px;
  color: #1a1a2e;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e94560;
}

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-of-type {
  border-bottom: none;
}

.filter-group h4 {
  font-size: 14px;
  color: #333;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-group select:focus {
  outline: none;
  border-color: #e94560;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #e94560;
  cursor: pointer;
}

.filter-clear {
  margin-top: 15px;
  text-align: center;
}

.btn-clear-filters {
  display: inline-block;
  padding: 8px 20px;
  background: transparent;
  color: #e94560;
  border: 1px solid #e94560;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-clear-filters:hover {
  background: #e94560;
  color: #fff;
}

/* Catalog Content */
.catalog-content {
  min-width: 0;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.catalog-header h1 {
  font-size: 28px;
  color: #1a1a2e;
  margin: 0;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort label {
  font-size: 14px;
  color: #666;
}

.catalog-sort select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
}

.catalog-count {
  font-size: 14px;
  color: #999;
  width: 100%;
  margin: 0;
}

/* Products Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

/* Product Card (shared with products.css) */
.catalog-card {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.catalog-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  border-color: transparent;
}

.catalog-card .product-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: #f5f5f5;
  overflow: hidden;
}

.catalog-card .product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s ease;
}

.catalog-card:hover .product-image img {
  transform: scale(1.05);
}

.catalog-card .product-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #999;
  font-size: 14px;
}

.catalog-card .product-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.catalog-card .product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.catalog-card .product-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 12px 0;
  line-height: 1.4;
  flex: 1;
}

.catalog-card .product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.catalog-card .product-name a:hover {
  color: #e94560;
}

.catalog-card .product-specs {
  margin-bottom: 15px;
}

.catalog-card .product-spec {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.catalog-card .product-spec:last-child {
  border-bottom: none;
}

.catalog-card .product-spec-label {
  font-weight: 400;
}

.catalog-card .product-spec-value {
  font-weight: 500;
  color: #1a1a2e;
}

.catalog-card .price-current {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  display: block;
}

.catalog-card .btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  background-color: #e94560;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.catalog-card .btn-cart:hover {
  background-color: #d63a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.4);
}

.catalog-card .btn-cart:active {
  transform: translateY(0);
}

/* Badges */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-studs {
  background: #0066cc;
}

.badge-runflat {
  background: #ff6600;
}

.badge-xl {
  background: #666;
}

/* Disk badges (for disk catalog) */
.badge-type {
  background: #0f3460;
}

.badge-color {
  background: #666;
}

/* Если несколько бейджей — располагаем вертикально */
.product-image .product-badge + .product-badge {
  top: 32px;
}

/* Stock */
.product-stock {
  font-size: 12px;
  margin-bottom: 10px;
}

.in-stock {
  color: #28a745;
}

.out-of-stock {
  color: #dc3545;
}

/* Pagination */
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.pagination-btn {
  padding: 10px 20px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination-btn:hover {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}

.pagination-numbers {
  display: flex;
  gap: 5px;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination-number:hover {
  background: #f8f9fa;
  border-color: #e94560;
  color: #e94560;
}

.pagination-number.active {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}

.pagination-ellipsis {
  padding: 0 5px;
  color: #999;
}

/* Empty State */
.catalog-empty {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.catalog-empty svg {
  width: 64px;
  height: 64px;
  color: #ccc;
  margin-bottom: 20px;
}

.catalog-empty h3 {
  font-size: 20px;
  color: #333;
  margin: 0 0 10px 0;
}

.catalog-empty p {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }
  
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .catalog-container {
    padding: 15px;
  }
  
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .catalog-filters {
    position: static;
  }
  
  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
