/*
 * Main CSS for Loja Afiliados - Glassmorphism & Pastel Theme v2.3
 *
 * Includes:
 * - Debossed/Inset style for Site Title with a hover/click animation
 * - Glassmorphism Style with edge highlights
 * - 'text-pop-up-top' animation for Page Titles on hover
 * - Responsive design
 */

/* --- 1. Variáveis Globais e Reset --- */
:root {
    --color-primary: #8e82ff;
    --color-primary-dark: #6a5acd;
    --color-text: #333745;
    --color-text-light: #5a6178;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-blur: 15px;
    --glass-border-color: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    --glass-inset-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: #f4f7fc;
    background-image:
        radial-gradient(circle at 1% 1%, hsla(240, 89%, 78%, 0.4) 0px, transparent 50%),
        radial-gradient(circle at 99% 99%, hsla(338, 89%, 78%, 0.4) 0px, transparent 50%);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--color-primary); transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
.site-main { max-width: 1600px; margin: 25px auto; padding: 0 20px; }

/* --- 2. Header e Navegação --- */
.site-header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: var(--glass-shadow);
}
.site-branding-container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 0 20px; 
}
.custom-logo-link img { 
    max-height: 45px; 
    transition: transform var(--transition-fast); 
}
.custom-logo-link:hover img { transform: scale(1.05); }


/* Título do Site com o novo estilo "Debossed" */
.site-title {
    /* FONTE ATUALIZADA AQUI */
    font-family: "Dancing Script", cursive;
    font-size: 2.2rem; /* Fontes cursivas geralmente precisam de um tamanho maior */
    font-weight: 700;  /* Usando o peso que importamos (Bold) */
    
    /* Removemos o uppercase pois não se aplica bem a fontes cursivas */
    text-transform: none; 
    letter-spacing: 1px;
    
    /* Mantemos o efeito "debossed" que já funciona bem */
    color: rgba(60, 60, 80, 0.7);
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6), -1px -1px 1px rgba(0, 0, 0, 0.1);
    
    transition: all var(--transition-medium);
}

/* A animação de hover continua a mesma e funcionará com a nova fonte */
.site-header:hover .site-title,
.site-title a:focus {
    animation: pulse-deboss 2s ease-in-out infinite;
}

.site-title a {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.main-navigation ul#primary-menu { list-style: none; display: flex; gap: 15px; }
.main-navigation a { display: block; padding: 8px 15px; color: var(--color-text-light); font-weight: 500; font-size: 1rem; position: relative; overflow: hidden; }
.main-navigation a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--color-primary); transition: all var(--transition-medium); transform: translateX(-50%); }
.main-navigation a:hover::after, .main-navigation .current-menu-item > a::after { width: 100%; }
.main-navigation .menu-toggle { display: none; }

