/******* Estilos de Pedidos  ********/
.product-card {
  transition: transform 0.2s;
  cursor: pointer;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  padding: 10px 0;
}

.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 350px;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.cart-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1010;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    transform: translateX(100%);
  }

  .cart-sidebar.open {
    transform: translateX(0);
  }

  .cart-toggle {
    display: flex;
  }

  .category-nav .nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .category-nav .nav-item {
    flex-shrink: 0;
  }

  .product-img-container {
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Estilo para indicador de estado de mesa */
.mesa-status {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/********  admin_view.php   *********/
.sidebar {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.sidebar .nav-link:hover {
  color: white;
}

.sidebar .nav-link.active {
  color: white;
  font-weight: bold;
}

.status-badge {
  font-size: 0.8rem;
  padding: 0.4em 0.6em;
}

.nav-pills .nav-link.active {
  background-color: #d63384;
}

.table-responsive {
  overflow-x: auto;
}

.comprobante-btn {
  transition: all 0.3s;
}

.comprobante-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comprobante-img {
  max-width: 100%;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comprobante-modal-img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .sidebar {
    min-height: auto;
  }

  .display-6 {
    font-size: 1.5rem;
  }
}

/******* index_view.php ************/
.hero-section {
  position: relative;
  height: 550px;
  overflow: hidden;
  margin-bottom: 30px;
}

.hero-image {
  height: 600px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

/* Contenido del hero (TEXTO FIJO) */
.hero-content {
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Overlay para mejor legibilidad (como en tu diseño) */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4));
  z-index: 2;
}

/* Carrusel en el fondo */
.hero-section .carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-section .carousel-item {
  height: 100%;
}

/* Botón igual a tu diseño */
.btn-primary {
  background-color: #d63384;
  border-color: #d63384;
  padding: 12px 30px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #a52a66;
  border-color: #a52a66;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hero-section,
  .hero-image {
    height: 400px;
  }

  .hero-section .display-4 {
    font-size: 2.5rem;
  }

  .hero-content .lead {
    font-size: 1.1rem;
  }
}

.navbar {
  background-color: #1a1a1a !important;
}

.btn-primary {
  background-color: #d63384;
  border-color: #d63384;
}

.btn-primary:hover {
  background-color: #a52a66;
  border-color: #a52a66;
}

.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

footer {
  background-color: #1a1a1a;
  color: white;
  padding: 30px 0;
  margin-top: 50px;
}

.disponibilidad {
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
}

.required-field::after {
  content: " *";
  color: #dc3545;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

  .display-4 {
    font-size: 2.5rem;
  }
}
