@media (min-width: 768px) {
    .pc-card--tall .pc-card__img {
        aspect-ratio: 7 / 8 !important;
    }
}

/* Hide only decorative icons inside the side drawer menu. */
.cotonnade-modern-menu .modern-menu__list > li > a > svg.icon,
.cotonnade-modern-menu .modern-menu__list > li > a > i.icon,
.cotonnade-modern-menu .modern-menu__list > li > a > svg[class*="svg-icon-ti-"],
.cotonnade-modern-menu .modern-menu__list > li > a > i[class*="ti-"] {
    display: none !important;
    visibility: hidden !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cotonnade-modern-menu .modern-menu__list > li > a {
    gap: 0 !important;
}

/* Small breathing room between header line and categories. */
html body .section--featured-product-categories {
    padding-top: 20px !important;
}

/* Hide the desktop header menu; keep the mobile side menu available. */
@media (min-width: 992px) {
    header.header nav.navigation .navigation__center {
        display: none !important;
    }

    header.header nav.navigation,
    header.header nav.navigation > .container {
        min-height: 80px !important;
        height: 80px !important;
        align-items: center !important;
    }
}

/* Slightly smaller category icons on desktop. */
@media (min-width: 992px) {
    html body .section--featured-product-categories .cat_slider .categories-image {
        width: 130px !important;
        height: 130px !important;
        margin: 0 auto 8px !important;
    }

    html body .section--featured-product-categories .cat_slider .categories-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    html body .section--featured-product-categories .cat_slider .categories_box,
    html body .section--featured-product-categories .cat_slider .item > a {
        min-height: auto !important;
    }
}

/* Desktop only: show the cover before the category icons. */
@media (min-width: 992px) {
    html body main .ck-content {
        display: flex !important;
        flex-direction: column !important;
    }

    html body main .ck-content > * {
        order: 30;
    }

    html body main .ck-content > .simple-slider-wrapper.shortcode--sliders {
        order: 10 !important;
    }

    html body main .ck-content > .section--featured-product-categories {
        order: 20 !important;
    }
}

/* Desktop only: remove empty spacers before the reordered cover. */
@media (min-width: 992px) {
    html body main .ck-content > br,
    html body main .ck-content > p:empty {
        display: none !important;
    }
}

/* Desktop: restore the header menu in a compact row without moving logo/cart. */
@media (min-width: 992px) {
    html body header.header nav.navigation,
    html body header.header nav.navigation > .container {
        height: 80px !important;
        min-height: 80px !important;
    }

    html body header.header nav.navigation > .container {
        display: grid !important;
        grid-template-columns: 185px minmax(0, 1fr) 110px !important;
        column-gap: 12px !important;
        align-items: center !important;
    }

    html body header.header nav.navigation .navigation__left,
    html body header.header nav.navigation .navigation__right {
        position: relative !important;
        z-index: 2 !important;
        flex: none !important;
    }

    html body header.header nav.navigation .navigation__center {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    html body header.header nav.navigation .navigation__center > ul.menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    html body header.header nav.navigation .navigation__center > ul.menu > li,
    html body header.header nav.navigation .navigation__center > ul.menu > li > a {
        display: block !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    html body header.header nav.navigation .navigation__center > ul.menu > li > a {
        font-size: 10px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
    }
}

/* Desktop only: hide Accueil and Contact to prevent header menu offset. */
@media (min-width: 992px) {
    html body header.header nav.navigation .navigation__center > ul.menu > li:nth-child(1),
    html body header.header nav.navigation .navigation__center > ul.menu > li:nth-child(2) {
        display: none !important;
    }
}

/* Desktop only: keep visible header menu items on one perfectly aligned line. */
@media (min-width: 992px) {
    html body header.header nav.navigation .navigation__center > ul.menu {
        gap: 7px !important;
    }

    html body header.header nav.navigation .navigation__center > ul.menu > li,
    html body header.header nav.navigation .navigation__center > ul.menu > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 18px !important;
        line-height: 18px !important;
    }
}

/* Desktop only: hide category image icons and keep the text labels. */
@media (min-width: 992px) {
    html body .section--featured-product-categories .cat_slider .categories-image {
        display: none !important;
    }

    html body .section--featured-product-categories,
    html body .section--featured-product-categories .cat_slider,
    html body .section--featured-product-categories .cat_slider .owl-stage-outer,
    html body .section--featured-product-categories .cat_slider .owl-stage,
    html body .section--featured-product-categories .cat_slider .owl-item,
    html body .section--featured-product-categories .cat_slider .item,
    html body .section--featured-product-categories .cat_slider .categories_box,
    html body .section--featured-product-categories .cat_slider .item > a {
        min-height: 0 !important;
        height: auto !important;
    }

    html body .section--featured-product-categories {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    html body .section--featured-product-categories .cat_slider .d-block.text-center {
        width: auto !important;
        font-size: 13px !important;
        line-height: 18px !important;
    }
}

/* Desktop only: remove the homepage category row completely. */
@media (min-width: 992px) {
    html body main .ck-content > .section--featured-product-categories {
        display: none !important;
    }
}

/* Final desktop layout: remove header menu and return homepage categories. */
@media (min-width: 992px) {
    html body header.header nav.navigation .navigation__center {
        display: none !important;
    }

    html body header.header nav.navigation,
    html body header.header nav.navigation > .container {
        height: 80px !important;
        min-height: 80px !important;
        align-items: center !important;
    }

    html body main .ck-content > .section--featured-product-categories {
        display: block !important;
    }
}

/* Desktop only: restore homepage category image icons. */
@media (min-width: 992px) {
    html body main .ck-content > .section--featured-product-categories {
        display: block !important;
    }

    html body .section--featured-product-categories .cat_slider .categories-image {
        display: block !important;
        width: 130px !important;
        height: 130px !important;
        margin: 0 auto 8px !important;
    }

    html body .section--featured-product-categories .cat_slider .categories-image img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    html body .section--featured-product-categories,
    html body .section--featured-product-categories .cat_slider,
    html body .section--featured-product-categories .cat_slider .owl-stage-outer {
        height: auto !important;
        min-height: 0 !important;
    }
}