@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Dancing+Script:wght@700&family=Great+Vibes&display=swap');

.container-capa {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.capa {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.titulo-na-imagem {
    position: absolute;
    top: 15%;
    left: 10%;
    transform: translateY(-50%);
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
    margin: 0;
    padding: 0;
    background: transparent;
    line-height: 1.1;
    text-align: left;
}

/* Painel de escolha integrado na imagem */
.painel-escolha {
    position: absolute;
    top: 50%;
    right: 80%;
    transform: translateY(-50%);
    z-index: 3;
}

.caixa-flores {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    max-width: 320px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.caixa-flores h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #8B4513;
    text-align: center;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0e6d8;
}

.lista-flores {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.item-flor {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #5d4037;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 248, 240, 0.8);
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.item-flor:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nome-flor {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #5d4037;
}

/* Scrollbar personalizada */
.lista-flores::-webkit-scrollbar {
    width: 6px;
}

.lista-flores::-webkit-scrollbar-track {
    background: rgba(240, 230, 216, 0.5);
    border-radius: 10px;
}

.lista-flores::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 10px;
}

.lista-flores::-webkit-scrollbar-thumb:hover {
    background: #654321;
}

/* Efeito de vidro para modernidade */
.caixa-flores::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    border-radius: 22px;
    z-index: -1;
}

@media (max-width: 768px) {
    .painel-escolha {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: -50px auto 20px;
        max-width: 90%;
    }
    
    .caixa-flores {
        max-height: 300px;
    }
    
    .titulo-na-imagem {
        font-size: 2.8rem;
        left: 5%;
        top: 12%;
    }
}

@media (max-width: 480px) {
    .titulo-na-imagem {
        font-size: 2.2rem;
        left: 5%;
        top: 10%;
    }
    
    .caixa-flores {
        padding: 20px;
    }
    
    .caixa-flores h2 {
        font-size: 1.3rem;
    }
    
    .nome-flor {
        font-size: 1rem;
    }
}