/* bestoffers.css — copy of your TopOffers style (1).css minus any zoom rules */

:root {
  --brand-red:   #E02627;
  --charcoal:    #333333;
  --nav-bg:      #2D2D2D;
  --white:       #FFFFFF;
  --light-gray:  #F0F0F0;
  --border-gray: #DDD;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.5;
  padding-bottom: calc(80px + 24px);
}
a { text-decoration: none; color: inherit; }

/* Header */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--charcoal);
  padding: 10px 20px;
  gap: 12px;
}
.site-header__brand { display: flex; align-items: center; gap: 12px; }
.site-header__logo { height: 40px; filter: none; }
.site-header__title {
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white); font-size: 14px; line-height: 1.2;
}
.site-header__title strong { font-size: 24px; color: var(--brand-red); }
/* ── search bar gets full remaining width ─────────── */
.site-header__search{
  justify-self:center;
  display:flex;
  align-items:center;
  gap:4px;
  width:100%;
  max-width:900px;   /* ↑ was 600px – feel free to raise / remove */
  flex:1;            /* this lets it grow to fill empty header space */
}
.site-search__select,
.site-search__input {
  border: 1px solid #AAA; font-size: 14px; background: var(--white);
}
.site-search__select { padding: 6px 8px; border-radius: 4px 0 0 4px; }
.site-search__input {
  flex: 1; padding: 6px 8px; border-left: none;
}
.site-search__btn {
  padding: 6px 12px; background: var(--brand-red); color: var(--white);
  border: none; border-radius: 0 4px 4px 0; cursor: pointer;
  transition: opacity 0.2s;
}
.site-search__btn:hover { opacity: 0.9; }

/* Flags */

/* ── flags: a little wider + bigger gap ───────────── */
.flag-selector          { display:flex; gap:12px; align-items:center; }
.flag-selector .flag    { width:32px; cursor:pointer; opacity:.6;
                          transition:opacity .25s, transform .25s; }
.flag-selector .flag.selected {
  opacity:1; transform:scale(1.1);
  border:2px solid #febd69; border-radius:4px;
}
.flag-selector .flag:hover{
  opacity:1;            /* becomes fully visible */
  transform:scale(1.08);/* subtle pop-out */
  outline:2px solid #febd69;   /* same gold as selected */
  border-radius:4px;
}



/* Navigation */
.site-nav {
  background: var(--nav-bg); display: flex; flex-wrap: wrap; gap: 12px;
  padding: 10px 20px;
}
.site-nav a {
  color: var(--white); padding: 6px 10px; font-size: 14px;
  border-radius: 4px; transition: background 0.2s;
}
.site-nav a:hover { background: var(--brand-red); }

/* Disclaimer */
.disclaimer {
  background: var(--light-gray); color: var(--charcoal);
  padding: 10px 20px; font-size: 13px; text-align: center;
  margin-bottom: 20px;
}
.ad-text {
  display: inline-block;
  margin: 8px 0;
  color: #000;            /* plain black */
  font-weight: normal;    /* non-bold */
  background: none;       /* no pill, no fill */
  cursor: help;           /* user knows it’s hoverable */
  position: relative;     /* for absolutely-positioning .tooltip */
}


/* your existing rules will now apply to that .tooltip child */
.ad-text .tooltip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #f8f8f8;
  color: #555;
  border-radius: 6px;
  padding: 5px;
  white-space: nowrap;
  transition: opacity .25s;
}

.ad-text:hover .tooltip {
  visibility: visible;
  opacity: 1;
}


/* Section‐jump Buttons */
.section-buttons {
  position: sticky; top: 0; display: flex; justify-content: center;
  gap: 16px; padding: 8px 16px; background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 900;
}
.section-btn {
  background: var(--brand-red); color: var(--white);
  border: none; padding: 8px 16px; border-radius: 4px;
  font-size: 14px; cursor: pointer; transition: opacity 0.2s ease;
}
.section-btn:hover { opacity: 0.9; }
.amazon-logo-center img { height: 32px; }

