/* Cart Panel Styles */
.slide-panel {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    background: rgba(81,125,174,0.08);
    overflow-x: hidden;
    transition: width 0.4s cubic-bezier(.77,0,.18,1);
    display: none;
}

.slide-panel.active {
    display: block;
    width: 350px;
    box-shadow: -2px 0 16px rgba(81,125,174,0.18);
}

.slide-panel-content {
    background: #fff;
    height: 100vh;
    padding: 32px 24px 24px 24px;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.slide-panel .close {
    color: #517DAE;
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.slide-panel .close:hover {
    color: #405c86;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    padding: 0 10px;
}

.cart-item-details div:first-child {
    font-weight: 600;
    color: #405c86;
}

/* Quantity control styles */
.quantity-control {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    margin: 0 5px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-value {
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

/* Cart footer styles */
.cart-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.checkout-btn, .clear-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
}

.checkout-btn {
    background-color: #517DAE;
    color: white;
    border: none;
}

.checkout-btn:hover {
    background-color: #405c86;
}

.clear-btn {
    background-color: #6c757d;
    color: white;
    border: none;
}

.clear-btn:hover {
    background-color: #5a6268;
}

.icon-badge {
    background: #517DAE;
    color: #fff;
    border-radius: 50%;
    padding: 0;
    font-size: 0.85em;
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    display: inline-block;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
}

.icon-badge:empty {
    display: none;
}

.icon-btn {
    position: relative;
    margin-right: 2px;
}

/* Cart button styles */
.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    max-height: calc(100vh - 200px);
} 