/* =========================================================
   DetectPrice — CLEAN FINAL CSS (NO duplicates / NO overrides)
   - Vertical product card (image top, details below)
   - Premium glacier border
   - Storage font smaller (only storage text)
   - Best deal: smaller (no disturbance), badge outside, soft glow + hover
   - Lowest-price pill text is WHITE
   - "Best Price" label supported (if present)
   - "You save" pill (catchy)
   - Retailer names visible (stacked list, one per line)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root{
  --bgTop:#EAF6FF;
  --bg:#FFFFFF;

  --surface:#ffffff;
  --text:#0f1111;
  --muted:#565959;
  --subtle:#6b7280;
  --border:#d5d9d9;

  --navy:#232F3E;
  --brand:#e47911;
  --success:#0A7A63;

  --amazon-yellow-1:#f7dfa5;
  --amazon-yellow-2:#f0c14b;
  --amazon-yellow-border:#a88734;

  --radius:14px;
  --shadow-sm:0 1px 2px rgba(0,0,0,.06);
  --shadow-md:0 10px 24px rgba(17,24,39,.10);

  --glacier: rgba(120, 200, 255, 0.35);
  --glacier-soft: rgba(120, 200, 255, 0.10);

  --max:1200px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bgTop) 0%, var(--bg) 220px);
  color:var(--text);
  line-height:1.5;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ==================== NAVBAR ==================== */
.ad-banner{
  background:var(--navy);
  color:#fff;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.12);
  position:sticky;
  top:0;
  z-index:1000;
}

.ad-container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.ad-content{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:260px;
}

.ad-icon{ font-size:18px; }

.ad-text{ display:flex; flex-direction:column; gap:1px; }
.ad-headline{ font-weight:800; font-size:13px; letter-spacing:.2px; line-height:1.2; }
.ad-subtext{ font-size:12px; color:rgba(255,255,255,.82); font-weight:600; line-height:1.2; }

.ad-retailers{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  padding:8px 10px;
  border-radius:14px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.retailer-label{
  font-size:12px;
  font-weight:950;
  color:#111;
  text-transform:uppercase;
  letter-spacing:.8px;
  border-right: 1px solid rgba(0,0,0,.10);
  padding-right: 10px;
}

.retailer-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.retailer-btn{

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:8px 16px;

  border-radius:999px;

  text-decoration:none;

  font-size:12px;

  font-weight:800;

  letter-spacing:.3px;

  color:#fff;

  background:
    linear-gradient(
      135deg,
      #1f2937,
      #111827
    );

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 4px 18px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.06);

  backdrop-filter:blur(12px);

  transition:
    all .25s cubic-bezier(0.22,1,0.36,1);

  position:relative;

  overflow:hidden;
}
.retailer-btn:hover{

  transform:
    translateY(-2px)
    scale(1.04);

  box-shadow:
    0 10px 28px rgba(0,0,0,.35),
    0 0 18px rgba(255,255,255,.08);

  border-color:
    rgba(255,255,255,.18);
}
.retailer-btn:active{

  transform:
    scale(0.97);

  box-shadow:
    inset 0 3px 10px rgba(0,0,0,.35);

}

.shop-pill, .shop-logo{ display:none !important; }

/* ==================== HEADER ==================== */
header{
  background:var(--surface);
  border-bottom:1px solid var(--border);
}

.header-container{
  max-width:var(--max);
  margin:0 auto;
  padding:18px 16px;
  position:relative;
}

.header-content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.brand{
  margin:0;
  font-size:36px;
  font-weight:950;
  letter-spacing:1px;
  line-height:1.05;
  text-transform:uppercase;
  color:#111;
  text-shadow:0 1px 0 rgba(255,255,255,.7);
}
.brand-accent{
  color: var(--brand);
  font-weight:950;
  text-shadow:0 10px 18px rgba(228,121,17,.18);
}
.brand::after{
  content:"";
  display:block;
  width:140px;
  height:5px;
  margin-top:10px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--amazon-yellow-2) 0%, var(--brand) 100%);
  box-shadow:0 10px 18px rgba(240,193,75,.18);
}

.price-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff7e6;
  border:1px solid rgba(240,193,75,.55);
  color:#111827;
  font-size:12.5px;
  font-weight:800;
  box-shadow:var(--shadow-sm);
}
.price-badge::before{ content:"🏷️"; font-size:15px; }

/* ==================== MAIN ==================== */
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:18px 16px 48px;
}

