/* ================== RESET E FONT ================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  overflow-x: hidden;
}

:root {
  --azul-superled: #191069;
  --azul-escuro: #0f0940;
  --dourado-superled: #d8ad52;
  --dourado-hover: #c59b43;
  --fundo-claro: #f8f9fa;
  --texto-padrao: #333333;
}

/* ================== CABEÇALHO ================== */
.header-superled {
  background-color: var(--azul-superled) !important;
  border-bottom: 2px solid var(--dourado-superled) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  /* ⬇️ MÁGICA AQUI: Z-index 1300 garante que os dropdowns do topo (Notificações, Perfil) cubram a barra cinza */
  z-index: 1300 !important; 
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  border-radius: 5px;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

/* ================== MENU PRINCIPAL ================== */
.menu-principal {
  display: flex;
  gap: 25px;
}

.menu-principal a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(12px, 1.5vw, 15px); 
  letter-spacing: 0.2px;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.menu-principal a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--dourado-superled);
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

.menu-principal a:hover {
  color: var(--dourado-superled);
}

.menu-principal a:hover::after {
  width: 100%;
}

.login-cadastro {
  display: flex;
  align-items: center;
  font-size: clamp(11px, 1.5vw, 10px); 
}

.login-cadastro a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.login-cadastro a:hover {
  color: var(--dourado-superled);
}

.login-cadastro .separador {
  margin: 0 5px;
  color: #ccc;
  font-weight: 300;
}

.submenu-produto-link {
  display: block;
  padding: 6px 10px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

/* ===== SUBMENU DE CATEGORIAS (A barra cinza) ===== */
.submenu-container {
  width: 100%;
  background: #f1f1f1;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
  padding: 10px 0;
  
  position: relative !important; 
  /* Z-index 1200: Fica ABAIXO do Header (1300) mas ACIMA da busca (1050) */
  z-index: 1200 !important; 
  overflow: visible !important; 
}

.submenu {
  display: flex;
  gap: 10px;            
  padding: 0 20px;
  margin: 0;
  list-style: none;
  align-items: center;
  width: 100%;
  flex-wrap: wrap; 
  justify-content: center;
  overflow: visible !important; 
}

.submenu-item {
  flex: 1;       
  white-space: nowrap;  
  text-align: center;
}

.submenu-item a {
  display: block;
  padding: 12px 0px;
  border-radius: 50px;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(11px, 1.5vw, 15px); 
  line-height: 1;
}

.submenu-item a:hover {
  background: var(--dourado-superled);
  color: #000;
}

/* ==================== CAIXA DE BUSCA E SUGESTÕES ==================== */
.search-box {
  margin-top: 10px;
  position: relative;
  z-index: 1050; /* Fica abaixo do dropdown de categorias e do header */
}

.search-box .form-control {
  height: 55px;
  font-size: 1rem;
  border-radius: 50px 0 0 50px;
  box-shadow: none;
}

.search-box .form-control:focus {
  box-shadow: none;
  border: none;
}

.search-box button {
  border-radius: 0 50px 50px 0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box button:hover {
  background: var(--dourado-superled);
  color: #fff;
  transform: scale(1.05);
}

.search-bar input {
  border-radius: 50px 0 0 50px;
  padding-left: 15px;
  border: 2px solid var(--dourado-superled);
}
.search-bar button {
  border-radius: 0 50px 50px 0;
  border: 2px solid var(--dourado-superled);
}
.search-bar input:focus {
  box-shadow: 0 0 8px rgba(216, 173, 82, 0.5);
  outline: none;
}

#sugestoes-home, #sugestoes {
  z-index: 1060 !important; 
}

#sugestoes .list-group-item {
  cursor: pointer;
  transition: background 0.2s;
}
#sugestoes .list-group-item:hover {
  background-color: #f8f9fa;
}


/* ==================== PRODUTOS DROPDOWN (O Menu Suspenso de Categorias) ==================== */
#produtos-container {
  display: none;
  position: fixed !important; 
  left: 0 !important;
  width: 100% !important;
  background: #fff;
  padding: 20px 25px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important; 
  border-top: 3px solid var(--azul-superled); 
  z-index: 2000 !important; 
}

#produtos-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center; 
}

#produtos-container ul li {
  background: #f4f4f4;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: default;
  flex: 0 1 auto; 
  text-align: center;
  font-size: clamp(11px, 1.5vw, 13px); 
  transition: 0.3s;
}

.ver-mais-produtos {
  display: block;
  margin: 20px auto 0 auto; 
  padding: 10px 25px;
  background: var(--dourado-superled);
  color: var(--azul-superled);
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ver-mais-produtos:hover {
  background: var(--azul-superled);
  color: #fff;
  transform: translateY(-2px);
  cursor: pointer;
}

#produtos-container li:hover {
  background: var(--azul-claro);
  transform: translateY(-2px);
  color: var(--azul-superled);
  cursor: pointer;
}

.submenu-toggle {
  display: none; 
  font-size: 20px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

/* ================== SLIDER BOOTSTRAP ================== */
#carouselBanners {
  width: 83%;        
  max-width: 95%;
  margin: 30px auto;   
}

#carouselBanners .carousel-item {
  height: 400px; 
  overflow: hidden;
}

#carouselBanners .carousel-item img {
  width: 100%;
  height: 90%;        
  border-radius: 10px;
}

.carousel-caption .btn {
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s;
  width: 35%;
  height: 30%;
  font-size: clamp(11px, 1.5vw, 13px); 
  text-transform: uppercase;
  background: rgba(0,0,0,0.3); 
   border: 0;
   color: #f8f8f8;
}

