/* Estilos Globais */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a09;
    color: #fff;
}

/* Mini Cart */
.cart-container {
    position: relative;
}

.mini-cart {
    position: absolute;
    top: 100%;
    right: -20px;
    width: 350px;
    background: #151515;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 10px;
}

.mini-cart::before,
.mini-cart::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
}

.mini-cart::before {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255,255,255,0.1);
    margin-top: -1px;
}

.mini-cart::after {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #151515;
    margin-top: 1px;
}

.mini-cart.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Botão de Preço */
.price-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.price-container .price-content {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.price-container:not(.active):hover .price-content {
    transform: translateY(-2px);
}

.price-container .check-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.price-container.active .price-content {
    transform: translateX(-100%);
    opacity: 0;
}

.price-container.active .check-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Player de Áudio */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(0 0 0 / 51%);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-image:hover .play-overlay {
    opacity: 1;
}

.playing .play-overlay {
    opacity: 1;
}

/* Botão de Remover do Carrinho */
.cart-remove {
    cursor: pointer;
    z-index: 10;
}

.cart-product-item {
    position: relative;
}

/* Scrollbar Personalizada */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #202020;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* Botão de Curtida */
.wishlist-button {
    transition: all 0.3s ease;
}

.wishlist-button.liked {
    background-color: rgba(244, 114, 182, 0.2);
    color: #ec4899;
}

.wishlist-button svg {
    transition: fill 0.3s ease;
}

.wishlist-button.liked svg {
    fill: currentColor;
}

/* Animações de Notificação */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, 100px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translate(0%, 0);
    }
    to {
        opacity: 0;
        transform: translate(00%, 100px);
    }
}

.animate-slide-in {
    animation: slideIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.animate-slide-out {
    animation: slideOut 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

/* Responsividade */
@media (max-width: 768px) {
    .mini-cart {
        width: calc(100vw - 32px);
        right: -16px;
    }
    
    .mini-cart::before,
    .mini-cart::after {
        right: 24px;
    }
}

/* Animações dos Produtos */
.product-item {
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-2px);
}

/* Efeitos de Hover */
.product-image img {
    transition: transform 0.3s ease;
}

/* Tags e Labels */
.product-tag {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #60A5FA;
}

/* Badges */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

.badge-new {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.badge-featured {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

/* Loading States */
.product-loading {
    position: relative;
    overflow: hidden;
}

.product-loading::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #1f2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

    .mobile-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.mobile-play-icon {
    background-color: #0071e3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}


#preview-info .current-time,  #waveform-current-time {
    position: absolute;
    z-index: 9999999999999999;
    padding: 1px 5px;
    border: 1px solid #515051;
    border-radius: 2px;
    font-weight: 500;
    font-size: 11px;
    line-height: 18px;
    color: #fff;
    background: #1111117a;
    backdrop-filter: blur(1px);
    bottom: 0;
    pointer-events: none;
}

 #preview-info .duration, #waveform-duration {
    position: absolute;
    z-index: 9999999999999999;
    padding: 1px 5px;
    border: 1px solid #515051;
    border-radius: 2px;
    font-weight: 500;
    font-size: 11px;
    line-height: 18px;
    color: #fff;
    background: #1111117a;
    backdrop-filter: blur(1px);
    bottom: 0;
    right: 0;
}


.track-title-preview {
    position: absolute;
    top: 17px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 3;
    width: 400px;
    pointer-events: none;
    text-align: center;
    font-size: 12px;
    color: #ccc;
    white-space: nowrap;
}


