/* ============= VARIÁVEIS GLOBAIS ============= */
:root{
  --azul-principal:#0d6efd;
  --azul-escuro:#0b3c6f;
  --azul-claro:#e6f0ff;
}

/* ============= RESET ============= */
*{margin:0;padding:0;box-sizing:border-box}

body{
  font-family:'Inter',sans-serif;
  color:#1e1e1e;
}

h1,h2,h3,h4{
  font-family:'Montserrat',sans-serif;
}

html{
  scroll-behavior: smooth;
}

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* ============= HEADER ============= */
.header{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
  position:relative;
  z-index:1001;
}

.header-flex{
  height:70px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{
  height:38px;
}

.menu a{
  margin-left:22px;
  text-decoration:none;
  color:var(--azul-escuro);
  font-weight:500;
  transition:0.3s;
}

.menu a:hover{
  color:var(--azul-principal);
}

.menu .btn{
  background:var(--azul-principal);
  color:#fff;
  padding:8px 16px;
  border-radius:6px;
}

.menu .btn:hover{
  background:#0b5ed7;
}

/* MENU HAMBÚRGUER */
.menu-toggle{
  display:none;
  font-size:1.8rem;
  cursor:pointer;
  color:var(--azul-escuro);
  font-weight:bold;
}

/* ============= MENU LATERAL MOBILE ============= */
.menu-lateral{
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  padding: 30px;
  transition: .3s;
  z-index: 9999;
}

.menu-lateral.active{
  right: 0;
}

.menu-lateral a{
  margin: 18px 0;
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--azul-escuro);
  transition:0.3s;
}

.menu-lateral a:hover{
  color:var(--azul-principal);
  padding-left:10px;
}

.menu-lateral .close{
  font-size: 2rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 30px;
  color:var(--azul-escuro);
}

.menu-lateral .close:hover{
  color:#ff4d4d;
}
/* ============= HERO COM CARROSSEL ============= */
.hero{
  position:relative;
  padding:0;
  min-height:850px;
  height:850px;
  background-size:cover;
  background-position:center center;
  overflow:hidden;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    rgba(13,110,253,.6),
    rgba(11,60,111,.75)
  );
  z-index:1;
}

.hero-content{
  position:relative;
  color:#fff;
  z-index:5;
  padding-top:300px;
  text-align:center;
}

.hero h1{
  font-size:4rem;
  margin-bottom:0;
}

.hero p{
  margin-top:16px;
  font-size:1.2rem;
}

/* ============= CARROSSEL ============= */
.hero-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index:0;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    transition: transform 0.8s ease;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(13,110,253,.45), rgba(11,60,111,.65));
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
    border-color: white;
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.9);
}
/* ============= SECTIONS ============= */
.section{
  padding:110px 0;
}

.institucional-bg,
.b2b-bg,
.contato-bg{
  background:linear-gradient(
    180deg,
    var(--azul-claro),
    #ffffff
  );
}

.section h2{
  font-size:2.6rem;
  color:var(--azul-escuro);
  margin-bottom:20px;
}

.section p{
  font-size:1.05rem;
  line-height:1.7;
  color:#555;
}

.text-large{
  font-size:1.15rem;
  color:#666;
}

/* ============= CARDS ============= */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(380px,1fr));
  gap:56px;
  margin-top:70px;
}

.card{
  background:#fff;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,.15);
  transition:0.3s;
}

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 30px 70px rgba(0,0,0,.2);
}

.card img{
  width:100%;
  aspect-ratio:1080 / 1346;
  object-fit:cover;
  object-position:50% 35%;
}

.card h3{
  padding:32px 32px 14px;
  color:var(--azul-escuro);
  font-size:1.5rem;
}

.card p{
  padding:0 32px 36px;
  color:#666;
  line-height:1.6;
}

/* ============= EMPRESAS ============= */
.empresas .card{
  text-align:center;
}

.empresa img{
  height:220px;
  object-fit:contain;
  padding:50px;
  width:100%;
}

/* ============= B2B ============= */
.b2b-box{
  text-align:center;
  max-width:800px;
  margin:0 auto;
}

.btn-catalogo{
  display:inline-block;
  margin-top:40px;
  padding:18px 40px;
  font-size:1.1rem;
  background:var(--azul-principal);
  color:#fff;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
  box-shadow:0 10px 30px rgba(13,110,253,0.3);
}

.btn-catalogo:hover{
  background:#0b5ed7;
  transform:translateY(-3px);
  box-shadow:0 15px 40px rgba(13,110,253,0.4);
}

/* ============= REVENDA ============= */
.revenda-card{
  margin-top:40px;
  background:#fff;
  padding:60px;
  border-radius:26px;
  text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,.15);
}

.revenda-card img{
  max-width:300px;
  height:auto;
}
/* ============= CONTATO ============= */
.contato-container{
  display:flex;
  justify-content:center;
}

