/**
 * Veo Carrito: diseño visual base y responsive.
 */

.veo-cart {
    --veo-cart-primary: #0b2f9f;
    --veo-cart-primary-hover: #08267f;
    --veo-cart-text: #171a22;
    --veo-cart-muted: #687083;
    --veo-cart-surface: #f5f6f8;
    --veo-cart-card: #ffffff;
    --veo-cart-border: #e3e6ec;
    --veo-cart-soft-border: rgba(17, 24, 39, 0.06);
    --veo-cart-card-radius: 18px;
    --veo-cart-button-radius: 13px;
    --veo-cart-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
    --veo-cart-column-gap: 28px;
    --veo-cart-summary-width: 380px;
    --veo-cart-font-family: inherit;
    --veo-cart-font-weight-regular: 400;
    --veo-cart-font-weight-medium: 500;
    --veo-cart-font-weight-semibold: 600;
    box-sizing: border-box;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px 42px;
    color: var(--veo-cart-text);
    font-family: var(--veo-cart-font-family);
}

.veo-cart *,
.veo-cart *::before,
.veo-cart *::after {
    box-sizing: border-box;
}

.veo-cart h2,
.veo-cart h3,
.veo-cart p,
.veo-cart a,
.veo-cart button,
.veo-cart input,
.veo-cart strong,
.veo-cart b,
.veo-cart span,
.veo-cart dl,
.veo-cart dt,
.veo-cart dd {
    font-family: var(--veo-cart-font-family);
    font-style: normal;
    text-transform: none;
}

.veo-cart strong,
.veo-cart b {
    font-weight: inherit;
}

.veo-cart .veo-cart__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, var(--veo-cart-summary-width));
    gap: var(--veo-cart-column-gap);
    align-items: start;
    width: 100%;
}

.veo-cart .veo-cart__products-card,
.veo-cart .veo-cart__summary-card,
.veo-cart .veo-cart__empty {
    min-width: 0;
    border: 1px solid var(--veo-cart-soft-border);
    border-radius: var(--veo-cart-card-radius);
    background: var(--veo-cart-card);
    box-shadow: var(--veo-cart-shadow);
}

.veo-cart .veo-cart__products-card {
    overflow: hidden;
}

.veo-cart .veo-cart__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 25px 26px 20px;
    border-bottom: 1px solid var(--veo-cart-border);
}

.veo-cart .veo-cart__heading {
    min-width: 0;
}

.veo-cart .veo-cart__header h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 6px;
    color: var(--veo-cart-text);
    font-size: 23px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 1.2;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.veo-cart .veo-cart__header p {
    margin: 0;
    color: var(--veo-cart-muted);
    font-size: 13.5px;
    font-weight: var(--veo-cart-font-weight-regular);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.veo-cart .veo-cart__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.veo-cart .veo-cart__count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 8px 13px;
    border: 1px solid color-mix(in srgb, var(--veo-cart-primary) 18%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--veo-cart-primary) 7%, white);
    color: var(--veo-cart-primary);
    font-size: 12.5px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 1.2;
    white-space: nowrap;
}

.veo-cart .veo-cart__items {
    padding: 7px 26px 12px;
}

.veo-cart .veo-cart__item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    position: relative;
    padding: 19px 0;
    border-bottom: 1px solid var(--veo-cart-border);
    transition: opacity 0.18s ease;
}

.veo-cart .veo-cart__item:last-child {
    border-bottom: 0;
}

.veo-cart .veo-cart__item--unavailable {
    opacity: 0.65;
}

.veo-cart .veo-cart__product-image {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1px solid var(--veo-cart-border);
    border-radius: 15px;
    background: var(--veo-cart-surface);
}

.veo-cart .veo-cart__product-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.veo-cart .veo-cart__product-info,
.veo-cart .veo-cart__product-top > div {
    min-width: 0;
}

.veo-cart .veo-cart__product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.veo-cart .veo-cart__product-name {
    display: block;
    margin: 0 0 5px;
    color: var(--veo-cart-text);
    font-size: 15px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.18s ease;
}

