/*
 * Casa Marcus - Ficha individual de producto
 * CM-PRODUCT-DETAIL-V1
 * Disponible, agotado, mayoreo y relacionados.
 * Solo presentacion; conserva la logica Magento/Codazon.
 */

/* GALERIA */
body.catalog-product-view .product.media .fotorama__stage {
    background: #fff !important;
    border: 1px solid #e9e9ef !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* INFORMACION PRINCIPAL */
body.catalog-product-view .product-info-main .page-title {
    color: #252666 !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    margin-bottom: 14px !important;
}

body.catalog-product-view .product-info-main .stock {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: fit-content !important;
    padding: 7px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin: 8px 0 !important;
}

body.catalog-product-view .product-info-main .stock.available {
    color: #187447 !important;
    background: #e9f7ef !important;
}

body.catalog-product-view .product-info-main .stock.unavailable {
    color: #b42332 !important;
    background: #fcebed !important;
}

body.catalog-product-view .product-info-main .product.attribute.sku {
    color: #667085 !important;
    font-size: 13px !important;
}

body.catalog-product-view .product-info-main .price-box.price-final_price {
    margin: 16px 0 !important;
}

body.catalog-product-view .product-info-main
.price-box.price-final_price .price {
    color: #e89a00 !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* MAYOREO EXCLUSIVO EN TIENDA */
body.catalog-product-view .product-info-main .prices-tier {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 14px 0 !important;
    padding: 14px 16px !important;
    background: #f7f8fc !important;
    border: 1px solid #e4e8f2 !important;
    border-left: 4px solid #e89a00 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(37,38,102,.04) !important;
}

body.catalog-product-view .product-info-main .prices-tier .type {
    color: #252666 !important;
    font-weight: 700 !important;
}

/* CANTIDAD Y COMPRA */
body.catalog-product-view
.product-add-form .field.qty .control {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    width: min(100%, 220px) !important;
    min-height: 44px !important;
    padding: 5px !important;
    background: #f4f5f9 !important;
    border-radius: 9px !important;
}

body.catalog-product-view
.product-add-form .field.qty .qty-ctl button {
    min-width: 34px !important;
    min-height: 34px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #252666 !important;
}

body.catalog-product-view .product-add-form input.qty {
    color: #252666 !important;
    text-align: center !important;
    border-radius: 6px !important;
}

body.catalog-product-view #product-addtocart-button {
    min-height: 48px !important;
    padding: 12px 18px !important;
    background: #252666 !important;
    border: 1px solid #252666 !important;
    border-radius: 9px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

body.catalog-product-view #product-addtocart-button:hover {
    background: #37398b !important;
}

body.catalog-product-view .product-info-main .action.buy-now {
    min-height: 48px !important;
    padding: 12px 18px !important;
    background: #fff !important;
    border: 1px solid #252666 !important;
    border-radius: 9px !important;
    color: #252666 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

body.catalog-product-view
.product-info-main .product-social-links {
    padding-top: 16px !important;
    margin-top: 18px !important;
    border-top: 1px solid #e9e9ef !important;
}

/* AVISO DE DISPONIBILIDAD - AMASTY */
body.catalog-product-view #form-validate-stock {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 20px !important;
    margin: 18px 0 !important;
    background: #f7f8fc !important;
    border: 1px solid #e0e4ef !important;
    border-left: 4px solid #252666 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 12px rgba(37,38,102,.05) !important;
}

body.catalog-product-view
#form-validate-stock input[type="email"] {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
    background: #fff !important;
    border: 1px solid #d8deeb !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

body.catalog-product-view
#form-validate-stock input[type="email"]:focus {
    border-color: #252666 !important;
    box-shadow: 0 0 0 2px rgba(37,38,102,.10) !important;
}

body.catalog-product-view
#form-validate-stock button[type="submit"] {
    min-height: 46px !important;
    padding: 10px 14px !important;
    background: #252666 !important;
    border: 1px solid #252666 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* PRODUCTOS RELACIONADOS - CODAZON STYLE 17 */
