/* ============================================================
   HamroDeal — Main Stylesheet
   Nepal's Smartest Way to Save Money
   ============================================================

   TABLE OF CONTENTS
   -----------------
   1.  CSS Variables
   2.  Reset
   3.  Navbar
   4.  Hero
   5.  Hero Podium
   6.  Section Wrapper
   7.  Shop by Category
   8.  Popular Deals / Product Cards
   9.  How It Works
   10. Newsletter
   11. Partners
   12. Footer
   13. Inline Ad Banners
   14. Product Modal
   15. Searchbar Autocomplete
   16. Ad Banner Mode
   17. Animations
   18. Responsive
   19. Terms Popup
   ============================================================ */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --orange:    #F04E23;
  --green:     #22C55E;
  --blue:      #2563EB;
  --dark:      #111827;
  --mid:       #374151;
  --muted:     #6B7280;
  --light:     #F9FAFB;
  --border:    #E5E7EB;
  --white:     #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.13);
  --radius:    12px;
}


/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--dark); background: var(--white); }
a    { color: inherit; text-decoration: none; }


/* ============================================================
   3. NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; gap: 24px;
  box-shadow: var(--shadow-sm);
}

.logo { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1; }
.logo-main    { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; }
.logo-main span:first-child { color: var(--orange); }
.logo-main span:last-child  { color: var(--blue); }
.logo-sub     { font-size: 10px; color: var(--muted); letter-spacing: .3px; margin-top: 2px; }

.nav-search {
  flex: 1; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 8px;
  overflow: visible; background: var(--light);
  transition: border-color .2s;
  position: relative;
}
.nav-search input:first-child { border-radius: 8px 0 0 8px; }
.nav-search button:last-child  { border-radius: 0 8px 8px 0; }

.nav-search:focus-within { border-color: var(--blue); background: var(--white); }
.nav-search input {
  flex: 1; border: none; background: transparent;
  padding: 10px 14px; font-size: 14px; font-family: inherit;
  outline: none; color: var(--dark);
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search button {
  background: none; border: none; cursor: pointer;
  padding: 10px 14px; color: var(--muted);
  display: flex; align-items: center;
}
.nav-search button:hover { color: var(--blue); }

.nav-actions       { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-actions a     { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--mid); transition: color .2s; }
.nav-actions a:hover { color: var(--blue); }

.btn-login       { background: var(--blue); color: var(--white) !important; padding: 8px 18px; border-radius: 8px; font-weight: 600 !important; transition: background .2s !important; }
.btn-login:hover { background: #1d4ed8 !important; color: var(--white) !important; }


/* ============================================================
   4. HERO
   ============================================================ */
.hero-section { position: relative; overflow: hidden; }

.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #fefefe 60%, #f0fff4 100%);
  padding: 60px 32px 48px;
  display: flex; align-items: center; gap: 40px;
  max-width: 1200px; margin: 0 auto;
  position: relative; overflow: visible;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-left     { flex: 1; min-width: 0; }
.hero-left h1  {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 4vw, 52px); font-weight: 800;
  line-height: 1.15; color: var(--dark);
}
.hero-left h1 .highlight {
  color: var(--green);
  position: relative;
  display: inline-block;
}
.hero-left h1 .highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  width: 100%; height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cpath d='M0,8 Q100,0 200,8' stroke='%2322C55E' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.45;
}
.hero-left p { margin: 16px 0 28px; font-size: 15px; color: var(--mid); line-height: 1.6; max-width: 420px; }

