#navbar-btn {
  background-color: var(--primary);
  color: var(--white);
  padding: 30px 10px;
  writing-mode: vertical-lr;
  font-size: 20px;
  border: none;
  top: 20%;
  cursor: pointer;
  position: absolute;
  left: 100%;
  box-shadow: 0 0 5px black;
}

#navbar-categorias h2{
  text-align: center;
  font-size: 30px;
  margin: 20px 0;
  text-shadow: 0px 0px 5px var(--black);
  color: var(--white);
}

.titulo {
  text-align: center;
  font-size: 40px;
  font-family: 'Roboto', sans-serif;
  margin-top: 30px;
}

#navbar-categorias.abierto {
  box-shadow: 0px 0 15px black;
 
  left: 0;
}

#navbar-categorias {
  font-family: 'Roboto', sans-serif;
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  height: 100vh;
  box-shadow: 0 0 0 black;
  z-index: 500;
  left: -350px;
  transition: left 1s ease, box-shadow 1s ease;
  top: 0;
}


#container-categorias-list {
  display: none;
  width: 350px;
}

.categorias {
  width: 100%;
  display: none;

}

.categorias .categoria {

  margin: 5px 20px;
}

.categorias .categoria div {
  display: flex;
  justify-content: space-between;

  color: var(--black);
  border-radius: 15px;
  padding: 10px;
  font-size: 15px;
  transition: color 0.3 ease;
  align-items: center;
}


.categorias .categoria h3 {
  cursor: pointer;
  font-weight: 500;
  color: var(--white);
}

.categorias .categoria .subcategorias {
  max-height: 0;
  overflow: hidden;
  margin-left: 20px;
  transition: max-height 1s ease;


}

.categorias .categoria .masabierto {
  cursor: pointer;
  padding: 0 8px;
}

.categorias .categoria .subcategorias.abrecategoria {
  max-height: 150px;

}

.categorias .categoria .subcategorias li {
color: var(--white);
border-radius: 15px;
 padding: 10px ;
  font-size: 18px;
  cursor: pointer;
}
.categorias .categoria .subcategorias li:hover{

  background-color: rgb(34, 34, 34);
}

.categorias .categoria div h3:hover {
  color: var(--primary);
}

.categorias .categoria div span {
  display: block;
  width: 30px;
}

.categorias .categoria div span img.rotate {
  rotate: 180deg;
}

.categorias .categoria div span .flecha {
  object-fit: cover;
  width: 100%;
filter: invert(100%);
  padding: 2px;
}

/* PRODUCTOS*/
#section-productos {
  width: 100%;
  padding: 0;
}

.container-productos {

  margin: 40px 70px 70px 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
  gap: 20px;
  justify-content: center;
}

.producto {
  box-shadow: 0 0 1px black;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;

}

.producto:hover div h3 {
  color: var(--primary);
}


.producto img {
  width: 100%;

}

.producto div {
  margin: 0px 15px 20px;
  font-family: 'Roboto', sans-serif;
}

.producto div h3 {
  font-size: 30px;
  text-align: center;

}

.producto div span {
  display: block;
  margin-top: 10px;

}








footer {
  height: 210px;
  background: linear-gradient(to bottom, rgb(12, 12, 12), var(--gray4));
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 20px;
}

.logo-footer {
  width: 20%;
  max-width: 300px;

}

.logo-footer img {
  width: 100%;
}

footer p {
  color: white;
  font-size: 20px;
  font-family: 'Kanit';
  font-weight: 300;
  text-align: center;
}



ul {
  list-style: none;
}

.example-1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.example-1 .icon-content {
  margin: 0 10px;
  position: relative;
}

.example-1 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: 'Roboto',sans-serif;
}

.example-1 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -40px;
}

.example-1 .icon-content .link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.example-1 .icon-content .link:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

.example-1 .icon-content .link svg {
  width: 30px;
  height: 30px;
}

.example-1 .icon-content:hover a[data-social="correo"]{
  background-color: red;
}
.example-1 .icon-content:hover a[data-social="facebook"]{
  background-color: rgb(0, 89, 255);
}
.example-1 .icon-content:hover a[data-social="Whatsapp"]{
  background-color: rgb(17, 255, 0);
}
.example-1 .icon-content:hover a[data-social="Tiktok"]{
  background-color: rgb(0, 0, 0);
}
.example-1 .icon-content:hover .iconf{
  filter: invert(100%);
}
.social-footer .example-1 .icon-content .iconf{
  height: 23px;
  transition: filter 0.3 ease;

}


