/* Keep the compact header in two columns after the phone/search removal. */
@media (max-width: 992px) {
    .elementor-51180 .elementor-element.elementor-element-478e0c2b {
        grid-template-columns: minmax(0, 1fr) 132px !important;
        grid-template-rows: minmax(0, 1fr) !important;
        align-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        height: 72px !important;
    }
    .elementor-51180 .elementor-element.elementor-element-50a72cdf {
        grid-column: 1 !important; grid-row: 1 !important;
        align-self: center !important;
    }
    .elementor-51180 .elementor-element.elementor-element-4efaade7 {
        grid-column: 2 !important; grid-row: 1 !important;
        grid-template-columns: repeat(3, 40px) !important;
        width: 132px !important; height: 40px !important;
        align-self: center !important; justify-self: end !important;
        gap: 6px !important;
    }
}

/* The smaller desktop layout must retain the space above the category tiles. */
@media (min-width: 993px) and (max-width: 1200px) {
    body.home .elementor-5533 #catalog-clothes-row { padding-top: 48px !important; }
}

@media (min-width: 768px) and (max-width: 992px) {
    body.home .elementor-5533 #catalog-clothes-row {
        padding: 40px 24px 48px !important;
    }
    body.home .elementor-5533 #catalog-clothes-row > .e-con-inner {
        width: 100% !important; max-width: none;
        padding: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto auto !important;
        gap: 20px !important;
    }
    body.home .elementor-5533 #catalog-clothes-row .piton-design-card.forc3 {
        height: auto !important; min-height: 0 !important;
        aspect-ratio: 4 / 5;
        background-size: contain !important;
        background-position: center bottom !important;
        background-color: #f4f4f4;
        background-blend-mode: darken;
    }
    body.home .elementor-5533 #catalog-clothes-row .elementor-element-acf5ca4 { grid-area: 1 / 1 !important; }
    body.home .elementor-5533 #catalog-clothes-row .elementor-element-dba774d { grid-area: 1 / 2 !important; }
    body.home .elementor-5533 #catalog-clothes-row .catalog-center {
        grid-area: 2 / 1 / auto / -1 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(3, auto) !important;
        height: auto !important; gap: 20px !important;
    }
    body.home .elementor-5533 #catalog-clothes-row .piton-design-card.forc4 {
        height: auto !important; min-height: 0 !important; aspect-ratio: 3 / 2;
    }

    /* Do not squeeze the consultation copy and form into narrow sidebars. */
    body.piton-has-consultation .elementor .piton-design-consultation {
        display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch !important;
        background-image: none !important; min-height: 0 !important;
        padding: 0 !important; gap: 0 !important; overflow: hidden;
    }
    body.piton-has-consultation .elementor .piton-design-consultation > .elementor-element-3ad7439 {
        grid-column: 1 / -1; width: 100% !important; flex: none !important;
        padding: 28px !important; display: block;
    }
    body.piton-has-consultation .elementor .piton-design-consultation .elementor-heading-title {
        font-size: 24px !important; line-height: 1.35 !important;
    }
    body.piton-has-consultation .elementor .piton-design-consultation .elementor-element-3e83763 {
        width: 100% !important; max-width: none !important;
        margin-bottom: 0 !important; font-size: 16px !important; line-height: 1.5 !important;
    }
    body.piton-has-consultation .elementor .piton-design-consultation > .elementor-element-aa9fa11 {
        display: flex !important; width: 100% !important; margin: 0 !important;
    }
    body.piton-has-consultation .elementor .piton-design-consultation .elementor-element-d9f2089 {
        display: block !important; width: 100% !important; height: 100%;
    }
    body.piton-has-consultation .elementor .piton-design-consultation .elementor-element-d9f2089 img {
        display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top;
    }
    body.piton-has-consultation .elementor .piton-design-consultation > .elementor-element-e9bd733 {
        width: 100% !important; flex: none !important; padding: 24px !important;
    }
    body.piton-has-consultation .piton-design-consultation #fluentform_2 .ff-el-form-control {
        font-size: 18px !important; line-height: 1.3 !important; min-height: 56px !important;
    }
    body.piton-has-consultation .piton-design-consultation #fluentform_2 .ff-btn-submit {
        display: flex; align-items: center; justify-content: center;
        min-height: 56px !important; height: auto !important;
        padding: 12px !important; font-size: 14px !important; line-height: 1.3 !important;
        white-space: normal; width: 100% !important; margin-inline: 0 !important;
    }
    body.piton-has-consultation .piton-design-consultation #fluentform_2 .ff-el-form-check-label { padding-left: 30px !important; }

    /* Use the working material carousel throughout the tablet range. */
    .msmats-outer .msmats {
        display: block !important; height: auto !important; max-height: none !important;
        width: 100%; min-width: 0; left: 0 !important; overflow: hidden;
    }
    .msmats-outer .slots,
    .msmats-outer .msmats-panel { display: none !important; }
    .msmats-outer .msmats-swiper {
        display: grid !important; grid-template-columns: minmax(0, 1fr);
        gap: 18px; width: 100%; padding: 0; overflow: hidden;
    }
    .msmats-outer .msmats-swiper .swiper-wrapper { display: flex; align-items: stretch; height: auto; min-width: 0; }
    .msmats-outer .msmats-swiper .swiper-slide {
        display: flex; flex-direction: column; justify-content: flex-start !important;
        flex-shrink: 0 !important; min-width: 0; box-sizing: border-box;
        gap: 20px; height: auto; padding: 0;
        opacity: 1; transform: none; box-shadow: none; overflow: hidden;
    }
    .msmats-outer .msmats-swiper .swiper-slide-content {
        display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
        width: 100%; max-width: none; min-height: 440px;
        background: #f4f4f4; border-radius: 24px; overflow: hidden;
    }
    .msmats-outer .msmats-swiper .msmats-left {
        padding: 28px 24px !important; min-width: 0;
        max-height: none; justify-content: flex-start !important;
    }
    .msmats-outer .msmats-swiper .msmats-title {
        font-size: 24px !important; line-height: 1.3 !important; margin: 0 0 24px;
    }
    .msmats-outer .msmats-swiper .msmats-list {
        display: grid; gap: 22px !important; margin: 0;
        min-width: 0; max-width: none;
    }
    .msmats-outer .msmats-swiper .msmats-list li {
        display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px;
        align-items: center; margin: 0;
    }
    .msmats-outer .msmats-swiper .msmats-list span {
        font-size: 16px !important; line-height: 1.45 !important; margin: 0 !important;
    }
    .msmats-outer .msmats-swiper .msmats-ico { width: 36px; height: 36px; }
    .msmats-outer .msmats-swiper .msmats-photo {
        display: block; width: 100%; height: 100%; min-width: 0;
        background-size: cover; background-position: right center !important;
        background-repeat: no-repeat; border: 0; border-radius: 0;
    }
    .msmats-outer .msmats-swiper .msmats-cta {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px; width: 100%; max-width: none; margin: 0 !important;
    }
    .msmats-outer .msmats-swiper .msmats-cta .btn {
        height: auto; min-height: 52px; padding: 12px;
        font-size: 15px; line-height: 1.3; white-space: normal;
        text-align: center; border-radius: 6px;
    }
    .msmats-outer .msmats-swiper .msmats-cta .btn:only-child { grid-column: 1 / -1; }
    .msmats-outer .msmats-swiper .swiper-button-custom {
        display: flex; justify-content: flex-start; gap: 12px;
        position: static !important; margin: 0 !important;
        inset: auto !important; transform: none;
    }
    .msmats-outer .msmats-swiper .swiper-button-custom button { top: 0 !important; }
    body.home .elementor-5533 .elementor-element-090e371 { padding-bottom: 40px !important; }
}

