/* PEUT ETRE SURCHARGÉ AINSI : user/themes/votre-theme/css/simple-shop/cart.css */

.shop-cart-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: sans-serif;
}

.cart-title {
    margin-bottom: 1.5rem;
}

/* Panier vide */
.cart-empty {
    text-align: center;
    padding: 3rem 0;
}

.cart-empty-message {
    font-size: 1.2rem;
    color: #666;
}

.btn-back-shop {
    display: inline-block;
    margin-top: 1rem;
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
}

/* Liste des articles */
.cart-items {
    margin-bottom: 2.5rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-item-details {
    flex: 2;
}

.cart-item-title {
    margin: 0;
    font-size: 1.1rem;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
}

.cart-item-title a:hover {
    text-decoration: underline;
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
}

/* Quantités */
.cart-form-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-input-quantity {
    width: 50px;
    padding: 0.25rem;
    text-align: center;
}

.btn {
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 3px;
}

.btn-update {
    font-size: 0.8rem;
    background: #e7e7e7;
    padding: 0.25rem 0.5rem;
}

.cart-item-subtotal {
    flex: 1;
    text-align: right;
    font-weight: bold;
}

.cart-form-remove {
    margin: 0;
}

.btn-remove-link {
    background: none;
    border: none;
    color: #d9534f;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-total {
    text-align: right;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 1rem 0;
}

.cart-separator {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 2rem 0;
}

/* Checkout Formulaire */
.checkout-section {
    margin-top: 2rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
}

.checkout-notice {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.checkout-form .form-field {
    margin-bottom: 1rem;
}

.checkout-form .form-group-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkout-form .form-group-row .form-field {
    flex: 1;
    margin-bottom: 0;
}

.checkout-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Bloc d'extension details facturation */
.billing-details-toggle {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

.billing-summary-title {
    cursor: pointer;
    font-weight: bold;
    color: #333;
    outline: none;
    user-select: none;
}

.billing-summary-title:hover {
    text-decoration: underline;
}

.billing-fields-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f0f0;
    border-left: 3px solid #ccc;
    border-radius: 0 4px 4px 0;
}

.btn-submit-checkout {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit-checkout:hover {
    background: #222;
}