/* --- 3. Product Grid (Home Page) --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.product-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 20px;
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--glass-shadow), var(--glass-inset-shadow);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
}
.product-item::before, .product-item::after, .product-main-content::before, .product-main-content::after, .page-header::before, .page-header::after { content: ''; position: absolute; z-index: 1; }
.product-item::before, .product-main-content::before, .page-header::before { top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); }
.product-item::after, .product-main-content::after, .page-header::after { top: 0; left: 0; width: 1px; height: 100%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent, rgba(255, 255, 255, 0.2)); }
.product-item:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 16px 40px rgba(31, 38, 135, 0.2), var(--glass-inset-shadow); }
.product-link { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.product-image-wrapper { padding-top: 100%; position: relative; }
.product-image-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-medium); }
.product-item:hover .product-image-wrapper img { transform: scale(1.1); }
.product-details { padding: 15px; text-align: left; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 1rem; font-weight: 600; color: var(--color-text); line-height: 1.4; height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.product-price-wrapper { margin-bottom: 10px; }
.product-price-wrapper .price { font-size: 1.3rem; font-weight: 700; color: var(--color-text); }
.product-rating-sales { font-size: 0.85rem; color: var(--color-text-light); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.product-rating .star { color: #ffc107; }
.product-info-line { font-size: 0.8rem; color: var(--color-text-light); margin-top: auto; padding-top: 5px; border-top: 1px solid rgba(0,0,0,0.05); }

/* --- 4. Single Product Page --- */
.single-product-page .site-main { max-width: 1200px; }
.product-main-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; margin-top: 30px; padding: 30px; background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border-radius: 24px; border: 1px solid var(--glass-border-color); box-shadow: var(--glass-shadow), var(--glass-inset-shadow); position: relative; overflow: hidden; }
.product-gallery .main-image { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.product-gallery .main-image img { width: 100%; transition: transform 0.5s ease; }
.product-gallery .main-image:hover img { transform: scale(1.05); }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 15px; margin-top: 20px; }
.gallery-thumbnails .thumbnail img { border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: all var(--transition-fast); }
.gallery-thumbnails .thumbnail img:hover { border-color: var(--color-primary); transform: scale(1.05); }
.product-summary .product_title { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 15px; }
.product-summary .price { font-size: 2.5rem; font-weight: 800; color: var(--color-primary-dark); margin-bottom: 20px; }
.product-summary .woocommerce-product-details__short-description { color: var(--color-text-light); margin-bottom: 30px; }
.product-purchase-button .button { display: inline-block; width: 100%; text-align: center; padding: 18px 25px; background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark)); color: #fff; font-size: 1.2rem; font-weight: 600; border-radius: 12px; text-transform: uppercase; letter-spacing: 1px; border: none; box-shadow: 0 4px 15px 0 rgba(106, 90, 205, 0.4); transition: all var(--transition-medium); }
.product-purchase-button .button:hover { transform: translateY(-3px); box-shadow: 0 7px 20px 0 rgba(106, 90, 205, 0.6); }
.product-full-description { margin-top: 40px; padding: 30px; background: #fff; border-radius: 16px; }

/* --- 5. Animações de Entrada e Outros --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.product-item, .product-main-content, .product-full-description, .page-header { opacity: 0; animation: fadeIn 0.6s ease-out forwards; animation-fill-mode: forwards; }
<?php for ($i = 1; $i <= 20; $i++) : ?>
.product-grid .product-item:nth-child(<?php echo $i; ?>) { animation-delay: <?php echo $i * 0.05; ?>s; }
<?php endfor; ?>
.loading-indicator { padding: 40px; text-align: center; font-size: 1.2rem; color: var(--color-text-light); }

/* --- 7. Estilos do Título da Página --- */
.page-header { padding: 60px 40px; margin-bottom: 40px; background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border-radius: 24px; border: 1px solid var(--glass-border-color); box-shadow: var(--glass-shadow), var(--glass-inset-shadow); position: relative; overflow: hidden; animation-delay: 0.1s; }
.page-title { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; text-align: center; text-transform: uppercase; color: rgba(60, 60, 80, 0.7); text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7), -1px -1px 1px rgba(0, 0, 0, 0.1); transition: all 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940); }
.page-header:hover .page-title { -webkit-animation: text-pop-up-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; animation: text-pop-up-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; }

/* --- 10. Carrossel Avançado (Estilo 3D Glassmorphism) --- */
.carousel-container {
    width: 100%;
    max-width: 1100px; /* Ajustado para mais espaço */
    margin: 20px auto;
    position: relative;
    perspective: 2500px;
    padding: 3rem 0;
    z-index: 10;
}

.carousel-track {
    display: flex;
    align-items: center; /* Alinha os cards verticalmente */
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

.carousel-card {
    min-width: 300px;
    max-width: 300px;
    bottom: 50px;
    margin: 0 20px; /* Espaçamento entre os cards */
    
    /* ESTILO GLASSMORPHISM APLICADO */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 20px;
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--glass-shadow);
    
    overflow: visible; /* Necessário para o efeito de borda brilhante */
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
    position: relative;
}

/* Efeito de borda brilhante adaptado para o Glassmorphism */
.carousel-card::before {
    content: "";
    position: absolute;
    inset: -2px; /* Fora da borda */
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), var(--color-primary), rgba(255, 255, 255, 0.8), transparent);
    z-index: -1;
    border-radius: 22px;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderGlow 6s linear infinite;
    background-size: 300% 300%;
}

