/* White Fox · carrito lateral con productos (ps_shoppingcart, vista classic). */
.ttvcmscart-show-dropdown-right.wf-cart-drawer--filled {
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100% - 50px));
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: #1E2A3A;
    font-family: "PT Serif", serif;
    background: #fff;
    box-shadow: -5px 0 24px rgba(30, 42, 58, .16);
}

body.classicCartOpen .ttvcmscart-show-dropdown-right.wf-cart-drawer--filled {
    overflow: hidden;
}

.wf-cart-drawer--filled .ttvcart-scroll-container.wf-cart-drawer__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
}

.wf-cart-drawer--filled .ttvcart-close-title-count.wf-cart-drawer__header {
    display: flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 17px;
    border-bottom: 1px solid #e9e9e9;
}

.wf-cart-drawer--filled .ttvclose-cart.wf-cart-drawer__close {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 46px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #1E2A3A;
    text-align: left;
}

.wf-cart-drawer--filled .wf-cart-drawer__close span {
    display: block;
    margin-left: -3px;
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 500;
    letter-spacing: -8px;
    line-height: 1;
}

.wf-cart-drawer--filled .ttvcart-counter.wf-cart-drawer__count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 29px;
    width: auto;
    height: 29px;
    margin: 0;
    padding: 0 5px;
    border-radius: 2px;
    background: #B3956A;
    color: #1E2A3A;
    line-height: 1;
}

.wf-cart-drawer--filled .wf-cart-drawer__count .ttvcart-products-count {
    color: #1E2A3A;
    font-family: "PT Serif", serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.wf-cart-drawer--filled .wf-cart-drawer__shipping {
    flex: 0 0 auto;
    padding: 12px 17px 14px;
    border-bottom: 1px solid #ece9e6;
    background: #fff;
}

.wf-cart-drawer--filled .wf-cart-drawer__shipping-message {
    margin: 0 0 9px;
    color: #1E2A3A;
    font-family: "PT Serif", serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    text-transform: none;
}

.wf-cart-drawer--filled .wf-cart-drawer__shipping-message strong {
    font-weight: 700;
}

.wf-cart-drawer--filled .wf-cart-drawer__shipping-track {
    width: 100%;
    height: 4px;
    overflow: hidden;
    background: #e9e5e0;
}

.wf-cart-drawer--filled .wf-cart-drawer__shipping-fill {
    display: block;
    height: 100%;
    background: #B3956A;
    transition: width .25s ease;
}

.wf-cart-drawer--filled .ttvcart-product-content-box.wf-cart-drawer__products {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 17px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #d3d0cd transparent;
}

.wf-cart-drawer--filled .ttvcart-product-wrapper.wf-cart-drawer__item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 16px 0;
    border-bottom: 1px solid #ece9e6;
}

.wf-cart-drawer--filled .wf-cart-drawer__item::after {
    display: none;
}

.wf-cart-drawer--filled .tvcart-product-list-img.wf-cart-drawer__image {
    flex: none;
    width: 62px;
    height: 62px;
    margin: 0;
}

.wf-cart-drawer--filled .wf-cart-drawer__image a,
.wf-cart-drawer--filled .wf-cart-drawer__image img {
    display: block;
    width: 100%;
    height: 100%;
}

.wf-cart-drawer--filled .wf-cart-drawer__image img {
    border: 1px solid #ece8e5;
    background: #fafafa;
    object-fit: cover;
}

.wf-cart-drawer--filled .tvcart-product-content.wf-cart-drawer__item-content {
    min-width: 0;
    max-width: none;
}

.wf-cart-drawer--filled .wf-cart-drawer__item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
}

.wf-cart-drawer--filled .wf-cart-drawer__name {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: #1E2A3A;
    font-family: "PT Serif", serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wf-cart-drawer--filled .wf-cart-drawer__name:hover {
    color: #B3956A;
    text-decoration: none;
}

.wf-cart-drawer--filled .tvcart-product-remove.wf-cart-drawer__remove {
    position: static;
    display: flex;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: -3px -5px 0 0;
    color: #59616c;
    text-decoration: none;
}

.wf-cart-drawer--filled .wf-cart-drawer__remove .material-icons {
    font-size: 16px;
    line-height: 1;
}

.wf-cart-drawer--filled .wf-cart-drawer__variants {
    margin: 3px 0 8px;
    color: #71747a;
    font-family: "PT Serif", serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
}

.wf-cart-drawer--filled .wf-cart-drawer__item-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 7px;
}

.wf-cart-drawer--filled .wf-cart-drawer__stepper {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 28px;
    border: 1px solid #dfdfdf;
}

.wf-cart-drawer--filled .wf-cart-drawer__quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 26px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #1E2A3A;
    font-family: "PT Serif", serif;
    font-size: 18px;
    line-height: 1;
}

.wf-cart-drawer--filled .wf-cart-drawer__quantity-control:disabled {
    color: #adb1b5;
    cursor: default;
}

.wf-cart-drawer--filled .wf-cart-drawer__quantity {
    box-sizing: border-box;
    width: 34px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #1E2A3A;
    font-family: "PT Serif", serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 26px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: none;
}

.wf-cart-drawer--filled .wf-cart-drawer__quantity:focus {
    outline: 0;
    background: #f6f3ec;
}

.wf-cart-drawer--filled .wf-cart-drawer__quantity:disabled {
    color: #adb1b5;
}

.wf-cart-drawer--filled .wf-cart-drawer__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 28px;
    text-align: right;
    white-space: nowrap;
}

