/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
@media (max-width: 767px) {
 .js-qv-mask #product-images-thumbs .swiper-wrapper {
    top: -40px;
	}

}
@media (min-width: 767px){
	 .js-qv-mask #product-images-thumbs .swiper-wrapper {
    top: 6rem;
    margin-bottom: 70px;
    padding: 1rem;
 }
}

 input#quantity_wanted {
    padding: 15px;
    text-align: center;
}
@media (max-width:600px){

    img.img-fluid.swiper-lazy {
        /*max-height: 320px!important;*/
    }


}
 @media (max-width: 767px){
.ets_mm_block_content ul.ets_mm_categories li.has-sub ul.active {
    height: auto;
    overflow-y: auto;
}
}

 #lgcomment .content-button {
    display: none;
}
@media (max-width: 767px){
.ets_mm_megamenu.hook-custom {
    margin-top: 0px!important;
    background: transparent;
}
}
 .product_p_price_container {
    margin-top: 0!important;
 }

 .product-comments-additional-info {
    display: none;
}
.product_header_container {
    padding-bottom: 0px;
    margin-bottom: 0px;
}
 p.referencia {
    margin-bottom: 15px!important;
}

 .product-additional-info {
 
    width: 100%!important;
}
a.elementor-button.elementor-size-md.boton-comprar-ahora {
    display: none;
}
div#estimateddelivery {
    max-width: fit-content!important;
}
@media (max-width:766px){

 .has-sub > a {
    font-weight: bold;
}
}

a.btn.btn-secondary.mt-3.mb-3 {
    background-color: #ddd!important;
}

.solomovil {
    display: none;
}

@media (max-width:1023px){
    .solomovil {
        display: block!important;
    }

    .page-product h1.h1.page-title {
        display: none;
    }


    footer#footer * {
        text-align: center;
    }

}


/* ============================================================
   FICHA DE PRODUCTO - MEJORAS VISUALES
   ============================================================ */

/* Título de producto */
.page-product h1.page-title,
.page-product .h1.page-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 12px !important;
}

/* Referencia del producto */
.product_header_container p.referencia,
p.referencia {
    font-size: 0.8rem !important;
    color: #7f8c8d !important;
    background: #f1f5f9 !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
}

/* Caja de Precios tipo Tarjeta Destacada */
.product-prices.js-product-prices {
    background: #fff8f5 !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    border: 1px solid #ffd8c3 !important;
    max-width: fit-content;
    box-shadow: 0 4px 12px rgba(231,105,42,0.04) !important;
    margin-bottom: 15px !important;
}

/* Precio principal */
.page-product .precio-no-descuento,
.page-product .precio-descuento,
.page-product .current-price .product-price {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #E7692A !important;
    letter-spacing: -0.5px !important;
    font-family: 'Poppins', sans-serif !important;
}

.page-product .regular-price {
    font-size: 1.2rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-weight: 500 !important;
}

.page-product .badge-discount,
.page-product .product-discount .discount-percentage {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.2) !important;
}

/* Selector de Cantidad */
#quantity_wanted {
    height: 52px !important;
    border-radius: 26px !important;
    border: 2px solid #cbd5e1 !important;
    width: 75px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
}

#quantity_wanted:focus {
    border-color: #E7692A !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(231, 105, 42, 0.15) !important;
}

