/*
 Theme Name: GeneratePress Regson
 Description: Child theme for GeneratePress
 Author: CITIEE
 Template: generatepress
 Version: 1.0
*/

/* ==========================================================================
   DISEÑO DE PRODUCTO (SINGLE PRODUCT)
   ========================================================================== */

/* 1. Layout de dos columnas - AJUSTADO PARA CONTENIDO COMPLETO */
body.single-product #page.container {
    max-width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

@media (min-width: 769px) {
    body.single-product .woocommerce div.product {
        display: grid !important;
        grid-template-columns: 55% 41%;
        gap: 4%;
        align-items: start;
    }
}

.woocommerce #content div.product div.summary, 
.woocommerce div.product div.summary, 
.woocommerce-page #content div.product div.summary, 
.woocommerce-page div.product div.summary {
    padding: 0 0 0 0;
}

/* 2. Título Principal y Precios */
.single-product .product_title {
    font-size: 38px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px !important;
}

.single-product p.price, 
.single-product span.price {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    margin-top: 15px !important; 
    margin-bottom: 20px !important;
    display: block;
}

/* Descripción del producto: Eliminar margen superior para acercarla */
.product-main-description {
    margin-top: 0px !important; 
    margin-bottom: 0px !important;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* 3. Selector de variantes (ALINEACIÓN PERFECTA) */
.woocommerce div.product form.cart .variations {
    border: none;
    width: 100%;
}

.woocommerce div.product form.cart .variations tr {
    display: flex !important;
    align-items: center !important; 
    gap: 20px;
    background: transparent !important;
}

.woocommerce div.product form.cart .variations th.label, 
.woocommerce div.product form.cart .variations td.value {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.woocommerce div.product form.cart .variations th.label {
    width: auto !important;
    min-width: 60px;
}

.woocommerce div.product form.cart .variations label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 !important; 
    display: inline-block !important;
    line-height: 1 !important;
}

.woocommerce div.product form.cart .variations td.value {
    flex-grow: 1;
}

/* SlimSelect - Reemplaza el select nativo */
.single-product .ss-main {
    width: 100% !important;
    border: none !important;
    padding: 10px 30px 10px 0 !important;
    margin-bottom: 0px !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
}

.single-product .ss-main:focus {
    box-shadow: none !important;
    outline: none;
}

.single-product .ss-main .ss-arrow {
    width: 18px !important;
    height: 18px !important;
    margin: 0 0 0 auto !important;
}

.single-product .ss-main .ss-arrow path {
    stroke: #000 !important;
    stroke-width: 12 !important;
}

.single-product .ss-main .ss-values .ss-single {
    margin: 0 !important;
    font-size: 15px;
    color: #000;
    line-height: 1 !important;
}

.single-product .ss-main .ss-values .ss-placeholder {
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ELIMINACIÓN DEL BOTÓN X */
.single-product .ss-main .ss-deselect {
    display: none !important;
}

.single-product .ss-content {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    max-height: 300px !important;
}

.single-product .ss-content .ss-list .ss-option:hover,
.single-product .ss-content .ss-list .ss-option.ss-highlighted {
    background-color: #f0f0f0 !important;
    color: #000 !important;
}

/* 4. Descripción (dentro del bloque derecho) */
.product-main-description {
    margin: 25px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: justify; 
    text-justify: inter-word;
}

/* 5. Botón de añadir al carrito (Negro Sólido) */
.woocommerce button.single_add_to_cart_button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    font-weight: 700;
    height: 55px;
    text-transform: uppercase;
    width: 100%;
    transition: opacity 0.3s;
}

.woocommerce button.single_add_to_cart_button:hover {
    opacity: 0.8;
}

/* 6. Cantidad */
.single-product .quantity {
    margin-bottom: 15px;
}

/* ACORDEÓN SPEZIFIKATION (CON SIGNOS + / -) */
.single-product details.specs-accordion {
    border: none !important;
    padding: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}

.single-product .specs-summary {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    list-style: none !important;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
    outline: none;
    padding: 10px 0;
}

.single-product .specs-summary::-webkit-details-marker { display: none !important; }

.single-product .specs-summary::after {
    content: "+" !important;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    transition: all 0.2s ease;
}

.single-product details[open] .specs-summary::after {
    content: "-" !important;
}

.single-product .specs-content {
    padding: 5px 0 10px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.single-product .specs-content p {
    margin-bottom: 4px !important;
}

/* CONTROL DE METADATOS (SKU ARRIBA / CATEGORÍAS ABAJO) */
.single-product .summary .product_meta:first-of-type {
    margin-bottom: 10px !important;
    border: none !important;
}

.single-product .summary .product_meta:first-of-type .posted_in {
    display: none !important;
}

.single-product .summary .product_meta:first-of-type .sku_wrapper {
    font-size: 0 !important;
    display: block !important;
}

.single-product .summary .product_meta:first-of-type .sku {
    font-family: 'Jost Regular', sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #000 !important;
    display: block;
}

.single-product .summary .product_meta:last-of-type {
    margin-top: 30px !important;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.single-product .summary .product_meta:last-of-type .sku_wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

.single-product .summary .product_meta:last-of-type .posted_in {
    font-size: 13px;
    color: #666;
    display: block;
}

/* GALERÍA APILADA (ESPECÍFICA PARA PLUGIN WVG) 
.woo-variation-gallery-slider .slick-list,
.woo-variation-gallery-slider .slick-track {
    height: auto !important;
    display: block !important;
    transform: none !important;
    width: 100% !important;
}

.woo-variation-gallery-slider .slick-slide {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin-bottom: 20px !important;
    height: auto !important;
    opacity: 1 !important;
}

.woo-variation-gallery-wrapper {
    display: block;
    position: relative;
    padding: 0 0 0 0;
    z-index: 0;
}

.woo-variation-gallery-thumbnail-wrapper,
.wvg-slider-prev-arrow,
.wvg-slider-next-arrow {
    display: none !important;
}

.wvg-single-gallery-image-container img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
}

.wvg-single-gallery-image-container img.zoomImg {
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

.woo-variation-gallery-slider .slick-slide.slick-cloned {
    display: none !important;
}

.woo-variation-gallery-slider .slick-slide {
    visibility: visible !important;
    opacity: 1 !important;
}

/*
   CONFIGURACIÓN SLIDER DE GALERÍA (Woo Variation Gallery)
*/

/* 1. Ocultar las miniaturas de abajo */
.woo-variation-gallery-thumbnail-wrapper {
    display: none !important;
}

/* 2. Forzar visibilidad de flechas*/
.woo-variation-gallery-slider-wrapper .wvg-slider-prev-arrow,
.woo-variation-gallery-slider-wrapper .wvg-slider-next-arrow,
.woo-variation-gallery-slider-wrapper .wvg-slider-prev-arrow:hover,
.woo-variation-gallery-slider-wrapper .wvg-slider-next-arrow:hover
 {
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
    font-size: 40px;
}
.woo-variation-gallery-slider-wrapper .wvg-slider-prev-arrow:before,
.woo-variation-gallery-slider-wrapper .wvg-slider-next-arrow:before {
    color: #000000 !important;
    opacity: 1 !important;
}
/* Asegurar que permanezcan dentro del área visible */
.woo-variation-gallery-slider-wrapper .wvg-slider-prev-arrow {
    left: 0 !important;
}

.woo-variation-gallery-slider-wrapper .wvg-slider-next-arrow {
    right: 0 !important;
}

/* ALINEACIÓN FOOTER: COPYRIGHT CON INSTAGRAM */
.inside-footer-widgets {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    width: 100% !important;
}

.footer-widget-1, 
.footer-widget-2 {
    margin-bottom: 0 !important;
}

.footer-widget-2 .widget_block p {
    margin-bottom: 5px !important;
    text-align: right !important;
    font-size: 14px;
    color: #000;
}

.footer-widget-1 .link-social-container {
    display: inline-block;
    line-height: 1;
}