/* Style personnalisé pour la page produit WooCommerce */

.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

/* Images du produit */
.single-product div.product .woocommerce-product-gallery {
    flex: 0 1 calc(50% - 1rem);
    margin-bottom: 2rem;
}

.woocommerce-product-gallery__wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}

.flex-control-thumbs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem !important;
    padding: 0 !important;
}

.flex-control-thumbs li {
    flex: 1;
    list-style: none;
}

.flex-control-thumbs img {
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs img.flex-active {
    opacity: 1;
}

/* Résumé du produit */
.single-product div.product .summary {
    flex: 0 1 calc(50% - 1rem);
}

.product_title {
    font-size: 2.2em;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.2;
}

.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star-rating {
    color: #f1c40f;
}

.woocommerce-review-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9em;
}

.price {
    font-size: 1.8em;
    color: #2c3e50;
    font-weight: 600;
    margin: 1.5rem 0;
}

.price del {
    color: #95a5a6;
    font-size: 0.8em;
    margin-right: 0.5rem;
}

.price ins {
    text-decoration: none;
    color: #e74c3c;
}

.woocommerce-product-details__short-description {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Formulaire d'ajout au panier */
.cart {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.quantity {
    display: inline-flex;
    align-items: stretch;
    height: 48px; /* Même hauteur que le bouton */
}

.quantity input {
    width: 80px !important;
    text-align: center;
    padding: 0.5rem !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-size: 1em;
}

.number-button {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.number-button .minus,
.number-button .plus {
    width: 48px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.number-button .minus {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.number-button .plus {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.number-button .minus:hover,
.number-button .plus:hover {
    background: #e9ecef;
}

.single_add_to_cart_button {
    height: 48px;
    background: #27ae60 !important;
    color: #fff !important;
    padding: 0 2rem !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 1em !important;
    transition: background-color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.single_add_to_cart_button:hover {
    background: #219a52 !important;
}

/* Variations */
.variations {
    width: 100%;
    margin-bottom: 1rem;
}

.variations td {
    padding: 0.5rem 0;
    vertical-align: top;
}

.variations label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.variations select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.reset_variations {
    display: inline-block;
    margin-top: 0.5rem;
    color: #e74c3c;
    text-decoration: none;
    font-size: 0.9em;
}

/* Meta produit */
.product_meta {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #7f8c8d;
}

.product_meta > span {
    display: block;
    margin-bottom: 0.5rem;
}

.product_meta a {
    text-decoration: none;
}

/* Onglets */
.woocommerce-tabs {
    flex: 0 1 100%;
    margin-top: 2rem;
}

.wc-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

.wc-tabs li {
    margin-bottom: -1px;
}

.wc-tabs li a {
    display: block;
    padding: 1rem 2rem;
    color: #7f8c8d;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s ease;
}

.wc-tabs li.active a {
    color: #2c3e50;
    background: #fff;
}

.woocommerce-Tabs-panel {
    padding: 2rem;
    background: #fff;
    border-top: none;
}

.woocommerce-Tabs-panel h2 {
    font-size: 1.5em;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Produits connexes */
.related.products {
    flex: 0 1 100%;
    margin-top: 3rem;
}

.related.products h2 {
    font-size: 1.8em;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.related.products ul.products {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Responsive */
@media (max-width: 768px) {
    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product .summary {
        flex: 0 1 100%;
    }

    .wc-tabs {
        flex-direction: column;
        gap: 0;
    }

    .wc-tabs li {
        margin-bottom: 0;
    }

    .wc-tabs li a {
        border-radius: 0;
    }

    .wc-tabs li:first-child a {
        border-radius: 4px 4px 0 0;
    }
} 