.omate-storefront-record,
.omate-storefront,
.omate-storefront * {
  box-sizing: border-box;
}

.omate-storefront-record {
  background: #ffffff;
}

.omate-wholesale-catalog-page .t1261__search-found,
.omate-wholesale-catalog-page .t1261__search-loading-icon {
  display: none !important;
}

.omate-storefront {
  --omate-storefront-accent: #e09130;
  --omate-storefront-accent-hover: #cf7f22;
  --omate-storefront-ink: #333333;
  --omate-storefront-muted: #66625d;
  --omate-storefront-line: #d9d7d2;
  width: 100%;
  padding: 0 0 86px;
  background: #ffffff;
  color: var(--omate-storefront-ink);
  font-family: var(--t-text-font, Arial, sans-serif);
}

.omate-storefront__categories {
  display: grid;
  width: min(1200px, calc(100% - 40px));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
  padding: 46px 0 58px;
}

.omate-storefront--wholesale .omate-storefront__categories {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  padding-top: 28px;
}

.omate-storefront--wholesale .omate-storefront__category {
  font-size: 12px;
}

.omate-storefront__category {
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--omate-storefront-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}

.omate-storefront__category:hover,
.omate-storefront__category.is-active {
  color: var(--omate-storefront-accent);
}

.omate-storefront__grid {
  display: grid;
  width: min(1200px, calc(100% - 40px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 72px 40px;
  margin: 0 auto;
}

.omate-storefront__card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--omate-storefront-ink);
}

.omate-storefront__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 22px;
  overflow: hidden;
  border: 0;
  background: #f7f7f5;
  cursor: pointer;
}

.omate-storefront__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.omate-storefront__favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--omate-storefront-accent);
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.omate-storefront__favorite svg {
  width: 25px;
  height: 25px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: fill 180ms ease;
}

.omate-storefront__favorite[aria-pressed="true"] svg {
  fill: currentColor;
}

.omate-storefront__title-button {
  display: block;
  width: 100%;
  min-height: 3.6em;
  margin: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--omate-storefront-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  cursor: pointer;
}

.omate-storefront__description {
  min-height: 4.2em;
  margin: 11px 6px 0;
  color: var(--omate-storefront-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  text-wrap: pretty;
}

.omate-storefront__price {
  min-height: 1.4em;
  margin: 13px 0 23px;
  color: var(--omate-storefront-accent);
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.omate-storefront__options {
  display: grid;
  width: 84%;
  gap: 15px;
  margin: 0 auto;
}

.omate-storefront__field {
  display: grid;
  gap: 6px;
}

.omate-storefront__field.is-placeholder {
  visibility: hidden;
}

.omate-storefront__field-label {
  color: #52504c;
  font-size: 14px;
  line-height: 1.15;
}

.omate-storefront__select {
  width: 100%;
  height: 39px;
  padding: 0 38px 0 13px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--omate-storefront-line);
  border-radius: 7px;
  background-color: #fbfbfa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1h10L6 7z' fill='%23111111'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  color: #55524e;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.omate-storefront__actions {
  display: grid;
  width: 84%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 7px;
  margin: auto auto 0;
  padding-top: 34px;
}

.omate-storefront__quantity {
  display: grid;
  height: 48px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #8d8c89;
  border-radius: 7px;
  background: #ffffff;
}

.omate-storefront__quantity button,
.omate-storefront__quantity output {
  display: grid;
  min-width: 0;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #373633;
  font: inherit;
  font-size: 17px;
}

.omate-storefront__quantity button {
  color: #6d6b67;
  cursor: pointer;
}

.omate-storefront__quantity button:hover {
  background: #f3f2ef;
  color: #22211f;
}

.omate-storefront__add {
  min-height: 48px;
  padding: 10px 8px;
  border: 0;
  border-radius: 7px;
  background: var(--omate-storefront-accent);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.omate-storefront__add:hover {
  background: var(--omate-storefront-accent-hover);
  transform: translateY(-1px);
}

.omate-storefront__add:disabled {
  background: #8b8984;
  cursor: not-allowed;
  transform: none;
}

.omate-storefront__empty {
  display: none;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0;
  color: var(--omate-storefront-muted);
  font-size: 16px;
  text-align: center;
}

.omate-storefront__empty.is-visible {
  display: block;
}

.omate-storefront__overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.omate-storefront__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.omate-storefront__modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1110;
  width: min(960px, calc(100% - 40px));
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 15px;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 18px));
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.omate-storefront__modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.omate-storefront__modal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.omate-storefront__modal-media {
  min-height: 560px;
  background: #f7f7f5;
}