@keyframes borderGlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Estados de transformação do carrossel */
.carousel-card:not(.is-active) {
    transform: scale(0.85) translateZ(-400px);
    opacity: 0.5;
    cursor: pointer;
}

.carousel-card.is-prev {
    transform: scale(0.8) rotateY(35deg) translateZ(-300px);
}

.carousel-card.is-next {
    transform: scale(0.8) rotateY(-35deg) translateZ(-300px);
}

.carousel-card.is-active {
    transform: scale(1) rotateY(0) translateZ(0);
    opacity: 1;
    z-index: 20;
    box-shadow: 0 25px 50px rgba(31, 38, 135, 0.2), var(--glass-inset-shadow);
}

.carousel-card.is-active::before {
    opacity: 0.8;
}

.carousel-card:hover:not(.is-active) {
    transform: scale(0.88) translateZ(-380px); /* Leve zoom no hover dos inativos */
}

/* Conteúdo do Card */
.card-link-wrapper {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden; /* Corta o conteúdo interno para o border-radius */
}

.card-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border-color);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.carousel-card.is-active .card-image {
    transform: scale(1.05);
}

/* Sobreposição suave na imagem */
.card-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.card-content {
    padding: 20px;
    color: var(--color-text);
    
    /* --- NOVO: Adiciona transição para a animação de hover --- */
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}


.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.90rem;
    color: var(--color-text);
    height: 1.4em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-light);
    min-height: 4.5em; /* Garante altura consistente */
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.card-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.progress-value {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #bca0ff);
    border-radius: 4px;
}

.card-stats {
    /* Mantém os estilos existentes */
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
    
    /* Adiciona a transição */
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-card.is-active:hover .card-stats {
    opacity: 0;
    transform: translateY(10px);
}

/* Botões de Navegação com estilo Glassmorphism */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border-color);
    border-radius: 50%;
    color: var(--color-primary-dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    color: var(--color-primary);
}

.carousel-button.prev { left: -22px; }
.carousel-button.next { right: -22px; }

/* Indicadores (pontos) com estilo Glassmorphism */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    position: relative;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: var(--color-primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Detalhes que aparecem no Hover */
.tech-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    z-index: 25;
    border-top: 1px solid var(--glass-border-color);
    border-radius: 0 0 20px 20px;

    /* Estado inicial: escondido ABAIXO do card */
    transform: translateY(100%);
    
    /* --- ATUALIZADO: Transição mais suave e com delay --- */
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    /* Adicionar um pequeno delay na entrada pode deixar a animação mais fluida, mas é opcional */
    /* transition-delay: 0.1s; */
}

/* Estado no hover: desliza para a posição visível */
.carousel-card.is-active:hover .tech-details {
    transform: translateY(0);
}

.tech-tag {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    background: rgba(142, 130, 255, 0.15);
    border: 1px solid rgba(142, 130, 255, 0.3);
    border-radius: 6px;
    color: var(--color-primary-dark);
    font-weight: 500;
}


/* --- 11. Rodapé (Footer) --- */
.site-footer {
    margin-top: 50px;
    padding: 25px 20px;
    
    /* Efeito Glassmorphism no rodapé */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border-color);
    box-shadow: 0 -8px 32px rgba(31, 38, 135, 0.1); /* Sombra para cima */
    
    color: var(--color-text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-inner-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
    gap: 15px;
}

.footer-copyright {
    text-align: center;
    flex-grow: 1; /* Permite que o copyright ocupe o espaço disponível */
}