@media (max-width:955px) {
  footer {
    height: 230px;
    flex-direction: column;
  }

  .logo-footer {
    width: 30%;
    max-width: 300px;
  }

  .logo-footer img {
    width: 100%;
  }

  footer p {
    font-size: 17px;
    margin-bottom: 10px;

  }

  .container-productos {

    grid-template-columns: repeat(auto-fit, minmax(170px, 200px));

    gap: 10px;
  }

  .producto div span {
    margin-top: 5px;
    font-size: 13px;

  }
}





.products-preview{
  position: fixed;
  top:0; left:0;
  min-height: 100vh;
  width: 100%;
  background: rgba(0,0,0,.8);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto';
  z-index: 2000;
}

.products-preview .preview{
  display: none;
  padding:2rem;
  background: #fff;
  position: relative;
  margin:auto;
  width: 25rem;
}

.products-preview .preview.active{
  display: inline-block;
}

.products-preview .preview img{
  width: 100%;
}

.products-preview .preview h3{
  color:#444;
  padding:.5rem 0;
  font-size: 2.5rem;
  text-align: center;
}
.preview div ul li .tcaracteristica{
  font-size:1.2rem;
font-weight: 500;
}


.products-preview .preview .buttons{
  display: flex;
  gap:1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.products-preview .preview .buttons a{
  flex:1 1 16rem;
  padding:1rem;
  font-size: 1.8rem;
  background-color: var(--primary);
  color:#444;
  border:.1rem solid #444;
  text-align: center;
}


.products-preview .preview .buttons a.buy:hover{
  background: #444;
  color:#fff;
}

.products-preview .preview .fa-times{
  position: absolute;
  top:1rem; right:1.5rem;
  cursor: pointer;
  color:#444;
  font-size: 4rem;
  transition: transform 0.5s ease;
}

.products-preview .preview .fa-times:hover{
  transform: rotate(90deg);

}











.fondonegro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
  z-index: 1000;
  display: none;
}

.fondoactivo {
  display: block;
}

.product-list {
  max-width: 1300px;
  width: 90%;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
  gap: 20px;
  justify-content: center;
}

.product-item {

  padding: 10px;
box-shadow: 0 0 1px black;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.product-item img {
  max-width: 100%;
  height: auto;
}

.product-item h3 {
  margin: 0px auto -10px auto;
  font-size: 25px;
}

.product-item h4 {
  margin: 5px 0;
  color: #666;
}

.product-item button {
  margin-top: 10px;
  background-color: var(--primary);
padding: 5px;
cursor: pointer;
border: none;
box-shadow: 0 0 1px black;
color: var(--white);
transition: background-color 0.3s ease;
}
.product-item button:hover{
background-color: var(--black);
}

.product-card {
  z-index: 2000;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  padding: 20px;
  border: 1px solid #ccc;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 5px;
  box-sizing: border-box;
  font-family: 'Roboto',sans-serif;
}

.product-card.show {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dos columnas de igual ancho */

}

.product-card .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transform:  scale(2.2);
transition: transform 0.3s ease;
}
.product-card .close-btn:hover{
  transform: rotate(180deg) scale(2.2);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  grid-column: 1 / -1; /* Tercer elemento ocupa desde la primera columna hasta la última */
}

.product-card h2 {
  margin: 10px 0 0;
  font-size: 30px;
}

.product-card h3 {
  margin: -2px 0;
  color: #666;
  font-size: 18px;
}

.product-card .rating {
  display: flex;

  font-size: 25px;

justify-content: end;
}

.product-card .rating span {
  justify-content: end;

}
.product-card .sales-info #productSales{
  font-size: 20px;
  text-align: end;

}
.product-card .sales-info .vendidos{
  margin: -20px 0 0 0;
  text-align: end;
}
.product-card .sales-info {
  font-size: 15px;
  display: flex;
  flex-direction: column;

}
.starsales{
  margin: 5px 0 10px 0;
}

.product-card .dropdown-container {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin-top: 10px;
  position: relative;
  font-size: 20px;
  justify-content: space-between;
}

.product-card .dropdown-container label {
  margin-right: 10px;
  font-weight: bold;
}

.product-card .dropdown-container span {
  cursor: pointer;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f8f8f8;
  width: 60%;
  text-align: center;
  font-size: 12px;

}

.product-card .options-list {
  display: none;
  position: absolute;
  top: 100%;
right: 0;
  width: 60%;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-size: 12px;
}

.product-card .options-list div {
  padding: 5px;
  cursor: pointer;
}

.product-card .options-list div:hover {
  background-color: #f0f0f0;
}

.product-card button.btncotizar {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  grid-column: 1 / -1;

}

.product-card button.btncotizar:hover {
  background-color: var(--secondary);
}

@media (max-width:600px) {
  .product-list {
  
    grid-template-columns: repeat(auto-fill, minmax(150px, 200px));
  }
  
}