@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
    body.single-product .maethe-product-gallery .maethe-product-photo,
    body.single-product .maethe-product-gallery .maethe-product-photo[role="button"] {
        cursor: none !important;
    }
}

#maethe-option-dialog {
    width: min(440px, calc(100% - 36px));
    box-sizing: border-box;
    padding: 24px;
    background: #fff;
    color: #171717;
    border: 1px solid #171717;
    border-radius: 0;
    font: 12px/1.7 Arial, Helvetica, sans-serif;
}
#maethe-option-dialog::backdrop { background: rgb(0 0 0 / .35); }
#maethe-option-dialog h2 { margin: 0 0 12px; font: 400 15px/1.4 Arial, Helvetica, sans-serif; }
#maethe-option-dialog form { text-align: right; }
#maethe-option-dialog button {
    border: 1px solid #171717;
    background: #fff;
    color: inherit;
    min-width: 70px;
    padding: 8px 16px;
    font: inherit;
}

.maethe-selection { margin: 48px 0; }
.maethe-selection h2 {
    margin: 0 0 20px;
    padding-inline: clamp(16px, 4vw, 64px);
    color: #171717;
    font: 400 15px/1.4 Arial, Helvetica, sans-serif;
}
.maethe-selection--look { padding-inline: clamp(16px, 3.5vw, 72px); }
.maethe-selection--look h2 { text-align: center; }
.maethe-selection-gallery { position: relative; }
.maethe-selection-track { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; }
.maethe-selection-track::-webkit-scrollbar { display: none; }
.maethe-selection-track .maethe-card { flex: 0 0 calc((100% - 12px) / 4); }
.maethe-selection--look .maethe-selection-track .maethe-card { flex-basis: calc((100% - 8px) / 3); }
.maethe-selection-gallery > button {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #fff;
    mix-blend-mode: difference;
    padding: 8px 14px;
    font: 28px/1 Arial, Helvetica, sans-serif;
}
.maethe-selection-prev { left: 0; }
.maethe-selection-next { right: 0; }
.maethe-selection [hidden] { display: none !important; }
.maethe-selection-scrollbar {
    position: relative;
    width: 92%;
    height: 20px;
    margin: 18px auto 0;
    background: linear-gradient(#d0d0d0, #d0d0d0) center / 100% 2px no-repeat;
}
.maethe-selection-scroll-thumb {
    position: absolute;
    top: calc(50% - 1px);
    left: var(--maethe-thumb-start, 0%);
    width: var(--maethe-thumb-width, 100%);
    height: 2px;
    background: #171717;
    pointer-events: none;
}
.maethe-selection-scrollbar .maethe-selection-progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: ew-resize;
}
.maethe-selection-scrollbar:focus-within { outline: 1px solid #171717; outline-offset: 3px; }
@media (max-width: 760px) {
    .maethe-selection-track .maethe-card,
    .maethe-selection--look .maethe-selection-track .maethe-card { flex-basis: calc((100% - 4px) / 2); }
}

/* Complete the look : une rangée, répartie entre tous les produits liés. */
.maethe-selection--look .maethe-selection-track {
    gap: clamp(1px, .2vw, 4px);
    overflow: hidden;
}
.maethe-selection--look .maethe-selection-track .maethe-card {
    flex: 1 1 0;
    min-width: 0;
}
.maethe-selection--look .maethe-selection-gallery > button { display: none; }
@media (max-width: 760px) {
    .maethe-selection--look { padding-inline: 8px; }
}
