/* produit.php - Product Detail Page Styles */

/* Breadcrumbs */
.produit_breadcrumb {
    padding: 15px 40px;
    background-color: #f8f8f8;
    font-size: 14px;
}
.produit_breadcrumb a {
    text-decoration: none;
    color: #666;
}
.produit_breadcrumb a:hover {
    color: #73B504;
}
.produit_breadcrumb span {
    margin: 0 8px;
    color: #999;
}
.produit_breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* Main Product Section */
.produit_main {
    display: flex;
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 40px;
}

/* Gallery */
.produit_gallery {
    width: 45%;
}
.produit_main_image {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
}
.produit_main_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.produit_main_image:hover img {
    transform: scale(1.05);
}
.produit_main_image .badge_promo {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}
.produit_thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.produit_thumb {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.produit_thumb:hover,
.produit_thumb.active {
    border-color: #73B504;
}
.produit_thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.produit_info {
    width: 55%;
}
.produit_info h1 {
    font-size: 26px;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
}
.produit_brand {
    color: #73B504;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}
.produit_rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}
.produit_rating .stars {
    color: #f4c10f;
    font-size: 18px;
}
.produit_rating .count {
    color: #888;
    font-size: 13px;
}
.produit_price {
    margin-bottom: 20px;
}
.produit_price .current_price {
    font-size: 28px;
    font-weight: 700;
    color: #222;
}
.produit_price .old_price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-left: 12px;
}
.produit_price .discount_badge {
    display: inline-block;
    background: #73B504;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}
.produit_description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Quantity & Add to Cart */
.produit_actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.produit_quantity {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}
.produit_quantity button {
    width: 42px;
    height: 46px;
    background: #f5f5f5;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
}
.produit_quantity button:hover {
    background: #e0e0e0;
}
.produit_quantity input {
    width: 60px;
    height: 46px;
    border: none;
    border-left: 2px solid #e0e0e0;
    border-right: 2px solid #e0e0e0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}
.produit_add_to_cart {
    padding: 14px 40px;
    background: #73B504;
    color: #fff;
    border: 2px solid #73B504;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}
.produit_add_to_cart:hover {
    background: #fff;
    color: #73B504;
}

/* Product Meta */
.produit_meta {
    border-top: 1px solid #e8e8e8;
    padding-top: 18px;
}
.produit_meta_item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.produit_meta_label {
    color: #888;
    min-width: 80px;
}

/* Tabs Section */
.produit_tabs_section {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}
.produit_tabs_nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    gap: 0;
}
.produit_tab_btn {
    padding: 14px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    transition: all 0.2s;
    margin-bottom: -2px;
}
.produit_tab_btn:hover {
    color: #333;
}
.produit_tab_btn.active {
    color: #73B504;
    border-bottom-color: #73B504;
}
.produit_tab_content {
    display: none;
    padding: 25px 0;
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}
.produit_tab_content.active {
    display: block;
}

/* Additional Info Table */
.produit_tab_content table {
    width: 100%;
    border-collapse: collapse;
}
.produit_tab_content table th,
.produit_tab_content table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.produit_tab_content table th {
    background: #f9f9f9;
    width: 30%;
    font-weight: 600;
}

/* Review Form */
.review_form {
    margin-top: 20px;
}
.review_form h4 {
    margin-bottom: 15px;
    font-size: 18px;
}
.review_form .star_select {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.review_form .star_select input {
    display: none;
}
.review_form .star_select label {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.review_form .star_select label:hover,
.review_form .star_select label:hover ~ label,
.review_form .star_select input:checked ~ label {
    color: #f4c10f;
}
.review_form textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}
.review_form textarea:focus {
    outline: none;
    border-color: #73B504;
}
.review_form .submit_review {
    padding: 12px 30px;
    background: #73B504;
    color: #fff;
    border: 2px solid #73B504;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.review_form .submit_review:hover {
    background: #fff;
    color: #73B504;
}

/* Related Products */
.produit_related {
    max-width: 1300px;
    margin: 50px auto 40px;
    padding: 0 20px;
}
.produit_related h2 {
    text-align: center;
    font-size: 28px;
    color: #222;
    margin-bottom: 30px;
    position: relative;
}
.produit_related h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #73B504;
    margin: 12px auto 0;
}
.related_products_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.related_product_card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: #fff;
    text-align: center;
}
.related_product_card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.related_product_card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 15px;
}
.related_product_info {
    padding: 0 15px 20px;
}
.related_product_info .related_name {
    font-size: 14px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
    margin-bottom: 8px;
}
.related_product_info .related_price {
    font-weight: 700;
    color: #222;
    font-size: 16px;
}
.related_product_card .related_add {
    display: block;
    padding: 10px;
    background: #73B504;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.related_product_card .related_add:hover {
    background: #7cb81e;
}

