#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: none; /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  font-size: 24px;
  z-index: 9999; /* Asegura que esté por encima de otros elementos */
}

#overlay.active {
  pointer-events: all; /* Permitir interacciones en el overlay */
}

/* Estilos generales */
/* body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
} */
/* --------------------------------------------------------------------------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  /* padding: 20px; */
  background-color: #f0f0f0;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 10px;
  font-size: 11px !important;
  background-color: #ced1c2;
  /* border: 0px; */
  /* margin: 0 0 8px 8px; */
  padding: 8px;
  /* width: 152px !important; */
  text-align: center;
  border-radius: 8px;
}

.product-card {
  font-size: 11px !important;
  background-color: white;
  border: 0px;
  /* margin: 0 0 8px 8px; */
  /* padding: 8px; */
  /* width: 170px !important; */
  text-align: center;
  border-radius: 8px;
  /* background-color: white; */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s;
}

.product-card:hover {
  background-color: #ffffff;
  color: #aa5030;
  border: 2px solid #5e6847;
  /* Borde azul */
  transform: scale(1.05);
}

.product-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Mantén un aspecto cuadrado */
  overflow: hidden; /* Evita que la imagen se desborde */
}

.product-image img {
  position: absolute;
  top: 50%; /* Posiciona el centro verticalmente */
  left: 50%; /* Posiciona el centro horizontalmente */
  transform: translate(-50%, -50%); /* Ajusta para centrar realmente */
  width: 100%; /* Escala la imagen para que ocupe todo el contenedor */
  height: 100%; /* Escala la imagen para que ocupe todo el contenedor */
  object-fit: cover; /* Asegura que la imagen se recorte correctamente */
}

.product-info {
  padding: 2px;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1vw;
  margin: 0;
  line-height: 1.2;
}

.product-code,
.product-price {
  font-size: 2vh;
  margin: 5px 0;
  display: flex;
  flex-direction: row-reverse;
  color: #2c2f2c;
}

@media only screen and (min-width: 1025px) {
  .product-image img {
    width: 152px;
    max-height: 152px;
  }
}

/***************/

@media only screen and (max-width: 768px) {
  .product-image img {
    width: 80px;
    max-height: 80px;
  }
}

/* Media Queries para diseño móvil */
@media (max-width: 768px) {
  .catalog {
    grid-template-columns: repeat(3, 1fr); /* Cambia a 3 columnas en móvil */
    gap: 3px !important;
    padding: 10px;
  }

  .title-container {
    width: 100%; /* O un ancho fijo como 150px */
    max-height: 40px; /* Altura máxima para el título */
    overflow: hidden; /* Oculta cualquier texto que desborde */
  }

  .product-title {
    font-size: 1.9vw !important;
    margin: 0;
    line-height: 1.2;
  }

  .product-card:hover {
    background-color: #ffffff;
    color: #aa5030;
    border: 2px solid #5e6847;
    transform: scale(1.02) !important;
  }

  .product-code,
  .product-price {
    font-size: 1.5vh;
    margin: 5px 0;
    display: flex;
    flex-direction: row-reverse;
    color: #2c2f2c;
  }
}

/* --------------------------------------------------------------------------- */

.logo-container {
  background-color: #68714f;
  width: 100%;
}

.pdf-container {
  display: flex;
  justify-content: center;
  /* Centra el contenido */
  align-items: center;
  /* Alinea verticalmente */
}

.excel-container {
  display: flex;
  justify-content: center;
  /* Centra el contenido */
  align-items: center;
  /* Alinea verticalmente */
}

.tooltip {
  display: none;
  /* Ocultar el tooltip por defecto */
  position: absolute;
  /* Posicionarlo absolutamente */
  background-color: rgba(0, 0, 0, 0.7);
  /* Fondo semi-transparente */
  color: white;
  /* Color del texto */
  padding: 5px;
  /* Espaciado interno */
  border-radius: 5px;
  /* Bordes redondeados */
  z-index: 10;
  /* Asegurarse de que esté por encima de otros elementos */
}

