/* Keep the identical single-product related rail INSIDE the homepage content container. */.dg-homepage-builder-section--best-selling-products-slider{width:calc(100% - 40px);max-width:1440px;margin:22px auto;min-width:0;box-sizing:border-box;overflow:hidden}.dg-homepage-builder-section--best-selling-products-slider .dg-home-best-seller{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;overflow:hidden!important}.dg-homepage-builder-section--best-selling-products-slider .dg-home-best-seller .dgpp-related-standard.dgpp-related-wide{width:100%!important;max-width:100%!important;margin:0!important;padding:12px 0 16px!important;min-width:0!important;overflow:hidden!important}.dg-homepage-builder-section--best-selling-products-slider .dg-home-best-seller .dgpp-related-wide>.dgpp-section-title{padding-inline:0!important}.dg-homepage-builder-section--best-selling-products-slider .dg-home-best-seller .dgpp-related-grid{max-width:100%!important}@media(max-width:767px){.dg-homepage-builder-section--best-selling-products-slider{width:calc(100% - 24px);margin:18px auto}.dg-homepage-builder-section--best-selling-products-slider .dg-home-best-seller .dgpp-related-standard.dgpp-related-wide{padding:8px 0 12px!important}}
/* Homepage-only layout controls; the product-page related rail is unaffected. */.dg-home-best-seller .dgpp-related-grid.dgpp-related-two-rows{column-gap:var(--dg-hbs-gap,12px)!important;row-gap:var(--dg-hbs-gap,12px)!important}.dg-home-best-seller[data-hbs-rows="1"] .dgpp-related-grid.dgpp-related-two-rows{grid-template-rows:minmax(0,1fr)!important}.dg-home-best-seller[data-hbs-rows="1"] .dgpp-related-grid.dgpp-related-two-rows>.dgpp-related-tile{border-block-start:0!important}.dg-home-best-seller .dgpp-related-navigation[hidden]{display:none!important}

