/* ====================================
   PANIER — PAGE ENTIÈRE (MOBILE)
   ==================================== */

.panier-section {
    background: #ffffff;
    padding: 40px 20px 60px 20px;
    min-height: 60vh;

}

.panier-title {
    font-family: "Saira", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0d1f24;
    margin-bottom: 24px;
}

/* LAYOUT : colonne sur mobile, côte à côte sur desktop */
.panier-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: auto;
}


/* ====================================
   TABLEAU ARTICLES
   ==================================== */

.panier-table-wrap {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.panier-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Largeurs fixes des colonnes */
.panier-table thead th:nth-child(1) {
    width: auto;
}

.panier-table thead th:nth-child(2) {
    width: 160px;
}

.panier-table thead th:nth-child(3) {
    width: 120px;
    text-align: right;
}

/* EN-TÊTES */
.panier-table thead tr {
    border-bottom: 1px solid #eee;
}

.panier-table thead th {
    padding: 14px 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-align: left;
}

.panier-table thead th:last-child {
    text-align: right;
}

/* LIGNES */
.panier-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.panier-table tbody tr:last-child {
    border-bottom: none;
}

.panier-table td {
    padding: 16px;
    vertical-align: middle;
}

/* COLONNE PRODUIT */
.panier-produit {
    display: flex;
    align-items: center;
    gap: 14px;
}

.panier-produit-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 4px;
    flex-shrink: 0;
}

.panier-produit-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.panier-produit-brand {
    font-size: 13px;
    font-weight: 600;
    color: #147a83;
    text-decoration: none;
}

.panier-produit-brand:hover {
    text-decoration: underline;
}

.panier-produit-name {
    font-family: "Saira", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0d1f24;
    line-height: 1.3;
}

.panier-produit-price {
    font-size: 13px;
    font-weight: 700;
    color: #147a83;
    margin-top: 2px;
}

.panier-supprimer {
    background: none;
    border: none;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-top: 4px;
    font-family: "Montserrat", sans-serif;
    transition: color 0.2s;
    text-align: left;
}

.panier-supprimer:hover {
    color: #e00;
}

/* COLONNE QUANTITÉ */
.panier-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.panier-qty-val {
    font-family: "Saira", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 4px 0;
    width: 40px;
    min-width: 40px;
    text-align: center;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.panier-qty-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #444;
    padding: 4px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    transition: background 0.15s;
}

.panier-qty-btn:hover {
    background: #f5f5f5;
}

/* COLONNE TOTAL */
.panier-total-cell {
    font-family: "Saira", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0d1f24;
    text-align: right;
    white-space: nowrap;
}

.panier-table tbody td:last-child {
    text-align: right;
    font-family: "Saira", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0d1f24;
    white-space: nowrap;
}

/* PANIER VIDE */
.panier-vide {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 15px;
}

.panier-vide a {
    color: #147a83;
    font-weight: 600;
    text-decoration: none;
}

.panier-vide a:hover {
    text-decoration: underline;
}

/* Fix tableau mobile */
@media (max-width: 767px) {

    /* Cacher colonne total */
    .panier-table thead th:last-child,
    .panier-table tbody td:last-child,
    .panier-total-cell {
        display: none;
    }

    /* Table en layout auto sur mobile */
    .panier-table {
        table-layout: auto;
    }

    /* Colonnes */
    .panier-table thead th:nth-child(1) {
        width: auto;
    }

    .panier-table thead th:nth-child(2) {
        width: auto;
    }

    .panier-table td {
        padding: 12px 8px;
        vertical-align: middle;
    }

    /* Produit */
    .panier-produit {
        gap: 10px;
    }

    .panier-produit-img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .panier-produit-name {
        font-size: 12px;
    }

    .panier-produit-brand {
        font-size: 11px;
    }

    .panier-produit-price {
        font-size: 12px;
    }

    /* Quantité — centré dans sa colonne */
    .panier-table tbody td:nth-child(2) {
        width: 90px;
        text-align: center;
    }

    .panier-qty {
        margin: 0 auto;
    }

    .panier-qty-val {
        padding: 4px 0;
        min-width: 28px;
        width: 28px;
    }

    .panier-qty-btn {
        padding: 4px 8px;
        font-size: 14px;
    }
}

