/* Search No results */
#no-results {
  text-align: center;
}

.search-no-results .nr-words {
  font-size: 1em;
  line-height: 1.8;
  color: #555454;
}

.search-no-results .wrong-results {
  font-size: 1.2em;
  font-weight: 500;
  color: #468966;
  margin: 0.5em 0;
}

.search-no-results .image-nr {
  width: auto;
  height: auto;
}

/* Search Box  */

.container-page--center{
  width: 100%;
  max-width: 1120px;              /* tablet/desktop */
  margin-inline: auto;
  padding-inline: clamp(12px, 4vw, 24px);

  display: flex;
  flex-direction: column;
  align-items: center;            /* centrowanie zawartości */
}

/* kluczowe: nie pozwól, żeby dzieci zrobiły się wąskie */
.container-page--center > *{
  width: 100%;
}

.search-noresults {
  display: inline-block;
  width: 30%;
  margin: 1.5em 0 3em 0;
}

.search-nr {
  display: flex;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  justify-content: center;
}

.search-nr label {
  width: 100%;
  border-radius: 0;
}

.field-nr::placeholder {
  font-size: 16px;
  color: #636363;
}

.field-nr {
  width: 100%;
  margin: 0 auto;
}

.search-nr input[type="search"] {
  border: none;
  font-size: 16px;
  color: #636363;
  font-weight: 500;
  padding: 5px 12px;
  padding-left: 12px;
  border-top: 0.1em solid #ffb03b;
  border-left: 0.1em solid #ffb03b;
  border-bottom: 0.1em solid #ffb03b;
  border-radius: 0 !important;
  -webkit-box-shadow: inset 0px 0px 3px 0px rgba(233, 163, 58, 0.9);
  -moz-box-shadow: inset 0px 0px 3px 0px rgba(233, 163, 58, 0.9);
  box-shadow: inset 0px 0px 3px 0px rgba(233, 163, 58, 0.9);
}

.search-nr input[type="search"]:focus {
  -webkit-box-shadow: inset 0px 0px 4px 0px rgba(233, 163, 58, 0.6);
  -moz-box-shadow: inset 0px 0px 4px 0px rgba(233, 163, 58, 0.6);
  box-shadow: inset 0px 0px 4px 0px rgba(233, 163, 58, 0.6);
}

.submit-nr {
  background-color: #ffb03b;
  color: #fff;
  padding: 11px 14px;
  border: 0.1em solid #ffb03b;
  display: block;
  cursor: pointer;
  transition: 0.1s;
  -webkit-transition: 0.1s;
  -moz-transition: 0.1s;
  -ms-transition: 0.1s;
  -o-transition: 0.1s;
}

.submit-nr i {
  font-size: 1.1em;
}

.submit-nr:active {
  color: #fff;
  background-color: #ffc774;
  border: 0.1em solid #ffc774;
}

@media screen and (max-width: 980px) {
  /* Search Box  */

  .search-noresults {
    width: 60%;
  }

  .search-no-results .image-nr {
    width: 450px;
    height: auto;
  }

  /* Search Box  */
  .field-nr::placeholder {
    font-size: 15px;
  }

  .search-nr input[type="search"] {
    font-size: 15px;
  }
}