/* Responsive */
@media (max-width: 1200px) {
    .produit_main {
        padding: 0 15px;
        gap: 30px;
    }
    .produit_info h1 {
        font-size: 24px;
    }
    .produit_price .current_price {
        font-size: 24px;
    }
    .related_products_grid {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .produit_main {
        flex-direction: column;
        gap: 25px;
    }
    .produit_gallery,
    .produit_info {
        width: 100%;
    }
    .produit_main_image {
        max-width: 500px;
        margin: 0 auto;
    }
    .produit_thumbnails {
        justify-content: center;
    }
    .related_products_grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .produit_related h2 {
        font-size: 24px;
    }
    .produit_tabs_section {
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    .produit_breadcrumb {
        padding: 12px 20px;
        font-size: 13px;
    }
    .produit_main {
        padding: 0 15px;
        margin: 20px auto;
    }
    .produit_info h1 {
        font-size: 21px;
    }
    .produit_price .current_price {
        font-size: 22px;
    }
    .produit_price .old_price {
        font-size: 16px;
    }
    .produit_thumb {
        width: 65px;
        height: 65px;
    }
    .produit_add_to_cart {
        padding: 12px 30px;
        font-size: 15px;
    }
    .related_products_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .produit_related h2 {
        font-size: 22px;
    }
    .produit_tab_btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    .produit_tab_content {
        font-size: 14px;
    }
    .produit_tab_content table th,
    .produit_tab_content table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    .produit_tab_content table th {
        width: 40%;
    }
}

@media (max-width: 576px) {
    .produit_actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .produit_add_to_cart {
        width: 100%;
        text-align: center;
    }
    .produit_tabs_nav {
        flex-wrap: wrap;
    }
    .produit_tab_btn {
        flex: 1;
        text-align: center;
        padding: 12px 15px;
        font-size: 14px;
    }
    .related_products_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .produit_breadcrumb {
        padding: 12px 15px;
        font-size: 12px;
    }
    .produit_info h1 {
        font-size: 19px;
    }
    .produit_description {
        font-size: 14px;
    }
    .produit_quantity button {
        width: 38px;
        height: 40px;
        font-size: 18px;
    }
    .produit_quantity input {
        width: 50px;
        height: 40px;
        font-size: 14px;
    }
    .produit_main_image .badge_promo {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 12px;
    }
    .review_form textarea {
        height: 100px;
    }
    .review_form .submit_review {
        width: 100%;
        text-align: center;
    }
    .produit_related {
        margin: 35px auto 30px;
        padding: 0 15px;
    }
    .related_product_info .related_name {
        font-size: 13px;
        height: 36px;
    }
    .related_product_info .related_price {
        font-size: 14px;
    }
    .related_product_card .related_add {
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .produit_main {
        padding: 0 10px;
        gap: 20px;
    }
    .produit_breadcrumb {
        padding: 10px 12px;
        font-size: 11px;
    }
    .produit_info h1 {
        font-size: 18px;
    }
    .produit_price .current_price {
        font-size: 20px;
    }
    .produit_price .old_price {
        font-size: 14px;
    }
    .produit_thumb {
        width: 55px;
        height: 55px;
    }
    .related_products_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .produit_related h2 {
        font-size: 20px;
    }
    .produit_tabs_nav {
        flex-direction: column;
    }
    .produit_tab_btn {
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 0;
    }
    .produit_tab_btn.active {
        border-bottom: 1px solid #73B504;
    }
    .produit_tabs_section {
        margin: 20px auto;
    }
    .produit_meta_item {
        font-size: 12px;
    }
    .produit_meta_label {
        min-width: 65px;
    }
}
