/* ================================================================= 
   HERO SECTION (IMAGENS DOS CAVALOS)
   ================================================================= */
.app-hero-section {
    position: relative;
    height: 330px;
    background: #bcbcbc;
    overflow: hidden;
    margin-bottom: -60px;
    margin-left: -10px; 
    margin-right: -10px;
    width: calc(100% + 21px);
}

.hero-bg {
    position: absolute;
    top: 0;
    height: 100%;
    width: calc(50% + 15px);
    background-size: cover;
    background-position: right top;
    transition: background-image 0.4s ease-in-out;
}

.header-bg-left {
    left: 0;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.header-bg-right {
    right: 0;
    transform: scaleX(-1);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(255 255 255 / 0%) 40%, rgba(21,16,12,0.9) 90%, rgba(21,16,12,1) 100%);
    z-index: 2;
}

.hero-logo-center {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -30%);
    z-index: 10;
    width: 150px;
}
.hero-logo-center img {
    width: 100%;
    filter: drop-shadow(0 4px 6px #000);
}

/* ================================================================= 
   CONTROLES DE SELE??O (GLASS UI)
   ================================================================= */
.hero-controls-wrapper {
    position: relative;
    z-index: 30;
    padding: 0 5px;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.control-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.control-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.col-right .control-heading { text-align: right; }

/* Bot?o Glass Principal */
.glass-btn {
    flex: 1;
    width: 100%;
    
    /* Fundo escuro transl?cido */
    background: rgba(30, 23, 18, 0.85) !important;
    backdrop-filter: blur(10px);
    
    /* [IMPORTANTE] Borda s?lida amarela sempre vis?vel */
    border: 1px solid #d4af37 !important; 
    
    /* [CORRE??O] Removido !important daqui para a anima??o funcionar */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    
    padding: 10px !important;
    border-radius: 12px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto !important;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s; /* Removido transition de shadow para n?o brigar com animation */
}

.glass-btn:hover {
    background: rgba(45, 35, 28, 0.95) !important;
    transform: translateY(-2px);
    /* No hover, refor?amos a sombra est?tica */
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.glass-btn .lbl {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
}

.glass-btn .sub, .glass-btn .variate-nome-select {
    font-size: 11px;
    color: #d1d5db;
    opacity: 1;
}

.glass-btn .carets { color: #d4af37; font-size: 18px; }

.glass-btn .row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.names {
    display: flex; flex-direction: column;
    text-align: left; align-items: flex-start;
    width: auto;
}

#ss-g2 .ss-btn .row { flex-direction: row !important; }
#ss-g2 .names {
    text-align: right !important;
    align-items: flex-end !important;
    margin-left: auto; width: 100%;
}
#ss-g2 .carets {
    margin-right: 8px !important;
    margin-left: 0 !important;
    order: -1;
}

/* Toolbar de Filtros */
.glass-toolbar {
    margin-top: 6px; flex-shrink: 0; width: 100%;
}
.glass-toolbar .filters .inner {
    display: flex; align-items: center; gap: 3px;
    width: 100%; overflow-x: auto; white-space: nowrap;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgb(107 107 107 / 40%);
}
.col-right .glass-toolbar .filters .inner { flex-direction: row-reverse; }

.glass-select.select-native {
    background-color: rgb(75 48 34 / 90%) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #e0c389 !important;
    border-radius: 20px !important;
    padding: 8px 7px !important;
    padding-right: 12px !important;
    font-size: 11px !important;
    flex: 0 0 auto;
    cursor: pointer;
}

/* ================================================================= 
   ANIMA??O DE ATEN??O (CORRIGIDA E INTENSIFICADA)
   ================================================================= */

/* Define a pulsa??o do brilho amarelo */
@keyframes pulse-attention-gold {
    0% {
        /* Estado inicial: sem brilho, borda normal */
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.0);
        border-color: #d4af37;
    }
    50% {
        /* Estado pulsando: brilho forte e expandido */
        box-shadow: 0 0 10px 1px rgba(212, 175, 55, 0.7); /* Glow Amarelo Intenso */
        border-color: #ffeb3b; /* Borda fica mais clara/brilhante */
    }
    100% {
        /* Volta ao normal */
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.0);
        border-color: #d4af37;
    }
}

