/* ================================================
   SECTION : PAGE CONFIRMATION DE COMMANDE
   (order-confirmation)
   Cible le vrai HTML généré par PrestaShop
   À ajouter à la fin du fichier CSS checkout
   ================================================ */

/* ---- Masquer breadcrumb/titre ---- */
body#order-confirmation #wrapper .breadcrumb,
body#order-confirmation .page-header {
    display: none !important;
}

/* ---- Full-width ---- */
body#order-confirmation #wrapper {
    padding-top: 0;
}

body#order-confirmation #wrapper .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

body#order-confirmation #wrapper .container>.row {
    margin: 0;
}

body#order-confirmation #content-wrapper {
    padding: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    width: 100%;
}

body#order-confirmation #main .page-content {
    margin-bottom: 0;
}

body#order-confirmation #content {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* Reset card PS par défaut */
body#order-confirmation #content.page-content.card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ---- Page ---- */
.pc-order-confirmation-page {
    padding: 0;
    margin: 0;
}


/* ================================================
   HERO — même style que les autres pages customer
   ================================================ */

.pc-confirmation-hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    background-image: url('/img/cms/hero-compte.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -80px;
}

.pc-confirmation-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 44, 44, 0.3);
    backdrop-filter: blur(0px);
}

.pc-confirmation-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.pc-success-icon {
    width: 100px;
    height: 100px;
    background: rgba(138, 199, 0, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(138, 199, 0, 0.4);
    animation: successPulse 2.5s ease-in-out infinite;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.pc-success-icon .material-icons {
    font-size: 56px;
    color: #8AC700;
}

.pc-confirmation-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pc-confirmation-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    color: #FAF6F1;
}


/* ================================================
   CONTAINER
   ================================================ */

.pc-confirmation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
    position: relative;
    z-index: 3;
}


/* ================================================
   CARD PRINCIPALE — Message de confirmation
   ================================================ */

.pc-confirmation-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 30px;
}

.pc-confirmation-card-header {
    background: linear-gradient(135deg, #A0CE4D 0%, #FAF6F1 100%);
    padding: 25px 40px;
    border-bottom: 1px solid #e5e5e5;
}

.pc-confirmation-card-header .pc-back-link {
    color: #2c2c2c !important;
}

.pc-confirmation-card-body {
    padding: 40px;
}

/* ---- Message succès ---- */
.pc-success-message h2 {
    font-size: 24px;
    font-weight: 700;
    color: #8AC700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-success-message h2 i {
    font-size: 30px;
    color: #8AC700;
}

.pc-success-message p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 8px 0;
}

.pc-success-message p:last-child {
    margin-bottom: 0;
}

.pc-payment-note {
    color: #888 !important;
    font-style: italic;
}

.pc-delivery-note {
    color: #555 !important;
}

.pc-support-note {
    color: #888 !important;
    margin-top: 15px !important;
}

.pc-support-link {
    color: #8AC700 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pc-support-link:hover {
    color: #A0CE4D !important;
    text-decoration: underline;
}

/* ---- Bouton facture ---- */
.pc-invoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8AC700 0%, #A0CE4D 100%);
    color: white !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pc-invoice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 199, 0, 0.3);
    color: white !important;
}

.pc-invoice-btn i {
    font-size: 18px;
}


/* ================================================
   HOOK CONFIRMATION — Module abonnement
   ================================================ */

.pc-hook-confirmation {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

/* Empêcher les duplications du module abonnement */
.pc-hook-confirmation .pc-sub-confirmation-box~.pc-sub-confirmation-box {
    display: none !important;
}

/* Style de la box abonnement */
.pc-hook-confirmation .pc-sub-confirmation-box,
.pc-hook-confirmation>div {
    background: #fafafa;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.pc-hook-confirmation h3,
.pc-hook-confirmation h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 15px;
}

.pc-hook-confirmation ul,
.pc-hook-confirmation ol {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.pc-hook-confirmation li {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.pc-hook-confirmation li:last-child {
    border-bottom: none;
}

/* Bouton gérer abonnements */
.pc-hook-confirmation a[href*="subscription"],
.pc-hook-confirmation a[href*="abonnement"],
.pc-hook-confirmation .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8AC700 0%, #A0CE4D 100%);
    color: white !important;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.pc-hook-confirmation a[href*="subscription"]:hover,
.pc-hook-confirmation a[href*="abonnement"]:hover,
.pc-hook-confirmation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 199, 0, 0.3);
}


/* ================================================
   DÉTAILS COMMANDE — 2 colonnes
   ================================================ */

.pc-order-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* ================================================
   CARD PRODUITS (gauche) — Vrai HTML PrestaShop
   #order-items utilise div.row + col-md-*, pas <table>
   ================================================ */

.pc-order-products-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pc-card-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 22px 30px;
    background: linear-gradient(135deg, #8AC700 0%, #A0CE4D 100%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-card-title i {
    font-size: 22px;
}

/* ---- Container #order-items ---- */
.pc-order-table-wrap {
    padding: 0;
}

.pc-order-table-wrap #order-items {
    padding: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

/* ---- En-tête colonnes (h3.card-title) ---- */
.pc-order-table-wrap #order-items>.row {
    margin: 0;
    background: #fafafa;
    border-bottom: 2px solid #f0f0f0;
    padding: 14px 30px;
    display: flex;
    align-items: center;
}

