/* ================================
   FONT & BACKGROUND
================================= */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fafafa;
  margin: 0;
  padding: 0;
}

/* ================================
   TOP BAR
================================= */
.top-bar-wrapper {
  background-color: #001881;
  font-family: Arial, sans-serif;
  padding: 10px 0;
  font-size: 0.9rem;
  text-align: center;
}

.top-links a {
  position: relative;
  color: white;
  text-decoration: none;
  padding: 0 10px;
}

/* Linha branca quase transparente entre os links */
.top-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.top-links a:hover {
  text-decoration: underline;
}

/* ================================
   HEADER
================================= */
.header {
  background-color: #001d7e;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo {
  max-height: 50px;
  height: auto;
  width: auto;
}

/* ================================
   BUTTONS
================================= */
.login-btn,
.signup-btn {
  border: none;
  border-radius: 5px;
  color: white;
  padding: 8px 15px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 600;
  font-size: 1rem;
}

.login-btn {
  background-color: #0060c0;
}

.login-btn:hover {
  background-color: #0051a3;
}

.signup-btn {
  background-color: #004ca3;
}

.signup-btn:hover {
  background-color: #003d80;
}

/* ================================
   DEPARTMENTS MENU
================================= */
/* Menu horizontal full width */
.departments {
  width: 100%;
  background-color: #003d80;
  padding: 0.5rem 0;
  /* py-2 */
  color: white;
  box-sizing: border-box;
}

/* Container flex, alinhando itens no centro, espaçamento entre */
.departments .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* espaço entre os itens */
  flex-wrap: nowrap;
}

/* ================================
   CAROUSEL
================================= */
.hero-carousel .carousel-item img {
  height: 350px;
  object-fit: cover;
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* ================================
   CATEGORY CARDS
================================= */
.category-icons .card {
  transition: transform 0.3s;
  border: none;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.category-icons .card:hover {
  transform: translateY(-5px);
}

/* ================================
   PRODUCT CARDS
================================= */
.product-card {
  border: none;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: scale(1.02);
}

/* ================================
   FOOTER
================================= */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #202f46;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  user-select: none;
}


/* ================================
   SEARCH BOX
================================= */
.search-box {
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.search-input {
  border: none;
  border-radius: 30px 0 0 30px;
  padding: 8px 15px;
  flex-grow: 1;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  border-radius: 0 30px 30px 0;
  padding: 8px 15px;
  cursor: pointer;
  border: none;
  background-color: #0070dd;
  color: white;
  font-weight: 600;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: #005bb5;
}

/* ================================
   NAV ICON
================================= */
.nav-icon {
  font-size: 1.3rem;
  margin-right: 5px;
  vertical-align: middle;
  user-select: none;
}

/* ================================
   RESPONSIVE
================================= */
/* Mobile: esconde menu departamentos e ajusta layout */
@media (max-width: 767.98px) {
  nav.departments {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  /* Centraliza logo no header mobile */
  .header .container {
    justify-content: flex-start !important;
  }

  .header img.logo {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* Desktop: esconde itens mobile */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

.search-wrapper {
  max-width: 600px;
}

.search-input {
  border-radius: 30px;
  padding: 8px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  flex-grow: 1;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #0052b8;
  box-shadow: 0 0 5px rgba(0, 82, 184, 0.5);
}

.search-btn {
  border: none;
  background-color: #001881;
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: #0052b8;
}

/* Espaçamento à esquerda do botão */
.ms-2 {
  margin-left: 0.5rem !important;
}

.product-carousel {
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.product-carousel::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari e Opera */
}

.product-card {
  min-width: 250px;
  flex: 0 0 auto;
  margin-right: 15px;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.scroll-btn.left {
  left: 15px;
  /* Aumente ou diminua para mover mais pra dentro */
}

.scroll-btn.right {
  right: 15px;
  /* Aumente ou diminua para mover mais pra dentro */
}

/* Container do dropdown */
#listaCategoriasDesktop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #003d80;
  padding: 0.5rem 0;
  z-index: 1000;
  min-width: 230px;
}

/* Cada item de categoria (linha inteira clicável) */
.categoria-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: white;
  text-align: left;
  min-width: 230px;
  box-sizing: border-box;
  cursor: pointer;
}

/* Hover no item (aplica no bloco inteiro) */
.categoria-item:hover {
  background-color: #0050a0;
}

/* Link dentro do item */
.menu-link {
  color: white !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  /* Faz o link ocupar toda a largura do item */
}

/* No hover, o link herda a cor branca */
.categoria-item:hover .menu-link {
  color: white !important;
  text-decoration: none !important;
}

/* Itens do menu flexíveis para alinharem na horizontal */
.menu-item {
  /* opcional: flex-grow para dividir espaço, ou largura automática */
  /* flex-grow: 1; */
}

/* Link do menu com display block e padding vertical */
.menu-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

/* Hover: muda fundo para laranja */
.menu-link:hover {
  background-color: #0060c0;
  cursor: pointer;
}

/* Ocultar menu em telas pequenas (mobile) */
/* LINKS DO MENU DESKTOP - texto branco */
@media (min-width: 768px) {
  .menu-link {
    color: white !important;
    text-decoration: none;
  }

  .menu-link:hover {
    color: white !important;
  }
}

/* LINKS DO MENU MOBILE - texto preto */
@media (max-width: 767.98px) {
  .d-flex.flex-column.gap-2 a {
    color: #222 !important;
    text-decoration: none !important;
  }

  .d-flex.flex-column.gap-2 a:hover {
    color: white !important;
  }

  /* Também os ícones dentro dos links */
  .d-flex.flex-column.gap-2 a i {
    color: #222 !important;
  }
}

/* Remove underline e força texto branco nos links */
a {
  text-decoration: none !important;
  /* tira underline */
  color: white !important;
  /* força cor branca */
  cursor: pointer;
}

/* Se quiser mudar a cor no hover, por exemplo */
a:hover {
  color: white !important;
  /* laranja no hover */
  text-decoration: none !important;
  /* mantém sem underline */
}

.menu-lateral .list-group-item {
  transition: background-color 0.3s, color 0.3s;
}

.menu-lateral .list-group-item:hover {
  background-color: #0d6efd !important;
  /* Azul padrão Bootstrap */
  color: white !important;
}

.menu-lateral .list-group-item:hover i {
  color: white !important;
}

.menu-lateral .list-group-item.active {
  background-color: #0d6efd !important;
  color: white !important;
}

.menu-lateral .list-group-item.active i {
  color: white !important;
}

.hover-shadow:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  background-color: #f8f9fa;
  /* cor clara suave */
  color: inherit;
  /* mantém a cor do texto */
}

.hover-shadow:hover * {
  color: inherit !important;
  /* força cor dos filhos (como texto e ícones) */
  text-decoration: none !important;
}