/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* ====== BREADCRUMBS ARRIBA DEL TODO ====== */
.custom-breadcrumbs-wrapper {
    width: 100%;
    background: #e5e5e5; /* gris de fondo */
    padding: 10px 0;
}

.custom-breadcrumbs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Los breadcrumbs en FILA (por defecto ya lo son, pero lo remarcamos) */
.custom-breadcrumbs-inner .woocommerce-breadcrumb {
    display: block;
    white-space: normal;
    font-size: 14px;
    color: #777777; /* gris del texto */
}

.custom-breadcrumbs-inner .woocommerce-breadcrumb a {
    color: #999999; /* gris más claro para enlaces */
    text-decoration: none;
}

.custom-breadcrumbs-inner .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* ====== CONTENEDOR GENERAL DEL PRODUCTO ====== */
.custom-single-product {
    max-width: 1200px;
    margin: 30px auto 50px;
    padding: 0 20px;
}

/* TÍTULO DEBAJO DE BREADCRUMBS */
.custom-product-title-main {
    font-size: 2.2rem;
    margin: 20px 0 25px;
}

/* ====== FILA PRINCIPAL: GALERÍA IZQ + CARRITO DCHA ====== */
.custom-product-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

/* COLUMNA IZQUIERDA: GALERÍA */
.custom-product-gallery-column {
    /* nada especial por ahora */
}

/* IMAGEN PRINCIPAL: 400x266 */
.custom-product-gallery .woocommerce-product-gallery__wrapper {
    max-width: 400px;
}

.custom-product-gallery .woocommerce-product-gallery__image img {
    width: 400px;
    height: 266px;
    object-fit: cover;
    display: block;
}

/* MINIATURAS 75x75 */
.custom-product-gallery .flex-control-thumbs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.custom-product-gallery .flex-control-thumbs li {
    width: 75px;
    height: 75px;
    overflow: hidden;
    border-radius: 4px;
}

.custom-product-gallery .flex-control-thumbs li img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    display: block;
}

/* ====== COLUMNA DERECHA: OPCIONES + BOTÓN ====== */
.custom-product-summary-column {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.custom-product-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.custom-product-rating {
    margin-bottom: 10px;
}

.custom-product-short-description {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.custom-product-meta {
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

/* Botón Añadir a la cesta */
.custom-product-add-to-cart .single_add_to_cart_button {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

/* ====== DESCRIPCIÓN LARGA DEBAJO DE LA GALERÍA ====== */
.custom-product-long-description {
    margin-top: 30px;
    font-size: 15px;
    line-height: 1.7;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .custom-product-main-row {
        grid-template-columns: 1fr;
    }

    .custom-product-summary-column {
        margin-top: 20px;
    }

    .custom-product-gallery .woocommerce-product-gallery__wrapper,
    .custom-product-gallery .woocommerce-product-gallery__image img {
        width: 100%;
        max-width: 400px;
    }
}

