/*
Theme Name: Astra Child
Theme URI: http://example.com/astra-child/
Description: Astra Child Theme
Author: Your Name
Author URI: http://example.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Aggiungi il CSS personalizzato qui sotto */

/* Layout a tre colonne per la bacheca prodotti */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tre colonne */
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Contenitore per ogni singolo post/prodotto */
.woocommerce .products .product {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}
.woocommerce .products .product:hover {
    transform: translateY(-5px);
}

/* Stile per l’immagine del prodotto (foto/video) */
.woocommerce .products .product img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #e1e1e1;
}

/* Sezione Autore con Icona Profilo */
.woocommerce .products .product .author-section {
    display: flex;
    align-items: center;
    padding: 10px;
}
.woocommerce .products .product .author-section img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}
.woocommerce .products .product .author-section .author-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Sezione per pulsanti di mi piace, condividi, stelline e aggiungi al carrello */
.woocommerce .products .product .action-section {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-top: 1px solid #e1e1e1;
}
.action-section .like-button, .action-section .share-button, .action-section .rating, .action-section .add-to-cart {
    font-size: 14px;
    cursor: pointer;
}

/* Costo stimato, tempo di preparazione e tempo totale */
.woocommerce .products .product .info-section {
    padding: 8px 10px;
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
}
.info-section .cost, .info-section .prep-time, .info-section .total-time {
    font-weight: 500;
}

/* Descrizione contratta e ingredienti */
.woocommerce .products .product .description-section {
    padding: 10px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #e1e1e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.woocommerce .products .product .ingredients-section {
    padding: 10px;
    font-size: 12px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
}
.woocommerce .products .product .ingredients-section .ingredient-item {
    margin-right: 5px;
}

/* Header con carrello e wish list in alto a destra */
.header-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 10px;
    background-color: #ffffff;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}
.header-icons .cart-icon, .header-icons .wishlist-icon {
    font-size: 18px;
    cursor: pointer;
}

/* Barra categorie stile "storie di Instagram" */
.category-bar {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e1e1e1;
}
.category-bar .category-item {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 50%;
    background-color: #f2f2f2;
    text-align: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin: 0 10px;
}

/* Barra di ricerca per parola chiave */
.search-bar {
    padding: 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: center;
}
.search-bar input[type="text"] {
    width: 80%;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid #ddd;
}