@keyframes float-label {
    0% { transform: translate(-50%, 0); opacity: 0; }
    15% { transform: translate(-50%, -5px); opacity: 1; }
    85% { transform: translate(-50%, -5px); opacity: 1; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

/* O BOT?O PULSANDO */
.ss-btn.piscando {
    /* Animation precisa ser important para garantir que sobrescreva qualquer transi??o */
    animation: pulse-attention-gold 1.5s infinite ease-in-out !important;
    z-index: 100 !important;
    position: relative;
    /* Garante que o fundo n?o fique transparente durante o piscar */
    background: rgba(30, 23, 18, 0.95) !important; 
}

/* ETIQUETA "TOQUE AQUI" (Pisca 3x e some) */
.ss-btn.piscando::after {
    content: "TOQUE AQUI";
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    
    background: #d4af37; /* Amarelo Ouro S?lido */
    color: #15100c;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    
    animation: float-label 2s ease-in-out 3 forwards;
    
    pointer-events: none;
    
    letter-spacing: 0.5px;
}

/* TRIANGULO (Pisca 3x e some) */
.ss-btn.piscando::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    
    border-width: 6px;
    border-style: solid;
    border-color: #d4af37 transparent transparent transparent;
    
    opacity: 0;
    
    animation: float-label 2s ease-in-out 3 forwards;
    pointer-events: none;
}

/* ================================================================= 
   RESULTADOS E LISTAGEM
   ================================================================= */
.card_results {
    background: var(--card-bg);
    border: 1px solid rgba(92, 72, 58, 0.2);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    margin-top: 20px;
}

.title {
    font-weight: 700;
    margin: 5px 0 8px 0px;
    text-align: center;
    color: var(--text-main);
}

.list { margin-top: 8px; }
.list .placeholder-msg {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.item {
    display: flex; gap: 10px; align-items: center;
    padding: 15px 5px;
    border-bottom: 1px dashed rgb(107 86 70 / 59%);
}

.item img.thumb {
    width: 90px; height: 90x;
    border-radius: 12px; object-fit: cover;
    background: rgba(0,0,0,0.2); cursor: zoom-in;
    flex: 0 0 auto;
}

.item .txt { min-width: 0; flex: 1; }
.item .name { font-weight: 800; color: #fff; }
.item .desc { color: var(--text-muted); font-size: 12px; margin-top: 1px; }

.item .name-row {
    display: flex; align-items: center;
    justify-content: space-between; width: 100%;
}

.item .right-col {
    margin-left: auto;
    display: flex; flex-direction: column;
    align-items: flex-end; justify-content: center;
    gap: 16px; min-width: 70px;
    position: relative; top: -10px;
}

.pct-col {
    margin-left: auto;
    display: inline-flex; flex-direction: row;
    align-items: center; gap: 1px; line-height: 1;
}
.pct-col .num { font-weight: 800; font-size: 22px; color: var(--gold); }
.pct-col .unit { font-size: 14px; opacity: .85; color: var(--text-muted); }

/* ?rea de Compartilhamento Nativo */
.share-section { text-align: center; margin: 25px 0 30px; }
.btn-share-main {
    background: rgba(223, 172, 111, 0.15);
    color: #fff; font-weight: 600;
    border: 1px solid rgba(223, 172, 111, 0.3);
    border-radius: 12px; padding: 14px 24px;
    font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; transition: all .3s;
}
.btn-share-main:hover {
    background: rgba(223, 172, 111, 0.3); border-color: var(--gold);
}
.icon-share { width: 20px; height: 20px; }

/* ================================================================= 
   BOT?O DE FAVORITO (Cora??o + Texto)
   ================================================================= */
.fav-btn {
    display: inline-flex; 
    flex-direction: column; /* Organiza em coluna (um em cima do outro) */
    align-items: center; 
    justify-content: center;
    gap: 2px; /* Espa?o pequeno entre a linha do ?cone e o texto "Gostaram" */
    
    cursor: pointer; 
    margin-left: auto;
    padding: 4px 10px; /* Padding ajustado */
    background: rgba(255, 224, 177, 0.1);
    border: 1px solid transparent;
    user-select: none; 
    border-radius: 12px; /* Bordas mais arredondadas */
    
    /* ANIMA??O DE ENTRADA */
    opacity: 0; transform: scale(0);
    animation: popInHeart 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.5) 0.5s forwards;
    transition: background 0.2s, border-color 0.2s; 
}

/* Linha superior (Contador + ?cone) */
.fav-row {
    display: flex; 
    align-items: center; 
    gap: 4px; /* Espa?o entre o n?mero e o cora??o */
    line-height: 1;
}

/* O texto "Gostaram" */
.fav-label {
    font-size: 9px; /* Fonte bem pequena */
    text-transform: uppercase;
    color: #aaa; /* Cor mais apagada */
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
}

@keyframes popInHeart {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

.fav-btn:active { transform: scale(0.95) !important; }

.fav-icon {
    width: 18px; height: 18px;
    fill: none; stroke: #666; stroke-width: 2;
    transition: all 0.3s; 
    /* margin-bottom removido pois agora usamos flex gap */
}

.fav-text {
    font-size: 14px; /* Tamanho do n?mero */
    color: #fff; 
    font-weight: 700;
    /* margins removidas pois agora usamos flex gap */
}

/* Estados ATIVO (Favoritado) */
.fav-btn.ativo { 
    background: rgba(239, 68, 68, 0.15); 
    border-color: rgba(239, 68, 68, 0.3); 
}
.fav-btn.ativo .fav-icon {
    fill: #ff4646; stroke: #ef4444;
    animation: heartPulse 0.4s ease-out;
}
.fav-btn.ativo .fav-text { color: #ffb2b2; }
.fav-btn.ativo .fav-label { color: #ffb2b2; } /* O label tamb?m muda de cor */

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ================================================================= 
   MODAIS E SHEETS (SELE??O)
   ================================================================= */
.sheet-backdrop {
    position: fixed; inset: 0; background: #000000cc;
    display: none; z-index: 50;
}
.sheet {
    position: fixed; inset: 0; display: none; z-index: 60;
    align-items: flex-end; justify-content: center;
}
.sheet .panel {
    width: 80%; max-width: 300px;
    background: var(--sheet-bg);
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    border: 1px solid #ffffff14;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
}
.sheet .head {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 10px 12px; border-bottom: 1px solid #ffffff15;
}
.sheet .close {
    background: #2a2019; border: 1px solid #ffffff18;
    border-radius: 10px; padding: 8px 16px;
    cursor: pointer; color: #fff; font-size: 13px;
}
.sheet .list { overflow: auto; -webkit-overflow-scrolling: touch; }
.sheet .opt {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-bottom: 1px solid #ffffff0f;
    cursor: pointer;
}
.sheet .opt:hover { background: #3a2d22; }
.sheet .tag { font-size: 11px; color: var(--gold-dim); opacity: .9; }
.sheet .opt img.thumb {
    width: 50px; height: 50px;
    border-radius: 8px; object-fit: cover;
    background: rgba(0,0,0,0.3);
}
.sheet.mae .opt img.thumb { transform: scaleX(-1); }

/* ================================================================= 
   LIGHTBOX (GALERIA / ZOOM) - QUADRADA E LIMPA
   ================================================================= */
.lb-backdrop {
    position: fixed; inset: 0;
    background: rgba(10, 8, 7, 0.96);
    display: none; z-index: 2000;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}
.lb {
    position: fixed; inset: 0; display: none; z-index: 2001;
    align-items: center; justify-content: center;
    padding: 20px;
}
.lb .frame {
    position: relative; width: auto;
    max-width: 90vw; max-height: calc(100vh - 80px); 
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.lb .img {
    width: auto; height: auto;
    max-width: 100%; max-height: 75vh; 
    aspect-ratio: 1 / 1; 
    object-fit: contain; 
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    animation: zoomIn 0.3s ease-out;
    background: #000;
}
.lb .caption {
    position: relative; margin-top: 15px; padding: 10px 5px;
    color: var(--text-main); font-size: 14px;
    line-height: 1.5; text-align: center;
    max-width: 600px;
    animation: slideUp 0.4s ease-out 0.1s backwards;
}

/* CONTROLES DA LB */
.lb .close {
    position: fixed; top: 25px; right: 25px;
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 22px; transition: all 0.2s; z-index: 2010;
}
.lb .prev, .lb .next {
    position: absolute; top: 50%; transform: translateY(-100%); 
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(30, 23, 18, 0.6); backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 24px; transition: all 0.2s; z-index: 10; user-select: none;
}
.lb .close:hover, .lb .prev:hover, .lb .next:hover {
    background: var(--gold); color: #000; border-color: var(--gold); transform: scale(1.1);
}
.lb .prev:hover, .lb .next:hover { transform: translateY(-100%) scale(1.1); }
.lb .prev { left: -60px; }
.lb .next { right: -60px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Responsividade Mobile Lightbox */
@media (max-width: 768px) {
    .lb .frame { width: 100%; }
    .lb .img { max-height: 65vh; }
    .lb .caption { font-size: 13px; margin-top: 12px; }
    .lb .close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 18px; background: rgba(0,0,0,0.5); }
    .lb .prev, .lb .next {
        width: 36px; height: 36px; font-size: 20px;
        background: rgba(0,0,0,0.3); border: none; transform: translateY(-100%);
    }
    .lb .prev { left: 10px; }
    .lb .next { right: 10px; }
}