.exlegi-shop {
  --shop-blue: #48687a;
  --shop-olive: #6d6948;
  --shop-sand: #e1d1b3;
  --shop-ivory: #f1ebdc;
  color: #171a1b;
  font-family: "Mulish", sans-serif;
}

.exlegi-shop *,
.exlegi-shop *::before,
.exlegi-shop *::after { box-sizing: border-box; }

.exlegi-shop__toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(170px, 210px);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(72, 104, 122, .36);
  border-radius: 15px;
  background: rgba(255, 255, 255, .65);
}

.exlegi-shop__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.exlegi-shop__filter,
.exlegi-shop__order select,
.exlegi-shop__search input {
  min-height: 34px;
  border: 1px solid rgba(72, 104, 122, .5);
  border-radius: 999px;
  color: var(--shop-blue);
  background: transparent;
  font: 600 12px/1.2 "Mulish", sans-serif;
}
.exlegi-shop__filter { padding: 7px 15px; cursor: pointer; }
.exlegi-shop__filter.is-active { border-color: var(--shop-blue); color: var(--shop-ivory); background: var(--shop-blue); }
.exlegi-shop__search { position: relative; display: flex; align-items: center; }
.exlegi-shop__search > span[aria-hidden] { position: absolute; left: 14px; z-index: 1; font-size: 20px; color: var(--shop-blue); }
.exlegi-shop__search input { width: 100%; padding: 8px 15px 8px 38px; outline: none; }
.exlegi-shop__search input:focus,
.exlegi-shop__order select:focus { border-color: var(--shop-blue); box-shadow: 0 0 0 2px rgba(72, 104, 122, .14); }
.exlegi-shop__order { position: relative; display: block; min-width: 0; }
.exlegi-shop__order::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--shop-blue);
  border-bottom: 2px solid var(--shop-blue);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.exlegi-shop__order select {
  width: 100%;
  padding: 7px 42px 7px 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  outline: none;
  cursor: pointer;
}
.exlegi-shop__count { margin: 18px 0 20px; color: var(--shop-blue); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.exlegi-shop__catalog-shell { position: relative; }
.exlegi-shop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.exlegi-shop-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(43, 51, 49, .14);
}
.exlegi-shop-card[hidden] { display: none !important; }
.exlegi-shop-card__cover {
  position: relative;
  display: flex;
  min-height: 245px;
  margin: 12px 12px 0;
  padding: 50px 20px 24px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 13px;
  color: var(--shop-ivory);
  text-decoration: none;
}
.exlegi-shop-card__cover--blue { background: var(--shop-blue); }
.exlegi-shop-card__cover--olive { background: var(--shop-olive); }
.exlegi-shop-card__cover--sage { background: #9db1ac; color: var(--shop-blue); }
.exlegi-shop-card__cover.has-image { background: #d7d2bf; }
.exlegi-shop a.exlegi-shop-card__cover:hover,
.exlegi-shop a.exlegi-shop-card__cover:focus-visible { color: var(--shop-ivory); }
.exlegi-shop a.exlegi-shop-card__cover--sage:hover,
.exlegi-shop a.exlegi-shop-card__cover--sage:focus-visible { background: var(--shop-blue); }
.exlegi-shop-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exlegi-shop-card__cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 28, 33, .08), rgba(18, 28, 33, .58)); }
.exlegi-shop-card__type,
.exlegi-shop-card__cover-title,
.exlegi-shop-card__brand { position: relative; z-index: 1; }
.exlegi-shop-card__type { position: absolute; top: 14px; left: 14px; padding: 6px 13px; border-radius: 999px; color: var(--shop-blue); background: var(--shop-ivory); font-size: 11px; font-weight: 700; }
.exlegi-shop-card__cover-title { max-width: 92%; align-self: flex-start; font: 500 22px/1.16 "Drugs", sans-serif; }
.exlegi-shop-card__brand { font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.exlegi-shop-card__body { display: flex; flex: 1; padding: 20px 18px 17px; flex-direction: column; }
.exlegi-shop-card__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--shop-olive); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.exlegi-shop-card__title { margin: 14px 0 10px; font: 500 21px/1.17 "Drugs", sans-serif; }
.exlegi-shop-card__title a { color: var(--shop-blue); text-decoration: none; }
.exlegi-shop-card__excerpt { font-size: 13px; line-height: 1.38; }
.exlegi-shop-card__excerpt p { margin: 0; }
.exlegi-shop-card__details { margin: 16px 0 12px; padding: 9px 13px; border-radius: 999px; color: var(--shop-olive); background: var(--shop-ivory); font-size: 11px; text-align: center; letter-spacing: .05em; }
.exlegi-shop-card__footer { display: flex; margin-top: auto; align-items: center; justify-content: space-between; gap: 14px; }
.exlegi-shop-card__price { color: var(--shop-blue); font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.exlegi-shop-card__button,
.exlegi-shop-card__button.button {
  min-height: 32px;
  margin: 0;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--shop-ivory);
  background: var(--shop-blue);
  font: 700 11px/1.2 "Mulish", sans-serif;
  text-decoration: none;
}
.exlegi-shop-card:nth-child(3n + 2) .exlegi-shop-card__button,
.exlegi-shop-card:nth-child(3n + 2) .exlegi-shop-card__button.button { background: var(--shop-olive); }
.exlegi-shop__empty { margin: 26px 0 0; padding: 22px; border-radius: 14px; background: rgba(225, 209, 179, .45); text-align: center; }
.exlegi-shop__arrow { display: none; }

@media (max-width: 1024px) {
  .exlegi-shop__toolbar { grid-template-columns: 1fr 1fr; }
  .exlegi-shop__filters { grid-column: 1 / -1; }
  .exlegi-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 767px) {
  .exlegi-shop__toolbar { grid-template-columns: minmax(0, 1fr) minmax(125px, .72fr); gap: 8px; padding: 7px; }
  .exlegi-shop__filters { grid-column: 1 / -1; order: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .exlegi-shop__filters::-webkit-scrollbar { display: none; }
  .exlegi-shop__filter { flex: 0 0 auto; min-height: 32px; padding: 6px 13px; font-size: 12px; }
  .exlegi-shop__count { margin: 16px 8px 18px; font-size: 12px; }
  .exlegi-shop__catalog-shell { padding: 0 20px; }
  .exlegi-shop__grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .exlegi-shop__grid::-webkit-scrollbar { display: none; }
  .exlegi-shop-card { flex: 0 0 100%; scroll-snap-align: center; }
  .exlegi-shop-card__cover { min-height: 230px; }
  .exlegi-shop-card__cover-title { font-size: 21px; }
  .exlegi-shop-card__title { font-size: 20px; }
  .exlegi-shop-card__excerpt { font-size: 14px; }
  .exlegi-shop__arrow {
    position: absolute;
    z-index: 3;
    top: 42%;
    display: grid;
    width: 36px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 0;
    color: var(--shop-blue);
    background: transparent;
    font-size: 40px;
    cursor: pointer;
  }
  .exlegi-shop__arrow--prev { left: -12px; }
  .exlegi-shop__arrow--next { right: -12px; }
}
