
/* =====================================================
   CUISINE ITALIENNE - MON PANIER DE COURSES
   Design vert, blanc et bordeaux
===================================================== */

/* CONTENEUR PRINCIPAL */
.ci-shopping-page {
    max-width: 1050px;
    margin: 35px auto;
    padding: 25px;
    color: #333;
    box-sizing: border-box;
}

/* EN-TÊTE */
.ci-shopping-header {
    text-align: center;
    margin-bottom: 35px;
}

.ci-shopping-header h2 {
    color: #173f35;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ci-shopping-header p {
    color: #777;
    font-size: 16px;
}

/* CARTE RECETTE */
.ci-shopping-card {
    background: #fff;
    border: 1px solid #e5e9e6;
    border-left: 5px solid #173f35;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* TITRE RECETTE */
.ci-shopping-card h3 {
    color: #173f35;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8ece9;
}

/* LISTE DES INGRÉDIENTS */
.ci-shopping-items {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px !important;
}

.ci-shopping-items li {
    list-style: none !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

/* CASES À COCHER */
.ci-shopping-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #444;
}

.ci-shopping-item input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: #173f35;
    cursor: pointer;
    flex-shrink: 0;
}

/* INGRÉDIENT COCHÉ */
.ci-shopping-item input[type="checkbox"]:checked + span {
    color: #999;
    text-decoration: line-through;
}

/* SOUS-TITRES DES INGRÉDIENTS */
.ci-shopping-heading {
    color: #b8322d;
    font-weight: 700;
    font-size: 16px;
    padding-top: 18px !important;
}

/* BOUTONS */
.ci-shopping-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ci-shopping-buttons button,
.ci-shopping-clear {
    background: #173f35;
    color: #fff;
    border: 1px solid #173f35;
    border-radius: 5px;
    padding: 11px 17px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* SURVOL */
.ci-shopping-buttons button:hover {
    background: #b8322d;
    border-color: #b8322d;
    color: #fff;
}

/* SUPPRIMER */
.ci-shopping-buttons .ci-shopping-delete {
    background: #fff;
    color: #b8322d;
    border-color: #b8322d;
}

.ci-shopping-buttons .ci-shopping-delete:hover {
    background: #b8322d;
    color: #fff;
}

/* VIDER LA LISTE */
.ci-shopping-clear {
    background: #b8322d;
    border-color: #b8322d;
    margin-top: 5px;
}

.ci-shopping-clear:hover {
    background: #92251f;
    border-color: #92251f;
}

/* LISTE VIDE */
.ci-shopping-empty {
    text-align: center;
    background: #fff;
    border: 1px solid #e5e9e6;
    border-radius: 10px;
    padding: 45px 20px;
}

.ci-shopping-empty span {
    font-size: 45px;
}

.ci-shopping-empty p {
    color: #555;
    font-size: 16px;
}

/* MOBILE */
@media (max-width: 600px) {

    .ci-shopping-page {
        padding: 12px;
        margin: 15px auto;
    }

    .ci-shopping-header h2 {
        font-size: 25px;
    }

    .ci-shopping-card {
        padding: 18px 15px;
    }

    .ci-shopping-card h3 {
        font-size: 19px;
    }

    .ci-shopping-item label {
        font-size: 14px;
    }

    .ci-shopping-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ci-shopping-buttons button {
        width: 100%;
        padding: 11px 7px;
        font-size: 13px;
    }

    .ci-shopping-clear {
        width: 100%;
    }
}
