/* Style the tab */
.tab {
  overflow: hidden;
  background-color: #fff;
  text-align: center;
}

/* Style the buttons inside the tab */
.tab button {
  margin: 0px 5px 30px 5px;
  cursor: pointer;
  padding: 0px;
  font-size: 1rem;
  color: #94959d;
  font-weight: bold;
  font-family: "Poppins";
  padding-bottom: 5px;
}

/* Create an active/current tablink class */
.tab button.active {
  color: #5a5b63;
  border-bottom: 2px solid #5a5b63;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 0px;
}

#search-page-title-bar {
  max-width: 850px;
  width: 100% !important;
}

#filters {
  padding-top: 15px;
}

#display-filters {
  text-align: right;
  text-decoration: underline;
  font-size: 0.8rem;
}

#display-filters:hover {
  cursor: pointer;
  color: #db052c;
}

#buscador-avanzado {
  position: relative;
}

#buscador-menu {
  padding: 30px 30px 30px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #94969d;
}

.hide-buscador{
  display: none !important;
}

.hide-sgtns{
  display: none !important;
}

.show-sgtns{
  display: initial;
  top: 50px !important;
}

.search-box{
  width: fit-content;
  height: fit-content;
  position: relative;
}

.input-search{
  height: 50px;
  width: 50px;
  background: none;
  border-style: none;
  padding: 10px;
  font-size: 18px;
  letter-spacing: 2px;
  outline: none;
  border-radius: 25px;
  transition: all .5s ease-in-out;
  padding-right: 40px;
  color: #ffffff;
}

.input-search::placeholder{
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 100;
}

.btn-close{
  width: 50px;
  height: 50px;
  border-style: none;
  font-size: 20px;
  font-weight: bold;
  outline: none;
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  right: 0px;
  color:#ffffff;
  background-color:transparent;
  pointer-events: painted;  
}

.btn-close:focus ~ .input-search{
  width: 60vw;
  border-radius: 0px;
  background-color: transparent;
  border-bottom:1px solid rgba(255, 255, 255);
  transition: all 800ms cubic-bezier(0, 0.110, 0.35, 2);
}

.btn-search{
  width: 50px;
  height: 50px;
  border-style: none;
  font-size: 20px;
  font-weight: bold;
  outline: none;
  cursor: pointer;
  border-radius: 50%;
  color:#ffffff;
  background-color:transparent;
  pointer-events: painted;  
}

.input-search:focus{
  width: 60vw;
  border-radius: 0px;
  background: none;
  border-bottom:1px solid rgba(255,255,255);
  transition: all 800ms cubic-bezier(0, 0.110, 0.35, 2);
}

#suggestionstop {  
  position: absolute;
  left: 0;
  width: 100%;
  top: 50px;
  z-index: 99;
  background-color: #f4f4f4;
  margin-bottom: 15px;  
  border-radius: 0px 0px 25px 25px;  
}

/* #buscador-menu #custom-searcher-for-avada .search-box #suggestions {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50px;
  z-index: 99;
  background-color: #94969d;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  border-radius: 0px 0px 25px 25px;
  padding-top: 16px;
} */

#search-page-title-bar #suggestions {
  position: absolute;
  top: 33px;
  width: 100%;
  background-color: white;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  border-radius: 10px;
  z-index: 5;
}

.suggestion-result {
  display: flex;
  padding: 10px 10px 10px 15px;
  align-items: baseline;
}

.suggestion-result i {
  margin-right: 5px;
}

.border-is-product {
  font-size: 11px;
  border: 1px solid black;
  border-radius: 7px;
  padding: 4px 7px;
  margin-left: 5px;
}

#total-products .results-found {
  text-align: center;
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #5a5b63;
}

#total-products .results-found .color-red {
  color: #db052c;
}

#total-products .next-options {
  text-align: center;
  font-size: 1.2rem;
}

#family-list-search-page .broad-range-products-text {
  text-align: center;
  font-size: 1.2rem;
  margin-top: -20px;
  margin-bottom: 20px;
}

#results .product-box {
  background-color: #e2e1e7;
}

.line-results {
  font-weight: bold;
  font-size: 1.6rem;
  line-height: 1;
  color: #585b62;
}

.color-fonestar {
  color: #db052c;
}

.family-detail {
  display: grid;
  grid-template-columns: 30% 1fr;
  padding-top: 40px;
  padding-bottom: 40px;
}

.family-detail .family-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: #595c63;
  margin-top: 10px;
  margin-bottom: 5px;
  line-height: 1.1;
}

.family-detail .family-description {
  text-transform: uppercase;
}

.family-detail .right-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#buscador-listado-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  padding-top: 40px;
}

.no-results-found {
  text-align: center;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
}

.no-results-found i {
  font-size: 2rem;
  margin-bottom: 10px;
}

#searcher-separator-gray-line {
  margin-top: 20px;
  border-top: 1px solid #ededed;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
}

#products-per-page {
  height: 40px !important;
}

#pagination-product,
#pagination-content {
  padding-top: 10px;
}