.wf-cart-drawer--filled .wf-cart-drawer__regular-price {
    display: block;
    margin-bottom: 3px;
    color: #8a8d91;
    font-family: "PT Serif", serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    text-decoration: line-through;
}

.wf-cart-drawer--filled .wf-cart-drawer__line-total {
    display: block;
    color: #1E2A3A;
    font-family: "PT Serif", serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
    white-space: nowrap;
}

.wf-cart-drawer--filled .wf-cart-drawer__gift-quantity,
.wf-cart-drawer--filled .wf-cart-drawer__customizations {
    color: #71747a;
    font-size: 12px;
}

.wf-cart-drawer--filled .wf-cart-drawer__customizations {
    margin-top: 7px;
}

.wf-cart-drawer--filled .wf-cart-drawer__customization {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.wf-cart-drawer--filled .wf-cart-drawer__customization img {
    max-width: 32px;
    height: auto;
    vertical-align: middle;
}

.wf-cart-drawer--filled .wf-cart-drawer__customizations a {
    color: #1E2A3A;
    text-decoration: underline;
}

.wf-cart-drawer--filled .wf-cart-drawer__error {
    margin: 6px 0 0;
    color: #8b352e;
    font-family: "PT Serif", serif;
    font-size: 12px;
    line-height: 1.3;
}

.wf-cart-drawer--filled .wf-cart-drawer__error[hidden] {
    display: none;
}

.wf-cart-drawer--filled .wf-cart-drawer__footer {
    flex: 0 0 auto;
    padding: 16px 17px 19px;
    padding-bottom: calc(19px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e8e4e0;
    background: #fff;
    box-shadow: 0 -6px 16px rgba(30, 42, 58, .035);
}

.wf-cart-drawer--filled .wf-cart-drawer__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    color: #1E2A3A;
    font-family: "PT Serif", serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
}

.wf-cart-drawer--filled .wf-cart-drawer__total strong {
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.wf-cart-drawer--filled .wf-cart-drawer__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 43px;
    border: 1px solid #1E2A3A;
    background: #1E2A3A;
    color: #F9F4F0;
    font-family: "PT Serif", serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
}

.wf-cart-drawer--filled .wf-cart-drawer__checkout:hover,
.wf-cart-drawer--filled .wf-cart-drawer__checkout:focus-visible {
    background: #2b3a4d;
    color: #F9F4F0;
    text-decoration: none;
}

.wf-cart-drawer--filled .wf-cart-drawer__review {
    display: table;
    width: auto;
    margin: 14px auto 0;
    padding: 2px 0 4px;
    border-bottom: 1px solid #b3a99c;
    color: #1E2A3A;
    font-family: "PT Serif", serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
}

.wf-cart-drawer--filled .wf-cart-drawer__review:hover,
.wf-cart-drawer--filled .wf-cart-drawer__review:focus-visible {
    color: #1E2A3A;
    border-color: #1E2A3A;
    text-decoration: none;
}

.wf-cart-drawer--filled :is(button, a):focus-visible {
    outline: 2px solid #B3956A;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .ttvcmscart-show-dropdown-right.wf-cart-drawer--filled {
        width: 82vw;
        max-width: none;
    }

    .wf-cart-drawer--filled .ttvcart-close-title-count.wf-cart-drawer__header {
        flex-basis: 55px;
        height: 55px;
        padding: 0 12px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__shipping {
        padding: 11px 12px 12px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__shipping-message {
        font-size: 11px;
    }

    .wf-cart-drawer--filled .ttvcart-product-content-box.wf-cart-drawer__products {
        padding: 0 12px;
    }

    .wf-cart-drawer--filled .ttvcart-product-wrapper.wf-cart-drawer__item {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 9px;
        padding: 14px 0;
    }

    .wf-cart-drawer--filled .tvcart-product-list-img.wf-cart-drawer__image {
        width: 50px;
        height: 50px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__name,
    .wf-cart-drawer--filled .wf-cart-drawer__line-total {
        font-size: 12px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__variants {
        margin-bottom: 7px;
        font-size: 11px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__stepper {
        height: 26px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__quantity-control {
        width: 23px;
        height: 24px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__quantity {
        width: 30px;
        height: 24px;
        line-height: 24px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__line-total {
        line-height: 26px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__footer {
        padding: 14px 12px 17px;
        padding-bottom: calc(17px + env(safe-area-inset-bottom, 0px));
    }

    .wf-cart-drawer--filled .wf-cart-drawer__total {
        font-size: 15px;
    }

    .wf-cart-drawer--filled .wf-cart-drawer__total strong {
        font-size: 18px;
    }
}

/* En pantallas táctiles el celu hace zoom si la letra del campo es menor a 16px */
@media (hover: none) and (pointer: coarse) {
    .wf-cart-drawer--filled .wf-cart-drawer__quantity {
        font-size: 16px;
    }
}

/* SOLO CELULAR Y TABLET (menos de 992px).
   El carrito lateral tiene que quedar por encima de la barra azul de arriba
   (el header del theme usa z-index: 99999).
   Orden: fondo oscuro 100000 < carrito 100001.
   En computadora NO se toca: ahí el carrito vive dentro del header y ya funciona. */
@media (max-width: 991.98px) {
    body.classicCartOpen .full-wrapper-backdrop {
        z-index: 100000;
    }

    body.classicCartOpen .ttvcmscart-show-dropdown-right {
        z-index: 100001;
    }

    /* Si la página ya bajó un poco, el carrito vive dentro del header pegado arriba:
       ese header también tiene que quedar por encima del fondo oscuro. */
    body.classicCartOpen .tvcmsheader-sticky.sticky {
        z-index: 100001;
    }
}