.pc-order-table-wrap #order-items>.row>.card-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888 !important;
    margin: 0;
    padding: 0;
}

/* ---- Chaque ligne produit ---- */
.pc-order-table-wrap .order-confirmation-table {
    padding: 0;
}

.pc-order-table-wrap .order-line {
    padding: 25px 30px;
    margin: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.pc-order-table-wrap .order-line:hover {
    background: rgba(138, 199, 0, 0.02);
}

.pc-order-table-wrap .order-line:last-of-type {
    border-bottom: none;
}

/* Image produit */
.pc-order-table-wrap .order-line .image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

/* Détails produit */
.pc-order-table-wrap .order-line .details {
    padding-left: 15px;
}

.pc-order-table-wrap .order-line .details span {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.5;
}

/* Colonnes prix/quantité/total */
.pc-order-table-wrap .order-line .qty {
    font-size: 15px;
    color: #555;
    font-weight: 600;
}

.pc-order-table-wrap .order-line .qty .bold {
    color: #8AC700;
    font-weight: 700;
}

/* Séparateur */
.pc-order-table-wrap .order-confirmation-table>hr {
    margin: 0;
    border: none;
    border-top: 2px solid #f0f0f0;
}

/* ---- Totaux (c'est bien un <table> pour le bas) ---- */
.pc-order-table-wrap .order-confirmation-table>table,
.pc-order-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pc-order-table-wrap table tr td {
    padding: 14px 30px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.pc-order-table-wrap table tr td:last-child {
    text-align: right;
    font-weight: 700;
    color: #2c2c2c;
}

.pc-order-table-wrap table tr:last-child td {
    border-bottom: none;
}

/* Total final (TOTAL TTC) */
.pc-order-table-wrap table tr.total-value td,
.pc-order-table-wrap table tr.font-weight-bold td {
    font-size: 17px;
    font-weight: 700 !important;
    color: #2c2c2c;
    padding: 20px 30px;
    background: #fafafa;
    border-top: 2px solid #f0f0f0;
    border-bottom: none;
}

.pc-order-table-wrap table tr.total-value td:last-child,
.pc-order-table-wrap table tr.font-weight-bold td:last-child {
    color: #8AC700;
    font-size: 22px;
}


/* ================================================
   CARD INFO (droite)
   ================================================ */

.pc-order-info-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
}

.pc-info-list {
    list-style: none;
    padding: 30px;
    margin: 0;
}

.pc-info-list li {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-info-list li:first-child {
    padding-top: 0;
}

.pc-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pc-info-list strong {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.pc-info-list span {
    font-size: 15px;
    color: #2c2c2c;
    font-weight: 700;
}

.pc-shipping-delay {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-top: 2px;
}

.pc-eco-info {
    background: rgba(138, 199, 0, 0.06);
    padding: 15px !important;
    border-radius: 10px;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
    border: none !important;
}

.pc-eco-info i {
    color: #8AC700;
    font-size: 20px;
}


/* ================================================
   CARD PAIEMENT RETURN
   ================================================ */

.pc-payment-return-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 30px 40px;
    margin-bottom: 30px;
}


/* ================================================
   CARD CRÉATION COMPTE
   ================================================ */

.pc-account-creation-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 40px;
    margin-bottom: 30px;
}

.pc-account-creation-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-account-creation-card h3 i {
    color: #8AC700;
    font-size: 28px;
}

.pc-account-form-wrap input[type="password"],
.pc-account-form-wrap input[type="text"],
.pc-account-form-wrap input[type="email"] {
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pc-account-form-wrap input:focus {
    border-color: #8AC700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 199, 0, 0.12);
}

.pc-account-form-wrap .btn {
    background: linear-gradient(135deg, #8AC700 0%, #A0CE4D 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.pc-account-form-wrap .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 199, 0, 0.3);
}


/* ================================================
   PRODUITS POPULAIRES — Cards .product-miniature
   (hook displayOrderConfirmation2)
   Même style que cards.css (.elementor-product-miniature)
   ================================================ */

.pc-confirmation-footer {
    margin-top: 30px;
}

/* Titre "PRODUITS POPULAIRES" */
.pc-confirmation-footer h2,
.pc-confirmation-footer .h2,
body#order-confirmation .featured-products h2,
body#order-confirmation .crossselling-products h2,
body#order-confirmation .products-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grille des cartes */
body#order-confirmation .products .products-grid,
body#order-confirmation .featured-products .products,
.pc-confirmation-footer .products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
    list-style: none;
}

/* ---- Card produit — même style que cards.css ---- */
body#order-confirmation .product-miniature {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    padding: 16px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    box-sizing: border-box;
}

body#order-confirmation .product-miniature:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Image */
body#order-confirmation .product-miniature .thumbnail-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

body#order-confirmation .product-miniature .thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

body#order-confirmation .product-miniature:hover .thumbnail-container img {
    transform: scale(1.03);
}

