/*
 * =========================================================
 * ALMARA SHOP – NAŠEPTÁVAČ VYHLEDÁVÁNÍ
 * =========================================================
 */

.almara-search{
  position:relative;
  overflow:visible;
  z-index:20;
}

.almara-search form{
  position:relative;
}

.alma-search-suggest[hidden]{
  display:none !important;
}

.alma-search-suggest{
  position:absolute;
  z-index:2600;
  top:calc(100% + 10px);
  left:0;
  width:min(720px, calc(100vw - 32px));
  max-height:min(72vh, 680px);
  overflow:hidden;
  border:1px solid #eadbd1;
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 60px rgba(63,42,34,.22);
  text-align:left;
}

.alma-search-suggest:before{
  content:"";
  position:absolute;
  top:-7px;
  left:32px;
  width:14px;
  height:14px;
  background:#fff;
  border-left:1px solid #eadbd1;
  border-top:1px solid #eadbd1;
  transform:rotate(45deg);
}

.alma-search-suggest__content{
  position:relative;
  z-index:1;
  max-height:min(72vh, 680px);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.96), rgba(255,255,255,0) 32%),
    linear-gradient(180deg,#fffaf7 0%,#fff 100%);
}

.alma-search-suggest__section{
  padding:14px 14px 4px;
}

.alma-search-suggest__section + .alma-search-suggest__section{
  padding-top:8px;
}

