/* ==========================================================================
   Custom eCommerce Styles - Image Normalization & Responsive Optimization
   ========================================================================== */

/* 1. Contenedores de Imagen Uniformes para Productos */
.product-img-wrap,
.product__img,
.product-holder,
.tab-product__item .thumb,
.rd-product__item .product__img,
.rd-product__single .rd-product__img {
    position: relative;
    width: 100%;
    height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    margin-bottom: 12px;
}

.product-img-wrap a,
.product__img a,
.product-holder > a,
.tab-product__item .thumb a,
.rd-product__item .product__img a,
.rd-product__single .rd-product__img a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
}

.product-img-wrap img,
.product__img img,
.product-holder img,
.tab-product__item .thumb img,
.rd-product__item .product__img img,
.rd-product__single .rd-product__img img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

.product__item:hover img,
.tab-product__item:hover img,
.rd-product__item:hover img,
.product-holder:hover img {
    transform: scale(1.05);
}

/* 2. Tarjetas de Productos con Altura Homogenea */
.tab-product__item,
.product__item,
.rd-product__item,
.woocommerce-content-inner .products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tab-product__item:hover,
.product__item:hover,
.rd-product__item:hover,
.woocommerce-content-inner .products li.product:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* 3. Titulos de Productos Estandarizados (2 Lineas Clamping) */
.product__title,
.tab-product__item .content .title,
.rd-product__item .product__content .product__title,
.woocommerce-content-inner .product-info .product__title {
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin: 8px 0 6px 0 !important;
    height: 42px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product__title a,
.tab-product__item .content .title a {
    color: #2d3748 !important;
    font-weight: 600;
}

.product__title a:hover,
.tab-product__item .content .title a:hover {
    color: var(--color-primary, #FF8717) !important;
}

/* 4. Precios y Disponibilidad */
.product__price,
.tab-product__item .content .price,
.woocommerce-content-inner .product-info .product__price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--color-primary, #FF8717) !important;
    margin-bottom: 8px !important;
}

.product__available {
    font-size: 12px !important;
    color: #718096;
    margin-bottom: 6px;
    display: inline-block;
}

/* 5. Catalogo Shop - Grid Responsivo para PC y Telefono (Movil) */
.woocommerce-content-inner .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-content-inner .products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* 6. Miniaturas en Detalle de Producto */
.product-details-thumb {
    width: 100%;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #edf2f7;
}

.product-details-thumb img {
    max-height: 400px;
    max-width: 100%;
    object-fit: contain;
}

.product-nav-thumb img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* 7. Optimizaciones para Pantallas Moviles (Smartphones / TLF) */
@media (max-width: 767.98px) {
    .woocommerce-content-inner .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-img-wrap,
    .product__img,
    .product-holder,
    .tab-product__item .thumb,
    .rd-product__item .product__img {
        height: 150px !important;
        padding: 6px;
    }

    .product__title,
    .tab-product__item .content .title {
        font-size: 13px !important;
        height: 36px !important;
    }

    .product__price,
    .tab-product__item .content .price {
        font-size: 14px !important;
    }

    .shop_table_responsive tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        display: block;
        padding: 10px;
    }

    .product__action li a {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        font-size: 13px !important;
    }
}

/* 8. Botones de favoritos activos */
.favorite-btn.is-favorite i,
.favorite-btn.active i {
    color: #e53e3e !important;
    font-weight: 900 !important;
}

/* 9. Armonía y Alineación de Cajas de Beneficios / Características (Features) */
.feature {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.feature__wrap {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.feature__item {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    padding: 18px 14px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s ease !important;
}

.feature__item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06) !important;
    border-color: #cbd5e1 !important;
}

.feature__item .icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.feature__item .icon img {
    max-width: 22px !important;
    max-height: 22px !important;
    width: auto !important;
    height: auto !important;
}

.feature__item .content {
    width: auto !important;
    flex: 1 !important;
}

.feature__item .content h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    color: #1e293b !important;
}

.feature__item .content p {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
    color: #64748b !important;
}

@media (max-width: 1199px) {
    .feature__wrap {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 767.98px) {
    .feature__wrap {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px !important;
    }
}

/* 10. Footer Horizontal y Estructura Limpia */
.footer {
    background-color: #111827;
    color: #94a3b8;
}

.footer__main {
    padding-top: 60px !important;
    padding-bottom: 50px !important;
}

.footer__widget .title {
    color: #f8fafc !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-bottom: 10px;
}

.footer__widget .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--color-primary, #FF8717);
}

.footer__info li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
}

.footer__info li i {
    width: 20px;
    color: var(--color-primary, #FF8717);
}

.quick-links li {
    margin-bottom: 10px !important;
}

.quick-links li a {
    color: #94a3b8 !important;
    font-size: 14px !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.quick-links li a:hover {
    color: #ffffff !important;
    padding-left: 5px;
}

.footer__bottom {
    border-top: 1px solid #1e293b !important;
    padding: 20px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px;
}

.footer__copyright {
    color: #64748b !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.footer__social a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #1e293b !important;
    color: #cbd5e1 !important;
    margin-right: 8px !important;
    transition: all 0.2s ease !important;
}

.footer__social a:hover {
    background: var(--color-primary, #FF8717) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #ffffff !important;
}

.floating-whatsapp-btn .whatsapp-tooltip {
    visibility: hidden;
    width: 150px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1;
    right: 70px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.floating-whatsapp-btn:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
}

