/* Carrito Librería Woody - CSS aislado */

.carrito-woody-page {
    min-height: 70vh;
    padding: 44px 0 74px;
    background:
        radial-gradient(circle at 82% 10%, rgba(242, 105, 56, .10), transparent 28%),
        linear-gradient(180deg, #fff8ea 0%, #fffdf7 58%, #f8f1e5 100%);
}

.carrito-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(242, 105, 56, .16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fff8ea 100%);
    border: 1px solid #eadfc8;
    box-shadow: 0 20px 48px rgba(31, 78, 121, .10);
}

.carrito-kicker {
    display: inline-flex;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff0de;
    color: #f26938;
    font-weight: 900;
    margin-bottom: 12px;
}

.carrito-hero h1 {
    margin: 0 0 10px;
    color: #1f4e79;
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -1px;
}

.carrito-hero p {
    max-width: 780px;
    margin: 0;
    color: #526579;
    font-size: 1.08rem;
    line-height: 1.7;
}

.carrito-hero-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    flex: 0 0 88px;
    border-radius: 28px;
    background: #1f4e79;
    color: #fff;
    font-size: 2.2rem;
    box-shadow: 0 18px 34px rgba(31, 78, 121, .24);
}

.carrito-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

.carrito-list {
    display: grid;
    gap: 16px;
}

.carrito-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 138px 126px 100px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #eadfc8;
    box-shadow: 0 14px 32px rgba(31, 78, 121, .08);
}

.carrito-item-img {
    width: 104px;
    height: 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background: #fff8ea;
    border: 1px solid #f0e4cf;
}

.carrito-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carrito-item-info h3 {
    margin: 0 0 7px;
    color: #102033;
    font-size: 1.08rem;
    line-height: 1.25;
}

.carrito-item-info p {
    margin: 0;
    color: #6b7280;
}

.carrito-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carrito-item-qty button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #1f4e79;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}

.carrito-item-qty input {
    width: 48px;
    height: 38px;
    border: 1px solid #eadfc8;
    border-radius: 12px;
    text-align: center;
    font-weight: 900;
    background: #fffdf7;
}

.carrito-item-price {
    color: #2f5d50;
    font-size: 1.15rem;
    font-weight: 900;
}

.carrito-remove {
    min-height: 40px;
    border: 1px solid #ffd5c9;
    background: #fff0ec;
    color: #b54624;
    border-radius: 13px;
    font-weight: 900;
    cursor: pointer;
}

.carrito-summary {
    position: sticky;
    top: 100px;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(47, 93, 80, .12), transparent 34%),
        #fff;
    border: 1px solid #eadfc8;
    box-shadow: 0 22px 52px rgba(31, 78, 121, .12);
}

.carrito-summary h2 {
    margin: 0 0 8px;
    color: #1f4e79;
    font-size: 1.45rem;
}

.carrito-summary strong {
    display: block;
    margin: 8px 0 12px;
    color: #2f5d50;
    font-size: 2.25rem;
    line-height: 1;
}

.carrito-summary p {
    margin: 0;
    color: #65778c;
    line-height: 1.6;
}

.carrito-summary-actions,
.carrito-actions-inline {
    display: grid;
    gap: 11px;
    margin-top: 22px;
}

.carrito-actions-inline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.carrito-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 15px;
    border: 0;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.carrito-btn:hover {
    transform: translateY(-2px);
}

.carrito-btn-primary {
    background: linear-gradient(135deg, #f26938 0%, #ff8b48 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(242, 105, 56, .24);
}

.carrito-btn-light {
    background: #fff;
    color: #1f4e79;
    border: 1px solid #eadfc8;
}

.carrito-btn-danger {
    background: #fff0ec;
    color: #b54624;
    border: 1px solid #ffd5c9;
}

.carrito-empty {
    text-align: center;
    padding: 46px 26px;
    border-radius: 30px;
    background: #fff;
    border: 1px dashed #eadfc8;
    box-shadow: 0 20px 48px rgba(31, 78, 121, .10);
}

.carrito-empty-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 26px;
    background: #fff0de;
    font-size: 2.1rem;
}

.carrito-empty h2 {
    margin: 0 0 10px;
    color: #1f4e79;
    font-size: 2rem;
}

.carrito-empty p {
    margin: 0 auto;
    max-width: 560px;
    color: #65778c;
    line-height: 1.65;
}

.toast-msg.error {
    background: #b54624;
}

@media (max-width: 1100px) {
    .carrito-layout {
        grid-template-columns: 1fr;
    }

    .carrito-summary {
        position: static;
    }
}

@media (max-width: 840px) {
    .carrito-item {
        grid-template-columns: 90px 1fr;
    }

    .carrito-item-img {
        width: 90px;
        height: 84px;
    }

    .carrito-item-qty,
    .carrito-item-price,
    .carrito-remove {
        grid-column: 2;
    }

    .carrito-item-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 620px) {
    .carrito-woody-page {
        padding: 26px 0 52px;
    }

    .carrito-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        border-radius: 24px;
    }

    .carrito-hero-icon {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    .carrito-item {
        grid-template-columns: 76px 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 22px;
    }

    .carrito-item-img {
        width: 76px;
        height: 76px;
    }

    .carrito-summary {
        padding: 22px;
        border-radius: 24px;
    }
}
