body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #f9fafb 0%, #e3eafc 100%);
  color: #222;
  min-height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  background: #0d6efd;
  color: #fff;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(13,110,253,0.08);
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.logo:focus, .logo:hover {
  color: #ffd700;
  outline: none;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  width: 320px;
  max-width: 100%;
}
/* New: wrap input + icon so icon can be placed inside the input */
.search-input-wrap {
  position: relative;
  width: 100%;
}
.search-input-wrap input {
  width: 100%;
  padding-right: 44px; /* room for the icon button */
  box-sizing: border-box;
}

/* Style the icon button to sit inside the input at the right (transparent, no yellow box) */
.search-icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent; /* removed yellow background */
  color: #0d6efd; /* site accent color */
  padding: 6px; /* small touch area on desktop */
  border-radius: 6px; /* subtle rounding for focus/hover */
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-icon-btn svg { display: block; width: 18px; height: 18px; }

/* Hover and focus affordance: subtle translucent tint inside input */
.search-icon-btn:hover, .search-icon-btn:focus {
  background: rgba(13,110,253,0.08);
  outline: none;
}
.search-icon-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
  border-radius: 6px;
}

/* Increase tap area on mobile and ensure button stays inside input */
@media (max-width: 600px) {
  .search-input-wrap input { padding-right: 54px; }
  .search-input-wrap .search-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto !important;      /* override any full-width rule */
    padding: 10px;               /* larger touch area */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 6;
    border-radius: 6px;
  }

  /* Ensure only non-icon buttons become full-width; keep the icon button positioned */
  .search-bar button:not(.search-icon-btn) { width: 100%; }

  /* Strong override for the icon button so it can't be expanded to full width */
  .search-bar .search-input-wrap .search-icon-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    padding: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    z-index: 6 !important;
    border-radius: 6px !important;
  }
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 5px;
  padding: 2rem 1rem;
}

/* FIXED: Deal cards grid - remove gaps and stack properly */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem; /* Reduced gap */
  padding: 1rem; /* Reduced padding */
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* FIXED: Deal card - remove bottom white space */
.deal-card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.10);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  max-width: 370px;
  margin: 0 auto;
  padding: 0;
  transition: box-shadow 0.2s, transform 0.2s;
  height: auto; /* Let content determine height */
  min-height: auto; /* Remove fixed min-height */
}


.deal-card:focus, .deal-card:hover {
  box-shadow: 0 2px 2px rgba(0,0,0,0.14);
  transform: translateY(-1px) scale(1.01);
}
.deal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: #e3eafc; /* fixed comment */
}

.deal-card-top {
  position: relative;
  height: 0;
}

/* UPDATED: Title positioned at bottom of card */
.deal-info {
  padding: 1.2rem 1.5rem 1.5rem 1.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;
}