/* ====================================
   RÉCAPITULATIF COMMANDE
   ==================================== */

.panier-recap {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panier-recap-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panier-recap-title span:first-child {
    font-family: "Saira", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0d1f24;
}

.panier-recap-total {
    font-family: "Saira", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0d1f24;
}

/* CODE PROMO */
.panier-promo {
    display: flex;
    gap: 8px;
}

.panier-promo input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.panier-promo input:focus {
    border-color: #147a83;
}

.panier-promo input::placeholder {
    color: #bbb;
}

.btn-promo {
    background: #147a83;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-promo:hover {
    background: #0f5f66;
}

/* LIVRAISON */
.panier-livraison {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.panier-livraison-offerte {
    font-weight: 700;
    color: #22c55e;
    font-size: 13px;
}

/* BOUTON PAYER */
.btn-payer {
    width: 100%;
    background: #147a83;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.btn-payer:hover {
    background: #0f5f66;
}

/* SÉCURITÉ */
.panier-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.panier-secure i {
    color: #147a83;
    font-size: 14px;
}


/* ====================================
   RÉCEMMENT CONSULTÉ
   ==================================== */

.recently-section {
    background: #ffffff;
    padding: 50px 20px 60px;
    border-top: 2px solid #f0f0f0;
}

.recently-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 28px;
}

.recently-section h2 {
    font-family: "Saira", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0d1f24;
    margin: 0;
    position: relative;
    padding-left: 14px;
}

.recently-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: #147a83;
    border-radius: 2px;
}

.recently-nav {
    display: flex;
    gap: 8px;
}

.recently-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.recently-btn:hover {
    background: #147a83;
    border-color: #147a83;
    color: #fff;
}

.recently-wrap {
    max-width: 1200px;
    margin: auto;
    padding-top: 6px;
    overflow-x: hidden;
}

.recently-slider {
    overflow: visible;
}

.recently-slider .swiper-slide {
    height: auto;
    display: flex;
}

/* CARTE */
.recently-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
}

.recently-card:hover {
    box-shadow: 0 8px 28px rgba(20, 122, 131, 0.12);
    border-color: #147a83;
    transform: translateY(-3px);
}

.recently-card-img {
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.recently-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.recently-card:hover .recently-card-img img {
    transform: scale(1.05);
}

.recently-card-body {
    padding: 16px 18px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.recently-card-brand {
    font-size: 12px;
    font-weight: 600;
    color: #147a83;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.recently-card-name {
    font-family: "Saira", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0d1f24;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recently-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.recently-card-price {
    font-family: "Saira", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0d1f24;
}

.recently-card-arrow {
    width: 28px;
    height: 28px;
    background: #147a83;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.recently-card:hover .recently-card-arrow {
    background: #0f5f66;
    transform: translateX(2px);
}



/* ====================================
   TABLETTE
   ==================================== */

@media (min-width: 768px) {

    .panier-section {
        padding: 50px 40px 60px 40px;
    }

    .panier-title {
        font-size: 34px;
    }

    .recently-section {
        padding: 50px 40px 60px;
    }

    .recently-section h2 {
        font-size: 26px;
    }

}


/* ====================================
   DESKTOP
   ==================================== */

@media (min-width: 1024px) {

    .panier-section {
        padding: 60px 60px 80px 60px;
    }

    .panier-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }

    .panier-table-wrap {
        flex: 1;
    }

    .panier-recap {
        width: 340px;
        min-width: 320px;
        position: sticky;
        top: 20px;
    }

    .recently-section {
        padding: 60px 60px 80px;
    }

    .recently-section h2 {
        font-size: 28px;
    }

}

/* ====================================
   VARIANTE (couleur + taille)
   ==================================== */

.panier-variante {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}