@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #10b981; /* Verde Novo Atualizado */
    --bg-dark: #111111;
    --card-bg: #1a1a1a;
    --border-color: #262626;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

body { 
    background-color: var(--bg-dark); 
    color: #fff; 
    font-family: var(--font-main); 
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* REMOVIDA A BORDA DE BAIXO DO HEADER PARA NÃO FICAR DUPLA */
header { padding: 20px 0; text-align: center; border-bottom: none; }
.logo-text { font-weight: 800; font-size: 32px; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }

.menu-principal { margin-bottom: 35px; display: flex; justify-content: center; gap: 25px; }
.menu-principal a { color: #888; text-decoration: none; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.menu-principal a:hover { color: #fff; }

.header-info { text-align: center; margin-bottom: 20px; }
.frase-1 { color: var(--primary); font-size: 13px; font-weight: 600; margin: 0; }
.frase-2 { color: #fff; font-size: 14px; font-weight: 700; margin: 5px 0 0; }

/* --- BUSCA COM APENAS UMA LINHA ANTES --- */
.search-container { 
    text-align: center; 
    margin-top: 40px;           /* Espaço entre o menu e a linha */
    padding: 30px 0;            /* Espaço entre a linha e o input */
    border-top: 1px solid #222;  /* ÚNICA LINHA DIVISÓRIA */
    width: 100%;                /* 100% da página */
    display: block;
}

.search-container input {
    background: #1c1c1c; border: 1px solid #333; color: #fff; padding: 12px 20px;
    border-radius: 25px; width: 300px; font-family: var(--font-main); text-align: center; outline: none;
    box-sizing: border-box;
}
.search-container input:focus { border-color: var(--primary); }

.container { width: 98%; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-bottom: 80px; }
@media (max-width: 1024px) { .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .container { grid-template-columns: 1fr; } }

/* --- CARD (ESTILO COMPACTO) --- */
.item-ritmo {
    display: flex;
    align-items: center; 
    height: 45px !important; 
    padding: 0 8px !important;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    overflow: hidden;
    transition: 0.3s;
}

.item-ritmo.playing-card { border-color: var(--primary); background: #1d2b26; }

.item-ritmo img {
    width: 35px !important;
    height: 35px !important;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 6px; 
}

.item-ritmo .info {
    width: 150px !important;
    height: 35px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    overflow: hidden;
}

.nome-ritmo {
    font-size: 13px;
    margin: 0 !important;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;
}

.item-ritmo p {
    margin: 0 !important;
    font-size: 13px;
    line-height: 15px;
    color: var(--primary);
    font-weight: bold;
}

.btn-play {
    background: transparent; border: 2px solid #fff; color: #fff;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    margin-left: auto; 
    margin-right: 5px; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}
.btn-play:hover, .btn-play.active-btn { color: var(--primary); border-color: var(--primary); }
.btn-play.playing-now { font-size: 18px; }

.btn-comprar {
    background-color: var(--primary); color: #fff; border: none;
    width: 70px !important; 
    height: 32px !important;
    border-radius: 16px;
    font-size: 11px !important;
    flex-shrink: 0;
    padding: 0 !important;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}
.btn-comprar:disabled { background-color: #444 !important; color: #888 !important; cursor: not-allowed; }

/* --- MODAIS --- */
#modal-carrinho, #modal-checkout {
    display: none; 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); z-index: 1000;
    justify-content: center; align-items: center;
}

.modal-content { background: #1a1a1a; width: 90%; max-width: 400px; border-radius: 15px; border: 1px solid #333; padding: 25px; text-align: center; }
.carrinho-lista { max-height: 200px; overflow-y: auto; margin: 15px 0; }
.carrinho-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: #111; margin-bottom: 5px; border-radius: 8px; font-size: 12px; }

.remove-item { cursor: pointer; transition: 0.3s; display: flex; align-items: center; }
.remove-item svg { fill: #ff4444; width: 18px; height: 18px; }

.acoes-modal { display: flex; gap: 10px; margin-top: 20px; }
.btn-finalizar-modal { flex: 1; background: var(--primary); color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 11px; font-family: var(--font-main); }
.btn-voltar-modal { flex: 1; background: #333; color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 11px; font-family: var(--font-main); }

/* --- CHECKOUT --- */
.label-checkout { display: block; text-align: center; font-size: 13px; color: #ccc; margin-bottom: 5px; margin-top: 15px; font-weight: bold; }
.input-checkout { width: 100%; padding: 12px; background: #000; border: 1px solid #333; color: #fff; border-radius: 8px; box-sizing: border-box; font-size: 12px; text-align: center; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; outline: none; font-family: var(--font-main); }
.input-checkout:focus { border-color: var(--primary); }
.erro-msg { color: #ff4444; font-size: 10px; text-align: center; display: block; margin-top: 5px; font-weight: bold; }
.input-erro { border-color: #ff4444 !important; }
.msg-aviso-amarela { font-size: 11px; color: #ffcc00; margin: 20px 0; line-height: 1.5; text-align: center; font-weight: 600; border: 1px dashed #ffcc00; padding: 10px; border-radius: 5px; }

/* --- FLUTUANTE --- */
.cart-floating {
    display: none; position: fixed; bottom: 30px; right: 30px; 
    background: linear-gradient(135deg, var(--primary), #059669); 
    width: 60px; height: 60px; border-radius: 50%; 
    justify-content: center; align-items: center; cursor: pointer; z-index: 999; 
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); animation: shakeCart 4s infinite;
}
.cart-floating svg { fill: #fff; width: 28px; height: 28px; }
.cart-count { position: absolute; top: -2px; right: -2px; background: #fff; color: #000; font-size: 11px; font-weight: 900; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

@keyframes shakeCart { 0%, 85%, 100% { transform: scale(1) rotate(0deg); } 88% { transform: scale(1.1) rotate(15deg); } 91% { transform: scale(1.1) rotate(-15deg); } 94% { transform: scale(1.1) rotate(15deg); } 97% { transform: scale(1.1) rotate(-15deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
#checkout-pix { text-align: center; animation: fadeIn 0.3s ease; }


