.sale-banner {
  background-color: #DE0539;
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  top: 0; /* Ensure it sticks to the top */
  left: 0;
  z-index: 1000; /* Higher z-index for visibility */
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.sale-banner-wrapper {
  max-width: 1200px; /* Limit max width for large screens */
  width: 100%;
  padding: 0 16px; /* Add padding for mobile */
  box-sizing: border-box;
}

.sale-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Reduced gap for better mobile fit */
  flex-wrap: wrap;
  position: relative;
  z-index: 12;
}

.sale-banner-text {
  font-size: 16px;
  font-weight: 300;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px; /* Slightly reduced for readability */
  text-align: center; /* Center text on mobile */
}

.sale-banner-close {
  position: absolute;
  right: 16px;
  width: 24px; /* Increased for better tap target */
  height: 24px;
  background: #fff;
  color: #898989;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 13;
  border-radius: 4px; /* Slight rounding for aesthetics */
}

.sale-banner-close svg {
  margin-left: 1.5px;
}

.sale-banner-close:hover {
  color: #fff;
  background: #b0042e; /* Darker shade on hover */
}

/* Corner decorations */
.sale-banner::before,
.sale-banner::after {
  content: "";
  position: absolute;
  top: 0;
  width: 38%;
  height: 100%;
  background-repeat: no-repeat;
}

.sale-banner::before {
  left: 20px;
  background: url('../images/ltpopup.svg') no-repeat left center;
}

.sale-banner::after {
  right: 20px;
  background: url('../images/rtpopup.svg') no-repeat right center;
}

/* Utility classes */
.font-16 { font-size: 16px; }
.font-10 { font-size: 10px; }
.w-700   { font-weight: 700; }
.w-300   { font-weight: 300; }
.color-primary { color: #DE0539; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .sale-banner {
    padding: 8px; /* Reduced padding for mobile */
  }

  .sale-banner-content {
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
  }

  .sale-banner-text {
    font-size: 14px; /* Smaller font for mobile */
    letter-spacing: 1.5px;
    line-height: 1.2; /* Improved readability */
  }

  .cta-button {
    font-size: 0.65rem !important; /* Smaller button text */
    padding: 0.2rem 0.4rem !important;
    height: 1.8rem !important;
  }

  .sale-banner::before,
  .sale-banner::after {
    background: none; /* Remove decorations on mobile */
  }

  .sale-banner::after,
.sale-banner::before {
  pointer-events: none;
  z-index: 1;
}

  .sale-banner-close {
    width: 20px;
    height: 20px;
    right: 10px;
  }
}

@media (max-width: 458px) {
  .sale-banner-text {
    font-size: 12px; /* Further reduce font size */
    letter-spacing: 1px;
  }

  .cta-button {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.3rem !important;
    height: 1.6rem !important;
  }

  .sale-banner-close {
    width: 18px;
    height: 18px;
    right: 8px;
  }
}