
:root {
  --color-primary: #ff4757;
  --color-primary-hover: #e04050;
  --color-secondary: #111112;
  --color-badge: #ec2323;
  --color-text: #2f3542;
  --color-text-light: #747d8c;
  --color-black: #1e272e;
  --color-white: #ffffff;
  --color-bg-light: #ffffff;
  --color-bg-light-hover: #f8f8f8;
  --color-bg-light-hover2: #f0f0f0;
  --color-bg-light-hover3: #eaeaea;
  --color-border: rgba(47, 53, 66, 0.1);
  --color-border-light: #f2f2f2;
  --color-border-lighter: #f5f5f5;
  --color-shadow: rgba(0, 0, 0, 0.05);
  --color-shadow-light: rgba(0, 0, 0, 0.08);
  --success: #2ed573;
}

/* Header Styles */
.flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-left {
  display: flex;
  align-items: center;
}

.back-button {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.back-button i {
  font-size: 20px;
  color: #333;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.header-icons {
  display: flex;
  gap: 15px;
}

.header-icons a {
  color: #333;
  position: relative;
  font-size: 18px;
}

.header-icons .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #FF6B35;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Content wrapper */
.content-wrapper {
  padding-top: 60px;
  position: relative;
}

/* Bubble Background */
.bubble-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
}

.bubble-1 {
  top: 0;
  right: -10px;
  width: 250px;
  height: auto;
}

.bubble-2 {
  top: 0;
  right: 0px;
  width: 300px;
  height: auto;
  z-index: -40;
}

/* Flash Timer */
.flash-timer-section {
  padding: 60px 15px 20px;
  position: relative;
  margin-bottom: 5px;
}

.timer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.timer-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #222;
}

.timer-text p {
  font-size: 14px;
  color: #666;
}

.countdown-container {
  display: flex;
  align-items: center;
  background-color: #222;
  padding: 8px 12px;
  border-radius: 20px;
  gap: 5px;
}

.timer-icon {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.clock-image {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.timer-boxes {
  display: flex;
  align-items: center;
}

.timer-box {
  background-color: white;
  border-radius: 4px;
  padding: 4px 8px;
  width: 28px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.timer-unit {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.timer-separator {
  font-weight: 700;
  font-size: 14px;
  color: white;
  margin: 0 4px;
}

/* Discount Filter */
.discount-filter {
  width: 100%;
  margin: 20px 0;
}

.filter-tabs {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  background-color: white;
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  justify-content: space-around;
  max-width: 95%;
  margin: 0 auto;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  background-color: transparent;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  min-width: 60px;
  text-align: center;
}

.filter-tab.activemain {
  background-color: #e92d2f;
  color: white;
  box-shadow: 0 4px 10px #e92d309a;
}

/* Banner Slider */
.banner-slider-container {
  position: relative;
  margin: 0 15px 25px;
  overflow: hidden;
  width: calc(100% - 30px);
}

.banner-slider {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.featured-banner {
  flex: 0 0 100%;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background-color: #FFB347;
  min-width: 100%;
  min-height: 150px;
}

.banner-content {
  display: flex;
  justify-content: space-between;
  height: 100%;
  padding: 20px;
  position: relative;
}

.banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  max-width: 60%;
}

.banner-text h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
}

.banner-text p {
  font-size: 16px;
  margin-bottom: 10px;
  color: whitesmoke;
}

.banner-status {
  display: inline-block;
  background-color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.banner-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 15px;
  padding-bottom: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d9d9d9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.activemain {
  width: 20px;
  border-radius: 4px;
  background-color: #e92d2f;
}

/* Discount Title */
.discount-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px;
  margin-bottom: 5px;
  background-color: white;
  width: 100%;
  position: relative;
}

.discount-title h3 {
  font-size: 16px;
  font-weight: 600;
}

.sort-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
}

/* Section Title */
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}
.section-title span {
  color: var(--primary);
  font-size: 18px;
  margin-top: -10px;
}

/* Footer Navigation */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 100;
  width: 100%;
  max-width: 100%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #777;
  font-size: 10px;
}

.nav-item i {
  font-size: 18px;
  margin-bottom: 3px;
}

.nav-item.activemain {
  color: #e92d2f;
}

/* Desktop Container */
.container-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Responsive */
@media (min-width: 576px) {
  body { max-width: none; }
}

@media (min-width: 768px) {
  .flash-header { max-width: 100%; }
  .content-wrapper { padding-top: 70px; }
  .discount-title { padding: 15px 20px; }
}

@media (min-width: 992px) {
  .flash-header { max-width: 100%; }
  .content-wrapper { padding-top: 70px; }
  .filter-tabs {
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
  }
  .discount-title { padding: 15px 30px; }
}

@media (min-width: 1200px) {
  .discount-title {
    max-width: 1400px;
    margin: 0 auto 5px;
  }
}

@media (min-width: 1400px) {
  .banner-slider-container {
    max-width: 1400px;
    margin: 0 auto 25px;
    width: calc(100% - 60px);
  }
}

/* iOS fix */
@supports (-webkit-touch-callout: none) {
  body { padding-bottom: 90px; }
  .footer-nav { padding-bottom: 20px; }
}
  .discount-tabs-modern { width: 100%; padding: 10px 0; overflow-x: auto; display: flex; justify-content: center; }
      .tab-wrapper { display: flex; gap: 20px; background: white; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); position: relative; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
      .tab-wrapper::-webkit-scrollbar { display: none; }
      .discount-btn-modern { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 600; color: #222; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: all 0.3s ease; }
      .discount-btn-modern.activemain { color: #e92d2f; background-color: white; border: 2px solid #e92d2f; box-shadow: 0 2px 8px rgba(0,80,255,0.2); }
      .discount-btn-modern.activemain::after { content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #e92d2f; }