.contato-box{
  background:#ffffff;
  padding:60px;
  border-radius:24px;
  max-width:620px;
  width:100%;
  box-shadow:0 25px 60px rgba(0,0,0,.12);
}

.contato-box h2{
  margin-bottom:10px;
}

.contato-box p{
  margin-bottom:30px;
  color:#555;
}

.formulario{
  width:100%;
  height:520px;
  border:none;
  margin-top:40px;
  border-radius:16px;
}

/* ============= FORMULÁRIO ============= */
.form-site{
  display:grid;
  gap:18px;
}

.form-site input,
.form-site textarea{
  padding:16px 18px;
  border-radius:10px;
  border:1px solid #d0d7e2;
  font-size:0.95rem;
  font-family:inherit;
  transition:0.3s;
}

.form-site input:focus,
.form-site textarea:focus{
  outline:none;
  border-color:var(--azul-principal);
  box-shadow:0 0 0 3px rgba(13,110,253,0.1);
}

.form-site textarea{
  resize:vertical;
  min-height:120px;
}

.form-site button{
  margin-top:10px;
  background:var(--azul-principal);
  color:#fff;
  padding:16px;
  border-radius:10px;
  border:none;
  font-size:1rem;
  font-weight:500;
  cursor:pointer;
  transition:.3s;
}

.form-site button:hover{
  background:#0b5ed7;
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(13,110,253,0.3);
}

/* ============= FOOTER ============= */
.footer{
  background:linear-gradient(
    135deg,
    var(--azul-escuro),
    var(--azul-principal)
  );
  color:#fff;
  padding:60px 0 30px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:40px;
  margin-bottom:30px;
}

.footer h4{
  margin-bottom:15px;
  font-size:1.2rem;
}

.footer p{
  line-height:1.8;
  opacity:0.9;
}

.footer a{
  color:#fff;
  text-decoration:none;
  transition:0.3s;
}

.footer a:hover{
  opacity:0.8;
  text-decoration:underline;
}

.footer-copy{
  text-align:center;
  opacity:.85;
  font-size:0.95rem;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,0.2);
}
/* ============= BUSCA ============= */
.busca-input{
  width:100%;
  padding:16px;
  border-radius:12px;
  border:1px solid #ccc;
  font-size:1rem;
  font-family:'Inter',sans-serif;
  transition:0.3s;
}

.busca-input:focus{
  outline:none;
  border-color:var(--azul-principal);
  box-shadow:0 0 0 3px rgba(13,110,253,0.1);
}

/* ============= ABAS DE CATEGORIAS ============= */
.abas{
  display:flex;
  gap:12px;
  margin-bottom:30px;
  flex-wrap:wrap;
}

.abas button{
  padding:10px 18px;
  border-radius:8px;
  border:1px solid #ccc;
  background:#fff;
  cursor:pointer;
  font-family:'Inter',sans-serif;
  font-weight:500;
  transition:0.3s;
}

.abas button:hover{
  background:#e6f0ff;
  border-color:var(--azul-principal);
  color:var(--azul-principal);
}

.abas button.ativo{
  background:var(--azul-principal);
  color:#fff;
  border-color:var(--azul-principal);
}

/* ============= PRODUTOS ============= */
.produtos{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}

.produto{
  padding:30px;
}

.btn-orcamento{
  display:inline-block;
  margin-top:20px;
  background:var(--azul-principal);
  color:#fff;
  padding:12px 20px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}

.btn-orcamento:hover{
  background:#0b5ed7;
  transform:translateY(-2px);
}

