/* c:\xampp\htdocs\catalogo\catalogo_jf\dist\css\catalogo-theme.css */
@font-face {
    font-family: 'Moon Time';
    src: url('../fonts/MoonTime-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Identidade: Light Mode - Moda Íntima Premium */
    --bg-body: #FDFBFB; /* Off-white com tom leve quente */
    --bg-surface: #FFFFFF; /* Fundo dos elementos (cards, header) */
    --color-primary: #C9A96A; /* Dourado Suave Matte */
    --color-primary-hover: #B89555; /* Dourado Escuro */
    --color-primary-light: #D4B77A; /* Dourado Claro */
    --color-secondary: #000000; /* Pode ser usado para ações drásticas */
    
    --text-main: #333333; /* Grafite sofisticado para leitura */
    --text-muted: #8E8585; /* Cinza suave voltado à terra */
    --border-color: #F0EBEB; /* Borda macia */
    
    --shadow-soft: 0 16px 40px rgba(203, 163, 168, 0.08);
    --shadow-hover: 0 20px 50px rgba(203, 163, 168, 0.15);
    
    --input-bg: #F8F5F5;
    --badge-bg: #EAE0E0;
    --badge-text: #5C5254;

    /* Variáveis - Header Global (Frontend) */
    --header-bg: #FFFFFF;
    --header-text: #333333;

    /* Variáveis - Painel Administrativo (Empresa) - Light */
    --admin-sidebar-bg: #002b5e; /* Azul Petróleo Original */
    --admin-sidebar-hover: rgba(255,255,255,0.05); /* Hover no menu esquerdo */
    --admin-sidebar-ativo: rgba(255,255,255,0.1); 
    --admin-sidebar-text: #FFFFFF;
    --admin-sidebar-border: rgba(255,255,255,0.1);
    
    --table-th-bg: #002b5e; /* Cabeçalho forte no light */
    --table-th-text: #FFFFFF;
    --table-td-border: #EEEEEE;
    --table-row-hover: #FCFAFA; /* Hover super sutil na tabela clara */

    /* Controle do Ícone Sun/Moon */
    --toggle-icon: "\f186"; /* fa-moon do fontawesome */
    --toggle-text: "Modo Escuro";
}

html.dark-mode {
    /* Identidade: Dark Mode */
    --bg-body: #18181B; /* Grafite profundo/escuro */
    --bg-surface: #27272A; /* Levemente mais claro para criar relevo aos cards e header */
    --color-primary: #C9A96A; /* Dourado Suave Matte */
    --color-primary-hover: #B89555;
    --color-primary-light: #D4B77A;
    --color-secondary: #FDFBFB;
    
    --text-main: #F4F4F5; /* Off-white de claro contraste para o fundo grafite */
    --text-muted: #A1A1AA; /* Muted claro */
    --border-color: #3F3F46; /* Bordas no mundo noturno */
    
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.4);

    --input-bg: #1F1F22; /* Fundo do input mais escuro na cartela dark */
    --badge-bg: #3F3F46;
    --badge-text: #C9A96A;

    /* Variáveis - Header Global (Frontend) - Dark */
    --header-bg: #27272A;
    --header-text: #E4E4E7;

    /* Variáveis - Painel Administrativo (Empresa) - DARK */
    --admin-sidebar-bg: #121212; /* Ultrasobriedade no menu esquerdo do Admin */
    --admin-sidebar-hover: #27272A;
    --admin-sidebar-ativo: #3F3F46;
    --admin-sidebar-text: #E4E4E7;
    --admin-sidebar-border: #27272A;
    
    --table-th-bg: #1F1F22; /* Cabeçalho chumbo no dark */
    --table-th-text: #C9A96A; /* Títulos acentuados em Dourado */
    --table-td-border: #3F3F46;
    --table-row-hover: #2E2E33; /* Hover legível em dark mode sob linhas da tabela */

    --toggle-icon: "\f185"; /* fa-sun do fontawesome */
    --toggle-text: "Modo Claro";
}

/* Base resets focados em theme global */
body {
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Modificadores universais por componente para consumir variáveis globais */
.premium-bg-surface {
    background-color: var(--bg-surface) !important;
}

.premium-text-main {
    color: var(--text-main) !important;
}

.premium-text-muted {
    color: var(--text-muted) !important;
}

.premium-border {
    border-color: var(--border-color) !important;
}

/* Toggle CSS Base Component */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: var(--input-bg);
}

.theme-toggle-btn::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: var(--toggle-icon);
}

.theme-toggle-btn::after {
    content: var(--toggle-text);
}

/* Selo do Carrinho (Badge) */
.badge-carrinho {
    background-color: #FF3B30 !important; /* Vermelho vibrante premium */
    color: #FFFFFF !important;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900; /* Extra bold para legibilidade */
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    margin-left: 5px;
    border: 1px solid rgba(255,255,255,0.2); /* Sutil borda para separação */
}

/* Transições suaves para mudança de tema sem FOUC nas transições da DOM já carregada */
* {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* Tipografia Premium para a Marca */
.logo-texto-premium {
    font-family: 'Moon Time', cursive;
    color: var(--color-primary) !important;
    font-size: 4rem !important;
    font-weight: normal !important;
    margin: 0;
    padding: 0;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 900px) {
    .logo-texto-premium {
        font-size: clamp(2.2rem, 8vw, 3rem) !important;
        white-space: normal !important;
        overflow: visible !important;
    }
}

/* Badge de Destaque Global (Novo, Oferta, etc) */
.badge-novo {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 4;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    pointer-events: none;
}
/* =============================================
   Card Payment Footer — Hover Reveal Premium
   ============================================= */
.card-payment-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    padding: 4px 0;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.card-payment-footer i {
    font-size: 10px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Ativa no hover do card (desktop) */
.card:hover .card-payment-footer {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: sempre visível, sutilmente */
@media (max-width: 768px) {
    .card-payment-footer {
        opacity: 0.75;
        transform: none;
    }
}
