/* css/cart.css */
/* Slide-out Cart */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--jp-gray-bg);
}

.cart-header h3 {
    color: var(--jp-navy);
    font-size: 1.2rem;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: 0.2s;
}

.cart-header button:hover {
    color: var(--danger);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    margin-top: 50px;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-weight: 500;
    color: var(--jp-navy);
    font-size: 0.95rem;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--jp-blue-light);
    font-weight: 600;
    font-size: 1rem;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    color: var(--jp-navy);
    font-weight: bold;
}

.cart-controls span {
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
}

.cart-remove {
    color: var(--danger);
    cursor: pointer;
    font-size: 0.85rem;
    border: none;
    background: none;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: var(--jp-gray-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--jp-navy);
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: #27ae60;
}