.productset-container {
    color: #000;
    font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
}

.productset-container p.lead {
    font-size: 16px;
}

.productset-container ul {
    font-size: 16px;
}

.productset-container h1 {
    font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    color: #000;
    -moz-transform: none;
    -webkit-transform: none;
    -ms-transform: none;
}

p.productset strong{
    font-weight: 600 !important;
}

.productset-description {
    text-align: left;
    font-size: 16px;
}

p.productset-subtitle strong{
    font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600 !important;
}

.productset-img {
    width: 100%;
}

.img-wrapper {
    position: relative;
    display: inline-block;
}

.img-wrapper img {
    display: block;
}

.productset-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-wrapper:hover .productset-img-hover {
    opacity: 1;
}

/* The original catalog images share a 681 × 772 canvas. Keep that canvas intact. */
.productset-container .img-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 681 / 772;
    overflow: hidden;
}

.productset-container .img-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.productset-container .img-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding-bottom: 0 !important;
}

.productset-container .img-wrapper:focus-within .productset-img-hover {
    opacity: 1;
}

/* Legacy JPGs contain opaque bands around the photo. Hide only those bands,
   preserving the unscaled subject and the hair that rises above the backdrop. */
.productset-container .catalog-cutout-blazer img {
    clip-path: polygon(0 6.2%, 40.4% 6.2%, 40.4% 5.4%, 40.7% 4.7%,
        41.1% 4.2%, 41.8% 3.5%, 42.5% 3%, 43.5% 2.3%,
        44% 1.8%, 45.4% 1.1%, 53.2% 1.1%, 54.4% 1.7%,
        55.1% 2.3%, 56% 3%, 56.9% 3.8%, 57.6% 4.8%,
        58.2% 5.8%, 58.2% 6.2%, 100% 6.2%,
        100% 93.8%, 0 93.8%);
}

.productset-container .catalog-cutout-smoking img {
    clip-path: polygon(0 5.9%, 38.8% 5.9%, 38.8% 5.3%, 39.4% 4.7%,
        40.4% 3.9%, 41.2% 3.2%, 42% 2.7%, 42.7% 2.3%,
        43.8% 1.9%, 45% 1.5%, 46% 1.1%, 49.5% 1.1%,
        51.8% 1.5%, 53% 1.9%, 53.8% 2.4%, 54.8% 2.9%,
        55.7% 3.6%, 56.4% 4.3%, 56.9% 5%, 56.9% 5.9%, 100% 5.9%,
        100% 93.8%, 0 93.8%);
}

.productset-container .catalog-cutout-flat img {
    clip-path: inset(6.2% 0 6.2%);
}

@media (prefers-reduced-motion: reduce) {
    .productset-container .productset-img-hover {
        transition: none;
    }
}

.productset-container h2 {
    font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: #3c697f;
    -moz-transform: none;
    -webkit-transform: none;
    -ms-transform: none;
}

.productset-container h5 {
    font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #3c697f;
    -moz-transform: none;
    -webkit-transform: none;
    -ms-transform: none;
}

.productset-container .price {
    font-weight: 500;
    text-align: left;
    font-size: 16px;
    color: #3c697f;
}

.productset-container .request_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 171px;
    text-align: center;
    font-size: 16px;
    margin: 16px 0px;
    background: lightgrey;
    color: black;
    padding: 8px 24px;
}

.productset-container .request_btn:hover {
    text-decoration: none;
    color: white;
    background: #3c6d7f;
}

.productset-icons img {
    width: 77px;
}

.productset-container .col-lg-3 {
    display: flex;
    flex-direction: column;
}

.productset-container .request_btn {
    margin-top: auto;
}

.productset-container .productset-footer-note {
    margin-bottom: 40px;
}

/* The catalog cards share the same vertical reading order and baseline. */
.productset-container .catalog-grid {
    align-items: stretch;
}

.productset-container .catalog-grid > [class*="col-"] {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem !important;
}

.productset-container .catalog-grid .productset {
    min-height: 2.8em;
    margin: .75rem 0 .2rem;
}

.productset-container .catalog-grid .productset-description {
    min-height: 3.5em;
    margin: 0 0 .3rem !important;
}

.productset-container .catalog-grid .price {
    min-height: 3.2em;
    margin: 0;
}

.productset-container .catalog-grid .request_btn {
    margin: .9rem 0 0;
}

/* Share each row's title, material, price and action tracks. Short copy stays
   close together while the price and action baselines still match across cards. */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 768px) {
        .productset-container .catalog-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            row-gap: .25rem;
        }

        .productset-container .catalog-grid > [class*="col-"] {
            display: grid;
            grid-row: span 5;
            grid-template-rows: subgrid;
            width: 100%;
            max-width: 100%;
            margin-bottom: 3.5rem !important;
        }

        .productset-container .catalog-grid .productset,
        .productset-container .catalog-grid .productset-description,
        .productset-container .catalog-grid .price {
            min-height: 0;
            margin: 0 !important;
        }

        .productset-container .catalog-grid .productset {
            padding-top: .8rem;
        }

        .productset-container .catalog-grid .productset-description,
        .productset-container .catalog-grid .price {
            padding-top: .2rem;
        }

        .productset-container .catalog-grid .request_btn {
            margin: .85rem 0 0;
        }
    }

    @media (min-width: 992px) {
        .productset-container .catalog-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }
}

.productset-container .set-row > .col-lg-9 {
    padding-left: 15px;
}

/* Alternate the photo and text on desktop; keep the established mobile order. */
@media (min-width: 992px) {
    .productset-container .set-row--reverse > .col-lg-3 { order: 2; }
    .productset-container .set-row--reverse > .col-lg-9 { order: 1; }
}

@media (max-width: 991px) {
    .productset-container .premium-set-content {
        order: 1;
    }

    .productset-container .set-row .productset-img[src^="/front/images/vyhodne-sety/"] {
        margin: 1.5rem auto 0;
    }
}

@media (max-width: 767px) {
    .productset-container .catalog-grid .productset,
    .productset-container .catalog-grid .productset-description,
    .productset-container .catalog-grid .price {
        min-height: 0;
    }

    .productset-container .catalog-grid .productset-description {
        margin-bottom: .3rem;
    }

    .productset-container .catalog-grid > [class*="col-"] {
        margin-bottom: 5rem !important;
    }
}

/* All three sets use the same reading order and compact section rhythm. */
.productset-container .productset-subtitle {
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.productset-container .set-row {
    align-items: flex-start;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 28px !important;
}

.productset-container .set-row + .set-row {
    border-top: 1px solid #e4e8e9;
    padding-top: 28px !important;
}

.productset-container .set-row .productset-img[src^="/front/images/vyhodne-sety/"] {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
}

.productset-container .set-row h2 {
    margin-top: 0;
}

@media (max-width: 991px) {
    .productset-container .set-row .productset-img[src^="/front/images/vyhodne-sety/"] {
        margin: 0 auto 18px !important;
    }

    .productset-container .set-row > .col-lg-9 {
        padding-left: 15px;
    }
}
