:root {
  /* Nueva paleta de colores */
  --color-principal: #ad7968;
  --color-principal-oscuro: #8d5e4f;
  --color-principal-claro: #c9a79d;
  --color-fondo: #f3f3f3;
  --color-fondo-secundario: #f9f5f3;
  --color-texto: #333333;
  --color-texto-secundario: #666666;
  --color-blanco: #ffffff;
  --color-borde: #e8dfda;

  /* Tipografía */
  --font-family: 'Georgia', 'Times New Roman', serif;
  --font-family-secundaria: 'Arial', 'Helvetica', sans-serif;

  /* Transiciones */
  --transition-smooth: all 0.3s ease;

  /* Bordes */
  --border-radius: 8px;
  --border-radius-boton: 25px;
  --box-shadow: 0 4px 12px rgba(173, 121, 104, 0.1);
  --box-shadow-hover: 0 8px 20px rgba(173, 121, 104, 0.15);
}

/* RESET Y ESTILOS BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-secundaria);
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--color-texto);
  margin-bottom: 1rem;
}

a {
  color: var(--color-principal);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-principal-oscuro);
}

/* CONTENEDORES PRINCIPALES */
.centered-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.tab-content-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.products-grid-container {
  width: 100%;
  padding: 0 10px;
}

/* MENÚ DE CATEGORÍAS */
.category-nav-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background-color: var(--color-blanco);
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.nav-link {
  /* padding: 12px 20px; */
  border-radius: var(--border-radius-boton);
  transition: var(--transition-smooth);
  margin: 0 5px;
  border: 2px solid transparent;
  color: var(--color-texto);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover {
  background-color: var(--color-fondo-secundario);
  border-color: var(--color-principal-claro);
}

.nav-link.active {
  color: var(--color-texto-secundario) !important;
  font-weight: 600;
  border-color: var(--color-principal);
}

.category-icon {
  margin-right: 8px;
  font-size: 1.2em;
}

/* PRODUCTOS - GRID */
.products-main-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.product-grid-container {
  width: 95%;
  max-width: 1400px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  justify-items: center;
}

/* TARJETAS DE PRODUCTO */
.product-card {
  background: var(--color-blanco);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-borde);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.product-image-container {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* INDICADOR DE ZOOM */
.zoom-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(173, 121, 104, 0.9);
  color: var(--color-blanco);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-image-container:hover .zoom-indicator {
  opacity: 1;
}

/* CONTENIDO DE LA TARJETA */
.product-content {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-texto);
  text-align: center;
  line-height: 1.3;
}

.product-description {
  color: var(--color-texto-secundario);
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
  flex-grow: 1;
  line-height: 1.4;
}

/* BOTÓN PRIMARIO */
.add-button {
  background: var(--color-principal);
  color: var(--color-blanco);
  border: none;
  padding: 10px 15px;
  border-radius: var(--border-radius-boton);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: var(--font-family-secundaria);
}

.add-button:hover {
  background: var(--color-principal-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* PRECIOS */
.product-price {
  font-weight: 700;
  color: var(--color-principal);
  font-size: 17px;
  margin: 8px 0;
  text-align: center;
}

/* OPCIONES DE PIZZA */
.pizza-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.pizza-option {
  background: var(--color-fondo);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border-left: 3px solid var(--color-principal);
}

/* ENLACES ALÉRGENOS */
.allergens-link {
  display: block;
  text-align: center;
  color: var(--color-texto-secundario);
  font-size: 12px;
  margin-top: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.allergens-link:hover {
  color: var(--color-principal);
  text-decoration: underline;
}

/* MODAL DE IMÁGENES */
.product-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoomIn 0.3s;
  border: 3px solid var(--color-principal);
  border-radius: var(--border-radius);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--color-blanco);
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-modal:hover {
  color: var(--color-principal);
  cursor: pointer;
}

/* ANIMACIONES */
@keyframes zoomIn {
  from {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* EFECTO DE CARGA */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-principal);
  font-size: 24px;
}

.image-title {
  color: var(--color-principal);
  text-align: center;
  margin-top: 10px;
  font-size: 1.2em;
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* SECCIÓN DEL MENÚ */
.ftco-menu {
  /* padding: 60px 0; */
  background-color: var(--color-fondo);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .category-nav-pills {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 10px;
  }

  .nav-link {
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ftco-menu {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-image-container {
    height: 180px;
  }

  .product-title {
    font-size: 16px;
  }

  .product-description {
    font-size: 13px;
  }
}

/* Estilos mejorados para el dropdown de categorías */
.category-dropdown-container {
  margin: 0 auto;
  max-width: 300px;
}

.category-dropdown-btn {
  background-color: #fff !important;
  color: #000 !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  width: 100%;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.category-dropdown-btn:hover,
.category-dropdown-btn:focus {
  background-color: #f8f9fa !important;
  border-color: #ccc !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px);
}

.category-dropdown-btn::after {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.selected-category {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-dropdown-menu {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  padding: 5px 0 !important;
}

.category-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 15px !important;
  color: #000 !important;
  transition: all 0.2s ease !important;
}

.category-dropdown-item:hover {
  background-color: #f8f9fa !important;
  color: #000 !important;
}

.category-dropdown-item.active {
  background-color: #e9ecef !important;
  font-weight: 600 !important;
}

.category-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.category-name {
  font-size: 15px;
}

/* Estilo para el contenedor del dropdown */
.nav-link-wrap {
  padding: 10px 0;
}

/* Estilo para la pestaña de todos los productos */
#v-pills-all {
  display: block;
}

.products-grid-container .tab-pane:not(.show) {
  display: none;
}

.products-grid-container .tab-pane.show {
  display: block;
}

.day-indicator .current-day {
  color: #28a745;
  font-weight: bold;
}

.day-indicator .other-day {
  color: #ffc107;
  font-weight: bold;
}

/* Estilo para botones deshabilitados */
.add-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.add-button.disabled-info {
  position: relative;
}

.add-button.disabled-info::after {
  content: "⚠️ Solo disponible para el día actual";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1000;
  margin-bottom: 5px;
}

.add-button.disabled-info:hover::after {
  opacity: 1;
}

/* Estilos mejorados para carga AJAX */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.loading-container {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eaeaea;
  max-width: 400px;
  width: 90%;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(202, 132, 99, 0.2);
  border-top: 4px solid #ad7968;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.loading-subtext {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.loading-dots {
  display: inline-block;
  margin-left: 5px;
}

.loading-dots span {
  animation: dots 1.5s infinite;
  opacity: 0;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dots {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

/* Transición suave para cambios de contenido */
.tab-content-container {
  position: relative;
  min-height: 400px;
  transition: opacity 0.3s ease;
}

.tab-content-container.loading {
  opacity: 1;
}

/* Estilo mejorado para cuando no hay productos */
.no-products-message {
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
  margin: 20px 0;
}

.no-products-icon {
  font-size: 60px;
  opacity: 0.5;
  margin-bottom: 20px;
}

.no-products-message h4 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 10px;
}

.no-products-message p {
  color: #6c757d;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Animación para entrada de productos */
.product-item {
  animation: slideUp 0.4s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo para el contenedor de productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

/* Skeleton loading para mejor experiencia */
.skeleton-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-product {
  height: 350px;
  margin-bottom: 25px;
}

.skeleton-header {
  height: 200px;
  margin-bottom: 15px;
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: 10px;
}

.skeleton-text {
  height: 16px;
  width: 90%;
  margin-bottom: 8px;
}

.skeleton-button {
  height: 40px;
  width: 120px;
  margin-top: 15px;
}

/* Estilos para imagen por defecto */
.default-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 14px;
  border-radius: 8px;
}

.default-image-icon {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.7;
}

/* Estilos para indicador de stock */
.stock-indicator {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 5px;
}

.stock-disponible {
  background-color: #d4edda;
  color: #155724;
}

.stock-agotado {
  background-color: #f8d7da;
  color: #721c24;
}

.stock-bajo {
  background-color: #fff3cd;
  color: #856404;
}