.predictive-search {
  --predictive-search-result-padding: 20px;

  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgb(var(--color-page-background));
  border-top: none;
  border-radius: 0 0 var(--menu-modal-border-radius)
    var(--menu-modal-border-radius);
}

.predictive-search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--predictive-search-result-padding) / 2)
    var(--predictive-search-result-padding);
  color: rgb(var(--color-light-text));
  text-transform: uppercase;
}

@media screen and (max-width: 959px) {
  .predictive-search__head {
    padding-top: 7.5px;
    padding-bottom: 7.5px;
  }
}

.predictive-search__head .predictive-search__spinner {
  display: none;
}

.predictive-search__list-item > * {
  transition: color 0.3s, background 0.3s;
}

.predictive-search__list-item[selected="true"] > *,
.predictive-search__list-item:hover > * {
  color: rgb(var(--color-text));
  background-color: rgba(0, 0, 0, 0.08);
}

.predictive-search__list-item:nth-of-type(1):not(:last-child),
.predictive-search__list-item:nth-last-of-type(1):not(:first-child) {
  border-top: 1px solid rgb(var(--color-entry-line));
}

.predictive-search__list-item:nth-of-type(1):not(:last-child)
  .predictive-search__item {
  padding-top: var(--predictive-search-result-padding);
}

.predictive-search__list-item:nth-last-of-type(2) .predictive-search__item {
  padding-bottom: var(--predictive-search-result-padding);
}

.predictive-search__item {
  padding: calc(var(--predictive-search-result-padding) / 2)
    var(--predictive-search-result-padding);
  display: grid;
  grid-template: "image content" auto / auto 1fr;
  gap: var(--predictive-search-result-padding);
  align-items: center;
}

.predictive-search__item-image {
  display: block;
  width: 62px;
  height: 62px;
  grid-area: image;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 959px) {
  .predictive-search__item-image {
    width: 56px;
    height: 56px;
  }
}

.predictive-search__item-content {
  grid-area: content;
  justify-content: center;
}

.predictive-search__item-head {
  margin: 0;
}

.predictive-search__term {
  width: 100%;
  padding: 8px var(--predictive-search-result-padding);
  border: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: rgba(var(--color-text));
}

.predictive-search__term:hover .predictive-search__term-icon {
  transform: scale(1.1);
}

.predictive-search__term-icon {
  display: inline-flex;
  transition: transform 0.3s;
  width: 20px;
  height: 20px;
}

.predictive-search__spinner {
  display: inline-flex;
  animation: button-loading linear 1.5s infinite;
}

.predictive-search__spinner .icon {
  width: 15px;
  height: 15px;
}

