:root {
    --pb-widget-title-size: 24px;
}

@media (max-width: 991.98px) {
    :root { --pb-widget-title-size: 22px; }
}

@media (max-width: 575.98px) {
    :root { --pb-widget-title-size: 20px; }
}

:is(.pb-editor, .pb-live-preview-document).device-desktop { --pb-widget-title-size: 24px; }
:is(.pb-editor, .pb-live-preview-document).device-tablet { --pb-widget-title-size: 22px; }
:is(.pb-editor, .pb-live-preview-document).device-mobile { --pb-widget-title-size: 20px; }

.pb-section-heading h2,
:is(.pb-decathlon-widget, [data-theme-section]) .section-heading h2,
:is(.pb-decathlon-widget-deals, [data-theme-section]) .deal-box h2,
:is(.pb-decathlon-widget-goals, [data-theme-section]) .goal-box h2,
.pb-decathlon-widget-trust .dt-trust-pro__title,
:is(.pb-faq, .pb-contextual-faq, .pb-generic-widget, .pb-legacy-section) > h2,
.pb-newsletter > div > h2 {
    font-size: var(--pb-widget-title-size) !important;
}

.section-block.pb-service-benefits {
    --benefit-surface: linear-gradient(150deg, #fff 36%, #f4faf7);
    --benefit-line: #dbe9e3;
    --benefit-ink: #143643;
    --benefit-muted: #4c6570;
    --benefit-icon-surface: #e8f5df;
    --benefit-icon-ink: #3c6c1d;
    padding-block: clamp(14px, 1.8vw, 26px);
}

:is(.theme-dark, .dark-mode, .dark) .pb-service-benefits {
    --benefit-surface: linear-gradient(150deg, #1a3039, #182b30);
    --benefit-line: #3a5357;
    --benefit-ink: #f1f8fa;
    --benefit-muted: #c0d1d8;
    --benefit-icon-surface: #304c34;
    --benefit-icon-ink: #c6eab0;
}

.pb-service-benefits > .container-xxl {
    container: service-benefits / inline-size;
}

.pb-service-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
    gap: clamp(10px, 1.3vw, 18px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pb-service-benefit {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 92px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--benefit-line);
    border-radius: 16px;
    background: var(--benefit-surface);
    box-shadow: 0 6px 18px rgb(18 55 70 / 5%);
}

.pb-service-benefit-icon {
    display: grid;
    width: 46px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 13px;
    background: var(--benefit-icon-surface);
    color: var(--benefit-icon-ink);
    font-size: 23px;
    line-height: 1;
}

.pb-service-benefit-copy b {
    display: block;
    color: var(--benefit-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.pb-service-benefit-copy p {
    margin: 3px 0 0;
    color: var(--benefit-muted);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@container service-benefits (max-width: 570px) {
    .pb-service-benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
        gap: 10px;
    }

    .pb-service-benefit {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 8px;
        padding: 12px;
    }

    .pb-service-benefit-icon {
        width: 37px;
        border-radius: 10px;
        font-size: 19px;
    }

    .pb-service-benefit-copy b { font-size: 14px; }
}

/* Keep the hero artwork in HTML so the browser can prioritize it. */
.hero-pro img.hero-background{
  display:block;
  object-fit:cover;
  object-position:var(--hero-slide-bg-position,var(--hero-bg-position,center center));
  background-color:transparent;
}

.hero-pro.hero-pagination-dots .hero-swiper-pagination .swiper-pagination-bullet{
  display:inline-grid!important;
  place-items:center;
  min-width:24px;
  width:24px!important;
  height:24px!important;
  padding:0;
  border:0;
  background:transparent!important;
  opacity:1!important;
}
.hero-pro.hero-pagination-dots .hero-swiper-pagination .swiper-pagination-bullet::before{
  content:"";
  display:block;
  width:8px;
  height:8px;
  border-radius:99px;
  background:#9aa9ad;
}
.hero-pro.hero-pagination-dots .hero-swiper-pagination .swiper-pagination-bullet-active::before{
  width:24px;
  background:var(--hero-accent);
}
.hero-pro.hero-pagination-dots .hero-swiper-pagination .swiper-pagination-bullet:focus-visible{
  outline:2px solid var(--hero-accent);
  outline-offset:2px;
}

/* Keep two complete product cards visible on compact homepage rails. */
@media (max-width: 1024px) {
    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] {
        --pb-home-product-gap: 12px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"].pb-product-swiper:not(.swiper-initialized) > .swiper-wrapper,
    :is(.pb-page-home, [data-theme-page="home"]) .homepage-deals-pro__products [data-pb-swiper-kind="product"].deals-swiper:not(.swiper-initialized) > .swiper-wrapper {
        display: grid !important;
        grid-template-columns: none !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc((100% - var(--pb-home-product-gap)) / 2);
        gap: var(--pb-home-product-gap) !important;
        overflow-x: auto;
        scroll-snap-type: inline mandatory;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"]:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
        display: flex !important;
        width: auto !important;
        margin: 0 !important;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"]:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide:nth-child(odd) {
        scroll-snap-align: start;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"]:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide:only-child {
        grid-column: span 2;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .swiper-slide > .pb-empty {
        width: 100%;
    }

    :is(.pb-page-home, [data-theme-page="home"]) .homepage-deals-pro__products [data-pb-swiper-kind="product"].deals-swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
        display: flex !important;
        width: auto !important;
        max-width: none !important;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card :is(.pb-card-body, .pb-product-meta-row, .pb-card-meta, .pb-price-stack) {
        min-inline-size: 0;
        max-inline-size: 100%;
        overflow-wrap: anywhere;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card h3 {
        min-block-size: 3em;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-card-actions-primary {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .product-card-pro {
        min-inline-size: 0;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 767.98px) {
    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] {
        --pb-home-product-gap: 8px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card {
        border-radius: 16px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"].pb-product-swiper > :is(.swiper-button-next, .swiper-button-prev) {
        inline-size: 32px;
        block-size: 32px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-product-media {
        padding: 6px 6px 0;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-product-image {
        border-radius: 12px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-product-image img {
        padding: 4px;
        object-fit: contain;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-card-body {
        gap: 6px;
        padding: 8px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-card-meta {
        padding: 3px 7px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-price {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 4px 6px;
        min-block-size: 0;
        padding-top: 6px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-price strong {
        font-size: 15px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-save-chip {
        padding: 3px 7px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-card-actions-primary .pb-btn {
        min-inline-size: 0;
        min-block-size: 44px;
        padding: 5px;
        gap: 4px;
        border-radius: 10px;
        font-size: 11px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-card-actions-primary .pb-btn i {
        flex: 0 0 18px;
        inline-size: 18px;
        block-size: 18px;
        font-size: 11px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-product-floating-actions {
        inset: 9px auto auto 9px;
        gap: 3px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-product-floating-actions .pb-icon-btn {
        inline-size: 28px;
        min-block-size: 28px;
        border-radius: 8px;
        font-size: 12px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-product-topline {
        inset: 8px 8px auto 42px;
        flex-wrap: wrap;
        gap: 3px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-product-tags {
        inset: auto 8px 8px 42px;
        max-inline-size: none;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-product-topline .pb-discount {
        position: static;
        padding: 3px 7px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .pb-product-card .pb-product-tags span {
        min-inline-size: 0;
        max-inline-size: 100%;
        padding: 3px 6px;
        font-size: 10px;
        overflow-wrap: anywhere;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .product-card-pro {
        padding: 8px !important;
        border-radius: 16px !important;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .product-card-pro .product-img {
        height: auto !important;
        max-block-size: 176px;
        aspect-ratio: 1;
        border-radius: 12px !important;
        margin-block-end: 6px;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .product-card-pro .product-img img {
        object-fit: contain;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .product-card-pro .product-card-actions {
        flex-direction: column;
        opacity: 1;
        transform: none;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .product-card-pro .add-cart {
        min-block-size: 44px;
        padding: 5px !important;
        gap: 4px !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .product-card-pro .product-card-cta span {
        white-space: normal;
    }

    :is(.pb-page-home, [data-theme-page="home"]) [data-pb-swiper-kind="product"] .product-card-pro .product-card-cta i {
        flex: 0 0 18px;
        inline-size: 18px;
        block-size: 18px;
        font-size: 11px;
    }
}
