/* Página del carrito (Pinky Deal). */
.pd-cart {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    color: #141414;
}

.pd-cart__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 28px;
}

.pd-cart__empty {
    text-align: center;
    padding: 40px 0;
    opacity: 0.85;
}

.pd-cart__lines {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pd-cart__line {
    display: grid;
    grid-template-columns: 88px 1fr auto auto auto;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pd-cart__media {
    display: block;
    width: 88px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3efe8;
}

.pd-cart__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-cart__name {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
}

.pd-cart__name:hover { text-decoration: underline; }

.pd-cart__variant { margin: 4px 0 0; opacity: 0.65; font-size: 0.9rem; }
.pd-cart__unit { margin: 6px 0 0; opacity: 0.8; }

.pd-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    padding: 2px;
}

.pd-qty__btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    color: #141414;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pd-qty__btn:hover {
    background: rgba(255, 27, 130, 0.12);
    color: #ff1b82;
}

.pd-qty__value {
    min-width: 26px;
    text-align: center;
    font-weight: 600;
}

.pd-cart__lineTotal { font-weight: 600; min-width: 70px; text-align: right; }

.pd-cart__remove button {
    border: 0;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    padding: 6px;
}

.pd-cart__remove button:hover { opacity: 1; color: #ff1b82; }

/* Resumen */
.pd-cart__summary {
    margin-top: 28px;
    margin-left: auto;
    max-width: 360px;
    text-align: right;
}

.pd-cart__subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.pd-cart__note { opacity: 0.6; font-size: 0.85rem; margin: 0 0 16px; }

.pd-cart__checkout {
    display: block;
    text-align: center;
    background: #ff1b82;
    color: #fff;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s;
}

.pd-cart__checkout:hover { background: #e00f6f; }

.pd-cart__continue {
    display: inline-block;
    margin-top: 14px;
    color: inherit;
    opacity: 0.7;
    text-decoration: underline;
}

.pd-cart__continue:hover { opacity: 1; }

@media (max-width: 620px) {
    .pd-cart__line {
        grid-template-columns: 72px 1fr auto;
        grid-template-areas:
            "media info remove"
            "media qty total";
        gap: 8px 14px;
    }
    .pd-cart__media { grid-area: media; }
    .pd-cart__info { grid-area: info; }
    .pd-cart__remove { grid-area: remove; justify-self: end; }
    .pd-qty { grid-area: qty; }
    .pd-cart__lineTotal { grid-area: total; text-align: left; }
    .pd-cart__summary { text-align: left; margin-left: 0; }
}
