/* Full-width background section */
.catalog-product-view [data-element="product-description"] .section-bg {
    width: 100%;
}

/* Page Builder modification */
.catalog-product-view [data-element="product-description"] [data-content-type="html"] {
    margin: 0;
    padding: 0;
}

.catalog-product-view [data-element="product-description"] [data-content-type="column-group"] {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Specific blocks */
.catalog-product-view [data-element="product-description"] .column_1fr_350px,
.catalog-product-view [data-element="product-description"] .column_1fr_400px,
.catalog-product-view [data-element="product-description"] .column_1fr_450px {
    display: grid;
    gap: 36px;
    align-items: flex-start;
}

.catalog-product-view [data-element="product-description"] .column_1fr_450px > picture img,
.catalog-product-view [data-element="product-description"] .column_1fr_400px > picture img,
.catalog-product-view [data-element="product-description"] .column_1fr_350px > picture img {
    margin: 0 auto;
}

.catalog-product-view [data-element="product-description"] .column_1fr.dir-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.catalog-product-view [data-element="product-description"] .column_1fr.dir-center h2 {
    max-width: 700px;
}

.catalog-product-view [data-element="product-description"] .column_1fr.dir-center .center-image {
    max-width: 700px;
    width: 100%;
    margin-bottom: 24px;
}

.catalog-product-view [data-element="product-description"] .column_1fr.dir-center .center-image img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.catalog-product-view [data-element="product-description"] .column_1fr.dir-center .box {
    max-width: 700px;
    text-align: center;
}

.catalog-product-view [data-element="product-description"] .column_2fr,
.catalog-product-view [data-element="product-description"] .column_1fr_2fr,
.catalog-product-view [data-element="product-description"] .column_2fr_1fr {
    display: grid;
    gap: 48px;
    align-items: flex-start;
    max-width: 1236px;
    margin: 0 auto;
}

.catalog-product-view [data-element="product-description"] .column_2fr img,
.catalog-product-view [data-element="product-description"] .column_1fr_2fr img,
.catalog-product-view [data-element="product-description"] .column_2fr_1fr img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.catalog-product-view [data-element="product-description"] .column_3fr {
    display: grid;
    gap: 48px;
    align-items: flex-start;
    max-width: 1280px;
    margin: -128px auto 0;
    padding: 0 24px 40px;
}

.catalog-product-view [data-element="product-description"] .column_3fr img {
    max-width: 100%;
    height: auto;
    padding: 8px;
    border: 1px solid rgba(211,211,211,.25);
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
}

.catalog-product-view [data-element="product-description"] .column_1fr_1fr {
    display: grid;
    gap: 48px;
    align-items: flex-start;
    max-width: 1236px;
    margin: 0 auto;
}

.catalog-product-view [data-element="product-description"] .column_4fr {
    display: grid;
    gap: 20px;
    align-items: flex-start;
    max-width: 1236px;
    margin: 0 auto;
}

.catalog-product-view [data-element="product-description"] .column_4fr p {
    font-size: 14px;
}

.catalog-product-view [data-element="product-description"] .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.catalog-product-view [data-element="product-description"] .show-all-images {
    display: flex;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.catalog-product-view [data-element="product-description"] .show-all-images span {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.catalog-product-view [data-element="product-description"] .box-2columns {
    display: grid;
    gap: 40px;
    margin-top: 28px;
}

.catalog-product-view [data-element="product-description"] .box-2columns h3 {
    margin-top: 12px;
}

.catalog-product-view [data-element="product-description"] .magnified-box {
    position: relative;
}

.catalog-product-view [data-element="product-description"] .magnified-box:hover,
.catalog-product-view [data-element="product-description"] .magnified-box:active {
    cursor: zoom-in;
}

.catalog-product-view [data-element="product-description"] .magnified-box:not(.popup):hover .zoomer,
.catalog-product-view [data-element="product-description"] .magnified-box:not(.popup):active .zoomer {
    opacity: 1;
}

.catalog-product-view [data-element="product-description"] .magnified-box:not(.popup) .zoomer {
    position: absolute;
    z-index: 99;

    display: block;
    width: 340px;
    height: 340px;

    background-repeat: no-repeat;
    background-color: #fff;
    border: 4px solid whitesmoke;
    border-radius: 100%;
    box-shadow: 0 5px 10px -2px rgba(0,0,0,0.3);

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.catalog-product-view [data-element="product-description"] .magnified-box.popup .zoomer {
    position: fixed;
    top: 32px;
    right: 32px;
    bottom: 32px;
    left: 32px;
    z-index: 50;

    max-width: 1200px;
    margin: auto;
    max-height: 1024px;
    visibility: hidden;
    opacity: 0;

    border-radius: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: white;
    background-position: center;

    transition: .3s;
    cursor: default;
}

.catalog-product-view [data-element="product-description"] .magnified-box.popup .zoomer::before {
    content: '+';

    position: absolute;
    top: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;

    background: #f9e063;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 300;
    transform: translate(40%, -40%) rotate(45deg);
    cursor: pointer;
}

.catalog-product-view [data-element="product-description"] .magnified-box.popup .overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;

    visibility: hidden;
    opacity: 0;

    background: rgba(0,0,0,0.25);
    transition: .3s;
    cursor: default;
}

.catalog-product-view [data-element="product-description"] .magnified-box.popup.show .zoomer,
.catalog-product-view [data-element="product-description"] .magnified-box.popup.show .overlay {
    opacity: 1;
    visibility: visible;
}

.catalog-product-view [data-element="product-description"] .title-align {
    display: none;
}

.catalog-product-view [data-element="product-description"] .title-align + .column_2fr > div:first-child,
.catalog-product-view [data-element="product-description"] .title-align + .column_1fr_2fr > div:first-child,
.catalog-product-view [data-element="product-description"] .order-mobile > div:first-child {
    order: 2;
}




.catalog-product-view [data-element="product-description"] hr {
    display: none;
}

/* Common styles */
.catalog-product-view [data-element="product-description"] .box {
    display: grid;
    gap: 20px;
    align-items: flex-start;
}

.catalog-product-view [data-element="product-description"] h2 {
    margin-bottom: 32px;
    color: #4A4A4A;
    font-size: 24px;
    font-weight: 700;
}

.catalog-product-view [data-element="product-description"] h3 {
    margin-bottom: 12px;
    color: #4A4A4A;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
}

.catalog-product-view [data-element="product-description"] p {
    margin-bottom: 0 !important;
    color: #6F6F6F;
    font-size: 14px;
    line-height: 1.8;
}

.catalog-product-view [data-element="product-description"] ul {
    display: grid;
    gap: 6px;
    color: #6F6F6F;
    font-size: 14px;
    line-height: 1.8;
    list-style: disc;
    padding-left: 20px;
}

.catalog-product-view [data-element="product-description"] ul li {
    padding-left: 4px;
}

.catalog-product-view [data-element="product-description"] ul li img {
    display: inline;
}

.catalog-product-view [data-element="product-description"] ul:has(img) {
    list-style: none;
    padding-left: 0;
}

.catalog-product-view [data-element="product-description"] ul:has(img) li {
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
    padding-left: 0;
}

.catalog-product-view [data-element="product-description"] ol {
    display: grid;
    gap: 6px;
    color: #6F6F6F;
    font-size: 14px;
    line-height: 1.8;
    list-style: decimal;
    padding-left: 20px;
}

.catalog-product-view [data-element="product-description"] ol li {
    padding-left: 4px;
}

.catalog-product-view [data-element="product-description"] ul li img {
    width: 18px;
    margin-top: 4px !important;
}

.catalog-product-view [data-element="product-description"] ul.modern {
    margin-top: 32px;
    font-weight: 300;
    line-height: 32px;
}

.catalog-product-view [data-element="product-description"] ul.modern li::marker {
    color: #9fa197;
}

.catalog-product-view [data-element="product-description"] .text-white * {
    color: white !important;
}

/* Mobile */
@media screen and (max-width: 767px) {
    .catalog-product-view [data-element="product-description"] .magnified-box.popup {
        pointer-events: none;
    }
}

/* Tablet */
@media screen and (min-width: 768px) {
    .catalog-product-view [data-element="product-description"] .column_4fr {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-product-view [data-element="product-description"] .box-2columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    /* Page Builder modification */
    .catalog-product-view [data-element="product-description"] [data-content-type="block"],
    .catalog-product-view [data-element="product-description"] [data-content-type="column-group"] {
        padding: 80px 24px;
    }

    /* Specific blocks */
    .catalog-product-view [data-element="product-description"] .column_2fr.dir-left {
        grid-template-columns: 2fr 3fr;
    }

    .catalog-product-view [data-element="product-description"] .column_2fr.dir-right {
        grid-template-columns: 3fr 2fr;
    }

    .catalog-product-view [data-element="product-description"] .column_1fr_2fr {
        grid-template-columns: 1fr 2fr;
    }

    .catalog-product-view [data-element="product-description"] .column_2fr_1fr {
        grid-template-columns: 2fr 1fr;
    }

    .catalog-product-view [data-element="product-description"] .column_2fr img,
    .catalog-product-view [data-element="product-description"] .column_1fr_2fr img,
    .catalog-product-view [data-element="product-description"] .column_2fr_1fr img {
        margin-left: 0;
    }

    .catalog-product-view [data-element="product-description"] .column_3fr {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px;
        padding: 0 24px 40px;
    }

    .catalog-product-view [data-element="product-description"] .column_1fr_350px {
        grid-template-columns: 1fr 300px;
        gap: 56px;
    }

    .catalog-product-view [data-element="product-description"] .column_1fr_400px {
        grid-template-columns: 1fr 350px;
        gap: 56px;
    }

    .catalog-product-view [data-element="product-description"] .column_1fr_450px {
        grid-template-columns: 1fr 400px;
        gap: 56px;
    }

    .catalog-product-view [data-element="product-description"] .column_1fr_450px > picture img,
    .catalog-product-view [data-element="product-description"] .column_1fr_400px > picture img,
    .catalog-product-view [data-element="product-description"] .column_1fr_350px > picture img {
        margin-right: 0;
    }

    .catalog-product-view [data-element="product-description"] .column_1fr_350px.rich-main > picture img {
        margin-top: -60px;
    }

    .catalog-product-view [data-element="product-description"] .column_1fr_1fr {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-product-view [data-element="product-description"] .column_4fr {
        gap: 44px;
        text-align: center;
    }

    .catalog-product-view [data-element="product-description"] .show-all-images {
        margin-top: -56px;
    }

    .catalog-product-view [data-element="product-description"] .title-align {
        display: grid;
    }

    .catalog-product-view [data-element="product-description"] .title-align + .column_2fr h2,
    .catalog-product-view [data-element="product-description"] .title-align + .column_1fr_2fr h2 {
        display: none;
    }

    .catalog-product-view [data-element="product-description"] .title-align + .column_2fr > div:first-child,
    .catalog-product-view [data-element="product-description"] .title-align + .column_1fr_2fr > div:first-child,
    .catalog-product-view [data-element="product-description"] .order-mobile > div:first-child {
        order: 0;
    }

    /* Common styles */
    .catalog-product-view [data-element="product-description"] p,
    .catalog-product-view [data-element="product-description"] ul,
    .catalog-product-view [data-element="product-description"] ol {
        font-size: 16px;
    }
}

@media screen and (min-width: 1280px) {
    /* Page Builder modification */
    .catalog-product-view [data-element="product-description"] [data-content-type="block"],
    .catalog-product-view [data-element="product-description"] [data-content-type="column-group"] {
        padding: 112px 24px;
    }

    /* Specific blocks */
    .catalog-product-view [data-element="product-description"] .column_1fr_350px {
        grid-template-columns: 1fr 350px;
    }

    .catalog-product-view [data-element="product-description"] .column_1fr_400px {
        grid-template-columns: 1fr 400px;
    }

    .catalog-product-view [data-element="product-description"] .column_1fr_450px {
        grid-template-columns: 1fr 450px;
    }

    .catalog-product-view [data-element="product-description"] .column_3fr {
        padding: 0 24px 40px;
    }

    .catalog-product-view [data-element="product-description"] .column_4fr {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}


.faq-block p {
    margin-bottom: 15px;
}

/* Marker badge (moved from PageBuilder inline styles) */
.catalog-product-view [data-element="product-description"] .marker {
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 16px;
    background: #F9E063;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
}

@media screen and (max-width: 1023px) {
    .catalog-product-view [data-element="product-description"] .column_2fr.order .original {
        order: 2;
    }
}

/* ==========================================================================
   Markdown descriptions
   ContentBlocks marks every markdown-rendered section with data-md, so these
   rules leave PageBuilder descriptions untouched.
   ========================================================================== */

/* Body text: #6F6F6F only reaches 3.8:1 on the yellow section and 4.4:1 on #f0f0eb */
.catalog-product-view [data-element="product-description"] [data-md] p,
.catalog-product-view [data-element="product-description"] [data-md] ul,
.catalog-product-view [data-element="product-description"] [data-md] ol {
    color: #5c5c52;
}

/* Sub-headings sit closer to the text they introduce than to the text above */
.catalog-product-view [data-element="product-description"] [data-md] .box > h3 {
    margin-top: 12px;
    margin-bottom: -8px;
}

.catalog-product-view [data-element="product-description"] [data-md] .box > h3:first-child {
    margin-top: 0;
}

/* Text blocks (:::cta): readable line length and the same rhythm as .box */
.catalog-product-view [data-element="product-description"] [data-md] .column > h2,
.catalog-product-view [data-element="product-description"] [data-md] .column > h3,
.catalog-product-view [data-element="product-description"] [data-md] .column > p,
.catalog-product-view [data-element="product-description"] [data-md] .column > ul,
.catalog-product-view [data-element="product-description"] [data-md] .column > ol,
.catalog-product-view [data-element="product-description"] [data-md] .column > pre,
.catalog-product-view [data-element="product-description"] [data-md] .column > blockquote {
    max-width: 780px;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > p:has(img),
.catalog-product-view [data-element="product-description"] [data-md] .column > p:has(.image-missing) {
    max-width: none;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > * + * {
    margin-top: 20px;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > h2 + * {
    margin-top: 0;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > p:has(img) + *,
.catalog-product-view [data-element="product-description"] [data-md] .column > p:has(.image-missing) + * {
    margin-top: 40px;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > h3 {
    margin-top: 32px;
    margin-bottom: 0;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > h3:first-child {
    margin-top: 0;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > h3 + * {
    margin-top: 12px;
}

/* Centered text block (:::cta align=center) */
.catalog-product-view [data-element="product-description"] [data-md] .column.dir-center {
    text-align: center;
}

.catalog-product-view [data-element="product-description"] [data-md] .column.dir-center > h2,
.catalog-product-view [data-element="product-description"] [data-md] .column.dir-center > h3,
.catalog-product-view [data-element="product-description"] [data-md] .column.dir-center > p,
.catalog-product-view [data-element="product-description"] [data-md] .column.dir-center > ul,
.catalog-product-view [data-element="product-description"] [data-md] .column.dir-center > ol {
    margin-left: auto;
    margin-right: auto;
}

.catalog-product-view [data-element="product-description"] [data-md] .column.dir-center > ul,
.catalog-product-view [data-element="product-description"] [data-md] .column.dir-center > ol {
    width: fit-content;
    text-align: left;
}

/* Buttons (:::cta paragraph that only holds links) */
.catalog-product-view [data-element="product-description"] [data-md] .column > p.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.catalog-product-view [data-element="product-description"] [data-md] .column.dir-center > p.actions {
    justify-content: center;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > p.actions a {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border: 1px solid #4A4A4A;
    border-radius: 8px;
    color: #4A4A4A;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > p.actions a:first-child,
.catalog-product-view [data-element="product-description"] [data-md] .column > p.actions a:hover {
    background-color: #4A4A4A;
    color: #fff;
}

.catalog-product-view [data-element="product-description"] [data-md] .column > p.actions a:first-child:hover {
    background-color: #2f2f2f;
}

/* Feature cards (:::features cols=2 and cols=4) */
.catalog-product-view [data-element="product-description"] [data-md] .box-2columns {
    gap: 24px;
}

.catalog-product-view [data-element="product-description"] [data-md] .box-2columns:first-child {
    margin-top: 0;
}

.catalog-product-view [data-element="product-description"] [data-md] .box-2columns > div,
.catalog-product-view [data-element="product-description"] [data-md] .column_4fr > div {
    height: 100%;
    padding: 24px;
    border-radius: 12px;
    background-color: #f6f6f3;
    text-align: left;
}

.catalog-product-view [data-element="product-description"] .section-bg [data-md] .box-2columns > div,
.catalog-product-view [data-element="product-description"] .section-bg [data-md] .column_4fr > div {
    background-color: #fff;
}

.catalog-product-view [data-element="product-description"] [data-md] .box-2columns > div > h3,
.catalog-product-view [data-element="product-description"] [data-md] .column_4fr > div > h3 {
    margin: 0 0 12px;
    font-weight: 700;
}

.catalog-product-view [data-element="product-description"] [data-md] .box-2columns > div > img,
.catalog-product-view [data-element="product-description"] [data-md] .box-2columns > div > picture {
    display: block;
    margin-bottom: 12px;
}

/* Titled feature cards (:::features cols=3 with "- ### Title" items) */
.catalog-product-view [data-element="product-description"] [data-md] [data-content-type="html"] > .column_3fr {
    gap: 24px;
    max-width: none;
    margin: 0;
    padding: 0;
}

.catalog-product-view [data-element="product-description"] [data-md] .column_3fr:has(> div > h3) {
    align-items: stretch;
}

.catalog-product-view [data-element="product-description"] [data-md] .column_3fr > div:has(> h3) {
    padding: 24px;
    border-radius: 12px;
    background-color: #f6f6f3;
}

.catalog-product-view [data-element="product-description"] .section-bg [data-md] .column_3fr > div:has(> h3) {
    background-color: #fff;
}

.catalog-product-view [data-element="product-description"] [data-md] .column_3fr > div:has(> h3)::before {
    content: '';
    display: block;
    width: 36px;
    height: 36px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #f9e063 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%234A4A4A' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.catalog-product-view [data-element="product-description"] [data-md] .column_3fr > div > h3 {
    margin: 0 0 8px;
    font-weight: 700;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .catalog-product-view [data-element="product-description"] [data-md] .column_3fr:has(> div > h3) {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 1024px) {
    .catalog-product-view [data-element="product-description"] [data-md] .column_3fr > div:has(> h3) {
        padding: 32px;
    }
}

/* Placeholder for an image that is referenced but not uploaded yet */
.catalog-product-view [data-element="product-description"] [data-md] .image-missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 3 / 2;
    margin: 0 auto;
    padding: 24px;
    border: 2px dashed #9fa197;
    border-radius: 16px;
    background-color: #ecece6;
    color: #5c5c52;
    text-align: center;
}

.catalog-product-view [data-element="product-description"] [data-md] .image-missing__tag {
    padding: 4px 12px;
    border-radius: 999px;
    background-color: #f9e063;
    color: #4A4A4A;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.catalog-product-view [data-element="product-description"] [data-md] .image-missing__alt {
    max-width: 420px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.catalog-product-view [data-element="product-description"] [data-md] .image-missing__file {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
    opacity: .8;
}

/* Checklist (:::features cols=3 inside :::cta) */
.catalog-product-view [data-element="product-description"] [data-md] .column > .column_3fr {
    gap: 20px;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* A checklist on its own continues the section above it: pull it up by that
   section's bottom padding plus this section's top padding, minus a 32px gap. */
.catalog-product-view [data-element="product-description"] [data-md] .column > .column_3fr:first-child {
    margin-top: -48px;
}

.catalog-product-view [data-element="product-description"] [data-md] .column_3fr > div:has(> p:only-child) {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
}

.catalog-product-view [data-element="product-description"] [data-md] .column_3fr > div:has(> p:only-child)::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f9e063 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%234A4A4A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media screen and (min-width: 1024px) {
    /* Image next to text: the shorter column stays in view while the longer one scrolls */
    .catalog-product-view [data-element="product-description"] [data-md] [class*="column_"][class*="dir-"] > * {
        position: sticky;
        top: 104px;
    }

    .catalog-product-view [data-element="product-description"] [data-md] .box-2columns > div,
    .catalog-product-view [data-element="product-description"] [data-md] .column_4fr > div {
        padding: 32px;
    }

    .catalog-product-view [data-element="product-description"] [data-md] .column > .column_3fr {
        gap: 24px 40px;
    }

    .catalog-product-view [data-element="product-description"] [data-md] .column > .column_3fr:first-child {
        margin-top: -128px;
    }

    .catalog-product-view [data-element="product-description"] [data-md] .column_3fr > div:has(> p:only-child)::before {
        margin-top: 2px;
    }
}

/* Markdown descriptions: click an image to enlarge it and step through all images. */
[data-md] img.md-zoomable {
    cursor: zoom-in;
}

[data-md] img.md-zoomable:focus-visible {
    outline: 2px solid #4a4a4a;
    outline-offset: 4px;
}

html.md-lightbox-open {
    overflow: hidden;
}

.md-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 24px 88px;
    border: 0;
    background: rgba(30, 30, 27, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.md-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: md-lightbox-in 0.2s ease-out;
}

.md-lightbox::backdrop {
    background: transparent;
}

@keyframes md-lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.md-lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
}

.md-lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 150px);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.md-lightbox__image.is-loaded {
    opacity: 1;
    transform: none;
}

.md-lightbox__caption {
    max-width: 720px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.md-lightbox__count {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.md-lightbox__button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.md-lightbox__button:hover,
.md-lightbox__button:focus-visible {
    background: #f9e063;
    color: #2b2b28;
    outline: none;
}

.md-lightbox__close {
    top: 20px;
    right: 20px;
}

.md-lightbox__prev,
.md-lightbox__next {
    top: 50%;
    margin-top: -22px;
}

.md-lightbox__prev {
    left: 20px;
}

.md-lightbox__next {
    right: 20px;
}

.md-lightbox--single .md-lightbox__prev,
.md-lightbox--single .md-lightbox__next,
.md-lightbox--single .md-lightbox__count {
    display: none;
}

@media (max-width: 767px) {
    .md-lightbox {
        padding: 72px 16px 84px;
    }

    .md-lightbox__image {
        max-height: calc(100dvh - 260px);
        border-radius: 8px;
    }

    .md-lightbox__prev,
    .md-lightbox__next {
        top: auto;
        bottom: 20px;
        margin-top: 0;
    }

    .md-lightbox__prev {
        left: calc(50% - 52px);
    }

    .md-lightbox__next {
        right: calc(50% - 52px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .md-lightbox[open] {
        animation: none;
    }

    .md-lightbox__image {
        transform: none;
        transition: none;
    }
}
