/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: white;
    z-index: 9999;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.cart-overlay.open {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #880e4f;
    color: white;
}

.cart-header h2 {
    margin: 0;
    font-size: 20px;
    color: white;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.cart-close:hover {
    color: #ffccdd;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.empty-cart {
    text-align: center;
    color: #999;
    margin-top: 50px;
    font-size: 16px;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.cart-item-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cart-item-name {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.cart-item-price {
    color: #d81b60;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-controls button:hover {
    background: #880e4f;
    color: white;
    border-color: #880e4f;
}

.remove-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 16px;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #eee;
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d81b60, #880e4f);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216,27,96,0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 15px;
}

.style-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.style-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.style-input:focus {
    outline: none;
    border-color: #d81b60;
}

.btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #d81b60, #880e4f);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216,27,96,0.3);
}

.btn-secondary {
    background: #6c757d !important;
}