.predictive-search__loading-state {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.predictive-search__results {
  overflow: hidden;
  overflow-y: auto;
}

predictive-search[data-focus][open] .predictive-search,
predictive-search[data-focus][loading] .predictive-search {
  display: block;
}

predictive-search[data-focus][loading]
  .predictive-search__results:empty
  ~ .predictive-search__loading-state {
  display: flex;
}

predictive-search[data-focus][loading]
  .predictive-search__head
  .predictive-search__spinner {
  display: flex;
}

.main-search__header h1 {
  text-align: center;
  margin-bottom: 20px;
}

.main-search__container {
  margin-top: 40px;
}

@media screen and (max-width: 959px) {
  .main-search__container {
    margin-top: 40px;
  }
}

.main-search__results {
  text-align: center;
  margin-top: 80px;
}

@media screen and (max-width: 959px) {
  .main-search__results {
    margin-top: 40px;
  }
}

.main-search__results .main-search__searchText {
  margin-top: 10px;
}

.main-search__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.main-search__search {
  position: relative;
  padding-bottom: 0px;
}

@media screen and (max-width: 959px) {
  .main-search__search {
    padding-bottom: 40px;
  }
}

.main-search__search::after {
  /* content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: rgb(var(--color-entry-line)); */
}

.main-search__form {
  position: relative;
  flex: 1 0 0;
  z-index: 1;
}

@media screen and (max-width: 959px) {
  .main-search__form {
    position: static;
  }

  .main-search__form .predictive-search {
    border-top: 1px solid rgb(var(--color-entry-line));
  }
}

.main-search__field {
  position: relative;
  margin: 0;
  background-color: #f8f8f8;
  color: #333;
  border: 1px solid #e7e7e7;
}

.main-search__input {
  height: 45px;
  padding: 28px 68px 10px 20px;
  font-size: 14px;
}

.main-search__field:after{
  display: none;
}
@media screen and (max-width: 959px) {
  .main-search__input {
    height: 50px;
    padding: 20px 68px 4px 20px;
  }
}
span.product-search__searchText {
    overflow: hidden;
    margin: 10px 0;
    text-align: left;
    display: block;
    word-break: break-word;
    color: #777;
    font-size: 13px;
    font-weight: normal;
}
.main-search__field-label {
  width: calc(100% - 68px);
  left: 20px;
  font-size: 14px;
  top: 45%;
}
svg.icon.icon-search{
  color: #fff;
}
.main-search__submit-button {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  width: 30%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e50044;
}

.collection.loading::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 50;
  opacity: 0.7;
}

.search__collection-card {
  height: 100%;
}

.search__collection-card-cover {
  display: block;
  height: 100%;
  width: 100%;
  min-height: 462px;
  max-height: 506px;
  position: relative;
  background-color: rgb(var(--color-image-background));
  cursor: pointer;
}

.search__collection-card-cover .placeholder {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.search__collection-card-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
}

.search__collection-card-cover .search__collection-card-title {
  display: flex;
  align-items: center;
  position: absolute;
  text-align: center;
  bottom: 20px;
  background: #fff;
  width: calc(100% - 40px);
  margin: 0 20px;
  color: rgb(var(--color-text));
  padding: 7px 10px;
  line-height: normal;
  z-index: 2;
}

.search__collection-card-cover
  .search__collection-card-title
  .search__collection-card-tag {
  margin-right: 10px;
  color: rgb(var(--color-text));
  align-self: flex-start;
  line-height: 0;
}

