/* ==========================================================================
   BOTONES DE ACCIÓN EN SINGLE PRODUCT
   ========================================================================== */
.custom-actions-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-quote-popup {
    background-color: var(--color-secondary, #74b816);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-main, 'Poppins', sans-serif);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116, 184, 22, 0.3);
}

.btn-quote-popup:hover {
    background-color: #639d12;
    transform: translateY(-2px);
}

.btn-whatsapp-direct {
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-main, 'Poppins', sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-direct:hover {
    background-color: #1eb857;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   POPUP MODAL DE COTIZACIÓN CON BLUR
   ========================================================================== */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quote-modal.active {
    opacity: 1;
    visibility: visible;
}

.quote-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 76, 129, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quote-modal__content {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 550px;
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quote-modal.active .quote-modal__content {
    transform: scale(1);
}

.quote-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #888;
    cursor: pointer;
}

.quote-modal__subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
}

.quote-modal__title {
    font-size: 1.3rem;
    color: var(--color-primary, #0f4c81);
    margin-bottom: 20px;
}

.quote-modal__title span {
    color: var(--color-secondary, #74b816);
}

/* Campos de Formulario */
.quote-modal__form .form-group {
    margin-bottom: 15px;
}

.quote-modal__form .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quote-modal__form input[type="text"],
.quote-modal__form input[type="email"],
.quote-modal__form input[type="tel"],
.quote-modal__form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-main, 'Poppins', sans-serif);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.quote-modal__form input:focus,
.quote-modal__form textarea:focus {
    border-color: var(--color-primary, #0f4c81);
}

/* Custom File Input */
.file-upload-group input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.file-upload-label:hover {
    background-color: #f1f5f9;
    border-color: var(--color-primary, #0f4c81);
}

.file-upload-label i {
    font-size: 1.4rem;
    color: var(--color-primary, #0f4c81);
}

/* Botón Submit Form */
.btn-submit-quote {
    width: 100%;
    background-color: var(--color-primary, #0f4c81);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-main, 'Poppins', sans-serif);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-submit-quote:hover {
    background-color: var(--color-secondary, #74b816);
}

.form-response-msg {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================================================
   SINGLE PRODUCT LAYOUT (WOOCOMMERCE)
   ========================================================================== */
.single-product-wrapper {
    padding: 30px 0 60px 0;
    background-color: #f9f9f9;
}

.product-breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 25px;
}

.product-breadcrumb a {
    color: var(--color-primary, #0f4c81);
    text-decoration: none;
    font-weight: 500;
}

/* Grilla Principal de 2 Columnas */
.single-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
}

/* Columna Izquierda: Galería */
.product-gallery-column .woocommerce-product-gallery {
    position: relative;
}

.product-gallery-column img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Columna Derecha: Información */
.product-category-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary, #74b816);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.product-category-badge a {
    color: var(--color-secondary, #74b816);
    text-decoration: none;
}

.product-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary, #0f4c81);
    line-height: 1.25;
    margin-bottom: 12px;
}

.product-sku-status {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.82rem;
    color: #666;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 20px;
}

.product-stock-status {
    color: #2e7d32;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-short-description {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Tarjetas de Confianza */
.product-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.trust-badge i {
    font-size: 1.4rem;
    color: var(--color-primary, #0f4c81);
}

.trust-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary, #0f4c81);
    line-height: 1.2;
}

/* Redes Sociales */
.product-share {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #edf2f7;
    padding-top: 15px;
}

.product-share a {
    color: var(--color-primary, #0f4c81);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.product-share a:hover {
    color: var(--color-secondary, #74b816);
}

/* Pestañas Inferiores */
.product-tabs-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
}

.product-tabs-section .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #eef2f5;
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.product-tabs-section .woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
}

.product-tabs-section .woocommerce-tabs ul.tabs li a {
    font-size: 0.95rem;
    font-weight: 700;
    color: #777;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.product-tabs-section .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary, #0f4c81);
    border-bottom-color: var(--color-secondary, #74b816);
}


/* =========================================
   DESCRIPCIÓN Y CARACTERÍSTICAS DEL PRODUCTO
========================================= */

.single-product-wrapper .product-tabs-section {
    margin: 60px 0;
}



/* Navegación de pestañas */
.single-product-wrapper .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
    border-bottom: 1px solid #e7edf2;
}

.single-product-wrapper .woocommerce-tabs ul.tabs::before,
.single-product-wrapper .woocommerce-tabs ul.tabs::after {
    display: none !important;
}


.single-product-wrapper .woocommerce-tabs ul.tabs li a {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #637181;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-product-wrapper .woocommerce-tabs ul.tabs li.active {
    border-bottom: 3px solid #0088cc;
}

.single-product-wrapper .woocommerce-tabs ul.tabs li.active a,
.single-product-wrapper .woocommerce-tabs ul.tabs li a:hover {
    color: #0088cc;
}

/* Contenido de las características */
.single-product-wrapper .woocommerce-Tabs-panel {
    padding: 10px 0;
    color: #4d5c6b;
    font-size: 15px;
    line-height: 1.85;
}

.single-product-wrapper .woocommerce-Tabs-panel h2 {
    font-size: 23px;
    font-weight: 700;
    color: #152c42;
    margin-bottom: 20px;
}

.single-product-wrapper .woocommerce-Tabs-panel p {
    margin-bottom: 15px;
}

.single-product-wrapper .woocommerce-Tabs-panel ul {
    padding-left: 22px;
    margin: 20px 0;
}

.single-product-wrapper .woocommerce-Tabs-panel li {
    padding: 5px 0;
}

.single-product-wrapper .woocommerce-Tabs-panel li::marker {
    color: #0088cc;
}

/* Tabla de atributos WooCommerce */
.single-product-wrapper table.shop_attributes {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.single-product-wrapper table.shop_attributes tr {
    border-bottom: 1px solid #edf1f5;
}

.single-product-wrapper table.shop_attributes th,
.single-product-wrapper table.shop_attributes td {
    padding: 15px;
    border: none;
    background: transparent;
    text-align: left;
}

.single-product-wrapper table.shop_attributes th {
    color: #152c42;
    font-weight: 600;
    width: 30%;
}

/* =========================================
   PRODUCTOS RELACIONADOS
========================================= */

.single-product-wrapper .related-products-section {
    margin: 70px 0 90px;
}

/* Título */
.single-product-wrapper .related-products-section h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #152c42;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
}

/* Grid de productos */
.single-product-wrapper .related-products-section ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Tarjeta */
.single-product-wrapper .related-products-section ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 30, 60, 0.04);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.single-product-wrapper .related-products-section ul.products li.product:hover {
    transform: translateY(-6px);
    border-color: #d9e9f5;
    box-shadow: 0 15px 35px rgba(0, 30, 60, 0.09);
}

/* Imagen */
.single-product-wrapper .related-products-section ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 10px;
    margin: 0 0 18px;
    transition: transform 0.3s ease;
}

.single-product-wrapper .related-products-section ul.products li.product:hover img {
    transform: scale(1.04);
}

/* Título del producto */
.single-product-wrapper .related-products-section
.woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.5;
    color: #152c42;
    margin: 0 0 20px;
    padding: 0 !important;
    min-height: 45px;
}

.single-product-wrapper .related-products-section
.woocommerce-LoopProduct-link {
    text-decoration: none;
}

/* Botón */
.single-product-wrapper .related-products-section
ul.products li.product .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 12px 16px;
    background: #0088cc;
    color: #ffffff;
    border: 1px solid #0088cc;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.single-product-wrapper .related-products-section
ul.products li.product .button:hover {
    background: #006da5;
    border-color: #006da5;
    color: #ffffff;
}

/* Ocultar precios si el catálogo es solo cotizaciones */
.single-product-wrapper .related-products-section .price {
    display: none !important;
}
.woocommerce .products ul::after, .woocommerce .products ul::before, .woocommerce ul.products::after, .woocommerce ul.products::before{display: none !important;}




/* Responsive */
@media (max-width: 1024px) {
    .single-product-wrapper .related-products-section ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .single-product-wrapper .related-products-section ul.products {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .single-product-wrapper .related-products-section {
        margin: 45px 0 60px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .single-product-wrapper .woocommerce-tabs {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .single-product-wrapper .woocommerce-tabs ul.tabs {
        gap: 15px;
    }

    .single-product-wrapper .woocommerce-tabs ul.tabs li a {
        font-size: 13px;
    }
}


/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .single-product-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .product-main-title {
        font-size: 1.6rem;
    }

    .product-trust-badges {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }

    .trust-badge {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .quote-modal__form .grid-2 {
        grid-template-columns: 1fr;
    }

    .custom-actions-wrapper {
        flex-direction: column;
    }

    .btn-quote-popup, .btn-whatsapp-direct {
        width: 100%;
        justify-content: center;
    }
}