/**
 * CSS personnalisé pour les fiches produits De Sol en Sol
 */

/* En-tête produit */
.desolensol-product-header {
    background-color: #f5f4f0;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.desolensol-product-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}

.desolensol-product-domaine {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
}

.desolensol-product-meta {
    display: flex;
    gap: 30px;
    font-size: 16px;
    color: #666;
}

.desolensol-product-meta span {
    display: inline-block;
}

/* Avis d'Antoine */
.desolensol-avis-antoine {
    background-color: #f9f9f9;
    border: 1px solid #4a7c7e;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    position: relative;
}

.desolensol-avis-antoine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a7c7e 0%, #5a9a9c 100%);
    border-radius: 8px 8px 0 0;
}

.desolensol-avis-antoine h3 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 700;
    color: #4a7c7e;
    padding: 0;
    display: block;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.desolensol-avis-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.desolensol-avis-content p {
    margin-bottom: 10px;
}

/* Prix et bouton */
.desolensol-price-add-cart {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.desolensol-price {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.desolensol-price-add-cart .quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desolensol-price-add-cart .quantity input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.desolensol-price-add-cart .single_add_to_cart_button {
    background-color: #c4b89f;
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.desolensol-price-add-cart .single_add_to_cart_button:hover {
    background-color: #b5a78d;
}

/* Attributs produit */
.desolensol-product-attributes {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.desolensol-attr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.desolensol-attr-row:last-child {
    margin-bottom: 0;
}

.desolensol-attr-item {
    font-size: 16px;
    line-height: 1.6;
}

.desolensol-attr-item strong {
    font-weight: 700;
    color: #4a7c7e;
}

/* Accords mets et vins */
.desolensol-accords {
    background-color: #f5f4f0;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e8e6e0;
}

.desolensol-accords h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #4a7c7e;
}

.desolensol-accords-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Image produit */
.woocommerce div.product div.images {
    width: 40%;
}

.woocommerce div.product div.summary {
    width: 55%;
}

/* Responsive */
@media (max-width: 768px) {
    .desolensol-product-title {
        font-size: 32px;
    }

    .desolensol-product-domaine {
        font-size: 26px;
    }

    .desolensol-product-meta {
        flex-direction: column;
        gap: 10px;
    }

    .desolensol-attr-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100%;
    }

    .desolensol-price-add-cart {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Pastilles de couleur pour les catégories */
.product-cat-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.product-cat-badge.rouge {
    background-color: #8B0000;
}

.product-cat-badge.blanc {
    background-color: #F5DEB3;
    border: 1px solid #ccc;
}

.product-cat-badge.rose {
    background-color: #FFB6C1;
}

.product-cat-badge.orange {
    background-color: #FFA500;
}

.product-cat-badge.petillant {
    background: linear-gradient(45deg, #FFD700 25%, transparent 25%, transparent 75%, #FFD700 75%, #FFD700),
                linear-gradient(45deg, #FFD700 25%, transparent 25%, transparent 75%, #FFD700 75%, #FFD700);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}
