/* Global clearance banner + permanent catalog navigation (desktop / mobile). */
.batya-sale-promo {
  position: relative;
  background: #202329;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06);
}

html.batya-sale-promo-dismissed .batya-sale-promo {
  display: none !important;
}

.batya-sale-promo__inner {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: stretch;
}

.batya-sale-promo__link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  gap: 16px;
  padding: 8px 52px 8px 0;
  text-decoration: none;
  color: #fff;
  transition: opacity .15s ease;
}

.batya-sale-promo__link:hover {
  color: #fff;
  opacity: .95;
  text-decoration: none;
}

.batya-sale-promo__link:focus-visible {
  outline-color: #ff80b6;
  outline-offset: -3px;
  border-radius: 6px;
}

.batya-sale-promo__badge {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ec0b71 0%, #ff58a7 100%);
  font-size: var(--batya-font-xs);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1;
  white-space: nowrap;
}

.batya-sale-promo__copy {
  display: grid;
  flex: 1 1 auto;
  gap: 0;
  min-width: 0;
}

.batya-sale-promo__title {
  display: block;
  color: #fff;
  font-size: var(--batya-font-base);
  font-weight: var(--batya-weight-semibold);
  line-height: 1.2;
  white-space: nowrap;
}

.batya-sale-promo__sub {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-size: var(--batya-font-xs);
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.batya-sale-promo__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--batya-radius-sm);
  background: linear-gradient(90deg, #ec0b71 0%, #ff58a7 100%);
  color: #fff;
  font-size: var(--batya-font-sm);
  font-weight: var(--batya-weight-semibold);
  white-space: nowrap;
}

.batya-sale-promo__cta svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

.batya-sale-promo__close {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--batya-radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
}

.batya-sale-promo__close[hidden] {
  display: none !important;
}

.batya-sale-promo__close:hover,
.batya-sale-promo__close:focus-visible {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.batya-sale-promo__close svg {
  width: 18px;
  height: 18px;
}

/* Permanent entry is a separate link: do not give it .desktop-menu__cat,
   otherwise the menu script would expect an additional matching category panel. */
.desktop-menu__sale-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  margin: 2px 12px 12px;
  padding: 10px 12px;
  border: 1px solid #ffd2e4;
  border-radius: var(--batya-radius-sm);
  background: #fff2f7;
  color: #92224e;
  font-size: var(--batya-font-sm);
  font-weight: var(--batya-weight-semibold);
  line-height: 1.25;
  text-decoration: none;
}

.desktop-menu__sale-link:hover,
.desktop-menu__sale-link:focus-visible {
  background: #ffe4ef;
  color: #731e42;
  text-decoration: none;
}

.desktop-menu__sale-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.catalog-mobile-links__sale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  margin: 6px 12px 10px;
  padding: 12px 14px;
  border: 1px solid #ffd2e4;
  border-radius: var(--batya-radius-control);
  background: #fff2f7;
  color: #92224e;
  font-size: var(--batya-font-base);
  font-weight: var(--batya-weight-semibold);
  line-height: 1.25;
  text-decoration: none;
}

.catalog-mobile-links__sale:hover,
.catalog-mobile-links__sale:focus-visible {
  background: #ffe4ef;
  color: #731e42;
  text-decoration: none;
}

.catalog-mobile-links__sale svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

/* On phones the promo belongs to the existing scroll-aware sticky header.
   It therefore hides with the search bar while scrolling down and returns on
   scroll up, rather than occupying a second permanent viewport strip. */
@media (max-width: 991.98px) {
  .batya-sale-promo {
    border-top: 2px solid #ec0b71;
  }

  .batya-sale-promo__inner {
    min-height: 48px;
  }

  .batya-sale-promo__link {
    gap: 10px;
    padding: 7px 44px 7px 0;
  }

  .batya-sale-promo__badge,
  .batya-sale-promo__sub,
  .batya-sale-promo__cta-text {
    display: none;
  }

  .batya-sale-promo__title {
    font-size: var(--batya-font-sm);
    white-space: normal;
    overflow-wrap: break-word;
  }

  .batya-sale-promo__cta {
    width: 30px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8px;
  }

  .batya-sale-promo__close {
    width: 38px;
    height: 38px;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .batya-sale-promo__link {
    transition: none;
  }
}
