/* ========================================
   BEST SELLERS THEME OVERRIDE
   Overrides the red flash sale colors with a premium Emerald Green theme
   ======================================== */

.bestsellers-theme .flash-sale-hero {
  background: linear-gradient(135deg, #26a69a 0%, #00897b 50%, #00695c 100%);
}

.bestsellers-theme .flash-filter-pill:hover {
  border-color: #00897b;
  color: #00897b;
  background: #e0f2f1;
  box-shadow: 0 3px 10px rgba(0, 137, 123, 0.12);
}

.bestsellers-theme .flash-filter-pill.active {
  background: linear-gradient(135deg, #26a69a, #00695c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.3);
}

.bestsellers-theme .flash-filter-pill.active:hover {
  background: linear-gradient(135deg, #4db6ac, #00897b);
  box-shadow: 0 6px 18px rgba(0, 137, 123, 0.35);
}

.bestsellers-theme .flash-sale-empty {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  border-color: #80cbc4;
}

.bestsellers-theme .flash-sale-empty-icon {
  background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
}

/* ==================== Bestsellers Modal ==================== */
.bestsellers-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.bestsellers-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bestsellers-modal-content {
  background: #fff;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.bestsellers-modal-overlay.active .bestsellers-modal-content {
  transform: translateY(0) scale(1);
}

.bestsellers-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdfdfd;
}

.bestsellers-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

.bestsellers-modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  padding: 0;
}

.bestsellers-modal-close:hover {
  background: #f5f5f5;
  color: #e53935;
}

.bestsellers-modal-body {
  padding: 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #00897b #f5f5f5;
}

.bestsellers-modal-body::-webkit-scrollbar {
  width: 6px;
}

.bestsellers-modal-body::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.bestsellers-modal-body::-webkit-scrollbar-thumb {
  background-color: #00897b;
  border-radius: 10px;
}

.bestsellers-theme .btn-show-more-countries {
  background: #fff;
  border: 1.5px dashed #00897b !important;
  color: #00897b !important;
}

.bestsellers-theme .btn-show-more-countries:hover {
  background: #e0f2f1 !important;
  border-style: solid !important;
}