.veo-cart a.veo-cart__product-name:hover,
.veo-cart a.veo-cart__product-name:focus-visible {
    color: var(--veo-cart-primary);
}

.veo-cart .veo-cart__product-meta {
    margin: 0 0 7px;
    color: var(--veo-cart-muted);
    font-size: 12px;
    font-weight: var(--veo-cart-font-weight-regular);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.veo-cart .veo-cart__product-meta p,
.veo-cart .veo-cart__product-meta dl,
.veo-cart .veo-cart__product-meta dt,
.veo-cart .veo-cart__product-meta dd {
    margin-top: 0;
    margin-bottom: 0;
}

.veo-cart .veo-cart__product-meta dt,
.veo-cart .veo-cart__product-meta dd {
    display: inline;
}

.veo-cart .veo-cart__product-meta dd::after {
    content: "";
    display: block;
}

.veo-cart .veo-cart__product-price {
    color: var(--veo-cart-muted);
    font-size: 12.5px;
    font-weight: var(--veo-cart-font-weight-medium);
    line-height: 1.4;
}

.veo-cart .veo-cart__product-price .woocommerce-Price-amount,
.veo-cart .veo-cart__line-subtotal .woocommerce-Price-amount,
.veo-cart .veo-cart__summary-row .woocommerce-Price-amount {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    word-break: keep-all;
}

.veo-cart .woocommerce-Price-amount,
.veo-cart .woocommerce-Price-currencySymbol,
.veo-cart .woocommerce-Price-amount bdi {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.veo-cart .veo-cart__remove {
    display: inline-flex;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--veo-cart-border);
    border-radius: 50%;
    background: var(--veo-cart-surface);
    color: var(--veo-cart-muted);
    box-shadow: none;
    font: inherit;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.veo-cart .veo-cart__remove:hover,
.veo-cart .veo-cart__remove:focus-visible {
    border-color: color-mix(in srgb, var(--veo-cart-primary) 25%, var(--veo-cart-border));
    background: color-mix(in srgb, var(--veo-cart-primary) 8%, white);
    color: var(--veo-cart-primary);
    transform: translateY(-1px);
}

.veo-cart .veo-cart__product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
}

.veo-cart .veo-cart__quantity {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--veo-cart-border);
    border-radius: 13px;
    background: var(--veo-cart-surface);
}

.veo-cart .veo-cart__quantity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--veo-cart-card);
    color: var(--veo-cart-text);
    box-shadow: none;
    font: inherit;
    font-size: 18px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.veo-cart .veo-cart__quantity-button:hover:not(:disabled),
.veo-cart .veo-cart__quantity-button:focus-visible:not(:disabled) {
    background: var(--veo-cart-primary);
    color: #fff;
}

.veo-cart .veo-cart__quantity-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.veo-cart .veo-cart__quantity-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.veo-cart .veo-cart__quantity-label {
    color: var(--veo-cart-muted);
    font-size: 11.5px;
    font-weight: var(--veo-cart-font-weight-medium);
    line-height: 1.3;
}

.veo-cart .veo-cart__quantity-input {
    width: 42px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--veo-cart-text);
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 34px;
    text-align: center;
    appearance: textfield;
}

.veo-cart .veo-cart__quantity-input::-webkit-outer-spin-button,
.veo-cart .veo-cart__quantity-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.veo-cart .veo-cart__line-subtotal {
    min-width: 0;
    color: var(--veo-cart-text);
    text-align: right;
}

.veo-cart .veo-cart__line-subtotal > span {
    display: block;
    margin-bottom: 2px;
    color: var(--veo-cart-muted);
    font-size: 11.5px;
    font-weight: var(--veo-cart-font-weight-medium);
    line-height: 1.3;
}

.veo-cart .veo-cart__line-subtotal strong {
    display: block;
    color: var(--veo-cart-text);
    font-size: 15px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 1.3;
    white-space: nowrap;
}

.veo-cart .veo-cart__summary-card {
    position: sticky;
    top: 24px;
    width: 100%;
    padding: 25px;
}

