
/* PAZORA MINI CART DRAWER V1 */

.pz-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 2147480000;
    visibility: hidden;
    pointer-events: none;
    font-family: inherit;
}

.pz-cart-drawer[data-open="1"] {
    visibility: visible;
    pointer-events: auto;
}

.pz-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
    opacity: 0;
    transition: opacity .22s ease;
}

.pz-cart-drawer[data-open="1"] .pz-drawer-overlay {
    opacity: 1;
}

.pz-drawer-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(460px, 100%);
    background: var(--store-surface, #fff);
    color: var(--store-text, #14221c);
    box-shadow: -12px 0 45px rgba(0,0,0,.16);
    transform: translateX(105%);
    transition: transform .23s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
    outline: 0;
}

.pz-cart-drawer[data-open="1"] .pz-drawer-panel {
    transform: translateX(0);
}

.pz-drawer-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--store-border, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pz-drawer-header h2 {
    font-size: 19px;
    line-height: 1.3;
    margin: 0;
    font-weight: 750;
}

.pz-drawer-header h2 span {
    font-size: 14px;
    opacity: .6;
}

.pz-drawer-x {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 9px;
    border-radius: 8px;
}

.pz-drawer-x:hover {
    background: var(--store-surface, #f4f6f5);
}

.pz-drawer-error {
    margin: 12px 20px 0;
    padding: 12px;
    border-radius: 8px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 13px;
}

.pz-drawer-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.pz-drawer-loading,
.pz-drawer-empty {
    padding: 36px 22px;
    font-size: 14px;
    color: var(--store-text, #14221c);
}

.pz-drawer-empty strong {
    font-size: 17px;
}

.pz-drawer-empty p {
    opacity: .7;
    line-height: 1.6;
}

.pz-drawer-continue {
    border: 1px solid var(--store-border, #dce2df);
    background: transparent;
    border-radius: 8px;
    padding: 11px 14px;
    cursor: pointer;
    font: inherit;
}

.pz-drawer-items {
    padding: 0 20px;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
    overscroll-behavior: contain;
}

.pz-drawer-item {
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    gap: 13px;
    padding: 19px 0;
    border-bottom: 1px solid var(--store-border, #e7eae8);
}

.pz-drawer-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 96px;
    border: 1px solid var(--store-border, #e7eae8);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    color: #999;
    text-decoration: none;
}

.pz-drawer-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pz-drawer-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 7px;
}

.pz-drawer-item-name {
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.pz-drawer-variant {
    color: var(--store-muted, #68746e);
    font-size: 12px;
}

.pz-drawer-line-price {
    font-size: 14px;
    font-weight: 800;
}

.pz-drawer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.pz-drawer-qty-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--store-border, #dfe4e1);
    border-radius: 7px;
    overflow: hidden;
    margin: 0;
}

.pz-drawer-qty-form button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 19px;
}

.pz-drawer-qty-form button:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.pz-drawer-qty-form input {
    width: 38px;
    min-width: 0;
    height: 34px;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: center;
    padding: 0 2px;
    font: inherit;
    font-size: 13px;
    appearance: textfield;
    -moz-appearance: textfield;
}

.pz-drawer-qty-form input::-webkit-inner-spin-button,
.pz-drawer-qty-form input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pz-drawer-remove {
    border: 0;
    background: transparent;
    color: #84918a;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
}

.pz-drawer-remove:hover {
    color: #b91c1c;
}

.pz-drawer-footer {
    flex-shrink: 0;
    padding: 18px 20px 22px;
    border-top: 1px solid var(--store-border, #e5e7eb);
    background: var(--store-surface, #fff);
}

.pz-drawer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.pz-drawer-total strong {
    font-size: 18px;
    font-weight: 800;
}

.pz-drawer-footer p {
    font-size: 11px;
    color: var(--store-muted, #64748b);
    line-height: 1.5;
    margin: 9px 0 15px;
}

.pz-drawer-footer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.pz-drawer-footer-buttons:has(> :only-child) {
    grid-template-columns: 1fr;
}

.pz-drawer-footer-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 45px;
    border: 1px solid var(--store-border, #d4dad7);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 6px;
    box-sizing: border-box;
}

.pz-drawer-footer-buttons .pz-drawer-checkout {
    border-color: var(--store-accent, #22c55e);
    background: var(--store-accent, #22c55e);
    color: #071d10;
}

@media(max-width:520px) {
    .pz-drawer-header {
        padding: 15px 16px;
    }

    .pz-drawer-items {
        padding: 0 15px;
    }

    .pz-drawer-footer {
        padding: 15px;
    }

    .pz-drawer-item {
        grid-template-columns: 80px minmax(0,1fr);
    }

    .pz-drawer-photo {
        width: 80px;
        height: 85px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .pz-drawer-overlay,
    .pz-drawer-panel {
        transition: none;
    }
}
