.mori-store-inventory {
  max-width: 1060px;
  margin: 24px auto;
  color: #222;
}

.mori-store-inventory__synced,
.mori-store-inventory__notice,
.mori-store-inventory__message {
  color: #555;
  font-size: 13px;
  line-height: 1.7;
}

.mori-store-inventory__synced {
  margin: 16px 0 0;
}

.mori-store-inventory__message {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fafafa;
}

.mori-store-inventory__message--empty {
  margin-top: 16px;
}

.mori-store-inventory__filters {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.mori-store-inventory__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.mori-store-inventory__tab {
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #222;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.mori-store-inventory__tab:hover,
.mori-store-inventory__tab:focus-visible {
  border-color: #a00000;
  color: #a00000;
}

.mori-store-inventory__tab.is-active {
  border-color: #a00000;
  background: #a00000;
  color: #fff;
}

.mori-store-inventory__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 28px;
}

.mori-store-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eeeeee;
  border-radius: 0;
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.mori-store-card:hover {
  border-color: #dddddd;
  box-shadow: 0 8px 18px rgb(0 0 0 / 10%);
  transform: translateY(-2px);
}

.mori-store-inventory .mori-store-card__media-link,
.mori-store-inventory .mori-store-card__title-link {
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  padding: 0 !important;
  text-decoration: none;
}

.mori-store-inventory .mori-store-card__media-link {
  display: block;
}

.mori-store-inventory .mori-store-card__media-link:focus-visible,
.mori-store-inventory .mori-store-card__title-link:focus-visible {
  outline: 3px solid #1d70b8;
  outline-offset: 2px;
}

.mori-store-inventory .mori-store-card__title-link:hover {
  color: #8a1111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mori-store-card__media {
  display: grid;
  position: relative;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.mori-store-card__image {
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain;
  transition:
    opacity 0.2s ease,
    transform 0.18s ease;
}

.mori-store-card__image--hover {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  opacity: 0;
}

.mori-store-card:hover .mori-store-card__image {
  transform: scale(1.035);
}

.mori-store-card:hover .mori-store-card__media--has-hover .mori-store-card__image--primary {
  opacity: 0;
}

.mori-store-card:hover .mori-store-card__image--hover {
  opacity: 1;
}

.mori-store-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 5px 18px;
}

.mori-store-card__vendor,
.mori-store-card__title,
.mori-store-card__price {
  margin: 0;
}

.mori-store-card__vendor {
  display: none;
}

.mori-store-card__title {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
  color: #222;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.mori-store-card__title::before,
.mori-store-card__title::after {
  content: none !important;
  display: none !important;
}

.mori-store-card__price {
  color: #111;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.mori-store-card__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 2px;
}

.mori-store-card__variant {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid #2a7750;
  border-radius: 999px;
  background: #f7fbf9;
  color: #20583d;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mori-store-card__variant--more {
  border-color: #cfcfcf;
  background: #f7f7f7;
  color: #555;
}

.mori-store-inventory__more {
  display: flex;
  justify-content: center;
  margin: 28px 0 6px;
}

.mori-store-inventory__more-button {
  min-width: 92px;
  padding: 7px 14px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.mori-store-inventory__more-button:hover,
.mori-store-inventory__more-button:focus-visible {
  background: #111;
  color: #fff;
}

@media (max-width: 480px) {
  .mori-store-inventory__tabs {
    flex-wrap: nowrap;
    margin-right: -8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mori-store-inventory__tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .mori-store-inventory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mori-store-card__body {
    padding: 0 6px 14px;
  }

  .mori-store-card__title {
    font-size: 12px;
    line-height: 1.7;
  }

  .mori-store-card__price {
    font-size: 12px;
  }

  .mori-store-card__variant {
    font-size: 10px;
  }
}
