/**
 * WooCommerce Single Product – Professional Layout
 */

/* =========================
   GLOBAL CONTAINER
   ========================= */
.single-product .page_content_wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.single-product .page_content_wrap .content {
    padding: 60px 30px !important;
}

.single-product .product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
}

/* =========================
   TOP SECTION (GALLERY + SUMMARY)
   ========================= */

.single-product .woocommerce-product-gallery {
    max-width: 520px;
}

.single-product .woocommerce-product-gallery__image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 14px;
}

/* =========================
   PRODUCT SUMMARY
   ========================= */

.single-product .summary {
    padding-left: 48px;
}

.single-product .summary h1 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111;
}

/* Short description */
.single-product .woocommerce-product-details__short-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 28px;
}

/* Hide price if not needed */
.single-product .price {
    display: none;
}

/* =========================
   PRODUCT TABS / CONTENT
   ========================= */

.single-product .woocommerce-tabs {
    margin-top: 64px;
}

.single-product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 32px;
}

.single-product .woocommerce-tabs ul.tabs li {
    margin-right: 8px;
}

.single-product .woocommerce-tabs ul.tabs li a {
    font-weight: 600;
    padding: 12px 18px;
    color: #333;
}

.single-product .woocommerce-Tabs-panel {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #444;
}

.single-product .woocommerce-Tabs-panel p {
    margin-bottom: 0.9em;
}

.single-product .woocommerce-Tabs-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.single-product .woocommerce-Tabs-panel th,
.single-product .woocommerce-Tabs-panel td {
    padding: 12px 14px;
    border: 1px solid #ddd;
    text-align: left;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
    .single-product .summary {
        padding-left: 24px;
    }
}

@media (max-width: 768px) {
    .single-product .product {
        padding: 32px 16px;
    }

    .single-product .summary {
        padding-left: 0;
        margin-top: 32px;
    }
}

@media (max-width: 576px) {
    .single-product .woocommerce-product-gallery__image img {
        height: 300px;
    }

}


/* =========================
   UPSELLS / RELATED PRODUCTS
   ========================= */
.single-product section.upsells ul.products.columns-4 li.product {
    width: auto !important;
}

.single-product section.upsells {
    margin-top: 80px;
}

/* Title */
.single-product section.upsells > h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: #111;
}

/* Grid */
.single-product section.upsells ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card */
.single-product section.upsells li.product {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.single-product section.upsells li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Image wrapper */
.single-product section.upsells .post_featured {
    position: relative;
    height: 220px; /* 🔑 uniform height */
    overflow: hidden;
    background: #f7f7f7;
}

/* Image */
.single-product section.upsells .post_featured img {
    width: 100%;
    height: 100% !important;
    object-fit: contain; /* 👈 mantiene proporción */
    object-position: center;
}

/* Remove default mask/icons hover chaos */
.single-product section.upsells .post_featured .mask,
.single-product section.upsells .post_featured .icons {
    display: none;
}

/* Content */
.single-product section.upsells .post_data {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center !important;
}

/* Title */
.single-product section.upsells .woocommerce-loop-product__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #111;
}

.single-product section.upsells .woocommerce-loop-product__title a {
    color: inherit;
    text-decoration: none;
}

/* Button */
.single-product section.upsells .button {
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 6px;
    display: block !important;
    margin: 25px auto 0 !important;
    text-align: center !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
    .single-product section.upsells ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .single-product section.upsells ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .single-product section.upsells ul.products {
        grid-template-columns: 1fr;
    }

    .single-product section.upsells .post_featured {
        height: 200px;
    }
}
