/* =========================================================
   MagGas Products — Product Page Styles (SCOPED)
   + Dynamic Listing Shortcode Styles
   ========================================================= */

.mgg-product-template {
  --mg-maxw: 1140px;
  --mg-pad-x: 24px;

  --mg-text: #1f2937;
  --mg-muted: #6b7280;
  --mg-border: rgba(15, 23, 42, 0.10);

  --mg-brand: #e56e50;

  --mg-radius: 18px;
  --mg-radius-lg: 22px;

  --mg-shadow-sm: 0 8px 24px rgba(2, 6, 23, 0.04);
  --mg-shadow-md: 0 12px 30px rgba(2, 6, 23, 0.08);
  --mg-shadow-hover: 0 18px 40px rgba(2, 6, 23, 0.12);

  --mg-h1: 44px;
  --mg-h2: 32px;
  --mg-h3: 18px;
  --mg-body: 16px;
  --mg-lead: 18px;

  --mg-lh: 1.55;

  --mg-gap-1: 10px;
  --mg-gap-2: 16px;
  --mg-gap-3: 26px;
  --mg-gap-4: 44px;

  --mg-sec-y: 64px;

  /* Sizing targets */
  --mg-sizing-band: #eaf4ff;
  --mg-sizing-card-shadow: 0 18px 40px rgba(2, 6, 23, 0.10);
  --mg-row-bg: rgba(34, 197, 94, 0.08);

  /* Key Features + Why Choose band + icon chip */
  --mg-kf-band: #F2FBF7;
  --mg-kf-icon-chip: #E8F4FF;

  /* Floating Icons */
  --mg-float-top-safe: 110px;
  --mg-float-opacity: 0.10;
  --mg-float-size: 30px;
  --mg-float-blur: 0px;
}

/* Container */
.mgg-product-template .mg-product-wrap {
  max-width: var(--mg-maxw);
  margin: 0 auto;
  padding: 0 var(--mg-pad-x);
  color: var(--mg-text);
}

/* Typography normalization */
.mgg-product-template h1,
.mgg-product-template h2,
.mgg-product-template h3,
.mgg-product-template p,
.mgg-product-template ul,
.mgg-product-template li {
  margin: 0;
}

.mgg-product-template p {
  font-size: var(--mg-body);
  line-height: var(--mg-lh);
  color: var(--mg-muted);
}

.mgg-product-template h1 {
  font-size: var(--mg-h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--mg-text);
}

.mgg-product-template h2 {
  font-size: var(--mg-h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--mg-text);
}

.mgg-product-template h3 {
  font-size: var(--mg-h3);
  line-height: 1.25;
  color: var(--mg-text);
}

/* Sections */
.mgg-product-template .mg-section {
  padding: var(--mg-sec-y) 0;
}

/* Only keep divider above Cleaning section */
.mgg-product-template .mg-section.mg-cleaning {
  border-top: 1px solid var(--mg-border);
}

.mgg-product-template .mg-section-head {
  margin-bottom: var(--mg-gap-3);
  max-width: 780px;
}

.mgg-product-template .mg-section-head h2 {
  margin-bottom: var(--mg-gap-1);
}

.mgg-product-template .mg-section-head p {
  font-size: var(--mg-lead);
  color: var(--mg-muted);
}

/* HERO */
.mgg-product-template .mg-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--mg-gap-4);
  align-items: center;
  padding: 56px 0;
}

.mgg-product-template .mg-hero-left p {
  margin-top: var(--mg-gap-2);
  font-size: var(--mg-lead);
  max-width: 58ch;
}

.mgg-product-template .mg-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mgg-product-template .mg-hero-img {
  width: 100%;
  height: auto;
  max-width: 440px;
  border-radius: var(--mg-radius-lg);
  box-shadow: var(--mg-shadow-md);
  display: block;
}

/* Buttons */
.mgg-product-template .mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  margin-top: var(--mg-gap-2);

  background: var(--mg-brand);
  color: #fff;
  border: 1px solid transparent;

  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.mgg-product-template .mg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
}

.mgg-product-template .mg-btn.mg-btn-outline {
  background: transparent;
  color: var(--mg-brand);
  border-color: rgba(229, 110, 80, 0.55);
  box-shadow: none;
}