/* Botón Añadir al Carrito (Premium Gradient) - selector real */
.page-product .product-add-to-cart button.add-to-cart,
.page-product button.btn.add-to-cart {
    height: 52px !important;
    border-radius: 26px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0 40px !important;
    background: linear-gradient(135deg, #FF9A52 0%, #E7692A 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(231, 105, 42, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
}

.page-product .product-add-to-cart button.add-to-cart:hover,
.page-product button.btn.add-to-cart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(231, 105, 42, 0.45) !important;
    background: linear-gradient(135deg, #E7692A 0%, #c85217 100%) !important;
}

.page-product .product-add-to-cart button.add-to-cart:active,
.page-product button.btn.add-to-cart:active {
    transform: translateY(1px) !important;
}

/* Bloque de Confianza (Reaseguros) */
.custom-reassurance-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    background: #fdfaf7;
    border: 1px dashed #f4c29b;
    padding: 20px;
    border-radius: 12px;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reassure-icon {
    font-size: 1.4rem;
    color: #E7692A;
    background: #fff;
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(231, 105, 42, 0.1);
    border: 1px solid #ffe6db;
}

.reassure-text {
    display: flex;
    flex-direction: column;
}

.reassure-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.reassure-desc {
    color: #718096;
    font-size: 0.8rem;
    margin-top: 2px;
}

@media (max-width: 767px) {
    .product-prices.js-product-prices {
        max-width: 100% !important;
    }
    .product-quantity {
        justify-content: center;
    }
}


/* ============================================================
   FASE 3: STICKY CART BAR
   ============================================================ */

.sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    transform: translateY(0);
    opacity: 1;
}

.sticky-cart-bar--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.sticky-cart-info {
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.sticky-cart-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    background: #fff;
    flex-shrink: 0;
}

.sticky-cart-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.sticky-cart-actions {
    gap: 15px;
    flex-shrink: 0;
}

.sticky-cart-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #E7692A;
    white-space: nowrap;
}

.sticky-cart-btn {
    height: 44px !important;
    border-radius: 22px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.82rem;
    padding: 0 28px !important;
    background: linear-gradient(135deg, #FF9A52 0%, #E7692A 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(231, 105, 42, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #ffffff !important;
    cursor: pointer;
    white-space: nowrap;
}

.sticky-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 105, 42, 0.45) !important;
    background: linear-gradient(135deg, #E7692A 0%, #c85217 100%) !important;
}

.sticky-cart-btn i {
    margin-right: 6px;
}

@media (max-width: 767px) {
    .sticky-cart-name {
        display: none;
    }
    .sticky-cart-img {
        width: 36px;
        height: 36px;
    }
    .sticky-cart-btn {
        padding: 0 18px !important;
        font-size: 0.75rem;
    }
    .sticky-cart-price {
        font-size: 1.1rem;
    }
}


/* ============================================================
   FASE 3: PRODUCT GRID CARDS (REDISEÑO PREMIUM)
   ============================================================ */

/* Tarjeta de producto */
.product-miniature {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 20px !important;
    position: relative;
}

.product-miniature:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: #e2e8f0 !important;
    transform: translateY(-4px);
}

/* Contenedor de imagen */
.product-miniature .thumbnail-container,
.product-miniature .product-thumbnail {
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
    position: relative;
}

