/* =======================
   CART PAGE
======================= */
.cart-page {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 20px 20px;
}

.cart-page h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #222;
}

/* =======================
   GRID 2 COLUMNAS
======================= */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    align-items: start;
}

/* =======================
   PRODUCTOS
======================= */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: flex;
    gap: 18px;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.cart-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
}

.cart-info {
    flex: 1;
}

.cart-info h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #222;
}

.cart-info span {
    display: block;
    font-weight: 600;
    color: #7b2cbf;
    margin-bottom: 10px;
}

/* =======================
   CANTIDAD
======================= */
.qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    background: #f2e9ff;
    color: #7b2cbf;
    transition: .2s;
}

.qty-btn:hover {
    background: #7b2cbf;
    color: #fff;
}

.qty-value {
    font-weight: 600;
    min-width: 22px;
    text-align: center;
}
.remove-item {
    margin: 8px;
background: none;
    color: #e60000;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.remove-item:hover{
    /* hacer como zoom */
    transform: scale(1.1);
}



/* =======================
   RESUMEN / CHECKOUT
======================= */
.cart-summary {
    background: #fff;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    position: sticky;
    top: 100px;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
}

.cart-total span {
    color: #7b2cbf;
}

/* =======================
   FORMULARIO
======================= */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-form input {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    outline: none;
}

.checkout-form input:focus {
    border-color: #7b2cbf;
}
h3{
    color: #222;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;

}

/* =======================
   BOTÓN
======================= */
.checkout-btn {
    margin-top: 10px;
    padding: 14px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    background: #7b2cbf;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transition: .3s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(123,44,191,.35);
}

/* =======================
   CARRITO VACÍO
======================= */
.empty-cart {
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    font-size: 1.1rem;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}