/* Offers grid & cards */
.offers {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Make each card a column-flex container */
.offer {
  /* === new bits === */
  display: flex;
  flex-direction: column;
  /* ================= */

  position: relative;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: visible !important;
}

.offer:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.offer img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

/* Push the buy-now button (and/or code block) to the bottom */
.offer .buy-now,
.offer .code {
  margin-top: auto;
}

.discount,
.discount-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--brand-red); color: var(--white);
  padding: 6px 10px; font-size: 13px; font-weight: bold;
  border-radius: 50%; z-index: 9;
}
/* 1) Clamp both title & desc to two lines */
.offer-title,
.offer-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  position: relative;    /* for the tooltip */
}

/* 2) The hidden bubble */
.offer-title::after,
.offer-desc::after {
  content: attr(data-full);
  display: none;
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  white-space: normal;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 20;
}

/* 3) Reveal it on hover */
.offer-title:hover::after,
.offer-desc:hover::after {
  display: block;
}

/* 4) Allow the tooltip to overflow the clipped box */
.offer-title:hover,
.offer-desc:hover {
  overflow: visible;
}
/* show on hover */
.offer-title:hover::after,
.offer-desc:hover::after {
  display: block;
}




.rating { font-size: 14px; margin-bottom: 5px; }
.rating .stars { color: #FFA41C; }
.rating .count { margin-left: 4px; color: var(--charcoal); }
.pricing { font-size: 15px; margin-bottom: 10px; }
.old-price {
  text-decoration: line-through; color: #B12704; margin-right: 8px;
}
.new-price { font-weight: bold; color: #008a00; }
.highlight-green { color: #008a00 !important; font-weight: bold; }
.final-voucher-price {
  margin-top: 8px; font-weight: bold; color: #008a00; font-size: 14px;
}
.code {
  display: inline-block; width: 100%; padding: 10px;
  font-size: 13px; font-weight: bold; color: var(--white);
  background: var(--brand-red); border-radius: 4px;
  transition: opacity 0.2s;
}


.code:hover { opacity: 0.9; }
.promo-code {
  background: var(--charcoal); color: var(--white); cursor: default;
}
/* highlight “Save Extra … with Code …” lines */
.save-extra-box{
  display:inline-block;
  margin-top:6px;
  padding:6px 10px;
  font-size:14px;
  font-weight:bold;
  color:#fff;
  background:#008a00;      /* Amazon-green; change if you prefer */
  border-radius:4px;
  text-align:center;
}

/* Image-wrapper & overlay */
.image-wrapper { position: relative; }
.amazon-logo-on-image {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,0.85);
  padding: 2px 5px; border-radius: 4px; z-index: 10;
}
.amazon-logo-on-image img {
  height: 24px; width: auto;
}

/* Buy-Now button (Limited Offers) */
.buy-now {
  display: inline-block; background: var(--brand-red);
  color: var(--white); padding: 8px 12px; border-radius: 4px;
  text-decoration: none; margin-top: 8px; font-weight: bold;
  transition: opacity 0.2s ease;
}
.buy-now:hover { opacity: 0.9; }

/* Bottom banners */
.bottom-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-evenly; align-items: center;
  padding: 12px 16px; background: var(--charcoal);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1); z-index: 999;
}
.bottom-banner img {
  max-height: 80px; object-fit: contain; border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bottom-banner img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive tweaks */
@media (max-width: 768px){
  .site-header{
    grid-template-columns:1fr auto;
    row-gap:10px;
    justify-items:center;
  }
  .site-nav{justify-content:center;}
}

/* 1) let the Top / Limited buttons wrap neatly on very narrow screens */
@media (max-width:480px){
  .section-buttons{
    flex-wrap:wrap;          /* allow line-break */
    row-gap:8px;             /* a little vertical space between rows */
  }
}

/* 2) stack the three bottom-banner images vertically on ultra-small phones */
@media (max-width:375px){
  .bottom-banner{
    flex-direction:column;   /* one under the other */
    gap:12px;
    padding:16px;
  }
  .bottom-banner a{
    flex:none;               /* remove the original “flex:1” behaviour */
  }
}