:root {
  --primary-color: #0d6efd;
  --daraz-orange: #f85606;
  --sidebar-bg: #212529;
  --bg-light: #eff0f5;
}

body {
  background-color: var(--bg-light);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: #333;
}

/* =========================================
   LAYOUT (ADMIN & MAIN)
   ========================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  padding: 20px;
  background: var(--sidebar-bg);
  color: #fff;
  z-index: 1000;
}

.main-content {
  margin-left: 250px;
  padding: 30px;
}

@media (max-width: 992px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  .main-content {
    margin-left: 0;
  }
}

/* =========================================
   PRODUCT CARDS & MODERN UI
   ========================================= */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card {
  background: #fff;
  cursor: pointer;
  position: relative;
  overflow: visible !important; /* Required for the modern badge overhang */
  transition:
    transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s ease !important;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12) !important;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-img-store {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  transition: transform 0.4s ease;
}

/* MODERN GLASSMORPHISM TIMER */

.timer-clock {
  color: #f85606;
  font-family: "Monaco", "Consolas", monospace;
}

/* =========================================
   BUTTONS & UTILITIES
   ========================================= */
.btn-orange,
.btn-buy {
  background-color: #f85606;
  color: white;
  border: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-orange:hover,
.btn-buy:hover {
  background-color: #d44a05;
  color: white;
}

.text-orange {
  color: var(--daraz-orange) !important;
}

/* =========================================
   WHATSAPP FLOATING UI
   ========================================= */
.whatsapp-container {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 1049;
  display: flex;
  align-items: center;
}

.whatsapp-msg {
  background: white;
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 15px;
  border: 1px solid #25d366;
  white-space: nowrap;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: fadeOnOff 6s infinite;
}

.whatsapp-msg::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

.whatsapp-float {
  background: #25d366;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

@keyframes fadeOnOff {
  0%,
  10% {
    opacity: 0;
    transform: translateX(10px);
  }
  20%,
  50% {
    opacity: 1;
    transform: translateX(0px);
  }
  60%,
  100% {
    opacity: 0;
    transform: translateX(10px);
  }
}

/* =========================================
   HERO CAROUSEL
   ========================================= */
.hero-slide {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  position: relative;
  overflow: hidden;
}

.bg-orange-grad {
  background: linear-gradient(135deg, #f85606 0%, #ff8c52 100%);
}
.bg-dark-grad {
  background: linear-gradient(135deg, #1a1a1a 0%, #434343 100%);
}
.bg-blue-grad {
  background: linear-gradient(135deg, #0052d4 0%, #6fb1fc 100%);
}

.hero-text {
  z-index: 2;
  max-width: 50%;
}
.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.hero-text p {
  font-size: 1rem;
  opacity: 0.9;
}

.hero-img {
  height: 100%;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  height: 90%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
  .hero-slide {
    height: 200px;
    padding: 20px;
  }
  .hero-text h1 {
    font-size: 1.4rem;
  }
  .hero-text p {
    display: none;
  }
  .hero-img {
    width: 40%;
  }
}

/* =========================================
   MISC UTILITIES
   ========================================= */
.offcanvas {
  z-index: 3000 !important;
}
.offcanvas-backdrop {
  z-index: 2500 !important;
}

#category-bar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#category-bar::-webkit-scrollbar {
  display: none;
}
/* MODERN FLOATING DISCOUNT TAG */
.discount-tag {
  position: absolute;
  top: 10px;
  right: 10px; /* Opposite side of the Promo Badge */
  background: rgba(255, 255, 255, 0.9);
  color: #f85606;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid #f85606;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Mobile Specific Fix: Shrink text slightly so nothing touches */
@media (max-width: 576px) {
  .promo-badge {
    padding: 3px 10px;
    font-size: 9px;
  }
  .discount-tag {
    font-size: 9px;
    padding: 1px 6px;
  }
}

/* MODERN PROMO BADGE (Top Left) */
.promo-badge {
  position: absolute;
  top: 10px;
  left: -5px;
  background: linear-gradient(45deg, #f85606, #ff8c52);
  color: white;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 0 50px 50px 0;
  z-index: 20;
  box-shadow: 3px 3px 8px rgba(248, 86, 6, 0.3);
}
/* --- Promo Badge Variants --- */

/* Default / Flash Sale (Red) */
.promo-badge.bg-flash {
  background: linear-gradient(135deg, #e63946 0%, #ff4d6d 100%);
}
.promo-badge.bg-flash::before {
  border-top-color: #a01a26;
}

/* New Arrival (Blue) */
.promo-badge.bg-new {
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
}
.promo-badge.bg-new::before {
  border-top-color: #005f8d;
}

/* Best Seller (Purple) */
.promo-badge.bg-best {
  background: linear-gradient(135deg, #7209b7 0%, #b5179e 100%);
}
.promo-badge.bg-best::before {
  border-top-color: #480675;
}

/* Limited Stock (Dark/Gold) */
.promo-badge.bg-limited {
  background: linear-gradient(135deg, #2b2d42 0%, #8d99ae 100%);
}
.promo-badge.bg-limited::before {
  border-top-color: #1a1c2c;
}

/* MODERN GLASSMORPHISM TIMER (Bottom Center) */
.timer-container {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  z-index: 15;
  text-align: center;
}

/* INLINE DISCOUNT BADGE (Next to Price) */
.discount-pill {
  background: rgba(248, 86, 6, 0.1);
  color: #f85606;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  border: 1px solid rgba(248, 86, 6, 0.2);
}

.star-btn {
  cursor: pointer;
  transition: transform 0.2s;
}
.star-btn:hover {
  transform: scale(1.2);
}
.bg-orange {
  background-color: var(--daraz-orange) !important;
}
