/* Drawer Layout */
.pm-basket-drawer {
    position: fixed;
    top: 0;
    right: -450px; /* Start off-screen */
    width: 420px;
    height: 100vh;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.pm-basket-drawer.active {
    right: 0;
}

/* Backdrop Overlay */
.pm-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    z-index: 2999;
    transition: opacity 0.3s ease;
}

.pm-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Header Styling */
.pm-basket-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-basket-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pm-close-drawer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.pm-close-drawer:hover {
    background: #ff3b3b;
    border-color: #ff3b3b;
}

/* Item Styling */
.pm-basket-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.pm-basket-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.pm-basket-item:hover {
    border-color: rgba(255, 59, 59, 0.3);
}

.pm-item-name {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.pm-item-price {
    font-family: 'JetBrains Mono', monospace; /* Optional for a 'code' feel */
    color: #ff3b3b;
    font-weight: 800;
}

.pm-remove-btn {
    color: #444;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.pm-remove-btn:hover {
    color: #ff3b3b;
}

/* Footer Styling */
.pm-basket-footer {
    padding: 30px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-summary-row {
    display: flex;
    justify-content: space-between;
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.pm-total-row {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 15px 0 25px 0;
}

.pm-checkout-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: #fff;
    color: #000;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
}

.pm-checkout-button:hover {
    background: #ff3b3b;
    color: #fff;
    transform: translateY(-2px);
}

.pm-secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.pm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #444;
}

.pm-empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
}