/* Badges */
body#order-confirmation .product-miniature .product-flags {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body#order-confirmation .product-miniature .product-flag {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.2;
}

body#order-confirmation .product-miniature .product-flag.new {
    background-color: #A0CE4D;
}

body#order-confirmation .product-miniature .product-flag.on-sale,
body#order-confirmation .product-miniature .product-flag.discount {
    background-color: #e74c3c;
}

body#order-confirmation .product-miniature .product-flag.out_of_stock {
    background-color: #e74c3c;
}

/* Wishlist bouton */
body#order-confirmation .product-miniature .wishlist-button-add {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

body#order-confirmation .product-miniature .wishlist-button-add:hover {
    background: #8AC700;
    color: white;
}

/* Nom produit */
body#order-confirmation .product-miniature .product-title {
    margin: 0 0 8px 0;
}

body#order-confirmation .product-miniature .product-title a {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

body#order-confirmation .product-miniature .product-title a:hover {
    color: #8AC700 !important;
}

/* Prix */
body#order-confirmation .product-miniature .product-price-and-shipping {
    margin: 0;
}

body#order-confirmation .product-miniature .price {
    font-size: 17px;
    font-weight: 700;
    color: #2c2c2c;
}

body#order-confirmation .product-miniature .regular-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
    margin-right: 6px;
}

body#order-confirmation .product-miniature .discount-percentage {
    display: none;
}

/* Aperçu rapide */
body#order-confirmation .product-miniature .quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

body#order-confirmation .product-miniature .thumbnail-container:hover .quick-view {
    opacity: 1;
}

/* Lien "Tous les produits" */
body#order-confirmation .all-product-link,
.pc-confirmation-footer .all-product-link {
    text-align: right;
    margin-top: 15px;
}

body#order-confirmation .all-product-link a,
.pc-confirmation-footer .all-product-link a {
    color: #8AC700 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

body#order-confirmation .all-product-link a:hover,
.pc-confirmation-footer .all-product-link a:hover {
    color: #A0CE4D !important;
}


/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 991px) {
    body#order-confirmation .product-miniature {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .pc-confirmation-hero {
        height: 400px;
        margin-bottom: -60px;
    }

    .pc-success-icon {
        width: 80px;
        height: 80px;
    }

    .pc-success-icon .material-icons {
        font-size: 44px;
    }

    .pc-confirmation-title {
        font-size: 28px;
    }

    .pc-confirmation-subtitle {
        font-size: 15px;
    }

    .pc-confirmation-card-header {
        padding: 20px 25px;
    }

    .pc-confirmation-card-body {
        padding: 25px 20px;
    }

    .pc-success-message h2 {
        font-size: 20px;
    }

    /* Grid 1 colonne */
    .pc-order-details-grid {
        grid-template-columns: 1fr;
    }

    .pc-card-title {
        padding: 18px 20px;
        font-size: 16px;
    }

    /* Produits — en-tête colonnes */
    .pc-order-table-wrap #order-items>.row {
        padding: 12px 20px;
    }

    .pc-order-table-wrap #order-items>.row>._desktop-title {
        display: none !important;
    }

    /* Produits — lignes */
    .pc-order-table-wrap .order-line {
        padding: 20px;
        flex-wrap: wrap;
    }

    .pc-order-table-wrap .order-line .image img {
        width: 60px;
        height: 60px;
    }

    /* Totaux */
    .pc-order-table-wrap table tr td {
        padding: 12px 20px;
    }

    .pc-order-table-wrap table tr.total-value td,
    .pc-order-table-wrap table tr.font-weight-bold td {
        padding: 15px 20px;
    }

    /* Info card */
    .pc-info-list {
        padding: 20px;
    }

    .pc-account-creation-card {
        padding: 25px 20px;
    }

    .pc-payment-return-card {
        padding: 20px;
    }

    .pc-hook-confirmation>div {
        padding: 20px;
    }

    /* Product cards */
    body#order-confirmation .product-miniature {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    body#order-confirmation .product-miniature {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pc-order-table-wrap table tr.total-value td:last-child,
    .pc-order-table-wrap table tr.font-weight-bold td:last-child {
        font-size: 18px;
    }
}


.pc-confirmation-footer {
    display: none;
}