.mgg-product-template .mg-btn.mg-btn-outline:hover {
  border-color: rgba(229, 110, 80, 0.85);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

/* Make sizing CTA match hero CTA */
.mgg-product-template .mg-section.mg-sizing .mg-btn.mg-btn-outline {
  background: var(--mg-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}

.mgg-product-template .mg-section.mg-sizing .mg-btn.mg-btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
  border-color: transparent;
}

/* Card grid */
.mgg-product-template .mg-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mgg-product-template .mg-card {
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius);
  padding: 22px;
  background: #fff;
  box-shadow: var(--mg-shadow-sm);
}

.mgg-product-template .mg-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

.mgg-product-template .mg-card-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.mgg-product-template .mg-card h3 {
  margin-bottom: 10px;
}

.mgg-product-template .mg-card p {
  color: var(--mg-muted);
}

/* Cleaning bullets */
.mgg-product-template .mg-list {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--mg-muted);
}

.mgg-product-template .mg-list li {
  margin: 8px 0;
}

/* KEY FEATURES */
.mgg-product-template .mg-hero + .mg-section {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  background: var(--mg-kf-band);
  padding: 84px 0;

  border-top: 0 !important;
}

.mgg-product-template .mg-hero + .mg-section > .mg-section-head,
.mgg-product-template .mg-hero + .mg-section > .mg-card-grid {
  max-width: var(--mg-maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mg-pad-x);
  padding-right: var(--mg-pad-x);
}

.mgg-product-template .mg-hero + .mg-section .mg-section-head {
  text-align: center;
}

.mgg-product-template .mg-hero + .mg-section .mg-section-head p {
  margin-left: auto;
  margin-right: auto;
}

.mgg-product-template .mg-hero + .mg-section .mg-card {
  text-align: center;
}

.mgg-product-template .mg-hero + .mg-section .mg-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--mg-kf-icon-chip);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.mgg-product-template .mg-hero + .mg-section .mg-card-icon img {
  width: 26px;
  height: 26px;
}

/* WHAT’S IN THE BOX */
.mgg-product-template .mg-section.mg-wib .mg-card.mg-card-has-icon {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
  padding-bottom: 16px;
}

.mgg-product-template .mg-section.mg-wib .mg-card.mg-card-has-icon .mg-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #F2FBF7;
  display: grid;
  place-items: center;
  margin: 0;
  grid-row: 1 / span 2;
}

.mgg-product-template .mg-section.mg-wib .mg-card.mg-card-has-icon .mg-card-icon img {
  width: 28px;
  height: 28px;
}

.mgg-product-template .mg-section.mg-wib .mg-card.mg-card-has-icon h3,
.mgg-product-template .mg-section.mg-wib .mg-card.mg-card-has-icon p {
  grid-column: 2;
}

.mgg-product-template .mg-section.mg-wib .mg-card.mg-card-has-icon h3 {
  margin-bottom: 6px;
}

/* BEST FOR */
.mgg-product-template .mg-section.mg-bestfor .mg-card {
  text-align: center;
}

.mgg-product-template .mg-section.mg-bestfor .mg-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #E8F4FF;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.mgg-product-template .mg-section.mg-bestfor .mg-card-icon img {
  width: 26px;
  height: 26px;
}

/* SIZING */
.mgg-product-template .mg-section.mg-sizing {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  background: var(--mg-sizing-band);
  padding: 84px 0;
  border-top: 0 !important;
}

.mgg-product-template .mg-section:not(.mg-sizing) + .mg-section.mg-sizing {
  border-top: 0;
}

.mgg-product-template .mg-section.mg-sizing .mg-section-head-split {
  max-width: var(--mg-maxw);
  margin: 0 auto;
  padding: 0 var(--mg-pad-x);

  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.mgg-product-template .mg-section.mg-sizing .mg-section-head-split > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mgg-product-template .mg-section.mg-sizing .mg-section-head-split > div:first-child p {
  max-width: 62ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
}

.mgg-product-template .mg-sizing-card {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--mg-sizing-card-shadow);
}

