/* Estilos generales */
.navbar-modern {
  font-family: 'Roboto', sans-serif;
  position: relative;
  z-index: 1000;
}

/* Topbar */
.topbar {
  font-size: 0.9rem;
}

.topbar a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.welcome-user {
  color: #ffc107;
  font-weight: 500;
}

/* Logo específico del navbar */
.navbar-logo {
  max-height: 50px;
  width: auto;
}

/* Barra de búsqueda */
.search-form .form-control {
  border: 2px solid #e9ecef;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s;
}

.search-form .form-control:focus {
  border-color: #007bff;
  box-shadow: none;
}

.rounded-pill-left {
  border-top-left-radius: 50rem;
  border-bottom-left-radius: 50rem;
}

.rounded-pill-right {
  border-top-right-radius: 50rem;
  border-bottom-right-radius: 50rem;
}

/* Botones de acción (escritorio) */
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #343a40;
  text-decoration: none;
  transition: all 0.2s;
}

.action-btn:hover {
  color: #007bff;
  text-decoration: none;
  transform: translateY(-2px);
}

.icon-wrapper {
  margin-bottom: 0.3rem;
  position: relative;
}

/* ESTILOS PARA TAMAÑO DE LOS ICONOS DE IMAGEN DEL NAVBAR (ESCRITORIO) */
.navbar-modern .action-btn .icon-wrapper .custom-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.btn-text {
  font-size: 0.8rem;
  font-weight: 500;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menú de categorías */
.category-nav {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-nav .nav-link {
  padding: 0.7rem 1.2rem;
  font-weight: 500;
  transition: all 0.2s;
}

.category-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive (Main Navbar) */
@media (max-width: 767.98px) {
  .main-navbar {
    padding-bottom: 1rem;
  }
  
  .main-navbar .container {
    max-width: 100%;
  }
  
  /* Los action-btn de la barra superior principal se ocultan en móvil con d-none d-md-block */
  .navbar-modern .action-btn .icon-wrapper .custom-icon {
    width: 20px; 
    height: 20px;
  }
}

/* Estilos para la barra de navegación inferior móvil */
.mobile-nav-bottom {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 1000;
}

.mobile-nav-bottom .mobile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #343a40;
  text-decoration: none;
}


/* ¡Ajuste el tamaño de los iconos aquí para hacerlos más grandes en móvil! */
.mobile-nav-bottom .mobile-btn .mobile-custom-icon {
  width: 40px; /* Aumentado a 32px. Puedes probar con 30px, 35px, etc. */
  height: 40px; /* Debe coincidir con width para mantener proporción */
  object-fit: contain;
}

.mobile-nav-bottom .mobile-btn span {
  font-size: 0.7rem; /* Mantener este tamaño de texto o aumentarlo ligeramente si es necesario */
  margin-top: 0.2rem;
}

.mobile-nav-bottom .mobile-btn:hover {
  color: #007bff;
  text-decoration: none;
}

.mobile-nav-bottom .mobile-cart-count {
  position: absolute;
  top: -8px;
  right: 25%;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Espacio para el menú móvil */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 65px; /* Asegúrate de que este padding sea suficiente para que el contenido no quede oculto bajo la barra inferior */
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}