/* =========================================
   RESET E ESTRUTURA BLINDADA
   ========================================= */
#smh-overlay, #smh-overlay * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
    overscroll-behavior: none;
}

/* Trava a rolagem do site quando aberto */
body.smh-open {
    overflow: hidden !important;
    height: 100vh !important;
}

/* =========================================
   1. BOTÃO GATILHO (Play - Fixo na Home)
   ========================================= */
#smh-trigger-btn {
    position: fixed !important;
    bottom: 27px !important; /* ↓ Descido 3px */
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999999 !important;
    
    background: rgba(0, 0, 0, 0.5) !important; 
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#smh-trigger-btn svg { fill: #ffffff !important; width: 22px; height: 22px; }
#smh-trigger-btn .smh-trigger-text { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
body.smh-open #smh-trigger-btn { opacity: 0 !important; visibility: hidden !important; }

/* =========================================
   2. O PLAYER (Overlay)
   ========================================= */
#smh-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; 
    z-index: 99999999 !important; 
    display: none;
    align-items: center; justify-content: center;
}
#smh-overlay.open { display: flex; }

.smh-modal-wrapper {
    position: relative;
    width: 100%; height: 100%;
    background: #000; overflow: hidden;
}

/* Desktop */
@media (min-width: 768px) {
    #smh-overlay { background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); }
    .smh-modal-wrapper {
        max-width: 450px; height: 90vh; border-radius: 20px;
        box-shadow: 0 0 60px rgba(0,0,0,0.8);
        border: 1px solid rgba(255,255,255,0.1);
    }
}

/* =========================================
   3. IMAGENS E ZOOM
   ========================================= */
.smh-slides-wrapper { width: 100%; height: 100%; position: relative; }

@keyframes smhZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.smh-slide-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: blur(35px) brightness(0.5);
    opacity: 0; transition: opacity 0.8s ease;
}

.smh-slide-fg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain; z-index: 2;
    opacity: 0; transition: opacity 0.5s ease;
    transform-origin: center center;
}

.smh-slide-bg.active { opacity: 1; }
.smh-slide-fg.active { 
    opacity: 1; 
    animation: smhZoom 6s linear infinite alternate;
}

/* =========================================
   4. RODAPÉ, PREÇO E BOTÃO
   ========================================= */
.smh-product-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 140px 24px 40px; 
    color: white; z-index: 20;
    display: flex; flex-direction: column; gap: 15px;
}

.smh-info-text h3 {
    color: #fff !important; margin: 0 0 5px; 
    font-size: 1.2rem; font-weight: 500; letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.smh-price { display: flex; align-items: baseline; gap: 10px; }

.smh-price del, .smh-price del span {
    color: rgba(255,255,255,0.6) !important;
    font-size: 1rem !important;
    text-decoration: line-through !important; font-weight: 400 !important;
}

/* ↓ PREÇO FINAL EM #e60000 */
.smh-price ins, .smh-price ins span, .smh-price > span {
    color: #e60000 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    background: none !important;
}

/* BOTÃO COMPRAR – Cinza translúcido moderno */
.smh-cta-btn {
    width: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 1px rgba(255,255,255,0.2);
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
.smh-cta-btn:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    transform: translateY(-2px);
}
.smh-cta-btn:active { transform: scale(0.97); }

/* =========================================
   5. BOTÃO FECHAR
   ========================================= */
.smh-close-btn {
    position: absolute; 
    top: 20px; right: 20px;
    z-index: 100;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: white; font-size: 22px; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Barras */
.smh-progress-container { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 20; }
.smh-progress-bar { flex: 1; height: 2px; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; }
.smh-progress-fill { height: 100%; width: 0%; background: #fff; box-shadow: 0 0 4px rgba(255,255,255,0.8); }

/* Navegação */
.smh-nav-left, .smh-nav-right { position: absolute; top: 20%; height: 60%; width: 30%; z-index: 15; }
.smh-nav-left { left: 0; } 
.smh-nav-right { right: 0; }
