/* 
   Style.css - Infinity Commerce
   Theme: Corporate Blue | Inspired by SaaS Platforms
*/

:root {
    /* --- PALETA AZUL PREMIUM (LIGHT MODE) --- */
    --primary: #2563eb;
    /* Azul Vibrante (Botões e Destaques) */
    --primary-hover: #1d4ed8;
    /* Azul mais escuro para hover */
    --secondary: #1e3a8a;
    /* Azul Marinho Profundo (Títulos) */

    --bg-body: #ffffff;
    --bg-light: #f0f5ff;
    /* Fundo azuladinho muito sutil para seções */
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.9);

    --text-main: #1e293b;
    /* Cinza/Azul escuro para texto */
    --text-muted: #64748b;
    /* Cinza azulado para detalhes */

    --border-color: #e2e8f0;

    /* Sombras Flutuantes (Estilo SaaS) */
    --shadow-sm: 0 4px 6px -1px rgba(37, 99, 235, 0.05);
    /* Sombra azulada leve */
    --shadow-md: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(37, 99, 235, 0.15);

    /* Layout */
    --radius-btn: 50px;
    /* Botões estilo pílula (Pill shape) */
    --radius-card: 20px;
    /* Cards bem arredondados */
    --header-height: 80px;
    --container-width: 1280px;
}

/* --- DARK MODE (Ativado via JS) --- */
body.dark-mode {
    --primary: #3b82f6;
    /* Azul mais claro para brilhar no escuro */
    --primary-hover: #60a5fa;
    --secondary: #e0f2fe;
    /* Texto quase branco azulado */

    --bg-body: #0f172a;
    /* Azul Noite Profundo (Slate 900) */
    --bg-light: #1e293b;
    /* Azul Noite Médio (Slate 800) */
    --bg-card: #1e293b;
    --bg-header: rgba(15, 23, 42, 0.9);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;

    --border-color: #334155;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s, color 0.4s;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    /* Títulos em Azul Marinho no Light */
    line-height: 1.2;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* --- COMPONENTES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    /* Centralizado estilo SaaS */
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- NAVBAR --- */
.navbar {
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    /* Logo Azul */
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary);
}

body.dark-mode .logo span {
    color: white;
}

/* --- HEADER VAREJO STYLE --- */
.main-header {
    background: var(--bg-card);
    padding: 15px 0;
    /* Header mais compacto */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    /* Gap reduzido */
}

/* Logo - Destaque Principal */
.logo {
    font-size: 2.4rem;
    /* Logo bem maior e imponente */
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1.5px;
    flex-shrink: 0;
    margin-right: 15px;
    /* Separação extra */
}

.logo span {
    color: var(--secondary);
}

body.dark-mode .logo span {
    color: white;
}

/* Busca (Compacta e Discreta) */
.search-container {
    flex: 1;
    max-width: 450px;
    /* Busca bem menor */
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 99px;
    padding: 2px 4px;
    /* Super compacta */
    border: 1px solid transparent;
    transition: all 0.3s;
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    background: var(--bg-card);
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 14px;
    /* Input reduzido */
    font-size: 0.9rem;
    /* Fonte menor */
    color: var(--text-main);
    outline: none;
}

.search-form button {
    width: 36px;
    height: 36px;
    /* Botão menor */
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1rem;
    transition: 0.2s;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

/* Ações (Ícone + Texto) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    /* Gap otimizado */
    flex-shrink: 0;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.action-item:hover {
    color: var(--primary);
}

.action-item .icon-box {
    font-size: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.action-item:hover .icon-box {
    color: var(--primary);
}

.action-item .text-box {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.action-item .text-box small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.action-item .text-box span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.action-item:hover .text-box span {
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

/* Botão Tema */
.icon-only-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.icon-only-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* --- BOTTOM NAV (Categorias) --- */
.bottom-nav {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 0;
}

.bottom-nav .container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    justify-content: center;
    /* Centraliza as categorias */
    gap: 30px;
    padding: 15px 0;
    width: 100%;
    overflow-x: auto;
    /* Scroll no mobile */
}

.nav-menu li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu li a:hover {
    color: var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .search-container {
        width: 100%;
        order: 2;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        order: 3;
    }

    .text-box {
        display: none !important;
    }

    /* Esconde texto no mobile, mostra so ícones */
    .logo {
        align-self: flex-start;
    }
}

/* --- HERO SECTION (Referência Irroba) --- */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at top right, var(--bg-light), transparent 70%);
    /* Glow azul sutil */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 85vh;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    font-size: 4rem;
    /* Bem grande */
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

/* Elemento flutuante decorativo atrás da imagem */
.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    z-index: -1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-image img {
    max-width: 100%;
    max-height: 500px;
    width: auto !important;
    /* Força largura automática */
    margin: 0 auto;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(37, 99, 235, 0.2));
    border-radius: 0;
    /* Remove borda arredondada se for ilustração transparente */
    box-shadow: none;
    /* Remove sombra de card se for ilustração */
    transform: none;
    /* Remove rotação 3D */
}

/* --- CATEGORIAS (Cards Clean) --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 300px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card .img-wrapper {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s;
}

.category-card:hover .img-wrapper {
    transform: scale(1.1);
}

.cat-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

body.dark-mode .cat-content {
    background: rgba(30, 41, 59, 0.95);
}

.cat-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

body.dark-mode .cat-content h3 {
    color: white;
}

/* --- PRODUTOS (Cards Estilo Dashboard) --- */
.products {
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 15px;
    transition: all 0.3s;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.product-image {
    background: var(--bg-light);
    border-radius: 15px;
    height: 250px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info h3 a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.product-info h3 a:hover {
    color: var(--primary);
}

.category-tag {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-top: 10px;
}

/* --- NEWSLETTER --- */
.newsletter {
    background: var(--text-main);
    /* Fundo escuro/azulão */
    padding: 80px 0;
    color: white;
    text-align: center;
    border-radius: 0;
}

.newsletter h2 {
    color: white !important;
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input {
    flex: 1;
    border: none;
    background: none;
    color: white;
    padding: 0 20px;
    outline: none;
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: bold;
}

/* --- FOOTER --- */
.footer {
    background: var(--bg-body);
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* MOBILIDADE */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}