/* Configurações Globais de Tipografia [cite: 920-924] */
:root {
    --primary-green: #1a7a6d; /* Verde institucional Alum  */
    --secondary-gray: #BDC3C4; /* Cinza claro das imagens de paleta */
    --text-dark: #1F2937;
    --text-light: #6B7280;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif; /* Fonte elegante para títulos [cite: 923] */
}

/* Ajustes Finos de Layout (Base 44 Style) */

/* Hero Section [cite: 610-617] */
.hero-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

/* Cards de Produto [cite: 670-674] */
.product-card-shadow {
    transition: all 0.3s ease;
}

.product-card-shadow:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Efeito para produtos esgotados */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Imagens do Catálogo [cite: 727-729] */
.category-overlay {
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.category-card:hover .category-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Scrollbar para o Feed do Instagram [cite: 866-867] */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Botão WhatsApp Flutuante [cite: 1200] */
.whatsapp-float {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #20bd5a;
}

/* Utilitários de Texto */
.tracking-widest-custom {
    letter-spacing: 0.3em;
}

.tracking-wider-custom {
    letter-spacing: 0.15em;
}

/* Estilo elegante para ícones Lucide */
.lucide {
    stroke-width: 1.5px;
}

#cart-count {
    transform: translate(25%, -25%); /* Move o número levemente para fora do ícone */
    pointer-events: none; /* Evita que o número atrapalhe o clique no ícone */
}

/* Títulos dos Produtos nos Grids (Catálogo e Vitrines) */
#grid-produtos h3, 
#novidades h3, 
#mais-vendidos h3 {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.15em;
}

.zoom-container img {
    /* Impede que a imagem receba eventos de mouse para não bugar o cálculo das coordenadas */
    pointer-events: none; 
}

.zoom-container.active img {
    /* Define o nível do zoom (2x) */
    transform: scale(2.5); 
}

/* Container principal da galeria */
.product-gallery-layout {
    display: grid;
    grid-template-columns: 80px 1fr; /* Miniaturas à esquerda (80px) e foto grande */
    gap: 20px;
}

/* Coluna de miniaturas */
.thumbnails-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-item {
    aspect-ratio: 1 / 1;
    width: 100%;
    cursor: pointer;
    border: 1px solid #f3f4f6; /* gray-100 */
    transition: all 0.3s ease;
    overflow: hidden;
    background: #f9fafb; /* gray-50 */
}

.thumb-item:hover, .thumb-item.active {
    border-color: #1a7a6d; /* alum-green */
    opacity: 0.8;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container da Foto Principal com Zoom */
.main-image-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Proporção elegante para joias */
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.main-image-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out; /* Suavidade no zoom */
    transform-origin: center;
}

/* Estado de Zoom Ativo */
.main-image-viewport.zoomed img {
    transform: scale(2.2);
    cursor: crosshair;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .product-gallery-layout {
        grid-template-columns: 1fr; /* Empilha no mobile */
    }
    .thumbnails-column {
        flex-direction: row; /* Miniaturas horizontais no mobile */
        order: 2;
    }
    .main-image-viewport {
        order: 1;
    }
}