/* Cupons Mania Home 4.1.3 — visual isolado e slider próprio do child theme. */
body.cmx-home {
  --cmx-home-navy: #052e5c;
  --cmx-home-deep: #001f45;
  --cmx-home-orange: #f56600;
  --cmx-home-orange-dark: #d95100;
  --cmx-home-yellow: #ffd500;
  --cmx-home-surface: #ffffff;
  --cmx-home-background: #f7f7f4;
  --cmx-home-border: #e2e6eb;
  --cmx-home-muted: #5f6b7a;
  --cmx-home-shadow: 0 12px 34px rgba(5, 46, 92, .09);
  margin: 0;
  overflow-x: hidden;
  background: #f3fbf6 !important;
  color: var(--cmx-home-deep);
  font-family: Montserrat, Arial, sans-serif;
}

body.cmx-home *,
body.cmx-home *::before,
body.cmx-home *::after { box-sizing: border-box; }

body.cmx-home main { background: #f3fbf6 !important; }

body.cmx-home .cmx-container,
body.cmx-home .cmx-section#cmx-ofertas > .cmx-container {
  width: min(1320px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.cmx-home a:focus-visible,
body.cmx-home button:focus-visible,
body.cmx-home input:focus-visible,
body.cmx-home select:focus-visible,
body.cmx-home [tabindex]:focus-visible {
  outline: 3px solid var(--cmx-home-yellow) !important;
  outline-offset: 3px;
}

body.cmx-home .cmx-header {
  min-height: 78px;
  height: auto;
  padding: 6px max(24px, calc((100vw - 1320px) / 2));
  gap: 22px;
  border-bottom: 1px solid var(--cmx-home-border);
  background: #fff;
  box-shadow: 0 4px 16px rgba(5, 46, 92, .04);
}

body.cmx-home .cmx-nav { gap: 19px; }
body.cmx-home .cmx-nav a { color: var(--cmx-home-deep); font-size: 12px; font-weight: 800; white-space: nowrap; }
body.cmx-home .cmx-nav a:hover { color: var(--cmx-home-orange); }
body.cmx-home .cmx-language { font-size: 11px; }

/* Slider próprio. */
body.cmx-home .cmx-home-slider-shell { position: relative; margin-top: 24px !important; }
body.cmx-home .cmx-home-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--cmx-home-navy);
  box-shadow: var(--cmx-home-shadow);
  touch-action: pan-y;
  transition: height .28s ease;
}
body.cmx-home .cmx-home-slider-track {
  display: flex;
  width: 100%;
  align-items: flex-start;
  transition: transform .48s ease;
  will-change: transform;
}
body.cmx-home .cmx-home-slide {
  display: grid;
  min-width: 100%;
  height: 384px;
  min-height: 384px;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  background: var(--cmx-home-navy);
}
body.cmx-home .cmx-home-slide.is-layout-full {
  display: block;
  height: 384px;
  min-height: 384px;
  background: transparent;
}
body.cmx-home .cmx-home-slide.is-layout-overlay {
  position: relative;
  isolation: isolate;
  display: block;
  height: 384px;
  min-height: 384px;
  overflow: hidden;
  background: var(--cmx-home-deep);
}
body.cmx-home .cmx-home-slide.is-layout-overlay::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 34, 74, var(--cmx-slide-overlay-strong, .86)) 0%, rgba(0, 34, 74, var(--cmx-slide-overlay-strong, .86)) 38%, rgba(0, 34, 74, var(--cmx-slide-overlay-mid, .63)) 58%, rgba(0, 34, 74, var(--cmx-slide-overlay-soft, .16)) 90%);
  content: "";
  pointer-events: none;
}
body.cmx-home .cmx-home-slide-copy {
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 50px 34px 58px 76px;
  color: #fff;
}
body.cmx-home .cmx-home-slide-copy h1 {
  max-width: 480px;
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.045em;
}
body.cmx-home .cmx-home-slide-copy p {
  max-width: 500px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.55;
}
body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-copy {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: min(680px, 58%);
  padding: 44px 34px 52px clamp(62px, 7.5vw, 112px);
}
body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-copy h1 {
  max-width: 600px;
  color: var(--cmx-slide-title-color, #fff);
  font-size: clamp(44px, 3.8vw, 56px);
  line-height: 1.02;
  text-shadow: 0 2px 18px rgba(0, 20, 48, .35);
}
body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-copy p {
  max-width: 600px;
  color: var(--cmx-slide-text-color, #fff);
  font-size: 16px;
  text-shadow: 0 1px 10px rgba(0, 20, 48, .45);
}
body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-slide-highlight { color: var(--cmx-home-orange); }
body.cmx-home .cmx-home-slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }
body.cmx-home .cmx-home-slide-primary,
body.cmx-home .cmx-home-slide-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
body.cmx-home .cmx-home-slide-primary { background: var(--cmx-home-orange); color: #fff !important; }
body.cmx-home .cmx-home-slide-primary:hover { background: var(--cmx-home-orange-dark); transform: translateY(-2px); }
body.cmx-home .cmx-home-slide-secondary { border-color: #fff; background: #fff; color: var(--cmx-home-deep) !important; }
body.cmx-home .cmx-home-slide-secondary:hover { background: var(--cmx-home-yellow); transform: translateY(-2px); }
body.cmx-home .cmx-home-slide-media { min-width: 0; min-height: 338px; overflow: hidden; background: #d9eefb; }
body.cmx-home .cmx-home-slide-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 338px;
  object-fit: cover;
  object-position: center;
}
body.cmx-home .cmx-home-slide.is-layout-full .cmx-home-slide-media,
body.cmx-home .cmx-home-slide.is-layout-full .cmx-home-slide-image {
  width: 100%;
  height: 100%;
  min-height: 0;
}
body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
body.cmx-home .cmx-home-slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--cmx-home-border);
  border-radius: 50%;
  background: #fff;
  color: var(--cmx-home-deep);
  box-shadow: 0 8px 24px rgba(5, 46, 92, .16);
  cursor: pointer;
  transform: translateY(-50%);
}
body.cmx-home .cmx-home-slider-arrow:hover { color: var(--cmx-home-orange); }
body.cmx-home .cmx-home-slider-arrow.is-prev { left: -20px; }
body.cmx-home .cmx-home-slider-arrow.is-next { right: -20px; }
body.cmx-home .cmx-home-slider-indicators {
  position: absolute;
  z-index: 6;
  bottom: 15px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}
body.cmx-home .cmx-home-slider-indicators button {
  width: 9px;
  height: 9px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}
body.cmx-home .cmx-home-slider-indicators button.is-active { width: 24px; border-radius: 8px; background: var(--cmx-home-orange); }
body.cmx-home .cmx-home-slider-shell.is-single .cmx-home-slide-copy { padding-bottom: 50px; }

/* Fallback quando nenhum slide válido está ativo. */
body.cmx-home .cmx-hero {
  display: grid;
  min-height: 338px;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  gap: 0;
  align-items: stretch;
  margin-top: 24px !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 24px;
  background: var(--cmx-home-navy);
  box-shadow: var(--cmx-home-shadow);
}
body.cmx-home .cmx-hero > div:first-child { display: flex; flex-direction: column; justify-content: center; padding: 48px 34px 48px 76px; }
body.cmx-home .cmx-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.045em;
}
body.cmx-home .cmx-hero mark { padding: 0; background: transparent; color: var(--cmx-home-yellow); }
body.cmx-home .cmx-hero p { margin: 0 0 24px; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.55; }
body.cmx-home .cmx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
body.cmx-home .cmx-actions .cmx-btn { width: auto !important; min-height: 46px; height: auto; padding: 11px 18px; border-radius: 8px; font-size: 12px; }
body.cmx-home .cmx-actions .cmx-btn-primary { border-color: var(--cmx-home-orange) !important; background: var(--cmx-home-orange) !important; color: #fff !important; }
body.cmx-home .cmx-actions .cmx-btn-outline { border-color: #fff !important; background: #fff !important; color: var(--cmx-home-deep) !important; }
body.cmx-home .cmx-hero-art { width: auto; height: 338px; overflow: hidden; border-radius: 0; box-shadow: none; }
body.cmx-home .cmx-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 76% center; }

/* Busca existente. */
body.cmx-home .cmx-search {
  display: grid;
  min-height: 76px;
  grid-template-columns: 1.35fr .9fr .9fr .72fr;
  gap: 13px;
  margin: 18px 0 0;
  padding: 13px;
  border: 1px solid var(--cmx-home-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(5, 46, 92, .07);
}
body.cmx-home .cmx-search input,
body.cmx-home .cmx-search select,
body.cmx-home .cmx-search button {
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  margin: 0;
  border-radius: 8px !important;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
}
body.cmx-home .cmx-search input,
body.cmx-home .cmx-search select { border: 1px solid #d9dee5 !important; background: #fff !important; color: var(--cmx-home-deep) !important; }
body.cmx-home .cmx-search button { border: 1px solid var(--cmx-home-orange) !important; background: var(--cmx-home-orange) !important; color: #fff !important; font-weight: 900; }
body.cmx-home .cmx-search button:hover { background: var(--cmx-home-orange-dark) !important; }

/* Ritmo geral. */
body.cmx-home .cmx-section,
body.cmx-home .cmx-section-soft,
body.cmx-home .cmx-home-categories-section,
body.cmx-home .cmx-home-stores-section { padding-top: 36px; padding-bottom: 12px; background: transparent !important; }
body.cmx-home .cmx-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
body.cmx-home .cmx-heading h2,
body.cmx-home .cmx-featured-heading .cmx-heading-copy h2 {
  margin: 0;
  color: var(--cmx-home-deep);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.035em;
}
body.cmx-home .cmx-link { display: inline-flex; align-items: center; color: var(--cmx-home-deep); font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap; }
body.cmx-home .cmx-link:hover { color: var(--cmx-home-orange); }
body.cmx-home .cmx-heading-actions { display: flex; align-items: center; gap: 13px; }
body.cmx-home .cmx-rail-controls { display: flex; gap: 7px; }
body.cmx-home .cmx-rail-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  min-height: 0;
  place-items: center;
  padding: 0;
  border: 1px solid var(--cmx-home-border) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--cmx-home-deep) !important;
  font-size: 11px;
  cursor: pointer;
}
body.cmx-home .cmx-rail-controls button:hover { border-color: var(--cmx-home-orange) !important; color: var(--cmx-home-orange) !important; }
body.cmx-home .cmx-rail-controls button:disabled { opacity: .35; cursor: default; }

/* Categorias reais em círculos. */
body.cmx-home .cmx-home-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
body.cmx-home .cmx-home-category {
  display: flex;
  min-width: 0;
  min-height: 122px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 8px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cmx-home-deep);
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.cmx-home .cmx-home-category:hover { box-shadow: none !important; transform: translateY(-2px); }
body.cmx-home .cmx-category-icon {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  place-items: center;
  border-radius: 50%;
  background: #fff0e7;
  color: #e94d00;
  border: 1px solid rgba(5, 46, 92, .08);
  box-shadow: 0 6px 18px rgba(5, 46, 92, .055);
  font-size: 31px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
body.cmx-home .cmx-home-category:hover .cmx-category-icon { border-color: #f6b784; box-shadow: 0 9px 22px rgba(5, 46, 92, .09); }
body.cmx-home .cmx-home-category:nth-child(2) .cmx-category-icon { background: #eaf8ed; color: #22a447; }
body.cmx-home .cmx-home-category:nth-child(3) .cmx-category-icon { background: #fff0f3; color: #e52f5d; }
body.cmx-home .cmx-home-category:nth-child(4) .cmx-category-icon { background: #f2edff; color: #7540c7; }
body.cmx-home .cmx-home-category:nth-child(5) .cmx-category-icon { background: #eaf3ff; color: #0878df; }
body.cmx-home .cmx-home-category:nth-child(6) .cmx-category-icon { background: #e8f8f7; color: #168f8b; }
body.cmx-home .cmx-category-icon i { display: block; line-height: 1; }
body.cmx-home .cmx-home-category strong { display: block; max-width: 100%; color: var(--cmx-home-deep); font-size: 12px; font-weight: 850; line-height: 1.2; overflow-wrap: anywhere; }

/* Ofertas: mesmos cards, agora em trilho. */
body.cmx-home #cmx-ofertas { padding-top: 36px; padding-bottom: 10px; }
body.cmx-home .cmx-home-offers-rail {
  display: grid !important;
  grid-auto-columns: 222px;
  grid-auto-flow: column;
  grid-template-columns: none !important;
  gap: 15px !important;
  padding: 2px 3px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
body.cmx-home .cmx-home-offers-rail::-webkit-scrollbar { display: none; }
body.cmx-home .cmx-home-offers-rail > .cmx-unified-coupon-box { width: 100% !important; min-width: 0; max-width: none !important; margin: 0 !important; scroll-snap-align: start; }
body.cmx-home .cmx-home-offers-rail .cmx-unified-coupon {
  min-height: 385px !important;
  overflow: hidden;
  border: 1px solid var(--cmx-home-border) !important;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 7px 20px rgba(5, 46, 92, .065) !important;
}
body.cmx-home .cmx-home-offers-rail .cmx-digital-card-image { height: 165px !important; min-height: 165px !important; padding: 0 !important; }
body.cmx-home .cmx-home-offers-rail .cmx-digital-card-image img { padding: 0 !important; object-fit: cover; }
body.cmx-home .cmx-home-offers-rail .cmx-digital-card-body { min-height: 220px !important; padding: 14px !important; }
body.cmx-home .cmx-home-offers-rail .cmx-unified-coupon h3 { min-height: 38px; margin: 4px 0 7px !important; font-size: 15px !important; line-height: 1.18 !important; }
body.cmx-home .cmx-home-offers-rail .cmx-unified-coupon p { min-height: 35px; margin: 0 0 8px; font-size: 11px; line-height: 1.45; -webkit-line-clamp: 2; }
body.cmx-home .cmx-home-offers-rail .cmx-unified-store { font-size: 9px; }
body.cmx-home .cmx-home-offers-rail .cmx-unified-meta { margin-bottom: 9px; font-size: 9px; }
body.cmx-home .cmx-home-offers-rail .cmx-unified-details { min-height: 38px !important; font-size: 10px; }
body.cmx-home .cmx-home-offers-rail .cmx-unified-favorite { width: 34px; height: 34px; top: 9px; right: 9px; }
body.cmx-home .cmx-home-offers-rail .cmx-unified-favorite .fa-heart { width: 17px; height: 17px; font-size: 17px; }
body.cmx-home .cmx-home-offers-rail .cmx-unified-discount { top: 9px; left: 9px; max-width: calc(100% - 58px); font-size: 10px; }

/* Lojas reais em cards horizontais. */
body.cmx-home .cmx-home-store-grid {
  display: grid !important;
  grid-auto-columns: 174px;
  grid-auto-flow: column;
  grid-template-columns: none !important;
  gap: 18px !important;
  padding: 2px 3px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
body.cmx-home .cmx-home-store-grid::-webkit-scrollbar { display: none; }
body.cmx-home .cmx-home-store {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 158px;
  height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 12px 13px;
  border: 1px solid var(--cmx-home-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(5, 46, 92, .05) !important;
  color: var(--cmx-home-deep);
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.cmx-home .cmx-home-store:hover { border-color: #f6b784 !important; box-shadow: 0 10px 24px rgba(5, 46, 92, .1) !important; transform: translateY(-2px); }
body.cmx-home .cmx-home-store .cmx-store-mark {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--cmx-home-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(5, 46, 92, .06);
}
body.cmx-home .cmx-home-store .cmx-store-mark img { display: block; width: 100%; height: 100%; padding: 11px; border-radius: 50%; background: #fff; object-fit: contain !important; object-position: center !important; transform: none !important; }
body.cmx-home .cmx-home-store .cmx-store-mark.is-fallback .dashicons { width: 34px; height: 34px; color: var(--cmx-home-orange); font-size: 34px; }
body.cmx-home .cmx-home-store strong {
  display: -webkit-box;
  min-height: 29px;
  margin: 0;
  color: var(--cmx-home-deep);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body.cmx-home .cmx-home-store small,
body.cmx-home .cmx-home-store-arrow { display: none; }

/* Edição digital: só aparece com URL e capa reais. */
body.cmx-home .cmx-home-edition {
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(250px, 38%) minmax(0, 1fr);
  align-items: center;
  gap: 46px;
  margin-top: 28px !important;
  padding: 34px 58px;
  overflow: hidden;
  border: 1px solid #f1dfd1;
  border-radius: 20px;
  background: #fff0e8;
  box-shadow: 0 8px 25px rgba(112, 53, 16, .07);
}
body.cmx-home .cmx-home-edition-cover { display: grid; min-height: 260px; place-items: center; }
body.cmx-home .cmx-home-edition-cover img { display: block; width: auto; max-width: 100%; height: 260px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(55, 35, 20, .2)); transform: rotate(-3deg); }
body.cmx-home .cmx-home-edition-copy > span { display: block; margin-bottom: 7px; color: var(--cmx-home-navy); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
body.cmx-home .cmx-home-edition-copy h2 {
  max-width: 610px;
  margin: 0 0 12px;
  color: var(--cmx-home-deep);
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
}
body.cmx-home .cmx-home-edition-copy p { max-width: 560px; margin: 0 0 22px; color: var(--cmx-home-muted); font-size: 13px; line-height: 1.55; }
body.cmx-home .cmx-home-edition-actions { display: flex; flex-wrap: wrap; gap: 11px; }
body.cmx-home .cmx-home-edition-primary,
body.cmx-home .cmx-home-edition-secondary {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--cmx-home-navy);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none !important;
}
body.cmx-home .cmx-home-edition-primary { border-color: var(--cmx-home-orange); background: var(--cmx-home-orange); color: #fff !important; }
body.cmx-home .cmx-home-edition-secondary { background: #fff; color: var(--cmx-home-navy) !important; }

/* Como funciona. */
body.cmx-home .cmx-steps { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 14px; align-items: center; }
body.cmx-home .cmx-step {
  display: grid;
  min-width: 0;
  min-height: 108px;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
}
body.cmx-home .cmx-step-icon { position: relative; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: #e8f7e9; color: var(--cmx-home-deep); font-size: 24px; }
body.cmx-home .cmx-step:nth-of-type(2) .cmx-step-icon { background: #fff3cf; }
body.cmx-home .cmx-step:nth-of-type(3) .cmx-step-icon { background: #ffe8ed; }
body.cmx-home .cmx-step-icon b {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid var(--cmx-home-background);
  border-radius: 50%;
  background: #2dbf4f;
  color: #fff;
  font-size: 9px;
}
body.cmx-home .cmx-step:nth-of-type(2) .cmx-step-icon b { background: #e4ac00; }
body.cmx-home .cmx-step:nth-of-type(3) .cmx-step-icon b { background: #ed4264; }
body.cmx-home .cmx-step strong { color: var(--cmx-home-deep); font-size: 13px; font-weight: 900; }
body.cmx-home .cmx-step p { margin: 5px 0 0; color: var(--cmx-home-muted); font-size: 10px; line-height: 1.45; }
body.cmx-home .cmx-step-arrow { color: var(--cmx-home-navy); font-size: 13px; text-align: center; }

/* CTA para anunciantes. */
body.cmx-home .cmx-merchant {
  display: grid;
  min-height: 124px;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 30px !important;
  margin-bottom: 4px !important;
  padding: 24px 34px;
  border: 1px solid var(--cmx-home-orange);
  border-radius: 15px;
  background: var(--cmx-home-orange) !important;
  color: #fff;
  box-shadow: 0 10px 28px rgba(245, 102, 0, .18);
}
body.cmx-home .cmx-merchant > .dashicons { display: grid; width: 64px; height: 64px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; font-size: 31px; }
body.cmx-home .cmx-merchant h2 { margin: 0 0 6px; color: #fff !important; font-size: 23px; font-weight: 900; line-height: 1.12; }
body.cmx-home .cmx-merchant p { margin: 0; color: #fff !important; font-size: 11px; line-height: 1.45; }
body.cmx-home .cmx-merchant .cmx-btn {
  min-height: 46px;
  height: auto;
  padding: 11px 22px;
  border-color: #fff !important;
  background: #fff !important;
  color: var(--cmx-home-orange-dark) !important;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

/* Cidades reais. */
body.cmx-home #cmx-cidades { padding-bottom: 38px; }
body.cmx-home .cmx-city-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.cmx-home .cmx-city {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cmx-home-border);
  border-radius: 14px;
  background: #fff;
  color: var(--cmx-home-deep);
  box-shadow: 0 7px 20px rgba(5, 46, 92, .06);
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.cmx-home .cmx-city:hover { box-shadow: 0 12px 28px rgba(5, 46, 92, .12); transform: translateY(-2px); }
body.cmx-home .cmx-city-image { display: block; width: 100%; height: 132px; object-fit: cover; }
body.cmx-home .cmx-city-content { position: relative; display: block; padding: 12px 14px 14px; }
body.cmx-home .cmx-city-content > .dashicons { display: none; }
body.cmx-home .cmx-city h3 { margin: 0 0 4px; color: var(--cmx-home-deep); font-size: 16px; font-weight: 900; }
body.cmx-home .cmx-city p { margin: 0 0 8px; color: var(--cmx-home-muted); font-size: 9px; line-height: 1.4; }
body.cmx-home .cmx-city-content > strong { display: inline-flex; align-items: center; gap: 6px; color: var(--cmx-home-orange); font-size: 10px; font-weight: 900; }

/* Footer preservado, com escala compatível com a Home. */
body.cmx-home .cmx-footer { padding-top: 28px; background: var(--cmx-home-deep); }
body.cmx-home .cmx-footer .cmx-container { width: min(1320px, calc(100% - 40px)) !important; }
body.cmx-home .cmx-footer-brand-row { gap: 24px; padding-bottom: 20px; }
body.cmx-home .cmx-footer-grid { gap: 38px; padding-top: 24px; }
body.cmx-home .cmx-footer .cmx-footer-col h3,
body.cmx-home .cmx-footer .cmx-footer-col:first-child h3 { font-size: 13px; }
body.cmx-home .cmx-footer .cmx-footer-col > a,
body.cmx-home .cmx-footer p { font-size: 10px; }
body.cmx-home .cmx-copyright { margin-top: 22px; padding: 12px; font-size: 9px; }
body.cmx-home .cmx-mobile-tabbar { display: none; }

@media (max-width: 1100px) {
  body.cmx-home .cmx-header { padding-inline: 20px; gap: 15px; }
  body.cmx-home .cmx-nav { gap: 13px; }
  body.cmx-home .cmx-nav a { font-size: 10px; }
  body.cmx-home .cmx-home-slide-copy,
  body.cmx-home .cmx-hero > div:first-child { padding-left: 52px; }
}

@media (max-width: 920px) {
  body.cmx-home .cmx-header { min-height: 72px; }
  body.cmx-home .cmx-menu-toggle { display: grid; }
  body.cmx-home .cmx-nav {
    position: absolute;
    z-index: 50;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 14px;
    border: 1px solid var(--cmx-home-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--cmx-home-shadow);
  }
  body.cmx-home .cmx-nav.open { display: grid; }
  body.cmx-home .cmx-nav a { min-height: 42px; padding: 12px 10px; font-size: 13px; }
  body.cmx-home .cmx-home-slide,
  body.cmx-home .cmx-hero { grid-template-columns: 48% 52%; }
  body.cmx-home .cmx-home-slide-copy,
  body.cmx-home .cmx-hero > div:first-child { padding-right: 25px; padding-left: 38px; }
  body.cmx-home .cmx-search { grid-template-columns: 1.2fr .8fr .8fr; }
  body.cmx-home .cmx-search button { grid-column: 1 / -1; }
  body.cmx-home .cmx-home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.cmx-home .cmx-home-edition { grid-template-columns: minmax(210px, 34%) minmax(0, 1fr); padding: 30px 38px; }
  body.cmx-home .cmx-steps { grid-template-columns: minmax(0, 1fr); }
  body.cmx-home .cmx-step-arrow { transform: rotate(90deg); }
  body.cmx-home .cmx-merchant { grid-template-columns: 64px minmax(0, 1fr); }
  body.cmx-home .cmx-merchant .cmx-btn { grid-column: 1 / -1; width: 100% !important; }
}

@media (max-width: 680px) {
  body.cmx-home { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.cmx-home .cmx-container,
  body.cmx-home .cmx-section#cmx-ofertas > .cmx-container,
  body.cmx-home .cmx-footer .cmx-container { width: calc(100% - 28px) !important; }
  body.cmx-home .cmx-header { min-height: 68px; padding: 5px 14px; }
  body.cmx-home .cmx-language { margin-left: auto; }
  body.cmx-home .cmx-menu-toggle { width: 44px; height: 44px; }
  body.cmx-home .cmx-home-slider-shell,
  body.cmx-home .cmx-hero { margin-top: 10px !important; }
  body.cmx-home .cmx-home-slider-viewport,
  body.cmx-home .cmx-hero { border-radius: 18px; }
  body.cmx-home .cmx-home-slide,
  body.cmx-home .cmx-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  body.cmx-home .cmx-home-slide.is-layout-split { height: auto; }
  body.cmx-home .cmx-home-slide-copy,
  body.cmx-home .cmx-hero > div:first-child { min-height: 240px; padding: 26px 24px 30px; }
  body.cmx-home .cmx-home-slide-copy h1,
  body.cmx-home .cmx-hero h1 { font-size: clamp(28px, 8.7vw, 36px); }
  body.cmx-home .cmx-home-slide-copy p,
  body.cmx-home .cmx-hero p { font-size: 14px; }
  body.cmx-home .cmx-home-slide-actions,
  body.cmx-home .cmx-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  body.cmx-home .cmx-home-slide-primary,
  body.cmx-home .cmx-home-slide-secondary,
  body.cmx-home .cmx-actions .cmx-btn { width: 100% !important; }
  body.cmx-home .cmx-home-slide-media,
  body.cmx-home .cmx-home-slide-image,
  body.cmx-home .cmx-hero-art { min-height: 168px; height: 168px; }
  body.cmx-home .cmx-home-slide.is-layout-full {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  body.cmx-home .cmx-home-slide.is-layout-full .cmx-home-slide-media,
  body.cmx-home .cmx-home-slide.is-layout-full .cmx-home-slide-image { width: 100%; height: 100%; min-height: 0; }
  body.cmx-home .cmx-home-slider-shell.is-full-active .cmx-home-slider-viewport { aspect-ratio: 16 / 9; }
  body.cmx-home .cmx-home-slide.is-layout-overlay {
    display: block;
    width: 100%;
    height: 240px;
    min-height: 240px;
    max-height: 250px;
  }
  body.cmx-home .cmx-home-slide.is-layout-overlay::after {
    background: rgba(0, 34, 74, var(--cmx-slide-overlay-opacity, .45));
  }
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-copy {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    justify-content: flex-end;
    padding: 52px 20px 31px;
  }
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-copy h1 {
    display: -webkit-box;
    max-width: 100%;
    margin: 0 0 5px;
    overflow: hidden;
    font-size: clamp(22px, 6.1vw, 26px);
    line-height: 1.05;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-copy p {
    display: -webkit-box;
    max-width: 100%;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: clamp(13px, 3.25vw, 14px);
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-actions { display: flex; flex-wrap: nowrap; gap: 8px; }
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-primary,
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-secondary {
    width: auto !important;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    flex: 1 1 0;
    padding: 8px;
    font-size: clamp(11px, 3.05vw, 13px);
    white-space: nowrap;
  }
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-media,
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-image { width: 100%; height: 100%; min-height: 0; }
  body.cmx-home .cmx-home-slider-shell.is-overlay-active .cmx-home-slider-viewport { aspect-ratio: auto; }
  body.cmx-home .cmx-home-slider-arrow { width: 38px; height: 38px; }
  body.cmx-home .cmx-home-slider-arrow.is-prev { left: -9px; }
  body.cmx-home .cmx-home-slider-arrow.is-next { right: -9px; }
  body.cmx-home .cmx-home-slider-indicators { bottom: 179px; }
  body.cmx-home .cmx-home-slider-shell.is-full-active .cmx-home-slider-arrow.is-prev { left: 10px; }
  body.cmx-home .cmx-home-slider-shell.is-full-active .cmx-home-slider-arrow.is-next { right: 10px; }
  body.cmx-home .cmx-home-slider-shell.is-full-active .cmx-home-slider-indicators { bottom: 14px; }
  body.cmx-home .cmx-home-slider-shell.is-overlay-active .cmx-home-slider-arrow { top: 13px; transform: none; }
  body.cmx-home .cmx-home-slider-shell.is-overlay-active .cmx-home-slider-arrow.is-prev { left: 9px; }
  body.cmx-home .cmx-home-slider-shell.is-overlay-active .cmx-home-slider-arrow.is-next { right: 9px; }
  body.cmx-home .cmx-home-slider-shell.is-overlay-active .cmx-home-slider-indicators { bottom: 9px; }

  body.cmx-home .cmx-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; padding: 8px; }
  body.cmx-home .cmx-search input,
  body.cmx-home .cmx-search button { grid-column: 1 / -1; }
  body.cmx-home .cmx-search input,
  body.cmx-home .cmx-search select,
  body.cmx-home .cmx-search button { box-sizing: border-box !important; height: 44px !important; min-height: 44px !important; padding-block: 0 !important; font-size: 11px; }

  body.cmx-home .cmx-section,
  body.cmx-home .cmx-section-soft,
  body.cmx-home .cmx-home-categories-section { padding-top: 12px; padding-bottom: 0; }
  body.cmx-home .cmx-home-stores-section,
  body.cmx-home #cmx-ofertas { padding-top: 18px; padding-bottom: 4px; }
  body.cmx-home .cmx-heading { align-items: center; margin-bottom: 5px; }
  body.cmx-home .cmx-heading h2,
  body.cmx-home .cmx-featured-heading .cmx-heading-copy h2 { font-size: 19px; }
  body.cmx-home .cmx-link { font-size: 10px; }
  body.cmx-home .cmx-rail-controls { display: none; }

  body.cmx-home .cmx-home-category-grid {
    grid-auto-columns: 64px;
    grid-auto-flow: column;
    grid-template-columns: none !important;
    gap: 5px;
    margin-right: -14px;
    padding: 0 14px 2px 0;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  body.cmx-home .cmx-home-category-grid::-webkit-scrollbar { display: none; }
  body.cmx-home .cmx-home-category { min-height: 68px; gap: 4px; padding: 1px; border: 0 !important; box-shadow: none !important; }
  body.cmx-home .cmx-category-icon { width: 46px; height: 46px; flex-basis: 46px; font-size: 20px; }
  body.cmx-home .cmx-home-category strong { font-size: 9px; white-space: nowrap; }

  body.cmx-home .cmx-home-offers-rail { grid-auto-columns: min(78vw, 286px); margin-right: -14px; padding-right: 14px; }
  body.cmx-home .cmx-home-offers-rail .cmx-digital-card-image { height: 158px !important; min-height: 158px !important; }
  body.cmx-home .cmx-home-offers-rail .cmx-digital-card-body { min-height: 205px !important; }

  body.cmx-home .cmx-home-store-grid { grid-auto-columns: 112px; gap: 9px !important; margin-right: -14px; padding-right: 14px; }
  body.cmx-home .cmx-home-store { min-height: 118px; padding: 10px 8px 9px; border-radius: 13px !important; }
  body.cmx-home .cmx-home-store .cmx-store-mark { width: 62px; height: 62px; flex-basis: 62px; }
  body.cmx-home .cmx-home-store strong { min-height: 25px; font-size: 9px; }

  body.cmx-home .cmx-home-edition {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    margin-top: 24px !important;
    padding: 25px 20px;
    text-align: center;
  }
  body.cmx-home .cmx-home-edition-cover { min-height: 210px; }
  body.cmx-home .cmx-home-edition-cover img { height: 210px; }
  body.cmx-home .cmx-home-edition-copy h2 { margin-right: auto; margin-left: auto; font-size: 28px; }
  body.cmx-home .cmx-home-edition-copy p { margin-right: auto; margin-left: auto; font-size: 12px; }
  body.cmx-home .cmx-home-edition-actions { display: grid; grid-template-columns: minmax(0, 1fr); }

  body.cmx-home .cmx-step { min-height: 0; padding: 10px 0; }
  body.cmx-home .cmx-step-arrow { font-size: 11px; }
  body.cmx-home .cmx-merchant { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 27px !important; padding: 22px 18px; text-align: center; }
  body.cmx-home .cmx-merchant > .dashicons { margin: auto; }
  body.cmx-home .cmx-merchant h2 { font-size: 21px; }

  body.cmx-home #cmx-cidades { padding-bottom: 28px; }
  body.cmx-home .cmx-city-grid {
    grid-auto-columns: min(82vw, 310px);
    grid-auto-flow: column;
    grid-template-columns: none !important;
    gap: 13px;
    margin-right: -14px;
    padding: 1px 14px 9px 1px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  body.cmx-home .cmx-city-grid::-webkit-scrollbar { display: none; }
  body.cmx-home .cmx-city-image { height: 150px; }

  body.cmx-home .cmx-footer { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.cmx-home .cmx-footer-brand-row { grid-template-columns: minmax(0, 1fr); text-align: center; }
  body.cmx-home .cmx-footer-brand-row .cmx-footer-logo { margin: auto; }
  body.cmx-home .cmx-footer-brand-row > p { margin: auto; }
  body.cmx-home .cmx-social-links { justify-content: center; }
  body.cmx-home .cmx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

  body.cmx-home .cmx-mobile-tabbar {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(66px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--cmx-home-border);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -8px 24px rgba(5, 46, 92, .12);
  }
  body.cmx-home .cmx-mobile-tabbar a {
    display: flex;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px;
    border-radius: 12px;
    color: #627083;
    text-decoration: none;
  }
  body.cmx-home .cmx-mobile-tabbar i { font-size: 20px; }
  body.cmx-home .cmx-mobile-tabbar span { color: inherit; font-size: 10px; font-weight: 800; }
  body.cmx-home .cmx-mobile-tabbar .is-active { background: #fff0e7; color: var(--cmx-home-orange); }
  body.cmx-home #ea11y-root { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 390px) {
  body.cmx-home .cmx-language { display: none; }
  body.cmx-home .cmx-home-slide-copy,
  body.cmx-home .cmx-hero > div:first-child { padding-right: 20px; padding-left: 20px; }
  body.cmx-home .cmx-home-slide-copy h1,
  body.cmx-home .cmx-hero h1 { font-size: 28px; }
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-copy { padding-right: 16px; padding-left: 16px; }
  body.cmx-home .cmx-home-slide.is-layout-overlay .cmx-home-slide-copy h1 { font-size: clamp(22px, 6.1vw, 24px); }
  body.cmx-home .cmx-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.cmx-home .cmx-search input,
  body.cmx-home .cmx-search button { grid-column: 1 / -1; }
  body.cmx-home .cmx-search select { grid-column: auto; }
  body.cmx-home .cmx-home-category-grid { grid-auto-columns: 64px; }
  body.cmx-home .cmx-footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  body.cmx-home .cmx-home-slider-viewport,
  body.cmx-home .cmx-home-slider-track,
  body.cmx-home .cmx-home-category,
  body.cmx-home .cmx-home-store,
  body.cmx-home .cmx-city { scroll-behavior: auto; transition: none; }
}