/* v1.80.77: Scope all media overrides to the homepage grid slider only.
   The product-page related-gallery stylesheet enforces its own square media,
   padding, and object-fit with !important. Our more-specific selectors must
   override those rules without affecting product detail pages. */.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__media{position:relative!important;display:block!important;width:100%!important;max-width:220px!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;margin-inline:auto!important;padding:0!important;flex:none!important;border:0!important;border-radius:12px!important;overflow:hidden!important;background:transparent!important;box-sizing:border-box!important;}.dgpp-root.dg-home-best-seller.dg-home-best-seller--square .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__media{aspect-ratio:1 / 1!important;}.dgpp-root.dg-home-best-seller.dg-home-best-seller--golden .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__media{aspect-ratio:1.618033989 / 1!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__media > img.dgph-card__image{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-width:100%!important;max-height:none!important;margin:0!important;padding:0!important;border-radius:12px!important;box-sizing:border-box!important;object-position:center!important;object-fit:cover!important;aspect-ratio:auto!important;transform:none!important;}
/* Original upload ratio: the card renderer already includes the original
   attachment's width/height ratio as an inline aspect-ratio on the media box. */.dgpp-root.dg-home-best-seller.dg-home-best-seller--natural .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__media{aspect-ratio:auto!important;padding:0!important;}.dgpp-root.dg-home-best-seller.dg-home-best-seller--natural .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__media > img.dgph-card__image{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;object-fit:contain!important;}.dg-home-best-seller--hide-price .dgpp-related-tile .dgph-card__price,
.dg-home-best-seller--hide-price .dgpp-related-tile .dgpp-related-price{display:none!important;}

/* Only the homepage grid loop uses an un-snapped circular rail. */.dg-home-best-seller .dgpp-related-grid.dg-hbs-seamless{scroll-snap-type:none!important;scroll-behavior:auto!important;}.dg-home-best-seller .dgpp-related-grid.dg-hbs-seamless>.dgpp-related-tile{scroll-snap-align:none!important;}

/* v1.80.79 — Homepage grid cards need breathing room around each image.
   Keep this scoped to the homepage rail: product-page related cards retain
   their existing layout. Padding belongs on the tile, not the scroll track,
   so seamless-loop column measurements and clone offsets remain unchanged. */.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-grid.dgpp-related-two-rows > .dgpp-related-tile{padding:9px !important;min-width:0 !important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-grid.dgpp-related-two-rows > .dgpp-related-tile > .dgph-card,
.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-grid.dgpp-related-two-rows > .dgpp-related-tile > .dgpp-related-card{min-width:0 !important;}@media (max-width: 767px){.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-grid.dgpp-related-two-rows > .dgpp-related-tile{padding:7px !important;}}

/* v1.80.82: Homepage grid-slider heading must precede its subtitle.
   Keep navigation alongside the main heading, not on the subtitle row. */.dg-homepage-builder-section--best-selling-products-slider .dg-home-best-seller .dgpp-related-wide > .dgpp-section-title > h2{order:1!important;}.dg-homepage-builder-section--best-selling-products-slider .dg-home-best-seller .dgpp-related-wide > .dgpp-section-title > .dgpp-related-navigation{order:2!important;}.dg-homepage-builder-section--best-selling-products-slider .dg-home-best-seller .dgpp-related-wide > .dgpp-section-title > span{order:3!important;flex-basis:100%!important;}

/* v1.85.3 — Grid-slider prices must never be truncated by the related-card
   48px fixed height or the discount badge. Wrap the badge onto its own row
   when the complete price needs more room. Only this homepage rail is affected. */.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__price{flex:0 0 auto!important;flex-wrap:wrap!important;height:auto!important;min-height:48px!important;max-height:none!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;align-items:center!important;gap:3px 5px!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main{display:block!important;flex:1 1 max-content!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere!important;text-align:left!important;line-height:1.5!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main :is(del,ins){display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main :is(.woocommerce-Price-amount,.amount){display:inline-block!important;max-width:100%!important;vertical-align:baseline!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main bdi{white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;text-overflow:clip!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main .woocommerce-Price-currencySymbol{white-space:nowrap!important;margin-inline-start:3px!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-discount-percent{max-width:100%!important;font-size:10px!important;padding-inline:5px!important;}

/* v1.85.7 — Mobile grid prices have the full card width. Keep desktop intact. */@media (max-width:767px){.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-grid.dgpp-related-two-rows{grid-template-rows:repeat(2,auto)!important;grid-auto-columns:max(124px,calc(100% / var(--dgpp-related-mobile,1.5)))!important;}.dgpp-root.dg-home-best-seller[data-hbs-rows="1"] .dgpp-related-standard.dgpp-related-wide .dgpp-related-grid.dgpp-related-two-rows{grid-template-rows:auto!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile > :is(.dgph-card,.dgpp-related-card),
  .dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__link{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__body{padding:7px 0!important;flex:1 0 auto!important;height:auto!important;max-height:none!important;overflow:visible!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__price{flex-direction:column!important;align-items:stretch!important;justify-content:flex-end!important;flex:0 0 auto!important;height:auto!important;min-height:48px!important;max-height:none!important;padding:2px 0!important;gap:4px!important;overflow:visible!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main{order:0!important;flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;font-size:12px!important;line-height:1.5!important;overflow-wrap:anywhere!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main :is(ins,.woocommerce-Price-amount,.amount,bdi){font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main del,
  .dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main del :is(.woocommerce-Price-amount,.amount,bdi){font-size:10px!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-price-main .woocommerce-Price-currencySymbol{font-size:10px!important;white-space:nowrap!important;margin-inline-start:2px!important;}.dgpp-root.dg-home-best-seller .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgpp-related-discount-percent{order:1!important;align-self:flex-start!important;height:auto!important;min-height:22px!important;max-height:none!important;}.dgpp-root.dg-home-best-seller.dg-home-best-seller--hide-price .dgpp-related-standard.dgpp-related-wide .dgpp-related-tile .dgph-card__price{display:none!important;}}

/* Grid card skeleton */.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending{--dg-amazing-skeleton-color:color-mix(in srgb, var(--dg-hps-card-bg,#fff) 87%, #85829a);}.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending .dgph-card__media > img.dgph-card__image{opacity:0!important;}.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending .dgph-card__media::before{content:"";position:absolute;inset:10px;border-radius:14px;background:#eeedf2;background:var(--dg-amazing-skeleton-color,#eeedf2);pointer-events:none;}.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending :is(.dgph-card__title,.dgph-card__rating,.dgph-card__price,.dgph-card__course-meta){position:relative;color:transparent!important;text-shadow:none!important;}.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending :is(.dgph-card__rating,.dgph-card__price,.dgph-card__course-meta) > *{visibility:hidden!important;}.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending .dgph-card__title{color:transparent!important;background:linear-gradient(var(--dg-amazing-skeleton-color,#eeedf2),var(--dg-amazing-skeleton-color,#eeedf2)) right 0 top 4px/94% 9px no-repeat,linear-gradient(var(--dg-amazing-skeleton-color,#eeedf2),var(--dg-amazing-skeleton-color,#eeedf2)) right 0 top calc(1.65em + 4px)/68% 9px no-repeat!important;}.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending :is(.dgph-card__rating,.dgph-card__price,.dgph-card__course-meta)::after{content:"";position:absolute;inset-inline-start:0;top:4px;width:42%;height:9px;border-radius:4px;background:#eeedf2;background:var(--dg-amazing-skeleton-color,#eeedf2);pointer-events:none;}.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending .dgph-card__price::after{width:66%;height:12px;}.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending :is(.dgph-card__labels-row,.dg-sale-countdown){visibility:hidden!important;}@media(max-width:767px){.dgpp-root.dg-home-best-seller[data-hbs-progressive="1"] .dgpp-related-tile > .dgph-card.dg-amazing-card-pending .dgph-card__media::before{border-radius:12px;}}