/* ==================== INTRO ==================== */
.intro-section{ margin-bottom:16px; }
.intro-banner{
  background: linear-gradient(180deg, #F3FAFF 0%, #FFFFFF 100%);
  border:1px solid rgba(17,24,39,.12);
  border-radius:20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  padding: 28px;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.intro-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  box-shadow: 0 6px 20px rgba(16,185,129,0.25);
  border:1px solid rgba(240,193,75,.25);
  font-size:22px;
}
.intro-content{ flex:1; min-width:240px; }
.intro-content h2{ font-size:26px; font-weight:900; color:#0f172a; margin-bottom:4px; }
.intro-content p{ font-size:14px; color:#475569; margin-top:6px; font-weight:600; }

.intro-stats{ display:flex; gap:10px; flex-wrap:wrap; }
.stat{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px;
  min-width:120px;
  text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}
.stat-number{ display:block; font-size:18px; font-weight:900; color: var(--success); }
.stat-label{
  display:block;
  font-size:11px;
  font-weight:800;
  color:var(--subtle);
  text-transform:uppercase;
  letter-spacing:.7px;
  margin-top:2px;
}

/* ==================== SEARCH ==================== */
.search-wrapper{ margin:14px 0 18px; }
.search-section{
  background: linear-gradient(180deg, #F3FAFF 0%, #FFFFFF 100%);
  border:1px solid rgba(17,24,39,.12);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:14px;
}
.search-container{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.search-section input{
  flex:1;
  min-width:240px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #cfd4d4;
  background:#fff;
  font-size:14px;
  font-weight:600;
  outline:none;
}
.search-section input:focus{
  border-color:rgba(16,185,129,0.9);
  box-shadow:0 0 0 4px rgba(16,185,129,0.15);
}
.search-section input::placeholder{ color:#8a8f8f; font-weight:600; }
/* 🔥 PREMIUM SEARCH BUTTON */
.search-section button{
  position: relative;
  overflow: hidden;

  padding: 12px 22px;

  border-radius: 14px;
  border: none;

  background:
    linear-gradient(180deg,
      #16c47f 0%,
      #0ea56b 100%);

  color: #fff;

  font-size: 14px;
  font-weight: 900;

  cursor: pointer;
  white-space: nowrap;

  box-shadow:
    0 10px 24px rgba(16,196,127,0.25),
    inset 0 1px 1px rgba(255,255,255,0.22);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

/* ✨ HOVER */
.search-section button:hover{
  transform: translateY(-2px) scale(1.02);

  filter: brightness(1.04);

  box-shadow:
    0 16px 34px rgba(16,196,127,0.35),
    inset 0 1px 1px rgba(255,255,255,0.3);
}

/* 👆 CLICK */
.search-section button:active{
  transform: scale(0.98);
}

/* ✨ GLOSS EFFECT */
.search-section button::before{
  content:"";

  position:absolute;

  top:0;
  left:-120%;

  width:80%;
  height:100%;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,0.35),
      transparent
    );

  transition:left 0.7s ease;
}

.search-section button:hover::before{
  left:130%;
}
/* ==================== SECTION HEADER ==================== */
.section-header{ text-align:left; margin:12px 0 10px; }
.section-header h3{ font-size:16px; font-weight:900; }
.section-header p{ font-size:12px; color:var(--muted); font-weight:600; margin-top:4px; }

/* ==================== CATEGORY TABS ==================== */
.category-tabs{
  background: linear-gradient(180deg, #F3FAFF 0%, #FFFFFF 100%);
  border:1px solid rgba(17,24,39,.12);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tab-btn{
  border:1px solid #cfd4d4;
  background:#fff;
  color:#111827;
  padding:9px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  gap:8px;
  align-items:center;
  transition: all 0.2s ease;
}
.tab-btn:hover{ background:#f7fafc; transform: scale(1.05); }
.tab-btn.active{
  border-color:rgba(15,17,17,.25);
  background:linear-gradient(var(--amazon-yellow-1), var(--amazon-yellow-2));
}
.tab-icon{ line-height:1; display:inline-flex; }

/* ==================== PRODUCTS GRID ==================== */
#productsGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:14px;
  margin-top:10px;
  justify-items:center;
}

/* ==================== PRODUCT CARD ==================== */
.product-card{
  width:100%;
  max-width:320px;

  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 55%, #f8fafb 100%);
  border: 1px solid var(--glacier);
  border-radius: 20px;

  padding:10px;
  display:flex;
  flex-direction:column;
  gap:6px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 0 0 3px var(--glacier-soft);

  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;

  animation: fadeInUp 0.5s ease;
}
.product-card:hover{

  transform:
    translateY(-8px)
    scale(1.01);

  border-color:
    rgba(96,165,250,.55);

 box-shadow:
  0 10px 30px rgba(15,23,42,.08),
  0 1px 0 rgba(255,255,255,.65) inset,
  0 0 0 1px rgba(255,255,255,.18);

}
.product-card *{ min-width:0; }

/* Image */
.product-image{
  width:100%;
  height:140px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  overflow:hidden;
  background: linear-gradient(180deg,#f1f5f9,#ffffff);
  border:1px solid rgba(15,23,42,0.08);
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.05);
}
.product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  transform:none;
  display:block;
}

.product-name{
  font-size:14.5px;
  font-weight:850;
  margin:0;
  color:#111827;
  line-height:1.25;
}
.product-specs{
  color:#64748b;
  font-size:11.5px;
  font-weight:750;
}

/* Storage variants */
.variant-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:5px;
  margin-top:2px;
  margin-bottom:6px;
}
.variant-box{
  width:100%;
  max-width:100%;
  min-height:26px;

  display:flex;
  align-items:center;
  justify-content:center;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;

  border:1px solid rgba(0,0,0,0.12);
  padding:3px 6px;
  border-radius:8px;
  cursor:pointer;

  font-size:10.5px; /* only storage text smaller */
  font-weight:850;
  letter-spacing:.2px;

  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease, border-color .14s ease;
}
.variant-box:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15,23,42,0.12);
  filter: brightness(1.02);
  border-color: rgba(22,163,74,0.40);
}
.variant-box.active{
  background: linear-gradient(180deg, #16a34a 0%, #0f8a3d 100%);
  color:#fff;
  border-color:#0f8a3d;
  box-shadow: 0 10px 20px rgba(22,163,74,0.22);
}

/* Price + Savings (supports .best-price + .main-price + .savings) */
.price-display{
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 55%, #bbf7d0 100%);
  color: #065f46;
  border: 1px solid rgba(6,95,70,0.18);
  border-radius:14px;
  padding:9px 10px;
  box-shadow:0 6px 18px rgba(16,185,129,0.18);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  font-weight:900;
  font-size:16px;
  letter-spacing:.1px;
  line-height:1.25;
  white-space:normal;
  text-align:left;
}

.best-price{
  display:inline-flex;
  align-items:center;
  height:20px;
  font-size:11px;
  font-weight:950;
  letter-spacing:.45px;
  text-transform:uppercase;
  color:#064e3b;
  background: rgba(6,95,70,0.10);
  border: 1px solid rgba(6,95,70,0.14);
  padding:2px 8px;
  border-radius:999px;
}

.main-price{
  font-size:16px;
  font-weight:950;
  white-space:nowrap;
}


.savings::before{
  content:"💸";
  font-size:12px;
  line-height:1;
}

/* ==================== RETAILERS (one per line, names fully visible) ==================== */
.retailers-list{
  display:grid;
  grid-template-columns: 1fr;
  gap:6px;
  margin-top:6px;
}

.retailer-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  min-height:42px;
  padding:6px 10px;
  border-radius:12px;

  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(120, 200, 255, 0.25);
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.7);

  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  overflow:hidden;
}

.retailer-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  filter: brightness(1.01);
}

.retailer-checkbox{
  flex:0 0 auto;
  font-size:13px;
  color:#22c55e;
  margin-right:8px;
}

.retailer-name{
  flex:1 1 auto;
  font-size:12.8px;
  font-weight:900;
  color:#111827;
  line-height:1.1;
  white-space:normal;
}

.retailer-price{
  flex:0 0 auto;
  min-width:110px;
  text-align:right;

  font-size:12.5px;
  font-weight:900;
  color:#111;

  background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
  padding:3px 8px;
  border-radius:9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* ==================== BEST DEAL (small, no disturbance, white price) ==================== */
.retailer-item.lowest-price{
  border: 1.5px solid rgba(10,122,99,.70);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 55%, #ffffff 110%);
  box-shadow:
    0 10px 18px rgba(16,185,129,0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);

  position: relative;
  overflow: visible;
  padding-top: 6px;

  animation: bestDealSoftGlow 1.9s ease-in-out infinite;
}

.retailer-item.lowest-price::before{
  content:"🔥 BEST DEAL";
  position:absolute;
  top:-12px;
  right:10px;
  z-index:20;

  font-size:9px;
  font-weight:950;
  letter-spacing:.35px;
  padding:3px 8px;
  border-radius:999px;

  background: linear-gradient(180deg, #0A7A63 0%, #065f46 100%);
  color:#fff;
  box-shadow: 0 10px 18px rgba(10,122,99,.25);
  border: 1px solid rgba(255,255,255,.22);
}

.retailer-item.lowest-price .retailer-price{
  background: linear-gradient(180deg, #0A7A63 0%, #065f46 100%);
  color:#ffffff; /* white */
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 10px 18px rgba(10,122,99,0.22);
}

.retailer-item.lowest-price:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow:
    0 18px 34px rgba(16,185,129,0.18),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

@keyframes bestDealSoftGlow{
  0%{
    box-shadow:
      0 10px 18px rgba(16,185,129,0.12),
      0 0 0 0 rgba(16,185,129,0.20),
      inset 0 1px 0 rgba(255,255,255,0.7);
  }
  55%{
    box-shadow:
      0 12px 22px rgba(16,185,129,0.14),
      0 0 0 6px rgba(16,185,129,0.00),
      inset 0 1px 0 rgba(255,255,255,0.7);
  }
  100%{
    box-shadow:
      0 10px 18px rgba(16,185,129,0.12),
      0 0 0 0 rgba(16,185,129,0.00),
      inset 0 1px 0 rgba(255,255,255,0.7);
  }
}

@keyframes fadeInUp{
  from{ opacity:0; transform: translateY(20px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ==================== PAGINATION ==================== */
#pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:18px 0 0;
  flex-wrap:wrap;
  background: linear-gradient(180deg, #F3FAFF 0%, #FFFFFF 100%);
  border:1px solid rgba(17,24,39,.12);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:10px;
}
#pagination button{
  border:1px solid #cfd4d4;
  background:#fff;
  border-radius:12px;
  padding:9px 12px;
  cursor:pointer;
  font-weight:900;
  color:#111827;
}
#pagination button:hover:not(:disabled){ background:#f7fafc; }
#pagination button.active{
  border-color:rgba(15,17,17,.25);
  background:linear-gradient(var(--amazon-yellow-1), var(--amazon-yellow-2));
}
#pagination button:disabled{ opacity:.5; cursor:not-allowed; }

/* ==================== INFO ==================== */
.info-banner{
  margin-top:18px;
  background: linear-gradient(180deg, #F3FAFF 0%, #FFFFFF 100%);
  border:1px solid rgba(17,24,39,.12);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:14px;
}
.info-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
  gap:12px;
}
.info-card{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px;
  background: linear-gradient(180deg, #F7FCFF 0%, #FFFFFF 100%);
}
.info-icon{ font-size:22px; margin-bottom:6px; }
.info-card h4{ font-size:13px; font-weight:900; margin-bottom:4px; color:#111827; }
.info-card p{ font-size:12px; color:var(--muted); font-weight:600; }

/* ==================== FOOTER ==================== */
.footer-section{
  margin-top:22px;
  background:var(--navy);
  color:rgba(255,255,255,.9);
  border-radius:var(--radius);
  padding:18px 16px 12px;
}
.footer-content{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}
.footer-column h4{
  color:#fff;
  font-weight:900;
  font-size:14px;
  margin-bottom:8px;
}
.footer-column p,
.footer-column ul li{
  font-size:12px;
  color:rgba(255,255,255,.85);
  font-weight:600;
  line-height:1.7;
}
.footer-column ul{ list-style:none; }
.footer-bottom{
  max-width:var(--max);
  margin:12px auto 0;
  border-top:1px solid rgba(255,255,255,.15);
  padding-top:10px;
  text-align:center;
  font-size:12px;
  color:rgba(255,255,255,.75);
}

/* ==================== SKELETON ==================== */
.skeleton{ pointer-events:none; }
.skeleton-img{
  width:100%;
  height:120px;
  border-radius:12px;
  margin-bottom:10px;
  animation: shimmer 1.5s infinite linear;
}
.skeleton-line{
  height:12px;
  border-radius:8px;
  margin-bottom:8px;
  animation: shimmer 1.5s infinite linear;
}
.skeleton-line.title{ width:80%; height:14px; }
.skeleton-line.small{ width:60%; }
.skeleton-price{
  height:18px;
  width:50%;
  border-radius:10px;
  margin:10px 0;
  animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer{
  0%{ background-position:-200px 0; }
  100%{ background-position:200px 0; }
}
.skeleton-img,
.skeleton-line,
.skeleton-price{
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size:400px 100%;
}

/* ==================== DARK MODE ==================== */
body.dark{
  --bgTop:#0f172a;
  --bg:#020617;
  --surface:#0b1220;
  --text:#f1f5f9;
  --muted:#94a3b8;
  --subtle:#64748b;
  --border:#1e293b;
  background:linear-gradient(180deg,#020617 0%,#020617 100%);
}

body.dark .product-card,
body.dark .search-section,
body.dark .intro-banner,
body.dark .category-tabs,
body.dark .info-banner,
body.dark #pagination{
  background:#0b1220;
  border-color:#1e293b;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
}

body.dark .product-name,
body.dark h1,
body.dark h2,
body.dark h3{ color:#f8fafc; }

body.dark .product-specs,
body.dark p{ color:#94a3b8; }

body.dark .retailer-item{
  background: linear-gradient(180deg, #020617 0%, #071427 100%);
  border-color: rgba(120, 200, 255, 0.18);
}

body.dark .retailer-name,
body.dark .retailer-price{
  color:#ffffff;
  font-weight:900;
}

body.dark .retailer-price{
  background:#020617;
  border-color: rgba(120, 200, 255, 0.18);
}

body.dark .retailer-item.lowest-price{
  background:linear-gradient(135deg,#064e3b,#022c22);
  border:2px solid #10b981;
}

body.dark .retailer-item.lowest-price::before{
  background:#10b981;
  color:#022c22;
  font-weight:900;
}

body.dark .retailer-item.lowest-price .retailer-price{
  background: linear-gradient(180deg, #10b981 0%, #065f46 100%);
  color:#fff;
}

body.dark .price-display{
  background:#022c22;
  color:#34d399;
  border-color: rgba(16,185,129,0.25);
}

body.dark .savings{
  background: rgba(16,185,129,0.20);
  border-color: rgba(16,185,129,0.25);
  color:#a7f3d0;
}

body.dark input{
  background:#020617;
  color:#fff;
  border-color:#1e293b;
}

body.dark .ad-banner{ background:#020617; }
body.dark .footer-section{ background:#020617; }

/* ==================== RESPONSIVE ==================== */
@media (max-width:768px){
  .ad-container{ justify-content:center; }
  .ad-retailers{ justify-content:center; }
  .header-content{ align-items:center; text-align:center; }
  .brand::after{ margin-left:auto; margin-right:auto; }
  .brand{ font-size:28px; }
  .search-section button{ width:100%; }
  #productsGrid{ grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width:480px){
  .container{ padding:14px 12px 40px; }
  #productsGrid{ grid-template-columns:1fr; }
  .tab-btn{ flex:0 1 calc(50% - 8px); justify-content:center; }
}
/* PREMIUM PRICE SECTION */

.price-display{

  display:flex !important;

  flex-direction:column !important;

  align-items:center !important;

  justify-content:center !important;

  gap:10px !important;

  padding:14px 12px !important;
}

.price-display strong{

  font-size:28px !important;

  font-weight:950 !important;

  color:#16a34a !important;

  letter-spacing:-1px !important;

  line-height:1 !important;
}

.savings{

  display:inline-flex !important;

  align-items:center !important;

  justify-content:center !important;

  padding:6px 14px !important;

  border-radius:999px !important;

  background:
    rgba(34,197,94,.12) !important;

  color:#16a34a !important;

  font-size:13px !important;

  font-weight:900 !important;

  border:
    1px solid rgba(34,197,94,.18) !important;

  box-shadow:
    0 8px 20px rgba(34,197,94,.10) !important;
}
/* STEP 2 FIX — RETAILER ALIGNMENT */
.retailer-item{
display:flex !important;
align-items:center !important; /* vertical center */
justify-content:space-between !important;
gap:10px !important;
}
/* Fix text alignment */
.retailer-name{
display:flex !important;
align-items:center !important;
gap:6px !important;
}

/* Keep price perfectly centered */
.retailer-price{
display:flex !important;
align-items:center !important;
justify-content:center !important;
}
/* FINAL STEP — PREMIUM INTERACTION */


/* Image slight zoom on hover */
.product-image img{
transition: transform 0.3s ease !important;
}

.product-card:hover .product-image img{
transform: scale(1.05) !important;
}

/* Variant buttons feel clickable */
.variant-box{
transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.variant-box:hover{
transform: translateY(-2px) !important;
box-shadow: 0 8px 18px rgba(0,0,0,0.12) !important;
}

/* Retailer row interaction */
.retailer-item{
transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.retailer-item:hover{
transform: translateY(-2px) scale(1.01) !important;
box-shadow: 0 12px 25px rgba(0,0,0,0.12) !important;
}

/* BEST DEAL glow improvement */
.retailer-item.lowest-price{
animation: softGlow 2s infinite !important;
}

@keyframes softGlow{
0%{ box-shadow: 0 0 0 0 rgba(16,185,129,0.3); }
50%{ box-shadow: 0 0 0 8px rgba(16,185,129,0); }
100%{ box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
/* =========================
   GLOW EFFECT (PREMIUM)
========================= */

.product-card{
  position: relative; /* IMPORTANT */
  
}

.product-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: radial-gradient(
    500px circle at var(--x, 50%) var(--y, 50%),
    rgba(16,185,129,0.12),
    transparent 40%
  );

  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover::before{
  opacity: 1;
}
/* DARK MODE BUTTON */
#darkToggle{
  position: fixed;
  top: 20px;
  right: 20px;

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);

  color: white;
  font-size: 20px;
  cursor: pointer;

  z-index: 9999;

  transition: all 0.25s ease;
}

#darkToggle:hover{
  transform: scale(1.08);
}/* 🌙 DARK MODE BUTTON */
#darkToggle{
  position: fixed;
  top: 72px;
  right: 22px;

  width: 54px;
  height: 54px;

  border: none;
  border-radius: 50%;

  background: rgba(8,8,12,0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);

  color: #ffd95a;

  font-size: 22px;
  cursor: pointer;

  z-index: 9999;

  box-shadow:
    0 8px 24px rgba(0,0,0,0.25),
    inset 0 1px 1px rgba(255,255,255,0.08);

  transition: all 0.3s ease;
}

#darkToggle:hover{
  transform: scale(1.08);
}

/* ☀️ when dark mode active */
body.dark #darkToggle{
  background: rgba(255,255,255,0.85);
  color: #111827;
}
/* FIX STORAGE BUTTON TEXT IN DARK MODE */
body.dark .variant-box{
  background: #ffffff;
  color: #111827 !important;
  font-weight: 800;
}

body.dark .variant-box.active{
  background: linear-gradient(180deg,#22c55e,#16a34a);
  color: white !important;
}
/* ==================== FILTER BAR ==================== */

.filter-section{
  margin:16px 0 22px;

  position:relative;

  z-index:999;
}


.filter-bar{
  display:flex;
  gap:12px;
  position:relative;

z-index:999;
  flex-wrap:wrap;
}

.filter-dropdown{

  position:relative;

  min-width:170px;

  padding:16px 18px;

  border-radius:16px;

  background:#fff;

  border:1px solid #d1d5db;

  box-shadow:
    0 4px 10px rgba(15,23,42,0.04);

  transition:all 0.25s ease;

  cursor:pointer;
}

.filter-dropdown:hover{

  border-color:#10b981;

  transform:translateY(-2px);

  box-shadow:
    0 12px 24px rgba(16,185,129,0.10);
}

.filter-header{

  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:14px;

  font-size:14px;

  font-weight:800;
}

.arrow{

  font-size:18px;

  opacity:0.7;
}

.filter-menu{

  position:absolute;

  top:110%;

  left:0;

  width:220px;

  background:#fff;

  border:1px solid #e5e7eb;

  border-radius:16px;

  box-shadow:
    0 12px 28px rgba(15,23,42,0.10);

  padding:10px;

  display:none;

  z-index:9999;
}



.filter-option{

  padding:12px 14px;

  border-radius:12px;

  font-size:14px;

  font-weight:700;

  transition:all 0.2s ease;
}

.filter-option:hover{

  background:#f3f4f6;
}

/* DARK MODE */

body.dark .filter-dropdown{

  background:#111827;

  border-color:#374151;

  color:#fff;
}

body.dark .filter-menu{

  background:#111827;

  border-color:#374151;
}

body.dark .filter-option:hover{

  background:#1f2937;
}
/* ==================== PRODUCT SPECS ==================== */

.product-specs{

  display:flex;

  align-items:center;

  justify-content:center;

  flex-wrap:wrap;

  gap:7px;

  margin-top:6px;

  margin-bottom:10px;
}
.spec-chip{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  gap:5px;

  padding:6px 10px;

  border-radius:999px;

  background:
    rgba(255,255,255,.65);

  border:
    1px solid rgba(148,163,184,.18);

  font-size:11.5px;

  font-weight:800;

  color:#334155;

  backdrop-filter:blur(10px);

  box-shadow:
    0 4px 10px rgba(15,23,42,.05);

  white-space:nowrap;
}

/* DARK MODE */

body.dark .spec-chip{

  background:#1f2937;

  border-color:#374151;

  color:#fff;

}


/* ACTIVE FILTER */

.filter-option.active-filter{

  background:rgba(0,0,0,0.06);

  color:#111;

  font-weight:700;

  border-radius:12px;

  border:1px solid rgba(0,0,0,0.15);

  box-shadow:
    0 0 10px rgba(0,0,0,0.08);

  backdrop-filter:blur(12px);

  transition:0.25s ease;
}


/* DARK MODE ACTIVE */

body.dark .filter-option.active-filter{

  background:rgba(255,255,255,0.08);

  color:#fff;

  border:1px solid rgba(255,255,255,0.25);

  box-shadow:
    0 0 12px rgba(255,255,255,0.12),
    0 0 20px rgba(255,255,255,0.06);
}
.product-image-slider{
  position:relative;

  width:220px;
  height:190px;

  margin:auto;

  overflow:hidden;
}

.carousel-image{
  position:absolute;

  top:50%;
  left:50%;

  object-fit:contain;

  transition:
    all 1.2s cubic-bezier(0.22,1,0.36,1);

  opacity:0;
}

/* CENTER */
.carousel-image.center{
  width:165px;
  height:165px;

  transform:
    translate(-50%,-50%)
    scale(1);

  opacity:1;

  z-index:3;
}

/* LEFT */
.carousel-image.left{
  width:70px;
  height:70px;

  transform:
    translate(-150%,-50%)
    scale(0.72);

  opacity:0.4;

  z-index:1;
}

/* RIGHT */
.carousel-image.right{
  width:70px;
  height:70px;

  transform:
    translate(50%,-50%)
    scale(0.72);

  opacity:0.4;

  z-index:1;
}

.image-viewer{
  position:fixed;

  inset:0;

  background:
    rgba(0,0,0,0.92);

  display:none;

  align-items:center;
  justify-content:center;

  z-index:9999;
}

.viewer-image{
  width:65vw;
  max-width:700px;

  max-height:80vh;

  object-fit:contain;
}

.viewer-btn{
  position:absolute;

  background:
    rgba(255,255,255,0.12);

  border:none;

  color:#fff;

  width:55px;
  height:55px;

  border-radius:50%;

  font-size:26px;

  cursor:pointer;

  backdrop-filter:blur(10px);
}

.left-btn{
  left:40px;
}

.right-btn{
  right:40px;
}

.close-viewer{
  position:absolute;

  top:25px;
  right:30px;

  color:#fff;

  font-size:34px;

  cursor:pointer;
}

/* ================= PRODUCT MODAL ================= */

.product-modal{
  overflow-y:auto;

  position:fixed;

  inset:0;

  background:
    rgba(2,6,23,.82);

  backdrop-filter:blur(18px);

  display:none;

  align-items: center;

  justify-content:center;

  z-index:99999;

  padding:24px;
}

.product-modal-content{

  width:min(1180px,100%);

  max-height:92vh;

  overflow-y:auto;

  overflow-x:hidden;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fafc 100%
    );

  border-radius:32px;

  border:
    1px solid rgba(148,163,184,.16);

  box-shadow:
    0 40px 100px rgba(0,0,0,.35);

  display:grid;

  grid-template-columns:
    1fr 1fr;

  gap:34px;

  padding:36px;

  position:relative;
}

.close-product-modal{

  position:absolute;

  top:18px;

  right:18px;

  width:42px;

  height:42px;

  border-radius:50%;

  border:none;

  background:#0f172a;

  color:white;

  font-size:22px;

  cursor:pointer;

  z-index:9999;
}
.product-modal{
  overflow-y:auto;
}

.product-modal-content{
  overflow:visible;
}

.modal-left{

  display:flex;

  flex-direction:column;

  gap:18px;
}

.modal-image-box{

  height:420px;

  border-radius:28px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f1f5f9 100%
    );

  display:flex;

  align-items:center;

  justify-content:center;

  overflow:hidden;

  border:
    1px solid rgba(148,163,184,.14);
}

.modal-image-box img{

  width:88%;

  height:88%;

  object-fit:contain;
}

.modal-specs{

  display:flex;

  flex-wrap:wrap;

  gap:10px;
}

.modal-product-name{

  font-size:34px;

  font-weight:950;

  line-height:1.08;

  color:#0f172a;
}

.modal-right{

  display:flex;

  flex-direction:column;

  gap:20px;
}

.modal-variants{

  display:flex;

  flex-wrap:wrap;

  gap:10px;
}

.modal-price-section{

  background:
    linear-gradient(
      135deg,
      #ecfdf5 0%,
      #d1fae5 100%
    );

  border-radius:26px;

  padding:22px;

  text-align:center;

  border:
    1px solid rgba(16,185,129,.18);
}

.big-modal-price{

  font-size:56px;

  font-weight:950;

  letter-spacing:-2px;

  color:#16a34a;
}

.modal-save{

  margin-top:10px;

  display:inline-flex;

  align-items:center;

  justify-content:center;

  padding:8px 16px;

  border-radius:999px;

  background:
    rgba(34,197,94,.12);

  color:#15803d;

  font-weight:900;
}

.modal-retailers{

  display:grid;

  gap:10px;
}

body.dark .product-modal-content{

  background:
    linear-gradient(
      180deg,
      #0f172a 0%,
      #020617 100%
    );

  border-color:#1e293b;
}

body.dark .modal-product-name{
  color:#f8fafc;
}

body.dark .modal-image-box{

  background:
    linear-gradient(
      180deg,
      #020617 0%,
      #0f172a 100%
    );

  border-color:#1e293b;
}

@media (max-width:900px){

  .product-modal-content{

    grid-template-columns:1fr;
  }

  .modal-image-box{
    height:320px;
  }

  .modal-product-name{
    font-size:28px;
  }
}
.modal-image-slider{
  position:relative;
  width:100%;
  height:100%;
}

.modal-carousel-image{

  position:absolute;

  inset:0;

  width:100%;
  height:100%;

  object-fit:contain;

  opacity:0;

  transform:scale(.96);

  transition:
    opacity .7s ease,
    transform .7s ease;
}

.modal-carousel-image.active{

  opacity:1;

  transform:scale(1);
}
/* PREMIUM MODAL SPECS */
.premium-specs{

  display:grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap:14px;

  margin-top:18px;
}

.premium-spec-card{
  flex:1;

  background:
    rgba(255,255,255,.75);

  backdrop-filter: blur(12px);

  border:
    1px solid rgba(255,255,255,.5);

  border-radius:22px;

  padding:18px 14px;

  text-align:center;

  box-shadow:
    0 10px 30px rgba(0,0,0,.06);

  transition:.3s ease;
}

.premium-spec-card:hover{
  transform:translateY(-4px);
}

.spec-icon{

  font-size:22px;

  margin-bottom:10px;
}

.spec-title{

  font-size:12px;

  font-weight:700;

  color:#6b7280;

  margin-bottom:5px;
}

.spec-value{

  font-size:15px;

  font-weight:900;

  color:#111827;

  line-height:1.3;
}

.modal-image-box{
  width:100%;
  height:420px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:
    linear-gradient(
      180deg,
      #f8fafc 0%,
      #eef2ff 100%
    );

  border-radius:28px;

  overflow:hidden;

  padding:20px;
}

.modal-image-box img{
  width:100%;
  height:100%;

  object-fit:contain;

  transition:.4s ease;
}

.modal-image-box img:hover{
  transform:scale(1.03);
}
.product-modal-content{
  padding:34px;
  gap:34px;
}
.big-modal-price{
  font-size:64px;
  letter-spacing:-2px;
}
.retailer-store{
  display:flex;
  align-items:center;
  gap:12px;
}

.store-logo{

  width:26px;

  height:26px;

  object-fit:contain;

  border-radius:8px;

  background:#fff;

  padding:3px;

  box-shadow:
    0 4px 10px rgba(0,0,0,.06);

}

.retailer-name{
  display:flex;
  align-items:center;
  gap:10px;
}

/* ==================== AD BANNER ==================== */

.ad-banner{

  position: sticky;

  top: 0;

  z-index: 999;

  background: #101828;

  padding: 6px 20px;

  border-bottom: 1px solid rgba(255,255,255,0.08);

}

.ad-container{

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

}

.ad-content{

  display: flex;

  align-items: center;

  gap: 12px;

}

.ad-icon{

  font-size: 20px;

}

.ad-headline{

  color: white;

  font-size: 15px;

  font-weight: 700;

}

.ad-subtext{

  color: rgba(255,255,255,0.7);

  font-size: 12px;

}

.ad-retailers{

  display: flex;

  align-items: center;

  gap: 12px;

}

.retailer-label{

  color: black;

  font-size: 13px;

  font-weight: 700;
  margin-right: -5px;

}

.retailer-links{

  display: flex;

  gap: 10px;

}

.retailer-btn{

  display: flex;

  align-items: center;

  gap: 8px;

  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.1);

  color: white;

  text-decoration: none;

  padding: 8px 14px;

  border-radius: 999px;

  font-size: 13px;

  font-weight: 600;

  transition: 0.25s ease;

}

.retailer-btn:hover{

  background: #16a34a;

  transform: translateY(-2px);

}

.retailer-logo{

  width: 18px;

  height: 18px;

  object-fit: contain;

}
.retailer-btn{

  justify-content: center;
  display: flex;

  align-items: center;

  gap: 8px;

  background: #111827;

  border: 1px solid rgba(255,255,255,0.08);

  color: white;

  text-decoration: none;

  padding: 8px 12px;

  border-radius: 999px;

  font-size: 13px;

  font-weight: 600;

  transition: 0.25s ease;

}

.retailer-btn:hover{

  background: #16a34a;

  transform: translateY(-2px);

}

.retailer-logo{

  width: 22px;

  height: 22px;

  object-fit: contain;

}


/* FIX FILTERS GOING OVER HEADER */

.ad-banner{
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* FILTER SECTION BELOW HEADER */
.filters-row,
.filters-container,
.filters-wrapper,
.filter-bar{
  position: relative;
  z-index: 1;
}

/* SEARCH SUGGESTIONS */

.search-container{
  position: relative;
}

.search-suggestions{

  position: absolute;

  top: 110%;

  left: 0;

  width: 100%;

  background: #111;

  border: 1px solid #2a2a2a;

  border-radius: 18px;

  overflow: hidden;

  z-index: 99999;

  display: none;

  box-shadow:
    0 10px 40px rgba(0,0,0,0.45);

  backdrop-filter: blur(12px);

}

.search-suggestion{

  padding: 14px 18px;

  cursor: pointer;

  color: white;

  font-size: 15px;

  border-bottom:
    1px solid rgba(255,255,255,0.05);

  transition: 0.2s ease;

}

.search-suggestion:hover{

  background: rgba(255,255,255,0.08);

}

.search-suggestion:last-child{
  border-bottom: none;
}

/* ================= PAGINATION ================= */

.pagination-section{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:50px 0;
}

#pagination{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* ALL BUTTONS */
#pagination button{

  border:none;
  outline:none;

  height:48px;
  min-width:48px;

  padding:0 18px;

  border-radius:14px;

  background:#ffffff;

  color:#111;

  font-size:16px;
  font-weight:600;

  cursor:pointer;

  transition:0.25s;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.08);

}

/* HOVER */
#pagination button:hover{

  transform:translateY(-2px);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.12);

}

/* ACTIVE PAGE */
#pagination button.active-page{

  background:linear-gradient(
    135deg,
    #00c853,
    #00e676
  );

  color:white;

  box-shadow:
    0 8px 24px rgba(0,200,83,0.35);

}

/* DISABLED */
#pagination button:disabled{

  opacity:0.4;

  cursor:not-allowed;

  transform:none;

}

/* MOBILE */
@media(max-width:768px){

  #pagination{
    gap:8px;
  }

  #pagination button{

    height:42px;
    min-width:42px;

    font-size:14px;

    padding:0 14px;

  }

}
@media(max-width:768px){

  .ad-banner{
    padding:12px 10px;
  }

  .ad-container{
    gap:12px;
  }

  .ad-headline{
    font-size:18px;
  }

  .ad-subtext{
    font-size:13px;
  }

  .retailer-links{
    gap:8px;
  }

  .retailer-btn{
    padding:8px 12px;
    font-size:13px;
  }

}
@media(max-width:768px){

  .product-image-slider{
    height:220px;
  }

  .carousel-image{
    max-height:180px;
  }

}


/* ================= MOBILE FIX ================= */

@media (max-width: 768px) {

  /* TOP AD BAR */
  .ad-banner{
  position: relative !important;
  top: unset !important;
  z-index: 1 !important;
}

body{
  padding-top: 0 !important;
}
  .ad-container{
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    align-items: center;
  }

  .ad-content{
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .ad-retailers{
    width: 100%;
    justify-content: center;
  }

  .retailer-links{
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .retailer-btn{
    transform: scale(0.92);
  }

  /* DARK BUTTON */
  .dark-toggle{
    position: fixed;
    right: 14px;
    top: 90px;
    width: 52px;
    height: 52px;
    z-index: 9999;
  }

}
.no-products{
  width:100%;
  padding:60px 20px;
  border-radius:28px;
  background:#ffffff;
  border:1px solid #e8edf3;
  text-align:center;
  margin-top:20px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.05);
}

.no-products-icon{
  font-size:54px;
  margin-bottom:14px;
}

.no-products-title{
  font-size:28px;
  font-weight:800;
  color:#111827;
  margin-bottom:10px;
}

.no-products-text{
  font-size:16px;
  color:#6b7280;
  max-width:420px;
  margin:auto;
  line-height:1.6;
}
.seo-content{
  margin-top:60px;
  padding:40px;

  background:#ffffff;

  border-radius:28px;

  border:1px solid #e5e7eb;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.04);
}

.seo-content h2{
  font-size:32px;
  font-weight:800;
  color:#111827;

  margin-bottom:20px;
}

.seo-content p{
  font-size:17px;
  line-height:1.8;

  color:#4b5563;
}
.product-seo-content{
  display:none;
}
