/* =========================================================
   ASSETS/CSS/COMPONENTS.CSS - KHUSUS KERANJANG & CHECKOUT
   (Bebas Bentrok / Crash-Free)
   ========================================================= */

/* ================== CART ITEM COMPONENT (KERANJANG) ================== */
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-info h3 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}
.cart-item-total {
    font-weight: bold;
    color: var(--primary, #6B46C1);
    text-align: right;
}
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
}
.quantity-control button {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.quantity-control button:hover {
    background: var(--primary, #6B46C1);
    color: white;
}
.remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
}

/* ================== FORM INPUT (CHECKOUT) ================== */
.checkout-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #334155;
}
.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Mencegah form melebar keluar batas */
}
.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--primary, #6B46C1);
}
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}
