/* ============================
   GLOBAL PANIER
============================ */

div#panier {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-wrap: wrap;
}

div#panier h2 {
    text-align: center;
    color: #333;
    height: 100px;
    line-height: 100px;
    margin: 0;
    width: 100%;
}

/* ============================
   LAYOUT PRINCIPAL
============================ */

div#panier {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ============================
   COLONNE PANIER
============================ */

div#panier div.panier {
    flex: 2;
    padding: 10px 20px; 
    border-radius: 20px;
    border: solid 1px rgba(0, 0, 0, 0.15);
    order: 1;
}

/* ============================
   ARTICLE
============================ */

div.article {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    border-radius: 25px;
    border: solid 1px rgba(0, 0, 0, 0.15);
}

/* IMAGE */

div.article .image {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: solid 1px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

div.article .image div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* INFOS */

div.article .item {
    flex: 1;
    padding: 0 10px;
}

div.article .item a {
    display: block;
    color: #82716b;
    text-decoration: none;
    margin-bottom: 5px;
}

div.article .item span {
    display: block;
    font-size: 0.9em;
}

/* QTE */

div.article .qte {
    width: 60px;
    text-align: center;
}

/* PRIX */

div.article .prix {
    width: 90px;
    text-align: right;
    font-weight: bold;
    font-size: 1.1em;
}

/* ACTION */

div.article .actions {
    width: 30px;
    text-align: center;
}

div.article .actions a {
    color: #82716b;
    text-decoration: none;
    font-size: 1.2em;
}

/* ============================
   RESUME
============================ */

div.resume {
    flex: 1;
    padding: 15px 30px; 
    border-radius: 25px;
    background: rgba(0, 0, 100, 0.05);
    order: 2;
}

/* sticky desktop */

@media (min-width: 900px) {
    div.resume {
        position: sticky;
        top: 120px;
    }
}

div.resume h3 {
    display: none;
}

/* PRIX */

div.resume div.prix span {
    color: rgba(0,0,0,0.35);
    width: 50%;
    float: left;
}

div.resume div.prix strong {
    width: 50%;
    float: left;
    text-align: right;
    color: #333;
}

/* BOUTON */

div.resume button,
div.resume a.btn {
    background:#333;
    border: solid 1px #333;
    width: 100%;
    height: 50px;
    line-height: 50px;
    color: #fff;
    margin: 30px 0 10px 0;
    text-align: center;
    display: block;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: 0.3s;
}

div.resume button:hover,
div.resume a.btn:hover {
    background: transparent;
    color: #333;
}

/* ============================
   INPUTS
============================ */

div.resume input[name="promo_code"] {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    border: solid 1px rgba(0, 0, 0, 0.15);
    padding: 0 20px;
    margin: 10px 0 5px 0;
}

div.resume input[name="promo_code"]:focus {
    border-color: #333;
    outline: none;
}

/* ============================
   EMPTY
============================ */

div.empty {
    max-width: 1200px;
    margin: 0 auto;
    padding: 200px 20px;
    text-align: center;
}

/* ============================
   CLEAN INPUT NUMBER
============================ */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type=number] {
    -moz-appearance: textfield;
}

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

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

@media (max-width: 900px) {

    div#panier {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
        padding: 10px;
    }

    div#panier div.panier,
    div#panier div.resume {
        flex: 0 0 100%;
        width: 100%;
        box-sizing: border-box;
    }
}


/* ============================
   MOBILE PRO (RESET TOTAL)
============================ */

@media (max-width: 500px) {

    /* RESET TOTAL */
    div.article,
    div.article * {
        box-sizing: border-box;
    }

    /* CARTE */
    div.article {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;

        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(8px);

        border-radius: 20px;
        padding: 20px;
        margin: 15px 0;

        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border: 1px solid rgba(0,0,0,0.08);
    }

    /* IMAGE */
    div.article .image {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
        border-radius: 20px;
        overflow: hidden;
    }

    div.article .image div {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }

    /* TITRE */
    div.article .item {
        padding: 0;
    }
    div.article .item a {
        font-size: 1.05em;
        font-weight: 600;
        line-height: 1em;
        color: #5a4a45;
        display: block;
    }

    div.article .item span {
        display: block;
        font-size: 0.9em;
        color: #888;
        margin-top: 3px;
    }

    /* PRIX */
    div.article .prix {
        font-size: 1.3em;
        font-weight: bold;
        color: #000;
        text-align: center;
    }

    /* QUANTITE */
    div.article .qte {
        font-size: 0.9em;
        color: #777;
    }

    /* BOUTON SUPPRIMER */
    div.article .actions a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 40px;
        height: 40px;

        border-radius: 50%;
        background: rgba(0,0,0,0.05);

        font-size: 2em;
        color: #8f6f6f;
    }

    /* RESUME */
    div.resume {
        margin-top: 20px;
        padding: 20px;
    }

    div.resume button {
        height: 55px;
        font-size: 1.1em;
    }
}