.mgg-product-template .mg-sizing-card h3 {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mgg-product-template .mg-sizing-row {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 18px 18px;
  margin: 14px 0;

  border: 0;
  border-radius: 18px;
  background: var(--mg-row-bg);
}

.mgg-product-template .mg-badge {
  box-sizing: border-box;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  min-height: 56px;
  max-height: 56px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 999px;

  background: rgba(59, 130, 246, 0.10);
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.mgg-product-template .mg-sizing-title {
  font-weight: 800;
  color: var(--mg-text);
  margin-bottom: 6px;
  font-size: 18px;
}

.mgg-product-template .mg-sizing-sub {
  color: rgba(31, 41, 55, 0.70);
  font-size: 14px;
  line-height: 1.5;
}

.mgg-product-template .mg-sizing-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 14px;
  color: var(--mg-muted);
}

/* WHY CHOOSE */
.mgg-product-template .mg-section.mg-why {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  background: var(--mg-kf-band);
  padding: 84px 0;

  border-top: 0 !important;
}

.mgg-product-template .mg-section.mg-why .mg-section-head,
.mgg-product-template .mg-section.mg-why .mg-why-grid {
  max-width: var(--mg-maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mg-pad-x);
  padding-right: var(--mg-pad-x);
}

.mgg-product-template .mg-why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--mg-gap-4);
  align-items: start;
}

.mgg-product-template .mg-why-img {
  width: 100%;
  height: auto;
  border-radius: var(--mg-radius-lg);
  box-shadow: var(--mg-shadow-md);
  display: block;
}

.mgg-product-template .mg-why-right {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;

  display: grid;
  gap: 18px;
}

.mgg-product-template .mg-why-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;

  padding: 18px 20px;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius);
  background: #fff;
  box-shadow: var(--mg-shadow-sm);
}

.mgg-product-template .mg-why-point-icon img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.mgg-product-template .mg-why-point-text {
  font-size: var(--mg-body);
  color: var(--mg-muted);
  line-height: var(--mg-lh);
}

.mgg-product-template .mg-why-point-text strong {
  font-size: inherit;
  color: var(--mg-text);
  font-weight: 800;
}

/* Bottom CTA */
.mgg-product-template .mg-cta-section {
  padding: 72px 0;
}

.mgg-product-template .mg-cta-stack {
  border: 1px solid var(--mg-border);
  border-radius: calc(var(--mg-radius) + 6px);
  background: #fff;
  box-shadow: var(--mg-shadow-md);
  padding: 40px 28px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.mgg-product-template .mg-cta-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
}

.mgg-product-template .mg-cta-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.mgg-product-template .mg-cta-stack h2 {
  margin-bottom: 12px;
}

.mgg-product-template .mg-cta-stack p {
  max-width: 62ch;
  margin: 0 auto;
}

/* Center headings except sizing + bottom CTA */
.mgg-product-template .mg-section:not(.mg-sizing):not(.mg-cta-section) .mg-section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.mgg-product-template .mg-section:not(.mg-sizing):not(.mg-cta-section) .mg-section-head p {
  margin-left: auto;
  margin-right: auto;
}

