/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 70px;
    height: 50px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    color: #999;
    position: relative;
}

.float-btn:hover {
    color: #c76b52;
}

.float-btn svg {
    width: 20px;
    height: 20px;
    margin-right:15px;
}

.float-btn .cart-badge {
    right:15px;
    top:2px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
}

/* Top Button */
.btn-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: #fff;
    color: #999;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    opacity: 0;
    visibility: hidden;
}

.btn-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-top svg {
    width: 16px;
    height: 16px;
}

.btn-top:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: #c76b52;
}

.btn-top:hover svg {
    stroke: #c76b52;
}

/* 최근 본 상품 개별 삭제 버튼 */
.recent-item-wrapper {
    position: relative;
}

.btn-recent-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    padding: 0;
    line-height: 1;
    transition: background 0.2s;
    z-index: 1;
}

.btn-recent-delete:hover {
    background: rgba(239, 68, 68, 0.85);
}

.btn-recent-delete svg {
    width: 11px;
    height: 11px;
    pointer-events: none;
}

/* Floating Responsive */
@media (max-width: 1024px) { 
    .btn-top {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* 플로팅 버튼 숨기기 */
    .floating-buttons {
        display: none;
    }
    
    .btn-top {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 10px;
    }
    
    .btn-top svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .btn-top {
        right: 12px;
        bottom: 12px;
        width: 46px;
        height: 46px;
        font-size: 9px;
    }
    
    .btn-top svg {
        width: 12px;
        height: 12px;
    }
}
