/* WoodMart Kids Shop Style Catalog - ALPI KIDS Colors */

/* Base Styles */
.catalog-page {
  background-color: #f8f8f8;
  font-family: 'Alumni Sans', sans-serif;
}

.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}



/* Page Header */
.page-header {
  background: #fff;
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  color: #232347;
  margin: 0 0 8px 0;
}

.page-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin: 0;
}

/* Categories Section */
.categories-section {
  background: #fff;
  padding: 25px 0;
  border-bottom: 1px solid #e9ecef;
}

.categories-scroll-indicator {
  text-align: center;
  margin-bottom: 15px;
}

.scroll-hint {
  font-size: 14px;
  color: #6c757d;
  font-style: italic;
  opacity: 0.8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.categories-grid {
  display: flex;
  gap: 25px;
  max-width: 100%;
  overflow-x: auto;
  padding: 15px 20px;
  scrollbar-width: thin;
  scrollbar-color: #E97491 #f8f9fa;
  justify-content: center;
  align-items: center;
  cursor: grab;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.categories-grid::-webkit-scrollbar {
  display: none;
}

.categories-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-card {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 8px 5px;
  border-radius: 12px;
}

.category-card:hover {
  transform: translateY(-3px);
  background: rgba(233, 116, 145, 0.02);
}

.category-image {
  position: relative;
  width: 180px;
  height: 120px;
  margin: 0 auto 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 3px solid transparent;
  background: #f8f9fa;
}

.category-card:hover .category-image {
  box-shadow: 0 8px 25px rgba(233, 116, 145, 0.2);
  transform: scale(1.05);
  border-color: rgba(233, 116, 145, 0.3);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.08);
}

.category-label {
  font-size: 13px;
  font-weight: 600;
  color: #232347;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 120px;
  line-height: 1.3;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.category-card:hover .category-label {
  color: #E97491;
}

.category-card.active {
  background: rgba(233, 116, 145, 0.05);
}

.category-card.active .category-image {
  border-color: #E97491;
  box-shadow: 0 8px 25px rgba(233, 116, 145, 0.3);
}

.category-card.active .category-label {
  color: #E97491;
  font-weight: 700;
}

.category-card.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #E97491;
  border-radius: 2px;
}

/* Main Content Layout */
.main-content {
  padding: 25px 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.widget {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #232347;
  margin: 0 0 15px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #E97491;
}

/* Categories Widget */
.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-item {
  margin-bottom: 10px;
}

/* Category Links */
.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  color: #232347;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.category-link:hover {
  background: #f8f9fa;
  color: #E97491;
  transform: translateX(4px);
}

.category-link.active {
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.3);
}

.category-link.active:hover {
  transform: translateX(4px);
  background: linear-gradient(135deg, #d65a7a 0%, #c44569 100%);
}

.category-count {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 400;
}

.category-link.active .category-count {
  opacity: 0.9;
}

/* Subcategories */
.subcategories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 20px;
  margin-top: 8px;
}

.subcategory-item {
  margin: 0;
}

.subcategory-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  color: #6c757d;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.subcategory-link:hover {
  background: #f8f9fa;
  color: #E97491;
  transform: translateX(4px);
}

.subcategory-link.active {
  background: rgba(233, 116, 145, 0.1);
  color: #E97491;
  font-weight: 500;
}

.subcategory-count {
  font-size: 11px;
  opacity: 0.6;
  font-weight: 400;
}

.subcategory-link.active .subcategory-count {
  opacity: 0.8;
}

/* Filters Widget */
.filter-group {
  margin-bottom: 25px;
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  color: #232347;
  margin: 0 0 15px 0;
}

/* Filter Accordion Styles */
.filter-accordion {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #e9ecef;
}

.filter-header:hover {
  background: #e9ecef;
}

.filter-header.active {
  background: #E97491;
  color: #fff;
}

.filter-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.filter-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.filter-header.active .filter-icon {
  transform: rotate(180deg);
}

.filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
}

.filter-content.active {
  max-height: 300px;
  overflow-y: auto;
}

.filter-content > div {
  padding: 12px 16px;
}

/* Price Filter Styles */
.price-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.price-input-group {
  flex: 1;
}

