.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
    background: rgba(25, 20, 32, .42);
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
    backdrop-filter: blur(2px);
}

.cart-dropdown.show .cart-drawer-overlay {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.cart-dropdown .cart-drawer-panel {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 2100;
    display: flex !important;
    flex-direction: column;
    width: min(42rem, 100vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f7f7fa;
    color: #24202b;
    box-shadow: -1.2rem 0 4rem rgba(23, 16, 31, .18);
    opacity: 1;
    visibility: hidden;
    transform: translateX(105%);
    transition: transform .28s ease, visibility .28s ease;
}

.cart-dropdown.show .cart-drawer-panel {
    visibility: visible;
    transform: translateX(0);
}

.cart-dropdown:not(.show):hover .cart-drawer-panel {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.cart-drawer-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 8rem;
    margin: 0;
    padding: 1.6rem 2rem;
    border-bottom: 1px solid #eeebf1;
    background: #fff;
}

.cart-drawer-kicker {
    display: block;
    margin-bottom: .35rem;
    color: #817687;
    font-size: 1.15rem;
    font-weight: 600;
}

.cart-drawer-heading h3 {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    margin: 0;
    color: #251b2c;
    font-size: 1.9rem;
    font-weight: 750;
    line-height: 1.25;
}

.cart-drawer-heading h3 span {
    color: #817687;
    font-size: 1.25rem;
    font-weight: 500;
}

.cart-drawer-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 3.8rem;
    height: 3.8rem;
    border: 1px solid #eeeaf1;
    border-radius: 50%;
    background: #faf9fb;
    color: #514758;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cart-drawer-close:hover {
    background: #f1eaf2;
    color: #251b2c;
}

.cart-dropdown .dropdown-cart-products {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 1.6rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cart-dropdown .dropdown-cart-products .product {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 11rem;
    gap: 1.3rem;
    margin: 0 0 1.2rem;
    padding: 1.3rem;
    border: 1px solid #f0edf2;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 .4rem 1.5rem rgba(41, 28, 48, .045);
}

.cart-dropdown .product-image-container {
    flex: 0 0 7.2rem;
    width: 7.2rem;
    height: 8rem;
    margin: 0;
    overflow: hidden;
    border-radius: .9rem;
    background: #f3f0f4;
}

.cart-dropdown .product-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.cart-dropdown .product-cart-details {
    flex: 1 1 auto;
    min-width: 0;
    padding: .2rem 2rem .2rem 0;
}

.cart-dropdown .product-title {
    margin: 0 0 .75rem;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 650;
    line-height: 1.45;
}

.cart-dropdown .product-title a {
    display: -webkit-box;
    overflow: hidden;
    color: #302638;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cart-product-price {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin-bottom: .9rem;
}

.cart-product-price strong {
    color: var(--brand-color, #ed1266);
    font-size: 1.55rem;
    font-weight: 750;
}

.cart-product-price span {
    color: #817687;
    font-size: 1.15rem;
}

.cart-quantity-control {
    display: inline-flex;
    height: 3.2rem;
    align-items: center;
    overflow: hidden;
    border: 1px solid #ebe7ee;
    border-radius: .7rem;
    background: #fff;
}

.cart-quantity-control button,
.cart-quantity-value {
    display: inline-flex;
    width: 3.4rem;
    height: 100%;
    align-items: center;
    justify-content: center;
    border: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.cart-quantity-control button {
    background: #f7f5f8;
    color: #453b4b;
    cursor: pointer;
    transition: background .2s ease;
}

.cart-quantity-control button:hover {
    background: #eee8f0;
}

.cart-quantity-control button:disabled {
    cursor: wait;
    opacity: .6;
}

.cart-quantity-value {
    background: #fff;
    color: #302638;
    font-size: 1.3rem;
}

.cart-dropdown .btn-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex: 0 0 auto;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 50%;
    color: #918796;
    font-size: 1.3rem;
    transition: background .2s ease, color .2s ease;
}

.cart-dropdown .btn-remove:hover {
    background: #fff0f3;
    color: #d93058;
}

.cart-drawer-empty {
    display: flex;
    min-height: 28rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #817687;
    text-align: center;
}

.cart-drawer-empty > span {
    display: grid;
    width: 6.4rem;
    height: 6.4rem;
    margin-bottom: 1.6rem;
    place-items: center;
    border-radius: 50%;
    background: #f0eaf2;
    color: var(--brand-color, #ed1266);
    font-size: 2.5rem;
}

.cart-drawer-empty strong {
    color: #302638;
    font-size: 1.65rem;
}

.cart-drawer-empty p {
    margin: .7rem 0 1.4rem;
    font-size: 1.3rem;
}

.cart-drawer-empty a {
    color: var(--brand-color, #ed1266);
    font-size: 1.35rem;
    font-weight: 700;
}

.cart-drawer-bottom {
    flex: 0 0 auto;
    padding: 1.6rem 2rem 2rem;
    border-top: 1px solid #eeebf1;
    background: #fff;
    box-shadow: 0 -.5rem 1.8rem rgba(41, 28, 48, .035);
}

.cart-drawer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #514758;
    font-size: 1.45rem;
    font-weight: 600;
}

.cart-drawer-total strong {
    color: #251b2c;
    font-size: 1.9rem;
    font-weight: 750;
}

.cart-drawer-bottom p {
    margin: .5rem 0 1.4rem;
    color: #817687;
    font-size: 1.2rem;
}

.cart-drawer-checkout {
    display: flex;
    min-height: 5.2rem;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1rem 1.5rem;
    border-radius: .9rem;
    background: var(--brand-color, #ed1266);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    transition: filter .2s ease, transform .2s ease;
}

.cart-drawer-checkout:hover,
.cart-drawer-checkout:focus {
    color: #fff;
    filter: brightness(.94);
    transform: translateY(-1px);
}

.cart-drawer-checkout span {
    font-size: 1.9rem;
}

body.cart-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .cart-dropdown.show .cart-drawer-panel {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: hidden !important;
        transform: translateX(0);
    }

    .cart-dropdown.show .cart-drawer-header {
        min-height: 7.2rem;
        padding: 1.2rem 1.6rem;
    }

    .cart-dropdown.show .dropdown-cart-products {
        padding: 1.2rem 1.6rem;
    }

    .cart-dropdown.show .cart-drawer-bottom {
        padding: 1.3rem 1.6rem max(1.5rem, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-dropdown .cart-drawer-panel,
    .cart-drawer-overlay,
    .cart-drawer-close,
    .cart-quantity-control button,
    .cart-dropdown .btn-remove,
    .cart-drawer-checkout {
        transition: none;
    }
}
