/**
 * Страница «Уценка» (product/clearance).
 */
#product-clearance.emmet-clearance-page {
  max-width: 1320px;
}

#product-clearance.emmet-clearance-page > .row {
  align-items: flex-start;
}

.emmet-clearance-sidebar {
  position: relative;
  z-index: 5;
}

.emmet-clearance-sidebar__inner {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 2rem);
  min-height: 0;
}

/* Список категорий скроллится отдельно; консультация всегда видна снизу */
.emmet-clearance-sidebar__catalog {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: visible;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.emmet-clearance-sidebar__catalog .emmet-cat-sidebar {
  overflow: visible;
}

.emmet-clearance-sidebar__cta {
  position: relative;
  z-index: 220;
  flex: 0 0 auto;
  margin-top: auto;
}

#product-clearance.emmet-clearance-page .emmet-clearance-sidebar__cta .emmet-sidebar-cta {
  margin: 0;
}

/* Подменю не перекрывает блок консультации */
.emmet-clearance-sidebar__catalog .emmet-cat-sidebar__flyout {
  z-index: 150;
}

.emmet-clearance-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 18px;
  margin-bottom: 1.25rem;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(199, 62, 29, 0.22);
  background: linear-gradient(135deg, #fff8f3 0%, #fff 55%, #fffaf5 100%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.emmet-clearance-hero__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(135deg, #e85d04 0%, #c73e1d 100%);
  box-shadow: 0 4px 14px rgba(199, 62, 29, 0.28);
}

.emmet-clearance-hero__body {
  flex: 1 1 200px;
  min-width: 0;
}

.emmet-clearance-hero__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-clearance-hero__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5c5c5c;
  max-width: 52rem;
}

.emmet-clearance-hero__badge {
  flex: 0 0 auto;
  align-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, #e85d04 0%, #c73e1d 100%);
  box-shadow: 0 2px 8px rgba(199, 62, 29, 0.25);
}

#product-clearance .emmet-catalog-toolbar .input-group-text {
  font-size: 13px;
  background: #f8f8f8;
  border-color: var(--emmet-top-border, #e8e8e8);
}

#product-clearance .emmet-catalog-toolbar .form-select {
  font-size: 14px;
  border-color: var(--emmet-top-border, #e8e8e8);
}

#product-clearance .emmet-catalog-toolbar .form-select:focus {
  border-color: #e85d04;
  box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.15);
}

.emmet-clearance-empty {
  margin-top: 0.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--emmet-top-border, #e0e0e0);
  background: #fafafa;
}

.emmet-clearance-empty__icon {
  font-size: 2.25rem;
  color: #c9c9c9;
  margin-bottom: 0.75rem;
}

.emmet-clearance-empty__text {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

.emmet-clearance-empty__btn {
  padding: 10px 22px;
  font-weight: 700;
  color: #1a1a1a;
  background: var(--emmet-accent, #f5c400);
  border: 0;
  border-radius: 10px;
}

.emmet-clearance-empty__btn:hover {
  color: #1a1a1a;
  background: var(--emmet-accent-hover, #d9ad00);
}

@media (max-width: 991.98px) {
  .emmet-clearance-hero {
    padding: 16px;
  }

  .emmet-clearance-hero__badge {
    width: 100%;
    text-align: center;
  }
}