/* Hover effect on cards + why points */
.mgg-product-template .mg-card,
.mgg-product-template .mg-why-point {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.mgg-product-template .mg-card:hover,
.mgg-product-template .mg-why-point:hover {
  transform: translateY(-2px);
  box-shadow: var(--mg-shadow-hover);
  border-color: rgba(15, 23, 42, 0.16);
}

/* CLEANING & MAINTENANCE */
.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-card {
  text-align: center;
  border: 0;
  box-shadow: var(--mg-shadow-md);
  padding: 30px 24px;
}

.mgg-product-template .mg-section.mg-cleaning .mg-card-grid > .mg-cleaning-card:nth-child(1) {
  background: #E8F4FF;
}

.mgg-product-template .mg-section.mg-cleaning .mg-card-grid > .mg-cleaning-card:nth-child(2) {
  background: #F2FBF7;
}

.mgg-product-template .mg-section.mg-cleaning .mg-card-grid > .mg-cleaning-card:nth-child(3) {
  background: #FFF5F0;
}

.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-icon img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-card h3 {
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-card p {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(31, 41, 55, 0.75);
}

.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-box {
  margin-top: 18px;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-box .mg-list,
.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-box .mg-list li {
  font-size: var(--mg-body);
  line-height: var(--mg-lh);
  color: var(--mg-muted);
}

.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-box .mg-list {
  margin-top: 0;
  padding-left: 18px;
  text-align: left;
}

.mgg-product-template .mg-section.mg-cleaning .mg-cleaning-box .mg-list li {
  margin: 10px 0;
}

/* FLOATING ICONS */
.mgg-product-template {
  position: relative;
  isolation: isolate;
}

.mgg-product-template .mg-float-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  clip-path: inset(var(--mg-float-top-safe) 0 0 0);
}

.mgg-product-template .mg-product-wrap {
  position: relative;
  z-index: 2;
}

.mgg-product-template .mg-float-icon {
  position: absolute;
  width: var(--mg-float-size);
  height: var(--mg-float-size);
  opacity: var(--mg-float-opacity);
  filter: blur(var(--mg-float-blur));
  transform: translate3d(0,0,0);
  will-change: transform;
}

.mgg-product-template .mg-float-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@keyframes mgFloatDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(0, -14px, 0) rotate(6deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

.mgg-product-template .mg-float-icon {
  animation-name: mgFloatDrift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.mgg-product-template .mg-float-icon:nth-child(1) { left: 6%; top: 22%; animation-duration: 10s; }
.mgg-product-template .mg-float-icon:nth-child(2) { left: 86%; top: 28%; animation-duration: 12s; }
.mgg-product-template .mg-float-icon:nth-child(3) { left: 12%; top: 72%; animation-duration: 11s; }
.mgg-product-template .mg-float-icon:nth-child(4) { left: 88%; top: 78%; animation-duration: 13s; }

.mgg-product-template .mg-hero + .mg-section,
.mgg-product-template .mg-section.mg-sizing,
.mgg-product-template .mg-section.mg-why {
  position: relative;
  z-index: 3;
}

.mgg-product-template .mg-hero + .mg-section::before,
.mgg-product-template .mg-section.mg-sizing::before,
.mgg-product-template .mg-section.mg-why::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: inherit;
}

.mgg-product-template .mg-hero + .mg-section > *,
.mgg-product-template .mg-section.mg-sizing > *,
.mgg-product-template .mg-section.mg-why > * {
  position: relative;
  z-index: 2;
}

/* =========================================================
   DYNAMIC PRODUCT LISTING SHORTCODE
   Safe scope: only shortcode output classes
   ========================================================= */

.mg-products-shortcode-wrap {
  --mg-list-maxw: 1140px;
  --mg-list-text: #1f2937;
  --mg-list-muted: #6b7280;
  --mg-list-border: rgba(15, 23, 42, 0.10);
  --mg-list-brand: #e56e50;
  --mg-list-radius: 22px;
  --mg-list-shadow-sm: 0 8px 24px rgba(2, 6, 23, 0.05);
  --mg-list-shadow-md: 0 12px 30px rgba(2, 6, 23, 0.08);
  --mg-list-shadow-hover: 0 18px 40px rgba(2, 6, 23, 0.12);
  --mg-list-chip: #F2FBF7;

  max-width: var(--mg-list-maxw);
  margin: 0 auto;
  padding: 12px 0;
  font-family: "Inter", sans-serif;
}

.mg-products-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.mg-products-grid.mg-products-grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mg-products-grid.mg-products-grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mg-products-empty {
  border: 1px solid var(--mg-list-border);
  border-radius: var(--mg-list-radius);
  background: #fff;
  box-shadow: var(--mg-list-shadow-sm);
  padding: 28px 22px;
  text-align: center;
  color: var(--mg-list-muted);
  font-size: 16px;
}

.mg-product-list-card {
  min-width: 0;
  height: 100%;
}

.mg-product-list-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--mg-list-border);
  border-radius: var(--mg-list-radius);
  background: #fff;
  box-shadow: var(--mg-list-shadow-sm);
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mg-product-list-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--mg-list-shadow-hover);
  border-color: rgba(15, 23, 42, 0.16);
  text-decoration: none;
}

.mg-product-list-card-media {
  background: #F5FFFC;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.mg-product-list-card-media img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 140px;
  object-fit: contain;
  display: block;
  transition: transform 220ms ease;
}

