/* ================================
   GLOBAL STYLES
=================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-top: 100px; /* Space for fixed header + countdown */
}

/* Prevent background scroll when popup is active */
body.popup-open {
  overflow: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================
   HEADER SECTION
=================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1100;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Hamburger Button */
.site-header .open-btn {
  font-size: 22px;
  background: none;
  color: #333;
  border: none;
  cursor: pointer;
  padding: 0 10px;
}

/* Logo */
.header-logo img {
  height: 33px;
  display: block;
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  height: 100%;
  background: #fff;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 100%;
  border-left: 1px solid #e5e5e5;
  position: relative;
  transition: background 0.2s ease;
}

.icon-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.icon-link:hover {
  background: #f8f8f8;
}

.icon-link:hover img {
  transform: scale(1.1);
}

/* Notification Badge */
.badge {
  position: absolute;
  top: 8px;
  right: 12px;
  background: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 50%;
  line-height: 1;
}

/* ================================
   SIDEBAR MENU
=================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background-color: #222;
  color: white;
  transition: left 0.3s ease;
  z-index: 1200;
  padding-top: 60px;
}

.sidebar ul {
  list-style: none;
  padding: 0;  /* ✅ Fixed padding */
  margin: 0;   /* ✅ Fixed margin */
}

.sidebar ul li {
  padding: 12px 20px;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  display: block;
}

.sidebar .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.new-badge {
  background: red;
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 10px;
  margin-left: 5px;
}

/* ================================
   COUNTDOWN BANNER
=================================== */
.countdown-banner {
  position: fixed;
  top: 55px;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #28a745, #32cd32);
  color: white;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 10px;
  z-index: 1050;
  border-bottom: 1px solid #1e7d32;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.countdown-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.countdown-icon {
  font-size: 18px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ================================
   MAIN BANNER SECTION
=================================== */
.banner {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  max-height: 280px;
  position: relative;
}

.banner-glow {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  animation: glowGradient 3s infinite alternate ease-in-out;
}

.banner-glow img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

@keyframes glowGradient {
  0% { box-shadow: 0 0 10px rgba(40, 167, 69, 0.4), 0 0 20px rgba(72, 239, 128, 0.3); }
  50% { box-shadow: 0 0 15px rgba(72, 239, 128, 0.6), 0 0 30px rgba(40, 167, 69, 0.5); }
  100% { box-shadow: 0 0 10px rgba(40, 167, 69, 0.4), 0 0 20px rgba(72, 239, 128, 0.3); }
}

/* ================================
   TWO COLUMN LAYOUT
=================================== */
.two-column {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.ppt-section {
  flex: 2;
  min-width: 60%;
}

/* ✅ Missing styling for right side */
.product-section {
  flex: 1;
  min-width: 35%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================================
   FIXED PPT FRAME
=================================== */
.canva-frame {
  position: relative;
  padding-top: 56.25%;   /* Maintains 16:9 ratio */
  height: 0;
  box-shadow: 0 2px 8px rgba(63,69,81,0.16);
  border-radius: 8px;
  overflow: hidden;
  background: white;     /* Prevents black background */
}

.canva-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================
   STABLE PRODUCT SLIDER
=================================== */
.product-slider {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  height: 340px;          /* Fixed height */
  justify-content: space-between;
}

.product-slider img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.product-slider h2 {
  margin: 10px 0 5px;
  font-size: 18px;
  min-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-slider p {
  font-size: 14px;
  color: #666;
  min-height: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-slider .price {
  font-weight: bold;
  color: #000;
  margin-top: 5px;
}

.product-slider .buy-btn {
  background: #28a745;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
}

/* ================================
   FLYERS (LIME LIGHT SECTION)
=================================== */
.flyers-section {
  background: white;
  margin-top: 25px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.flyer-heading {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ff7f50;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.flyer-slider {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 5px 10px;
  scroll-snap-type: x mandatory;
}

.flyer-item {
  flex: 0 0 auto;
  width: 240px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
  scroll-snap-align: start;
}

.flyer-item img {
  width: 100%;
  height: auto;
  display: block;
}

.flyer-item:hover {
  transform: scale(1.05);
}

/* ✅ PC view: flyers centered and scrollable */
@media (min-width: 769px) {
  .flyer-slider {
    justify-content: center;
    overflow-x: auto;      /* FIX: allows horizontal scroll */
    scroll-snap-type: x mandatory;
  }
}


/* ================================
   POPUP FLYER MODAL
=================================== */
.image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1300;
}

.image-popup-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.close-popup {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* ================================
   AFFILIATE FOOTER
=================================== */
.affiliate-footer {
  margin-top: 50px;
  padding: 20px 10px;
  background: #f5f5f5;
  text-align: center;
  border-top: 1px solid #ddd;
}

.affiliate-footer p {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.affiliate-slider {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  justify-content: center;
  padding: 10px;
  scroll-behavior: smooth;
}

.affiliate-slider::-webkit-scrollbar {
  display: none;
}

.affiliate-slider img {
  height: 36px;
  transition: transform 0.3s ease;
  filter: grayscale(0.2);
}

.affiliate-slider img:hover {
  transform: scale(1.1);
  filter: none;
}

/* ================================
   MOBILE RESPONSIVE STYLES
=================================== */
@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
  }

  .ppt-section,
  .product-section {
    min-width: 100%;
  }

  .affiliate-slider {
    gap: 15px;
    padding: 8px;
  }

  .affiliate-slider img {
    height: 32px;
  }

  .affiliate-footer p {
    font-size: 14px;
  }
}
/* ===============================
   SHOP EXCLUSIVE BUTTON (SLIDE-IN DELAYED)
================================= */
.exclusive-btn {
  background: linear-gradient(90deg, #ff6a00, #ff9800);
  color: #fff;
  padding: 6px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px 0 0 30px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  animation: slideIn 1.8s ease forwards;
  opacity: 0;
}

.exclusive-btn:hover {
  background: linear-gradient(90deg, #ff9800, #ff6a00);
  transform: scale(1.05);
  transition: 0.3s ease;
}

@keyframes slideIn {
  0% { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
/* ✅ Hover effect */
.exclusive-btn:hover {
  background: linear-gradient(90deg, #32cd32, #28a745);
  transform: scale(1.05);
  transition: 0.3s ease;
}

/* ✅ Mobile optimization */
@media (max-width: 500px) {
  .exclusive-btn {
    padding: 6px 14px;
    font-size: 13px;
    margin-right: 8px;
  }
}
