/* =========================================
   FICHE PRODUIT (FLEXBOX DESIGN)
   ========================================= */

.artifact-single-product {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Satoshi', sans-serif;
    color: #1a1a1a;
}

/* --- HAUT DE LA PAGE (Galerie + Infos) --- */
.product-top-section {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 80px;
}

/* Galerie d'images */
.product-gallery-area {
    flex: 1;
    min-width: 400px;
    display: flex;
    gap: 20px;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-thumbnails img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    background: #f5f5f5;
}

.gallery-thumbnails img:hover {
    border-color: #b8860b;
}

.gallery-main-image {
    flex: 1;
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 16px;
    background: #f5f5f5;
}

/* Infos Produit (Droite) */
.product-info-area {
    flex: 1;
    min-width: 400px;
}

.product-info-area h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.product-rating {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-rating span.stars {
    color: #b8860b;
    letter-spacing: 2px;
}

/* Affichage du prix WooCommerce */
.product-price-wrapper {
    margin-bottom: 30px;
}
.product-price-wrapper .price {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 15px;
}
.product-price-wrapper .price del {
    color: #999;
    font-size: 22px;
    font-weight: normal;
}
.product-price-wrapper .price ins {
    text-decoration: none;
}

.product-short-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* === BOUTON AJOUTER AU PANIER WOOCOMMERCE === */
.product-add-to-cart form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Champ Quantité */
.product-add-to-cart .quantity input.qty {
    width: 80px;
    height: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

/* Le fameux Bouton */
.product-add-to-cart button.single_add_to_cart_button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0 40px;
    height: 50px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-add-to-cart button.single_add_to_cart_button:hover {
    background-color: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

/* --- TABS (Détails, Avis...) --- */
.product-tabs-section {
    margin-bottom: 80px;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.tab-item {
    font-size: 20px;
    color: #999;
    padding-bottom: 15px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.tab-item.active {
    color: #000;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

.tab-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* --- PRODUITS SIMILAIRES --- */
.related-products-section {
    margin-bottom: 80px;
}

.related-products-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.related-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.related-item h3 {
    font-size: 18px;
    color: #000;
    margin-bottom: 5px;
}

.related-item .price {
    font-weight: bold;
    color: #b8860b;
}

/* --- NEWSLETTER --- */
.newsletter-banner {
    background: #4a4a4a;
    border-radius: 16px;
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-banner h2 {
    color: #fff;
    font-size: 32px;
    margin: 0;
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 600px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
}

.newsletter-form button {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #b8860b;
    color: #fff;
}

/* Responsive Tablette/Mobile */
@media (max-width: 900px) {
    .product-top-section { flex-direction: column; }
    .gallery-thumbnails { flex-direction: row; justify-content: center; }
    .gallery-thumbnails img { width: 70px; height: 70px; }
    .newsletter-banner { flex-direction: column; text-align: center; padding: 30px; }
}