/*
 Theme Name:   Soledad Child Theme
 Theme URI:    http://pencidesign.com/
 Description:  Soledad Child Theme - Made by PenciDesign
 Author:       Pencidesign
 Version:      1.0
 Author URI:   http://pencidesign.com/
 Template:     soledad
 Text Domain:  soledad
*/

/* = Theme customization go here
-------------------------------------------------------------- */

.xpe-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.xpe-products .product {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    max-width: calc(33.333% - 20px);
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.xpe-products .product .image-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Čtvercový poměr, udrží konzistentní rozměr */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Skryje cokoliv přesahující */
    background-color: #f9f9f9; /* Volitelně přidá pozadí */
}

.xpe-products .product img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.xpe-products .product h3 {
    font-size: 1rem;
    margin: 10px 0 5px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.xpe-products .product .price {
    margin-top: auto;
	font-size: 1rem;
}

.xpe-products .product .button-container {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .xpe-products .product {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .xpe-products .product {
        flex: 1 1 100%;
        max-width: 100%;
    }
	.xpe-products .product img {
    max-width: 99%;
    max-height: 99%;
}
}
