body {
    padding-bottom: 72px;
}

.pt-live-cart {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    z-index: 999999;
    height: 100vh;
    transform: translateY(calc(100% - 72px));
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    font-family: inherit;
    box-sizing: border-box;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18);
}

.pt-live-cart * {
    box-sizing: border-box;
}

.pt-live-cart.is-open {
    transform: translateY(0);
}

.pt-live-cart.is-loading {
    pointer-events: none;
}

.pt-live-cart.is-loading::after {
    content: "";
    position: absolute;
    inset: 72px 0 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.62);
    pointer-events: none;
}

.pt-live-cart-header {
    width: 100%;
    height: 72px;
    min-height: 72px;
    border: 0;
    border-top: 2px solid #c8a75d;
    border-radius: 0;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    margin: 0;
    cursor: pointer;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
    line-height: 1.2;
    vertical-align: top;
}

.pt-live-cart-left,
.pt-live-cart-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pt-live-cart-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #c8a75d;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.pt-live-cart-title,
.pt-live-cart-subtitle {
    display: block;
}

.pt-live-cart-title {
    font-size: 17px;
    font-weight: 800;
}

.pt-live-cart-subtitle {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.pt-live-cart-count {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    border: 2px solid #c8a75d;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(200, 167, 93, 0.42);
}

.pt-live-cart-total {
    font-size: 24px;
    font-weight: 900;
}

@keyframes pt-live-cart-pulse {
    0%, 50%, 100% {
        background: #fff;
        border-color: #c8a75d;
        color: #111;
        transform: scale(1);
    }
    25%, 75% {
        background: #ff3b30;
        border-color: #ff3b30;
        color: #fff;
        transform: scale(1.25);
    }
}

.pt-live-cart-count.is-pulsing {
    animation: pt-live-cart-pulse 1.2s ease-in-out;
}

.pt-live-cart-body {
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eee;
    background: #fff;
    margin-top: 0;
}

.pt-live-cart-search-wrap {
    padding: 12px 14px 0;
    background: #fff;
}

.pt-live-cart-search {
    display: block;
    width: 100%;
    height: 38px;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    background: #f8fafc;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
    outline: 0;
    box-shadow: none;
}

.pt-live-cart-search:focus {
    border-color: #c8a75d;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(200, 167, 93, 0.18);
}

.pt-live-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.pt-live-cart-category + .pt-live-cart-category {
    margin-top: 12px;
}

.pt-live-cart-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
    padding: 7px 10px;
    border-left: 3px solid #c8a75d;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pt-live-cart-category-header strong {
    white-space: nowrap;
    color: #fff;
    font-size: 12px;
}

.pt-live-cart-no-results {
    padding: 40px 16px;
    color: #475569;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.pt-live-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 92px 34px;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #c8a75d;
    border-radius: 8px;
    background: #fdfdfd;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pt-live-cart-item:hover {
    transform: translateX(3px);
    border-color: #c8a75d;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pt-live-cart-name {
    margin-bottom: 2px;
    color: #1a202c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.pt-live-cart-price {
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
}

.pt-live-cart-standard-meta {
    margin: 4px 0 0;
    font-size: 12px;
}

.pt-live-cart-standard-meta dt {
    float: left;
    clear: left;
    margin-right: 4px;
    color: #718096;
    font-weight: 600;
}

.pt-live-cart-standard-meta dd {
    margin: 0 0 2px;
    color: #2d3748;
}

.pt-live-cart-assembly-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 6px;
    padding: 4px 10px;
    border: 1px solid #fef08a;
    border-radius: 6px;
    background: #fffdf5;
    color: #854d0e;
    font-size: 12px;
    font-weight: 600;
}

.pt-live-cart-qty {
    display: grid !important;
    grid-template-columns: 28px 32px 28px !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    height: 34px !important;
    overflow: hidden !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
}