.dumb-square {
  padding: 7px 2px;
  margin-right: 10px;
}

#loader-container {
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  padding-bottom: 100px;
  margin: 0 auto;
}

.loader {
  border: 16px solid #e1e1e6;
  border-top: 16px solid #db052c;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

#loader-container .message {
  margin-top: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 800px) {
  #searcher-separator-gray-line {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #pagination-product,
  #pagination-content {
    margin-top: 20px;
  }
}

.separator-searcher {
  margin-top: 20px;
  height: 3px;
  background: #e2e1e6;
}

.separator-searcher-dark {
  margin-top: -3px;
  height: 3px;
  max-width: 25%;
  background: #93959d;
}

#related-categories i,
#related-content i,
#others-users-searched i {
  font-size: 1.1rem;
  color: #db052c;
  margin-right: 5px;
}

#related-categories .text-as-title,
#related-content .text-as-title,
#others-users-searched .text-as-title {
  color: #93959d;
  font-size: 1.1rem;
}

/* Ini: Buscador - Page Title Bar */
#page-title-bar {
  background: #e2e1e7;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#page-title-bar .buscador {
  letter-spacing: 3px;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 15px;
}

#page-title-bar .searcher {
  background: #fff;
  border: 0px;
  padding: 15px;
  border-radius: 10px 0px 0px 10px;
  width: calc(100% - 60px);
}

#page-title-bar .searcher i {
  color: #a0a2a8;
}

#page-title-bar .button {
  background: white;
  padding: 10px 20px;
  border-radius: 0px 10px 10px 0px;
  width: 60px;
}

#page-title-bar .button:hover {
  cursor: pointer;
}

#page-title-bar #families-checklist {
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 5px 15px;
}

#line-gray-separator {
  height: 1px;
  background: #cacbd0;
  margin-top: 10px;
  margin-bottom: 20px;
}

#search-page-title-bar #content-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;

  margin-top: 20px;
}

@media screen and (max-width: 700px) {
  #page-title-bar #families-checklist {
    display: flex;
    flex-direction: column;
  }

  .family-detail {
    display: flex;
    flex-direction: column;
  }

  #page-title-bar #content-checklist {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (max-width: 520px) {
  .family-detail .right-column {
    display: flex;
    flex-direction: column;
  }

  .search-page-families #subfamilias > .family {
    padding-left: 0px !important;
    border-left: 0px solid !important;
    border-bottom: 1px solid #e9e8ec;
  }
}

/* Fin: Buscador - Page Title Bar */

/* Ini: Página de resultados */
#subfamilias .family p {
  margin: 10px 0px;
  color: #93959d;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

#subfamilias .family a {
  display: flex;
  align-items: center;
}

#subfamilias .family img {
  margin-right: 10px;
  object-fit: contain;
  width: 50px;
  height: 50px;
}

/* Fin: Página de resultados */

/* Ini: ESTILOS PARA LOS CHECKBOXES DEL BUSCADOR AVANZADO */
.containerc {
  display: block;
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 15px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.containerc-label {
  display: block;
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  line-height: 22px;
  color: #5a5b63;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-weight: bold;
}

/* Hide the browser's default checkbox */
.containerc input,
.containerc-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.containerc .checkmark,
.containerc-label .checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #fff;
}

/* On mouse-over, add a grey background color */
.containerc:hover input ~ .checkmark {
  background-color: #fff;
}

/* When the checkbox is checked, add a gray background */
.containerc input:checked ~ .checkmark {
  background-color: #94959d;
}

.containerc-label input:checked ~ .checkmark {
  background-color: #db052c;
}

/* Create the checkmark/indicator (hidden when not checked) */
.containerc .checkmark:after,
.containerc-label .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.containerc input:checked ~ .checkmark:after,
.containerc-label input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.containerc .checkmark:after,
.containerc-label .checkmark:after {
  left: 6px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(35deg);
  -ms-transform: rotate(35deg);
  transform: rotate(35deg);
}

/* Fin: ESTILOS PARA LOS CHECKBOXES DEL BUSCADOR AVANZADO */

#related-categories #categories-list {
  display: flex;
  margin-top: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#related-categories #categories-list .category {
  display: flex;
  margin-bottom: 10px;
}

#related-categories #categories-list a {
  border: 1px solid #aeb0b5;
  border-radius: 10px;
  padding: 10px 20px;
  margin-right: 10px;
}

#related-categories #categories-list a:hover {
  border: 1px solid #db052c;
}

#related-content #content-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

#related-content #content-list .related-content,
#content-results .content {
  background: #e2e1e7;
  padding: 15px;
}

#related-content #content-list .related-content .category,
#content-results .content .category {
  text-transform: uppercase;
  letter-spacing: 0px;
  color: #5a5b63;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

#related-content #content-list .related-content a,
#content-results .content a {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: bold;
}

#related-content #content-list .related-content .description,
#content-results .content .description {
  margin-top: 10px;
  word-wrap: break-word;
}
