@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  --font-family-primary: "abierto Sans", sans-serif;
  --background-color: #ffffff;
  --primary-color: #333333;
  --secundary-color: #bf0019;
  --terciary-color: #55660a;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  background-color: var(--background-color);
  color: var(--primary-color);
}

header {
  width: 100%;
  height: 15vh;

  display: flex;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  padding: 10px;
  border-bottom: 0.1px var(--primary-color) solid;
  position: sticky;
  z-index: 1;
}

.imagelogo {
  width: 40%;
  height: 100%;
}
.sectionHeader {
  display: flex;
  justify-content: space-evenly;
  width: 35%;
  height: 100%;
  align-items: center;
  gap: 10px;
}

.imageHamburguesa {
  width: 8%;
}

.sectionHeader a {
  text-decoration: none;
}

.sectionHeader a:hover {
  background-color: f1f1f1;
}

.divBuscar {
  width: 50%;
  height: 50%;
}

header input {
  height: 100%;
  width: 100%;
  padding: 10px;
}

header ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50%;

  width: 20%;
}
header li {
  list-style-type: none;
  padding: 5px;
}

header li a {
  text-decoration: none;
  color: inherit;
}

header li:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

.divBuscar {
  display: flex;
}

.dropbtn {
  width: max-content;
  background-color: var(--background-color);
  font-family: var(--font-family-primary);
  cursor: pointer;
  height: 100%;
  padding: 10px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 120px;

  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#mainframe {
  height: 250px;
  display: flex;
  background-color: #f8a305;
  color: var(--background-color);
  position: relative;
}

.divparrafos {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
}
#mainframe img {
  width: 40%;
  object-fit: cover;
}

#mainframe h1 {
  font-weight: 800;
}

.container {
  display: flex;
}

#filter {
  width: 20%;
}

#products {
  width: 80%;
}

#products ul {
  list-style-type: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-template-rows: repeat(auto-fit, minmax(400px, 1fr));
}

#products ul > li > a {
  text-decoration: none;
  color: inherit;
  font-weight: 400;
}
#products ul > li > a img {
  object-fit: cover;
  width: 300px;
}

#products li:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#products li {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#products h4 {
  font-weight: 400;
}

.classspan {
  font-weight: 700;
}
#products p {
  color: #eb0d0d86;
}

.fa-star,
.fa-star-half-alt,
.far fa-star {
  color: #ffa90d;
}

#filter form {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

#filter form p {
  text-align: center;
  font-family: inherit;
  font-weight: 800;
}
.divcheckbox,
.divcheckboxresolution,
.divcheckboxsupplier {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 5px;
}

.divcheckbox input {
  width: 20px;
  height: 20px;
  margin-top: 5px;
}

.divcheckboxresolution input {
  width: 20px;
  height: 20px;
  margin-top: 5px;
}
.divcheckboxsupplier input {
  width: 20px;
  height: 20px;
  margin-top: 5px;
}

.divcheckbox,
.divcheckboxresolution,
.divcheckboxsupplier label {
  font-weight: 500;
  margin-top: 5px;
}

@media screen and (max-width: 600px) {
  header {
    display: flex;
    justify-content: space-between;
  }

  header ul {
    margin-left: 20px;
  }
  header ul a {
    display: none;
  }

  .dropbtn {
    display: none;
  }
  #filter {
    display: flex;
    width: 100%;
    justify-content: center;
    border-bottom: 0.1px black solid;
  }

  #products {
    width: 100%;
  }

  .sectionHeader a {
    display: none;
  }

  #mainframe {
    max-width: max-content;
  }

  .container {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
}