/**
 * THEROS - Styles pour la page produit
 * Page produit complète avec toutes les sections
 */

/* ========== VARIABLES ========== */
:root {
    --primary-color: #008B8B;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

/* ========== SECTION 1: DÉTAILS DU PRODUIT ========== */
.product-main-section {
    padding: 40px 0;
    background: #fff;
}

/* Galerie produit */
.product-images-container {
    position: sticky;
    top: 100px;
}

.product-cover-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}

.product-cover-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 500px;
    transition: opacity 0.3s ease;
    cursor: zoom-in;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 139, 139, 0.2);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informations produit */
.product-info-wrapper {
    padding-left: 30px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Ligne avis */
.product-rating-line {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.product-rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #ffa500;
    font-size: 18px;
    letter-spacing: 2px;
}

.rating-value {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-color);
}

.rating-count {
    color: #666;
    font-size: 14px;
}

/* Description courte */
.product-description-short {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* Prix et Stock */
.product-price-stock-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-old {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
}

.product-discount-badge {
    background: var(--danger-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.product-availability {
    font-size: 15px;
    font-weight: 600;
}

.product-available {
    color: var(--success-color);
}

.product-unavailable {
    color: var(--danger-color);
}

.product-available i,
.product-unavailable i {
    margin-right: 5px;
}

/* Variantes */
.product-variants {
    margin-bottom: 25px;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.variant-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-option {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.variant-option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 139, 139, 0.05);
}

.variant-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

/* Actions produit (quantité + boutons) */
.product-actions {
    margin-bottom: 30px;
}

.product-quantity-cart {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 50px;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: var(--text-color);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.qty-input {
    width: 70px;
    height: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart-btn,
.buy-now-btn {
    height: 50px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: #fff;
    flex: 1;
}

.add-to-cart-btn:hover {
    background: #006f6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 139, 139, 0.3);
}

.buy-now-btn {
    background: var(--secondary-color);
    color: #fff;
}

.buy-now-btn:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

/* Fiches techniques */
.product-technical-files {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.technical-file-btn {
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.technical-file-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Modes de paiement */
.payment-methods-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.section-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.payment-icons-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-method-icon {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Éléments répéteurs */
.product-features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.product-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* Accordéon services */
.product-services-accordion {
    margin-bottom: 30px;
}

.accordion-services {
    margin-top: 15px;
}

.accordion-service-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-service-header:hover {
    background: #e8e8e8;
}

.accordion-service-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.accordion-toggle-icon {
    font-size: 14px;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.accordion-toggle-icon.rotated {
    transform: rotate(180deg);
}

.accordion-service-body {
    display: none;
}

.accordion-service-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* ========== SECTION 2: ONGLETS ========== */
.product-tabs-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.product-tabs {
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 30px;
}

.product-tabs .nav-item {
    margin-right: 5px;
}

.product-tabs .nav-link {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: all 0.3s ease;
}

.product-tabs .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.product-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.product-tab-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Contenu description */
.product-description-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Détails techniques */
.product-technical-details {
    display: grid;
    gap: 30px;
}

.detail-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    background: var(--light-gray);
}

.detail-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    align-items: center;
}

.detail-key {
    font-weight: 600;
    color: var(--text-color);
    text-align: right;
}

.detail-separator {
    color: var(--primary-color);
    font-weight: 700;
}

.detail-value {
    color: #555;
}

.product-info-note {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.product-info-note i {
    color: var(--warning-color);
    font-size: 20px;
    margin-top: 2px;
}

.product-info-note span {
    font-size: 14px;
    line-height: 1.6;
    color: #856404;
}

/* Contenu livraison */
.product-delivery-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

/* ========== SECTION 3: AVIS CLIENTS ========== */
.product-reviews-section {
    padding: 60px 0;
    background: #fff;
}

.section-title-main {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 5px solid var(--primary-color);
}

.reviews-placeholder {
    padding: 40px;
    text-align: center;
    background: var(--light-gray);
    border-radius: 8px;
    color: #666;
}

/* ========== SECTION 4: PRODUITS RECOMMANDÉS ========== */
.recommended-products-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.products-grid {
    margin-top: 30px;
}

/* ========== SECTION 5: DEVIS SUR-MESURE ========== */
.professional-quote-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #006f6f);
    color: #fff;
}

.quote-main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.quote-header {
    text-align: center;
    margin-bottom: 50px;
}

.quote-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.quote-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.quote-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.quote-option-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.quote-option-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.quote-option-icon {
    font-size: 40px;
    line-height: 1;
}

.quote-option-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.quote-option-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.quote-call-to-action {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote-cta-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.quote-cta-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.quote-benefits-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.quote-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-color);
}

.quote-benefit-item i {
    color: var(--success-color);
    font-size: 18px;
}

.btn-quote-primary {
    display: inline-block;
    padding: 18px 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-quote-primary:hover {
    background: #006f6f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 139, 139, 0.4);
}

.btn-quote-primary small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}

/* ========== SECTION 6: PRODUITS VUS ========== */
.viewed-products-section {
    padding: 60px 0;
    background: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .product-info-wrapper {
        padding-left: 0;
        margin-top: 30px;
    }

    .product-title {
        font-size: 26px;
    }

    .product-price {
        font-size: 28px;
    }

    .product-quantity-cart {
        flex-direction: column;
        width: 100%;
    }

    .quantity-selector,
    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .product-price-stock-line {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .quote-options-grid {
        grid-template-columns: 1fr;
    }

    .quote-call-to-action {
        padding: 30px 20px;
    }

    .quote-benefits-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title-main {
        font-size: 24px;
    }
}

/* ========== NOTIFICATION PANIER ========== */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 20px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification.success {
    border-left: 5px solid var(--success-color);
}

.cart-notification.error {
    border-left: 5px solid var(--danger-color);
}

.cart-notification i {
    font-size: 24px;
}

.cart-notification.success i {
    color: var(--success-color);
}

.cart-notification.error i {
    color: var(--danger-color);
}

.cart-notification span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

@media (max-width: 767px) {
    .cart-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-150px);
    }

    .cart-notification.show {
        transform: translateY(0);
    }
}
