/* Cart Overlay & Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #0d1017;
    border-left: 1px solid rgba(57, 255, 20, 0.2);
    z-index: 1000;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: #fff;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: none;
    line-height: 1;
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 5px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff3333;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.cart-item-remove:hover {
    background: rgba(255, 51, 51, 0.1);
}

.cart-footer {
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.cart-total-price {
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    text-align: center;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 40px;
}

/* Checkout Modal */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.checkout-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 90%;
    max-width: 500px;
    background: #0d1017;
    z-index: 1600;
    padding: 30px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.checkout-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-checkout {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: none;
    line-height: 1;
}

.close-checkout:hover {
    color: var(--primary-color);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}