.category-hero {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-background {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(63, 72, 111, 0.7) 0%, rgba(63, 72, 111, 0.9) 100%);
  padding: 60px 20px;
}

.hero-content {
  max-width: 1416px;
  margin: 0 auto;
}

.hero-text {
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 15px;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.search-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(63, 72, 111, 0.15);
}

.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #E30A1D #f0f0f0;
}

.search-tabs::-webkit-scrollbar {
  height: 6px;
}

.search-tabs::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.search-tabs::-webkit-scrollbar-thumb {
  background: #E30A1D;
  border-radius: 3px;
}

.tab {
  padding: 8px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab:hover {
  color: #E30A1D;
  transform: translateY(-2px);
}

.tab.active-tab {
  color: #E30A1D;
  border-bottom-color: #E30A1D;
}

.tab-label {
  display: inline-block;
}

.tab-loader {
  display: none;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #E30A1D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-overlay p {
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.search-field input,
.search-field select {
  padding: 10px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  font-size: 14px;
  background: #F8F9FA;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus,
.search-field select:focus {
  border-color: #E30A1D;
  box-shadow: 0 0 0 3px rgba(227, 10, 29, 0.12);
  outline: none;
}

.search-field.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  align-self: center;
  margin-top: 20px;
  order: 999;
  justify-self: center;
  grid-column: 1 / -1;
  margin-top: 0;
}

.search-field.checkbox-field label {
  margin: 0;
  order: 2;
}

.search-field.checkbox-field input {
  width: auto;
  margin: 0;
  order: 1;
  cursor: pointer;
}

.search-field.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #E30A1D;
}

.search-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.left-buttons,
.right-buttons {
  display: flex;
  gap: 10px;
}

.catalog-button,
.reset-button,
.search-button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.catalog-button {
  background: #3F486F;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reset-button {
  background: #F8F9FA;
  color: #3F486F;
  border: 1px solid #dfe3e8;
}

.search-button {
  background: #24AD73;
  color: white;
}

.catalog-button:hover,
.reset-button:hover,
.search-button:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.catalog-button:hover {
  background: #2f3656;
}

.reset-button:hover {
  background: #eef1f5;
}

.search-button:hover {
  background: #1e8f5f;
}
