/* Cart Toast Notifications */
.cart-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    z-index: 99999;
    transform: translateX(120%);
    transition: transform .3s ease;
    font-size: 14px;
    font-weight: 500;
    max-width: 340px;
}
.cart-toast.show {
    transform: translateX(0);
}
.cart-toast-success .cart-toast-icon {
    color: #8bc34a;
    font-size: 18px;
}
.cart-toast-error .cart-toast-icon {
    color: #dc3545;
    font-size: 18px;
}

/* Mini Cart Quantity Widget */
#shoppingCart .wg-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}
#shoppingCart .wg-quantity .btn-quantity {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #f8f8f8;
    user-select: none;
    transition: background .15s;
}
#shoppingCart .wg-quantity .btn-quantity:hover {
    background: #eee;
}
#shoppingCart .wg-quantity .quantity-product {
    width: 36px;
    height: 28px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    font-size: 13px;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}
#shoppingCart .wg-quantity .quantity-product::-webkit-outer-spin-button,
#shoppingCart .wg-quantity .quantity-product::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Mini Cart Item */
#shoppingCart .tf-mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
#shoppingCart .tf-mini-cart-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
}
#shoppingCart .tf-mini-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#shoppingCart .tf-mini-cart-info {
    flex: 1;
    min-width: 0;
}
#shoppingCart .tf-mini-cart-info .title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#shoppingCart .tf-mini-cart-info .meta-variant {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
#shoppingCart .tf-mini-cart-info .price {
    font-size: 14px;
    color: #8bc34a;
    margin-bottom: 8px;
}
#shoppingCart .tf-mini-cart-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Cart Page */
.cart-page-wrapper {
    padding: 32px 0 60px;
}
.cart-page-header {
    margin-bottom: 32px;
}
.cart-page-item {
    transition: background .15s;
}
.cart-page-item:hover {
    background: #fafafa;
}

/* Cart Page Quantity Widget */
.cart-page-item-qty .wg-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}
.cart-page-item-qty .btn-quantity {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #f8f8f8;
    user-select: none;
    transition: background .15s;
}
.cart-page-item-qty .btn-quantity:hover {
    background: #eee;
}
.cart-page-item-qty .quantity-product {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}
.cart-page-item-qty .quantity-product::-webkit-outer-spin-button,
.cart-page-item-qty .quantity-product::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Cart Summary Card */
.cart-summary-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.cart-summary-total {
    border-top: 2px solid #333;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
}

/* Empty Cart */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
}
.cart-empty-state .icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}
.cart-empty-state h3 {
    margin-bottom: 12px;
}
.cart-empty-state p {
    color: #999;
    margin-bottom: 24px;
}

/* Checkout page */
.checkout-devis-wrapper {
    padding: 32px 0 60px;
}
.checkout-form-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}
.checkout-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.checkout-product-row:last-child {
    border-bottom: none;
}
.checkout-product-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
}
.checkout-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading state on button */
[data-add-to-cart].loading {
    pointer-events: none;
    opacity: .6;
}

/* Responsive */
@media (max-width: 767px) {
    .cart-toast {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
    .cart-page-item {
        flex-wrap: wrap;
    }
    .cart-page-item-total {
        min-width: auto !important;
    }
}
