:root {
    --primary: #E0669E;
    --accent: #F7BFD8;
    --muted: #6c757d;
    --text-dark: #2B2B2B;
    --card-radius: 14px;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --footer-height: 50px; /* Altura aproximada do seu footer */
}

html {
    height: 100%;
}

/* Navbar translúcida */
header .navbar {
    background: rgba(224, 102, 158, 0.65);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3csvg%3e");
}

/* Cards de produto genéricos */
.product-card {
    border-radius: var(--card-radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,240,247,0.95));
    border: 1px solid rgba(224, 102, 158, 0.15);
    box-shadow: 0 6px 22px rgba(224, 102, 158, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(224, 102, 158, 0.15);
}

/* Imagem do produto responsiva */
.product-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Proporção quadrada */
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(224, 102, 158, 0.1);
}

/* Títulos e preços */
.product-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.price {
    font-weight: 700;
    color: var(--primary);
}

/* Botão comprar */
.buy-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: .45rem .8rem;
    font-weight: 600;
    transition: background 0.3s;
}
.buy-btn:hover {
    background: #c05488;
}

/* Footer Fixo */
footer.site-footer {
    position: fixed; /* Torna o footer fixo */
    bottom: 0; /* Fixa na parte inferior */
    width: 100%; /* Ocupa toda a largura */
    z-index: 1030; /* Garante que fique acima de outros elementos, como o navbar (z-index 1030) */
    background: var(--primary); /* Cor de fundo do footer */
    color: #fff; /* Cor do texto */
    padding: 0.5rem 0.75rem; /* Padding interno */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Sombra superior */
}

footer.site-footer a {
    color: #fff; /* Cor dos links no footer */
    text-decoration: none;
}

footer.site-footer a:hover {
    color: var(--accent);
}

/* Ajuste do grid */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Main content takes remaining space */
main {
    flex-grow: 1;
}


.floating-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1030; /* Garante que os botões fiquem acima de outros elementos */
    position: fixed; /* Garante que os botões permaneçam fixos na tela */
    right: 1.5rem; /* Margem padrão à direita */
}

/* Posicionamento específico para o botão do WhatsApp */
.btn-whatsapp.floating-btn {
    /* bottom: (altura do footer estimada) + (espaçamento de 1rem) */
    bottom: calc(var(--footer-height) + 1rem);
    font-size: 2rem;
}

/* Posicionamento específico para o botão do Instagram */
.btn-instagram.floating-btn {
    /* bottom: (bottom do WhatsApp) + (altura do botão WhatsApp) + (espaçamento de 1rem) */
    bottom: calc(var(--footer-height) + 1rem + 60px + 1rem);
    font-size: 1.8rem;
    background-color: #E1306C;
    color: white;
}

/* Ajustes para telas menores (smartphones) */
@media (max-width: 576px) { /* Ponto de interrupção 'sm' do Bootstrap */
    .floating-btn {
        width: 48px; /* Botões ligeiramente menores */
        height: 48px; /* Botões ligeiramente menores */
        right: 0.75rem; /* Margem direita menor */
    }
    .btn-whatsapp.floating-btn {
        /* bottom: (altura do footer estimada) + (espaçamento de 0.75rem) */
        bottom: calc(var(--footer-height) + 0.75rem);
        font-size: 1.7rem; /* Ícone menor */
    }
    .btn-instagram.floating-btn {
        /* bottom: (bottom do WhatsApp ajustado) + (altura do botão WhatsApp ajustado) + (espaçamento de 0.75rem) */
        bottom: calc(var(--footer-height) + 0.75rem + 48px + 0.75rem);
        font-size: 1.5rem; /* Ícone menor */
    }
}

/* Correção para o botão do navbar-toggler em dispositivos móveis */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5); /* Adiciona uma borda visível */
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5); /* Adiciona um foco visível */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
