@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f9f9f9;
}

/* --- CABEÇALHO --- */
header {
  position: relative;
  top: 0;
  width: 100%;
}

.menu {
  background: rgb(255, 255, 255);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4%;
}

.logo img {
  width: 100px;
  height: 60px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  color: #11213c;
}

.menu nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  bottom: -3px;
  left: 0;
  height: 2px;
  background: #eb1d25;
  transform: scaleX(0);
  transition: transform .8s;
  transform-origin: right;
}

.menu nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu .navcart {
  position: relative;
  margin-left: 20px;
  background-color: #11213c;
  padding: 6px;
  border-radius: 30%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

.navcart span {
  background: #04dc04;
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  position: absolute;
  right: -5px;
  top: -5px;
}

/* --- PESQUISA --- */
.search-container {
  width: 100%;
  max-width: 1000px;
  padding: 0 30px;
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.search-bar {
  width: 100%;
  max-width: 550px;
  display: flex;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(17, 33, 60, 0.3);
}

.search-input {
  flex-grow: 1;
  outline: none;
  padding: 10px;
  font-size: 13px;
  color: #333;
  background: transparent;
  border: none;
}

.search-button {
  border: none;
  background-color: #11213c;
  color: white;
  padding: 0 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #c20518;
}

/* --- MENU CATEGORIAS --- */
.menu-categorias {
  width: 100%;
  background-color: #ffffff; 
  padding: 2px 4%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}


.menu-categorias .dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.mobile-menu-panel, .mobile-menu-button { display: none; }

.categorias-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.categorias-nav a {
  position: relative;
  color: #11213c;
  font-size: 13px;
  font-weight: 400;
  padding: 10px 15px;
  text-decoration: none;
}

.categorias-nav a:hover { color: #eb1d25; }

.menu-categorias .dropdown { 
    position: relative; 
    display: inline-block; 
    
}
.menu-categorias .dropdown-toggle {
  background: none;
  border: none; 
  color: #c20518; 
  font-weight: bold; 
  font-size: 13px;
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  padding: 8px 0;
}
.menu-categorias .dropdown-menu {
  display: none; 
  position: absolute; 
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15); 
  border-radius: 6px; 
  z-index: 1000;
  margin-top: 2px;
  border: 1px solid #ddd;
  padding: 0;
}
.menu-categorias .dropdown-item {
  color: #333; padding: 12px 16px; text-decoration: none; display: block; font-size: 15px;
}
.menu-categorias .dropdown-item:hover { background-color: #f5f5f5; }
.menu-categorias .dropdown:hover .dropdown-menu { display: block; }

/* --- BANNER E SEÇÕES --- */
.banner {
  margin-bottom: 60px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.carousel-item { height: 510px; }
.carousel-item img { height: 100%; width: 100%; object-fit: cover; }

.categorias {
  max-width: 966px;
  margin-left: auto;
  margin-right: auto;
}
.cabeçalho {
    display: flex; 
justify-content: space-between;
align-items: center; 
    
}

.cabeçalho h1 {
    font-size: 1.3rem; 
    font-weight: 600; 
    
}
.categorias-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, auto));
  gap: 1rem;
  margin-top: 1rem;
}
.categorias-container .div {
  display: flex; flex-direction: column; align-items: center; padding: 35px;
  border-radius: 0.5rem; transition: transform 0.3s ease; background-color: #fef4ea;
}
.categorias-container .div:hover { transform: translateY(-5px); }
.categorias-container div img { width: 100%; height: 100px; object-fit: contain; }
.categorias-container .div h2 { font-size: 0.9rem; font-weight: 550; margin-top: 10px; }

/* --- VITRINE PRODUTOS --- */
.secao-titulo {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px; 
    margin: 40px auto 10px auto; 
    padding: 0 20px;
}

.secao-titulo h2 {
    font-size: 1.5rem; 
    font-weight: 700;
    color: #11213c;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.secao-titulo a {
    color: #eb1d25; 
    text-decoration: none; 
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-btns {
    display: flex;
    gap: 10px;
}

.nav-arrow {
    background: transparent;
    border:1px solid #eb1d25;
    color: #eb1d25;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.nav-arrow:hover {
    background-color: #eb1d25; 
    color: #fff; 
    border-color: #eb1d25;
}

.carrossel-produtos {
    display: flex; 
    overflow-x: auto; 
    gap: 15px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 10px 20px 40px 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carrossel-produtos::-webkit-scrollbar { display: none; }

.produtos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- CARD PRODUTO --- */
.box {
    min-width: 230px; 
    max-width: 230px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex; 
    flex-direction: column;
    transition: transform 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.box .img-container {
    position: relative; 
    width: 100%;
    margin-bottom: 15px; 
    display: flex;
    justify-content: center;
}

.box .img-container img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    object-position: center;
}

.box span {
    font-weight: 300; font-size: 0.8rem; color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.box h2 {
    font-size: 0.85rem;  
    font-weight: 400; 
    color: #333;
    margin-bottom: 10px; line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
 
}

.box .preço {
    font-size: 1rem;     
    font-weight: 600;    
    color: #11213c;
    margin-top: auto;
}
.box .preço span { font-size: 12px; color: #888; font-weight: normal; }

.box .desconto {
    position: absolute; 
    top: 0; 
    left: 0;
    background-color: #eb1d25; 
    color: white; 
    padding: 4px 12px;
    font-size: 12px; 
    font-weight: bold;
    border-radius: 0 0 4px 0;
    z-index: 5; 
}

.secao-titulo h2 {
    font-weight: 550; 
    font-size:20px;
}

.secao-titulo, 
.carrossel-produtos, 
.produtos-container {
    max-width: 90% !important; 
}


.cart.card-add-btn {
    background-color: #11213c; 
    position: absolute;
    right: 0; 
    bottom: 0;
    border-radius: 50%; 
    height: 35px; 
    width: 35px;  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: all 0.3s ease; 
    z-index: 6;
    cursor: pointer;
}

.cart.card-add-btn i { color: #ffffff; font-size: 20px; }
.cart.card-add-btn.disponivel:hover { background-color: #c70101; transform: scale(1.1); }

.card-quantity-selector {
    display: none;
    width: 110px; 
    height: 35px;
    border: 1px solid #e0e0e0; 
    border-radius: 20px; 
    background-color: #fff; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute; right: 0; bottom: 0;
    align-items: center; justify-content: space-between;
    padding: 0 5px;
    z-index: 5; 
}

.card-quantity-selector .qty-value { font-size: 14px; font-weight: bold; color: #11213c; }
.card-quantity-selector .qty-btn {
    background: none; border: none; cursor: pointer;
    padding: 5px; display: flex; align-items: center; justify-content: center;
}
.card-quantity-selector .qty-btn i { font-size: 18px; color: #11213c; }
.card-quantity-selector .qty-btn:hover i { color: #eb1d25; }

.box.in-cart .card-add-btn { display: none; }
.box.in-cart .card-quantity-selector { display: flex; }

.quick-view-btn {
    position: absolute; 
    top: 10px; 
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none; 
    border-radius: 50%;
    width: 35px; 
    height: 35px;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease; opacity: 0; z-index: 7; 
}

.box .img-container:hover .quick-view-btn { opacity: 1; }
.quick-view-btn:hover { background-color: #fff; transform: scale(1.1); }
.quick-view-btn i { font-size: 20px; color: #333; }


.sidebar {
  width: 360px;
  height: 100vh; 
  position: fixed;
  top: 0;
  right: -400px;
  background-color: #ffffff;
  box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 3000;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  right: 0;
}

.sidebar-close {
  position: absolute;
  right: 15px;
  top: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #11213c;
  z-index: 10;
}


.cart-menu {
  display: flex;
  flex-direction: column;
  flex: 1; 
  min-height: 0; 
  margin-bottom: 10px;
}

.cart-menu h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #11213c;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  text-align: center;
  flex-shrink: 0; 
}


.cart-item, .cart-items, .cart-content {
    flex: 1; 
    overflow-y: auto; 
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.cart-item::-webkit-scrollbar, .cart-items::-webkit-scrollbar { width: 5px; }
.cart-item::-webkit-scrollbar-track, .cart-items::-webkit-scrollbar-track { background: #f1f1f1; }
.cart-item::-webkit-scrollbar-thumb, .cart-items::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }


.cart-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0; 
}


.cart-img { width: 70px; height: 70px; object-fit: contain; border: 1px solid #eee; padding: 5px; border-radius: 5px;}
.detail-box { display: flex; flex-direction: column; flex: 1; gap: 4px; }
.cart-product-title { font-size: 13px; font-weight: 600; text-transform: uppercase; color: #11213c; }
.cart-price { font-weight: 700; color: #11213c; font-size: 14px; }

.cart-quantity { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; width: max-content; }
.cart-quantity button { background: none; border: none; padding: 2px 8px; cursor: pointer; font-weight: bold; }
.cart-quantity .cart-quantity-input { width: 30px; text-align: center; border: none; outline: none; }
.cart-remove { color: #eb1d25; cursor: pointer; border: none; background: none; font-size: 20px; margin-left: auto; }


.sidebar-footer {
  margin-top: auto; 
  padding-top: 20px;
  border-top: 1px solid #eee;
  background-color: #fff;
  flex-shrink: 0;
}

.total {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 15px; 
  font-weight: 700; 
  font-size: 1.1rem; 
  color: #11213c;
}

.compra-btn {
    width: 100%; 
    padding: 15px; 
    background: #27ae60; 
    color: white;
    border: none; 
    border-radius: 5px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 1rem;
}

.quick-view-overlay {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000; 
    justify-content: center; 
    align-items: center;
}
.quick-view-overlay.active { display: flex; }

.quick-view-modal {
    background-color: #fff; 
    border-radius: 8px;
    width: 90%; 
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; 
    padding: 30px;
    transform: scale(0.9); 
    opacity: 0; 
    transition: all 0.3s ease;
    display: flex; gap: 30px;
}
.quick-view-overlay.active .quick-view-modal { transform: scale(1); opacity: 1; }

.quick-view-close {
    position: absolute; 
    top: 10px; 
    right: 15px;
    font-size: 30px; 
    font-weight: bold; 
    color: #888;
    background: none;
    border: none; 
    cursor: pointer;
}
.quick-view-close:hover { 
    color: #333; 
    
}

.quick-view-content { display: flex; 
gap: 20px; 
width: 100%; 
    
}

.quick-view-content img {
    width: 50%; 
    max-width: 350px; 
    height: 350px;          
    object-fit: contain; 
    object-position: center; 
    border: 1px solid #f0f0f0; 
    border-radius: 4px; 
    background-color: #fff; 
}
.quick-view-details { 
    flex: 1; 
display: flex; 
flex-direction: column; 
justify-content: center; 
}

.quick-view-details h2 { font-size: 24px; font-weight: 600; color: #333; margin-bottom: 10px; }
.quick-view-details h3 { font-size: 28px; font-weight: bold; color: #d9534f; margin-bottom: 20px; }
.quick-view-details h3 span { font-size: 16px; color: #888; font-weight: normal; }

.quick-view-details .add-to-cart-btn {
    background-color: #11213c; 
    color: #fff; 
    border: none;
    padding: 12px 25px; 
    font-size: 16px; 
    font-weight: bold;
    border-radius: 4px; 
    cursor: pointer; 
    transition: background-color 0.3s;
    width: fit-content;
}
.quick-view-details .add-to-cart-btn:hover { 
    background-color: #2c3e50; 
    
}

.rodape {
  background-color: whitesmoke; 
  width: 100%; 
  padding: 25px 0;
  margin-top: 80px; 
  color: #11213c;
}

.rodape-container { 
    max-width: 1170px; 
    margin: auto; 
    padding: 0 15px; 
    
}
.rodape-row { 
    margin-top: 20px; 
display: flex; 
flex-wrap: wrap; gap: 20px; 
margin-bottom: 30px;
}

.rodape-col { 
    width: 25%; 
min-width: 200px; 
    
}

.rodape-col h4 {
  font-size: 15px; 
  text-transform: capitalize; 
  margin-bottom: 30px;
  font-weight: 500; 
  position: relative;
}
.rodape-col h4::before {
  content: ''; 
  position: absolute; 
  left: 0; 
  bottom: -10px;
  background-color: #eb1d25; 
  height: 3px; 
  width: 50px;
}
.rodape-col .linha a {
  color: #11213c; 
  font-size: 15px; 
  text-decoration: none; 
  display: block;
  margin-bottom: 10px; 
  transition: all 0.3s ease;
}
.rodape-col .linha a:hover { 
    color: #425b80; 
    padding-left: 8px; }
    
.footer-info {
  text-align: center; 
  font-size: 14px; 
  margin-top: 20px;
  border-top: 1px solid #ddd; 
  padding-top: 20px;
}


.rodape-col.social-links a i { 
    font-size: 30px;
    color: #ffffff !important; 
    margin-right: 10px; 
}

/* --- CORREÇÃO FINALISSIMA RODAPÉ (Redes Sociais) --- */

.rodape-col.social-links {
    display: block !important;
}

.rodape-col.social-links h4 {
    display: block !important;
    width: 100%;
    margin-bottom: 20px !important;
}

/* Configuração da "Bolinha" (O link <a>) */
.rodape-col.social-links a {
    display: inline-flex !important; /* Cria a caixa flexível */
    justify-content: center;         /* Centraliza horizontalmente */
    align-items: center;             /* Centraliza verticalmente */
    width: 45px;                     /* Largura fixa */
    height: 45px;                    /* Altura fixa igual à largura */
    border-radius: 50%;              /* Faz ficar redondo */
    background-color: #2c3e50;       /* Cor de fundo da bolinha (ajuste se quiser outra) */
    margin-right: 15px;              /* Espaço entre as bolinhas */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.rodape-col.social-links a:hover {
    transform: scale(1.1); /* Efeito de zoom ao passar o mouse */
    background-color: #eb1d25; /* Muda de cor ao passar o mouse (opcional) */
}

/* Configuração do Ícone dentro da bolinha */
.rodape-col.social-links a i {
    color: #ffffff !important;
    font-size: 24px !important; /* Tamanho do ícone ajustado */
    margin-right: 0 !important; /* REMOVE A MARGEM que estava a empurrar o ícone! */
    display: block;
}



@media (max-width: 768px) {
  
  .menu nav { display: none; }

  /* Exibe o botão do menu mobile */
  .mobile-menu-button { display: block; border:none; background:transparent; font-size:24px; color:#11213c; }
  
  /* Ajuste do Cabeçalho para permitir que a pesquisa desça para a linha de baixo */
  .menu {
    flex-wrap: wrap; /* Permite quebrar linha */
    gap: 10px; /* Espaço entre as linhas */
    padding-bottom: 15px; /* Espaço extra embaixo */
  }

 
  .search-container {
    display: flex; 
    width: 100%;   
    padding: 0;    
    order: 3;      
    margin-top: 5px;
  }

  .search-bar {
    max-width: 100%; 
  }

 
  .box { min-width: 170px; max-width: 170px; padding: 10px; }
  .box .img-container { height: 120px; }
  .box h2 { font-size: 13px; margin-bottom: 30px; }
  .cart.card-add-btn { width: 32px; height: 32px; bottom: 10px; right: 10px; }
  .card-quantity-selector { width: 90px; height: 32px; bottom: 10px; right: 10px; }
  .box .preço { font-size: 16px; bottom: 10px; left: 10px; }
  
  .secao-titulo h2 { font-size: 1.2rem; }
  .nav-wrapper { width: 100%; justify-content: space-between; }
  .sidebar { width: 85%; }
  
  /* Ajuste do Modal Quick View no celular */
  .quick-view-content { flex-direction: column; align-items: center; }
  .quick-view-content img { width: 100%; height: 200px; }
}