/* =====================================================
   LOJA 7SOL - CSS MODERNO E PROFISSIONAL
   Cores: Preto (#1a1a1a, #2d2d2d, #404040) e Amarelo (#ffd700, #ffed4e)
   ===================================================== */

/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #2d2d2d;
    line-height: 1.6;
    min-height: 100vh;
}

/* Variáveis CSS para cores - LAYOUT LEVE E AGRADÁVEL */
:root {
    --primary-black: #1a1a1a;
    --secondary-black: #2d2d2d;
    --light-black: #404040;
    --primary-yellow: #ffd700;
    --secondary-yellow: #ffed4e;
    --accent-yellow: #fff200;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --lighter-gray: #fafbfc;
    --dark-gray: #6c757d;
    --darker-gray: #495057;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-black);
}

.logo-icon {
    width: 48px;
    height: 48px;
    min-width: 40px;
    min-height: 40px;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    display: block;
    background: none;
    border-radius: 50%;
    box-shadow: none;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.logo-text span {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Navegação */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--darker-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-yellow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Botões de ação */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    color: var(--primary-black);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--darker-gray);
    border: 2px solid var(--medium-gray);
}

.btn-outline:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}

/* Contador do carrinho */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    z-index: 10;
}

/* Garantir que o botão do carrinho tenha posição relativa */
.btn-outline {
    position: relative;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--lighter-gray) 0%, var(--light-gray) 100%);
    color: var(--primary-black);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffd700" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 span {
    color: var(--primary-yellow);
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    object-fit: contain;
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Placeholder para quando a imagem não carregar */
.hero-image .placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-black);
    box-shadow: var(--shadow-hover);
    margin: 0 auto;
}

/* =====================================================
   CATEGORIAS
   ===================================================== */
.categorias {
    padding: 5rem 0;
    background: var(--lighter-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--darker-gray);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.categoria-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-yellow);
}

.categoria-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-black);
}

.categoria-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.categoria-card p {
    color: var(--darker-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

/* =====================================================
   PRODUTOS
   ===================================================== */
.produtos {
    padding: 5rem 0;
    background: var(--white);
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.produto-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.produto-imagem {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--medium-gray);
    flex-shrink: 0;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.produto-card:hover .produto-imagem img {
    transform: scale(1.05);
}

.produto-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--dark-gray);
    background: var(--light-gray);
}

.produto-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.produto-placeholder span {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

.produto-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.produto-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.produto-categoria {
    color: var(--darker-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.produto-titulo {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.produto-descricao {
    color: var(--darker-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
}

.produto-preco {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preco-atual {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
}

.preco-antigo {
    font-size: 1rem;
    color: var(--darker-gray);
    text-decoration: line-through;
    font-weight: 500;
}

.produto-acoes {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-comprar {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    color: var(--primary-black);
    padding: 0.875rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-detalhes {
    background: var(--white);
    color: var(--darker-gray);
    padding: 0.875rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-detalhes:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* =====================================================
   FILTROS E BUSCA
   ===================================================== */
.filtros {
    background: var(--lighter-gray);
    padding: 3rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.filtros-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.busca {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.busca input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.busca input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.busca-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--darker-gray);
}

.filtro-categoria {
    min-width: 200px;
}

.filtro-categoria select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filtro-categoria select:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

/* =====================================================
   PAGINAÇÃO
   ===================================================== */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagina {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--darker-gray);
    font-weight: 600;
    transition: var(--transition);
}

.pagina:hover,
.pagina.ativa {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--primary-black);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--lighter-gray);
    color: var(--darker-gray);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--light-gray);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: var(--darker-gray);
    text-decoration: none;
    line-height: 1.6;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid var(--light-gray);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

/* =====================================================
   RESPONSIVIDADE
   ===================================================== */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        gap: 2rem;
    }
    
    .hero-image img {
        max-height: 300px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .categorias-grid {
        grid-template-columns: 1fr;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .produto-imagem {
        height: 250px;
    }
    
    .produto-info {
        padding: 1.25rem;
    }
    
    .filtros-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .busca {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-image img {
        max-height: 250px;
    }
    
    .hero-image .placeholder {
        width: 250px;
        height: 250px;
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* =====================================================
   ANIMAÇÕES
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* =====================================================
   UTILITÁRIOS
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* ===== MENU HAMBURGUER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1201;
  margin-left: 1rem;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background: var(--primary-black);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1300;
    padding: 0.5rem 0;
  }
  .header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    gap: 0.5rem;
    min-height: 56px;
  }
  .logo {
    flex: 0 0 auto;
    min-width: 0;
    gap: 0.5rem;
  }
  .logo-icon {
    width: 38px;
    height: 38px;
    min-width: 32px;
    min-height: 32px;
    max-width: 44px;
    max-height: 44px;
  }
  .logo-text h1 {
    font-size: 1rem;
  }
  .logo-text span {
    font-size: 0.7rem;
  }
  .hamburger {
    flex: 0 0 auto;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    order: 2;
    width: 36px;
    height: 36px;
  }
  .header-actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0.3rem;
    order: 3;
  }
  .btn, .btn-primary, .btn-outline {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    min-width: unset;
  }
  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
    top: -6px;
    right: -6px;
  }
  .nav {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 80px;
    padding-left: 0;
    z-index: 1200;
    transform: translateX(-100vw);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  }
  .nav.nav-open {
    display: flex !important;
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .nav-menu {
    padding-left: 1rem;
  }
} 