.btn-add-cart {
    display: block;
    width: calc(100% - 64px);
    margin: 0 32px 32px 32px;
    text-align: center;
    background: var(--azul-escuro);
    color: white;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.btn-add-cart:hover { 
    background: var(--azul-principal); 
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* ============= PAGINAÇÃO ============= */
.paginacao{
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  margin-top:40px;
  font-family:'Inter',sans-serif;
}

.paginacao button{
  padding:8px 14px;
  border-radius:6px;
  border:1px solid #ccc;
  background:#fff;
  cursor:pointer;
  transition:0.2s;
  font-weight:500;
}

.paginacao button:hover:not(:disabled){
  background:var(--azul-principal);
  color:white;
  border-color:var(--azul-principal);
}

.paginacao button:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

.paginacao button.ativo{
  background:var(--azul-principal);
  color:#fff;
}

.paginacao span{
  font-size:0.95rem;
  color:#666;
}

.paginacao input{
  width:60px;
  text-align:center;
  border:1px solid #ccc;
  border-radius:4px;
  padding:4px;
  font-family:'Inter',sans-serif;
}
/* ============= BOTÕES FLUTUANTES ============= */
.float {
    position: fixed;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    z-index: 999;
    transition: transform 0.2s;
}

.float:hover {
    transform: scale(1.1);
}

.float img {
    width: 28px;
    height: 28px;
}

.whatsapp {
    bottom: 20px;
    background: #25d366;
}

.instagram {
    bottom: 86px;
    background: #e1306c;
}

/* ============= CARRINHO FLUTUANTE ============= */
.cart-float {
    position: fixed;
    bottom: 170px;
    right: 18px;
    background: #25D366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    font-weight: bold;
    transition: transform 0.2s;
    animation: pulse-cart 2s infinite;
}

.cart-float:hover {
    transform: scale(1.1);
}

@keyframes pulse-cart {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.cart-float span:first-child {
    font-size: 28px;
}

.cart-float #cartCount {
    font-size: 14px;
    margin-top: 2px;
}

.cart-animating {
    animation: shake-cart 0.5s ease-in-out;
    background-color: #0d6efd !important;
}

@keyframes shake-cart {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    50% { transform: rotate(10deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); }
}

/* ============= MODAL DO CARRINHO ============= */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    display: none;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    display: flex;
    opacity: 1;
}

.cart-sidebar {
    background: white;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.cart-overlay.open .cart-sidebar {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.cart-header h3 {
    color: var(--azul-escuro);
    font-size: 1.5rem;
}

.cart-header .close {
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
}

.cart-header .close:hover {
    color: #333;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 12px;
    animation: slideInCart 0.3s ease;
}

@keyframes slideInCart {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.item-info h4 { 
    font-size: 0.95rem; 
    margin-bottom: 5px; 
    color: var(--azul-escuro); 
}

.item-info p { 
    font-size: 0.8rem; 
    color: #666; 
    padding: 0;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: bold;
    color: var(--azul-principal);
    transition: 0.2s;
    font-size: 16px;
}

.qty-btn:hover { 
    background: var(--azul-principal); 
    color: white; 
}

.item-controls span {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    color: #ff4d4d;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    margin-left: 8px;
    transition: 0.2s;
}

.remove-btn:hover {
    color: #cc0000;
    transform: scale(1.2);
}

.cart-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.cart-form h4 {
    margin-bottom: 15px;
    color: var(--azul-escuro);
}

.cart-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.cart-form input:focus {
    outline: none;
    border-color: var(--azul-principal);
}

.btn-finalizar {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-finalizar:hover { 
    background: #1da851; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}
/* ============= LOADING ============= */
.page-loader{
  position:fixed;
  inset:0;
  background:#fff;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:99999;
}

.spinner{
  width:50px;
  height:50px;
  border:5px solid #ddd;
  border-top:5px solid var(--azul-principal);
  border-radius:50%;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{transform:rotate(360deg);}
}

/* LOADING DE REDIRECIONAMENTO */
.redirect-loader{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.95);
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.redirect-loader p{
  margin-top:16px;
  font-weight:500;
  color:#0b3c6f;
}

/* LOADING DO CATÁLOGO */
.catalog-loader{
  position:fixed;
  inset:0;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.catalog-loader.hidden{
  display:none;
}

/* ============= CATEGORIAS CLICÁVEIS ============= */
.categoria{
  cursor:pointer;
  transition:.3s;
}

.categoria:hover{
  transform:translateY(-6px);
}
/* ============= RESPONSIVO MOBILE ============= */
@media (max-width: 768px){
  /* HERO */
  .hero{
    height:550px;
    min-height:550px;
  }

  .hero h1{
    font-size: 2.4rem;
    line-height: 1.15;
  }

  .hero p{
    font-size: 1rem;
  }

  .hero-content{
    padding-top:200px;
  }
  
  .carousel-slide {
    background-position: center center;
  }
  
  /* MENU MOBILE */
  .menu{
    display:none !important;
  }
  
  .menu-toggle{
    display:block !important;
  }
  
  /* CARDS */
  .cards{
    grid-template-columns: 1fr;
    gap:30px;
  }
  
  .section{
    padding:60px 0;
  }
  
  .section h2{
    font-size:2rem;
  }
  
  /* BOTÕES FLUTUANTES */
  .float {
    width: 56px;
    height: 56px;
  }
  
  .float img {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp {
    bottom: 20px;
  }
  
  .instagram {
    bottom: 86px;
  }
  
  .cart-float {
    width: 60px;
    height: 60px;
    bottom: 155px;
  }
  
  .cart-float span:first-child {
    font-size: 24px;
  }
  
  .cart-sidebar {
    max-width: 100%;
  }
  
  /* CONTATO */
  .contato-box{
    padding:30px;
  }
  
  /* ABAS */
  .abas{
    gap:8px;
  }
  
  .abas button{
    font-size:0.9rem;
    padding:8px 14px;
  }
}

/* ============= TABLETS ============= */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        height: 700px;
        min-height: 700px;
    }
    
    .hero-content {
        padding-top: 250px;
    }
    
    .cards{
      grid-template-columns:repeat(2, 1fr);
    }
}
