/* Amber Market Offers page - adapted verbatim from the
   "amber-market-final-offers-content" Codex package (hero, Today's Best
   Offers, 4 benefit cards, Weekly Fresh Market Flyer, Flash Deals,
   Other Amber Market Stores). Every selector stays scoped under
   .amber-offers, matching the package's own CSS-isolation rule.
   The only real additions beyond the supplied file: rules for the real
   <img> elements now inside .amber-product-art / .amber-store-photo /
   .amber-flyer-page (the package's own demo sprite-sheet backgrounds
   are unused - every card here renders a real WordPress image or a
   plain neutral placeholder instead). The "Choose your store" picker
   below this content is a separate, pre-existing feature with its own
   stylesheet (amber-public.css) and is untouched by this file. */
.amber-offers,
.amber-offers * { box-sizing: border-box; }

.amber-offers {
  --amber-green: #006b34;
  --amber-deep: #003f23;
  --amber-lime: #78c62d;
  --amber-ink: #101713;
  --amber-muted: #59645e;
  --amber-line: #e1e8e3;
  --amber-surface: #f7f9f7;
  color: var(--amber-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  width: 100%;
}

.amber-offers a { color: inherit; text-decoration: none; }
.amber-offers button { font: inherit; }
.amber-offers h1, .amber-offers h2, .amber-offers h3, .amber-offers p { margin-top: 0; }
.amber-offers__container { margin: 0 auto; max-width: 1760px; width: calc(100% - 48px); }
.amber-offers__section { padding: 30px 0 0; }

.amber-offers__hero {
  background: radial-gradient(circle at 65% 12%, #075d35 0, var(--amber-deep) 56%, #002e1b 100%);
  color: #fff;
  height: 348px;
  min-height: 348px;
  overflow: hidden;
}

/* Full-bleed: this hero's own Elementor row (elementor-element-amberohero1)
   is what actually caps the width - the shared .elementor-section-boxed >
   .elementor-container rule (max-width:1800px) and this widget's own
   10px Elementor padding. Scoped to this one section's unique ID only,
   so no other section/page is affected. */
.elementor-element-amberohero1 > .elementor-container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.elementor-element-amberohero1 .elementor-widget-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.amber-offers__hero-inner {
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(590px, 1.35fr);
  height: 348px;
  margin: 0 auto;
  max-width: none;
  min-height: 0;
  padding-top: 39px;
  padding-left: 48px;
  padding-right: 48px;
  width: 100%;
}

.amber-offers__hero-copy { position: relative; z-index: 2; }
.amber-offers__hero h1 { font-size: 39px; letter-spacing: -1.5px; line-height: 1.07; margin-bottom: 16px; }
.amber-offers__hero h1 span { color: var(--amber-lime); }
.amber-offers__hero-copy > p { font-size: 15px; margin-bottom: 0; }
.amber-offers__hero-copy > p strong { display: inline-block; margin-top: 4px; }

.amber-offers__hero-benefits { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin-top: 30px; width: 570px; }
.amber-offers__hero-benefits { -ms-overflow-style: none; scrollbar-width: none; }
.amber-offers__hero-benefits::-webkit-scrollbar { display: none; }
.amber-offers__hero-benefits article { align-items: flex-start; display: flex; gap: 10px; }
.amber-outline-icon { align-items: center; border: 2px solid #86dc26; border-radius: 50%; color: #86dc26; display: inline-flex; flex: 0 0 auto; font-size: 18px; height: 38px; justify-content: center; width: 38px; }
.amber-offers__hero-benefits strong { display: block; font-size: 12px; }
.amber-offers__hero-benefits small { color: #fff; display: block; font-size: 10px; line-height: 1.5; margin-top: 4px; }

.amber-offers__hero-visual { align-self: stretch; height: 348px; margin: -39px 0 0 0; min-height: 0; overflow: hidden; position: relative; }
.amber-offers__hero-visual::before { background: radial-gradient(circle, rgba(42,133,80,.26), transparent 67%); content: ''; inset: 0; position: absolute; }
/* Complete artwork, never cropped: object-fit: contain scales the whole
   image to fit inside the box (preserving its real aspect ratio) instead
   of cover's crop-to-fill. */
.amber-offers__hero-visual img { display: block; height: 100%; object-fit: contain; object-position: center; width: 100%; }
.amber-offers__discount-badge { align-items: center; background: #ffd62d; clip-path: polygon(50% 0,61% 10%,75% 5%,82% 19%,96% 22%,94% 37%,100% 50%,91% 61%,94% 76%,79% 81%,73% 95%,58% 91%,47% 100%,37% 90%,21% 95%,15% 80%,2% 75%,8% 60%,0 48%,9% 36%,6% 20%,22% 17%,29% 4%,41% 9%); color: #162012; display: flex; flex-direction: column; font-size: 11px; font-weight: 800; height: 90px; justify-content: center; line-height: 1; position: absolute; right: 135px; text-align: center; top: 44px; transform: rotate(-4deg); width: 90px; }
.amber-offers__discount-badge strong { font-size: 31px; letter-spacing: -2px; margin: 2px 0; }

.amber-section-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.amber-section-heading h2, .amber-flyer-copy h2 { font-size: 23px; letter-spacing: -.45px; line-height: 1.2; margin-bottom: 0; }
.amber-section-heading > a { color: var(--amber-green); font-size: 12px; font-weight: 700; }
.amber-section-heading > a span { font-size: 16px; margin-left: 3px; }
.amber-section-heading--flash > div { align-items: baseline; display: flex; gap: 18px; }
.amber-section-heading--flash h2 span { color: #ff6a00; }
.amber-section-heading--flash p { color: var(--amber-muted); font-size: 11px; margin-bottom: 0; }

.amber-carousel-shell { position: relative; }
.amber-scroll-track { -ms-overflow-style: none; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x mandatory; }
.amber-scroll-track::-webkit-scrollbar { display: none; }
.amber-carousel-arrow { align-items: center; background: #fff; border: 1px solid var(--amber-line); border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.07); color: #111; cursor: pointer; display: flex; font-size: 25px; height: 42px; justify-content: center; padding: 0 0 3px; position: absolute; top: 50%; transform: translateY(-50%); width: 42px; z-index: 4; }
.amber-carousel-arrow:hover, .amber-carousel-arrow:focus-visible { border-color: var(--amber-green); color: var(--amber-green); outline: none; }
.amber-carousel-arrow--prev { left: -49px; }
.amber-carousel-arrow--next { right: -49px; }

.amber-product-track { display: grid; gap: 14px; grid-auto-columns: calc((100% - 70px) / 6); grid-auto-flow: column; overflow-x: auto; padding: 1px 2px 7px; }
.amber-product-card { border: 1px solid var(--amber-line); border-radius: 11px; min-height: 278px; padding: 12px 13px 11px; position: relative; scroll-snap-align: start; }
.amber-discount-pill { background: #087035; border-radius: 5px; color: #fff; display: inline-block; font-size: 9px; font-weight: 800; left: 13px; line-height: 1; padding: 7px 8px 6px; position: absolute; top: 12px; z-index: 2; }
.amber-product-art { background: var(--amber-surface); border-radius: 6px; overflow: hidden; }
.amber-product-art img { display: block; height: 100%; object-fit: contain; width: 100%; }
.amber-product-card .amber-product-art { height: 131px; margin: 4px auto 7px; width: 100%; }
.amber-product-card h3 { font-size: 12px; line-height: 1.45; margin-bottom: 8px; min-height: 35px; }
.amber-price { align-items: center; display: flex; gap: 8px; margin-bottom: 9px; }
.amber-price strong { color: #075f2e; font-size: 12px; }
.amber-price del { color: #727a76; font-size: 9px; }
.amber-validity { border-top: 1px solid #edf1ee; color: #006934; font-size: 9px; margin-bottom: 0; padding-top: 8px; }

.amber-benefits { padding-top: 35px; }
.amber-benefit-grid { display: grid; gap: 17px; grid-template-columns: repeat(4, 1fr); }
.amber-benefit-card { align-items: center; background: linear-gradient(145deg, #f8faf8, #f1f4f2); border: 1px solid #f0f3f1; border-radius: 8px; display: flex; gap: 18px; min-height: 102px; padding: 16px 24px; }
.amber-benefit-card > span { align-items: center; color: #067036; display: flex; flex: 0 0 auto; font-size: 39px; height: 50px; justify-content: center; line-height: 1; width: 50px; }
.amber-benefit-card h2 { font-size: 13px; margin-bottom: 5px; }
.amber-benefit-card p { font-size: 10px; line-height: 1.55; margin-bottom: 0; }

.amber-weekly-flyer { padding-top: 44px; }
.amber-flyer-layout { align-items: start; display: grid; gap: 28px; grid-template-columns: 255px minmax(0, 1fr); }
.amber-flyer-copy { padding-top: 2px; }
.amber-flyer-copy h2 { margin-bottom: 16px; }
.amber-flyer-copy > p:not(.amber-flyer-date) { font-size: 11px; line-height: 1.65; margin-bottom: 20px; }
.amber-button { background: #006b34; border-radius: 6px; color: #fff !important; display: inline-block; font-size: 12px; font-weight: 700; padding: 11px 24px; }
.amber-button:hover, .amber-button:focus-visible { background: #004f27; outline: 2px solid #89cc9d; outline-offset: 2px; }
.amber-flyer-date { font-size: 11px; margin: 18px 0 0; }
.amber-flyer-track { display: grid; gap: 14px; grid-auto-columns: calc((100% - 56px) / 5); grid-auto-flow: column; overflow-x: auto; padding: 1px 1px 6px; }
.amber-flyer-page { background: #fff; border: 1px solid var(--amber-line); border-radius: 8px; box-shadow: 0 4px 12px rgba(9,50,28,.05); height: 218px; overflow: hidden; padding: 0; position: relative; scroll-snap-align: start; text-align: center; }
.amber-flyer-page img { display: block; height: 100%; object-fit: cover; object-position: top; width: 100%; }
.amber-flyer-controls { align-items: center; display: flex; justify-content: space-between; margin: 8px 8px 0 76px; }
.amber-flyer-controls > span { font-size: 12px; }
.amber-slider-dots { display: flex; gap: 8px; margin-right: 45%; }
.amber-slider-dots i { background: #e3e7e4; border-radius: 8px; height: 4px; width: 18px; }
.amber-slider-dots i.is-active { background: #16823f; }

.amber-flash-deals { padding-top: 31px; }
.amber-flash-track { display: grid; gap: 14px; grid-auto-columns: calc((100% - 56px) / 5); grid-auto-flow: column; overflow-x: auto; padding: 1px 2px 7px; }
.amber-flash-card { border: 1px solid var(--amber-line); border-radius: 10px; min-height: 300px; padding: 9px 12px 12px; scroll-snap-align: start; }
.amber-countdown { display: grid; grid-template-columns: 25px 8px 25px 8px 25px; justify-content: center; margin: 0 auto 10px; text-align: center; width: 110px; }
.amber-countdown strong { font-size: 13px; }
.amber-countdown i { font-size: 12px; font-style: normal; }
.amber-countdown small { font-size: 5px; font-weight: 700; grid-row: 2; }
.amber-countdown small:nth-last-child(3) { grid-column: 1; }
.amber-countdown small:nth-last-child(2) { grid-column: 3; }
.amber-countdown small:last-child { grid-column: 5; }
/* Product image now reuses .amber-product-card's own art/heading sizing
   (the article carries both classes) instead of the old 63x77 thumbnail
   row, so it matches the Everyday Promotions cards. */
.amber-flash-card h3 { font-size: 11px; }
.amber-flash-card .amber-price { justify-content: space-between; margin: 3px 0 12px; }
.amber-flash-card .amber-price strong { font-size: 10px; }
.amber-sold { align-items: center; display: grid; gap: 8px; grid-template-columns: 1fr auto; }
.amber-sold > span { background: #eef0ee; border-radius: 10px; height: 6px; overflow: hidden; }
.amber-sold > span i { background: #f22626; border-radius: inherit; display: block; height: 100%; }
.amber-sold small { font-size: 8px; }

.amber-other-stores { padding: 34px 0 26px; }
.amber-store-track { display: grid; gap: 22px; grid-auto-columns: calc((100% - 66px) / 4); grid-auto-flow: column; overflow-x: auto; padding: 1px 2px 7px; }
.amber-store-card { border: 1px solid var(--amber-line); border-radius: 9px; box-shadow: 0 3px 8px rgba(0,0,0,.05); overflow: hidden; scroll-snap-align: start; }
.amber-store-photo { background: var(--amber-surface); height: 102px; }
.amber-store-photo img { display: block; height: 100%; object-fit: cover; width: 100%; }
.amber-store-card__body { padding: 11px 20px 10px; }
.amber-store-card h3 { font-size: 14px; margin-bottom: 7px; }
.amber-store-card p { font-size: 9px; margin-bottom: 8px; }
.amber-store-card p span { color: #0a893f; font-size: 8px; }
.amber-store-card__body > a { background: #067036; border-radius: 20px; color: #fff; display: block; font-size: 7px; font-weight: 700; margin: 0 auto; padding: 5px 15px; text-align: center; width: max-content; }

/* Honest-empty-state panel shared with the "Choose your store" flyer
   fallback and the weekly-flyer teaser when no flyer is published. */
.amber-offers .amber-fm-offers-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 48px 24px;
  color: var(--amber-muted);
  background: var(--amber-surface);
  border-radius: 8px;
}

.amber-offers .amber-fm-offers-empty-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.amber-offers .amber-fm-offers-empty h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--amber-ink);
  margin: 0;
}

.amber-offers .amber-fm-offers-empty p {
  font-size: 13px;
  margin: 0;
  max-width: 32ch;
}

@media (max-width: 1280px) {
  .amber-carousel-arrow--prev { left: -18px; }
  .amber-carousel-arrow--next { right: -18px; }
}

@media (max-width: 1100px) {
  .amber-offers__hero-inner { grid-template-columns: .9fr 1.1fr; padding-left: 32px; }
  .amber-offers__hero-benefits { gap: 11px; width: 520px; }
  .amber-offers__hero-visual { margin-right: -150px; }
  .amber-product-track { grid-auto-columns: calc((100% - 56px) / 5); }
  .amber-benefit-card { padding: 15px; }
  .amber-benefit-card > span { font-size: 32px; width: 38px; }
  .amber-flyer-track { grid-auto-columns: calc((100% - 42px) / 4); }
}

@media (max-width: 900px) {
  .amber-offers__hero-inner { grid-template-columns: minmax(340px,.92fr) 1.08fr; }
  .amber-offers__hero h1 { font-size: 36px; }
  .amber-offers__hero-benefits { width: 490px; }
  .amber-product-track { grid-auto-columns: calc((100% - 42px) / 4); }
  .amber-benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .amber-flyer-layout { grid-template-columns: 220px minmax(0,1fr); }
  .amber-flyer-track { grid-auto-columns: calc((100% - 28px) / 3); }
  .amber-flash-track { grid-auto-columns: calc((100% - 42px) / 4); }
  .amber-store-track { grid-auto-columns: calc((100% - 44px) / 3); }
}

@media (max-width: 767px) {
  .amber-offers__container { width: calc(100% - 36px); }
  .amber-offers__section { padding-top: 26px; }
  .amber-offers__hero { height: 610px; min-height: 610px; }
  .amber-offers__hero-inner { display: block; height: 610px; min-height: 0; padding: 32px 20px 0; }
  .amber-offers__hero h1 { font-size: 36px; }
  .amber-offers__hero-copy > p { font-size: 14px; }
  .amber-offers__hero-benefits { display: flex; gap: 18px; margin-top: 23px; overflow-x: auto; padding-bottom: 4px; width: 100%; }
  .amber-offers__hero-benefits article { flex: 0 0 145px; }
  .amber-offers__hero-visual { height: 290px; margin: 8px -128px 0 -52px; min-height: 0; }
  .amber-offers__discount-badge { height: 74px; right: 112px; top: 20px; width: 74px; }
  .amber-offers__discount-badge strong { font-size: 25px; }
  .amber-section-heading h2, .amber-flyer-copy h2 { font-size: 21px; }
  .amber-carousel-arrow { display: none; }
  .amber-product-track { grid-auto-columns: minmax(205px, 70%); margin-right: -18px; }
  .amber-benefits { padding-top: 27px; }
  .amber-benefit-grid { gap: 10px; }
  .amber-benefit-card { align-items: flex-start; display: block; min-height: 132px; padding: 15px; }
  .amber-benefit-card > span { height: 38px; justify-content: flex-start; margin-bottom: 8px; }
  .amber-weekly-flyer { padding-top: 35px; }
  .amber-flyer-layout { display: block; }
  .amber-flyer-copy { margin-bottom: 25px; }
  .amber-flyer-copy > p:not(.amber-flyer-date) { max-width: 340px; }
  .amber-flyer-track { grid-auto-columns: 176px; margin-right: -18px; }
  .amber-flyer-controls { margin-left: 0; }
  .amber-slider-dots { margin-right: 10px; }
  .amber-section-heading--flash { align-items: flex-start; }
  .amber-section-heading--flash > div { display: block; }
  .amber-section-heading--flash p { margin-top: 5px; }
  .amber-flash-track { grid-auto-columns: minmax(210px, 73%); margin-right: -18px; }
  .amber-store-track { grid-auto-columns: minmax(260px, 82%); margin-right: -18px; }
}

@media (max-width: 430px) {
  .amber-offers__hero { height: 625px; min-height: 625px; }
  .amber-offers__hero-inner { height: 625px; min-height: 0; }
  .amber-offers__hero h1 { font-size: 34px; }
  .amber-offers__hero-benefits { gap: 14px; }
  .amber-offers__hero-benefits article { flex-basis: 137px; }
  .amber-offers__hero-visual { margin-left: -68px; margin-right: -138px; }
  .amber-section-heading { gap: 12px; }
  .amber-section-heading > a { flex: 0 0 auto; }
  .amber-benefit-card p { font-size: 9px; }
  .amber-slider-dots i { width: 12px; }
  .amber-section-heading--flash > a { max-width: 74px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .amber-offers * { scroll-behavior: auto !important; }
}

/* Offers page only: remove Elementor's default ~10px column padding
   (top+bottom) that was adding extra gap above/below every section,
   on top of the Codex layout's own intentional section padding. */
.elementor-837 .elementor-widget-wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Desktop/laptop only: the product artwork's object-fit:contain box
   (790x348) is wider than the artwork's own 3:2 ratio, so centering it
   left a symmetric empty gap on both sides. Shifting object-position to
   the right moves that whole gap to the left, and bleeding the box's own
   right edge out by the container's 48px right padding lets the content
   reach the section's true edge. Grid track sizing (and therefore the
   left-side text column) is untouched -- fr-based grid tracks aren't
   affected by a margin on one item, only where that item paints. */
@media (min-width: 1024px) {
  .amber-offers__hero-visual {
    margin-right: -48px;
  }

  .amber-offers__hero-visual img {
    object-position: 100% 50%;
  }
}