.hero-search {
  display: flex; align-items: center; gap: 0;
  border: 2px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--white);
  max-width: 420px; box-shadow: var(--shadow-md);
  transition: border-color .2s;
}
.hero-search:focus-within { border-color: var(--blue); }
.hero-search input {
  flex: 1; border: none; padding: 13px 16px;
  font-size: 14px; font-family: inherit; outline: none;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search button {
  background: var(--blue); color: var(--white);
  border: none; padding: 13px 18px;
  cursor: pointer; display: flex; align-items: center;
  transition: background .2s;
}
.hero-search button:hover { background: #1d4ed8; }

.hero-badges { display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.badge       { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--mid); }
.badge svg   { color: var(--blue); }

/* Ribbon */
.featured-ribbon {
  position: absolute;
  top: -61%;  
  right: 0%;
  width: clamp(450px, 54vw, 500px);
  z-index: 10;
  animation: floatRibbon 30s ease-in-out infinite;
}
.featured-ribbon img { width: 100%; height: auto; display: block; }


/* ============================================================
   5. HERO PODIUM
   ============================================================ */
.hero-visual {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.podium-clip-frame {
  position: relative;
  border-radius: 20px;
  flex: 1;
  left: 50px;
  min-width: 600px;
  outline: 2px solid red;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* LEFT: product + circular base */
.podium-product-area {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* Product image slot — slides in/out */
.podium-img-wrap {
  position: relative;
  width: 280px; height: 280px;
  left: -15%;
  transform: translateY(20px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  z-index: 3;
  flex-direction: column;
}
.podium-img-track {
  display: flex;
  width: 100%;
  height: -10%;
  transition: transform 0.15s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.podium-img-slide {
  min-width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  animation: floatProd 8s ease-in-out infinite;
}
.podium-img-slide img { width: 250px; height: 250px; object-fit: contain; }

/* Circular white podium base */
.podium-base {
  width: 210px; height: 60px;
  background: linear-gradient(180deg, #ffffff 0%, #dde3ea 100%);
  border-radius: 50%;
  transform: translateY(-68px);
  box-shadow: 0 8px 0 #c8cfd8, 0 10px 16px rgba(0,0,0,0.15);
  flex-shrink: 0;
  position: relative; z-index: 2;
  margin-top: -18px; margin-left: -40px;
}

/* RIGHT: floating price cards */
.podium-cards-area {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  position: relative;
}

/* Each store price card */
.price-card {
  background: var(--white);
  border-radius: 14px;
  padding: 11px 14px;
  display: flex; align-items: center; gap: 11px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.05);
  animation: fadeInCard .4s ease both;
}
.price-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.13); }
.price-card.best {
  border: 1.5px solid rgba(34,197,94,.3);
  background: linear-gradient(135deg, #f0fff8, #ffffff);
}

/* Store icon */
.store-icon       { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.store-icon img   { width: 100%; height: 100%; object-fit: contain; }

.price-card-info { flex: 1; min-width: 0; }
.price-card-info .best-label {
  font-size: 9px; font-weight: 800; color: var(--green);
  text-transform: uppercase; letter-spacing: .6px;
  display: block; margin-bottom: 1px;
}
.price-card-info .store-name { font-size: 12px; font-weight: 600; color: var(--mid); line-height: 1.2; display: block; }
.price-card-info .price      { font-size: 17px; font-weight: 800; letter-spacing: -.4px; display: block; margin-top: 1px; }
.price-card.best     .price-card-info .price { color: var(--green); }
.price-card:not(.best) .price-card-info .price { color: var(--dark); }

/* Compare link */
.compare-btn {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--blue); font-size: 13px; font-weight: 700;
  padding: 0; border: none; background: none; cursor: pointer;
  transition: gap .2s; margin-top: 2px;
  text-decoration: none;
}
.compare-btn:hover { gap: 9px; }



/* Podium dots */
.podium-dots {
  position: absolute;
  bottom: -15px; 
  left: 0;
  right: -180px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 0;
  margin-left: -100px; /* adjust this value to shift right/left */
}
.p-dot        { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .3s, width .3s; }
.p-dot.active { background: var(--blue); width: 20px; border-radius: 4px; }


/* ============================================================
   6. SECTION WRAPPER
   ============================================================ */
.section          { max-width: 1200px; margin: 0 auto; padding: 48px 32px; overflow: visible; }
.section-header   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-header h2 { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; }
.view-all         { color: var(--blue); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.view-all:hover   { text-decoration: underline; }
.divider          { border: none; border-top: 1px solid var(--border); }


/* ============================================================
   7. SHOP BY CATEGORY
   ============================================================ */
.categories-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px; border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all .2s; background: var(--white);
}
.cat-item:hover { border-color: var(--blue); background: #eff6ff; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-item span  { font-size: 12px; font-weight: 600; color: var(--mid); text-align: center; }

.cat-icon  { color: #000000; display: flex; justify-content: center; margin-bottom: 8px; }
.size-6    { width: 24px; height: 24px; }


/* ============================================================
   8. POPULAR DEALS / PRODUCT CARDS
   ============================================================ */
.deals-carousel { position: relative; }
.deals-grid     { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.product-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d1d5db; }

.product-img {
  height: 160px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.best-deal-tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--green); color: var(--white);
  font-size: 9px; font-weight: 800; padding: 3px 7px;
  border-radius: 5px; text-transform: uppercase; letter-spacing: .6px;
}

.product-body  { padding: 12px 14px 14px; }
.product-name  { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.product-spec  { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.product-store { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.store-dot     { width: 16px; height: 16px; border-radius: 4px; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.store-label   { font-size: 12px; font-weight: 600; color: var(--muted); }
.product-price { font-size: 18px; font-weight: 800; color: var(--dark); }
.product-save  { font-size: 12px; font-weight: 600; color: var(--green); margin-top: 2px; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 10;
}
.carousel-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.carousel-btn.prev  { left: -18px; }
.carousel-btn.next  { right: -18px; }


/* ============================================================
   9. HOW IT WORKS
   ============================================================ */
.how-section  { background: var(--light); padding: 56px 32px; }
.how-inner    { max-width: 1200px; margin: 0 auto; }
.how-inner h2 { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 48px; }

.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.how-steps::before {
  content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 8px, transparent 8px, transparent 16px);
}

.step      { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; position: relative; }
.step-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px; position: relative; z-index: 1;
  box-shadow: var(--shadow-md);
}
.step:nth-child(1) .step-icon { background: #eff6ff; }
.step:nth-child(2) .step-icon { background: #f0fdf4; }
.step:nth-child(3) .step-icon { background: #fff7ed; }
.step:nth-child(4) .step-icon { background: #faf5ff; }
.step h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step p  { font-size: 13px; color: var(--muted); line-height: 1.5; }


/* ============================================================
   10. NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, #1e40af 0%, #2563EB 50%, #1d4ed8 100%);
  padding: 32px; margin: 0; width: 100%; box-sizing: border-box;
}
.newsletter-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 40px;
}
.newsletter-emoji   { font-size: 56px; flex-shrink: 0; }
.newsletter-text    { flex: 20; }
.newsletter-text h2 { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.newsletter-text p  { font-size: 14px; color: rgba(255,255,255,.75); }
.newsletter-form    { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input {
  padding: 12px 18px; border-radius: 8px; border: none;
  font-size: 14px; font-family: inherit; outline: none;
  width: 260px; background: rgba(255,255,255,.15);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form input:focus        { background: rgba(255,255,255,.25); }

.btn-subscribe       { background: var(--white); color: var(--blue); border: none; padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .2s; white-space: nowrap; }
.btn-subscribe:hover { background: #dbeafe; }


/* ============================================================
   11. PARTNERS
   ============================================================ */
.partners-section  { padding: 40px 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partners-inner    { max-width: 1200px; margin: 0 auto; }
.partners-inner p  { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.partners-logos    { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }

.partner-logo            { font-size: 18px; font-weight: 800; color: var(--mid); padding: 8px 16px; border-radius: 8px; transition: all .2s; cursor: pointer; }
.partner-logo:hover      { color: var(--dark); background: var(--light); }
.partner-logo.daraz      { color: #ef4444; }
.partner-logo.hukut      { color: var(--orange); }
.partner-logo.jeevee     { color: #16a34a; }
.partner-logo.neo        { color: var(--blue); }
.partner-logo.gadgetbyte { color: #4b5563; }
.partner-logo.oliz       { color: #dc2626; }


/* ============================================================
   12. FOOTER
   ============================================================ */
footer         { background: var(--dark); color: #9ca3af; padding: 48px 32px 24px; }
.footer-inner  { max-width: 1200px; margin: 0 auto; }
.footer-grid   { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.footer-brand .logo-main { font-size: 20px; }
.footer-brand .logo-sub  { color: #6b7280; }
.footer-brand p          { font-size: 13px; line-height: 1.6; margin-top: 12px; color: #9ca3af; }

.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s;
  border: 1px solid #374151;
}
.social-btn:hover { background: #374151; color: var(--white); }

.footer-col h3          { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul          { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a     { font-size: 13px; color: #9ca3af; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom          { border-top: 1px solid #374151; padding-top: 20px; text-align: center; font-size: 13px; }


/* ============================================================
   13. INLINE AD BANNERS
   ============================================================ */
.inline-ad-banner {
  width: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
  border-top: 1.5px solid #fcd34d; border-bottom: 1.5px solid #fcd34d;
  padding: 13px 24px;
  position: relative; max-height: 200px; overflow: hidden;
  justify-content: center; 
}

.ad-badge {
  background: #f59e0b; color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 7px; border-radius: 4px;
  text-transform: uppercase; flex-shrink: 0;
}

.inline-ad-content { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }

.inline-ad-title {
  font-size: 13px; font-weight: 700; color: #92400e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inline-ad-sub  { font-size: 11px; color: #b45309; opacity: 0.85; }

.inline-ad-cta {
  background: #f59e0b; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 7px 16px; border-radius: 7px;
  white-space: nowrap; text-decoration: none;
  transition: background 0.2s; flex-shrink: 0;
  margin-right: 2%;
}
.inline-ad-cta:hover { background: #d97706; color: #fff; }

.inline-ad-close {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  background: none; border: 1.5px solid #fcd34d; border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #b45309; padding: 0;
  transition: background 0.2s, color 0.2s; flex-shrink: 0;
}
.inline-ad-close:hover { background: #fcd34d; color: #92400e; }


/* ============================================================
   14. PRODUCT MODAL
   ============================================================ */
.pm-overlay    { display: none; position: fixed; inset: 0; z-index: 1000; }
.pm-overlay.is-open { display: flex; align-items: flex-start; justify-content: center;}
.pm-backdrop   { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(6px)}

.pm-drawer.pm-fullpage {
  position: relative; z-index: 1; background: #fff; border-radius: 16px;
  margin: 40px auto; width: min(960px, 95vw); max-height: 90vh;
  overflow-y: auto; padding: 32px;
}
.pm-close {
  position: absolute; top: 16px; right: 16px; background: #f3f4f6;
  border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.pm-body          { display: grid; grid-template-columns: 340px 1fr; gap: 32px; }
.pm-img-wrap img  { width: 100%; border-radius: 12px; }

.pm-left .pm-name { margin: 14px 0 4px; font-size: 18px; font-weight: 700; color: var(--dark); }
.pm-left .pm-desc { font-size: 13px; color: var(--muted); margin: 0 0 8px; }

.pm-meta-row  { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
.pm-spec-line { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.pm-rating    { color: #F59E0B; font-weight: 600; }

.pm-best-price-box   { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 12px; padding: 16px 20px; margin-top: 12px; }
.pm-best-price-label { font-size: 12px; color: #16a34a; font-weight: 600; }
.pm-best-price-val   { font-size: 28px; font-weight: 800; color: #15803d; margin: 4px 0; }
.pm-best-price-store { font-size: 13px; color: #16a34a; }
.pm-view-best-btn    { display: inline-block; margin-top: 10px; background: #16a34a; color: #fff; padding: 8px 20px; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; }

.pm-prices-table { display: flex; flex-direction: column; gap: 8px; }
.pm-price-row {
  display: grid; grid-template-columns: 48px 48px 1fr auto auto auto;
  align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 10px; border: 1.5px solid #e5e7eb; background: #fff;
}
.pm-price-row--best   { background: #f0fdf4; border-color: #86efac; }
.pm-best-deal-tag     { font-size: 9px; font-weight: 800; color: #fff; background: #16a34a; border-radius: 4px; padding: 2px 4px; text-align: center; line-height: 1.2; }
.pm-store-logo img    { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.pm-store-logo span   { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #e5e7eb; border-radius: 6px; font-weight: 700; }
.pm-row-store         { font-size: 14px; font-weight: 600; }
.pm-row-price         { font-size: 15px; font-weight: 700; }
.pm-row-price--best   { color: #15803d; }
.pm-row-saving        { font-size: 12px; color: #16a34a; }
.pm-row-btn           { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 8px; background: #eff6ff; color: var(--blue); text-decoration: none; white-space: nowrap; }
.pm-row-btn--best     { background: #16a34a; color: #fff; }

.pm-spec-row               { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.pm-spec-row span:first-child { color: var(--muted); min-width: 120px; }

.podium-product-name {
  font-size: 13px; font-weight: 700; color: var(--dark);
  text-align: center; margin-top: 20px; padding: 0 8px;
  white-space: normal; overflow: hidden; text-overflow: ellipsis;
}


/* ============================================================
   15. SEARCHBAR AUTOCOMPLETE
   ============================================================ */
.hd-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #ffffff;
  border: 1.5px solid #e5e7eb; border-radius: 14px;
  list-style: none; padding: 6px 0; margin: 0;
  z-index: 99999;
  box-shadow: 0 12px 40px rgba(0,0,0,.13), 0 2px 8px rgba(37,99,235,.07);
  max-height: 320px; overflow-y: auto;
  animation: hdDropIn 0.15s cubic-bezier(0.22,1,0.36,1);
  isolation: isolate;
  opacity: 1 !important;
  filter: none !important;
}
.hd-suggestions-header {
  padding: 6px 14px 4px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af;
}
.hd-suggestion-item { display: flex; align-items: center; gap: 12px; padding: 9px 14px; cursor: pointer; list-style: none; }
.hd-suggestion-item:hover,
.hd-suggestion-item.hd-active { background: #f0f7ff; }

.hd-suggestion-thumb { width: 38px; height: 38px; border-radius: 8px; background: #f3f4f6; object-fit: contain; flex-shrink: 0; border: 1px solid #f0f0f0; padding: 3px; }
.hd-suggestion-text  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hd-suggestion-name  { font-size: 14px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-suggestion-spec  { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-suggestion-price { font-size: 13px; font-weight: 700; color: #15803d; white-space: nowrap; flex-shrink: 0; }
.hd-suggestion-cat   { display: inline-block; font-size: 10px; font-weight: 600; background: #f3f4f6; color: #6b7280; border-radius: 4px; padding: 1px 6px; text-transform: uppercase; letter-spacing: 0.04em; }

.hd-match      { color: #2563eb; background: #eff6ff; border-radius: 3px; padding: 0 1px; font-weight: 700; }
.hd-no-results { padding: 16px 14px; font-size: 13px; color: #9ca3af; text-align: center; }
.hd-backdrop {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.08);
  z-index: 40;                    /* changed from 9998 */
  animation: hdDropIn 0.15s ease;
}

.hd-blur-active > *:not(.hd-backdrop):not(.navbar) {
  filter: blur(6px);
  transition: filter 0.15s ease;
}

.hd-blur-active .navbar {
  filter: none;
  z-index: 100;
}

/* Add this new rule: */
.hd-suggestions {
  position: fixed !important;
  z-index: 99999;
}

/* ============================================================
   16. AD BANNER MODE
   ============================================================ */

.podium-slot-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-height: unset;
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
}

/* Banner invisible by default, sits over everything */
.podium-banner-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: min(600px, 90vw);
  height: 330px;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
  border-radius: 20px 20px 20px 20px;
  overflow: hidden;
  background: transparent;  /* no black background */
}

.podium-banner-area img {
  width: 100%;
  height: 100%;
  object-fit: fill;    /* no cropping */
  border-radius: 20px 20px 20px 20px;
  background: transparent;  /* removes black bars */
}

/* When banner is active */
.podium-slot-wrapper.show-banner .podium-product-area {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.podium-slot-wrapper.show-banner .podium-cards-area {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.podium-slot-wrapper.show-banner .podium-banner-area {
  opacity: 1;
  pointer-events: all;
}
/* ============================================================
   17. ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left   { animation: fadeUp .6s ease both; }
.hero-visual { animation: fadeUp .6s .2s ease both; }

@keyframes fadeInCard {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes floatProd {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes floatRibbon {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

@keyframes hdDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── 17.5  INLINE AD IMAGE UPLOAD ── */
.ad-img-section { margin-top: 16px; border-top: 1.5px solid var(--border); padding-top: 20px; }

.ad-img-section-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .9px; color: var(--muted);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.ad-img-section-label .mode-badge {
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
}
.ad-img-section-label .mode-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #f59e0b; flex-shrink: 0;
}
.ad-img-section-label .mode-badge.active {
  background: #dcfce7; color: #15803d; border-color: #86efac;
}
.ad-img-section-label .mode-badge.active::before { background: #16a34a; }

/* Upload zone */
.ad-img-upload-area {
  border: 2px dashed #cbd5e1; border-radius: 14px;
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: all .2s; position: relative; background: #f8fafc;
}
.ad-img-upload-area:hover { border-color: var(--blue); background: #eff6ff; }
.ad-img-upload-area input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.ad-img-upload-area .upload-icon {
  font-size: 30px; margin-bottom: 10px;
  filter: drop-shadow(0 2px 6px rgba(37,99,235,.15));
}
.ad-img-upload-area .upload-text { font-size: 14px; font-weight: 700; color: var(--blue); }
.ad-img-upload-area .upload-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* Preview box */
.ad-img-preview-box {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #f8fafc;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ad-img-preview-box img {
  height: 72px; max-width: 200px; object-fit: contain;
  border-radius: 8px; border: 1px solid var(--border);
  background: #fff; padding: 4px; flex-shrink: 0;
}
.ad-img-preview-info { flex: 1; }
.ad-img-preview-info strong { font-size: 13px; font-weight: 700; color: var(--dark); display: block; margin-bottom: 2px; }
.ad-img-preview-info span   { font-size: 11px; color: var(--muted); }

/* Mode note */
.ad-mode-note {
  margin-top: 10px; padding: 9px 13px; border-radius: 9px;
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 7px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.ad-mode-note.img-mode { background: #f0fdf4; border-color: #86efac; color: #15803d; }
/* ========================================================================================
================= ANALYTICS TAB ==========================================================*/

      /* ── ANALYTICS ── */
      
.analytics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.an-stat { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px 22px; position: relative; overflow: hidden; }
.an-stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.an-stat.blue::before  { background: var(--blue); }
.an-stat.green::before { background: var(--green); }
.an-stat.orange::before{ background: var(--orange); }
.an-stat.red::before   { background: var(--red); }
.an-stat .an-icon { font-size: 22px; margin-bottom: 8px; }
.an-stat .an-val  { font-size: 28px; font-weight: 800; color: var(--dark); line-height: 1; }
.an-stat .an-lbl  { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.an-stat .an-badge { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; background: #dcfce7; color: #15803d; border: 1px solid #86efac; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.live-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; animation: livePulse 1.6s ease-in-out infinite; }
.an-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.an-charts-row.three { grid-template-columns: 1fr 1fr 1fr; }
.an-chart-box { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.an-chart-box h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.an-chart-box p  { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-chart .bar-fill { width: 100%; border-radius: 4px 4px 0 0; background: var(--blue); transition: height .4s ease; min-height: 4px; }
.bar-chart .bar-lbl { font-size: 9px; color: var(--muted); font-weight: 600; }
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut-svg { flex-shrink: 0; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend-name { flex: 1; font-weight: 600; color: var(--dark); }
.donut-legend-val  { font-size: 11px; color: var(--muted); }
.session-table { width: 100%; border-collapse: collapse; }
.session-table th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); background: var(--light); }
.session-table td { padding: 12px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13px; vertical-align: middle; }
.session-table tr:last-child td { border-bottom: none; }
.session-table tr:hover td { background: #f8faff; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-active  { background: #dcfce7; color: #15803d; }
.status-left    { background: #fee2e2; color: #991b1b; }
.status-no-ret  { background: #fef3c7; color: #92400e; }
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.activity-body { flex: 1; }
.activity-body strong { font-size: 13px; font-weight: 600; color: var(--dark); }
.activity-body span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.activity-time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.device-bars { display: flex; flex-direction: column; gap: 12px; }
.device-bar-row { display: flex; align-items: center; gap: 12px; }
.device-bar-label { font-size: 12px; font-weight: 600; color: var(--dark); width: 60px; }
.device-bar-track { flex: 1; height: 10px; background: var(--light); border-radius: 999px; overflow: hidden; }
.device-bar-fill { height: 100%; border-radius: 999px; transition: width .6s ease; }
.device-bar-pct { font-size: 12px; font-weight: 700; color: var(--muted); width: 36px; text-align: right; }
.health-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.health-item { background: var(--light); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.health-item .h-val { font-size: 22px; font-weight: 800; color: var(--dark); }
.health-item .h-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.health-item .h-status { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-top: 6px; display: inline-block; }
.h-good { background: #dcfce7; color: #15803d; }
.h-warn { background: #fef3c7; color: #92400e; }
.an-period-tabs { display: flex; gap: 4px; }
.an-period-tab { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); background: var(--white); color: var(--muted); transition: all .15s; }
.an-period-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
/* ============================================================
   18. RESPONSIVE
   ============================================================ */

/* ── Large Monitors (≤ 1100px) ── */
@media (max-width: 1100px) {
  .hero         { padding: 40px 20px 36px; gap: 20px; }
  .podium-slot-wrapper { width: 380px; height: auto; }
  .hero-left h1 { font-size: clamp(28px, 3.5vw, 40px); }
  .hero-left p  { font-size: 14px; max-width: 360px; }
  .hero-search  { max-width: 360px; }
  .podium-img-wrap    { width: 220px; height: 220px; left: -8%; transform: translateY(60px); }
  .podium-img-slide img { width: 200px; height: 200px; }
  .podium-dots  { padding-left: 220px; margin-top: 110px; }
  .featured-ribbon { top: 3%; right: 4%; width: clamp(160px, 26vw, 260px); }
}

/* ── Tablet Landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
  .deals-grid       { grid-template-columns: repeat(3, 1fr); }
  .categories-strip { grid-template-columns: repeat(4, 1fr); }
  .hero             { flex-direction: column; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .featured-ribbon {top: 0%; right: 3%; width: clamp(140px, 22vw, 220px);}
}

/* ── Tablet Portrait (≤ 900px) ── */
@media (max-width: 900px) {
  .pm-drawer.pm-fullpage { margin: 0; width: 100%; border-radius: 0; max-height: 100vh; overflow-y: auto; }
  .pm-body               { grid-template-columns: 1fr; display: block; }
  .pm-left               { border-right: none; border-bottom: 1.5px solid var(--border); padding: 20px 16px; overflow: visible; height: auto; }
  .pm-right              { padding: 20px 16px 40px; overflow: visible; height: auto; }
}

/* ── Mobile Landscape (≤ 768px) ── */
@media (max-width: 768px) {
  .navbar            { padding: 0 16px; gap: 10px; }
  .logo-sub          { display: none; }
  .logo-main         { font-size: 18px; }
  .nav-search        { max-width: 200px; margin: 0; }
  .nav-search input  { padding: 8px 10px; font-size: 13px; }
.btn-login {
    padding: 7px 14px !important; border-radius: 8px !important;
    font-size: 13px !important; flex-shrink: 0;
  }
  .btn-login svg { display: none; }

  .hero              { padding: 32px 16px; }
  .section           { padding: 32px 16px; }
  .deals-grid        { grid-template-columns: repeat(2, 1fr); }
  .categories-strip  { grid-template-columns: repeat(2, 1fr); }
  .how-steps         { grid-template-columns: repeat(2, 1fr); }
  .how-steps::before { display: none; }
  .newsletter-inner  { flex-direction: column; text-align: center; }
  .newsletter-form   { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .inline-ad-banner  { padding: 11px 16px; gap: 10px; }
  .inline-ad-sub     { display: none; }
    .featured-ribbon {position: relative;top: unset;right: unset;width: min(320px, 80vw);margin: 0 auto 16px;}
}

/* ── Modal (≤ 680px) ── */
@media (max-width: 680px) {
  .pm-body           { grid-template-columns: 1fr; }
  .pm-price-row      { grid-template-columns: auto 1fr auto auto; }
  .pm-best-deal-tag,
  .pm-store-logo     { display: none; }
}

/* ── Modal full-screen (≤ 600px) ── */
@media (max-width: 600px) {
  .pm-drawer.pm-fullpage {
    margin: 0 !important; width: 100vw !important;
    border-radius: 0 !important; max-height: 100vh !important; min-height: 100vh !important;
  }
}

/* ── Mobile Portrait (≤ 480px) ── */
@media (max-width: 480px) {
  .pm-price-row      { grid-template-columns: 40px 1fr auto; gap: 8px; padding: 10px; }
  .pm-best-deal-tag  { display: none; }
  .pm-row-saving     { display: none; }
}

/* ── Small Mobile (≤ 426px) ── */
@media (max-width: 426px) {
  .hero              { flex-direction: column; padding: 24px 16px 32px; gap: 0; }
  .hero-visual       { width: 100%; flex-direction: column; align-items: center; min-height: unset; gap: 0; }
  .featured-ribbon { position: relative; top: unset; right: unset; left: unset; transform: none; width: min(380px, 90vw); margin: 0 auto 12px; }
  .podium-slot-wrapper { width: 100%; height: auto; min-height: unset; height: auto;}
  .podium-img-wrap   { width: 220px; height: 220px; left: 0; transform: none; }
  .podium-base       { display: none; }
  .podium-dots       { margin-top: 12px; padding-left: 0; justify-content: center; }
  .podium-cards-area { width: 100%; margin-top: 16px; gap: 10px; }
  .price-card        { width: 100%; }
  .compare-btn       { width: 100%; justify-content: center; margin-top: 4px; }
  .podium-slot-wrapper { height: auto; }
}

/* ── Very Small Mobile (≤ 425px) ── */
@media (max-width: 426px) {
  .nav-search       { display: none; }
  .inline-ad-cta    { display: none; }
  .inline-ad-title  { font-size: 12px; }
}

/* ============================================================
   1. TERMS POPUP
   ============================================================ */

   /* ── TERMS POPUP ── */
.terms-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.terms-popup {
  background: #fff; border-radius: 20px; padding: 40px 36px;
  max-width: 460px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  text-align: center;
}
.terms-popup h3 {
  font-family: 'Sora', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 10px;
}
.terms-popup p {
  font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px;
}
.terms-popup p a { color: var(--blue); text-decoration: none; font-weight: 600; }
.terms-popup p a:hover { text-decoration: underline; }
.terms-check-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--mid); margin-bottom: 20px;
  text-align: left; background: var(--light);
  border: 1.5px solid var(--border); border-radius: 10px; padding: 14px;
}
.terms-check-row input { margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.terms-check-row a { color: var(--blue); font-weight: 600; text-decoration: none; }
.terms-check-row a:hover { text-decoration: underline; }
.terms-popup-btn {
  width: 100%; padding: 13px; background: var(--blue); color: #fff; border: none;
  border-radius: 10px; font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.terms-popup-btn:hover { background: #1d4ed8; }
.terms-popup-btn:disabled { background: #93c5fd; cursor: not-allowed; }
.terms-popup-decline {
  display: block; margin-top: 14px; font-size: 13px;
  color: var(--muted); cursor: pointer; background: none;
  border: none; font-family: inherit; width: 100%;
}
.terms-popup-decline:hover { color: var(--dark); }