.veo-cart .veo-cart__summary-card h3 {
    margin: 0 0 19px;
    color: var(--veo-cart-text);
    font-size: 20px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 1.25;
    letter-spacing: normal;
}

.veo-cart .veo-cart__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--veo-cart-border);
    border-bottom: 1px solid var(--veo-cart-border);
}

.veo-cart .veo-cart__summary-row > span {
    color: var(--veo-cart-muted);
    font-size: 14px;
    font-weight: var(--veo-cart-font-weight-medium);
}

.veo-cart .veo-cart__summary-row strong {
    color: var(--veo-cart-text);
    font-size: 20px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.veo-cart .veo-cart__summary-note {
    margin: 15px 0 19px;
    padding: 12px 13px;
    border: 1px solid var(--veo-cart-border);
    border-radius: 13px;
    background: var(--veo-cart-surface);
    color: var(--veo-cart-muted);
    font-size: 12.5px;
    font-weight: var(--veo-cart-font-weight-regular);
    line-height: 1.5;
}

.veo-cart .veo-cart__checkout-button,
.veo-cart .veo-cart__continue-button,
.veo-cart .veo-cart__empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 13px 20px;
    border-radius: var(--veo-cart-button-radius);
    font-size: 14.5px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.veo-cart .veo-cart__checkout-button,
.veo-cart .veo-cart__empty-button {
    border: 1px solid var(--veo-cart-primary);
    background: var(--veo-cart-primary);
    color: #fff;
    box-shadow: 0 9px 20px color-mix(in srgb, var(--veo-cart-primary) 20%, transparent);
}

.veo-cart .veo-cart__checkout-button:hover,
.veo-cart .veo-cart__checkout-button:focus-visible,
.veo-cart .veo-cart__empty-button:hover,
.veo-cart .veo-cart__empty-button:focus-visible {
    border-color: var(--veo-cart-primary-hover);
    background: var(--veo-cart-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.veo-cart .veo-cart__continue-button {
    min-height: 46px;
    margin-top: 10px;
    border: 1px solid var(--veo-cart-border);
    background: var(--veo-cart-card);
    color: var(--veo-cart-text);
    box-shadow: none;
}

.veo-cart .veo-cart__continue-button:hover,
.veo-cart .veo-cart__continue-button:focus-visible {
    border-color: var(--veo-cart-text);
    background: var(--veo-cart-surface);
    color: var(--veo-cart-text);
    transform: translateY(-1px);
}

.veo-cart .veo-cart__empty {
    width: 100%;
    max-width: 570px;
    margin: 20px auto;
    padding: 46px 30px;
    text-align: center;
}

.veo-cart .veo-cart__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 19px;
    border: 1px solid color-mix(in srgb, var(--veo-cart-primary) 14%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--veo-cart-primary) 7%, white);
    color: var(--veo-cart-primary);
    font-size: 33px;
    line-height: 1;
}

.veo-cart .veo-cart__empty h2 {
    margin: 0 0 9px;
    color: var(--veo-cart-text);
    font-size: 25px;
    font-weight: var(--veo-cart-font-weight-semibold);
    line-height: 1.25;
}

.veo-cart .veo-cart__empty p {
    max-width: 430px;
    margin: 0 auto 23px;
    color: var(--veo-cart-muted);
    font-size: 14px;
    font-weight: var(--veo-cart-font-weight-regular);
    line-height: 1.55;
}

.veo-cart .veo-cart__empty-button {
    width: auto;
    min-width: 190px;
}

.veo-cart .veo-cart__item-message,
.veo-cart .veo-cart__messages {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 10px;
    border: 0 solid #f4b9bf;
    border-radius: 9px;
    background: #fff3f4;
    color: #a32734;
    opacity: 0;
    font-size: 12px;
    font-weight: var(--veo-cart-font-weight-regular);
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    transform: translateY(-3px);
    transition: max-height 0.18s ease, margin 0.18s ease, padding 0.18s ease, border-width 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.veo-cart .veo-cart__item-message.veo-cart__message--visible,
.veo-cart .veo-cart__messages.veo-cart__message--visible {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 10px;
    padding: 8px 10px;
    border-width: 1px;
    opacity: 1;
    transform: translateY(0);
}

.veo-cart .veo-cart__item--loading,
.veo-cart .veo-cart__item[aria-busy="true"] {
    opacity: 0.55;
}

.veo-cart .veo-cart__item--loading .veo-cart__quantity-button,
.veo-cart .veo-cart__item--loading .veo-cart__remove,
.veo-cart .veo-cart__item[aria-busy="true"] .veo-cart__quantity-button,
.veo-cart .veo-cart__item[aria-busy="true"] .veo-cart__remove {
    cursor: wait;
}

.veo-cart .veo-cart__remove:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.veo-cart .veo-cart__quantity-button:focus-visible,
.veo-cart .veo-cart__remove:focus-visible,
.veo-cart .veo-cart__checkout-button:focus-visible,
.veo-cart .veo-cart__continue-button:focus-visible,
.veo-cart .veo-cart__empty-button:focus-visible {
    outline: 2px solid var(--veo-cart-primary);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .veo-cart .veo-cart__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 19px;
    }

    .veo-cart .veo-cart__summary-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 600px) {
    .veo-cart {
        padding: 14px 10px 30px;
    }

    .veo-cart .veo-cart__header {
        flex-direction: column;
        gap: 11px;
        padding: 19px 18px;
    }

    .veo-cart .veo-cart__header h2 {
        font-size: 20px;
    }

    .veo-cart .veo-cart__count {
        width: 100%;
        min-width: 0;
    }

    .veo-cart .veo-cart__items {
        padding: 4px 18px 10px;
    }

    .veo-cart .veo-cart__item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 0;
    }

    .veo-cart .veo-cart__product-image {
        width: 78px;
        height: 78px;
        border-radius: 13px;
    }

    .veo-cart .veo-cart__product-name {
        font-size: 14px;
    }

    .veo-cart .veo-cart__product-top {
        gap: 9px;
    }

    .veo-cart .veo-cart__remove {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
        min-width: 29px;
        min-height: 29px;
    }

    .veo-cart .veo-cart__product-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 11px;
        margin-top: 13px;
    }

    .veo-cart .veo-cart__line-subtotal {
        width: 100%;
        padding: 9px 11px;
        border: 1px solid var(--veo-cart-border);
        border-radius: 11px;
        background: var(--veo-cart-surface);
        text-align: left;
    }

    .veo-cart .veo-cart__summary-card {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .veo-cart .veo-cart__summary-row strong {
        font-size: 18px;
    }

    .veo-cart .veo-cart__checkout-button,
    .veo-cart .veo-cart__continue-button {
        width: 100%;
    }

    .veo-cart .veo-cart__empty {
        margin: 8px auto;
        padding: 36px 20px;
        border-radius: 16px;
    }

    .veo-cart .veo-cart__empty-icon {
        width: 68px;
        height: 68px;
        font-size: 29px;
    }

    .veo-cart .veo-cart__empty h2 {
        font-size: 22px;
    }

    .veo-cart .veo-cart__empty-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .veo-cart {
        padding-right: 7px;
        padding-left: 7px;
    }

    .veo-cart .veo-cart__header,
    .veo-cart .veo-cart__items,
    .veo-cart .veo-cart__summary-card {
        padding-right: 15px;
        padding-left: 15px;
    }

    .veo-cart .veo-cart__item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 10px;
    }

    .veo-cart .veo-cart__product-image {
        width: 68px;
        height: 68px;
    }

    .veo-cart .veo-cart__quantity-button {
        width: 31px;
        height: 31px;
        min-width: 31px;
        min-height: 31px;
    }

    .veo-cart .veo-cart__quantity-input {
        width: 36px;
        height: 31px;
        min-height: 31px;
        line-height: 31px;
    }

    .veo-cart .veo-cart__summary-row {
        gap: 10px;
    }
}
