/*
Theme Name: Medak
Theme URI: https://themes.hibotheme.com/medak/
Author: HiboTheme
Author URI: https://hibotheme.com/
Description: Health Care & Medical Clinic WordPress Theme
Version: 1.3
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: medak
Tags: custom-logo, custom-menu, featured-images
*/

/* ====== AJUSTES MODO CATÁLOGO/CATÁLOGO PORTAFOLIO PARA SINGLE PRODUCTO ====== */
.price-tag,
.product_meta {
    display: none !important;
}
.counter-with-button,
.single_add_to_cart_button,
.woocommerce-variation-add-to-cart {
    display: none !important;
}
.products-details-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
@media (min-width: 992px) {
    .row.justify-content-center {
        align-items: stretch;
    }
    .products-details-content {
        height: 100%;
        justify-content: center;
    }
    .col-lg-6.col-md-12 {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
.product-details-image, .product-details-in-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
/* ====== FIN AJUSTES MODO CATÁLOGO ====== */

/* Productos relacionados con estilo de cards de productos por categoría */
.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 0;
}
.related.products ul.products li.product,
.related.products ul.products li.related-product-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(85,19,12,0.08);
    border: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1rem 1.5rem 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    min-width: 0;
    max-width: 100%;
}
.related.products ul.products li.product:hover,
.related.products ul.products li.related-product-card:hover {
    border-color: #d2301e;
    box-shadow: 0 8px 32px rgba(210,48,30,0.10);
}
.related.products ul.products li.product img,
.related.products ul.products li.related-product-card img {
    width: 100%;
    max-width: 160px;
    max-height: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.related.products ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.related-product-card .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-align: center;
}
@media (max-width: 700px) {
    .related.products ul.products {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .related.products ul.products {
        grid-template-columns: 1fr;
    }
}

/* === CUSTOM RELATED PRODUCTS SECTION === */
.custom-related-section {
    margin-top: 3rem;
}
.custom-related-section .section-title {
    margin-bottom: 1.5rem;
    text-align: left;
}
.custom-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.custom-related-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(85,19,12,0.08);
    border: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1rem 1.5rem 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    min-width: 0;
    max-width: 100%;
}
.custom-related-card:hover {
    border-color: #d2301e;
    box-shadow: 0 8px 32px rgba(210,48,30,0.10);
}
.custom-related-thumb {
    width: 100%;
    max-width: 160px;
    max-height: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    display: block;
   /*  background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
}
.custom-related-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-align: center;
    color: #222;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}
.custom-related-title:hover {
    color: #d2301e;
}
@media (max-width: 700px) {
    .custom-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .custom-related-grid {
        grid-template-columns: 1fr;
    }
}
/* === END CUSTOM RELATED PRODUCTS SECTION === */


