.qcd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 8, 20, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    z-index: 9998;
}

.qcd-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(505px, 100vw);
    height: 100vh;
    background: #001127;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, visibility .3s ease;
    z-index: 9999;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
}

.qcd-drawer__inner {
    height: 100%;
}

.qcd-drawer__body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    gap: 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

.quantum-cart-count:empty,
.quantum-cart-count.is-empty {
    display: none;
}


.quantum-cart-count[data-count="0"] {
    display: none;
}


body.qcd-open {
    overflow: hidden;
}

body.qcd-open .qcd-overlay {
    opacity: 1;
    visibility: visible;
}

body.qcd-open .qcd-drawer {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.qcd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 6px;
}

.breakdance h3.qcd-title {
    margin: 0;
    color: #fff;
    font-size: 20.25px;
    line-height: 28px;
    font-weight: 600;
}

.qcd-close {
    width: 40px;
    height: 40px;
    padding: 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qcd-close span {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: #142438;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: transform .25s ease, background .25s ease;
}

.qcd-close:hover span {
    transform: rotate(90deg);
    background: #1a3048;
}

.qcd-divider {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.12);
}

.qcd-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
}

.qcd-item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}

.qcd-item:first-child{
    padding-top: 0;
}

.qcd-item__main {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    min-width: 0;
    flex: 1 1 auto;
}

.qcd-item__image {
    width: 103px;
    min-width: 103px;
    height: 102px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qcd-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qcd-item__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 102px;
}

.qcd-item__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qcd-item__name,
.qcd-item__name a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
}

.qcd-item__price {
    color: #fff;
    font-size: 14.22px;
    line-height: 18px;
}

.qcd-item__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qcd-qty {
    height: 32px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
}

.qcd-qty__btn {
    width: 16px;
    height: 16px;
    border: 0;
    background: transparent;
    color: #6f7f90;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.qcd-qty__btn:hover {
    color: #fff;
    transform: scale(1.08);
}

.qcd-qty__value {
    width: 24px;
    text-align: center;
    color: #fff;
    font-size: 12.64px;
    line-height: 16px;
}

.qcd-remove {
    border: 0;
    background: transparent;
    color: #b2b9c1;
    font-size: 12.64px;
    line-height: 16px;
    cursor: pointer;
    padding: 0;
    transition: color .2s ease;
    white-space: nowrap;
}

.qcd-remove:hover {
    color: #fff;
}

.qcd-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: auto;
}

.qcd-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
}

.qcd-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qcd-btn {
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.qcd-btn:hover {
    transform: translateY(-1px);
}

.qcd-btn--primary {
    background: #0066ff;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 102, 255, 0);
}

.qcd-btn--primary:hover {
    background: #1a75ff;
    box-shadow: 0 10px 24px rgba(0, 102, 255, 0.25);
}

.qcd-btn--secondary {
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    background: transparent;
}

.qcd-btn--secondary:hover {
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.03);
}

.qcd-empty-state,
.qcd-empty {
    color: #fff;
    padding: 32px 0;
}

.qcd-loading {
    pointer-events: none;
    opacity: .65;
}

@media (max-width: 767px) {
    .qcd-drawer {
        width: 100vw;
    }

    .qcd-drawer__body {
        padding: 24px 20px 20px;
    }

    .qcd-item {
        gap: 16px;
    }

    .qcd-item__main {
        gap: 16px;
    }

    .qcd-item__image {
        width: 88px;
        min-width: 88px;
        height: 88px;
    }
}

.cart-drawer-btn {
    position: relative;
    display: inline-flex;
}

.quantum-cart-count {
    position: absolute;
    left: 9px;
    top: 6px;
    width: 13.75px;
    height: 13.75px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.10136px;
    border-radius: 999px;
    background: #0066FF;
    color: #FFFFFF;
    font-family: 'Sequel Sans', sans-serif;
    font-size: 8.33269px;
    line-height: 1;
    font-weight: 400;
    z-index: 2;
    pointer-events: none;
    box-sizing: border-box;
    min-width: 13.75px;
}

.quantum-cart-count.is-empty {
    display: none;
}