.carousel-caption .btn:hover {
  transform: translateY(-2px);
  background: #222;       
  color: #fff;         
  border: 1px solid #222; 
}

/* ==============================================
   SETAS DO CARROSSEL
   ============================================== */
.carousel-control-prev, .carousel-control-next {
    z-index: 10 !important; 
    width: 5%;
    opacity: 0.6 !important;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1 !important;
}

.custom-offer-icon {
    background-color: transparent !important; 
    border: none !important; 
    box-shadow: none !important;
    width: 40px !important;
    height: 40px !important;
    filter: none !important;
    transition: transform 0.2s ease;
}

.custom-offer-icon:hover {
    background-color: transparent !important;
    transform: scale(1.2);
}

.carousel-control-prev-icon.custom-offer-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cccccc'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2)) !important; 
}
.carousel-control-next-icon.custom-offer-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cccccc'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2)) !important;
}

#carouselBanners .carousel-indicators {
  bottom: 25px; 
}

#carouselBanners .carousel-indicators [data-bs-target] {
  background-color: grey; 
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

#carouselBanners .carousel-indicators .active {
  background-color: var(--dourado-superled);
}

/* ================== CARDS DE PRODUTOS E TÍTULOS ================== */
.payment-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.payment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.payment-card img {
  transition: transform 0.3s ease;
}
.payment-card:hover img {
  transform: scale(1.15);
}

.card img {
  transition: transform 0.2s ease-in-out;
}
.card:hover img {
  transform: scale(1.1);
}

.card svg {
  transition: transform 0.3s ease-in-out;
}
.card:hover svg {
  transform: scale(1.15);
}

.card {
  display: flex;
  flex-direction: column;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
}
.card-body .btn {
  margin-top: auto;          
}

/* CONSERTO DEFINITIVO DOS TÍTULOS CORTADOS NO MOBILE E DESKTOP */
.card-title, .card-body h5, .card-body h6, .card-title-home {
  line-height: 1.2em !important; 
  height: 2.4em !important;      
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important; /* ⬅️ ADICIONE ESTA LINHA PARA O SEU EDITOR FICAR FELIZ */
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 10px;
}


/* ================== RODAPÉ ================== */
footer {
  background: linear-gradient(180deg, var(--azul-superled) 0%, #000 100%) !important;
  color: #fff;
  text-align: center;
  padding: 50px 20px; 
  margin-top: 40px;
  border-top: 5px solid var(--dourado-superled) !important; 
  box-shadow: 0 -10px 20px rgba(0,0,0,0.2); 
}

.footer h5 {
  margin-bottom: 20px;
  color: var(--dourado-superled); 
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer p {
  color: #eee; 
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-link {
  color: #eee; 
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
  padding: 3px 0;
}
.footer-link:hover {
  color: var(--dourado-superled); 
  transform: translateX(5px); 
}

.social-icon {
  width: 42px;
  height: 42px;
  background: transparent !important;
  border: 2px solid var(--dourado-superled) !important; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--dourado-superled) !important; 
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(216, 173, 82, 0.2); 
}
.social-icon:hover {
  transform: scale(1.1) translateY(-3px);
  background: var(--dourado-superled) !important; 
  color: var(--azul-superled) !important; 
  box-shadow: 0 5px 15px rgba(216, 173, 82, 0.5); 
}

.footer .border-top p {
    color: #ccc;
    font-size: 0.8rem;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #444;
  font-weight: bold;
  font-size: 1.2rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid var(--dourado-superled);
  margin: 0 1rem;
}

/* ================== RESPONSIVO MOBILE ================== */
@media (max-width: 900px) {
  .header-superled {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .menu-principal {
    display: flex;
    gap: 15px;
    margin-right: 0px;
    text-align: center;
    justify-content: center;
    flex: 2;
  }

  #usuarioMenu span {
    display: none !important;
    visibility: hidden !important;
  }

  #usuarioMenu img {
    margin-right: 0 !important;
    width: 42px !important;
    height: 42px !important;
  }

  .submenu-toggle {
    display: block; 
    font-size: 17px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
  }

  .submenu-toggle:hover {
    color: var(--dourado-superled);
  }

  .submenu-container {
    display: none; 
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
  }

  .submenu {
    flex-direction: column;  
    gap: 0;
    padding: 0 10px;
    white-space: normal;
  }

  .submenu-item {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #eee;
  }

  .submenu-item a {
    display: block;
    padding: 12px 16px;
    border-radius: 0;
    text-align: left;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .carousel-control-prev-icon, .carousel-control-next-icon {
      width: 30px !important;
      height: 30px !important;
  }
}

/* ================== LIMPEZA DE EFEITOS ================== */
.submenu-toggle, .submenu-toggle.btn, .submenu-toggle.btn-outline-primary {
  -webkit-tap-highlight-color: transparent; 
  -webkit-appearance: none;                  
  appearance: none;
  background-color: transparent !important; 
  border-color: transparent !important;     
  outline: none !important;
  box-shadow: none !important;              
}

.submenu-toggle:focus, .submenu-toggle:active, .submenu-toggle:focus-visible,
.submenu-toggle.btn:focus, .submenu-toggle.btn-outline-primary:focus,
.submenu-toggle.btn:active, .submenu-toggle.btn-outline-primary:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

.submenu-toggle::-moz-focus-inner { border: 0; }

.card img, .card-img-top, #main-media-container img {
  transition: none !important;
  transform: none !important;
}

.card:hover img, .card-img-top:hover, #main-media-container img:hover {
  transform: none !important;
  scale: 1 !important;
}