.omate-storefront__modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.omate-storefront__modal-body {
  position: relative;
  padding: 68px 50px 52px;
}

.omate-storefront__modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #333333;
  font: inherit;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
}

.omate-storefront__modal-title {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}

.omate-storefront__modal-price {
  margin-bottom: 24px;
  color: var(--omate-storefront-accent);
  font-size: 22px;
  font-style: italic;
}

.omate-storefront__modal-copy {
  color: var(--omate-storefront-muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.omate-storefront__modal-characteristics {
  display: grid;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
}

.omate-storefront__modal-characteristic {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid #eceae6;
  font-size: 13px;
  line-height: 1.35;
}

.omate-storefront__modal-characteristic dt,
.omate-storefront__modal-characteristic dd {
  margin: 0;
}

.omate-storefront__modal-characteristic dt {
  color: var(--omate-storefront-muted);
}

.omate-storefront__toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  border-radius: 8px;
  background: #2f2f2b;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.omate-storefront__toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.omate-storefront-modal-open {
  overflow: hidden;
}

.omate-storefront__category:focus-visible,
.omate-storefront__media:focus-visible,
.omate-storefront__favorite:focus-visible,
.omate-storefront__title-button:focus-visible,
.omate-storefront__select:focus-visible,
.omate-storefront__quantity button:focus-visible,
.omate-storefront__add:focus-visible,
.omate-storefront__modal-close:focus-visible {
  outline: 3px solid rgba(169, 95, 25, 0.35);
  outline-offset: 2px;
}

@media (hover: hover) {
  .omate-storefront__media:hover .omate-storefront__image {
    transform: scale(1.025);
  }

  .omate-storefront__favorite:hover {
    transform: scale(1.06);
  }
}

@media (max-width: 960px) {
  .omate-storefront__categories {
    gap: 12px;
  }

  .omate-storefront__category {
    font-size: 12px;
  }

  .omate-storefront--wholesale .omate-storefront__categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 10px;
  }

  .omate-storefront__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px 28px;
  }
}

@media (max-width: 640px) {
  .omate-storefront {
    padding-bottom: 60px;
  }

  .omate-storefront__categories {
    display: flex;
    width: calc(100% - 40px);
    flex-direction: column;
    gap: 4px;
    padding: 34px 0 42px;
  }

  .omate-storefront__category {
    padding: 7px 0;
    font-size: 14px;
  }

  .omate-storefront--wholesale .omate-storefront__categories {
    display: flex;
    gap: 4px;
  }

  .omate-storefront--wholesale .omate-storefront__category {
    font-size: 13px;
  }

  .omate-storefront__grid {
    width: calc(100% - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 14px;
  }

  .omate-storefront__media {
    margin-bottom: 16px;
  }

  .omate-storefront__favorite {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }

  .omate-storefront__favorite svg {
    width: 22px;
    height: 22px;
  }

  .omate-storefront__title-button {
    min-height: 3.7em;
    padding: 0;
    font-size: 13px;
  }

  .omate-storefront__description {
    min-height: 5.6em;
    margin-right: 0;
    margin-left: 0;
    font-size: 11px;
  }

  .omate-storefront__price {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .omate-storefront__options,
  .omate-storefront__actions {
    width: 100%;
  }

  .omate-storefront__field-label {
    font-size: 12px;
  }

  .omate-storefront__select {
    height: 36px;
    padding-right: 28px;
    padding-left: 9px;
    background-position: right 9px center;
    font-size: 12px;
  }

  .omate-storefront__actions {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 5px;
    padding-top: 25px;
  }

  .omate-storefront__quantity,
  .omate-storefront__add {
    min-height: 44px;
    height: 44px;
  }

  .omate-storefront__quantity button,
  .omate-storefront__quantity output {
    font-size: 13px;
  }

  .omate-storefront__add {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 11px;
  }

  .omate-storefront__modal {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .omate-storefront__modal-inner {
    display: block;
  }

  .omate-storefront__modal-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .omate-storefront__modal-body {
    padding: 42px 22px 32px;
  }

  .omate-storefront__modal-title {
    padding-right: 34px;
    font-size: 21px;
  }

  .omate-storefront__modal-close {
    top: 7px;
    right: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .omate-storefront__category,
  .omate-storefront__image,
  .omate-storefront__favorite,
  .omate-storefront__add,
  .omate-storefront__overlay,
  .omate-storefront__modal,
  .omate-storefront__toast {
    transition-duration: 0.01ms;
  }
}