.alma-search-suggest__section-title{
  margin:0 2px 8px;
  color:#8b756a;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.alma-search-suggest__nav-list,
.alma-search-suggest__product-list{
  display:grid;
  gap:7px;
}

.alma-search-suggest__option{
  color:#2f2f2f;
  text-decoration:none;
  outline:none;
}

.alma-search-suggest__option:hover,
.alma-search-suggest__option:focus,
.alma-search-suggest__option.is-active{
  color:#2f2f2f;
  text-decoration:none;
}

.alma-search-suggest__nav-option{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  min-height:58px;
  padding:9px 12px;
  border:1px solid #eadfd7;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  box-shadow:0 5px 14px rgba(75,48,38,.045);
  transition:transform .12s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}

.alma-search-suggest__nav-option:hover,
.alma-search-suggest__nav-option:focus,
.alma-search-suggest__nav-option.is-active{
  transform:translateY(-1px);
  border-color:rgba(197,16,103,.30);
  background:#fff7fb;
  box-shadow:0 9px 20px rgba(75,48,38,.08);
}

.alma-search-suggest__nav-icon{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#fff3f8;
  border:1px solid rgba(197,16,103,.14);
  color:#c51067;
  font-size:18px;
  line-height:1;
  font-weight:900;
}

.alma-search-suggest__nav-icon--series{
  background:#fff1f7;
}

.alma-search-suggest__nav-icon--collection{
  background:#fff7ef;
  border-color:#ead8c7;
  color:#a96f44;
}

.alma-search-suggest__nav-icon--category{
  background:#f8f5f2;
  border-color:#e4d9d1;
  color:#6c5d55;
}

.alma-search-suggest__nav-text{
  min-width:0;
}

.alma-search-suggest__nav-label,
.alma-search-suggest__nav-name{
  display:block;
}

.alma-search-suggest__nav-label{
  margin-bottom:2px;
  color:#9a8175;
  font-size:10px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
}

.alma-search-suggest__nav-name{
  color:#3c3430;
  font-size:14px;
  line-height:1.3;
  font-weight:900;
  overflow-wrap:anywhere;
}

.alma-search-suggest__nav-action{
  color:#9d0f54;
  font-size:11px;
  line-height:1.25;
  font-weight:900;
  white-space:nowrap;
}

.alma-search-suggest__product{
  display:grid;
  grid-template-columns:66px minmax(0,1fr) minmax(118px,auto);
  align-items:center;
  gap:12px;
  min-height:82px;
  padding:8px 11px;
  border:1px solid #eee3dc;
  border-radius:17px;
  background:#fff;
  box-shadow:0 5px 14px rgba(75,48,38,.04);
  transition:transform .12s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}

.alma-search-suggest__product:hover,
.alma-search-suggest__product:focus,
.alma-search-suggest__product.is-active{
  transform:translateY(-1px);
  border-color:rgba(197,16,103,.30);
  background:#fffafd;
  box-shadow:0 10px 22px rgba(75,48,38,.085);
}

.alma-search-suggest__image{
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #f0e6df;
  border-radius:14px;
  background:#fff;
}

.alma-search-suggest__image img{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
}

.alma-search-suggest__product-body{
  min-width:0;
}

.alma-search-suggest__product-name{
  display:-webkit-box;
  overflow:hidden;
  color:#33302e;
  font-size:14px;
  line-height:1.28;
  font-weight:900;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.alma-search-suggest__product-meta{
  display:block;
  margin-top:5px;
  overflow:hidden;
  color:#887b74;
  font-size:11px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.alma-search-suggest__product-side{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  text-align:right;
}

.alma-search-suggest__price{
  display:block;
  color:#c51067;
  font-size:15px;
  line-height:1.15;
  font-weight:950;
  white-space:nowrap;
}

.alma-search-suggest__availability{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:10px;
  line-height:1.15;
  font-weight:900;
  text-align:center;
}

.alma-search-suggest__availability--local{
  border-color:#c8dfbf;
  background:#f3faef;
  color:#3c7133;
}

.alma-search-suggest__availability--supplier{
  border-color:#c9d9e8;
  background:#f3f8fc;
  color:#486c8e;
}

.alma-search-suggest__availability--unavailable{
  border-color:#e6c9c0;
  background:#fff5f2;
  color:#9b4031;
}

.alma-search-suggest__footer{
  position:sticky;
  bottom:0;
  padding:10px 14px 14px;
  background:linear-gradient(180deg,rgba(255,255,255,.84) 0%,#fff 35%);
}

.alma-search-suggest__all-results{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:14px;
  background:linear-gradient(180deg,#d71978 0%,#c51067 100%);
  color:#fff !important;
  font-size:13px;
  line-height:1.3;
  font-weight:900;
  text-align:center;
  box-shadow:0 9px 20px rgba(197,16,103,.20);
}

.alma-search-suggest__all-results:hover,
.alma-search-suggest__all-results:focus,
.alma-search-suggest__all-results.is-active{
  background:linear-gradient(180deg,#bd1067 0%,#990d4f 100%);
  color:#fff !important;
  box-shadow:0 12px 25px rgba(197,16,103,.28);
}

.alma-search-suggest__loading,
.alma-search-suggest__empty,
.alma-search-suggest__error{
  min-height:116px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:22px 18px;
  color:#655a54;
  text-align:center;
}

.alma-search-suggest__loading{
  flex-direction:row;
  min-height:92px;
  font-weight:800;
}

.alma-search-suggest__empty strong,
.alma-search-suggest__error strong{
  color:#3d3733;
  font-size:15px;
}

.alma-search-suggest__empty small,
.alma-search-suggest__error small{
  max-width:430px;
  color:#857a74;
  font-size:12px;
  line-height:1.45;
}

.alma-search-suggest__empty-icon{
  font-size:24px;
}

.alma-search-suggest__spinner{
  width:22px;
  height:22px;
  border:3px solid #f0d4e1;
  border-top-color:#c51067;
  border-radius:50%;
  animation:alma-search-spin .72s linear infinite;
}

@keyframes alma-search-spin{
  to{transform:rotate(360deg);}
}

.alma-search-suggest__live{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

@media (max-width:768px){
  .alma-search-suggest{
    left:50%;
    width:calc(100vw - 20px);
    max-height:66vh;
    transform:translateX(-50%);
    border-radius:19px;
  }

  .alma-search-suggest:before{
    left:50%;
    margin-left:-7px;
  }

  .alma-search-suggest__content{
    max-height:66vh;
  }

  .alma-search-suggest__section{
    padding:11px 10px 3px;
  }

  .alma-search-suggest__nav-option{
    grid-template-columns:36px minmax(0,1fr);
    gap:10px;
  }

  .alma-search-suggest__nav-action{
    grid-column:2;
    white-space:normal;
  }

  .alma-search-suggest__product{
    grid-template-columns:58px minmax(0,1fr);
    gap:10px;
    min-height:76px;
    padding:8px 9px;
  }

  .alma-search-suggest__image{
    width:56px;
    height:56px;
    border-radius:12px;
  }

  .alma-search-suggest__product-side{
    grid-column:2;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    text-align:left;
  }

  .alma-search-suggest__price{
    font-size:14px;
  }

  .alma-search-suggest__availability{
    max-width:170px;
  }

  .alma-search-suggest__footer{
    padding:9px 10px 11px;
  }
}

@media (max-width:420px){
  .alma-search-suggest__product-side{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  .alma-search-suggest__availability{
    max-width:100%;
  }
}
