/**
 * @fileoverview Product Template Shared Styles
 * 
 * This file contains CSS styles that are 100% identical across all product templates.
 * Only styles that are exactly the same in every file are included here.
 * 
 * Used by: All product templates (producto.php, producto-*.php, carrito.php, etc.)
 */

/* Product Image and Gallery - 100% IDENTICAL across all files */
.scaem-product-img {
    width: 100%;
    position: relative;
}

.scaem-product-gallery {
    width: calc(20% - 5px);
    margin: 5px;
    margin-left: 0;
}

.scaem-product-gallery.seleccionada,
.scaem-product-gallery:hover {
    border-color: var(--themecolor);
}

/* Desktop Help Overlay - 100% IDENTICAL across all files */
.scaem-ayuda-desktop {
    background: var(--terthemecolor);
    color: #fff;
    display: none;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    text-align: center;
}

.scaem-ayuda-desktop > b {
    font-size: 1.05rem;
    display: block;
    text-align: center;
    width: 100%;
    text-align: center;
}

.scaem-ayuda-desktop > em {
    color: var(--secthemecolor);
}

.scaem-ayuda-desktop > span {
    color: var(--themecolor);
    font-weight: bold;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.scaem-ayuda-desktop > span > b {
    font-size: 1.3rem;
}

@media (max-width: 568px) {
    .scaem-ayuda-desktop {
        position: fixed;
        top: 65px;
        height: auto;
        z-index: 5;
    }

    .scaem-ayuda-desktop.no-mobile {
        display: none;
    }

    .scaem-main-section {
        padding: 20px 0;
    }
}

/* Product Filter Radio Buttons - 100% IDENTICAL across all files */
.scaem-product-filter[type='radio'] {
    display: none;
}

.scaem-product-filter + label,
.scaem-product-cantidad,
.btn-cantidad,
.scaem-product-envio {
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    padding: 5px;
}

.scaem-product-envio {
    height: 33px;
}

.scaem-product-envio option:disabled {
    font-weight: bold;
}

.scaem-product-filter + label {
    box-sizing: initial;
    float: left;
    margin-right: 10px;
}

.scaem-product-filter + label em {
    display: inline-block;
}

s .scaem-product-filter:disabled + label {
    background-color: #ddd;
}

/* Payment method validation styles */
.scaem-product-filter.error + label,
.form-control.error {
    border-color: var(--secthemecolor);
}

.scaem-product-filter:checked + label,
.form-control.valid {
    box-shadow: inset 0 0 0 1px var(--themecolor);
    border: 2px solid #4CD03A;
}

.scaem-product-cantidad {
    color: #999;
    font-size: 1.3rem;
    font-weight: 400;
    width: 40px;
    padding: 0px 5px;
    text-align: center;
    margin: 0;
    vertical-align: middle;
}

.btn-cantidad {
    margin: 0;
    padding: 3px 5px;
}

.btn-cantidad:hover {
    border-color: var(--themecolor);
}

.scaem-product-price {
    display: inline-block;
}

#costos {
    display: inline-block;
    padding-left: 10px;
    color: #767676;
}

#costos span {
    display: block;
    line-height: 16px;
}

#costos #costo-u {
    text-decoration: line-through;
}

.scaem-btnarea {
    margin-left: 0;
}

/* Swiper Styles - 100% IDENTICAL across all files */
.swiper-wrapper,
.swiper-slide {
    height: initial;
}

.swiper-pagination {
    position: initial;
}

.swiper-pagination-bullet {
    width: calc(20% - 10px);
    height: initial;
    opacity: 1;
    border-radius: 4px;
    border: 1px solid #eee;
    margin: 5px !important;
    background-color: transparent;
}

.swiper-pagination-bullet-active {
    border-color: var(--themecolor);
}

select option {
    font-weight: bold;
    color: var(--terthemecolor);
}

select option span {
    font-weight: lighter;
    color: #767676;
}

/* PayPal Button Styles - 100% IDENTICAL across all files */
#paypal-button-container {
    width: 100%;
    overflow: hidden;
    display: block;
    float: left;
    margin-bottom: 15px;
    text-align: center;
    color: var(--terthemecolor);
    font-weight: bold;
}

#btn-form-pago-paypal {
    width: 100%;
    margin-bottom: 15px;
}

/* Button States - 100% IDENTICAL across all files */
/* .botones-listos {
    display: none;
} */

.botones-espera,
.botones-espera:hover,
.botones-espera:focus {
    background-color: transparent;
    border-color: var(--secthemecolor);
    color: var(--secthemecolor);
}

/* Discount Processing - 100% IDENTICAL across all files */
.tramita-descuento {
    display: none;
    margin-top: 20px;
}

.tramita-descuento .scaem-btn {
    font: 400 14px/20px Poppins, Arial, Helvetica, sans-serif;
    padding: 5px 10px;
    margin-top: 10px;
    display: block;
    opacity: 0;
}

.tramita-descuento #compromiso.compromiso {
    opacity: 1;
    background-color: #1abc9c;
}

.tramita-descuento #compromiso.compromiso span {
    display: none;
}