/* Give the footer enough room for the logo, three link groups and payments. */
@media (min-width: 768px) and (max-width: 1200px) {
    .elementor-12792 .elementor-element.elementor-element-3a3cbf82 { padding: 40px 32px !important; }
    .elementor-12792 .elementor-element.elementor-element-28882b21 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        grid-template-areas: 'brand brand' 'delivery legal' 'info social' 'payments payments' 'details details';
        gap: 32px !important;
    }
    .elementor-12792 .elementor-element-28882b21 > .elementor-element {
        min-width: 0; width: 100% !important; max-width: none !important;
        margin: 0 !important; border: 0 !important; padding: 0 !important;
    }
    .elementor-12792 .elementor-element.elementor-element-037d719 {
        grid-area: brand !important; display: flex; flex-direction: row;
        align-items: center; justify-content: flex-start; gap: 24px;
    }
    .elementor-12792 .elementor-element.elementor-element-2580168 { width: 90px !important; flex: 0 0 90px; }
    .elementor-12792 .elementor-element.elementor-element-44a677f4 {
        width: auto !important; min-width: 0; margin: 0 !important;
        font-size: 14px; line-height: 1.5; text-align: left;
    }
    .elementor-12792 .elementor-element-44a677f4 p { margin: 0; }
    .elementor-12792 .elementor-element.elementor-element-62c561cf { grid-area: delivery !important; }
    .elementor-12792 .elementor-element.elementor-element-1443c7c3 { grid-area: legal !important; }
    .elementor-12792 .elementor-element.elementor-element-7cea7d08 { grid-area: info !important; }
    .elementor-12792 .elementor-element.elementor-element-40d62f05 { grid-area: social !important; align-self: start; }
    .elementor-12792 .elementor-element-40d62f05 ul { display: flex; flex-wrap: wrap; gap: 10px; }
    .elementor-12792 .elementor-element-40d62f05 li { margin: 0 !important; }
    .elementor-12792 .elementor-element-28882b21 .elementor-icon-list-text { font-size: 14px !important; line-height: 1.5; }
    .elementor-12792 .elementor-element.elementor-element-3307dc63 { grid-area: payments !important; }
    .elementor-12792 .elementor-element.elementor-element-1737dafc {
        display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
        justify-content: flex-start; gap: 24px;
    }
    .elementor-12792 .elementor-element-1737dafc > .elementor-element {
        width: 72px !important; min-width: 0; flex: 0 0 72px;
    }
    .elementor-12792 .elementor-element-1737dafc img { width: 72px; height: 38px; object-fit: contain; }
    .elementor-12792 .elementor-element-57f49fc7 .elementor-button { min-height: 48px; font-size: 14px; }
    .elementor-12792 .elementor-element.elementor-element-2ab28dc4 { grid-area: details !important; font-size: 13px; line-height: 1.5; }
}