.footer-powered-by a {
    color: inherit; /* Herda a cor do texto do rodapé */
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-powered-by a:hover {
    color: var(--color-primary); /* Muda para a cor de destaque no hover */
}



/* @media (max-width: 768px) */
.footer-inner-container {
    flex-direction: column; /* Empilha os elementos verticalmente */
    justify-content: center;
    text-align: center;
}

.site-header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: var(--glass-shadow);

    /* --- TRANSIÇÃO PARA O EFEITO DE OCULTAR/MOSTRAR --- */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Nova classe que será adicionada via JavaScript */
.site-header.site-header-hidden {
    transform: translateY(-100%);
}




/* Ajustes Responsivos */
@media (max-width: 768px) {
    .site-branding-container { 
        flex-direction: column; 
        gap: 15px; 
    }

    /* Esconde o menu de navegação horizontal */
    .main-navigation ul#primary-menu {
        display: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-top: 1px solid var(--glass-border-color);
        margin-top: 10px;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    
    /* Mostra o menu quando a classe .toggled é adicionada via JS */
    .main-navigation.toggled ul#primary-menu {
        display: block;
    }
    
    .main-navigation.toggled li {
        margin: 0;
    }

    .main-navigation.toggled a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border-color);
        font-weight: 600;
        color: var(--color-text);
    }
    
    /* ESTILO DO ÍCONE "HAMBÚRGUER" (MENU-TOGGLE) */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        width: 30px;
        height: 22px;
        position: relative; /* Para posicionar as barras do hambúrguer */
        margin: 10px auto;
    }
    
    /* As três barras do ícone */
    .menu-toggle span {
        display: block;
        background-color: var(--color-text);
        height: 3px;
        width: 100%;
        border-radius: 3px;
        position: absolute;
        left: 0;
        transition: all 0.3s ease-in-out;
    }

    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 9px; }
    .menu-toggle span:nth-child(3) { bottom: 0; }
    
    /* Animação para o ícone "X" quando o menu está aberto */
    .toggled .menu-toggle span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    .toggled .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .toggled .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    /* Outros ajustes responsivos */
    .page-header { padding: 40px 25px; margin-bottom: 30px; }
    .page-title { font-size: 2.5rem; }
    .footer-inner-container { flex-direction: column; text-align: center; }
    .carousel-container {
        perspective: 1500px;
    }
    .carousel-card {
        min-width: 260px;
        max-width: 260px;
        margin: 0 10px;
    }
    .carousel-card:not(.is-active) { transform: scale(0.8) translateZ(-200px); }
    .carousel-card.is-prev { transform: scale(0.75) rotateY(30deg) translateZ(-150px); }
    .carousel-card.is-next { transform: scale(0.75) rotateY(-30deg) translateZ(-150px); }
    
    .carousel-button.prev { left: 5px; }
    .carousel-button.next { right: 5px; }
    
}

/* --- 8. Keyframes de Animação --- */

/* Keyframe para o "pulso" do título do site */
@keyframes pulse-deboss {
  0%, 100% {
    color: rgba(60, 60, 80, 0.7);
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6), -1px -1px 1px rgba(0, 0, 0, 0.1);
  }
  50% {
    color: rgba(60, 60, 80, 0.85);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.2);
  }
}

/* Keyframe para o pop-up do título da página */
@keyframes text-pop-up-top {
  0% { transform: translateY(0); transform-origin: 50% 50%; text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7), -1px -1px 1px rgba(0, 0, 0, 0.1); }
  100% {
    transform: translateY(-50px);
    transform-origin: 50% 50%;
    color: var(--color-text);
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 0 rgba(0, 0, 0, 0.1), 0 3px 0 rgba(0, 0, 0, 0.1), 
        0 4px 0 rgba(0, 0, 0, 0.1), 0 5px 0 rgba(0, 0, 0, 0.1), 0 50px 30px rgba(31, 38, 135, 0.2);
  }
}

/* --- 9. Responsividade --- */
@media (max-width: 992px) {
    .product-main-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .main-navigation .menu-toggle { display: block; background: #eee; border: 1px solid #ccc; padding: 5px 10px; border-radius: 4px; cursor: pointer; margin: 5px auto; }
    .main-navigation ul#primary-menu { display: none; width: 100%; text-align: center; }
    .main-navigation.toggled ul#primary-menu { display: block; border-top: 1px solid #eee; margin-top: 5px; }
    .main-navigation.toggled li { margin: 0; border-bottom: 1px solid #eee; }
    .main-navigation.toggled a { padding: 10px; }
    .site-branding-container { flex-direction: column; gap: 10px; }
    .page-header { padding: 40px 25px; margin-bottom: 30px; }
    .page-title { font-size: 2.5rem; }
}
@media (max-width: 480px) {
    .product-summary .product_title { font-size: 1.8rem; }
    .product-summary .price { font-size: 2rem; }
    .page-title { font-size: 2rem; }
}