.catalog-section {
  position: relative;
  padding: 30px 0 60px;
  background: rgb(94,46,166);
  min-height: 70vh;
}

.catalog-section::before {
  content: "";
  background-image: url('../images/fon.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.catalog-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.catalog-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: rgb(244,236,249);
  margin-bottom: 15px;
}

.catalog-subtitle {
  font-size: 1.2rem;
  color: rgba(244,236,249, 0.9);
}

.catalog-layout {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.catalog-sidebar {
  flex: 0 0 280px;
}

.filter-toggle {
  display: none;
  width: 100%;
  background: linear-gradient(45deg, rgb(123,71,195), rgb(94,46,166));
  color: white;
  border: none;
  padding: 15px;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 15px;
  gap: 10px;
}

.filters-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 1.2rem;
  color: rgb(244,236,249);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-title i { color: rgb(237,110,191); }

.filter-checkbox, .filter-radio {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  color: rgba(244,236,249, 0.9);
}

.filter-checkbox input, .filter-radio input {
  position: absolute;
  opacity: 0;
}

.checkmark, .radiomark {
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(244,236,249, 0.5);
  border-radius: 4px;
}

.radiomark { border-radius: 50%; }

.filter-checkbox input:checked ~ .checkmark,
.filter-radio input:checked ~ .radiomark {
  background: rgb(237,110,191);
  border-color: rgb(237,110,191);
}

.filter-checkbox input:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-radio input:checked ~ .radiomark:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.filter-count {
  margin-left: auto;
  color: rgba(244,236,249, 0.6);
  font-size: 0.9rem;
}

.price-inputs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.price-input {
  flex: 1;
}

.price-input label {
  display: block;
  color: rgba(244,236,249, 0.8);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.price-input input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(244,236,249, 0.3);
  border-radius: 8px;
  padding: 10px;
  color: white;
  font-family: 'Rubik', sans-serif;
}

.price-display {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(244,236,249, 0.7);
}

.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
}

.filter-apply, .filter-reset {
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-apply {
  background: linear-gradient(45deg, rgb(204,52,161), rgb(237,110,191));
  color: white;
}

.filter-reset {
  background: transparent;
  color: rgb(244,236,249);
  border: 1px solid rgba(244,236,249, 0.3);
}

.catalog-main { flex: 1; }

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.catalog-info p { color: rgb(244,236,249); }
.catalog-info strong { color: white; }

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort label { color: rgb(244,236,249); }

.catalog-sort select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(244,236,249, 0.3);
  border-radius: 8px;
  padding: 10px 15px;
  color: white;
  font-family: 'Rubik', sans-serif;
  cursor: pointer;
}

.catalog-search {
  position: relative;
}

.search-container {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(244,236,249, 0.3);
}

#searchInput {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: white;
  font-family: 'Rubik', sans-serif;
}

#searchInput::placeholder { color: rgba(244,236,249, 0.6); }

#searchButton {
  background: linear-gradient(45deg, rgb(204,52,161), rgb(237,110,191));
  border: none;
  color: white;
  padding: 0 25px;
  cursor: pointer;
}

.catalog-grid {
  display: grid;
  gap: 25px;
  margin-bottom: 40px;
}

.grid-view {
  grid-template-columns: repeat(3, 1fr);
}

.catalog-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.catalog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(237,110,191, 0.3);
}

.item-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.item-badge.new { background: linear-gradient(45deg, #9d4edd, #c77dff); }
.item-badge.sale { background: linear-gradient(45deg, #ff9e00, #ffd166); }

.item-favorite {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
}

.item-info { padding: 20px; }
.item-name { font-size: 1.2rem; font-weight: 600; color: rgb(244,236,249); margin-bottom: 8px; }
.item-description { font-size: 0.85rem; color: rgba(244,236,249, 0.8); margin-bottom: 12px; line-height: 1.4; }
.item-meta { margin-bottom: 15px; }
.item-category { background: rgba(237,110,191, 0.1); color: rgb(237,110,191); padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; }
.item-price { margin-bottom: 15px; }
.current-price { font-size: 1.4rem; font-weight: 700; color: rgb(244,236,249); }
.old-price { font-size: 1rem; color: rgba(244,236,249, 0.5); text-decoration: line-through; margin-left: 8px; }

.block-cart-btn {
  display: flex;
  gap: 10px;
}

.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 40px 0;
}

.pagination-btn, .page-number {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(244,236,249, 0.3);
  color: rgb(244,236,249);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
}

.page-number {
  padding: 10px 15px;
}

.page-number.active {
  background: linear-gradient(45deg, rgb(204,52,161), rgb(237,110,191));
  border-color: transparent;
}

.no-products-message {
  text-align: center;
  padding: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.no-products-message i {
  font-size: 48px;
  opacity: 0.5;
  margin-bottom: 20px;
}

@media (max-width: 1100px) {
  .catalog-layout { flex-direction: column; }
  .filter-toggle { display: flex; justify-content: center; align-items: center; }
  .filters-container { display: none; }
  .filters-container.active { display: block; }
  .grid-view { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .grid-view { grid-template-columns: 1fr; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .catalog-sort { justify-content: space-between; }
  .block-cart-btn { flex-direction: column; }
}