.price-input-group label {
  display: block;
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
}

.price-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.price-input:focus {
  outline: none;
  border-color: #E97491;
  box-shadow: 0 0 0 2px rgba(233, 116, 145, 0.1);
}

.price-slider {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  margin-top: 8px;
  margin-bottom: 8px;
}

.price-range {
  display: block;
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  outline: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin-top: 8px;
  margin-bottom: 0;
}

.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #E97491;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(233, 116, 145, 0.15);
  border: 2px solid #fff;
  z-index: 2;
  transition: box-shadow 0.2s;
  position: relative;
}
.price-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(233, 116, 145, 0.2);
}

.price-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #E97491;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(233, 116, 145, 0.15);
  z-index: 2;
  transition: box-shadow 0.2s;
}
.price-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(233, 116, 145, 0.2);
}

.price-range::-ms-thumb {
  width: 18px;
  height: 18px;
  background: #E97491;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(233, 116, 145, 0.15);
  z-index: 2;
  transition: box-shadow 0.2s;
}
.price-range:focus::-ms-thumb {
  box-shadow: 0 0 0 4px rgba(233, 116, 145, 0.2);
}

.price-range::-ms-fill-lower {
  background: #e9ecef;
  border-radius: 3px;
}
.price-range::-ms-fill-upper {
  background: #e9ecef;
  border-radius: 3px;
}

.price-range:focus {
  outline: none;
}

/* Убираем стандартный стиль для Firefox */
.price-range::-moz-focus-outer {
  border: 0;
}

/* Для лучшего отображения в IE */
.price-range::-ms-tooltip {
  display: none;
}

/* Checkbox Options Styles */
.tags-options,
.composition-options,
.gender-options,
.season-options,
.age-options,
.size-options,
.collections-options,
.universal-filter-values {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.tag-option,
.composition-option,
.gender-option,
.season-option,
.age-option,
.size-option,
.collection-option,
.universal-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
}

.tag-checkbox,
.composition-checkbox,
.gender-checkbox,
.season-checkbox,
.age-checkbox,
.size-checkbox,
.collection-checkbox,
.universal-filter-checkbox {
  display: none;
}

.tag-label,
.composition-label,
.gender-label,
.season-label,
.age-label,
.size-label,
.collection-label,
.universal-filter-label {
  position: relative;
  padding-left: 0;
  font-size: 14px;
  color: #232347;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tag-label::before,
.composition-label::before,
.gender-label::before,
.season-label::before,
.age-label::before,
.size-label::before,
.collection-label::before,
.universal-filter-label::before {
  display: none;
}

.tag-checkbox:checked + .tag-label::before,
.composition-checkbox:checked + .composition-label::before,
.gender-checkbox:checked + .gender-label::before,
.season-checkbox:checked + .season-label::before,
.age-checkbox:checked + .age-label::before,
.size-checkbox:checked + .size-label::before,
.collection-checkbox:checked + .collection-label,
.universal-filter-checkbox:checked + .universal-filter-label {
  color: #E97491;
  font-weight: 600;
}

.tag-checkbox:checked + .tag-label::after,
.composition-checkbox:checked + .composition-label::after,
.gender-checkbox:checked + .gender-label::after,
.season-checkbox:checked + .season-label::after,
.age-checkbox:checked + .age-label::after,
.size-checkbox:checked + .size-label::after,
.collection-checkbox:checked + .collection-label::after,
.universal-filter-checkbox:checked + .universal-filter-label::after {
  display: none;
}

/* Color Options Styles */
.color-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
}

.color-checkbox {
  display: none;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e9ecef;
  transition: all 0.2s ease;
}

.color-checkbox:checked + .color-swatch {
  border-color: #E97491;
  transform: scale(1.1);
}

.color-name {
  font-size: 14px;
  color: #232347;
}