.product-miniature .thumbnail-container img,
.product-miniature .product-thumbnail img {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-miniature:hover .thumbnail-container img,
.product-miniature:hover .product-thumbnail img {
    transform: scale(1.06);
}

/* Badge de descuento en grid */
.product-miniature .product-flag {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 2 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.product-miniature .product-flag.discount {
    background: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.product-miniature .product-flag.new {
    background: #10b981 !important;
    color: #fff !important;
}

.product-miniature .product-flag.on-sale {
    background: #f59e0b !important;
    color: #fff !important;
}

/* Bloque descripción */
.product-miniature .product-description {
    padding: 14px 16px 18px !important;
}

/* Nombre del producto en grid */
.product-miniature .product-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

.product-miniature .product-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.product-miniature .product-title a:hover {
    color: #E7692A !important;
}

/* Categoría y marca en grid */
.product-miniature .product-category-name,
.product-miniature .product-brand {
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #94a3b8 !important;
    margin-bottom: 4px !important;
}

/* Precio en grid */
.product-miniature .product-price-and-shipping {
    margin-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.product-miniature .product-price {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    color: #E7692A !important;
}

.product-miniature .regular-price {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}

/* Referencia en grid */
.product-miniature .product-reference {
    font-size: 0.7rem !important;
    color: #cbd5e1 !important;
}

/* Descripción corta en grid */
.product-miniature .product-description-short {
    font-size: 0.78rem !important;
    color: #64748b !important;
    line-height: 1.45 !important;
    margin-top: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

/* Botón en grid */
.product-miniature .btn.add-to-cart,
.product-miniature .btn.btn-product-list {
    border-radius: 22px !important;
    background: linear-gradient(135deg, #FF9A52 0%, #E7692A 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 3px 10px rgba(231, 105, 42, 0.2) !important;
    padding: 8px 20px !important;
}

.product-miniature .btn.add-to-cart:hover,
.product-miniature .btn.btn-product-list:hover {
    background: linear-gradient(135deg, #E7692A 0%, #c85217 100%) !important;
    box-shadow: 0 5px 15px rgba(231, 105, 42, 0.35) !important;
    transform: translateY(-1px);
}


/* ============================================================
   FASE 3: HEADER - CREATIVE ELEMENTS (ID: 16170101)
   ============================================================ */

/* Top bar banner (primera sección del header CE) */
.elementor-16170101 .elementor-element-48bb40fd {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.elementor-16170101 .elementor-element-48bb40fd .elementor-heading-title,
.elementor-16170101 .elementor-element-48bb40fd .elementor-widget-container {
    color: #cbd5e1 !important;
}

.elementor-16170101 .elementor-element-48bb40fd .elementor-heading-title i {
    color: #FF9A52 !important;
}

/* Sección principal del header - sombra y fondo limpio */
.elementor-16170101 .elementor-element-262da4a9 {
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    transition: box-shadow 0.3s ease !important;
}

.elementor-16170101 .elementor-element-262da4a9.elementor-sticky--effects {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Logo hover */
.elementor-16170101 .elementor-widget-image .elementor-image img {
    transition: transform 0.25s ease !important;
}

.elementor-16170101 .elementor-widget-image .elementor-image:hover img {
    transform: scale(1.03);
}

/* Buscador CE */
.elementor-16170101 .elementor-search__input {
    border-radius: 24px !important;
    border: 2px solid #e2e8f0 !important;
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
    transition: all 0.25s ease !important;
    background: #f8fafc !important;
}

.elementor-16170101 .elementor-search__input:focus {
    border-color: #E7692A !important;
    box-shadow: 0 0 0 3px rgba(231, 105, 42, 0.12) !important;
    outline: none !important;
    background: #fff !important;
}

.elementor-16170101 .elementor-search__submit {
    border-radius: 0 24px 24px 0 !important;
    background: linear-gradient(135deg, #FF9A52 0%, #E7692A 100%) !important;
    border: none !important;
    color: #fff !important;
    transition: background 0.3s ease !important;
    padding: 0 18px !important;
}

.elementor-16170101 .elementor-search__submit:hover {
    background: linear-gradient(135deg, #E7692A 0%, #c85217 100%) !important;
}

/* Iconos de usuario y carrito en header */
.elementor-16170101 .elementor-nav a.elementor-item,
.elementor-16170101 .elementor-nav a.elementor-item i {
    transition: color 0.2s ease !important;
}

.elementor-16170101 .elementor-nav a.elementor-item:hover,
.elementor-16170101 .elementor-nav a.elementor-item:hover i {
    color: #E7692A !important;
}

/* Icono de carrito */
.elementor-16170101 .elementor-cart__toggle .elementor-button {
    transition: color 0.2s ease !important;
}

.elementor-16170101 .elementor-cart__toggle .elementor-button:hover {
    color: #E7692A !important;
}

/* Badges numéricos de carrito */
.elementor-16170101 .elementor-button-icon .elementor-button-icon-qty {
    background: #E7692A !important;
    color: #fff !important;
}

/* Sección menú inferior del header */
.elementor-16170101 .elementor-element-700399e2 {
    border-top: 1px solid #f1f5f9 !important;
}

/* Banners secundarios del header */
.elementor-16170101 .elementor-element-7a1415b {
    border-top: 1px solid #f1f5f9 !important;
}


/* ============================================================
   FASE 3: FOOTER - CREATIVE ELEMENTS (ID: 11170101)
   ============================================================ */

/* Fondo principal del footer CE */
.elementor-11170101 {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    padding-top: 40px !important;
    padding-bottom: 10px !important;
}

/* Primera sección (con columnas de links) */
.elementor-11170101 .elementor-section.elementor-top-section {
    background: transparent !important;
}

/* Títulos de columna del footer */
.elementor-11170101 .elementor-heading-title {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #E7692A !important;
    display: inline-block !important;
    margin-bottom: 12px !important;
}

/* Subtítulos/links del footer (los que son h2 pero parecen links) */
.elementor-11170101 .elementor-heading-title a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease !important;
    font-weight: 300 !important;
    font-size: 0.85rem !important;
    text-transform: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.elementor-11170101 .elementor-heading-title a:hover {
    color: #FF9A52 !important;
    padding-left: 4px !important;
}

/* Texto general del footer */
.elementor-11170101 .elementor-text-editor,
.elementor-11170101 .elementor-text-editor p,
.elementor-11170101 .elementor-text-editor a {
    color: #94a3b8 !important;
}

.elementor-11170101 .elementor-text-editor a:hover {
    color: #FF9A52 !important;
}

/* Dividers del footer */
.elementor-11170101 .elementor-divider-separator {
    border-color: #334155 !important;
}

/* Iconos sociales del footer */
.elementor-11170101 .elementor-social-icon {
    background: transparent !important;
    border: 1px solid #475569 !important;
    transition: all 0.25s ease !important;
}

.elementor-11170101 .elementor-social-icon:hover {
    background: #E7692A !important;
    border-color: #E7692A !important;
    transform: translateY(-2px);
}

.elementor-11170101 .elementor-social-icon i {
    color: #94a3b8 !important;
    transition: color 0.25s ease !important;
}

.elementor-11170101 .elementor-social-icon:hover i {
    color: #ffffff !important;
}

/* Sección "Aceptamos" - heading */
.elementor-11170101 .elementor-element-d8bf8ad .elementor-heading-title,
.elementor-11170101 .elementor-element-d8bf8ad .elementor-heading-title a {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Iconos de pago (Visa, Mastercard, etc.) */
.elementor-11170101 .elementor-icon-wrapper .elementor-icon i {
    color: #94a3b8 !important;
    transition: color 0.2s ease !important;
}

.elementor-11170101 .elementor-icon-wrapper .elementor-icon:hover i {
    color: #FF9A52 !important;
}

/* Sección de copyright y logo digitalizadores */
.elementor-11170101 .elementor-element-eaf2846 {
    background: #0a0f1e !important;
    border-top: 1px solid #1e293b !important;
    padding: 20px 0 !important;
}

.elementor-11170101 .elementor-element-eaf2846 .elementor-text-editor,
.elementor-11170101 .elementor-element-eaf2846 .elementor-text-editor p {
    color: #64748b !important;
    font-size: 0.78rem !important;
}

.elementor-11170101 .elementor-element-eaf2846 .elementor-text-editor a {
    color: #94a3b8 !important;
}

.elementor-11170101 .elementor-element-eaf2846 .elementor-text-editor a:hover {
    color: #FF9A52 !important;
}

/* Logo digitalizadores: invertir para fondo oscuro */
.elementor-11170101 .elementor-element-eaf2846 .elementor-image img {
    filter: brightness(0.8) contrast(1.1) !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
}

.elementor-11170101 .elementor-element-eaf2846 .elementor-image:hover img {
    opacity: 0.9 !important;
}


/* ============================================================
   AJUSTES GLOBALES Y Z-INDEX
   ============================================================ */

/* Botón WhatsApp - ajuste z-index para no chocar con sticky cart */
.icono-whatsapp {
    z-index: 9998 !important;
    bottom: 80px !important;
}

/* Asegurar que el sticky cart no tape en página de producto */
.page-product .sticky-cart-bar {
    z-index: 10000;
}
