﻿label.btn:has(> input[data-agotado="1"]) {
    pointer-events: none; /* no clicable */
    opacity: 0.7;
    color: #888;
}

label.btn:has(> input[data-sin-stock="1"]) {
    pointer-events: none; /* no clicable */
    opacity: 0.7;
    color: #888;
}



.inputSeleccionProducto {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.text-preline {
    white-space: pre-line;
    overflow: hidden;
}
/* Estilo base para tus botones */
.btn-custom {
    color: #333; /* color del texto cuando NO está activo */
    border: 2px solid #ccc; /* borde inicial */
    text-transform: none !important;
}

    /* Estilo cuando se selecciona (clase active) */
    .btn-custom.active {
        /*background-color: #1c927a;*/
        border: 2px solid #1a8a73; /* borde inicial */
        /*color: white;*/
    }

    .btn-custom:hover {
        background-color: rgba(158, 153, 156, 0.08);
        /* border-color: #23b899; */
        /*color: white;*/
    }

.owl-dots {
    margin-top: 0px;
}

.alerta-opcion label.btn {
    border-width: 2px !important;
    border-color: red !important;
}

.pnlCronometro {
    display: none;
}

#carousel-custom .carousel-indicators {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

    #carousel-custom .carousel-indicators li {
        height: auto !important;
    }

@media (max-width: 600px) {
    .owl-nav {
        bottom: 130px !important;
    }
}

*:disabled {
    pointer-events: none;
}

.starContainer {
    display: inline;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: auto !important;
}

.star {
    pointer-events: none;
}

/* --- Descripción colapsable --- */
.description-wrapper {
    position: relative;
    margin-bottom: 50px;
}

    .description-wrapper::before {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 2px;
        z-index: 3;
    }

    .description-wrapper::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to bottom, rgba(242, 242, 242, 0) 0%, rgba(242, 242, 242, 0.8) 50%, rgba(242, 242, 242, 1) 100%);
        pointer-events: none;
        z-index: 1;
        transition: opacity 0.3s ease;
    }

    .description-wrapper:not(:has(.description[style*="height: 150px"]))::after {
        opacity: 0;
        visibility: hidden;
    }

    .description-wrapper:not(:has(.description[style*="height: 150px"])) {
        padding-bottom: 30px;
    }

    .description-wrapper .leer-mas-descripcion {
        font-weight: bold;
        z-index: 100;
        position: absolute;
        left: 50%;
        margin-left: -65px;
        border: 2px solid #ccc;
        text-align: center;
        border-radius: 0 0 5px 5px;
        padding: 5px 10px;
        height: 34px;
        bottom: -34px;
    }

        .description-wrapper .leer-mas-descripcion:hover {
            color: #1c927a;
            border-color: #1c927a;
        }

.description {
    overflow: hidden;
    transition: height 0.5s ease-in-out !important;
}

.prod-img .wp-actions-product a {
    width: auto !important;
    height: auto !important;
}

.prod-img .wp-actions-product .icon-action {
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin: 5px;
}

.prod-img .wp-actions-product {
    display: flex;
    gap: 16px;
    margin-right: 10px;
    margin-top: 5px;
}

.prod-img a {
    background-color: unset;
}

    .prod-img a:hover {
        background-color: unset;
    }

.prod-img .wp-actions-product .icon-action:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.custom-scrollbar-relacionados {
    margin-top: -7px !important;
}

.custom-scrollbar-disenos {
    margin-top: -7px !important;
}

.otros-productos .container, .otros-disenos .container {
    margin: 0;
    padding: 0;
}

.otros-productos, .otros-disenos {
    padding-top: 0 !important;
}

.otros-disenos {
    margin-bottom: 30px;
}

.list-product .col-6 {
    padding: 0;
}

.homeProduct {
    max-width: unset !important;
}

.starContainer {
    display: inline;
    cursor: pointer !important;
    touch-action: auto !important;
}

.star {
    pointer-events: none;
}

.swiper-categorias-home .swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.shipping-grid-layout {
    margin-bottom: 5px;
    margin-top: -10px;
}

.box {
    width: 100%;
    height: auto;
}

.homeProduct {
    max-width: unset !important;
}

.wp-actions-product a {
    position: relative;
}

.icon-action {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}

.product-reviews {
    margin-top: -5px;
    display: block;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.wp-actions-product a {
    width: auto !important;
    height: auto !important;
}

.wp-actions-product .icon-action {
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin: 5px;
}

.wp-actions-product {
    display: flex;
    gap: 16px;
    margin-right: 10px;
    margin-top: 5px;
}

.prod-img a {
    background-color: unset;
}

    .prod-img a:hover {
        background-color: unset;
    }

.wp-actions-product .icon-action:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.rating-md {
    font-size: unset !important;
}

.product-reviews .theme-krajee-svg .krajee-icon {
    width: 1rem !important;
    height: 1rem !important;
    display: inline-block !important;
}

.numberRatings {
    font-size: 10pt;
    margin-left: 5px;
    color: #999;
    margin-top: 1px;
}

.container {
    padding-right: 0px;
    padding-left: 0px;
}

.row {
    margin-right: 0px;
    margin-left: 0px;
}

@media (max-width: 767px) {
    .header-row {
        padding: 0 15px;
    }

    .otros-productos .col-md-12, .otros-disenos .col-md-12 {
        padding: 0 !important;
    }
}

@media (max-width: 992px) {
    #swiper-product-thumbs {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .product-reviews .theme-krajee-svg .krajee-icon {
        width: 1.1rem !important;
        height: 1.1rem !important;
    }

    .numberRatings {
        font-size: 10pt;
    }

    .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .row {
        margin-right: -15px;
        margin-left: -15px;
    }
}

@media (min-width: 355px) {
    .prod-det {
        font-size: 0.9em;
    }
}

@media (min-width: 1024px) {
    .product-reviews .theme-krajee-svg .krajee-icon {
        width: 1.3rem !important;
        height: 1.3rem !important;
    }

    .numberRatings {
        font-size: 12pt;
    }

    .shipping-grid-layout {
        margin: -10px 0 5px 0;
    }
}

.list-product .col-6 {
    padding: 0;
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    display: none !important;
}

.product-title.title-home {
    display: block;
    width: 100%;
    height: 45px;
    overflow: hidden;
    white-space: normal;
    text-overflow: clip;
    line-height: 1.2;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.product-title.title-home {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 21px;
}

    .product-title.title-home:hover {
        color: #f24621;
    }

.row-item {
    display: flex;
    justify-content: center;
    align-items: baseline;
    width: 100%;
    gap: 5px;
    overflow: hidden;
}

.txt-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
    text-align: right;
}

.sale {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: bold;
}
/* --- Estilos del Main Swiper en el detalle de Producto --- */

.swiper-product-thumbs .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
    border: 1px solid #ddd;
}

.swiper-product-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #1c927a;
}

.swiper-product-thumbs img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-product-main .swiper-button-next,
.swiper-product-main .swiper-button-prev {
    color: #1c927a;
    transform: scale(0.6);
}

.swiper-product-main .swiper-slide img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-product-main {
    background: #f8f8f8;
}

    .swiper-product-main .wp-colors {
        position: absolute;
        bottom: 15px;
        right: 15px;
        z-index: 10;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        max-width: 80%;
    }

        .swiper-product-main .wp-colors a {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: block;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

.wrap-desc::before {
    content: "";
    border-bottom: 2px solid #ccc;
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 3;
}