.deal-info h2 {
  font-size: .9rem;
  font-weight: 400;
  margin: 0 0 0.5rem 0;
  color: #222;
  line-height: 1.3;
  text-align: left;
}
.deal-info p {
  margin: 0;
  font-size: 1rem;
  color: #555;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

/* NEW: store name (subtle, under the rating and above the title) */
.store-name {
  color: #7a7a7a; /* subtle grey */
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 0 0.35rem 0; /* small gap to title */
  letter-spacing: 0.2px;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* slightly reduce spacing on title so store-name + title look like a single block */
.deal-info .deal-title, .deal-info h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.product-page {
  padding: 2rem 1rem;
  max-width: 600px;
  margin: auto;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 5px rgba(0,0,0,0.08);
}
.product-page img {
  max-width: 100%;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  background: #e3eafc;
}

/* Product page: title and shop button */
.product-title {
  font-size: 1.4rem;
  font-weight:400;
  margin: 0.25rem 0 0.5rem 0;
  color: #111;
  line-height: 1.2;
}
.product-actions {
  margin: 0 auto 0;
  max-width: 370px; /* same as .deal-card max-width */
  box-sizing: border-box;
  padding: 1rem 1.25rem; /* match .deal-info horizontal padding for consistent whitespace */
}

.shop-btn {
    display: flex;
    justify-content: center;  /* Centers text horizontally */
    align-items: center;      /* Centers text vertically */
    background: #0d6efd;
    color: #fff;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
    transition: transform 0.12s ease, background 0.12s ease;
    text-align: center;
    cursor: pointer;
}


.shop-btn:focus, .shop-btn:hover {
  background: #0b5ed7;
  transform: translateY(-1px);
  outline: none;
}
.shop-btn.disabled {
  background: #ececec;
  color: #8b8b8b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* accessible helper used in Product.js */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

.buy-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: #0d6efd;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(13,110,253,0.08);
  transition: background 0.2s;
}
.buy-btn:focus, .buy-btn:hover {
  background: #ffd700;
  color: #0d6efd;
  outline: none;
}
.discount {
  color: #d6336c;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #f1f3f5;
  font-size: 1rem;
  color: #555;
  border-top: 1px solid #e3eafc;
  margin-top: 2rem;
}

/* UPDATED DEAL CARD STYLES */
.deal-image-wrap {
  position: relative;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  min-height: 220px;       /* keeps consistent card height */
}
.deal-img {
  width: 100%;
  height: auto;
  max-width: 300px;        /* adjusts based on product */
  object-fit: contain;     /* show full image */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Top Left - Discount Badge */
.discount-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #d35400;
  color: #fff;
  font-size: .6rem;
  font-weight: 200;
  border-radius: 999px;
  padding: 0.35em 1.2em;
  box-shadow: 0 2px 8px rgba(211,84,0,0.10);
  z-index: 2;
  letter-spacing: 0.5px;
}

/* Top Right - Coupon Code */
.code-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent; /* background is inside the sliding track */
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15em 0.6em;
  z-index: 90;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.18s ease;
  user-select: none;
  width: 180px; /* collapsed width; responsive rules below adjust */
  max-width: 60vw;
  overflow: hidden;
}

/* ensure coupon sits above image overlays */
.deal-card-top .code-badge { z-index: 120; }

.deal-banner.new-banner {
  position: absolute;
  top: 1px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.18em 1.1em;
  border-radius: 0px;
  box-shadow: 0 2px 8px rgba(231,76,60,0.10);
  z-index: 3;
  transform: rotate(0 deg);
  letter-spacing: 1px;
}

/* Bottom Left - Rating */
.deal-rating {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: #e3eafc;
  border-radius: 999px;
  padding: 0.08em 0.12em;
  color: #d35400;
  font-size: .6rem;
  font-weight: 200;
  display: flex;
  align-items: center;
  gap: 0.1em;
}
.deal-rating .star {
  color: #d35400;
  background: #e3eafc;
  border-radius: 999px;
  padding: 0.12em 0.12em;
  font-size: 1.2em;
  margin-right: 0.5em;
}

.deal-image-bottom-right {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

/* NEW: Amazon Badge */
.amazon-badge {
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1px solid #eee;
}
.amazon-badge img {
  width: 20px;
  height: 20px;
}

/* NEW: ID Badge */
.id-badge {
  background: #e3eafc;
  color: #555;
  font-size: 0.5rem;
  font-weight: 200;
  border-radius: 999px;
  padding: 0.08em 0.8em;
  margin-left: 0.2em;
  height: 22px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 900px) {
  .layout {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1rem;
  }
  .deals-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    padding: 0;
  }
  .product-page {
    padding: 1rem 0.5rem;
  }
  .deal-card {
    max-width: 98vw;
    min-width: 220px;
    margin: 8px;
  }
  .deal-image-wrap {
    padding: 24px 5px 5px 24px;
    min-height: 140px;
  }
  .deal-img {
    max-width: 95vw;
    height: 120px;
  }
  .deal-rating {
    left: 12px;
    bottom: 12px;
    font-size: 1rem;
  }
  .deal-image-bottom-right {
    right: 12px;
    bottom: 12px;
  }
}
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
  }
  .search-bar {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }
  /* keep input full width but prevent the icon button from becoming full-width
     by overriding the generic `.search-bar button` rule for the special icon button */
  .search-bar input { width: 100%; font-size: 1rem; }
  .search-bar button { font-size: 1rem; }

  /* Ensure the icon stays inside the input at the right on mobile */
  .search-input-wrap { position: relative; }
  .search-input-wrap input { padding-right: 54px; }
  .search-input-wrap .search-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto !important;      /* override any full-width rule */
    padding: 10px;               /* larger touch area */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 6;
    border-radius: 6px;
  }

  .deals-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0.5rem;
  }
  .deal-card {
    min-width: 180px;
    max-width: 99vw;
    margin: 6px;
  }
  .deal-image-wrap {
    padding: 6px 6px 0 6px;
    min-height: auto;
  }
  .deal-img {
    height: 80px;
    max-width: 99vw;
  }
  .deal-rating {
    left: 6px;
    bottom: 6px;
    font-size: 0.9rem;
  }
  .deal-image-bottom-right {
    right: 6px;
    bottom: 6px;
  }
}

/* Rotating store title - sits in the header alongside the search bar */
.logo.rotating-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

/* Pill background around the store name to contrast against header
   White background with fixed width so even the longest store name fits. */
.store-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff; /* white pill */
  color: inherit;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  width: 12ch;           /* fixed size to fit the longest store name reliably */
  min-width: 12ch;
  max-width: 12ch;
  height: 1.6em;         /* fixed height so the store name is vertically centered */
  box-sizing: border-box;
  overflow: hidden;
  position: relative;    /* keep relative to allow absolute centering */
}

