/* 장바구니 페이지 스타일 */

/* 수량 조절 컨트롤 */
.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f8f9fa;
    border-color: #6c5ce7;
}

.quantity-btn i {
    font-size: 12px;
    color: #495057;
}

.quantity-btn:hover i {
    color: #6c5ce7;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

/* 삭제 버튼 */
.cart-remove-btn {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-remove-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* 쿠폰 입력 폼 */
.coupon-form {
    width: 100%;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.coupon-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
}

.coupon-input::placeholder {
    color: #adb5bd;
}

.coupon-button {
    background: #6c5ce7;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-button:hover {
    background: #5f4fd1;
}

/* 교구 수량 조절 컨트롤 */
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #6c5ce7;
}

.qty-btn:hover i {
    color: #fff;
}

.qty-btn i {
    font-size: 12px;
    color: #6c5ce7;
    transition: color 0.2s ease;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-btn:disabled:hover {
    background: #f8f9fa;
}

.qty-btn:disabled:hover i {
    color: #6c5ce7;
}

.qty-input {
    width: 50px;
    height: 32px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* 모바일 대응 */
@media (max-width: 768px) {
    .quantity-controls {
        justify-content: flex-start;
    }
}