.pt-live-cart-qty button {
    width: 28px !important;
    min-width: 28px !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.pt-live-cart-qty button:hover {
    background: #e2e8f0;
}

.pt-live-cart-qty input {
    display: block !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    box-shadow: none !important;
    outline: 0 !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

.pt-live-cart-qty input::-webkit-outer-spin-button,
.pt-live-cart-qty input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.pt-live-cart-subtotal {
    color: #1a202c;
    text-align: right;
    font-size: 14px;
    font-weight: 800;
}

.pt-live-cart-remove {
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 1px solid #fecaca;
    border-radius: 50%;
    background: #fff1f2;
    color: #dc2626;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
}

.pt-live-cart-remove:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.pt-live-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.pt-live-cart-footer-info {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(185px, 230px);
    align-items: end;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.pt-live-cart-footer-title {
    margin-bottom: 6px;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pt-live-cart-category-summary {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pt-live-cart-category-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
    border-bottom: 1px dashed #e5e7eb;
    color: #475569;
    font-size: 12px;
    line-height: 1.25;
}

.pt-live-cart-category-summary-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-live-cart-category-summary-row strong {
    flex: 0 0 auto;
    color: #111827;
    font-size: 12px;
}

.pt-live-cart-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
    padding: 10px 12px;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pt-live-cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

.pt-live-cart-summary-row strong {
    color: #0f172a;
}

.pt-live-cart-fee-row strong {
    color: #854d0e;
}

.pt-live-cart-grand-row {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #cbd5e1;
    font-size: 16px;
}

.pt-live-cart-grand-row span,
.pt-live-cart-grand-row strong {
    color: #000;
    font-weight: 900;
}

.pt-live-cart-grand-row strong {
    font-size: 22px;
}

.pt-live-cart-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex: 0 0 auto;
}

.pt-live-cart-clear,
.pt-live-cart-cart-page,
.pt-live-cart-checkout {
    height: 46px;
    padding: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.pt-live-cart-clear,
.pt-live-cart-cart-page,
.pt-live-cart-checkout {
    width: 46px;
    min-width: 46px;
}

.pt-live-cart-clear svg,
.pt-live-cart-cart-page svg,
.pt-live-cart-checkout svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pt-live-cart-clear {
    border: 0;
    background: #eef2f7;
    color: #334155;
}

.pt-live-cart-clear:hover {
    background: #e2e8f0;
}

.pt-live-cart-cart-page {
    border: 1px solid #c8a75d;
    background: #fff;
    color: #111;
}

.pt-live-cart-cart-page:hover {
    background: #fff7df;
    color: #111;
}

.pt-live-cart-checkout {
    border: 0;
    background: #111;
    color: #fff;
}

.pt-live-cart-checkout:hover {
    background: #c8a75d;
    color: #000;
}

.pt-live-cart-empty {
    padding: 120px 20px;
    text-align: center;
}

.pt-live-cart-empty-title {
    color: #111;
    font-size: 28px;
    font-weight: 900;
}

@media (max-width: 768px) {
    .pt-live-cart {
        width: 100%;
    }

    .pt-live-cart-header {
        padding: 0 14px;
    }

    .pt-live-cart-title {
        font-size: 14px;
    }

    .pt-live-cart-subtitle {
        display: none;
    }

    .pt-live-cart-total {
        font-size: 16px;
    }

    .pt-live-cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
        text-align: center;
    }

    .pt-live-cart-qty,
    .pt-live-cart-remove {
        margin: 0 auto;
    }

    .pt-live-cart-subtotal {
        text-align: center;
    }

    .pt-live-cart-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }

    .pt-live-cart-footer-info {
        grid-template-columns: 1fr;
    }

    .pt-live-cart-summary {
        width: 100%;
        min-width: 0;
    }

    .pt-live-cart-actions {
        flex-direction: row;
    }

    .pt-live-cart-cart-page {
        width: 46px;
        min-width: 46px;
    }
}