/* Keep wrapper inline; we will absolutely center the .store-name elements inside the pill */
.store-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  position: relative; /* relative container for absolute centering */
  overflow: hidden;
}

/* Absolutely center the store-name so changes don't shift horizontally */
.store-name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  font-weight: 900;
  padding: 0 2px;
  line-height: 1;
  transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 420ms cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: 1rem;
  text-align: center; /* ensure multi-word names are centered */
}

/* When JS adds the new span, it has .store-new class - animate in centered */
.store-wrapper .store-new { animation: store-in 420ms both cubic-bezier(.2,.9,.2,1); }
.store-wrapper .store-old { animation: store-out 420ms both cubic-bezier(.2,.9,.2,1); }

@keyframes store-in {
  0% { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(0.98); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes store-out {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 8px)) scale(0.98); }
}

/* Pill background around the store name to contrast against header
   White background with fixed width so even the longest store name fits. */
.store-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff; /* white pill */
  color: inherit;
  padding: 6px 10px;     /* some horizontal padding for breathing room */
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  width: 12ch;           /* fixed size to fit the longest store name reliably */
  min-width: 12ch;
  max-width: 12ch;
  height: 1.6em;         /* fixed height so the store name is vertically centered */
  box-sizing: border-box;
  overflow: hidden;
}

/* Keep wrapper inline and centered so the store name reads as part of a sentence */
.store-wrapper {
  display: block;
  width: 100%;
  text-align: center;    /* center the store-name inside the pill */
  position: relative;
  line-height: 1.6em;    /* match pill height for vertical centering */
  overflow: hidden;
}

/* Inline-friendly store-name (centered). Use animations on enter/exit. */
.store-name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  font-weight: 900;
  padding: 0 2px;
  line-height: 1;
  transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 420ms cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0; /* default hidden; JS mounts and CSS animation brings it in */
  font-size: 1rem; /* slightly smaller to fit comfortably in pill */
}

/* When JS adds the new span, it has .store-new class - animate in */
.store-wrapper .store-new { animation: store-in 420ms both cubic-bezier(.2,.9,.2,1); }
.store-wrapper .store-old { animation: store-out 420ms both cubic-bezier(.2,.9,.2,1); }

@keyframes store-in {
  0% { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(0.98); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes store-out {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 8px)) scale(0.98); }
}

/* tighten spacing so the title reads like a sentence */
.title-static {
  color: #fff; /* constant white bold text for the fixed part */
  font-weight: 700;
  margin-left: 8px; /* slightly larger spacing to separate from white pill */
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .logo.rotating-title { font-size: 1.25rem; }
  .title-static { font-size: 0.95rem; }
  .store-pill { width: 11ch; min-width: 11ch; max-width: 11ch; }
  .store-wrapper { max-width: 11ch; }
}
@media (max-width: 600px) {
  .logo.rotating-title { font-size: 1.05rem; }
  .title-static { font-size: 0.95rem; }
  .store-pill { width: 10ch; min-width: 10ch; max-width: 10ch; }
  .store-wrapper { max-width: 10ch; }
  .search-bar { order: 2; width: 100%; }
  .header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* Card action buttons inside deal cards (Home) */
.card-actions {
  display: flex;
  gap: 5px;               /* small gap between the two buttons */
  margin-top: 0.9rem;
}
.card-actions .btn {
  flex: 1 1 50%;          /* each button takes half the row */
  width: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card-actions .btn:focus, .card-actions .btn:hover {
  transform: translateY(-1px);
  outline: none;
}
.card-actions .shop-small {
  background: #0d6efd;
  color: #fff;
  border: 1px solid rgba(13,110,253,0.12);
}
.card-actions .share-small {
  background: #0d6efd; /* same as shop */
  color: #fff;
  border: 1px solid rgba(13,110,253,0.12);
}
.card-actions .share-small[aria-pressed="true"], .card-actions .share-small:active {
  background: #e6f0ff;
}

/* Product page: make the Shop Now button full width and centered like cards */
.product-actions {
  max-width: 370px; /* same as .deal-card max-width */
  margin: 0 auto 0; /* center horizontally inside product page */
  box-sizing: border-box;
  padding: 1rem 1.25rem; /* match .deal-info horizontal padding for consistent whitespace */
}
.product-actions .shop-btn {
  width: 100%;
  display: block;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  border-radius: 10px;
  text-align: center;
}

/* Make Share button on Home visually similar to Shop (same color/feel) */
.card-actions .share-small {
  background: #0d6efd; /* same as shop */
  color: #fff;
  border: 1px solid rgba(13,110,253,0.12);
}
.card-actions .share-small:focus, .card-actions .share-small:hover {
  background: #0b5ed7;
  transform: translateY(-1px);
}

.deal-info {
  padding: 1rem 1.25rem 1.25rem;
  background: #fff;
}

.deal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.price-section {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.old-price {
  color: #888;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.current-price {
  color: #d35400;
  font-weight: 700;
  font-size: 1.1rem;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Coupon widget (single unified coupon-box) - sliding track and discount theme */
.coupon-box {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 60;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  overflow: hidden; /* clip the inner sliding track */
  background: transparent; /* background applied inside */
  --collapsed-width: 100px;
  width: var(--collapsed-width);
  max-width: var(--collapsed-width); /* collapsed width */
  transition: max-width 220ms cubic-bezier(.2,.9,.2,1), transform 180ms ease;
}

/* The sliding container (track) that moves left on hover */
.coupon-box .coupon-inner {
  display: flex;
  align-items: center;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1);
  transform: translateX(0);
}

/* Collapsed default pill - takes full width of container */
.coupon-box .coupon-default {
  flex: 0 0 100%; /* occupy collapsed width */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  /* styling aligned with .discount-badge for consistent height & font */
  background: #d35400; /* match discount color */
  color: #fff;
  padding: 0.35em 1.2em; /* same as .discount-badge */
  font-weight: 200;     /* same weight as discount-badge */
  font-size: 0.5rem;    /* match discount-badge font size */
  border-radius: 999px; /* pill like discount */
  box-shadow: 0 2px 8px rgba(211,84,0,0.10); /* same subtle shadow */
   line-height: 1;
   box-sizing: border-box;
 }

 .coupon-box .coupon-left {
   color: #fff;
   font-weight: 200;
 }

 /* small white stub on the right showing last character */
 .coupon-box .coupon-stub {
   flex: 0 0 auto;
   background: #fff;
   color: #d35400;
   font-weight: 200;
   padding: 0 0.2em;
   min-width: 2.2em;
   /* match vertical rhythm of pill: use same vertical padding as coupon-default */
   height: calc( (0.35em + 0.35em) + 0.6rem );
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 1px;
   border: 2px solid rgba(211,84,0,0.95);
   box-sizing: border-box;
 }

 /* Full code element placed immediately after the default pill in the track */
 .coupon-box .coupon-full {
   flex: 0 0 auto;
   display: inline-flex;
   align-items: center;
   background: #fff;
   color: #d35400;
   font-weight: 700;
   padding: 0.35em 1.2em; /* match discount-badge sizing */
   border-radius: 999px; /* pill-like */
   margin-left: 10px;
   box-shadow: 0 8px 20px rgba(0,0,0,0.04);
   white-space: nowrap;
   font-size: 0.5rem; /* ensure text size matches discount badge */
 }

 /* === FIX: Reveal coupon code on hover or when revealed === */
 .coupon-box.revealed .coupon-inner {
   transform: translateX(-100%);
 }

 .coupon-box .coupon-inner {
   transition: transform 260ms cubic-bezier(.2,.9,.2,1);
 }

 /* Optional: subtle hover animation for preview before click */
 .coupon-box:hover:not(.revealed) .coupon-inner {
   transform: translateX(-15%);
 }

 /* Ensure full code remains visible and above others when revealed */
 .coupon-box.revealed {
   max-width: 200px; /* expand smoothly */
   z-index: 100;
 }

 /* Optional polish — slight pulse on "Copied! Redirecting…" */
 .coupon-box.copied .coupon-full {
   animation: pulse 1s ease-in-out 1;
 }

 .deal-meta {
   list-style-type: disc;       /* Show bullet points */
   margin: 0.75rem 0;
   padding-left: 1.5rem;        /* Indent for bullets */
   color: #333;                 /* Text color */
   font-size: 1rem;
   line-height: 1.5;
 }

 .deal-meta li {
   margin-bottom: 0.4rem;       /* Space between items */
 }

 .deal-meta strong {
   color: #0d6efd;              /* Highlight labels (Discount/Price) */
   font-weight: 600;
 }
 .copy-icon-btn {
   background: none;
   border: none;
   cursor: pointer;
   padding: 4px;
   margin-left: 8px;
   border-radius: 4px;
   color: inherit;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s ease;
 }

 .copy-icon-btn:hover {
   background: rgba(255, 255, 255, 0.2);
   transform: scale(1.1);
 }

 .copy-icon-btn.copied {
   color: #4CAF50;
 }

 .coupon-full {
   display: flex;
   align-items: center;
   justify-content: center;
 }

 /* Ensure the coupon box has enough space for the icon */
 .coupon-box.revealed .coupon-inner {
   padding-right: 8px;
 }
.deal-desc {
  padding-left: 1.4rem;
  margin: 0;
}

.deal-desc li {
  margin: 3px 0;
}

.no-bullets {
  list-style-type: none; /* removes bullet dots */
  padding-left: 0;       /* removes indent space */
  margin: 0;
}

.no-bullets li {
  text-align: left;
  margin: 4px 0;
}

