/* ===================================
   TEMPLATES DE MERCADO - CSS DINÂMICO
   =================================== */

/* ========================================
   ESTILOS BASE PARA TEMAS
   ======================================== */

/* Navbar */
.theme-navbar {
    padding: 0;
    background: var(--primary-color, white);
    box-shadow: none;
    border: none;
}

.theme-nav-menu {
    gap: 30px;
}

.theme-nav-link {
    color: #2D3436;
    font-family: var(--heading-font, 'Fredoka', sans-serif);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.theme-nav-link:hover {
    color: var(--primary-color, #FF6B9D);
    transform: scale(1.05);
}

/* Ícones do Header */
.theme-cart-icon,
.theme-user-icon {
    text-decoration: none;
    color: var(--primary-color, #FF6B9D);
    font-size: 22px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb, 255, 107, 157), 0.1);
}

.theme-cart-icon:hover,
.theme-user-icon:hover {
    background: rgba(var(--primary-color-rgb, 255, 107, 157), 0.2);
    transform: scale(1.1);
}

.theme-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color, #FF6B9D);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   INFANTIL
   ======================================== */

/* Kids Default (Rosa & Azul) */
:root[data-theme="kids_default"] {
    --primary-color: #FF6B9D;
    --secondary-color: #3498DB;
    --accent-color: #7B68EE;
    --heading-font: 'Fredoka', sans-serif;
    --body-font: 'Quicksand', sans-serif;
}

/* Kids Candy (Pastéis) */
:root[data-theme="kids_candy"] {
    --primary-color: #FF69B4;
    --secondary-color: #BA55D3;
    --accent-color: #DA70D6;
    --heading-font: 'Fredoka', sans-serif;
    --body-font: 'Quicksand', sans-serif;
}

/* Kids Rainbow (Multicolorido) */
:root[data-theme="kids_rainbow"] {
    --primary-color: #FF6B9D;
    --secondary-color: #FFD700;
    --accent-color: #9B59B6;
    --heading-font: 'Fredoka', sans-serif;
    --body-font: 'Quicksand', sans-serif;
}

/* ========================================
   TECNOLOGIA
   ======================================== */

/* Tech Modern */
:root[data-theme="tech_modern"] {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --accent-color: #1ABC9C;
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Tech Neon */
:root[data-theme="tech_neon"] {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Tech Clean */
:root[data-theme="tech_clean"] {
    --primary-color: #007AFF;
    --secondary-color: #5AC8FA;
    --accent-color: #34C759;
    --heading-font: 'SF Pro Display', -apple-system, sans-serif;
    --body-font: 'SF Pro Text', -apple-system, sans-serif;
}

/* ========================================
   INDUSTRIAL
   ======================================== */

/* AFH Engenharia */
:root[data-theme="afh_industrial"] {
    --primary-color: #B8C5D6;
    --secondary-color: #8FA3B8;
    --accent-color: #2C3E50;
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Estilo especial para menu horizontal AFH */
:root[data-theme="afh_industrial"] .theme-navbar {
    background: #B8C5D6 !important;
    padding: 15px 0 !important;
}

:root[data-theme="afh_industrial"] .theme-nav-menu {
    gap: 40px;
    justify-content: center;
}

:root[data-theme="afh_industrial"] .theme-nav-link {
    color: #2C3E50 !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

:root[data-theme="afh_industrial"] .theme-nav-link:hover {
    color: #2C3E50 !important;
    border-bottom-color: #2C3E50;
    transform: none;
}

:root[data-theme="afh_industrial"] .theme-cart-icon,
:root[data-theme="afh_industrial"] .theme-user-icon {
    color: #2C3E50;
    background: rgba(44, 62, 80, 0.1);
}

:root[data-theme="afh_industrial"] .theme-cart-icon:hover,
:root[data-theme="afh_industrial"] .theme-user-icon:hover {
    background: rgba(44, 62, 80, 0.2);
}

:root[data-theme="afh_industrial"] .theme-cart-badge {
    background: #2C3E50;
}

/* Fire Safety */
:root[data-theme="fire_safety"] {
    --primary-color: #C0392B;
    --secondary-color: #E74C3C;
    --accent-color: #F39C12;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Hydraulic Blue */
:root[data-theme="hydraulic_blue"] {
    --primary-color: #2980B9;
    --secondary-color: #3498DB;
    --accent-color: #1ABC9C;
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Construction Pro */
:root[data-theme="construction_pro"] {
    --primary-color: #E67E22;
    --secondary-color: #F39C12;
    --accent-color: #95A5A6;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Industrial Dark */
:root[data-theme="industrial_dark"] {
    --primary-color: #2C3E50;
    --secondary-color: #34495E;
    --accent-color: #F1C40F;
    --heading-font: 'Roboto Condensed', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Industrial Steel */
:root[data-theme="industrial_steel"] {
    --primary-color: #546E7A;
    --secondary-color: #78909C;
    --accent-color: #0277BD;
    --heading-font: 'Roboto Condensed', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Industrial Power */
:root[data-theme="industrial_power"] {
    --primary-color: #FFC107;
    --secondary-color: #FF9800;
    --accent-color: #212121;
    --heading-font: 'Bebas Neue', cursive;
    --body-font: 'Roboto', sans-serif;
}

/* Industrial Forge */
:root[data-theme="industrial_forge"] {
    --primary-color: #B71C1C;
    --secondary-color: #D32F2F;
    --accent-color: #424242;
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Industrial Tech */
:root[data-theme="industrial_tech"] {
    --primary-color: #1565C0;
    --secondary-color: #1976D2;
    --accent-color: #607D8B;
    --heading-font: 'Rajdhani', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Industrial Safety */
:root[data-theme="industrial_safety"] {
    --primary-color: #388E3C;
    --secondary-color: #66BB6A;
    --accent-color: #757575;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Industrial Heavy */
:root[data-theme="industrial_heavy"] {
    --primary-color: #E65100;
    --secondary-color: #FF6F00;
    --accent-color: #37474F;
    --heading-font: 'Bebas Neue', cursive;
    --body-font: 'Roboto', sans-serif;
}

/* Industrial Precision */
:root[data-theme="industrial_precision"] {
    --primary-color: #00695C;
    --secondary-color: #00897B;
    --accent-color: #90A4AE;
    --heading-font: 'Roboto Condensed', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Industrial Modern */
:root[data-theme="industrial_modern"] {
    --primary-color: #263238;
    --secondary-color: #37474F;
    --accent-color: #00BCD4;
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* ========================================
   MODA
   ======================================== */

/* Fashion Elegant */
:root[data-theme="fashion_elegant"] {
    --primary-color: #2C3E50;
    --secondary-color: #D4AF37;
    --accent-color: #C0C0C0;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

/* Fashion Casual */
:root[data-theme="fashion_casual"] {
    --primary-color: #95A5A6;
    --secondary-color: #7F8C8D;
    --accent-color: #3498DB;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Fashion Feminine */
:root[data-theme="fashion_feminine"] {
    --primary-color: #E91E63;
    --secondary-color: #9C27B0;
    --accent-color: #BA68C8;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

/* ========================================
   OUTROS NICHOS
   ======================================== */

/* Nature Organic */
:root[data-theme="nature_organic"] {
    --primary-color: #27AE60;
    --secondary-color: #16A085;
    --accent-color: #8B4513;
    --heading-font: 'Merriweather', serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Food Delicious */
:root[data-theme="food_delicious"] {
    --primary-color: #E74C3C;
    --secondary-color: #F39C12;
    --accent-color: #C0392B;
    --heading-font: 'Pacifico', cursive;
    --body-font: 'Roboto', sans-serif;
}

/* Health Medical */
:root[data-theme="health_medical"] {
    --primary-color: #3498DB;
    --secondary-color: #2ECC71;
    --accent-color: #1ABC9C;
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Sports Active */
:root[data-theme="sports_active"] {
    --primary-color: #E67E22;
    --secondary-color: #F39C12;
    --accent-color: #D35400;
    --heading-font: 'Bebas Neue', cursive;
    --body-font: 'Roboto', sans-serif;
}

/* Luxury Premium */
:root[data-theme="luxury_premium"] {
    --primary-color: #000000;
    --secondary-color: #D4AF37;
    --accent-color: #FFFFFF;
    --heading-font: 'Cinzel', serif;
    --body-font: 'Cormorant Garamond', serif;
}

/* ===================================
   APLICAÇÃO GLOBAL DOS TEMPLATES
   =================================== */

/* Fontes */
body {
    font-family: var(--body-font) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--heading-font) !important;
}

/* Botões primários */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* Botões secundários */
.btn-success {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Links */
a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: var(--primary-color);
}

a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: var(--secondary-color);
}

/* Preços */
.product-price,
.h4[style*="color"],
span[style*="color: #3498DB"] {
    color: var(--secondary-color) !important;
}

/* Badges */
.badge.bg-success {
    background-color: var(--primary-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Breadcrumb */
.breadcrumb a {
    color: var(--secondary-color) !important;
}

.breadcrumb a:hover {
    color: var(--accent-color) !important;
}

/* Cards hover */
.product-card:hover {
    border-color: var(--primary-color) !important;
}

/* Inputs focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

/* Gradientes */
[style*="linear-gradient(135deg, #FF6B9D"],
[style*="linear-gradient(135deg, #4A90E2"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Hero Carousel */
.product-info-overlay {
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.45) 0%, 
        rgba(var(--secondary-color-rgb), 0.45) 100%) !important;
}

/* Títulos com sombra */
h1, h2, h3 {
    color: var(--primary-color);
}

/* Elementos específicos por nicho */

/* Infantil - Elementos lúdicos */
:root[data-theme^="kids_"] .product-card {
    border-radius: 16px !important;
}

:root[data-theme^="kids_"] .btn {
    border-radius: 25px !important;
}

/* Tecnologia - Elementos modernos */
:root[data-theme^="tech_"] .product-card {
    border-radius: 4px !important;
}

:root[data-theme^="tech_"] .btn {
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Industrial - Elementos robustos */
:root[data-theme^="fire_"],
:root[data-theme^="hydraulic_"],
:root[data-theme^="construction_"],
:root[data-theme^="industrial_"] {
    --border-radius: 2px;
}

:root[data-theme^="fire_"] .product-card,
:root[data-theme^="hydraulic_"] .product-card,
:root[data-theme^="construction_"] .product-card,
:root[data-theme^="industrial_"] .product-card {
    border-radius: 2px !important;
    border: 2px solid #ddd;
}

:root[data-theme^="fire_"] .btn,
:root[data-theme^="hydraulic_"] .btn,
:root[data-theme^="construction_"] .btn,
:root[data-theme^="industrial_"] .btn {
    border-radius: 2px !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* Moda - Elementos elegantes */
:root[data-theme^="fashion_"] .product-card {
    border-radius: 0 !important;
}

:root[data-theme^="fashion_"] .btn {
    border-radius: 0 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

:root[data-theme="fashion_elegant"] {
    --shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Luxo - Elementos premium */
:root[data-theme="luxury_premium"] .product-card {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);
}

:root[data-theme="luxury_premium"] .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: var(--accent-color) !important;
    border: 2px solid var(--secondary-color) !important;
}