.pdf-container {
  position: relative;
  /* Necesario para que el tooltip se posicione correctamente */
}

.excel-container {
  position: relative;
  /* Necesario para que el tooltip se posicione correctamente */
}

/* .button-pdf {
  position: relative;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background-color: #cf5029;
  color: white;
  cursor: pointer;
  border-radius: 5px;
} */

.pdf-logo {
  width: 44px;
  height: 44px;
  display: flex;
  margin-bottom: 8px;
  margin-left: 5px;
  justify-content: space-evenly;
  transition: transform 0.25s ease;
}

.pdf-logo:hover {
  transform: scale(1.1);
  /* Aumentar el tamaño del logo al pasar el mouse */
}

.excel-logo {
  width: 44px;
  height: 44px;
  display: flex;
  margin-bottom: 8px;
  margin-left: 5px;
  justify-content: space-evenly;
  transition: transform 0.25s ease;
}

.excel-logo:hover {
  transform: scale(1.1);
  /* Aumentar el tamaño del logo al pasar el mouse */
}

/* .pdf-logo:hover {
  transform: translateY(-50%) scale(1.2);
} */

/* .button-pdf:hover {
  background-color: #e74a2391 !important;
} */

social-media-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

header {
  background-color: #f4f4f5;
  color: #333;
  /* Color de texto más oscuro */
  /* padding: 20px 10px; */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Sombra sutil para profundidad */
}

header h1 {
  margin: 12px 0;
  color: #cf6139;
  /* font-family: monospace; */
  font-family: system-ui;
  font-size: 2.5em;
  /* font-family: x-large; */
  font-weight: bold;
}

.product:hover {
  background-color: #ffffff;
  /* Fondo azul claro */
  color: #aa5030;
  /* Texto azul oscuro */
  border: 2px solid #5e6847;
  /* Borde azul */
  transform: scale(1.05);
  /* Efecto de aumento */
}

header input {
  width: 80%;
  max-width: 600px;
  padding: 10px;
  margin-top: 10px;
  font-size: 1em;
  border: 1px solid #007bff;
  /* Borde azul */
  border-radius: 5px;
  /* Bordes redondeados */
  transition: border-color 0.3s;
  /* Transición suave */
}

header input:focus {
  border-color: #0056b3;
  /* Color de borde al enfocar */
  outline: none;
  /* Sin contorno por defecto */
}

#company-logo {
  height: 90px;
  /* Ajustar altura del logo */
  margin-bottom: 10px;
}

/* #product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  background-color: #ced1c2;
} */

.product {
  background-color: white;
  border: 1px solid #ddd;
  margin: 10px;
  padding: 15px;
  width: 220px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.product:hover {
  transform: scale(1.05);
  /* Efecto de aumento al pasar el mouse */
}

.product img {
  width: 90%;
  /* Ajustar el tamaño de la imagen */
  height: auto;
  max-height: 160px;
  /* Aumentar altura máxima */
  object-fit: contain;
  margin: 0 auto;
}

.search-container {
  display: flex;
  /* margin-top: 10px; */
  width: 50%;
  flex-direction: row;
  justify-content: space-evenly;
}

#search {
  padding: 10px 40px 10px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  width: 86%;
  background: #fdeee1;
}

.search-icon {
  color: #617667;
  cursor: pointer;
}

#pagination {
  text-align: center;
  margin: 20px 0;
}

#pagination button {
  padding: 10px 15px;
  /* Aumentar espacio interno */
  margin: 0 5px;
  cursor: pointer;
  border: none;
  /* Sin borde */
  background-color: #676f52;
  /* Fondo azul */
  color: white;
  /* Texto blanco */
  border-radius: 5px;
  /* Bordes redondeados */
  transition: background-color 0.3s;
  /* Transición suave */
}

#pagination button:hover {
  background-color: #bd843a;
  /* Color de fondo al pasar el mouse */
}

/* Media Queries para dispositivos móviles */
@media only screen and (max-width: 768px) {
  .product img {
    width: 80%;
    max-height: 130px;
  }
}