@media screen and (max-width: 736px) {
  /* Search No results */
  .search-no-results .image-nr {
    width: 80%;
  }

  /* Search Box  */
  .field-nr::placeholder {
    font-size: 14px;
  }

  .search-nr input[type="search"] {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  /* Search No results */
  .search-no-results .image-nr {
    width: 100%;
  }

  /* Search Box  */

  .search-noresults {
    width: 90%;
  }
}

/* Header Search Wrapper*/
.search-box {
  display: flex;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  margin: 0 5em 0 0;
  height: 3em;
}

.searching {
  width: 100%;
  display: none;
  margin-right: 0.5em;
}

.search-form {
  display: flex;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  justify-content: flex-end;
  -webkit-animation: search 0.6s forwards;
  animation: search 0.6s forwards;
  width: 0;
  float: right;
}

@-webkit-keyframes search {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes search {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

.search-field::placeholder {
  font-size: 12px;
  color: #468966;
}

.search-field {
  width: 100%;
  margin: 0 auto;
  border-radius: 0.5em 0 0 0.5em;
}

.search-form input[type="search"] {
  border: none;
  font-size: 14px;
  color: #3d795a;
  font-weight: 500;
  padding: 5px 12px;
  border-top: 0.1em solid #468966;
  border-left: 0.1em solid #468966;
  border-bottom: 0.1em solid #468966;
  -webkit-box-shadow: inset 0px 0px 3px 0px rgba(158, 158, 158, 0.9);
  -moz-box-shadow: inset 0px 0px 3px 0px rgba(158, 158, 158, 0.9);
  box-shadow: inset 0px 0px 3px 0px rgba(158, 158, 158, 0.9);
}

.search-form input[type="search"]:focus {
  -webkit-box-shadow: inset 0px 0px 4px 0px rgba(70, 137, 102, 0.6);
  -moz-box-shadow: inset 0px 0px 4px 0px rgba(70, 137, 102, 0.6);
  box-shadow: inset 0px 0px 4px 0px rgba(70, 137, 102, 0.6);
}

.search-submit {
  background-color: #468966;
  color: #ffb03b;
  padding: 11px 14px;
  border: 0.1em solid #468966;
  display: block;
  cursor: pointer;
  border-radius: 0 0.5em 0.5em 0;
  transition: 0.1s;
  -webkit-transition: 0.1s;
  -moz-transition: 0.1s;
  -ms-transition: 0.1s;
  -o-transition: 0.1s;
}

.search-submit .screen-reader-text {
  clip-path: initial;
  position: inherit;
  color: white;
}

.search-submit i {
  font-size: 1.1em;
}

.search-submit:active {
  color: #fff;
  background-color: #4d9c72;
  border: 0.1em solid #4d9c72;
}

.search-label {
  position: relative;
  display: flex;
  align-items: center;
}

.clear-search {
  position: absolute;
  right: 40px; /* dostosuj jeśli trzeba */
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #888;
  display: none; /* ukryte domyślnie */
}

.search-field:not(:placeholder-shown) ~ .clear-search {
  display: block;
}

/* Icon search */

.icon-search {
  position: relative;
  cursor: pointer;
  margin-right: 0.7em;
  width: 1.9em;
  height: 1.8em;
  background-color: #468966;
  border: 2px solid #468966;
  text-align: center;
  font-size: 1.3em;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}

.icon-search:before {
  position: absolute;
  content: "";
  top: 0;
  right: 100%;
  width: 150%;
  height: 220%;
  transform: rotate(130deg);
  -moz-transform: rotate(130deg);
  -o-transform: rotate(130deg);
  -ms-transform: rotate(130deg);
  -webkit-transform: rotate(130deg);
  background-color: #50a377;
  transition: 0.4s;
  -moz-transition: 0.4s;
  -webkit-transition: 0.4s;
  -ms-transition: 0.4s;
  z-index: 2;
}

.icon-search:hover:before {
  right: 0;
}

.icon-search .icon {
  display: block;
  line-height: 1.7em;
  position: relative;
  color: #fff;
  transition: all 0.5s;
  -moz-transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -ms-transition: all 0.5s;
  z-index: 3;
}

.icon-search:hover .icon {
  -webkit-transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  transform: rotate(360deg);
}

@media screen and (max-width: 1280px) {
  .icon-search .icon {
    line-height: 1.52em;
  }
}

@media screen and (max-width: 1080px) {
  .social-box {
    width: 320px;
    height: auto;
    margin-left: 2em;
  }
  
  .search-box {
    margin-right: 1em;
  }
}


@media screen and (max-width: 980px) {
  .social-box {
    display: none;
  }
  
  .search-box {
    float: none;
    width: auto;
    margin: 0 0.1em 0 0;
    height: auto;
  }

  .searching {
    margin: 0 0.4em;
  }
}

@media screen and (max-width: 736px) {
  .search-box {
    margin: 0 0.3em 0 0;
  }

  .icon-search {
    margin-right: 0;
    width: 2em;
    height: 2em;
    font-size: 1.1em;
  }

  .icon-search .icon {
    line-height: 1.7em;
  }

  .icon-search:hover .icon {
    -webkit-transform: none;
    -moz-transform: none;
    -o-transform: none;
    -ms-transform: none;
    transform: none;
  }
}

/* Search page */
.searching-box {
  margin: 0.5em 0 1.5em 0.1em;
}

.searching-box p {
  display: inline-block;
}

.data-title {
  font-family: "Fira Sans", sans-serif;
  font-size: 1.4em;
  letter-spacing: 0;
  color: #468966;
  line-height: 1.2em;
}

.result-title {
  font-family: "Fira Sans", sans-serif;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 0;
  color: #468966;
}

.data-contain {
  font-weight: 700;
  color: #ffb03b;
}

.result-search {
  margin-left: 0.3em;
  font-weight: 700;
  font-size: 2em;
  color: #ffb03b;
}

/* Seearched product */

#main-search {
  width: 100%;
  height: auto;
  align-self: center;
  background-color: rgb(251, 251, 251);
}

#main-search .container-page{
  background-color: #fbfbfb;
}

.search-product {
  display: flex;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  display: flex;
  margin: 2em 0;
  max-width: 900px;
}

.search-product .post {
  position: relative;
  background-color: #ffffff;
  width: 350px;
  height: 230px;
  transition: all 0.5s;
  -moz-transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -ms-transition: all 0.5s;
  cursor: pointer;
  margin: 2em 0;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 1em;
}

.search-product .post .title{
  border-radius: 18px;
}

.search-product .post .title a{
  display: block;
}

.data-container{
  gap: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 470px;
  background-color: #f4f4f4;
  padding: 1em;
  border-radius: 18px;
}

@media screen and (max-width: 980px) {
  .search-product {
	width: 500px;
	padding: 2em;
	flex-direction: column;
  }
  
  .search-product .post {
	width: 100%;
	height: 100%;
  }
  
  .data-container{
	width: 470px;
  }
}

@media screen and (max-width: 736px) {
  .search-product {
    justify-content: space-between;
	padding: 1em;
	width: 100%;
  }

  .search-product .result-search {
    margin-left: 0.5em;
  }
  
  .search-product .post{
	width: 100%;
	height: 100%;
  }
	
  .data-container {
    width: 100%;
  }
  
  .search-product .post > .image.featured img,
  .search-product .post > .image.featured{
	width: 100% !important;
	height: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  .data-title {
    font-size: 1.15em;
  }

}