/*
 Theme Name:   BirdCom
 Theme URI:    https://birdcom.es
 Description:  BirdCom Comunicación y Diseño
 Author:       Dani Moreno
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* =============================================
   LAYOUT PRINCIPAL: galería izq + info sticky der
   ============================================= */

.woocommerce div.product {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0 60px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Panel derecho sticky */
.woocommerce div.product .summary.entry-summary {
    position: sticky;
    top: 80px;
    padding-left: 20px;
}

/* =============================================
   GALERÍA DESKTOP: imágenes apiladas verticalmente
   ============================================= */

.custom-stacked-gallery {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-stacked-gallery .stacked-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Ocultar galería original de WooCommerce */
.woocommerce-product-gallery {
    display: none !important;
}

/* =============================================
   TIPOGRAFÍA Y PRECIO
   ============================================= */

.woocommerce div.product .product_title {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.1rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 4px;
}

.woocommerce div.product .woocommerce-product-details__short-description p {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 16px;
}

/* =============================================
   LABEL DE TALLA
   ============================================= */

.woocommerce div.product .variations th.label label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
}

/* =============================================
   SWATCHES DE TALLA (plugin Variation Swatches)
   ============================================= */

.woocommerce div.product .tawcvs-swatches .swatch {
    border: 1px solid #ccc;
    border-radius: 0 !important;
    min-width: 40px;
    height: 36px;
    font-size: 0.78rem;
    font-weight: 400;
    color: #111;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.woocommerce div.product .tawcvs-swatches .swatch.selected,
.woocommerce div.product .tawcvs-swatches .swatch:hover {
    border-color: #111;
    background: #111;
    color: #fff;
}

/* =============================================
   BOTÓN AÑADIR AL CARRITO
   ============================================= */

.woocommerce div.product .single_add_to_cart_button {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    margin-top: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: #333 !important;
}

/* =============================================
   ACORDEÓN (tabs de WooCommerce)
   ============================================= */

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: none; /* ocultamos las pestañas clásicas si usas acordeón */
}

.woocommerce div.product .wc-tab-title,
.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-top: 1px solid #e5e5e5 !important;
    padding: 16px 0 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =============================================
   RESPONSIVE — MÓVIL
   ============================================= */

@media (max-width: 768px) {

    /* Layout en columna */
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0;
    }

    /* Panel derecho deja de ser sticky */
    .woocommerce div.product .summary.entry-summary {
        position: static;
        padding: 0 16px;
    }

    /* Galería scroll horizontal */
    .custom-stacked-gallery {
        flex-direction: row;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .custom-stacked-gallery::-webkit-scrollbar {
        display: none;
    }

    .custom-stacked-gallery .stacked-image {
        flex: 0 0 88vw;
        scroll-snap-align: start;
        object-fit: cover;
    }
}
/* Miniaturas — solo en móvil */
.custom-gallery-thumbs {
    display: none;
}

@media (max-width: 768px) {
    .custom-gallery-thumbs {
        display: flex;
        gap: 6px;
        padding: 8px 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .custom-gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .custom-gallery-thumbs .thumb-item {
        flex: 0 0 60px;
        cursor: pointer;
        opacity: 0.45;
        transition: opacity 0.2s;
    }

    .custom-gallery-thumbs .thumb-item.active {
        opacity: 1;
        outline: 1px solid #111;
        outline-offset: 2px;
    }

    .custom-gallery-thumbs .thumb-item img {
        width: 60px;
        height: 75px;
        object-fit: cover;
        display: block;
    }
}
/* Ocultar nav de pestañas */
.woocommerce-tabs ul.tabs {
    display: none !important;
}

/* Panels sin bordes ni padding extra */
.woocommerce-Tabs-panel {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Cabecera del acordeón */
.woocommerce-Tabs-panel h2 {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-top: 1px solid #e5e5e5 !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.woocommerce-Tabs-panel h2::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 300;
    color: #111;
    flex-shrink: 0;
}

.woocommerce-Tabs-panel h2.accordion-open::after {
    content: '−';
}

/* Contenido del acordeón */
.accordion-content {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.7;
    padding: 4px 0 16px 0;
}
/* Forzar todos los panels visibles */
.woocommerce-Tabs-panel {
    display: block !important;
}