/* Media Queries para tabletas */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .product img {
    width: 75%;
    max-height: 140px;
  }
}

/* Media Queries para pantallas grandes (desktops) */
/* @media only screen and (min-width: 1025px) {
  .product img {
    width: 80%;
    max-height: 160px;
  }
} */

/* FOOTER */

.site-footer {
  background-color: #26272b;
  padding: 45px 0 20px;
  font-size: 15px;
  line-height: 24px;
  color: #737373;
}

.site-footer hr {
  border-top-color: #bbb;
  opacity: 0.5;
}

.site-footer hr.small {
  margin: 20px 0;
}

.site-footer h6 {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 2px;
}

.site-footer a {
  color: #737373;
}

.site-footer a:hover {
  color: #3366cc;
  text-decoration: none;
}

.footer-links {
  padding-left: 0;
  list-style: none;
}

.footer-links li {
  display: block;
}

.footer-links a {
  color: #737373;
}

.footer-links a:active,
.footer-links a:focus,
.footer-links a:hover {
  color: #3366cc;
  text-decoration: none;
}

.footer-links.inline li {
  display: inline-block;
}

.site-footer .social-icons {
  text-align: right;
  display: flex;
  justify-content: center;
}

.site-footer .social-icons a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin-left: 6px;
  margin-right: 0;
  border-radius: 100%;
  background-color: #33353d;
}

.copyright-text {
  margin: 0;
  align-items: center;
  color: aliceblue;
  display: flex;
  justify-content: center;
}

@media (max-width: 991px) {
  .site-footer [class^="col-"] {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 0;
  }

  .site-footer .copyright-text,
  .site-footer .social-icons {
    text-align: center;
  }
}

.social-icons li {
  display: inline-block;
  margin-bottom: 4px;
}

.social-icons li.title {
  margin-right: 15px;
  text-transform: uppercase;
  color: #96a2b2;
  font-weight: 700;
  font-size: 13px;
}

.social-icons a {
  /* background-color: #eceeef; */
  /* color: #818a91; */
  font-size: 16px;
  display: inline-block;
  line-height: 44px;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #29aafe;
}

.social-icons.size-sm a {
  line-height: 34px;
  height: 34px;
  width: 34px;
  font-size: 14px;
}

/* .social-icons a.instagram {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-left: 6px;
    margin-right: 0;
    border-radius: 100%;
    background-color: #b762ac;
} */

/* .social-icons a.whatsapp {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-left: 6px;
    margin-right: 0;
    border-radius: 100%;
    background-color: #399b60;
} */

/* .button-pdf {
  padding: 10px 20px;
  font-size: 16px;
  margin-left: 10px;
  margin-bottom: 7px;
  color: #101010b5;
  background: #f1774375;
  border-radius: 25px;
  border-color: beige;
  height: 10%;
} */

/* .button-pdf:hover {
  background: #df6f28;
} */

.banner-search {
  width: 80%;
  display: flex;
  align-content: stretch;
  justify-content: space-around;
  align-items: flex-start;
  /* flex-direction: row; */
}

.banner-search {
  display: flex;
  align-items: center;
}

.filter-container {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

#tags {
  display: flex;
  flex-wrap: wrap;
  margin-left: 10px;
}

.tag {
  background-color: #e0e0e0;
  border-radius: 3px;
  padding: 5px;
  margin-right: 5px;
}

.social-icons a.whatsapp {
  background-color: #2cb22c !important;
  transition: transform 0.25s ease;
}

.social-icons a.whatsapp:hover {
  transform: scale(1.1);
  background-color: #2c842c !important;
}

.social-icons a.twitter:hover {
  background-color: #00aced;
}

.social-icons a.linkedin:hover {
  background-color: #007bb6;
}

.social-icons a.instagram {
  background-color: #df6d99 !important;
  transition: transform 0.25s ease;
}

.social-icons a.instagram:hover {
  transform: scale(1.1);
  background-color: #87416f !important;
}

@media (max-width: 767px) {
  .social-icons li.title {
    display: block;
    margin-right: 0;
    font-weight: 600;
  }
}