.search__collection-card-cover
  .search__collection-card-title
  .search__collection-card-text {
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.search__article-card {
  height: 100%;
}

.search__article-card-wrapper {
  display: block;
  height: 100%;
  width: 100%;
  min-height: 462px;
  max-height: 506px;
  position: relative;
  background-color: rgb(var(--color-image-background));
  cursor: pointer;
}

.search__article-card-wrapper .placeholder {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.search__article-card-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
}

.search__article-card-wrapper .search__article-card-info {
  background: #ffffff;
  padding: 10px;
  position: absolute;
  width: calc(100% - 40px);
  bottom: 20px;
  margin: 0 20px;
  z-index: 2;
}

.search__article-card-wrapper
  .search__article-card-info
  .search__article-card-title-wrapper {
  display: flex;
  justify-content: center;
}

.search__article-card-wrapper
  .search__article-card-info
  .search__article-card-title-wrapper
  .search__article-card__tag {
  margin-right: 10px;
  color: rgb(var(--color-text));
  align-self: flex-start;
  line-height: 0;
}

.search__article-card-wrapper
  .search__article-card-info
  .search__article-card-title-wrapper
  .search__article-card-title {
  display: flex;
  justify-content: center;
  color: rgb(var(--color-text));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.search__article-card-wrapper .search__article-card-extra {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(var(--color-text), 0.6);
  margin-top: 10px;
}

.search__article-card-wrapper .search__article-card-date {
  flex-shrink: 0;
}

.search__article-card-wrapper .search__article-card-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search__article-card-wrapper .search__article-card-line {
  flex-shrink: 0;
  width: 1px;
  height: 12px;
  margin: 0 15px;
  background-color: rgb(var(--color-entry-line));
}

.search__page-card {
  height: 100%;
}

.search__page-card-cover {
  display: block;
  height: 100%;
  width: 100%;
  min-height: 462px;
  max-height: 506px;
  position: relative;
  background-color: rgb(var(--color-image-background));
  cursor: pointer;
}

.search__page-card-cover .placeholder {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.search__page-card-cover .search__page-card-title {
  display: flex;
  align-items: center;
  position: absolute;
  text-align: center;
  bottom: 20px;
  background: #fff;
  width: calc(100% - 40px);
  margin: 0 20px;
  color: rgb(var(--color-text));
  padding: 10px;
  line-height: normal;
  z-index: 2;
}

.search__page-card-cover .search__page-card-title .search__page-card-tag {
  margin-right: 10px;
  color: rgb(var(--color-text));
  align-self: flex-start;
  line-height: 0;
}

.search__page-card-cover .search__page-card-title .search__page-card-text {
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

@media (max-width: 959px) {
  .search__collection-card-cover {
    min-height: 236px;
    max-height: 369px;
  }
  .search__collection-card-cover .search__collection-card-title {
    margin: 0 17px;
    width: calc(100% - 34px);
    display: block;
    text-align: center;
  }
  .search__collection-card-cover
    .search__collection-card-title
    .search__collection-card-tag {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .search__collection-card-cover
    .search__collection-card-title
    .search__collection-card-text {
    text-align: center;
    -webkit-line-clamp: 4;
  }
  .search__article-card-wrapper {
    min-height: 236px;
    max-height: 369px;
  }
  .search__article-card-wrapper
    .search__article-card-info
    .search__article-card-title-wrapper {
    display: block;
    text-align: center;
  }
  .search__article-card-wrapper
    .search__article-card-info
    .search__article-card-title-wrapper
    .search__article-card__tag {
    margin-bottom: 10px;
  }
  .search__article-card-wrapper
    .search__article-card-info
    .search__article-card-title-wrapper
    .search__article-card-title {
    -webkit-line-clamp: 4;
  }
  .search__article-card-wrapper .search__article-card-line {
    display: none;
  }
  .search__article-card-wrapper .search__article-card-extra {
    display: block;
    text-align: center;
  }
  .search__page-card-cover {
    min-height: 236px;
    max-height: 369px;
  }
  .search__page-card-cover .search__page-card-title {
    margin: 0 17px;
    width: calc(100% - 34px);
    display: block;
    text-align: center;
  }
  .search__page-card-cover .search__page-card-title .search__page-card-tag {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .search__page-card-cover .search__page-card-title .search__page-card-text {
    text-align: center;
    -webkit-line-clamp: 4;
  }
}
.product-card__image {
    position: relative;
}
.product-card__image img {
    position: absolute;
    left: 0;
    top: 0;
}
a.product-card {
    position: relative;
    display: block;
}
.discount_box {
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 0 0 0 12px;
    height: 23px;
    background: linear-gradient(to left,#da004e,#fa474d);
    font-size: 12px;
    color: #fff;
    line-height: 23px;
    padding: 0 8px;
    bottom: unset;
    left: unset;
}
ul.grid.grid-cols-2.grid-cols-4-desktop {
    padding: 0;
    margin: 0;
}
ul.grid.grid-cols-2.grid-cols-4-desktop li {
    width: 20%;
}
.product-card__name {
    height: 20px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    font-size: 12px;
    margin: 5px 0 0;
    line-height: 12px;
    text-overflow: ellipsis;
}
span.product-card__sale-price {
    color: #e81150;
    font-weight: bold;
}
s.product-card__regular-price {
    font-weight: 600;
    font-size: 12px;
    text-decoration: line-through;
    color: #717171;
    padding-left: 8px;
}
@media(max-width:768px){
  ul.grid.grid-cols-2.grid-cols-4-desktop li{
    width: 50%;
  }
}
/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */
