/* =========================================================
   Priceory UI — clean cards, correct images, mobile-first
   Language: English only
   ========================================================= */

:root {
  /* Brand teal */
  --priceory: #0d9488;
  --priceory-mid: #14b8a6;
  --priceory-bright: #2dd4bf;
  --priceory-dark: #0f766e;
  --priceory-deeper: #115e59;
  --priceory-soft: #f0fdfa;
  --priceory-soft-2: #ccfbf1;

  /* Dopamine accents */
  --accent: #f97316;       /* vibrant orange */
  --accent-deep: #ea580c;
  --accent-soft: #ffedd5;
  --accent-hot: #ef4444;   /* alert red */
  --accent-hot-deep: #dc2626;
  --accent-hot-soft: #fee2e2;

  /* Stores (keep distinct) */
  --econsave: #dc2626;
  --mydin: #2563eb;
  --aeon: #c41e3a;       /* AEON / AEON BiG brand red */
  --aeon-deep: #9b1b30;
  --aeon-big: #e11d48;

  /* Neutrals */
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --page: #f8fafc;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.11);
  --radius: 1rem;
  --radius-sm: 0.7rem;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --tap: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 420px at 8% -8%, rgba(13, 148, 136, 0.12), transparent 55%),
    radial-gradient(800px 360px at 100% 0%, rgba(249, 115, 22, 0.09), transparent 50%),
    var(--page);
}

main.page-wrap {
  flex: 1;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  main.page-wrap {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
}

a {
  text-decoration: none;
}

/* Do NOT set height:auto globally — it breaks object-fit frames */
img {
  max-width: 100%;
}

/* ---------- Navbar ---------- */
.bg-priceory {
  background: linear-gradient(105deg, var(--priceory-deeper) 0%, var(--priceory) 48%, var(--priceory-mid) 100%) !important;
}

.navbar-brand {
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  line-height: 1;
}

.navbar-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex-shrink: 0;
}

.navbar-brand .brand-text {
  color: #fff;
}

.navbar .nav-link {
  font-weight: 600;
  padding: 0.55rem 0.75rem !important;
}

.nav-search {
  gap: 0.45rem;
  width: 100%;
}

@media (min-width: 992px) {
  .nav-search {
    width: auto;
    min-width: 260px;
  }
}

.nav-search .form-control {
  min-height: 2.25rem;
  flex: 1;
}

.nav-search .btn {
  min-height: 2.25rem;
  min-width: 4.5rem;
  font-weight: 700;
}

/* Primary CTA in nav/hero search: dopamine orange */
.btn-warning,
.nav-search .btn-warning,
.hero .btn-warning {
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.btn-warning:hover,
.nav-search .btn-warning:hover,
.hero .btn-warning:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* ---------- Buttons ---------- */
.btn-priceory {
  color: #fff;
  background: linear-gradient(135deg, var(--priceory-mid), var(--priceory));
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.25);
  min-height: var(--tap);
}

.btn-priceory:hover {
  background: linear-gradient(135deg, var(--priceory), var(--priceory-dark));
  color: #fff;
}

.btn-outline-success {
  color: var(--priceory-dark) !important;
  border-color: var(--priceory) !important;
  font-weight: 700;
}

.btn-outline-success:hover {
  background: var(--priceory-soft) !important;
  color: var(--priceory-deeper) !important;
  border-color: var(--priceory-dark) !important;
}

.btn-deal {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  border: none;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.3);
  min-height: 2.4rem;
}

.btn-deal:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

/* ---------- Merchant pills ---------- */
.merchant-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  color: #fff;
  background: #6c757d;
  text-transform: uppercase;
  max-width: 100%;
  white-space: nowrap;
}

