.data_card {
    margin: 50px auto;
    width: 90%;
    max-width: 800px;
    font-family: var(--font-primary);
}


.item-image {
    width: 100px;
    object-fit: cover;
}

.delete_and_price {
    width: 70px;
}

@media (max-width: 542px) {

    .action_control {
        display: flex;
        align-items: end;
        justify-content: end;
    }

    .delete_and_price {
        height: 100%;
        align-items: stretch;
        display: flex;
        justify-content: space-between;
        flex-direction: row-reverse;
    }

    .delete_and_price p {
        font-size: 1.4rem;
        font-weight: 400;
        color: var(--color-primary);
        margin-left: 20px;
    }

    .item-details-left {
        width: 70%;
        justify-content: space-between;
        display: flex;
        flex-direction: column;
    }

    .cart-actions {
        width: 100%;
        justify-content: end;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .next-smartphone {
        width: fit-content;
        margin-left: auto;
        display: flex;
        margin-top: 15px;
    }

    .next-desktop {
        display: none;
    }

    .secondary_action {
        margin-left: 10px;
    }

}

@media (min-width: 543px) {

    .item-details-left {
        display: flex;
        width: 70%;
        justify-content: space-between;
    }

    .action_control {
        display: flex;
        align-items: end;
    }

    .delete_and_price {
        height: 100%;
        align-items: stretch;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .delete_and_price p {
        font-size: 1.2rem;
        font-weight: 400;
        color: var(--color-primary);
    }

    .cart-actions {
        margin-top: 40px;
        width: 80%;
        justify-content: space-between;
    }

    .next-smartphone {
        display: none;
    }

    .next-desktop {
        display: flex;
    }

}

@media (min-width: 543px) AND (max-width: 710px) {

    .cart-actions {
        width: 100%;
    }

}

@media (min-width: 711px) {

    .cart-actions {
        width: 80%;
    }

}


@media (max-width: 550px) {
    .main-content {
        width: 98% !important;

    }
}


.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    margin-top: 23px;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 15px;

}

.item-details {
    height: fit-content;
    font-weight: 200;
}

.item-title {
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-weight: 300;
    color: var(--color-primary-hard);
}

.item-options {
    font-size: 0.9rem;
}

.item-options small {
    display: flex;
    align-items: center;
    margin-right: 10px;
}
.quantity-controls {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.quantity-controls p {
    margin: 0 10px;
    font-size: 1.2rem;
    font-weight: 200;
    color: var(--color-secondary);
}

.quantity-btn {
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 200;
}

.btn_remove {
    cursor: pointer;
    align-self: center;
}


.cart-summary {
    background-color: var(--color-primary-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.cart-summary h3 {
    color: var(--color-primary-hard);
    font-size: 1.2rem;
    font-weight: 200;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    font-size: 1rem;
    font-weight: 200;
}

.summary-total {
    border-top: 1px solid var(--color-primary);
    font-weight: 300;
    padding-top: 20px;
}

.cart-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.option-price {
    display: none;
    color: var(--color-primary-hard);
    font-weight: 500;
    margin-left: 5px;
    padding: 4px;
    background-color: var(--color-primary-light);
    border-radius: 5px;
}

.content-item-option {
    margin-bottom: 3px;
}

.color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 8px;
    border: 1px solid #ddd;
}

.color-preview-cart {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    margin-left: 8px;

}

/* Section panier vide */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--color-primary-very-light);
    border-radius: 15px;
    margin: 30px 0;
    border: 1px solid var(--color-primary-light);
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-cart h2 {
    color: var(--color-primary-hard);
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

.empty-cart p {
    color: var(--color-secondary-light);
    font-size: 1.1rem;
    font-weight: 200;
    margin-bottom: 30px;
    line-height: 1.5;
}

.empty-cart .btn-primary {
    background-color: var(--color-primary-hard);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 300;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary-hard);
}

.empty-cart .btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary-hard);
    border-color: var(--color-primary-hard);
}

/* Responsivité pour la section panier vide */
@media (max-width: 542px) {
    .empty-cart {
        padding: 40px 15px;
        margin: 20px 0;
    }

    .empty-cart-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .empty-cart h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .empty-cart p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .empty-cart .btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