.mg-product-list-card-link:hover .mg-product-list-card-media img {
  transform: scale(1.03);
}

.mg-product-list-card-placeholder {
  width: 82%;
  height: 140px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef8f5 0%, #e7f3ef 100%);
}

.mg-product-list-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
  padding: 18px 20px 18px;
  min-height: 128px;
}

.mg-product-list-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--mg-list-chip);
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mg-product-list-card-body h3 {
  margin: 0 0 6px;
  color: var(--mg-list-text);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.mg-product-list-card-body p {
  display: none;
}

.mg-product-list-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mg-list-brand);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.mg-product-list-card-cta::after {
  content: "→";
  font-size: 15px;
  line-height: 1;
  transition: transform 180ms ease;
}

.mg-product-list-card-link:hover .mg-product-list-card-cta::after {
  transform: translateX(3px);
}

.entry-content .mg-products-shortcode-wrap,
.wp-block-group .mg-products-shortcode-wrap,
.wpb_wrapper .mg-products-shortcode-wrap {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .mgg-product-template .mg-float-icon {
    animation: none;
  }

  .mg-product-list-card-link,
  .mg-product-list-card-media img,
  .mg-product-list-card-cta::after {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .mgg-product-template .mg-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mgg-product-template .mg-hero {
    grid-template-columns: 1fr;
    padding: 44px 0;
  }

  .mgg-product-template .mg-hero-right {
    order: -1;
  }

  .mgg-product-template .mg-hero-img {
    max-width: 520px;
  }

  .mgg-product-template .mg-why-grid {
    grid-template-columns: 1fr;
  }

  .mgg-product-template .mg-section.mg-sizing .mg-section-head-split {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .mgg-product-template .mg-section.mg-sizing .mg-section-head-split > div:first-child {
    display: block;
  }

  .mgg-product-template {
    --mg-float-size: 26px;
    --mg-float-top-safe: 96px;
    --mg-float-opacity: 0.09;
  }

  .mg-products-grid.mg-products-grid-cols-3,
  .mg-products-grid.mg-products-grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mgg-product-template {
    --mg-pad-x: 16px;
    --mg-sec-y: 44px;
    --mg-h1: 34px;
    --mg-h2: 26px;
    --mg-lead: 16px;
    --mg-float-size: 22px;
    --mg-float-opacity: 0.08;
    --mg-float-top-safe: 86px;
  }

  .mgg-product-template .mg-card-grid {
    grid-template-columns: 1fr;
  }

  .mgg-product-template .mg-card {
    padding: 18px;
  }

  .mgg-product-template .mg-hero + .mg-section {
    padding: 56px 0;
  }

  .mgg-product-template .mg-section.mg-sizing {
    padding: 56px 0;
  }

  .mgg-product-template .mg-section.mg-why {
    padding: 56px 0;
  }

  .mgg-product-template .mg-sizing-card {
    padding: 18px;
    border-radius: 18px;
  }

  .mgg-product-template .mg-sizing-row {
    padding: 14px 14px;
    gap: 14px;
  }

  .mgg-product-template .mg-badge {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    max-height: 50px;
    font-size: 16px;
    aspect-ratio: 1 / 1;
  }

  .mgg-product-template .mg-cta-stack {
    padding: 28px 18px;
    text-align: left;
  }

  .mgg-product-template .mg-cta-icon {
    margin: 0 0 12px;
  }

  .mgg-product-template .mg-section.mg-cleaning .mg-cleaning-card {
    padding: 22px 18px;
  }

  .mgg-product-template .mg-section.mg-cleaning .mg-cleaning-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .mgg-product-template .mg-section.mg-cleaning .mg-cleaning-box {
    padding: 16px 16px;
  }

  .mg-products-grid.mg-products-grid-cols-3,
  .mg-products-grid.mg-products-grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .mg-product-list-card-media {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    padding: 18px;
  }

  .mg-product-list-card-media img {
    max-width: 84%;
    max-height: 126px;
  }

  .mg-product-list-card-body {
    padding: 16px 16px 16px;
    min-height: 116px;
  }

  .mg-product-list-card-body h3 {
    font-size: 17px;
  }
}