.merchant-econsave {
  background: linear-gradient(135deg, #e74c3c, var(--econsave));
}

.merchant-mydin {
  background: linear-gradient(135deg, #3b82f6, var(--mydin));
}

.merchant-lotuss {
  background: linear-gradient(135deg, #059669, #006451);
}

.merchant-jayagrocer_klec,
.merchant-jayagrocer {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.merchant-village_grocer {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

.merchant-aeon {
  background: linear-gradient(135deg, #e11d48, var(--aeon-deep));
}

.merchant-aeon_big {
  background: linear-gradient(135deg, #f43f5e, #be123c);
}

.merchant-nsk_trade_city {
  background: linear-gradient(135deg, #64748b, #334155);
}

.merchant-speedmart_99 {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.price-was {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-top: 0.1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 94, 89, 0.98), rgba(13, 148, 136, 0.94) 52%, rgba(20, 184, 166, 0.92)),
    radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.35), transparent 42%);
  color: #fff;
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 2.25rem 2rem;
    border-radius: calc(var(--radius) + 0.15rem);
    margin-bottom: 1.75rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 5vw, 2.35rem);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  margin-bottom: 1rem !important;
}

.hero .form-control {
  border: 0;
  min-height: var(--tap);
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hero .btn {
  min-height: var(--tap);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 2rem;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.4rem;
  text-align: center;
}

.stat-card .stat-num {
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.68rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.35rem;
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.section-head h2 {
  position: relative;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
}

/* Best deals header accent bar */
.section-deals .section-head h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 0.28rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
}

.section-deals {
  padding: 0.15rem 0 0.25rem;
}

.section-head p {
  color: var(--muted);
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.section-head .btn {
  min-height: 2.4rem;
  white-space: nowrap;
}

/* ---------- Shared media frame (1:1, photo OR text-card — same shell) ---------- */
.media-frame {
  --media-pad: 0.8rem;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Unified canvas: soft slate so load states never look "missing" */
  background:
    linear-gradient(155deg, #f8fafc 0%, #f1f5f9 48%, #eef2f7 100%);
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}

/* Soft loading skeleton for photo slots (behind img) */
.media-frame.is-photo::before {
  content: "";
  position: absolute;
  inset: 14% 16%;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 28% 30%, rgba(13, 148, 136, 0.09), transparent 58%),
    radial-gradient(circle at 72% 68%, rgba(37, 99, 235, 0.07), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(248, 250, 252, 0.2));
  pointer-events: none;
  z-index: 0;
}

@supports not (aspect-ratio: 1 / 1) {
  .media-frame {
    height: 0;
    padding-bottom: 100%;
  }
}

.media-frame img.product-img,
.media-frame > img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important; /* never stretch / squash product photos */
  object-position: center center !important;
  display: block !important;
  padding: var(--media-pad) !important;
  box-sizing: border-box !important;
  background: transparent;
  z-index: 1;
}

/* Photo: clean white stage so packaging reads clearly */
.media-frame.is-photo {
  background: #ffffff;
}

.media-frame.is-photo img.product-img,
.media-frame.is-photo > img {
  background: #ffffff;
}

/* Text card SVG: edge-to-edge fill, no letterbox padding */
.media-frame.is-placeholder {
  background:
    linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom-color: #e8edf3;
}

.media-frame.is-placeholder img.product-img,
.media-frame.is-placeholder > img {
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent;
  z-index: 1;
}

/* ---------- Deal cards ---------- */
.deal-card {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  border-radius: var(--radius) !important;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.deal-card.tier-hot {
  outline: 2px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 14px 34px rgba(239, 68, 68, 0.16);
}

.deal-card.tier-warm {
  outline: 2px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.12);
}

.deal-card.tier-cool {
  outline: 1px solid rgba(13, 148, 136, 0.18);
}

.deal-media {
  border-bottom: 1px solid var(--line);
}

/* Deal media uses same media-frame system; slightly roomier pad on desktop */
@media (min-width: 768px) {
  .deal-media.media-frame {
    --media-pad: 1rem;
  }
}

@media (max-width: 767.98px) {
  .section-deals .row {
    --bs-gutter-y: 0.75rem;
  }

  .deal-card {
    border-radius: 0.9rem !important;
  }

  .deal-media.media-frame {
    --media-pad: 0.65rem;
  }

  .deal-body {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .deal-body h3 {
    font-size: 0.98rem;
  }

  .savings-burst {
    min-width: 4.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.85rem;
  }

  .savings-burst .save-amt {
    font-size: 1.05rem;
  }
}

.deal-media .rank-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.deal-media .rank-badge.top {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.35);
}

/* Dopamine Save RM badge — larger, orange by default, red when hot */
.savings-burst {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  min-width: 5.25rem;
  text-align: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  border-radius: 1rem;
  padding: 0.55rem 0.6rem;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.45);
  line-height: 1.05;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.savings-burst.hot {
  background: linear-gradient(145deg, var(--accent-hot), var(--accent-hot-deep));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.48);
  animation: pulse-soft 2.2s ease-in-out infinite;
}

.savings-burst .save-label {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.savings-burst .save-amt {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.savings-burst .save-pct {
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 0.12rem;
  opacity: 0.98;
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.deal-body {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-body h3,
.product-name,
.compare-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  /* Two-line titles by default — complete enough, tidy cards */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.deal-body h3 {
  font-size: 1.02rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Desktop grid can afford a third line for long catalogue names */
@media (min-width: 768px) {
  .product-card .product-name {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    min-height: calc(1.35em * 2);
  }

  .deal-body h3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  line-height: 1.1;
}

.tag-hot {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tag-save {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.28);
  font-weight: 900;
}

.tag-flash {
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.tag-multi {
  background: var(--priceory-soft);
  color: var(--priceory-deeper);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

.price-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.6rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  min-height: 2.5rem;
}

.price-row.cheapest {
  background: linear-gradient(90deg, var(--priceory-soft), #ecfdf5);
  border-color: #99f6e4;
}

.price-row .price {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price-row.cheapest .price {
  color: var(--priceory-dark);
  font-size: 1.05rem;
}

.deal-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
}

.deal-actions .btn {
  flex: 1;
  font-weight: 700;
  min-height: 2.5rem;
  font-size: 0.88rem;
}

/* ---------- Product cards (search) ---------- */
.product-grid {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .product-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1.1rem;
  }
}

.product-card {
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  outline: 1px solid rgba(15, 23, 42, 0.04);
}

/* Mobile: horizontal list — consistent thumb + tidy body */
@media (max-width: 767.98px) {
  .product-grid {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0.65rem;
  }

  .product-grid > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .product-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 118px;
    border-radius: 0.85rem;
  }

  .product-card .product-thumb.media-frame {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    height: 112px;
    min-height: 112px;
    max-height: 112px;
    aspect-ratio: 1 / 1;
    align-self: center;
    margin: 0.35rem 0 0.35rem 0.35rem;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0.7rem;
    overflow: hidden;
    outline: 1px solid rgba(15, 23, 42, 0.06);
    --media-pad: 0.4rem;
  }

  .product-card .card-body {
    padding: 0.65rem 0.7rem 0.65rem 0.65rem;
    min-width: 0;
    justify-content: center;
    gap: 0.12rem;
  }

  .product-card .badge-row {
    margin-bottom: 0.15rem;
    gap: 0.25rem;
  }

  .product-card .badge-row .tag {
    font-size: 0.62rem;
    padding: 0.2rem 0.42rem;
  }

  .product-card .badge-row .tag-flash,
  .product-card .photo-dot {
    display: none;
  }

  .product-card .product-name {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 0.1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 0;
  }

  .product-card .meta {
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card .price-line {
    padding-top: 0.1rem;
    gap: 0.35rem;
  }

  .product-card .price-now {
    font-size: 1.05rem;
  }

  .product-card .price-line .btn {
    min-height: 2.1rem;
    font-size: 0.8rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .product-thumb .float-tag {
    left: 0.3rem;
    bottom: 0.3rem;
    font-size: 0.58rem;
    padding: 0.12rem 0.35rem;
    max-width: calc(100% - 0.55rem);
  }
}

@media (hover: hover) and (min-width: 768px) {
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

.product-thumb {
  border-bottom: 1px solid #eef2f7;
}

@media (min-width: 768px) {
  .product-thumb.media-frame {
    --media-pad: 0.9rem;
    border-bottom: 1px solid #eef2f7;
  }
}

.product-thumb .float-tag {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  max-width: calc(100% - 0.9rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: saturate(1.1);
}

.product-thumb .photo-dot {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.product-card .card-body {
  padding: 0.8rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.18rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .product-card .card-body {
    padding: 0.95rem 1rem 1.05rem;
  }
}

.product-card .product-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 0.1rem;
}

@media (min-width: 768px) {
  .product-card .product-name {
    font-size: 0.98rem;
  }
}

.product-card .meta {
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 0.45rem;
  line-height: 1.35;
  word-break: break-word;
}

.product-card .price-line {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid #f1f5f9;
}

.product-card .price-now {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--priceory-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.product-card .price-line .btn {
  min-height: 2.35rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Compare ---------- */
.compare-card {
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.compare-card.is-multi {
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.1);
  outline: 2px solid rgba(249, 115, 22, 0.28);
}

.compare-card .compare-top {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  align-items: flex-start;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border-bottom: 1px solid #eef2f7;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .compare-card .compare-top {
    gap: 1rem;
    padding: 1rem 1.1rem;
    flex-wrap: nowrap;
  }
}

.compare-thumb,
.compare-thumb.media-frame {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  max-width: 88px !important;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(145deg, #f8fafc 0%, #eef2f7 55%, #f1f5f9 100%);
  position: relative;
  --media-pad: 0.4rem;
}

@media (min-width: 768px) {
  .compare-thumb,
  .compare-thumb.media-frame {
    width: 104px !important;
    height: 104px !important;
    min-width: 104px !important;
    min-height: 104px !important;
    max-width: 104px !important;
  }
}

.compare-thumb img,
.compare-thumb img.product-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0.4rem !important;
  background: #fff;
  display: block !important;
  box-sizing: border-box !important;
}

.compare-thumb.is-photo {
  background: #ffffff;
}

.compare-thumb.is-placeholder img,
.compare-thumb.is-placeholder img.product-img {
  padding: 0 !important;
  object-fit: cover !important;
  background: transparent;
}

.compare-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.compare-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: calc(1.35em * 2);
}

@media (min-width: 768px) {
  .compare-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (min-width: 768px) {
  .compare-title {
    font-size: 1.1rem;
  }
}

.compare-save-panel {
  margin-left: 0;
  text-align: left;
  width: 100%;
}

@media (min-width: 768px) {
  .compare-save-panel {
    margin-left: auto;
    text-align: right;
    width: auto;
    min-width: 8rem;
  }
}

.compare-save-panel .save-big {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 900;
  padding: 0.7rem 0.95rem;
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.36);
  border: 2px solid rgba(255, 255, 255, 0.28);
  line-height: 1.1;
  min-width: 7.25rem;
}

.compare-save-panel .save-big.hot {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-hot-deep));
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.35);
}

.compare-save-panel .save-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

.compare-save-panel .save-amt {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-top: 0.1rem;
}

.compare-save-panel .save-pct {
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 0.15rem;
  opacity: 0.95;
}

.compare-range {
  font-weight: 600;
}

.compare-body {
  padding: 0.7rem 0.85rem 0.95rem;
}

@media (min-width: 768px) {
  .compare-body {
    padding: 0.75rem 1.1rem 1.1rem;
  }
}

.offer-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-left: 4px solid #e2e8f0;
  margin-bottom: 0.55rem;
}

/* Unified store accent via left border + pill (Econsave / Mydin / Lotus's) */
.offer-bar:has(.merchant-econsave) {
  border-left-color: var(--econsave);
}

.offer-bar:has(.merchant-mydin) {
  border-left-color: var(--mydin);
}

.offer-bar:has(.merchant-lotuss) {
  border-left-color: #059669;
}

.offer-bar:has(.merchant-jayagrocer_klec),
.offer-bar:has(.merchant-jayagrocer) {
  border-left-color: #7c3aed;
}

.offer-bar:has(.merchant-village_grocer) {
  border-left-color: #0d9488;
}

.offer-bar:has(.merchant-aeon) {
  border-left-color: var(--aeon);
}

.offer-bar:has(.merchant-aeon_big) {
  border-left-color: var(--aeon-big);
}

.offer-bar:has(.merchant-nsk_trade_city) {
  border-left-color: #64748b;
}

.offer-bar.win {
  background: linear-gradient(100deg, #ecfdf5 0%, var(--priceory-soft) 42%, #fff 100%);
  border-color: #5eead4;
  border-left-width: 5px;
  border-left-color: var(--priceory) !important;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12);
}

.offer-store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.win-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--priceory-mid), var(--priceory-dark));
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.3);
  white-space: nowrap;
}

.offer-bar .offer-name {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.offer-pack {
  color: #94a3b8;
  font-weight: 600;
}

.offer-link {
  font-weight: 700;
  color: var(--priceory-dark);
}

.offer-secondary {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #94a3b8;
  font-weight: 600;
}

.offer-price-col {
  min-width: 7.25rem;
  padding-left: 0.25rem;
}

.offer-price-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.2;
  margin-bottom: 0.12rem;
}

.offer-bar .offer-price {
  font-weight: 900;
  white-space: nowrap;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.offer-bar .offer-price .currency {
  font-size: 0.85rem;
  font-weight: 800;
  opacity: 0.75;
  margin-right: 0.12rem;
}

.offer-bar .offer-price .amount {
  font-size: 1.45rem;
  font-weight: 900;
}

.offer-bar .offer-price.is-win {
  color: var(--priceory-deeper);
}

.offer-bar .offer-price.is-win .amount {
  font-size: 1.55rem;
}

.offer-bar .offer-price.is-empty .amount {
  font-size: 1.2rem;
  color: var(--muted);
}

.offer-bar.win .offer-price-label {
  color: var(--priceory-dark);
}

.offer-meta {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 0.2rem;
  white-space: nowrap;
  font-weight: 600;
}

.offer-meta-win {
  color: var(--priceory-dark);
  font-weight: 800;
}

.offer-meta-diff {
  color: #94a3b8;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .offer-bar .offer-price .amount {
    font-size: 1.3rem;
  }

  .offer-bar.win .offer-price .amount {
    font-size: 1.4rem;
  }

  .offer-price-col {
    min-width: 6.5rem;
  }
}

/* Legacy strike-through (search cards, etc.) */
.was {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Forms / panels ---------- */
.panel {
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.panel .card-body {
  padding: 0.9rem;
}

@media (min-width: 768px) {
  .panel .card-body {
    padding: 1rem 1.15rem;
  }
}

.panel .form-control,
.panel .form-select,
.panel .btn {
  min-height: 2.5rem;
}

.page-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.page-sub {
  color: var(--muted);
}

.page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.page-toolbar .btn {
  min-height: 2.4rem;
}

.empty-state {
  border-radius: var(--radius);
  background: #fff;
  border: 1px dashed #cbd5e1;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 768px) {
  .empty-state {
    padding: 2rem 1.25rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.9rem 0;
}

.site-footer a {
  color: var(--priceory-dark);
  font-weight: 700;
}

/* ---------- Utilities ---------- */
.text-ink { color: var(--ink); }

.soft-alert {
  border: 0;
  border-radius: var(--radius-sm);
  background: #e0f2fe;
  color: #0c4a6e;
}

/* Mobile density tweaks */
@media (max-width: 575.98px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero {
    padding: 1.15rem 0.95rem;
  }

  .section-head {
    margin-bottom: 0.85rem;
  }

  .savings-burst {
    min-width: 4.1rem;
    padding: 0.38rem 0.42rem;
  }

  .savings-burst .save-amt {
    font-size: 0.95rem;
  }

  .deal-actions {
    flex-direction: column;
  }

  .deal-actions .btn {
    width: 100%;
  }

  .deal-media.media-frame {
    --media-pad: 0.7rem;
  }

  .product-card .price-now {
    font-size: 1.15rem;
  }

  .page-title {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .savings-burst.hot {
    animation: none;
  }

  .deal-card,
  .product-card,
  .btn-priceory,
  .btn-deal {
    transition: none;
  }
}

/* ---------- Hero savings banner + trust ---------- */
.hero-save-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(239, 68, 68, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
  max-width: 28rem;
}

.hero-save-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.95;
  letter-spacing: 0.02em;
}

.hero-save-amt {
  font-size: clamp(1.75rem, 6vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-save-note {
  font-size: 0.72rem;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.stat-card-accent {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.28), rgba(255, 255, 255, 0.12)) !important;
  border-color: rgba(255, 237, 213, 0.45) !important;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.section-zones .trust-pill,
.guide-header .trust-pill,
.section-guides .trust-pill,
.guide-article .trust-pill {
  background: var(--priceory-soft);
  border-color: var(--priceory-soft-2);
  color: var(--priceory-deeper);
  text-decoration: none;
}

/* ---------- Zone cards ---------- */
.section-zones {
  margin-bottom: 1.5rem;
}

.zone-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1rem;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.zone-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.zone-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.zone-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.zone-cta {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--priceory-dark);
}

.zone-baby { border-top: 4px solid #f472b6; }
.zone-grocery { border-top: 4px solid var(--accent); }
.zone-daily { border-top: 4px solid var(--priceory); }

/* ---------- Policy / MyKasih modules ---------- */
.section-policy {
  margin: 1.75rem 0;
}

.policy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  height: 100%;
  box-shadow: var(--shadow);
}

.policy-mykasih {
  background:
    linear-gradient(180deg, #fff 0%, #f0fdfa 100%);
  border-color: #99f6e4;
}

.policy-bulk {
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  border-color: #fed7aa;
}

.policy-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--priceory-dark);
  margin-bottom: 0.35rem;
}

.policy-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.policy-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.policy-disclaimer {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: 0.75rem !important;
  line-height: 1.4;
  color: #64748b !important;
}

.chip-dark {
  background: var(--priceory-soft);
  border: 1px solid var(--priceory-soft-2);
  color: var(--priceory-deeper);
}

.chip-dark:hover {
  background: var(--priceory-soft-2);
  color: var(--priceory-deeper);
}

/* ---------- Guides ---------- */
.section-guides {
  margin: 1.5rem 0 0.5rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover {
  border-color: var(--priceory-bright);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.guide-cat {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--priceory-dark);
  margin-bottom: 0.4rem;
}

.guide-card h3,
.guide-card h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.guide-card p {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
  margin-bottom: 0.65rem;
}

.guide-more {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-deep);
}

.guide-article {
  max-width: 46rem;
}

.guide-header {
  margin-bottom: 1.25rem;
}

.guide-header h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.45rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.guide-body.prose h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

/* Guide images & figures */
.guide-figure {
  margin: 1.25rem 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.guide-figure .guide-img,
.guide-body .guide-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: cover;
  object-position: center;
  background: #f1f5f9;
}

.guide-figure figcaption {
  padding: 0.65rem 0.9rem 0.8rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.guide-inline-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 280px;
}

.guide-table th,
.guide-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: var(--priceory-soft);
  color: var(--priceory-deeper);
  font-weight: 800;
  white-space: nowrap;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-hero-cover {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #e2e8f0;
}

.guide-hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(360px, 42vh);
  object-fit: cover;
}

.guide-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
  margin-bottom: 0.65rem;
  background: #e2e8f0;
  border: 1px solid var(--line);
}

@media (max-width: 575.98px) {
  .guide-figure .guide-img,
  .guide-body .guide-img {
    max-height: min(260px, 48vh);
  }

  .guide-figure figcaption {
    font-size: 0.8rem;
    padding: 0.55rem 0.7rem 0.7rem;
  }
}

/* =========================================================
   Homepage v2 — dopamine + local + zones
   ========================================================= */
.home-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  padding: 1.2rem 1rem 1.35rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #115e59 0%, #0d9488 48%, #14b8a6 100%);
  box-shadow: var(--shadow-lg);
}

.home-hero.theme-raya {
  background: linear-gradient(135deg, #065f46 0%, #059669 45%, #f59e0b 120%);
}
.home-hero.theme-cny {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #fbbf24 120%);
}
.home-hero.theme-merdeka {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 40%, #c2410c 100%);
}
.home-hero.theme-deepavali {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #f59e0b 115%);
}
.home-hero.theme-christmas {
  background: linear-gradient(135deg, #14532d 0%, #166534 45%, #b91c1c 110%);
}
.home-hero.theme-midyear {
  background: linear-gradient(135deg, #115e59 0%, #0d9488 40%, #ea580c 110%);
}

.home-hero-title {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(1.55rem, 5.4vw, 2.55rem);
  margin-bottom: 0.35rem;
}

.home-hero-sub {
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  opacity: 0.92;
  margin-bottom: 0.55rem;
}

/* Baby Top 5 cheapest rows */
.baby-top-list {
  display: grid;
  gap: 0.5rem;
}

.baby-top-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  box-shadow: var(--shadow);
  color: inherit;
}

.baby-top-row:hover {
  border-color: #f9a8d4;
  color: inherit;
}

.baby-rank {
  font-weight: 900;
  color: #db2777;
  font-size: 1.05rem;
  min-width: 2rem;
}

.baby-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.baby-main strong {
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.baby-bucket {
  font-size: 0.75rem;
  color: var(--muted);
}

.baby-price {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-deep);
  white-space: nowrap;
}

.home-hero-save {
  display: inline-block;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: #fdba74;
  text-shadow: 0 0 24px rgba(249, 115, 22, 0.35);
}

.home-hero-lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  font-size: clamp(0.92rem, 2.6vw, 1.08rem);
  margin-bottom: 0.85rem;
}

.hero-badge-fest {
  background: rgba(249, 115, 22, 0.35) !important;
  border-color: rgba(253, 186, 116, 0.5) !important;
}

.fest-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

@media (min-width: 576px) {
  .fest-banner {
    grid-template-columns: 140px 1fr;
    align-items: center;
  }
}

.fest-banner-media {
  border-radius: 0.65rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.15);
}

.fest-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fest-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.fest-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
}

.fest-sub {
  font-size: 0.86rem;
  opacity: 0.9;
  margin: 0.25rem 0 0.55rem;
}

.countdown-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
}

.countdown-label {
  font-size: 0.84rem;
}

.countdown-digits {
  display: flex;
  gap: 0.55rem;
}

.countdown-digits span {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  text-align: center;
  min-width: 3.1rem;
}

.countdown-digits b {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown-digits small {
  font-size: 0.65rem;
  opacity: 0.85;
  text-transform: uppercase;
}

.trust-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0.9rem;
  height: 100%;
}

.trust-panel-title {
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
  opacity: 0.95;
}

.trust-note {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  opacity: 0.85;
  line-height: 1.35;
}

.home-section {
  margin-bottom: 1.75rem;
}

/* Highlight cards */
.hl-card,
.bulk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hl-media,
.bulk-media {
  position: relative;
  aspect-ratio: 1 / 1;
}

.hl-bulk-tag {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  background: #0f766e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.hl-bulk-tag.hl-single {
  background: #64748b;
}

.hl-body,
.bulk-body {
  padding: 0.85rem 0.9rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hl-body h3,
.bulk-body h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.hl-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.hl-bulk-note {
  font-size: 0.78rem;
  color: #9a3412;
  background: #fff7ed;
  border-radius: 0.45rem;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.65rem;
}

/* Staples + calculator */
.staple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.75rem 0;
}

@media (min-width: 768px) {
  .staple-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.staple-card {
  display: block;
  background: #fff;
  border: 1px solid var(--priceory-soft-2);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.7rem;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.staple-card:hover {
  border-color: var(--priceory);
  box-shadow: var(--shadow);
  color: inherit;
}

.staple-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--priceory-dark);
}

.staple-price {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.staple-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.calc-card {
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.calc-rows {
  display: grid;
  gap: 0.55rem;
  margin: 0.65rem 0;
}

.calc-rows label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  display: grid;
  gap: 0.25rem;
}

.calc-result {
  background: #0f766e;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
}

.calc-save {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fde68a;
  margin-top: 0.2rem;
}

.zone-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 200px;
}

.zone-visual img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Match ticker */
.match-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(105deg, #115e59, #0d9488 55%, #ea580c);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-lg);
}

.match-updated {
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  text-align: right;
  min-width: 9rem;
}

.leader-scroll {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}

.leader-track {
  display: flex;
  gap: 0.55rem;
  padding: 0.65rem;
  width: max-content;
  animation: leader-marquee 48s linear infinite;
}

.leader-scroll:hover .leader-track,
.leader-scroll:focus-within .leader-track {
  animation-play-state: paused;
}

@keyframes leader-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.leader-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--priceory-soft);
  border: 1px solid var(--priceory-soft-2);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 22rem;
}

.leader-chip:hover {
  background: #ccfbf1;
  color: var(--ink);
}

.leader-rank {
  color: var(--accent-deep);
  font-weight: 900;
}

.leader-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10rem;
}

.leader-save {
  color: #b91c1c;
  font-weight: 900;
}

.leader-stores {
  color: var(--muted);
  font-size: 0.75rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  min-height: var(--tap);
}

.cat-chip:hover {
  border-color: var(--priceory);
  color: var(--priceory-deeper);
}

.cat-ico {
  font-size: 1.05rem;
}

@media (max-width: 575.98px) {
  .home-hero {
    padding: 1.05rem 0.85rem 1.15rem;
  }

  .zone-visual,
  .zone-visual img {
    max-height: 150px;
    height: 150px;
  }

  .staple-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leader-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

.guide-body.prose h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 1.15rem;
  margin-bottom: 0.4rem;
}

.guide-body.prose p,
.guide-body.prose li {
  color: #334155;
  line-height: 1.65;
  font-size: 1rem;
}

.guide-body.prose ul,
.guide-body.prose ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.guide-body.prose a {
  color: var(--priceory-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 0.75rem 1rem;
  border-radius: 0 0.6rem 0.6rem 0;
  color: #9a3412;
  margin: 1rem 0;
}

.guide-footer {
  margin-top: 1.75rem;
}

.empty-state.soft {
  background: var(--priceory-soft);
  border-style: solid;
  border-color: var(--priceory-soft-2);
}

.site-footer .row {
  padding: 0.35rem 0 0.15rem;
}

.site-footer a {
  color: var(--priceory-dark);
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .hero-save-banner {
    max-width: none;
  }

  .zone-card {
    padding: 0.95rem 0.9rem;
  }
}