body.catalog-product-view
.block.related .products-related.product-list-style-17 .product-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid #e9e9ef !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(20,25,70,.06) !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.product-item-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.product-item-top {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.product-item-photo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 8px !important;
    margin: 0 0 6px !important;
    background: #fff !important;
    border: 1px solid #ededf2 !important;
    border-radius: 10px !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.product-image-container {
    width: 100% !important;
    max-width: 100% !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.product-image-wrapper {
    position: relative !important;
    height: 145px !important;
    padding-bottom: 0 !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.product-image-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.product-item-details {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    text-align: left !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.product-item-name {
    display: block !important;
    height: auto !important;
    min-height: 54px !important;
    margin: 6px 0 !important;
    color: #252666 !important;
    font-size: 13px !important;
    line-height: 18px !important;
    font-weight: 500 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.price-box {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    text-align: left !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.price-box .price {
    color: #e89a00 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
input[type="checkbox"] {
    accent-color: #252666 !important;
    cursor: pointer !important;
}

body.catalog-product-view
.block.related .products-related.product-list-style-17
.product-item:has(input[type="checkbox"]:checked) {
    border-color: #252666 !important;
    box-shadow: 0 0 0 1px #252666 !important;
}

/* CELULAR */
@media (max-width: 768px) {
    body.catalog-product-view .product-info-main .page-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    body.catalog-product-view .product-info-main
    .price-box.price-final_price .price {
        font-size: 29px !important;
    }

    body.catalog-product-view .product-info-main .prices-tier {
        padding: 12px !important;
        margin: 12px 0 !important;
    }

    /* Cantidad a todo el ancho */
    body.catalog-product-view
    .product-add-form .box-tocart .field.qty .control {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.catalog-product-view
    .product-add-form .box-tocart .cart-qty {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.catalog-product-view
    .product-add-form .box-tocart .cart-qty input.qty {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    body.catalog-product-view
    .product-add-form .box-tocart .cart-qty .qty-ctl {
        flex: 0 0 40px !important;
    }

    body.catalog-product-view #product-addtocart-button,
    body.catalog-product-view .product-info-main .action.buy-now {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Amasty: correo arriba y boton abajo */
    body.catalog-product-view #form-validate-stock {
        padding: 15px !important;
        margin: 14px 0 !important;
    }

    body.catalog-product-view
    #form-validate-stock .notification-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.catalog-product-view
    #form-validate-stock .input-fields.fieldset,
    body.catalog-product-view
    #form-validate-stock .actions-toolbar.amxnotif_guest_action,
    body.catalog-product-view
    #form-validate-stock .actions-toolbar.amxnotif_guest_action .primary {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    body.catalog-product-view
    #form-validate-stock input.amxnotif-guest-email,
    body.catalog-product-view
    #form-validate-stock .actions-toolbar.amxnotif_guest_action
    button[type="submit"] {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        margin: 0 !important;
    }

    /* Relacionados compactos */
    body.catalog-product-view
    .block.related .block-title,
    body.catalog-product-view
    .block.related .block-title strong {
        font-size: 22px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-item {
        height: auto !important;
        min-height: 0 !important;
        align-self: flex-start !important;
        padding: 10px !important;
    }

    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-item-info,
    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-item-details {
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
        justify-content: flex-start !important;
    }

    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-image-wrapper {
        height: 115px !important;
    }

    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-item-name,
    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-item-name a {
        font-size: 13px !important;
        line-height: 18px !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
    }

    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-item-name {
        min-height: 54px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .price-box .price {
        font-size: 18px !important;
    }

    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-item-actions a,
    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-item-actions button {
        background: #252666 !important;
        border-color: #252666 !important;
        color: #fff !important;
        border-radius: 6px !important;
    }

    body.catalog-product-view
    .block.related .products-related.product-list-style-17
    .product-item-actions {
        margin-top: 8px !important;
        margin-bottom: 0 !important;
    }
}

/* =====================================================
   CM-PDP-WHOLESALE-QTY-V1
   Cantidad escritorio y precio de mayoreo oculto
   ===================================================== */

/* CANTIDAD EN ESCRITORIO */

@media (min-width: 769px) {

    body.catalog-product-view
    .product-add-form .box-tocart .field.qty .control {
        width: 220px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.catalog-product-view
    .product-add-form .box-tocart .cart-qty {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.catalog-product-view
    .product-add-form .box-tocart .cart-qty input.qty {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    body.catalog-product-view
    .product-add-form .box-tocart .cart-qty .qty-ctl {
        flex: 0 0 40px !important;
    }
}

/* ENLACE PARA MOSTRAR PRECIO MAYOREO */

body.catalog-product-view a#click-me {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    margin: 14px 0 !important;
    padding: 11px 16px !important;
    background: #fff !important;
    color: #252666 !important;
    border: 1px solid #e89a00 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

/* MODAL EXCLUSIVO DEL PRECIO DE MAYOREO */

body.catalog-product-view
.modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
.modal-inner-wrap {
    display: flex !important;
    flex-direction: column !important;
    width: min(520px, calc(100vw - 32px)) !important;
    max-width: 520px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 40px) !important;
    margin: 5vh auto !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 36px rgba(0,0,0,.18) !important;
}

body.catalog-product-view
.modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
.modal-header {
    min-height: 0 !important;
    padding: 18px 22px 12px !important;
}

body.catalog-product-view
.modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
.modal-title {
    color: #252666 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

body.catalog-product-view
.modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
.modal-content {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    padding: 12px 22px 20px !important;
    overflow-y: auto !important;
}

body.catalog-product-view
.modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
.prices-tier {
    margin: 0 !important;
    padding: 16px !important;
    background: #f7f8fc !important;
    border: 1px solid #e4e8f2 !important;
    border-left: 4px solid #e89a00 !important;
    border-radius: 9px !important;
}

body.catalog-product-view
.modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
.modal-footer {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 22px 18px !important;
    border-top: 1px solid #e9e9ef !important;
    text-align: right !important;
}

body.catalog-product-view
.modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
.modal-footer button.mymodal1 {
    min-height: 38px !important;
    padding: 9px 20px !important;
    background: #252666 !important;
    border: 1px solid #252666 !important;
    border-radius: 7px !important;
    color: #fff !important;
}

/* MODAL DE MAYOREO EN CELULAR */

@media (max-width: 768px) {

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier) {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-inner-wrap {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        width: calc(100vw - 32px) !important;
        max-width: 520px !important;
        margin: 24px auto !important;
        box-sizing: border-box !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-header {
        padding-right: 58px !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-header .action-close {
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        background: #f5f6fa !important;
        border: 1px solid #e4e8f0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        color: #252666 !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-header .action-close::before {
        color: #252666 !important;
        font-size: 15px !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-footer button.mymodal1 {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* CM-PDP-WHOLESALE-DESKTOP-ALIGN-V2 */
/* Alineacion definitiva del modal de mayoreo en escritorio */

@media (min-width: 769px) {

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-inner-wrap {
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    :is(.modal-header, .modal-content, .modal-footer) {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        translate: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-header {
        padding: 18px 58px 12px 22px !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-content {
        padding: 12px 22px 20px !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-footer {
        padding: 12px 22px 18px !important;
        text-align: right !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-header .action-close {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        background: #f5f6fa !important;
        border: 1px solid #e4e8f0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        color: #252666 !important;
    }

    body.catalog-product-view
    .modal-popup:has(.modal-footer button.mymodal1):has(.modal-content .prices-tier)
    .modal-header .action-close::before {
        color: #252666 !important;
        font-size: 15px !important;
    }
}

/* ==================================================
   CM-CONFIGURABLE-OPTIONS-V1
   Selectores configurables Casa Marcus
   ================================================== */

/* Conservar select original para Magento */
body.catalog-product-view
.product-options-wrapper select.cm-configurable-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    pointer-events: none !important;
}

/* Contenedor general */
body.catalog-product-view
.product-options-wrapper .cm-configurable-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 470px;
    margin: 10px 0 22px;
    box-sizing: border-box;
}

/* Dos alternativas descriptivas */
body.catalog-product-view
.product-options-wrapper
.cm-configurable-options.is-descriptive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Botones */
body.catalog-product-view
.product-options-wrapper .cm-configurable-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 70px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #dce1eb;
    border-radius: 10px;
    color: #252666;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s;
}

body.catalog-product-view
.product-options-wrapper
.is-descriptive .cm-configurable-option {
    align-items: flex-start;
    min-height: 78px;
    text-align: left;
}

body.catalog-product-view
.product-options-wrapper
.cm-configurable-option:hover:not(:disabled) {
    border-color: #252666;
    background: #f8f8fd;
}

/* Opcion seleccionada */
body.catalog-product-view
.product-options-wrapper
.cm-configurable-option.is-selected {
    border: 2px solid #252666;
    background: #f3f3fb;
}

body.catalog-product-view
.product-options-wrapper
.cm-configurable-option.is-selected::after {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 9px;
    color: #252666;
    font-size: 13px;
    font-weight: 700;
}

/* Nombres y diferencias de precio */
body.catalog-product-view
.product-options-wrapper .cm-configurable-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

body.catalog-product-view
.product-options-wrapper .cm-configurable-extra {
    color: #667085;
    font-size: 12px;
    line-height: 1.3;
}

body.catalog-product-view
.product-options-wrapper .cm-configurable-extra.has-extra {
    color: #d88b00;
    font-weight: 700;
}

/* Opciones no disponibles */
body.catalog-product-view
.product-options-wrapper .cm-configurable-option:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* Adaptacion movil */
@media (max-width: 768px) {

    body.catalog-product-view
    .product-options-wrapper
    .cm-configurable-options.is-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    /* Hasta tres opciones compactas */
    body.catalog-product-view
    .product-options-wrapper
    .cm-configurable-options.is-compact:not(
        :has(> .cm-configurable-option:nth-child(4))
    ) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.catalog-product-view
    .product-options-wrapper
    .cm-configurable-options.is-descriptive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    body.catalog-product-view
    .product-options-wrapper .cm-configurable-option {
        padding: 12px 8px;
        min-height: 66px;
    }

    body.catalog-product-view
    .product-options-wrapper .cm-configurable-name {
        font-size: 14px;
    }
}

/* ==================================================
   CM-PDP-COLOR-SWATCHES-V1
   Muestras de color con etiquetas - Casa Marcus
   ================================================== */

body.catalog-product-view
.product-info-main
.swatch-attribute .swatch-option.color {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 8px 35px 44px 12px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border: 2px solid #b9c1ce !important;
    border-radius: 50% !important;
    background-clip: padding-box !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    cursor: pointer !important;
}

/* Nombre debajo de cada muestra */

body.catalog-product-view
.product-info-main
.swatch-attribute .swatch-option.color::before {
    content: attr(data-option-label) !important;
    position: absolute !important;
    display: block !important;
    top: calc(100% + 9px) !important;
    left: 50% !important;
    width: 104px !important;
    transform: translateX(-50%) !important;
    color: #414b60 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 16px !important;
    text-align: center !important;
    white-space: normal !important;
    pointer-events: none !important;
}

/* Color seleccionado */

body.catalog-product-view
.product-info-main
.swatch-attribute .swatch-option.color.selected {
    border-color: #252666 !important;
    outline: 2px solid #252666 !important;
    outline-offset: 3px !important;
}

body.catalog-product-view
.product-info-main
.swatch-attribute .swatch-option.color.selected::before {
    color: #252666 !important;
    font-weight: 700 !important;
}

/* Navegacion con teclado */

body.catalog-product-view
.product-info-main
.swatch-attribute .swatch-option.color:focus-visible {
    outline: 2px solid #252666 !important;
    outline-offset: 3px !important;
}