.tramita-descuento #compromiso.compromiso .compromiso {
    display: inline-block;
}

.tramita-descuento #compromiso.sin-compromiso {
    opacity: 1;
}

.tramita-descuento #compromiso.sin-compromiso span {
    display: inline-block;
}

.tramita-descuento #compromiso.sin-compromiso .compromiso {
    display: none;
}

@media (max-width: 900px) {
    .tramita-descuento input[type=button] {
        width: 100%;
    }
}

/* Specifications Table - 100% IDENTICAL across all files */
@media (min-width: 1000px) {
    .tabla-especificaciones li > em {
        display: inline-block;
        width: calc(100% - 430px);
        float: right;
    }
}

.tabla-especificaciones.tabla-modal li > em {
    display: block;
    width: 100%;
    float: left;
}

/* Modal Styles - 100% IDENTICAL across all files */
#modal-envios .modal-body {
    max-height: 70vh;
    overflow-y: scroll;
}

/* Spinner Animation - 100% IDENTICAL across all files */
.fa-spinner {
    animation: loader 1.5s infinite;
}

@keyframes loader {
    from {
        transform: rotateZ(0deg);
    }

    to {
        transform: rotateZ(360deg);
    }
}

/* Product Filter List Styles - 100% IDENTICAL across all files */
.scaem-filter-list li {
    border-bottom: 1px solid #eee;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    box-sizing: border-box;
    padding: 10px 5px;
    position: relative;
}

.scaem-filter-list li:nth-child(2) {
    border-top: 1px solid #eee;
}

.scaem-filter-list li .check {
    position: absolute;
    top: 10px;
    right: 5px;
    color: #ddd;
}

.scaem-filter-list li .check span {
    display: none;
    font-size: 1.3rem;
}

/* Validation icon styles moved to main filter-list-styles.css to avoid conflicts */

.scaem-filter-list li .expand-modulo {
    position: absolute;
    top: 10px;
    right: calc(10px + 1.3rem);
}

.scaem-filter-list li .expand-modulo i {
    display: none;
    font-size: 1.3rem;
}

.scaem-filter-list li .expand-modulo i.closed {
    display: block;
}

.scaem-filter-list li .expand-modulo.open i {
    display: none;
}

.scaem-filter-list li .expand-modulo.open i.open {
    display: block;
}

.scaem-filter-list li + li {
    margin-top: 0px !important;
}

.scaem-filter-list li > span {
    display: block;
    margin-bottom: 3px;
    vertical-align: middle;
}

.scaem-filter-list li > .producto-descuento {
    display: inline-block;
    color: var(--secthemecolor);
}

.scaem-filter-list li > .producto-descuento b {
    text-decoration: line-through;
    font-weight: normal;
}

.scaem-filter-list li > .producto-descuento#dto-pago {
    color: var(--themecolor);
}

.scaem-filter-list li > .producto-descuento#dto-envio-gratis {
    animation: gratis 1s infinite;
    color: var(--themecolor);
    font-style: italic;
    font-weight: bold;
}

@keyframes gratis {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    51% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Radio Promo Styles - 100% IDENTICAL across all files */
.radio-promo {
    display: none
}

.radio-promo + label {
    display: block;
    border: 1px solid #eee;
    padding: 5px;
    padding-left: 30px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    min-height: 40px;
}

.radio-promo:checked + label {
    border-color: var(--themecolor);
}

.radio-promo + label:before {
    content: '';
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 5px;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 1px solid #eee;
    border-radius: 100%;
}

.radio-promo:checked + label:before {
    border-color: var(--themecolor);
    background-color: var(--themecolor);
    box-shadow: inset 0px 0px 0px 2px #fff;
}

.radio-promo + label .parpadeo {
    color: var(--themecolor);
    font-style: italic;
}

.radio-promo + label span {
    color: var(--themecolor);
    font-style: italic;
    font-weight: normal;
}

.radio-promo + label b {
    color: var(--terthemecolor);
    font-weight: normal;
    font-style: italic;
}

.radio-promo + label em {
    color: var(--themecolor);
    display: inline;
}

.radio-promo:checked + label b,
.radio-promo:checked + label em,
.radio-promo:checked + label span {
    font-weight: bold;
}

.radio-promo + label .ahorro {
    display: none;
    color: var(--secthemecolor);
}

.radio-promo + label .ahorro em {
    color: var(--secthemecolor);
}

.radio-promo:checked + label .ahorro {
    display: inline-block;
}

/* Color Selection Styles - 100% IDENTICAL across all files */
.cont-color {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-right: 10px;
}

.cont-color .color {
    margin-right: 0px !important;
    margin-top: 3px;
    margin-bottom: 3px !important;
}

.color div {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.color div span {
    mix-blend-mode: difference;
    color: #fff;
}

#piezas-color {
    color: var(--secthemecolor);
    display: inline;
    font-weight: bold;
}

/* Aside Button Styles - 100% IDENTICAL across all files */
.scaem-onlineoption-content .scaem-btnarea .scaem-btn {
    background-color: var(--themecolor);
    box-shadow: 0 9px 20px 0 rgba(0, 0, 0, 0.2);
}