/* Updated discount banner to full-width ribbon with navigation arrows like rhealsuperfoods.com */
/* Discount Banner - Full Width Ribbon */
.discount-banner {
  position: relative;
  width: 100%;
  height: 40px;
  background-color: #ffc107; /* Using your brand yellow */
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 600;
  font-size: 14px;
}

.discount-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discount-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.discount-message.active {
  opacity: 1;
  transform: translateX(0);
}

.discount-message span {
  white-space: nowrap;
  color: #222;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

/* Added navigation arrows for scrolling through offers */
.discount-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(34, 34, 34, 0.7);
  border: none;
  color: #ffc107;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.discount-nav:hover {
  background: rgba(34, 34, 34, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.discount-nav-prev {
  left: 10px;
}

.discount-nav-next {
  right: 10px;
}

.discount-nav svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .discount-banner {
    height: 35px;
    font-size: 13px;
  }

  .discount-nav {
    width: 25px;
    height: 25px;
  }

  .discount-nav svg {
    width: 14px;
    height: 14px;
  }

  .discount-nav-prev {
    left: 5px;
  }

  .discount-nav-next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .discount-banner {
    height: 32px;
    font-size: 12px;
  }

  .discount-message span {
    font-size: 12px;
  }
}