ul.social-icons {
  display: flex;
}

.fa {
  display: inline-block;
  font: normal normal normal 14px / 1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  color: aliceblue;
  -moz-osx-font-smoothing: grayscale;
}

.search-icon i {
  font-size: 22px;
  color: #658748b3 !important;
  margin-top: 18px;
  margin-left: 10px;
}

.social-media-container {
  display: flex;
  align-items: center;
}

select#category-filter {
  border-color: #d98a1ba8;
  width: 25%;
  height: 37px;
  border-radius: 7px;
  background: #f7e6d1ad;
  color: #717273;
  padding-left: 10px;
  /* font-weight: normal; */
  font-size: large;
}

#pagination button.active {
  background-color: #1f6986;
  color: #fff;
  font-weight: bold;
}

/* MEDIA QUERYS */
@media (max-width: 768px) {
  .banner-search {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .social-media-container {
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .search-container {
    display: flex;
    width: 80%;
    flex-direction: row;
    justify-content: space-evenly;
  }

  select#category-filter {
    border-color: #d98a1ba8;
    width: 65%;
    height: 37px;
    border-radius: 7px;
    background: #f7e6d1ad;
    color: #717273;
    padding-left: 2px;
    /* font-weight: normal; */
    font-size: medium;
    margin-right: 30px;
  }
}

/* Estilo para el modal */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  opacity: 0;
  pointer-events: none;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
}

/* Estilo para el contenido del modal */
.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  max-height: 400px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  display: flex;
  border: 2px solid #5e6847;
}

.box-modal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
}

.modal-description {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding-left: 20px;
}

/* Estilo para la imagen del modal */
.modal-image {
  max-width: 300px;
  width: 300px;
  height: 300px;
}
.modal.show {
  pointer-events: auto;
  opacity: 1;
}

#modal-code {
  margin: 0;
  font-weight: bold;
  color: #333333;
}

#modal-price {
  margin: 0;
  font-weight: bold;
  color: #333333;
}

/* Estilo para el botón de cerrar */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  background-color: transparent;
  border: none;
  color: #333;
  cursor: pointer;
  font-weight: bold;
}

/* Cambiar el color del botón de cerrar al pasar el ratón */
.close:hover,
.close:focus {
  color: #ff0000;
}

h3#modal-title {
  text-align: start;
  padding-left: 20px;
}

@media (max-width: 768px) {
  /* Estilo para el modal */
  .modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    opacity: 0;
    pointer-events: none;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
  }

  .modal-description {
    padding: 0;
  }

  /* Estilo para el contenido del modal */
  .modal-content {
    border: 2px solid #5e6847;

    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    max-height: 400px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Estilo para la imagen del modal */
  .modal-image {
    max-width: 230px;
    width: 230px;
    height: 230px;
    margin-bottom: 20px;
  }
  .modal.show {
    pointer-events: auto;
    opacity: 1;
  }

  h3#modal-title {
    text-align: start;
    padding: 0;
  }

  /* Estilo para el botón de cerrar */
  .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background-color: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    font-weight: bold;
  }

  /* Cambiar el color del botón de cerrar al pasar el ratón */
  .close:hover,
  .close:focus {
    color: #ff0000;
  }
}

/* Contenedor del filtro de stock */
.stock-filter-container {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

/* Toggle switch */
.stock-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 10px;
}

.stock-toggle input[type="checkbox"] {
  display: none;
}

/* Slider del toggle */
.toggle-slider {
  position: relative;
  width: 50px;
  height: 26px;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.3s;
  flex-shrink: 0;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* Estado activo */
.stock-toggle input:checked + .toggle-slider {
  background-color: #006400;
}

.stock-toggle input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* Label del toggle */
.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

/* Hover effect */
.stock-toggle:hover .toggle-slider {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .stock-filter-container {
    margin: 5px 0;
  }

  .toggle-label {
    font-size: 12px;
  }

  .toggle-slider {
    width: 44px;
    height: 22px;
  }

  .toggle-slider::before {
    height: 16px;
    width: 16px;
  }

  .stock-toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
  }
}