/* Color Swatches */
.color-swatch.blue { background: #007bff; }
.color-swatch.red { background: #dc3545; }
.color-swatch.green { background: #28a745; }
.color-swatch.yellow { background: #ffc107; }
.color-swatch.black { background: #000; }
.color-swatch.white { background: #fff; border: 2px solid #e9ecef; }
.color-swatch.pink { background: #E97491; }
.color-swatch.purple { background: #6f42c1; }
.color-swatch.orange { background: #fd7e14; }
.color-swatch.brown { background: #795548; }
.color-swatch.grey { background: #6c757d; }
.color-swatch.beige { background: #f5f5dc; }

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 0 16px 16px;
}

.apply-filters-btn,
.clear-filters-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apply-filters-btn {
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  color: #fff;
}

.apply-filters-btn:hover {
  background: linear-gradient(135deg, #d65a7a 0%, #c44569 100%);
  transform: translateY(-1px);
}

.clear-filters-btn {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #e9ecef;
}

.clear-filters-btn:hover {
  background: #e9ecef;
  color: #495057;
}

/* Scrollbar for filter content */
.filter-content::-webkit-scrollbar {
  width: 4px;
}

.filter-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.filter-content::-webkit-scrollbar-thumb {
  background: #E97491;
  border-radius: 2px;
}

.filter-content::-webkit-scrollbar-thumb:hover {
  background: #d65a7a;
}



/* Season Filter */
.season-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.season-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.season-checkbox {
  display: none;
}

.season-label {
  color: #232347;
  position: relative;
  padding-left: 25px;
}

.season-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #e9ecef;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.season-checkbox:checked + .season-label::before {
  background: #E97491;
  border-color: #E97491;
}

.season-checkbox:checked + .season-label::after {
  content: '✓';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

/* Clear Filters Button */
.clear-filters-btn {
  width: 100%;
  padding: 12px;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-filters-btn:hover {
  background: #5a6268;
}

/* Main Products Area */
.products-main {
  min-height: 600px;
  width: 100%;
}

/* Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 18px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.toolbar-left {
  display: flex;
  align-items: center;
}

.results-count {
  color: #6c757d;
  font-size: 14px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}



/* Sort Options */
.sort-select {
  padding: 10px 15px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background: #fff;
  color: #232347;
  font-size: 14px;
  cursor: pointer;
  min-width: 180px;
}

.sort-select:focus {
  outline: none;
  border-color: #E97491;
}

/* Products Grid */
.products-container {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  min-height: 500px;
}

/* ===== НОВАЯ СИСТЕМА КАРТОЧЕК ТОВАРОВ ===== */

/* Контейнер сетки товаров */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  min-height: 100%;
  align-items: stretch;
}

/* Стили для карточек товара (hits-product-card) - унифицированные с главной страницей */
.hits-product-card {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  flex: 1 1 0;
  transition: all 0.3s ease;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.hits-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  cursor: pointer;
}

/* Изображение товара */
.hits-product-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.hits-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.3s ease;
  background: #f8f8f8 !important;
  max-width: none !important;
  max-height: none !important;
}

.hits-product-card:hover .hits-product-image img {
  transform: scale(1.05);
}

/* Бейджи */
.hits-product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.hits-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.hits-new {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.hits-hot {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* Информация о товаре */
.hits-product-info {
  flex: 1 1 auto;
  min-height: 160px;
  padding: 12px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  text-align: center;
}

/* Название товара */
.hits-product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0 0;
  color: #232347;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hits-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hits-product-title a:hover {
  color: #E97491;
}

/* Цена товара */
.hits-product-price {
  font-size: 16px !important;
  font-weight: 700;
  color: #E97491;
  margin: 4px 0;
  text-align: center;
}

/* Контейнер кнопки */
.hits-product-actions {
  margin-top: auto;
  margin-bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Кнопка "В корзину" */
.hits-add-to-cart {
  width: 100%;
  max-width: 200px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
  position: relative;
  z-index: 10;
}

.hits-add-to-cart:hover {
  background: linear-gradient(135deg, #d65a7a 0%, #c44569 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 116, 145, 0.4);
}

.hits-add-to-cart:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.3);
}

.hits-add-to-cart:focus {
  outline: none;
}

/* Карточка товара */
.product-item {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  flex: 1 1 0;
  transition: all 0.3s ease;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.product-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Изображение товара */
.product-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

/* Бейджи */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.badge-new {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.badge-sale {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* Информация о товаре */
.product-info {
  flex: 1 1 auto;
  min-height: 160px;
  padding: 12px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  text-align: center;
}

/* Название товара */
.product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0 0;
  color: #232347;
  text-align: center;
}

.product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: #E97491;
}



/* Цена товара */
.product-item .product-info .product-price {
  font-size: 16px !important;
  font-weight: 700;
  color: #E97491;
  margin: 4px 0;
  text-align: center;
}

.old-price {
  font-size: 14px;
  color: #6c757d;
  text-decoration: line-through;
  font-weight: 500;
}

/* Контейнер кнопки */
.product-actions-bottom {
  margin-top: auto;
  margin-bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Кнопка "В корзину" */
.add-to-cart-btn {
  width: 100%;
  max-width: 200px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
}

/* Быстрая покупка - появляется при наведении */
/* Product variants section styles */
.product-variants-section {
  margin-top: 8px;
  padding: 12px 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border: none;
  box-shadow: none;
  font-size: 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}
.product-item.expanded .product-variants-section {
  max-height: 220px;
  overflow-y: auto;
}

.variants-content {
  max-width: 100%;
}

.variant-selection h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: #232347;
}

.size-selection,
.color-selection {
  margin-bottom: 8px;
}

.size-selection label,
.color-selection label,
.quantity-selection label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #232347;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.option-btn {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
  border: 2px solid #e9ecef;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #232347;
}

.option-btn:hover {
  border-color: #E97491;
  background: #f8f9fa;
}

.option-btn.selected {
  border-color: #E97491;
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(233, 116, 145, 0.3);
}

.quantity-selection {
  margin-bottom: 8px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  outline: none;
  height: 28px;
}

.quantity-btn {
  width: 32px;
  height: 28px;
  border: none;
  background: none;
  color: #232347;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  box-shadow: none;
}
.quantity-btn:first-child {
  border-radius: 6px 0 0 6px;
}
.quantity-btn:last-child {
  border-radius: 0 6px 6px 0;
}
.quantity-btn:hover {
  background: #f3f4f6;
  color: #E97491;
  border: none;
}

.quantity-input {
  width: 40px;
  height: 28px;
  border: none;
  border-radius: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #232347;
  background: #fff;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
}
.quantity-input:focus {
  border: none;
  outline: none;
  color: #232347;
  background: #fff;
}

.variant-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.add-variant-btn {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.3);
}

.add-variant-btn:hover {
  background: linear-gradient(135deg, #d65a7a 0%, #c44569 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 116, 145, 0.4);
}

.cancel-variant-btn {
  padding: 12px 20px;
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-variant-btn:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

/* Expanded card styles */
.product-item.expanded {
  transform: scale(1.01);
  box-shadow: none;
  z-index: 10;
  position: relative;
}

.product-item.expanded .product-info {
  background: #fff;
  border-radius: 0 0 12px 12px;
}

/* Стили для модального окна быстрой покупки */
.quick-buy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.quick-buy-price {
  font-size: 24px;
  font-weight: 700;
  color: #E97491;
}

.quick-buy-image-container {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.quick-buy-image {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Стили для модального окна подтверждения */
.cart-confirmation-content {
  text-align: center;
  max-width: 400px;
}

.confirmation-icon {
  margin-bottom: 20px;
}

.confirmation-icon svg {
  width: 64px;
  height: 64px;
}

.cart-confirmation-content h3 {
  color: #4CAF50;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.cart-confirmation-content p {
  color: #6c757d;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.confirmation-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.continue-shopping-btn {
  padding: 12px 24px;
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.go-to-cart-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.3);
}

.go-to-cart-btn:hover {
  background: linear-gradient(135deg, #d65a7a 0%, #c44569 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 116, 145, 0.4);
}

  /* Адаптивность для быстрой покупки */
  .quick-buy-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .quick-buy-btn {
    padding: 10px 20px;
    font-size: 12px;
  }

  .confirmation-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .continue-shopping-btn,
  .go-to-cart-btn {
    width: 100%;
  }

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #d65a7a 0%, #c44569 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 116, 145, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.3);
}

.add-to-cart-btn:focus {
  outline: none;
}



/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-item {
  margin: 0;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e9ecef;
  background: #fff;
  color: #232347;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pagination-link:hover {
  background: #f8f9fa;
  border-color: #E97491;
  color: #E97491;
}

.pagination-link.active {
  background: #E97491;
  border-color: #E97491;
  color: #fff;
}

.pagination-link.prev,
.pagination-link.next {
  font-weight: bold;
}

/* No Products Message - Legacy styles (will be overridden) */
.no-products-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.no-products-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-products-content svg {
  margin-bottom: 20px;
  opacity: 0.5;
  width: 64px;
  height: 64px;
}

.no-products-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #232347;
  margin: 0 0 15px 0;
}

.no-products-content p {
  color: #6c757d;
  margin: 0 0 25px 0;
  line-height: 1.6;
}

.clear-category-btn {
  padding: 12px 24px;
  background: #E97491;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-category-btn:hover {
  background: #d65a7a;
  transform: translateY(-1px);
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.3s ease;
}

.close:hover {
  color: #232347;
}

.variant-selection h4 {
  margin: 20px 0 10px 0;
  color: #232347;
  font-size: 1.1rem;
  font-weight: 600;
}

.variant-image-container {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.variant-image {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.option-btn {
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: center;
}

.option-btn:hover {
  border-color: #E97491;
  background: #f8f9fa;
}

.option-btn.selected {
  border-color: #E97491;
  background: #E97491;
  color: #fff;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.add-to-cart-btn {
  flex: 1;
  padding: 15px 24px;
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.3);
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #d65a7a 0%, #c44569 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 116, 145, 0.4);
}

.cancel-btn {
  padding: 15px 24px;
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

/* Quantity selector styles */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  width: fit-content;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #232347;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  box-shadow: none;
}
.quantity-btn:first-child {
  border-radius: 6px 0 0 6px;
}
.quantity-btn:last-child {
  border-radius: 0 6px 6px 0;
}
.quantity-btn:hover {
  background: #f3f4f6;
  color: #E97491;
  border: none;
}

.quantity-input {
  width: 40px;
  height: 32px;
  border: none;
  border-radius: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #232347;
  background: #fff;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
}
.quantity-input:focus {
  border: none;
  outline: none;
  color: #232347;
  background: #fff;
}

/* Size and color button styles */
.size-btn, .color-btn {
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: center;
}

.size-btn:hover, .color-btn:hover {
  border-color: #E97491;
  background: #f8f9fa;
}

.size-btn.selected, .color-btn.selected {
  border-color: #E97491;
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(233, 116, 145, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-layout {
    grid-template-columns: 250px 1fr;
    gap: 20px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .product-item {
    height: 450px;
  }
  
  .product-image {
    height: 240px;
  }
  
  .categories-grid {
    gap: 20px;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar {
    display: none;
  }
  
  .products-main {
    order: 1;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .product-item {
    height: 420px;
  }
  
  .product-image {
    height: 210px;
  }
  
  .toolbar {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .toolbar-right {
    justify-content: space-between;
  }
  
  .categories-grid {
    gap: 18px;
    justify-content: flex-start;
    padding: 15px 15px;
  }
  
  .category-image {
    width: 140px;
    height: 90px;
    border-radius: 10px;
  }
  
  .category-card {
    min-width: 85px;
  }
  
  .category-label {
    font-size: 12px;
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 0 15px;
  }

  .page-title {
    font-size: 24px;
  }

  .widget {
    padding: 20px;
  }

  .products-container {
    margin-top: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-item {
    height: 400px;
  }
  
  .product-image {
    height: 190px;
  }

  .product-info {
    padding: 16px 16px 12px 16px;
    gap: 10px;
  }
  
  .product-title {
    font-size: 14px;
    min-height: 36px;
    max-height: 36px;
  }
  
  .current-price {
    font-size: 16px;
  }
  
  .action-btn {
    width: 36px;
    height: 36px;
  }
  
  .action-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .add-to-cart-btn {
    padding: 12px 20px;
    height: 42px;
    font-size: 13px;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .product-actions-bottom {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .categories-section {
    margin-bottom: 20px;
  }

  .categories-grid {
    gap: 15px;
    padding: 15px 10px;
  }

  .category-image {
    width: 160px;
    height: 100px;
    border-radius: 10px;
  }

  .category-card {
    padding: 15px;
  }

  .category-label {
    font-size: 14px;
  }

  .catalog-page .filters-widget-bottom {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
  }

  .product-item {
    height: 380px;
  }
  
  .product-image {
    height: 170px;
  }

  .product-info {
    padding: 16px 16px 12px 16px;
    gap: 8px;
  }
  
  .product-title {
    font-size: 15px;
    min-height: 32px;
    max-height: 32px;
  }
  
  .current-price {
    font-size: 18px;
  }
  
  .add-to-cart-btn {
    padding: 12px 20px;
    height: 44px;
    font-size: 13px;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .product-actions-bottom {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .toolbar-right {
    flex-direction: column;
    gap: 10px;
  }



  .sort-select {
    width: 100%;
  }

  .modal-content {
    width: 98%;
    padding: 15px;
  }

  .options-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .pagination-link {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .categories-grid {
    gap: 10px;
    padding: 15px 8px;
  }

  .category-image {
    width: 120px;
    height: 75px;
    border-radius: 8px;
  }

  .category-card {
    padding: 10px;
  }

  .category-label {
    font-size: 12px;
  }

  .no-products-content h3 {
    font-size: 1.2rem;
  }

  .no-products-content p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 2vw 10px 2vw !important;
    max-width: 100vw !important;
  }
  .product-item {
    min-height: 160px !important;
    padding: 8px 2px 10px 2px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    margin-bottom: 6px !important;
  }
  .product-image {
    height: 160px !important;
    max-width: 100vw !important;
    border-radius: 10px !important;
    margin-bottom: 6px !important;
  }
  .product-image img {
    max-width: 100% !important;
    height: 160px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
  }
  .product-title, .product-info .product-title {
    font-size: 13px !important;
    min-height: 16px !important;
    max-height: 32px !important;
    margin: 4px 0 2px 0 !important;
    text-align: center !important;
    padding: 0 1px !important;
    font-weight: 500 !important;
  }
  .product-price, .current-price {
    font-size: 14px !important;
    margin: 0 0 4px 0 !important;
    text-align: center !important;
    color: #E97491 !important;
    font-weight: 600 !important;
  }
  .old-price {
    font-size: 11px !important;
    margin-left: 4px !important;
  }
  .add-to-cart-btn, .product-card-buttons .add-to-cart-btn {
    width: 100% !important;
    font-size: 13px !important;
    padding: 10px 0 !important;
    border-radius: 8px !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(233,116,145,0.08) !important;
  }
  .add-to-cart-btn:active {
    background: #d65a7a !important;
  }
  .product-actions-bottom {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: center !important;
    margin-top: 4px !important;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-item {
  animation: fadeInUp 0.6s ease forwards;
}

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }
.product-item:nth-child(3) { animation-delay: 0.3s; }
.product-item:nth-child(4) { animation-delay: 0.4s; }
.product-item:nth-child(5) { animation-delay: 0.5s; }
.product-item:nth-child(6) { animation-delay: 0.6s; }

/* Loading States */
.product-item.loading {
  opacity: 0.7;
  pointer-events: none;
}

.product-item.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #E97491;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
} 

/* Переопределение конфликтующих стилей */
.products-grid .product-item .product-info .product-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #232347 !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.4 !important;
}

.products-grid .product-item .product-info .product-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.products-grid .product-item .product-info .product-title a:hover {
  color: #E97491 !important;
}

.products-grid .product-item .product-info .product-actions-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.products-grid .product-item .product-info .product-actions-bottom .add-to-cart-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 24px !important;
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Montserrat', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  height: 48px !important;
  width: 100% !important;
  max-width: 180px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-decoration: none !important;
  outline: none !important;
  text-align: center !important;
  line-height: 1.2 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.3) !important;
  position: relative !important;
  margin: 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.products-grid .product-item .product-info .product-actions-bottom .add-to-cart-btn:hover {
  background: linear-gradient(135deg, #d65a7a 0%, #c44569 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(233, 116, 145, 0.4) !important;
}

.products-grid .product-item .product-info .product-actions-bottom .add-to-cart-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.3) !important;
} 

/* Loading Spinner */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #E97491;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: #6c757d;
  font-size: 16px;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

/* Dynamic Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.pagination.visible {
  opacity: 1;
  transform: translateY(0);
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-item {
  margin: 0;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border: 2px solid #e9ecef;
  background: #fff;
  color: #232347;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.pagination-link:hover {
  background: #f8f9fa;
  border-color: #E97491;
  color: #E97491;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.15);
}

.pagination-link.active {
  background: linear-gradient(135deg, #E97491 0%, #d65a7a 100%);
  border-color: #E97491;
  color: #fff;
  box-shadow: 0 4px 12px rgba(233, 116, 145, 0.3);
}

.pagination-link.prev,
.pagination-link.next {
  font-weight: bold;
  font-size: 16px;
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-link.disabled:hover {
  background: #fff;
  border-color: #e9ecef;
  color: #232347;
  transform: none;
  box-shadow: none;
}

/* Pagination Info */
.pagination-info {
  text-align: center;
  margin-top: 20px;
  color: #6c757d;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}

/* Products Grid Animation */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
  margin: 0;
  min-height: 400px;
}

.product-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }
.product-item:nth-child(3) { animation-delay: 0.3s; }
.product-item:nth-child(4) { animation-delay: 0.4s; }
.product-item:nth-child(5) { animation-delay: 0.5s; }
.product-item:nth-child(6) { animation-delay: 0.6s; }
.product-item:nth-child(7) { animation-delay: 0.7s; }
.product-item:nth-child(8) { animation-delay: 0.8s; }
.product-item:nth-child(9) { animation-delay: 0.9s; }
.product-item:nth-child(10) { animation-delay: 1.0s; }
.product-item:nth-child(11) { animation-delay: 1.1s; }
.product-item:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* No Products Message */
.no-products-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  z-index: 10;
}

/* Когда нет товаров, сетка должна занимать всю высоту */
.products-grid.no-products {
  min-height: 500px;
  position: relative;
}

.no-products-content {
  padding: 60px 40px;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
} 

/* Кастомные чекбоксы для универсальных фильтров */
.custom-checkbox {
  display: block;
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}
input[type="checkbox"] {
  /* Удалено кастомное оформление */
}

input[type="checkbox"]:checked {
  /* Удалено кастомное оформление */
}

input[type="checkbox"]:checked:after {
  /* Удалено кастомное оформление */
}

.composition-option input[type="checkbox"],
.tag-option input[type="checkbox"],
.gender-option input[type="checkbox"],
.season-option input[type="checkbox"],
.age-option input[type="checkbox"],
.size-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #E97491;
}

.composition-label::before, .composition-label::after,
.tag-label::before, .tag-label::after,
.gender-label::before, .gender-label::after,
.season-label::before, .season-label::after,
.age-label::before, .age-label::after,
.size-label::before, .size-label::after {
  display: none !important;
} 

/* Сообщение "не найдено" в фильтрах */
.no-filters {
    color: #999;
    font-style: italic;
    font-size: 14px;
    padding: 10px;
    text-align: center;
    margin: 0;
}

/* Стили для цветовых образцов */
.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    border: 2px solid #ddd;
}

.color-swatch.blue { background-color: #007bff; }
.color-swatch.red { background-color: #dc3545; }
.color-swatch.green { background-color: #28a745; }
.color-swatch.yellow { background-color: #ffc107; }
.color-swatch.black { background-color: #000; }
.color-swatch.white { background-color: #fff; border: 2px solid #ddd; }
.color-swatch.pink { background-color: #e83e8c; }
.color-swatch.purple { background-color: #6f42c1; }
.color-swatch.orange { background-color: #fd7e14; }
.color-swatch.brown { background-color: #8b4513; }
.color-swatch.grey { background-color: #6c757d; }
.color-swatch.beige { background-color: #f5f5dc; } 

.products-grid .product-item .product-info .product-title,
.products-grid .product-item .product-info .product-title a {
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: unset !important;
  display: block !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
}

@media (max-width: 600px) {
  .products-grid .product-item .product-info .product-title,
  .products-grid .product-item .product-info .product-title a {
    font-size: 15px !important;
  }
} 

 

 