:root {
  --edh-orange: #f97316;
  --edh-orange-dark: #ea5a0c;
  --edh-orange-soft: #fff3e8;
  --edh-navy: #0f2544;
  --edh-navy-soft: #16345e;
  --edh-ink: #152338;
  --edh-muted: #64748b;
  --edh-line: #e5edf5;
  --edh-white: #fff;
  --edh-card: #ffffff;
  --edh-bg: #f8fafc;
  --edh-green: #1da34a;
}

body.ed-homepage-active .hero-section,
body.ed-homepage-active .ct-page-title,
body.ed-homepage-active .entry-header,
body.ed-homepage-active .page-title {
  display: none !important;
}

body.ed-homepage-active #main,
body.ed-homepage-active .site-main {
  padding: 0 !important;
}

.ed-home-main,
.ed-home-main * { box-sizing: border-box; }
.ed-home-main { width: 100%; background: #fff; color: var(--edh-ink); }
.ed-home-container { width: min(1360px, calc(100% - 34px)); margin: 0 auto; padding: 18px 0 44px; }

.ed-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(470px, .88fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #f1d6bd;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8f3 0%, #fff4ea 100%);
}

.ed-home-hero-copy { padding: 34px 30px 28px 36px; }
.ed-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #effbf2;
  color: #0c7b32;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.ed-home-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--edh-green); box-shadow: 0 0 0 4px rgba(29,163,74,.12); }
.ed-home-hero h1 { margin: 0 !important; font-size: clamp(34px, 4vw, 60px) !important; line-height: 1.02 !important; letter-spacing: -1.8px; font-weight: 900 !important; color: var(--edh-navy); }
.ed-home-hero h1 em { color: var(--edh-orange); font-style: normal; }
.ed-home-hero-copy > p { max-width: 620px; margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: #4e627d; }
.ed-home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ed-home-primary-button,
.ed-home-secondary-button,
.ed-home-final-cta > a,
.ed-home-rewards-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
}
.ed-home-primary-button,
.ed-home-rewards-copy a,
.ed-home-final-cta > a { color: #fff !important; background: var(--edh-orange); }
.ed-home-secondary-button { color: var(--edh-navy) !important; background: #fff; border: 1px solid #e5d4c7; }
.ed-home-mini-trust { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; color: #65748b; font-size: 14px; font-weight: 700; }

.ed-home-hero-visual {
  position: relative;
  min-height: 390px;
  padding: 24px 24px 22px;
  background: linear-gradient(180deg, #fff2e2 0%, #fff7f0 100%);
}
.ed-home-badge-box {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 5;
  max-width: 160px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 25px rgba(15,37,68,.08);
  color: var(--edh-navy);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}
.ed-home-hero-product {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15,37,68,.12);
}
.ed-home-hero-product img { width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.ed-home-hero-product-1 { left: 8%; top: 42px; width: 150px; height: 230px; transform: rotate(-2deg); }
.ed-home-hero-product-2 { left: 30%; top: 18px; width: 130px; height: 248px; transform: rotate(2deg); }
.ed-home-hero-product-3 { right: 18%; top: 10px; width: 165px; height: 250px; transform: rotate(1deg); }
.ed-home-hero-product-4 { right: 4%; top: 28px; width: 148px; height: 235px; transform: rotate(3deg); }
.ed-home-hero-side-note {
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: grid;
  gap: 4px;
  width: 140px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  color: var(--edh-navy);
  text-align: center;
  box-shadow: 0 14px 30px rgba(15,37,68,.1);
}
.ed-home-hero-side-note strong { font-size: 20px; font-weight: 900; }
.ed-home-hero-side-note span { font-size: 13px; font-weight: 700; line-height: 1.3; color: #586a83; }

.ed-home-service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--edh-line);
  border-radius: 16px;
  background: #fff;
}
.ed-home-service-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 14px;
}
.ed-home-service-strip > div + div { border-left: 1px solid var(--edh-line); }
.ed-home-service-strip > div > span {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  background: #eff5fb;
  color: var(--edh-navy-soft);
  font-size: 14px;
  font-weight: 900;
}
.ed-home-service-strip p { display: grid; gap: 2px; margin: 0; }
.ed-home-service-strip strong { font-size: 14px; font-weight: 800; }
.ed-home-service-strip small { color: var(--edh-muted); font-size: 11px; }

.ed-home-section { margin-top: 22px; }
.ed-home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ed-home-section-head h2 { margin: 0 !important; color: var(--edh-navy); font-size: 26px !important; line-height: 1.12 !important; letter-spacing: -.5px; font-weight: 900 !important; }
.ed-home-section-head p { margin: 4px 0 0; color: var(--edh-muted); font-size: 14px; }
.ed-home-section-head > a,
.ed-home-section-actions > a,
.ed-home-brand-panel .ed-home-section-head > a { display: inline-flex; align-items: center; gap: 6px; color: var(--edh-orange); text-decoration: none !important; font-size: 14px; font-weight: 800; }
.ed-home-section-actions { display: flex; align-items: center; gap: 12px; }
.ed-home-slider-buttons { display: flex; gap: 6px; }
.ed-home-slider-buttons button {
  width: 34px; height: 34px; padding: 0 !important; border: 1px solid #d8e2ee !important; border-radius: 50% !important; background: #fff !important; color: var(--edh-navy) !important; font-size: 22px !important; line-height: 1 !important; font-weight: 500 !important; box-shadow: none !important; cursor: pointer;
}
.ed-home-slider-buttons button:disabled { opacity: .35; cursor: default; }

.ed-home-category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.ed-home-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 1px solid var(--edh-line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  color: var(--edh-ink) !important;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ed-home-category-card:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(15,37,68,.06); border-color: #ffcfad; }
.ed-home-category-card > span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: #f8fafc; overflow: hidden; }
.ed-home-category-card img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ed-home-category-card b { font-size: 28px; color: var(--edh-orange); font-weight: 900; }
.ed-home-category-card strong { display: -webkit-box; min-height: 32px; margin-top: 8px; font-size: 14px; font-weight: 800; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-home-category-card small { margin-top: 4px; font-size: 11px; color: #8293a8; font-weight: 700; }

.ed-home-two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.ed-home-two-up > .ed-home-section { margin-top: 0; }
.ed-home-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}
.ed-home-split-layout > div > .ed-home-section { margin-top: 0; }
.ed-home-split-layout.is-bottom { grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr); }

.ed-home-products ul.products,
body.edpg-product-grid-active .woocommerce .ed-home-products ul.products {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-columns: calc(25% - 9px);
  grid-auto-flow: column;
  gap: 16px !important;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100% !important;
  margin: 0 !important;
  padding: 1px 1px 10px !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ed-home-products ul.products::-webkit-scrollbar { display: none; }
.ed-home-products ul.products li.product { min-height: 100%; scroll-snap-align: start; }
body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container {
  display: grid !important;
  place-items: center;
  width: 100%;
  height: 220px;
  min-height: 220px;
  overflow: hidden;
  margin: 0 0 8px !important;
  border-radius: 12px;
  background: #f8fafc;
}
body.ed-homepage-active .ed-home-products ul.products li.product img,
body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container img {
  width: 100% !important;
  height: 220px !important;
  padding: 14px !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  background: transparent;
}

.ed-home-promos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ed-home-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(150px, .85fr);
  gap: 10px;
  align-items: center;
  min-height: 176px;
  overflow: hidden;
  padding: 22px;
  border-radius: 20px;
  color: #fff !important;
  text-decoration: none !important;
}
.ed-home-promo::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; border: 30px solid rgba(255,255,255,.12); }
.ed-home-promo.is-blue { background: linear-gradient(135deg, #123f7b, #0a5ac1); }
.ed-home-promo.is-orange { background: linear-gradient(135deg, #f97316, #dd5a09); }
.ed-home-promo.is-green { background: linear-gradient(135deg, #188948, #116c39); }
.ed-home-promo small { position: relative; z-index: 1; margin-bottom: 10px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 900; letter-spacing: .7px; }
.ed-home-promo strong { position: relative; z-index: 1; font-size: 26px; line-height: 1.05; font-weight: 900; }
.ed-home-promo span { position: relative; z-index: 1; margin-top: 10px; color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.45; }
.ed-home-promo b { position: relative; z-index: 1; margin-top: auto; font-size: 14px; }

.ed-home-brand-panel,
.ed-home-why-shop {
  padding: 18px;
  border: 1px solid var(--edh-line);
  border-radius: 18px;
  background: #fff;
}
.ed-home-brand-panel .ed-home-section-head,
.ed-home-why-shop .ed-home-section-head { margin-bottom: 14px; }
.ed-home-brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ed-home-brand-chip {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--edh-line);
  border-radius: 16px;
  background: #fff;
  color: var(--edh-navy) !important;
  text-decoration: none !important;
  text-align: center;
}
.ed-home-brand-chip span { font-size: 18px; line-height: 1.15; font-weight: 900; letter-spacing: -.3px; }

.ed-home-rewards {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(125deg, #153764, #0d2746 58%, #0b1d33);
  color: #fff;
}
.ed-home-rewards-copy { padding: 24px 28px; }
.ed-home-rewards-copy small { color: #ffb36f; font-size: 10px; font-weight: 900; letter-spacing: .8px; }
.ed-home-rewards-copy h2 { margin: 8px 0 0 !important; color: #fff; font-size: 34px !important; line-height: 1.08 !important; letter-spacing: -.6px; font-weight: 900 !important; }
.ed-home-rewards-copy p { max-width: 520px; margin: 10px 0 0; color: #d3deeb; font-size: 14px; line-height: 1.6; }
.ed-home-rewards-copy a { margin-top: 18px; }
.ed-home-rewards-visual {
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at center, rgba(255,255,255,.1) 0, rgba(255,255,255,.03) 55%, rgba(255,255,255,0) 56%);
}
.ed-home-rewards-card {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 180px;
  height: 180px;
  border-radius: 24px;
  background: #fff7ef;
  color: var(--edh-orange);
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
  transform: rotate(-8deg);
}
.ed-home-rewards-card strong { font-size: 54px; line-height: 1; font-weight: 900; }
.ed-home-rewards-card span { color: var(--edh-navy); font-size: 14px; font-weight: 900; }

.ed-home-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ed-home-why-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e6eef6;
}
.ed-home-why-card strong { font-size: 14px; font-weight: 900; color: var(--edh-navy); }
.ed-home-why-card span { font-size: 14px; line-height: 1.5; color: var(--edh-muted); }

.ed-home-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 24px 28px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(130deg, #172a45, #0f1f34);
}
.ed-home-final-cta small { color: #ffb26b; font-size: 10px; font-weight: 900; letter-spacing: .8px; }
.ed-home-final-cta h2 { margin: 8px 0 0 !important; color: #fff; font-size: 32px !important; line-height: 1.08 !important; font-weight: 900 !important; }
.ed-home-final-cta p { margin: 10px 0 0; color: #cbd6e3; font-size: 14px; }

@media (max-width: 1180px) {
  .ed-home-hero { grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); }
  .ed-home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ed-home-products ul.products,
  body.edpg-product-grid-active .woocommerce .ed-home-products ul.products { grid-auto-columns: calc(33.333% - 8px); }
}

@media (max-width: 980px) {
  .ed-home-two-up,
  .ed-home-split-layout,
  .ed-home-split-layout.is-bottom,
  .ed-home-promos,
  .ed-home-rewards,
  .ed-home-hero { grid-template-columns: 1fr; }
  .ed-home-hero-visual { min-height: 360px; }
  .ed-home-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-home-service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-home-service-strip > div:nth-child(3), .ed-home-service-strip > div:nth-child(4) { border-top: 1px solid var(--edh-line); }
  .ed-home-service-strip > div:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
  .ed-home-container { width: calc(100% - 14px); padding: 10px 0 28px; }
  .ed-home-hero { border-radius: 18px; }
  .ed-home-hero-copy { padding: 22px 16px 18px; }
  .ed-home-kicker { margin-bottom: 10px; padding: 6px 9px; font-size: 9px; }
  .ed-home-hero h1 { font-size: 37px !important; letter-spacing: -1.3px; }
  .ed-home-hero-copy > p { font-size: 13px; margin-top: 12px; }
  .ed-home-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ed-home-primary-button, .ed-home-secondary-button, .ed-home-final-cta > a, .ed-home-rewards-copy a { min-height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
  .ed-home-mini-trust { margin-top: 14px; gap: 8px 10px; font-size: 10px; }
  .ed-home-hero-visual { min-height: 280px; padding: 12px; }
  .ed-home-badge-box { top: 12px; right: 12px; max-width: 130px; padding: 8px 10px; border-radius: 12px; font-size: 10px; }
  .ed-home-hero-product-1 { left: 8px; top: 55px; width: 100px; height: 150px; }
  .ed-home-hero-product-2 { left: 26%; top: 32px; width: 95px; height: 158px; }
  .ed-home-hero-product-3 { right: 16%; top: 38px; width: 98px; height: 150px; }
  .ed-home-hero-product-4 { right: 8px; top: 56px; width: 84px; height: 136px; }
  .ed-home-hero-side-note { right: 10px; bottom: 10px; width: 112px; padding: 8px 10px; }
  .ed-home-hero-side-note strong { font-size: 16px; }
  .ed-home-hero-side-note span { font-size: 11px; }
  .ed-home-service-strip { grid-template-columns: 1fr; margin-top: 10px; border-radius: 14px; }
  .ed-home-service-strip > div { justify-content: flex-start; min-height: 60px; }
  .ed-home-service-strip > div + div { border-top: 1px solid var(--edh-line); border-left: 0; }
  .ed-home-service-strip > div:nth-child(3), .ed-home-service-strip > div:nth-child(4) { border-top: 1px solid var(--edh-line); }
  .ed-home-section { margin-top: 18px; }
  .ed-home-section-head { align-items: center; margin-bottom: 10px; }
  .ed-home-section-head h2 { font-size: 20px !important; }
  .ed-home-section-head p { font-size: 10px; }
  .ed-home-slider-buttons { display: none; }
  .ed-home-category-grid { display: flex; overflow-x: auto; gap: 8px; padding: 0 4px 6px 0; scrollbar-width: none; }
  .ed-home-category-grid::-webkit-scrollbar { display: none; }
  .ed-home-category-card { flex: 0 0 118px; padding: 10px 8px 12px; border-radius: 14px; }
  .ed-home-category-card > span { width: 82px; height: 82px; border-radius: 16px; }
  .ed-home-category-card strong { min-height: 34px; font-size: 12px; }
  .ed-home-category-card small { font-size: 8px; }
  .ed-home-products ul.products,
  body.edpg-product-grid-active .woocommerce .ed-home-products ul.products { grid-auto-columns: calc(50% - 6px); gap: 10px !important; }
  body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container { height: 160px; min-height: 160px; border-radius: 10px; }
  body.ed-homepage-active .ed-home-products ul.products li.product img,
  body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container img { height: 160px !important; padding: 10px !important; }
  .ed-home-promos { gap: 10px; }
  .ed-home-promo { grid-template-columns: 1fr; gap: 14px; }
  .ed-home-promo-products { justify-content: flex-start; }
  .ed-home-promo-products span { width: 60px; height: 84px; }
  .ed-home-promo { min-height: 150px; padding: 18px; border-radius: 16px; }
  .ed-home-promo strong { font-size: 22px; }
  .ed-home-brand-grid, .ed-home-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-home-brand-chip { min-height: 64px; border-radius: 14px; }
  .ed-home-brand-chip span { font-size: 16px; }
  .ed-home-rewards-copy { padding: 18px 16px; }
  .ed-home-rewards-copy h2 { font-size: 28px !important; }
  .ed-home-rewards-copy p { font-size: 13px; }
  .ed-home-rewards-visual { padding-top: 0; }
  .ed-home-rewards-card { width: 140px; height: 140px; border-radius: 18px; transform: rotate(-6deg); }
  .ed-home-rewards-card strong { font-size: 42px; }
  .ed-home-final-cta { flex-direction: column; align-items: stretch; padding: 20px 18px; }
  .ed-home-final-cta h2 { font-size: 25px !important; }
  .ed-home-final-cta p { font-size: 13px; }
}

@media (max-width: 420px) {
  .ed-home-hero-actions { grid-template-columns: 1fr; }
  .ed-home-brand-grid, .ed-home-why-grid { grid-template-columns: 1fr 1fr; }
}

.ed-home-promo-copy{position:relative;z-index:1;display:flex;flex-direction:column;height:100%;}
.ed-home-promo-copy small{position:relative;z-index:1;margin-bottom:10px;color:rgba(255,255,255,.8);font-size:10px;font-weight:900;letter-spacing:.7px;}
.ed-home-promo-copy strong{position:relative;z-index:1;font-size:28px;line-height:1.05;font-weight:900;}
.ed-home-promo-copy span{position:relative;z-index:1;margin-top:10px;color:rgba(255,255,255,.85);font-size:12px;line-height:1.45;}
.ed-home-promo-copy b{position:relative;z-index:1;margin-top:auto;font-size:12px;}
.ed-home-promo-products{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:flex-end;gap:6px;height:100%;}
.ed-home-promo-products span{display:grid;place-items:center;width:74px;height:104px;padding:6px;border-radius:14px;background:rgba(255,255,255,.15);backdrop-filter:blur(1px);}
.ed-home-promo-products img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(0,0,0,.14));}
.ed-home-products ul.products li.product{background:#fff;border:1px solid var(--edh-line);border-radius:14px;padding:10px;box-shadow:0 6px 14px rgba(15,37,68,.03);}
.ed-home-products ul.products li.product .button, .ed-home-products ul.products li.product .added_to_cart{border-radius:10px !important;}


/* v1.5.4 — consolidated homepage product/grid system */
body.ed-homepage-active .edpg-delivery-badge,
body.ed-homepage-active .ed-home-products .edpg-delivery-badge {
  display: none !important;
}

body.ed-homepage-active .ed-home-section {
  margin-top: 28px;
}

body.ed-homepage-active .ed-home-section-head {
  align-items: flex-end;
  margin-bottom: 14px;
}

body.ed-homepage-active .ed-home-section-head h2 {
  font-size: 24px !important;
  line-height: 1.12 !important;
}

body.ed-homepage-active .ed-home-section-head p {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

body.ed-homepage-active .ed-home-two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
  align-items: start;
}

body.ed-homepage-active .ed-home-two-up-slot,
body.ed-homepage-active .ed-home-two-up-slot > .ed-home-section {
  min-width: 0;
  margin-top: 0;
}

/* One stable product-card model on the homepage. */
body.ed-homepage-active .ed-home-products {
  min-width: 0;
  overflow: hidden;
}

body.ed-homepage-active .ed-home-products ul.products,
body.edpg-product-grid-active .woocommerce .ed-home-products ul.products {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column !important;
  grid-auto-columns: calc((100% - 36px) / 4) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 1px 1px 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body.ed-homepage-active .ed-home-products ul.products::-webkit-scrollbar {
  display: none;
}

body.ed-homepage-active .ed-home-products ul.products li.product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 300px !important;
  margin: 0 !important;
  padding: 9px 9px 52px !important;
  overflow: hidden !important;
  border: 1px solid #dfe8f1 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(15,37,68,.035) !important;
  scroll-snap-align: start;
}

body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 150px !important;
  min-height: 150px !important;
  margin: 0 0 8px !important;
  overflow: hidden !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product img,
body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container img {
  display: block !important;
  width: 100% !important;
  height: 150px !important;
  margin: 0 !important;
  padding: 7px !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  transform: none !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .woocommerce-loop-product__title,
body.ed-homepage-active .ed-home-products ul.products li.product .woocommerce-loop-product__link h2 {
  display: -webkit-box !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #14325b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.34 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .price {
  display: block !important;
  min-height: 18px !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  color: #0f223f !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .price del {
  display: none !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .price ins {
  text-decoration: none !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .ed-home-stock {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 15px !important;
  margin: 0 !important;
  color: #159447 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .ed-home-stock::before {
  content: "";
  width: 6px !important;
  height: 6px !important;
  flex: 0 0 6px !important;
  border-radius: 50%;
  background: currentColor;
}

body.ed-homepage-active .ed-home-products ul.products li.product .ed-home-stock.is-out {
  color: #b42318 !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .edpg-purchase-control,
body.ed-homepage-active .ed-home-products ul.products li.product .edpg-view-product {
  position: absolute !important;
  left: 9px !important;
  right: 9px !important;
  bottom: 8px !important;
  width: auto !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .edpg-add-button,
body.ed-homepage-active .ed-home-products ul.products li.product .edpg-view-product,
body.ed-homepage-active .ed-home-products ul.products li.product .edpg-quantity-stepper {
  min-height: 31px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #fff !important;
  background: #ff6b18 !important;
  box-shadow: none !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .edpg-add-button,
body.ed-homepage-active .ed-home-products ul.products li.product .edpg-view-product {
  font-size: 10.5px !important;
  font-weight: 850 !important;
}

body.ed-homepage-active .ed-home-products ul.products li.product .edpg-quantity-stepper button {
  color: #fff !important;
  background: transparent !important;
}

/* Lower desktop composition: reference-style two-column merchandising block. */
body.ed-homepage-active .ed-home-lower-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr) !important;
  grid-template-areas:
    "drinks brands"
    "rewards mini"
    "everyday whyrecent" !important;
  gap: 18px 20px !important;
  margin-top: 24px !important;
  align-items: start !important;
}

body.ed-homepage-active .ed-home-lower-cell,
body.ed-homepage-active .ed-home-lower-cell > div,
body.ed-homepage-active .ed-home-lower-cell .ed-home-section {
  min-width: 0 !important;
}

body.ed-homepage-active .ed-home-lower-cell > .ed-home-section,
body.ed-homepage-active .ed-home-lower-cell > .ed-home-brand-panel,
body.ed-homepage-active .ed-home-lower-cell > .ed-home-rewards,
body.ed-homepage-active .ed-home-lower-cell > .ed-home-mini-benefits,
body.ed-homepage-active .ed-home-lower-cell > .ed-home-why-shop {
  margin-top: 0 !important;
}

body.ed-homepage-active .ed-home-lower-cell.is-drinks { grid-area: drinks; }
body.ed-homepage-active .ed-home-lower-cell.is-brands { grid-area: brands; display: grid; gap: 16px; }
body.ed-homepage-active .ed-home-lower-cell.is-rewards { grid-area: rewards; }
body.ed-homepage-active .ed-home-lower-cell.is-mini-benefits { grid-area: mini; }
body.ed-homepage-active .ed-home-lower-cell.is-everyday { grid-area: everyday; }
body.ed-homepage-active .ed-home-lower-cell.is-whyrecent { grid-area: whyrecent; min-width: 0; }

/* Five compact retail cards per rail in the lower desktop area. */
body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products {
  grid-auto-columns: calc((100% - 40px) / 5) !important;
  gap: 10px !important;
}

body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product {
  min-height: 238px !important;
  padding: 7px 7px 44px !important;
  border-radius: 10px !important;
}

body.ed-homepage-active .ed-home-lower-grid .is-drinks .ct-media-container,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ct-media-container,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .ct-media-container {
  height: 108px !important;
  min-height: 108px !important;
  margin-bottom: 5px !important;
}

body.ed-homepage-active .ed-home-lower-grid .is-drinks li.product img,
body.ed-homepage-active .ed-home-lower-grid .is-drinks li.product .ct-media-container img,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section li.product img,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section li.product .ct-media-container img,
body.ed-homepage-active .ed-home-lower-grid .is-everyday li.product img,
body.ed-homepage-active .ed-home-lower-grid .is-everyday li.product .ct-media-container img {
  height: 108px !important;
  padding: 5px !important;
}

body.ed-homepage-active .ed-home-lower-grid .is-drinks .woocommerce-loop-product__title,
body.ed-homepage-active .ed-home-lower-grid .is-drinks .woocommerce-loop-product__link h2,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .woocommerce-loop-product__title,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .woocommerce-loop-product__link h2,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .woocommerce-loop-product__title,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .woocommerce-loop-product__link h2 {
  min-height: 32px !important;
  max-height: 32px !important;
  font-size: 9.8px !important;
  line-height: 1.25 !important;
}

body.ed-homepage-active .ed-home-lower-grid .is-drinks .price,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .price,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .price {
  font-size: 11.5px !important;
}

body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-stock,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-stock,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-stock {
  font-size: 9px !important;
}

body.ed-homepage-active .ed-home-lower-grid .is-drinks .edpg-purchase-control,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .edpg-purchase-control,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .edpg-purchase-control,
body.ed-homepage-active .ed-home-lower-grid .is-drinks .edpg-view-product,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .edpg-view-product,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .edpg-view-product {
  left: 7px !important;
  right: 7px !important;
  bottom: 7px !important;
}

body.ed-homepage-active .ed-home-lower-grid .is-drinks .edpg-add-button,
body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .edpg-add-button,
body.ed-homepage-active .ed-home-lower-grid .is-everyday .edpg-add-button {
  min-height: 27px !important;
  font-size: 9.5px !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-section-head,
body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel .ed-home-section-head {
  margin-bottom: 10px !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-section-head h2,
body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel .ed-home-section-head h2 {
  font-size: 19px !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-section-head p,
body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel .ed-home-section-head p {
  font-size: 10.5px !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel,
body.ed-homepage-active .ed-home-lower-grid .ed-home-mini-benefits,
body.ed-homepage-active .ed-home-lower-grid .ed-home-why-shop,
body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] {
  padding: 13px !important;
  border: 1px solid var(--edh-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel .ed-home-brand-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-chip {
  min-height: 50px !important;
  padding: 6px 5px !important;
  border-radius: 9px !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-chip span {
  font-size: 11px !important;
  line-height: 1.12 !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-rewards {
  min-height: 172px !important;
  border-radius: 15px !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-rewards-copy {
  padding: 17px 19px !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-rewards-copy h2 {
  font-size: 22px !important;
  line-height: 1.08 !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-rewards-copy p {
  font-size: 11px !important;
  line-height: 1.45 !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-rewards-card {
  width: 112px !important;
  height: 112px !important;
  border-radius: 16px !important;
}

body.ed-homepage-active .ed-home-lower-grid .ed-home-rewards-card strong {
  font-size: 38px !important;
}

body.ed-homepage-active .ed-home-mini-benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.ed-homepage-active .ed-home-mini-benefit-card {
  min-height: 86px !important;
  padding: 10px !important;
  border: 1px solid #e6edf5 !important;
  border-radius: 10px !important;
  background: #fbfdff !important;
}

body.ed-homepage-active .ed-home-mini-benefit-card strong {
  font-size: 11px !important;
}

body.ed-homepage-active .ed-home-mini-benefit-card span {
  font-size: 9px !important;
  line-height: 1.35 !important;
}

body.ed-homepage-active .ed-home-whyrecent-grid {
  display: grid !important;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
  gap: 12px !important;
}

body.ed-homepage-active .ed-home-why-shop .ed-home-why-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

body.ed-homepage-active .ed-home-why-card {
  min-height: 88px !important;
  padding: 9px !important;
}

body.ed-homepage-active .ed-home-why-card strong {
  font-size: 10.5px !important;
}

body.ed-homepage-active .ed-home-why-card span {
  font-size: 8.7px !important;
  line-height: 1.3 !important;
}

body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .ed-home-products ul.products {
  grid-auto-columns: calc((100% - 24px) / 4) !important;
  gap: 8px !important;
}

body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .ed-home-products ul.products li.product {
  min-height: 178px !important;
  padding: 6px 6px 8px !important;
}

body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .ct-media-container {
  height: 76px !important;
  min-height: 76px !important;
  margin-bottom: 4px !important;
}

body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] li.product img,
body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] li.product .ct-media-container img {
  height: 76px !important;
  padding: 3px !important;
}

body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .woocommerce-loop-product__title,
body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .woocommerce-loop-product__link h2 {
  min-height: 27px !important;
  max-height: 27px !important;
  font-size: 8.8px !important;
  line-height: 1.2 !important;
}

body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .price {
  min-height: 14px !important;
  font-size: 10.5px !important;
}

body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .ed-home-stock {
  font-size: 8px !important;
}

body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .edpg-purchase-control,
body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .edpg-view-product {
  display: none !important;
}

body.ed-homepage-active .ed-home-final-cta-compact {
  margin-top: 12px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
}

body.ed-homepage-active .ed-home-final-cta-compact h2 {
  font-size: 18px !important;
}

body.ed-homepage-active .ed-home-final-cta-compact p {
  margin-top: 5px !important;
  font-size: 10px !important;
}

body.ed-homepage-active .ed-home-final-cta-compact > a {
  min-height: 38px !important;
  padding: 0 14px !important;
  font-size: 11px !important;
}

/* Tablet: stack merchandising sections but keep a dense four-card rail. */
@media (min-width: 761px) and (max-width: 1100px) {
  body.ed-homepage-active .ed-home-container {
    width: min(100% - 24px, 1320px) !important;
  }

  body.ed-homepage-active .ed-home-two-up {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "drinks"
      "brands"
      "rewards"
      "mini"
      "everyday"
      "whyrecent" !important;
    gap: 18px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products {
    grid-auto-columns: calc((100% - 36px) / 4) !important;
    gap: 12px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product {
    min-height: 282px !important;
    padding: 9px 9px 50px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ct-media-container,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ct-media-container,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ct-media-container {
    height: 145px !important;
    min-height: 145px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product img,
  body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks li.product img,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section li.product img,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday li.product img,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday li.product .ct-media-container img {
    height: 145px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel .ed-home-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.ed-homepage-active .ed-home-whyrecent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Phone: intentionally dense — 3 product cards, 4 category tiles, 3 brands. */
@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-container {
    width: calc(100% - 10px) !important;
  }

  body.ed-homepage-active .ed-home-two-up,
  body.ed-homepage-active .ed-home-lower-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
    gap: 14px !important;
    margin-top: 18px !important;
  }

  body.ed-homepage-active .ed-home-lower-cell {
    grid-area: auto !important;
  }

  body.ed-homepage-active .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .ed-home-products ul.products {
    grid-auto-columns: calc((100% - 14px) / 3) !important;
    gap: 7px !important;
    padding-bottom: 6px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .ed-home-products ul.products li.product {
    min-height: 221px !important;
    padding: 6px 6px 40px !important;
    border-radius: 9px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ct-media-container,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ct-media-container,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ct-media-container,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .ct-media-container {
    height: 94px !important;
    min-height: 94px !important;
    margin-bottom: 5px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product img,
  body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks li.product img,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section li.product img,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday li.product img,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] li.product img,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] li.product .ct-media-container img {
    height: 94px !important;
    padding: 4px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-products ul.products li.product .woocommerce-loop-product__link h2,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .woocommerce-loop-product__title {
    min-height: 30px !important;
    max-height: 30px !important;
    margin-bottom: 3px !important;
    font-size: 9.5px !important;
    line-height: 1.25 !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .price,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .price,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .price,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .price,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .price {
    min-height: 14px !important;
    margin-bottom: 2px !important;
    font-size: 10.5px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .ed-home-stock {
    min-height: 12px !important;
    font-size: 8px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .ed-home-stock::before {
    width: 5px !important;
    height: 5px !important;
    flex-basis: 5px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-products ul.products li.product .edpg-view-product {
    left: 5px !important;
    right: 5px !important;
    bottom: 5px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-products ul.products li.product .edpg-quantity-stepper {
    min-height: 27px !important;
    border-radius: 5px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-products ul.products li.product .edpg-view-product {
    font-size: 9px !important;
  }

  body.ed-homepage-active .ed-home-section-head {
    margin-bottom: 8px !important;
  }

  body.ed-homepage-active .ed-home-section-head h2,
  body.ed-homepage-active .ed-home-lower-grid .ed-home-section-head h2,
  body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel .ed-home-section-head h2 {
    font-size: 17px !important;
  }

  body.ed-homepage-active .ed-home-section-head p,
  body.ed-homepage-active .ed-home-lower-grid .ed-home-section-head p,
  body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel .ed-home-section-head p {
    font-size: 9px !important;
  }

  body.ed-homepage-active .ed-home-category-grid {
    gap: 6px !important;
  }

  body.ed-homepage-active .ed-home-category-card {
    flex: 0 0 calc((100vw - 34px) / 4.1) !important;
    padding: 7px 4px 8px !important;
  }

  body.ed-homepage-active .ed-home-category-card > span {
    width: 58px !important;
    height: 58px !important;
  }

  body.ed-homepage-active .ed-home-category-card strong {
    min-height: 26px !important;
    font-size: 9px !important;
  }

  body.ed-homepage-active .ed-home-category-card small {
    font-size: 7px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel .ed-home-brand-grid,
  body.ed-homepage-active .ed-home-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.ed-homepage-active .ed-home-brand-chip {
    min-height: 46px !important;
    padding: 5px !important;
  }

  body.ed-homepage-active .ed-home-brand-chip span {
    font-size: 10px !important;
  }

  body.ed-homepage-active .ed-home-mini-benefits-grid,
  body.ed-homepage-active .ed-home-why-shop .ed-home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body.ed-homepage-active .ed-home-whyrecent-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .edpg-view-product {
    display: none !important;
  }

  body.ed-homepage-active .ed-home-hero-visual {
    min-height: 245px !important;
  }

  body.ed-homepage-active .ed-home-hero-product-4 {
    display: none !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
}

@media (max-width: 360px) {
  body.ed-homepage-active .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-grid [data-ed-recently-viewed] .ed-home-products ul.products {
    grid-auto-columns: calc((100% - 10px) / 3) !important;
    gap: 5px !important;
  }

  body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container,
  body.ed-homepage-active .ed-home-products ul.products li.product img,
  body.ed-homepage-active .ed-home-products ul.products li.product .ct-media-container img {
    height: 88px !important;
    min-height: 88px !important;
  }
}


/* v1.5.5 reward banner artwork */
body.ed-homepage-active .ed-home-rewards {
  grid-template-columns: minmax(0, 1.22fr) minmax(240px, .78fr) !important;
}

body.ed-homepage-active .ed-home-rewards-visual {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  min-width: 0 !important;
  padding: 10px 18px 0 !important;
  background: radial-gradient(circle at 55% 55%, rgba(255,255,255,.12) 0, rgba(255,255,255,.04) 45%, rgba(255,255,255,0) 72%) !important;
}

body.ed-homepage-active .ed-home-rewards-art {
  display: block !important;
  width: min(100%, 390px) !important;
  max-height: 210px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.16));
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-rewards {
    grid-template-columns: 1fr !important;
  }

  body.ed-homepage-active .ed-home-rewards-visual {
    padding: 0 12px 10px !important;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    width: min(100%, 260px) !important;
    max-height: 150px !important;
  }
}


/* v1.5.6 force exact rewards banner image */
body.ed-homepage-active .ed-home-rewards-visual--image {
  display: block !important;
  min-height: 230px !important;
  width: 100% !important;
  padding: 0 !important;
  background-repeat: no-repeat !important;
  background-position: center bottom !important;
  background-size: contain !important;
}

body.ed-homepage-active .ed-home-rewards-visual--image img,
body.ed-homepage-active .ed-home-rewards-art {
  display: none !important;
}

@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-rewards {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr) !important;
  }

  body.ed-homepage-active .ed-home-rewards-visual--image {
    min-height: 245px !important;
    margin-right: 8px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-rewards-visual--image {
    min-height: 165px !important;
    background-position: center bottom !important;
    margin: 0 10px 10px !important;
  }
}


/* v1.5.7 reward banner layout rebuild */
body.ed-homepage-active .ed-home-rewards {
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, .84fr) !important;
}

body.ed-homepage-active .ed-home-rewards-copy {
  position: relative;
  z-index: 2;
}

body.ed-homepage-active .ed-home-rewards-copy p {
  max-width: 420px !important;
}

body.ed-homepage-active .ed-home-rewards-visual {
  position: relative !important;
  display: block !important;
  min-height: 240px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 58% 52%, rgba(255,255,255,.14) 0, rgba(255,255,255,.06) 34%, rgba(255,255,255,0) 70%) !important;
}

body.ed-homepage-active .ed-home-rewards-voucher {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 138px;
  height: 138px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8ee 0%, #ffffff 100%);
  box-shadow: 0 16px 28px rgba(0,0,0,.18);
  transform: rotate(-7deg);
}

body.ed-homepage-active .ed-home-rewards-voucher strong {
  color: #ff6a00;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
}

body.ed-homepage-active .ed-home-rewards-voucher span {
  color: #0d2746;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  letter-spacing: .3px;
}

body.ed-homepage-active .ed-home-rewards-art {
  position: absolute !important;
  right: -10px !important;
  bottom: 0 !important;
  display: block !important;
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  max-height: none !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: right bottom !important;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.18));
}

body.ed-homepage-active .ed-home-rewards-visual--image {
  background-image: none !important;
}

@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-rewards {
    min-height: 220px !important;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    bottom: -2px !important;
    right: -18px !important;
    width: min(100%, 460px) !important;
    max-width: 460px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-rewards {
    grid-template-columns: 1fr !important;
  }

  body.ed-homepage-active .ed-home-rewards-visual {
    min-height: 170px !important;
    margin: 0 10px 10px !important;
    border-radius: 14px !important;
  }

  body.ed-homepage-active .ed-home-rewards-voucher {
    top: 10px;
    left: 10px;
    width: 96px;
    height: 96px;
    border-radius: 14px;
  }

  body.ed-homepage-active .ed-home-rewards-voucher strong {
    font-size: 30px;
  }

  body.ed-homepage-active .ed-home-rewards-voucher span {
    font-size: 9px;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    right: -8px !important;
    bottom: 0 !important;
    width: min(100%, 270px) !important;
    max-width: 270px !important;
  }
}


/* v1.5.8 reward banner alignment polish */
body.ed-homepage-active .ed-home-rewards {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr) !important;
}

body.ed-homepage-active .ed-home-rewards-copy {
  padding-right: 10px !important;
}

body.ed-homepage-active .ed-home-rewards-visual {
  min-height: 220px !important;
}

body.ed-homepage-active .ed-home-rewards-voucher {
  top: 10px !important;
  left: 16px !important;
  width: 128px !important;
  height: 128px !important;
  transform: rotate(-8deg) !important;
}

body.ed-homepage-active .ed-home-rewards-voucher strong {
  font-size: 42px !important;
}

body.ed-homepage-active .ed-home-rewards-voucher span {
  font-size: 11px !important;
}

body.ed-homepage-active .ed-home-rewards-art {
  right: -6px !important;
  top: 8px !important;
  bottom: auto !important;
  width: min(100%, 455px) !important;
  max-width: 455px !important;
  object-position: right top !important;
}

@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-rewards {
    min-height: 210px !important;
  }

  body.ed-homepage-active .ed-home-rewards-visual {
    min-height: 210px !important;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    right: -2px !important;
    top: -2px !important;
    width: min(100%, 470px) !important;
    max-width: 470px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-rewards-visual {
    min-height: 155px !important;
  }

  body.ed-homepage-active .ed-home-rewards-voucher {
    top: 8px !important;
    left: 8px !important;
    width: 86px !important;
    height: 86px !important;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    top: 8px !important;
    right: -6px !important;
    width: min(100%, 255px) !important;
    max-width: 255px !important;
  }
}


/* v1.5.9 move the whole reward card up by using independent lower columns */
body.ed-homepage-active .ed-home-lower-grid--columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

body.ed-homepage-active .ed-home-lower-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  min-width: 0 !important;
}

body.ed-homepage-active .ed-home-lower-column > .ed-home-lower-cell {
  margin: 0 !important;
  min-width: 0 !important;
}

body.ed-homepage-active .ed-home-lower-column--left .is-rewards {
  margin-top: 0 !important;
}

body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards,
body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits,
body.ed-homepage-active .ed-home-lower-column--right .ed-home-whyrecent-grid {
  margin-top: 0 !important;
}

@media (max-width: 980px) {
  body.ed-homepage-active .ed-home-lower-grid--columns {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.ed-homepage-active .ed-home-lower-column {
    gap: 16px !important;
  }
}


/* v1.6.0 homepage desktop/tablet/mobile alignment cleanup */
body.ed-homepage-active .ed-home-section-head a,
body.ed-homepage-active .ed-home-products-head a,
body.ed-homepage-active .ed-home-brand-panel .ed-home-section-head a {
  white-space: nowrap !important;
}

@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-lower-grid--columns {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
    gap: 18px !important;
  }

  body.ed-homepage-active .ed-home-lower-column {
    gap: 16px !important;
  }

  body.ed-homepage-active .ed-home-lower-cell.is-brands,
  body.ed-homepage-active .ed-home-lower-cell.is-mini-benefits,
  body.ed-homepage-active .ed-home-lower-cell.is-whyrecent,
  body.ed-homepage-active .ed-home-lower-cell.is-everyday,
  body.ed-homepage-active .ed-home-lower-cell.is-drinks,
  body.ed-homepage-active .ed-home-lower-cell.is-rewards {
    min-width: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards {
    min-height: 158px !important;
    grid-template-columns: minmax(0, 1.16fr) minmax(210px, .84fr) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-copy {
    padding: 18px 20px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-copy h2 {
    font-size: 18px !important;
    line-height: 1.12 !important;
    max-width: 320px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-copy p {
    margin-top: 8px !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    max-width: 315px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-copy a {
    margin-top: 14px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-visual {
    min-height: 158px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-voucher {
    top: 14px !important;
    left: 8px !important;
    width: 118px !important;
    height: 118px !important;
    border-radius: 18px !important;
    transform: rotate(-7deg) !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-voucher strong {
    font-size: 38px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-voucher span {
    font-size: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-art {
    right: -8px !important;
    top: 10px !important;
    bottom: auto !important;
    width: min(100%, 315px) !important;
    max-width: 315px !important;
    object-position: right top !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-brand-panel,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-why-shop,
  body.ed-homepage-active .ed-home-lower-column--right [data-ed-recently-viewed] {
    border-radius: 14px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-brand-panel {
    padding: 12px 14px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-brand-panel .ed-home-brand-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-brand-chip {
    min-height: 42px !important;
    padding: 6px !important;
    border-radius: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-brand-chip span {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-products ul.products {
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products {
    grid-auto-columns: calc((100% - 40px) / 5) !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product {
    min-height: 180px !important;
    padding: 8px 8px 42px !important;
    border-radius: 12px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .ct-media-container,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .ct-media-container {
    height: 88px !important;
    min-height: 88px !important;
    margin-bottom: 5px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product img,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product img,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .ct-media-container img {
    height: 88px !important;
    padding: 4px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .woocommerce-loop-product__link h2,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__link h2 {
    min-height: 31px !important;
    max-height: 31px !important;
    margin-bottom: 4px !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .price,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .price {
    font-size: 10.8px !important;
    line-height: 1.1 !important;
    min-height: 14px !important;
    margin: 0 0 2px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .ed-home-stock {
    font-size: 8.8px !important;
    min-height: 12px !important;
    margin: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .edpg-view-product {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .edpg-add-button {
    min-height: 28px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits {
    padding: 14px 14px 16px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits .ed-home-section-head {
    margin-bottom: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits .ed-home-section-head h2 {
    font-size: 16px !important;
    line-height: 1.12 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits .ed-home-section-head p {
    font-size: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefit-card {
    min-height: 88px !important;
    padding: 12px 12px 10px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefit-card strong {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefit-card span {
    display: block !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    color: #62748a !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-whyrecent-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  body.ed-homepage-active .ed-home-why-slot,
  body.ed-homepage-active .ed-home-recent-slot {
    min-width: 0 !important;
  }

  body.ed-homepage-active .ed-home-why-slot .ed-home-why-shop,
  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] {
    height: 100% !important;
    padding: 14px !important;
  }

  body.ed-homepage-active .ed-home-why-slot .ed-home-section-head h2,
  body.ed-homepage-active .ed-home-recent-slot .ed-home-section-head h2 {
    font-size: 16px !important;
    line-height: 1.12 !important;
  }

  body.ed-homepage-active .ed-home-why-slot .ed-home-section-head p,
  body.ed-homepage-active .ed-home-recent-slot .ed-home-section-head p {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  body.ed-homepage-active .ed-home-why-slot .ed-home-why-grid {
    gap: 8px !important;
  }

  body.ed-homepage-active .ed-home-why-slot .ed-home-why-card {
    min-height: 84px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  body.ed-homepage-active .ed-home-why-slot .ed-home-why-card strong {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body.ed-homepage-active .ed-home-why-slot .ed-home-why-card span {
    font-size: 9.5px !important;
    line-height: 1.45 !important;
    color: #62748a !important;
  }

  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .ed-home-section-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .ed-home-section-head > div:first-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .ed-home-products ul.products {
    grid-auto-columns: calc((100% - 30px) / 4) !important;
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .ed-home-products ul.products li.product {
    min-height: 182px !important;
    padding: 8px !important;
    border-radius: 12px !important;
  }

  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .ct-media-container {
    height: 78px !important;
    min-height: 78px !important;
    margin-bottom: 6px !important;
  }

  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] li.product img,
  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] li.product .ct-media-container img {
    height: 78px !important;
    padding: 4px !important;
  }

  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .woocommerce-loop-product__link h2 {
    min-height: 28px !important;
    max-height: 28px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .price {
    font-size: 11px !important;
    min-height: 14px !important;
  }

  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .ed-home-stock {
    font-size: 8.5px !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact {
    margin-top: 12px !important;
    padding: 14px 18px !important;
    min-height: 92px !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact h2 {
    font-size: 15px !important;
    line-height: 1.15 !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact p {
    font-size: 10px !important;
    line-height: 1.45 !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-lower-grid--columns {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.ed-homepage-active .ed-home-lower-column {
    gap: 16px !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products {
    grid-auto-columns: calc((100% - 36px) / 4) !important;
    gap: 12px !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product {
    min-height: 246px !important;
  }

  body.ed-homepage-active .ed-home-mini-benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.ed-homepage-active .ed-home-whyrecent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.ed-homepage-active .ed-home-rewards {
    min-height: 170px !important;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    right: 0 !important;
    top: 8px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-lower-column {
    gap: 14px !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products,
  body.ed-homepage-active .ed-home-recent-slot [data-ed-recently-viewed] .ed-home-products ul.products {
    grid-auto-columns: calc((100% - 24px) / 3) !important;
    gap: 8px !important;
  }

  body.ed-homepage-active .ed-home-mini-benefits-grid,
  body.ed-homepage-active .ed-home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.ed-homepage-active .ed-home-whyrecent-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.ed-homepage-active .ed-home-rewards {
    grid-template-columns: 1fr !important;
  }

  body.ed-homepage-active .ed-home-rewards-copy {
    padding: 16px 16px 10px !important;
  }

  body.ed-homepage-active .ed-home-rewards-copy h2 {
    font-size: 22px !important;
  }

  body.ed-homepage-active .ed-home-rewards-visual {
    min-height: 148px !important;
    margin: 0 8px 10px !important;
  }

  body.ed-homepage-active .ed-home-rewards-voucher {
    top: 12px !important;
    left: 8px !important;
    width: 92px !important;
    height: 92px !important;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    top: 16px !important;
    right: -2px !important;
    width: min(100%, 250px) !important;
    max-width: 250px !important;
  }
}


/* v1.6.1 spacing + rewards + recently viewed cleanup */
@media (min-width: 981px) {
  /* tighter product cards under lower homepage sections */
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product {
    min-height: 170px !important;
    padding: 8px 8px 38px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .woocommerce-loop-product__link h2,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__link h2 {
    min-height: 28px !important;
    max-height: 28px !important;
    margin-bottom: 3px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .price,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .price {
    min-height: 13px !important;
    margin: 0 0 1px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .ed-home-stock {
    min-height: 11px !important;
    margin: 0 0 2px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .edpg-view-product {
    left: 8px !important;
    right: 8px !important;
    bottom: 6px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-product-section .ed-home-products ul.products li.product .edpg-add-button {
    min-height: 26px !important;
  }

  /* rewards banner products more visible and slightly lower */
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards {
    min-height: 150px !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(245px, .85fr) !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-copy {
    padding: 18px 18px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-visual {
    min-height: 150px !important;
    overflow: visible !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-voucher {
    z-index: 1 !important;
    top: 10px !important;
    left: 10px !important;
    width: 110px !important;
    height: 110px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-voucher strong {
    font-size: 36px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-voucher span {
    font-size: 9px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-art {
    z-index: 3 !important;
    right: -4px !important;
    top: 20px !important;
    width: min(100%, 350px) !important;
    max-width: 350px !important;
    object-position: right bottom !important;
    filter: drop-shadow(0 14px 18px rgba(0,0,0,.18)) !important;
  }

  /* remove why-shop block and give recently-viewed full width */
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only {
    width: 100% !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] {
    display: block !important;
    height: auto !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products {
    grid-auto-columns: calc((100% - 30px) / 4) !important;
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products li.product {
    min-height: 176px !important;
    padding: 8px 8px 8px !important;
    border-radius: 12px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ct-media-container {
    height: 78px !important;
    min-height: 78px !important;
    margin-bottom: 5px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] li.product img,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] li.product .ct-media-container img {
    height: 78px !important;
    padding: 4px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .woocommerce-loop-product__link h2 {
    min-height: 28px !important;
    max-height: 28px !important;
    margin-bottom: 2px !important;
    font-size: 9px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .price {
    min-height: 12px !important;
    margin: 0 0 1px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-stock {
    min-height: 11px !important;
    margin: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-final-cta-compact {
    margin-top: 10px !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards {
    min-height: 165px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-art {
    top: 18px !important;
    right: -2px !important;
    width: min(100%, 320px) !important;
    max-width: 320px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] {
    display: block !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] {
    display: block !important;
  }

  body.ed-homepage-active .ed-home-rewards-voucher {
    z-index: 1 !important;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    z-index: 3 !important;
    top: 22px !important;
    right: -4px !important;
    width: min(100%, 245px) !important;
    max-width: 245px !important;
  }
}


/* v1.6.2 tighter cards + everyday tabs */
body.ed-homepage-active .ed-home-inline-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 0 0 10px !important;
}

body.ed-homepage-active .ed-home-inline-tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 14px !important;
  border: 1px solid #d7e1ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #6f8199 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.ed-homepage-active .ed-home-inline-tab.is-active {
  border-color: #ff7a1a !important;
  background: #ff7a1a !important;
  color: #fff !important;
  box-shadow: 0 6px 12px rgba(255,122,26,.16) !important;
}

@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-lower-column--left .is-everyday .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products li.product {
    min-height: 164px !important;
    padding: 8px 8px 36px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .is-everyday .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column--left .is-everyday .ed-home-products ul.products li.product .woocommerce-loop-product__link h2,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__link h2 {
    min-height: 26px !important;
    max-height: 26px !important;
    margin-bottom: 2px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .is-everyday .ed-home-products ul.products li.product .price,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products li.product .price {
    min-height: 12px !important;
    margin: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .is-everyday .ed-home-products ul.products li.product .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products li.product .ed-home-stock {
    min-height: 10px !important;
    margin: 0 !important;
    line-height: 1.1 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .is-everyday .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--left .is-everyday .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products li.product .edpg-view-product {
    bottom: 6px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .is-everyday .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products li.product .edpg-add-button {
    min-height: 24px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-inline-tabs {
    gap: 6px !important;
    margin: 0 0 8px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  body.ed-homepage-active .ed-home-inline-tabs::-webkit-scrollbar {
    display: none !important;
  }

  body.ed-homepage-active .ed-home-inline-tab {
    white-space: nowrap !important;
    min-height: 28px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
  }
}


/* v1.6.3 banner alignment + tighter product spacing */
@media (min-width: 981px) {
  /* tighter spacing between price/stock and add button */
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product {
    min-height: 154px !important;
    padding: 8px 8px 34px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product .ct-media-container,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product .ct-media-container,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product .ct-media-container {
    height: 72px !important;
    min-height: 72px !important;
    margin-bottom: 4px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product img,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product img,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product .ct-media-container img,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product img,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product .ct-media-container img {
    height: 72px !important;
    padding: 3px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product .woocommerce-loop-product__link h2,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product .woocommerce-loop-product__link h2,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__link h2 {
    min-height: 24px !important;
    max-height: 24px !important;
    margin-bottom: 2px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product .price,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product .price,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product .price {
    margin: 0 !important;
    min-height: 12px !important;
    line-height: 1.05 !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product .ed-home-stock {
    margin: 1px 0 0 !important;
    min-height: 10px !important;
    line-height: 1.05 !important;
    font-size: 8.5px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product .edpg-view-product {
    left: 8px !important;
    right: 8px !important;
    bottom: 5px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-drinks .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-grid .is-everyday .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-grid .is-brands .ed-home-product-section .ed-home-products ul.products li.product .edpg-add-button {
    min-height: 24px !important;
    font-size: 10px !important;
  }

  /* full and aligned compact CTA */
  body.ed-homepage-active .ed-home-final-cta-compact {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: 92px !important;
    padding: 18px 22px !important;
    border-radius: 14px !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact > div {
    min-width: 0 !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact h2 {
    margin-top: 6px !important;
    max-width: none !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact p {
    margin-top: 8px !important;
    max-width: 520px !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact > a {
    align-self: center !important;
    justify-self: end !important;
    min-width: 150px !important;
    min-height: 40px !important;
    padding: 0 20px !important;
    white-space: nowrap !important;
  }

  /* rewards banner: voucher readable, products visible */
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards {
    min-height: 150px !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr) !important;
    overflow: hidden !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-copy {
    padding: 18px 18px 18px 20px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-copy h2 {
    max-width: 360px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-visual {
    min-height: 150px !important;
    overflow: hidden !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-voucher {
    z-index: 3 !important;
    top: 12px !important;
    left: 18px !important;
    width: 116px !important;
    height: 116px !important;
    transform: rotate(-7deg) !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-voucher strong {
    font-size: 38px !important;
    line-height: .95 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-voucher span {
    font-size: 10px !important;
    line-height: 1.05 !important;
    text-align: center !important;
  }

  body.ed-homepage-active .ed-home-lower-column--left .ed-home-rewards-art {
    z-index: 2 !important;
    right: 8px !important;
    top: auto !important;
    bottom: 0 !important;
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    object-position: right bottom !important;
    transform: none !important;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)) !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-final-cta-compact {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact > a {
    justify-self: end !important;
  }

  body.ed-homepage-active .ed-home-rewards-voucher {
    left: 16px !important;
    top: 12px !important;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    right: 4px !important;
    bottom: 0 !important;
    top: auto !important;
    width: min(100%, 280px) !important;
    max-width: 280px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-final-cta-compact {
    gap: 12px !important;
    padding: 18px 16px !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact > a {
    width: auto !important;
    align-self: flex-start !important;
  }

  body.ed-homepage-active .ed-home-rewards-voucher {
    left: 10px !important;
    top: 10px !important;
    width: 92px !important;
    height: 92px !important;
  }

  body.ed-homepage-active .ed-home-rewards-art {
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: min(100%, 235px) !important;
    max-width: 235px !important;
  }
}


/* v1.6.4 QA fixes: tighter cards, recent Add buttons, full-width CTA */
@media (min-width: 981px) {
  /* Lower merchandising cards: keep controls in normal flow so there is no fake empty gap. */
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-view-product {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 5px 0 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .edpg-quantity-stepper,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-quantity-stepper {
    min-height: 27px !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .woocommerce-loop-product__link h2,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .woocommerce-loop-product__link h2 {
    margin-bottom: 3px !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .price,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .price {
    min-height: 0 !important;
    margin: 0 0 2px !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .ed-home-stock,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .ed-home-stock {
    min-height: 0 !important;
    margin: 0 !important;
  }

  /* Recently viewed: show the same Add / quantity control as other homepage cards. */
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .edpg-purchase-control,
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .edpg-view-product {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 5px 0 0 !important;
  }

  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .edpg-add-button,
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .edpg-view-product,
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .edpg-quantity-stepper {
    min-height: 26px !important;
    font-size: 9.5px !important;
  }

  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px !important;
  }
}

/* Full-width final CTA now sits outside the two-column lower grid. */
body.ed-homepage-active .ed-home-final-cta-wide {
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 18px 22px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 20px !important;
  border-radius: 14px !important;
}

body.ed-homepage-active .ed-home-final-cta-wide > div {
  min-width: 0 !important;
}

body.ed-homepage-active .ed-home-final-cta-wide h2 {
  margin-top: 5px !important;
  font-size: 22px !important;
}

body.ed-homepage-active .ed-home-final-cta-wide p {
  margin-top: 6px !important;
  font-size: 12px !important;
}

body.ed-homepage-active .ed-home-final-cta-wide > a {
  min-width: 160px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  white-space: nowrap !important;
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 9px !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .edpg-purchase-control,
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .edpg-view-product {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 5px 0 0 !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 7px !important;
  }

  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column .ed-home-product-section .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--left .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .edpg-purchase-control,
  body.ed-homepage-active .ed-home-recent-only [data-ed-recently-viewed] .edpg-view-product {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 4px 0 0 !important;
  }

  body.ed-homepage-active .ed-home-final-cta-wide {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  body.ed-homepage-active .ed-home-final-cta-wide > a {
    justify-self: start !important;
    min-width: 0 !important;
  }
}


/* v1.6.5 alignment cleanup: tighter right column + equal section rhythm */
@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-lower-grid--columns {
    gap: 14px !important;
    align-items: start !important;
  }

  body.ed-homepage-active .ed-home-lower-column {
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands {
    gap: 8px !important;
  }

  /* Snacks & Sweets: remove extra bottom whitespace under product cards. */
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-section-head {
    margin-bottom: 8px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products {
    align-items: start !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section .ed-home-products ul.products li.product {
    align-self: start !important;
    margin-bottom: 0 !important;
  }

  /* Keep the trust block compact so the lower-right column matches the left side. */
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits {
    margin: 0 !important;
    padding: 11px 12px 12px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits .ed-home-section-head {
    margin-bottom: 7px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits-grid {
    gap: 7px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefit-card {
    min-height: 68px !important;
    padding: 9px 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefit-card strong {
    margin-bottom: 4px !important;
    font-size: 10.5px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefit-card span {
    font-size: 8.8px !important;
    line-height: 1.3 !important;
  }

  /* Recently viewed sits closer to the trust block. */
  body.ed-homepage-active .ed-home-lower-column--right .is-whyrecent,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only {
    margin: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] {
    margin: 0 !important;
    padding: 11px 12px 12px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-section-head {
    margin-bottom: 7px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products {
    padding-bottom: 0 !important;
    gap: 8px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products li.product {
    padding: 7px !important;
    margin-bottom: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ct-media-container {
    height: 68px !important;
    min-height: 68px !important;
    margin-bottom: 4px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] li.product img,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] li.product .ct-media-container img {
    height: 68px !important;
    padding: 3px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .edpg-view-product {
    margin-top: 3px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .edpg-quantity-stepper {
    min-height: 24px !important;
  }

  /* Make the common ending banner feel connected to both columns. */
  body.ed-homepage-active .ed-home-final-cta-wide {
    margin-top: 10px !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-lower-column {
    gap: 12px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands {
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] {
    margin: 0 !important;
  }

  body.ed-homepage-active .ed-home-final-cta-wide {
    margin-top: 12px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-lower-column {
    gap: 12px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands {
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] {
    margin: 0 !important;
  }

  body.ed-homepage-active .ed-home-final-cta-wide {
    margin-top: 12px !important;
  }
}


/* v1.6.6 final lower alignment / snacks whitespace fix */
@media (min-width: 981px) {
  /* Keep the two lower columns visually tight and balanced. */
  body.ed-homepage-active .ed-home-lower-grid--columns {
    gap: 12px !important;
    margin-bottom: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column {
    gap: 8px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands {
    gap: 7px !important;
  }

  /* Snacks & Sweets: cards should end right after the Add button. */
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-product-section,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products {
    align-items: start !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product {
    align-self: start !important;
    height: fit-content !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 7px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product .woocommerce-loop-product__link h2 {
    margin-bottom: 2px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product .price {
    min-height: 0 !important;
    margin: 0 0 1px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product .ed-home-stock {
    min-height: 0 !important;
    margin: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product .edpg-view-product {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 3px 0 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product .edpg-quantity-stepper {
    min-height: 25px !important;
  }

  /* Trust + Recently viewed: keep both close together like the reference. */
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-mini-benefits {
    margin: 0 !important;
    padding: 10px 12px 11px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] {
    margin: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] {
    padding: 10px 12px 11px !important;
  }

  /* Recently viewed cards also shrink to their actual content height. */
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products {
    align-items: start !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products li.product {
    align-self: start !important;
    height: fit-content !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 7px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .edpg-view-product {
    position: static !important;
    width: 100% !important;
    margin: 3px 0 0 !important;
  }

  /* Full-width ending banner sits immediately after the two columns. */
  body.ed-homepage-active .ed-home-final-cta-wide {
    width: 100% !important;
    margin: 6px 0 0 !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-lower-column {
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products li.product {
    height: fit-content !important;
    min-height: 0 !important;
  }

  body.ed-homepage-active .ed-home-final-cta-wide {
    margin-top: 8px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-lower-column {
    gap: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-column--right .is-brands .ed-home-products ul.products li.product,
  body.ed-homepage-active .ed-home-lower-column--right .ed-home-recent-only [data-ed-recently-viewed] .ed-home-products ul.products li.product {
    height: fit-content !important;
    min-height: 0 !important;
  }

  body.ed-homepage-active .ed-home-final-cta-wide {
    margin-top: 8px !important;
  }
}


/* v1.6.7 snacks card bottom spacing fix */
@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product {
    min-height: 146px !important;
    padding: 8px 8px 28px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .ct-media-container {
    margin-bottom: 3px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .woocommerce-loop-product__title,
  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .woocommerce-loop-product__link h2 {
    min-height: 22px !important;
    max-height: 22px !important;
    margin-bottom: 1px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .price {
    margin: 0 !important;
    min-height: 11px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .ed-home-stock {
    margin: 0 !important;
    min-height: 10px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .edpg-view-product {
    left: 8px !important;
    right: 8px !important;
    bottom: 3px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .edpg-add-button,
  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .edpg-view-product,
  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .edpg-quantity-stepper {
    min-height: 22px !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product {
    min-height: 142px !important;
    padding: 8px 8px 27px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .edpg-view-product {
    bottom: 3px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product {
    min-height: 136px !important;
    padding: 8px 8px 26px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .edpg-purchase-control,
  body.ed-homepage-active .ed-home-lower-grid .is-brands #snacks .ed-home-products ul.products li.product .edpg-view-product {
    bottom: 3px !important;
  }
}


/* v1.6.8 lower ending spacing balance */
@media (min-width: 981px) {
  /* add a little more breathing room above the final full-width CTA so the left Everyday Essentials column visually matches the right side */
  body.ed-homepage-active .ed-home-lower-cell.is-everyday {
    margin-bottom: 6px !important;
  }

  body.ed-homepage-active .ed-home-final-cta-compact {
    margin-top: 14px !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-final-cta-compact {
    margin-top: 12px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-final-cta-compact {
    margin-top: 10px !important;
  }
}


/* v1.6.9 top hero right artwork */
body.ed-homepage-active .ed-home-hero-visual--art {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 390px !important;
  padding: 12px 10px 6px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #fff2e2 0%, #fff8f1 100%) !important;
}

body.ed-homepage-active .ed-home-hero-art {
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;
  height: auto !important;
  max-height: 365px !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: drop-shadow(0 16px 26px rgba(15,37,68,.10));
}

body.ed-homepage-active .ed-home-hero-visual--art .ed-home-badge-box,
body.ed-homepage-active .ed-home-hero-visual--art .ed-home-hero-product,
body.ed-homepage-active .ed-home-hero-visual--art .ed-home-hero-side-note {
  display: none !important;
}

@media (max-width: 980px) {
  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 320px !important;
    padding: 8px !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    max-width: 820px !important;
    max-height: 305px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 205px !important;
    padding: 6px 4px 4px !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    width: 108% !important;
    max-width: none !important;
    max-height: 198px !important;
    object-position: center bottom !important;
  }
}


/* v1.6.12 hero artwork bigger */
body.ed-homepage-active .ed-home-hero-visual--art {
  min-height: 405px !important;
  padding: 8px 6px 2px !important;
}

body.ed-homepage-active .ed-home-hero-art {
  width: 112% !important;
  max-width: 860px !important;
  max-height: 392px !important;
  object-position: center center !important;
}

@media (max-width: 980px) {
  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 340px !important;
    padding: 6px 4px 2px !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    width: 114% !important;
    max-width: none !important;
    max-height: 325px !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 220px !important;
    padding: 4px 2px 2px !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    width: 116% !important;
    max-height: 212px !important;
    object-position: center bottom !important;
  }
}


/* v1.6.13 hero artwork smarter position */
@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr) !important;
  }

  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 405px !important;
    padding: 8px 8px 2px 0 !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    width: 118% !important;
    max-width: 920px !important;
    max-height: 392px !important;
    object-position: left center !important;
    transform: translateX(-28px) !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 330px !important;
    padding: 6px 2px 2px !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    width: 111% !important;
    max-width: none !important;
    max-height: 318px !important;
    object-position: center center !important;
    transform: translateX(-10px) !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 214px !important;
    padding: 4px 2px 2px !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    width: 110% !important;
    max-height: 204px !important;
    object-position: center bottom !important;
    transform: none !important;
  }
}


/* v1.6.14 hero no-crop + unified background */
body.ed-homepage-active .ed-home-hero {
  background: #fdf2e7 !important;
}

body.ed-homepage-active .ed-home-hero-copy,
body.ed-homepage-active .ed-home-hero-visual,
body.ed-homepage-active .ed-home-hero-visual--art {
  background: #fdf2e7 !important;
}

@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(500px, .9fr) !important;
  }

  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 398px !important;
    padding: 10px 12px 8px 0 !important;
    justify-content: flex-start !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    width: 100% !important;
    max-width: 740px !important;
    max-height: 360px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: translateX(-8px) !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 300px !important;
    padding: 10px 12px 6px !important;
    justify-content: center !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    width: 100% !important;
    max-width: 620px !important;
    max-height: 280px !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-hero-visual--art {
    min-height: 198px !important;
    padding: 8px 10px 6px !important;
    justify-content: center !important;
  }

  body.ed-homepage-active .ed-home-hero-art {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 185px !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
}


/* v1.6.21 mobile homepage clarity: 2x2 service promises + visible product-slider arrows */
@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 10px !important;
    border-radius: 14px !important;
    overflow: hidden;
  }

  body.ed-homepage-active .ed-home-service-strip > div {
    justify-content: flex-start !important;
    gap: 7px !important;
    min-height: 68px !important;
    padding: 8px !important;
    border-left: 0 !important;
    border-top: 0 !important;
  }

  body.ed-homepage-active .ed-home-service-strip > div:nth-child(even) {
    border-left: 1px solid var(--edh-line) !important;
  }

  body.ed-homepage-active .ed-home-service-strip > div:nth-child(n+3) {
    border-top: 1px solid var(--edh-line) !important;
  }

  body.ed-homepage-active .ed-home-service-strip > div > span {
    min-width: 46px !important;
    min-height: 38px !important;
    padding: 0 6px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body.ed-homepage-active .ed-home-service-strip p {
    min-width: 0;
    gap: 1px !important;
  }

  body.ed-homepage-active .ed-home-service-strip strong {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  body.ed-homepage-active .ed-home-service-strip small {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  /* Keep the horizontal nature of product rails obvious on phones. */
  body.ed-homepage-active .ed-home-product-section .ed-home-slider-buttons {
    display: flex !important;
    gap: 4px !important;
    flex: 0 0 auto;
  }

  body.ed-homepage-active .ed-home-product-section .ed-home-slider-buttons button {
    display: grid !important;
    place-items: center !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    padding: 0 !important;
    border: 1px solid #d9e3ee !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--edh-navy) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 7px rgba(15,37,68,.08) !important;
  }

  body.ed-homepage-active .ed-home-product-section .ed-home-slider-buttons button:not(:disabled) {
    border-color: #ff6b17 !important;
    color: #ff6b17 !important;
  }

  body.ed-homepage-active .ed-home-product-section .ed-home-slider-buttons button:disabled {
    opacity: .28 !important;
  }

  body.ed-homepage-active .ed-home-product-section .ed-home-section-actions {
    gap: 7px !important;
  }

  body.ed-homepage-active .ed-home-product-section .ed-home-section-actions > a {
    font-size: 10px !important;
    white-space: nowrap;
  }
}


/* v1.6.22 brand logo slider */
body.ed-homepage-active .ed-home-brand-panel .ed-home-section-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.ed-homepage-active .ed-home-brand-panel .ed-home-slider-buttons {
  display: inline-flex;
}

body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 1px 2px;
}
body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-rail::-webkit-scrollbar { display: none; }

body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-chip {
  flex: 0 0 152px;
  min-width: 152px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  text-align: center;
}

body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-chip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-logo {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-logo img {
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-name {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--edh-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-chip:not(:has(.ed-home-brand-logo)) .ed-home-brand-name {
  font-size: 16px;
}

@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-lower-grid .ed-home-brand-panel {
    min-height: auto !important;
  }

  body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-chip {
    flex-basis: 142px;
    min-width: 142px;
    min-height: 94px;
  }
}

@media (max-width: 980px) {
  body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-chip {
    flex-basis: 132px;
    min-width: 132px;
    min-height: 88px;
  }

  body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-logo img {
    max-height: 28px;
  }
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-brand-panel .ed-home-section-head {
    align-items: flex-start;
  }

  body.ed-homepage-active .ed-home-brand-panel .ed-home-section-head-actions {
    gap: 8px;
    align-self: flex-end;
  }

  body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-chip {
    flex-basis: 120px;
    min-width: 120px;
    min-height: 84px;
    padding: 10px 8px;
  }

  body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-name {
    font-size: 12px;
  }

  body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-logo img {
    max-height: 24px;
  }
}


/* v1.6.23 brand rail hardening + fallback styling */
body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-grid,
body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-rail {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-grid::-webkit-scrollbar,
body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-rail::-webkit-scrollbar { display: none; }

body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-chip {
  flex: 0 0 132px !important;
  min-width: 132px !important;
  width: 132px !important;
  scroll-snap-align: start;
}

body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-logo {
  min-height: 36px !important;
}
body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-logo img {
  max-height: 34px !important;
  max-width: 108px !important;
}

@media (max-width: 760px) {
  body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-chip {
    flex-basis: 116px !important;
    min-width: 116px !important;
    width: 116px !important;
  }
  body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-rail,
  body.ed-homepage-active .ed-home-brand-panel .ed-home-brand-grid {
    padding-right: 30px !important;
  }
}


/* v1.6.24 desktop breathing space polish */
@media (min-width: 981px) {
  body.ed-homepage-active .ed-home-lower-grid {
    row-gap: 26px !important;
  }

  body.ed-homepage-active .ed-home-lower-cell.is-everyday {
    margin-top: 4px !important;
  }

  body.ed-homepage-active .ed-home-lower-grid .ed-home-rewards {
    margin-bottom: 2px !important;
  }
}


/* v1.6.55 — keep transparent product artwork on a clean white surface site-wide. */
body.ed-custom-shell-active .woocommerce ul.products li.product .ct-media-container,
body.ed-custom-shell-active ul.products li.product .ct-media-container,
body.ed-custom-shell-active .ed-home-products ul.products li.product .ct-media-container,
body.ed-custom-shell-active .edsp-gallery-main,
body.ed-custom-shell-active .edsp-card-image,
body.ed-custom-shell-active .product-thumbnail,
body.ed-custom-shell-active .edsn-product-row img {
  background: #fff !important;
}

body.ed-custom-shell-active .woocommerce ul.products li.product .ct-media-container img,
body.ed-custom-shell-active ul.products li.product .ct-media-container img,
body.ed-custom-shell-active .ed-home-products ul.products li.product img,
body.ed-custom-shell-active .ed-home-products ul.products li.product .ct-media-container img,
body.ed-custom-shell-active .edsp-gallery-main img,
body.ed-custom-shell-active .edsp-card-image img,
body.ed-custom-shell-active .product-thumbnail img {
  background-color: #fff !important;
}
