/* ========================================
   FLASH SALE PAGE STYLES
   ======================================== */

/* ==================== Hero Section ==================== */
.flash-sale-hero {
  position: relative;
  background: linear-gradient(135deg, #ff6b35 0%, #e53935 50%, #c62828 100%);
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;
}

.flash-sale-hero-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.flash-sale-hero-icons i {
  position: absolute;
  color: rgba(255, 255, 255, 0.08);
  font-size: 2.5rem;
  animation: flashFloat 4s ease-in-out infinite;
}

.flash-sale-hero-icons i:nth-child(1) {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}
.flash-sale-hero-icons i:nth-child(2) {
  top: 20%;
  right: 12%;
  font-size: 3rem;
  animation-delay: 0.5s;
}
.flash-sale-hero-icons i:nth-child(3) {
  bottom: 25%;
  left: 20%;
  font-size: 2rem;
  animation-delay: 1s;
}
.flash-sale-hero-icons i:nth-child(4) {
  top: 10%;
  left: 40%;
  font-size: 1.8rem;
  animation-delay: 1.5s;
}
.flash-sale-hero-icons i:nth-child(5) {
  bottom: 15%;
  right: 25%;
  font-size: 2.2rem;
  animation-delay: 2s;
}
.flash-sale-hero-icons i:nth-child(6) {
  top: 35%;
  right: 5%;
  font-size: 2rem;
  animation-delay: 0.8s;
}

@keyframes flashFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

.flash-sale-hero-content {
  position: relative;
  z-index: 2;
}

.flash-sale-hero .btn-share-minimal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.flash-sale-hero .btn-share-minimal:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.flash-sale-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
}

.flash-sale-hero-badge i {
  font-size: 18px;
  animation: boltFlash 1.5s ease-in-out infinite;
}

@keyframes boltFlash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.flash-sale-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flash-sale-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

@media (max-width: 768px) {
  .flash-sale-hero {
    padding: 40px 16px;
  }
  .flash-sale-hero h1 {
    font-size: 28px;
  }
}

/* ==================== Country Filter Pills ==================== */
.flash-sale-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
  padding: 0 8px;
}

.flash-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.flash-filter-pill:hover {
  border-color: #e53935;
  color: #e53935;
  background: #fff5f5;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(229, 57, 53, 0.12);
}

.flash-filter-pill.active {
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
}

.flash-filter-pill.active:hover {
  background: linear-gradient(135deg, #ef5350, #d32f2f);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}

.flash-filter-pill i {
  font-size: 0.85rem;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.flash-filter-pill.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ==================== Price Sort Buttons ==================== */
.flash-sale-sort {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.sort-label {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-label i {
  color: #999;
}

.flash-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.flash-sort-btn:hover {
  border-color: #42a5f5;
  color: #1e88e5;
  background: #e3f2fd;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.15);
}

.flash-sort-btn.active {
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(33, 150, 243, 0.3);
}

.flash-sort-btn.active:hover {
  background: linear-gradient(135deg, #64b5f6, #42a5f5);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(33, 150, 243, 0.35);
}

.flash-sort-btn i {
  font-size: 0.8rem;
}

/* ==================== Telegram CTA ==================== */
.flash-sale-telegram {
  text-align: center;
  margin-bottom: 28px;
}

.btn-telegram-flash {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.3);
}

.btn-telegram-flash:hover {
  background: linear-gradient(135deg, #3bb5f0, #2aabee);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.4);
}

.btn-telegram-flash i {
  font-size: 1.6rem;
}

/* No Results */
.flash-sale-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.flash-sale-no-results i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 16px;
  display: block;
}

.flash-sale-no-results p {
  font-size: 16px;
  margin: 0;
}

@media (max-width: 768px) {
  .flash-sale-filters-wrap {
    position: relative;
  }
  .flash-sale-filters-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: calc(100% - 8px);
    background: linear-gradient(to right, transparent, #fff 80%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
  }
  .flash-sale-filters-wrap.scrolled-end::after {
    opacity: 0;
  }
  .flash-sale-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    padding-right: 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .flash-sale-filters::-webkit-scrollbar {
    display: none;
  }
  .flash-filter-pill {
    flex-shrink: 0;
  }
}

/* ==================== Grid Layout ==================== */
.flash-sale-page .container {
  padding-bottom: 60px;
}

.flash-sale-grid {
  /* Uses Bootstrap row + tour-card col classes */
}

/* ==================== Pagination ==================== */
.flash-sale-pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ==================== Empty State ==================== */
.flash-sale-empty {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #fff3e0 0%, #fbe9e7 100%);
  border-radius: 20px;
  border: 2px dashed #ffab91;
  margin-top: 40px;
}

.flash-sale-empty-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ff6b35 0%, #e53935 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.flash-sale-empty-icon i {
  font-size: 42px;
  color: #fff;
}

.flash-sale-empty h3 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}

.flash-sale-empty p {
  font-size: 15px;
  color: #666;
  margin: 0 0 24px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.btn-back-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
  color: #fff;
}
