:root {
    --pvm-red: #9e2126;
    --pvm-gray: #f1f1f0;
    --pvm-text: #1f2937;
    --pvm-muted: #6b7280;
    --pvm-border: #e5e7eb;
    --pvm-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

body.pvm-cart-drawer-lock {
    overflow: hidden;
}

.pvm-cart-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: var(--pvm-red);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(158, 33, 38, .18);
    font-weight: 700;
}

.pvm-cart-trigger__count,
.pvm-cart-drawer-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--pvm-red);
    font-size: 12px;
    font-weight: 800;
}

.pvm-cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .45);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 9998;
}

.pvm-cart-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.pvm-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(430px, 100%);
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: var(--pvm-shadow);
}

.pvm-cart-drawer.is-open {
    transform: translateX(0);
}

.pvm-cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 18px;
    border-bottom: 1px solid var(--pvm-border);
    background: #fff;
}

.pvm-cart-drawer__header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Oswald', sans-serif;
}

.pvm-cart-drawer__header h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    color: #5b5b5b;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pvm-cart-drawer__close {
    height: 50px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    border-radius: 0px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    font-weight: 300;
}

.pvm-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 20px;
    background: #fff;
}

.pvm-cart-drawer__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pvm-cart-drawer__item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pvm-border);
}

.pvm-cart-drawer__item-media img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    background: var(--pvm-gray);
}

.pvm-cart-drawer__item-content {
    min-width: 0;
}

.pvm-cart-drawer__item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.pvm-cart-drawer__item-title-wrap {
    min-width: 0;
}

.pvm-cart-drawer__item-title {
    display: block;
    font-size: 15px;
    color: var(--pvm-text);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 6px;
}

.pvm-cart-drawer__item-price-wrap {
    margin-bottom: 15px;
}

.pvm-cart-drawer__item-price-wrap .amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--pvm-text);
}

.pvm-cart-drawer__item-price-wrap del .amount {
    font-size: 13px;
    font-weight: 400;
    color: #9e2126;
    text-decoration: line-through;
    margin-left: 5px;
}

.pvm-cart-drawer__item-price-wrap ins {
    text-decoration: none;
}

.pvm-cart-drawer__remove {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #d1d5db;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    margin-top: -4px;
    font-weight: 300;
}

.pvm-cart-drawer__item-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.pvm-cart-drawer__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pvm-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.pvm-cart-drawer__qty-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: #fff;
    color: #9e2126;
    font-size: 18px;
    cursor: pointer;
}

.pvm-cart-drawer__qty-input {
    width: 36px;
    height: 30px;
    border: 0;
    text-align: center;
    font-weight: 700;
    color: var(--pvm-text);
    background: #fff;
    padding: 0;
}

.pvm-cart-drawer__item-total {
    font-size: 16px;
    font-weight: 400;
    color: var(--pvm-text);
    white-space: normal;
    text-align: right;
}

.pvm-cart-drawer__item-total del,
.pvm-cart-drawer__item-total del * {
    color: #9e2126 !important;
}

.pvm-cart-drawer__item-total p {
    margin: 4px 0 0;
    line-height: 1.3;
}

.pvm-cart-drawer__empty {
    padding: 42px 14px;
    text-align: center;
    color: var(--pvm-text);
}

.pvm-cart-drawer__empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #9e2126;
    font-size: 30px;
}

.pvm-cart-drawer__empty p {
    margin: 0 0 18px;
    color: var(--pvm-muted);
}

.pvm-cart-drawer__continue-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--pvm-red);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.pvm-cart-drawer__footer-wrap {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.pvm-cart-drawer__continue-row {
    padding: 16px 0;
    text-align: center;
    border-top: 0px solid var(--pvm-border);
}

.pvm-cart-drawer__continue-action {
    background: #e5e7eb;
    border: none;
    color: #9e2126;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 1px 3px 0px #cfc8d8a8;
    padding: 0 15px;
}

.pvm-cart-drawer__footer {
    background: var(--pvm-red);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pvm-cart-drawer__summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

.pvm-cart-drawer__summary-label {
    font-size: 13px;
    font-weight: 700;
    opacity: .9;
}

.pvm-cart-drawer__summary-total {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.pvm-cart-drawer__summary-total,
.pvm-cart-drawer__summary-total * {
    color: #ffffff !important;
}

.pvm-cart-drawer__actions {
    display: block;
}

.pvm-cart-drawer__checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    background: #fff;
    color: var(--pvm-red);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pvm-cart-drawer__checkout:hover {
    background-color: #201f1d;
    color: #ffffff;
}

@media (max-width: 768px) {
    .pvm-cart-drawer {
        width: 100%;
    }

    .pvm-cart-drawer__header h3 {
        font-size: 22px;
    }

    .pvm-cart-drawer__summary-total {
        font-size: 24px;
    }

    .pvm-cart-drawer__actions {
        grid-template-columns: 1fr;
    }

    .pvm-cart-drawer__item {
        grid-template-columns: 78px 1fr;
    }

    .pvm-cart-drawer__item-media img {
        width: 78px;
        height: 78px;
    }
}