/* cart.css - 우측 슬라이드아웃 장바구니 스타일 */
.slide-cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slide-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.slide-cart {
    position: fixed;
    top: 0; right: -400px; /* Hidden initially */
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.slide-cart-overlay.open .slide-cart {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.cart-items {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
}

.cart-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.cart-empty {
    text-align: center;
    color: #999;
    margin-top: 50px;
}

.btn-checkout, .btn-quote {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-checkout {
    background: #8ec342;
    color: #fff;
}

.btn-checkout:hover { background: #7ab033; }

.btn-quote {
    background: #2c3e50;
    color: #fff;
}
.btn-quote:hover { background: #1a252f; }

/* 뱃지 스타일 */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
}
