:root {
  --clearance-red: #d90818;
  --clearance-dark: #130003;
  --clearance-yellow: #ffe500;
}

.clearance-bar {
  position: relative;
  z-index: 50;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 18px),
    linear-gradient(100deg, #a9000d, var(--clearance-red) 45%, #b3000e);
  color: #fff;
  box-shadow: inset 0 -1px rgba(0, 0, 0, 0.25);
}

.clearance-bar__inner {
  display: flex;
  min-height: 46px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.065em;
}

.clearance-bar__icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  font-size: 19px;
  line-height: 1;
}

.clearance-bar__offer {
  border-radius: 999px;
  background: var(--clearance-yellow);
  color: #151000;
  padding: 5px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.clearance-bar__limited {
  font-size: 11px;
  opacity: 0.86;
  white-space: nowrap;
}

.clearance-card {
  display: grid;
  gap: 5px;
  overflow: hidden;
  border: 2px solid var(--clearance-red);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f7, #fff 70%);
  padding: 15px 17px;
  box-shadow: 0 8px 24px rgba(153, 0, 13, 0.1);
}

.clearance-card__eyebrow {
  color: var(--clearance-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.clearance-card strong {
  color: #111;
  font-family: var(--font-bebas), Impact, sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.95;
}

.clearance-card p {
  margin: 0;
  color: rgba(0, 0, 0, 0.67);
  font-size: 13px;
  line-height: 1.4;
}

.product-offer-badge {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  display: grid;
  min-width: 158px;
  gap: 3px;
  border: 3px solid #fff;
  border-radius: 12px;
  background: var(--clearance-red);
  color: #fff;
  padding: 11px 15px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  transform: rotate(-2deg);
  text-align: center;
}

.product-offer-badge span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.product-offer-badge strong {
  font-family: var(--font-bebas), Impact, sans-serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.9;
}

.clearance-description-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(40, 0, 3, 0.15);
}

.mobile-nav-open {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 0 12px;
}

.mobile-nav-open a {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 11px 4px;
}

.local-search {
  width: min(92vw, 560px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.local-search::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.local-search__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 22px;
}

.local-search label {
  grid-column: 1 / -1;
  font-weight: 800;
}

.local-search input {
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 11px 16px;
}

.local-search button {
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}

.local-form-message {
  margin-top: 8px;
  color: #b8ffbd;
  font-size: 12px;
}

@media (max-width: 640px) {
  .clearance-bar__inner {
    min-height: 50px;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-block: 7px;
    font-size: 12px;
    line-height: 1.1;
  }

  .clearance-bar__icon {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .clearance-bar__limited {
    width: 100%;
    font-size: 9px;
  }

  .product-offer-badge {
    top: 11px;
    left: 11px;
    min-width: 136px;
    padding: 9px 11px;
  }

  .product-offer-badge strong {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
