/* catalog-popup.css: стили проекта.
   Комментарий: файл управляет внешним видом страницы/модуля. */

body[data-gmt-catalog-v2="1"] #rec1509781121 {
  display: none !important;
}

body[data-gmt-catalog-v2="1"] .gk-search {
  margin: 24px auto 56px;
}

/* Исправление артефакта с "?" в кнопках фильтра от наследованных псевдоэлементов */
body[data-gmt-catalog-v2="1"] .gk-filter-apply::before,
body[data-gmt-catalog-v2="1"] .gk-filter-reset::before {
  content: none !important;
  display: none !important;
}

body.gmt-catalog-modal-open {
  overflow: hidden;
}

.gmt-catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 110000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 6vh, 64px) 16px;
  overflow-y: auto;
}

.gmt-catalog-modal.is-open {
  display: flex;
}

.gmt-catalog-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.gmt-catalog-modal__dialog {
  position: relative;
  max-width: 980px;
  width: min(980px, 100%);
  margin: 0;
  max-height: calc(100vh - clamp(40px, 12vh, 96px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.gmt-catalog-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #1f2430;
}

.gmt-catalog-modal__layout {
  display: grid;
  grid-template-columns: minmax(280px, 44%) minmax(0, 1fr);
  max-height: inherit;
}

.gmt-catalog-modal__media {
  min-height: 420px;
  background: #f3f5fa;
}

.gmt-catalog-modal__image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.gmt-catalog-modal__image.is-empty {
  position: relative;
}

.gmt-catalog-modal__image.is-empty::after {
  content: "Нет фото";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8798;
  font-size: 14px;
  background: linear-gradient(145deg, #f5f7fb, #e8edf7);
}

.gmt-catalog-modal__content {
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.gmt-catalog-modal__sku {
  font-size: 13px;
  color: #68728a;
}

.gmt-catalog-modal__title {
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.gmt-catalog-modal__price {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.gmt-catalog-modal__meta {
  margin-top: 10px;
  color: #37415b;
  font-size: 14px;
}

.gmt-catalog-modal__description {
  margin-top: 18px;
  color: #30374a;
  line-height: 1.45;
  max-height: 220px;
  overflow: auto;
}

.gmt-catalog-modal__actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gmt-catalog-modal__qty {
  display: inline-flex;
  border: 1px solid #d6ddea;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}

.gmt-catalog-modal__qty-btn {
  width: 40px;
  border: 0;
  background: #f5f7fb;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.gmt-catalog-modal__qty-input {
  width: 68px;
  border: 0;
  border-left: 1px solid #d6ddea;
  border-right: 1px solid #d6ddea;
  text-align: center;
  font-size: 16px;
  padding: 8px 6px;
}

.gmt-catalog-modal__add-btn {
  border: 0;
  border-radius: 11px;
  background: #ff8a4a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 0 20px;
  cursor: pointer;
  min-height: 42px;
}

.gmt-catalog-modal__add-btn:hover {
  background: #ff7a32;
}

.gmt-catalog-modal__notice {
  min-height: 34px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.gmt-catalog-modal__notice:empty {
  padding: 0;
  border: 0;
  min-height: 24px;
}

.gmt-catalog-modal__notice.is-success {
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: auto;
  max-width: 100%;
}

.gmt-catalog-modal__notice-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(34, 86, 56, 0.12);
  border: 1px solid rgba(34, 86, 56, 0.24);
  color: #225638;
}

.gmt-catalog-modal__notice-pill {
  min-height: 34px;
  border-radius: 10px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(34, 86, 56, 0.24);
  color: #225638;
  background: rgba(228, 244, 234, 0.78);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}

.gmt-catalog-modal__notice-pill--status {
  background: rgba(228, 244, 234, 0.78);
}

.gmt-catalog-modal__notice-pill--link {
  background: rgba(228, 244, 234, 0.78);
  color: #225638;
  text-decoration: none;
  cursor: pointer;
}

.gmt-catalog-modal__notice-pill--link:hover {
  background: rgba(223, 241, 230, 0.92);
  border-color: rgba(34, 86, 56, 0.35);
  text-decoration: none;
}

.gmt-catalog-modal__notice-pill--link:active {
  background: rgba(214, 236, 222, 0.98);
}

.gmt-catalog-modal__notice-pill--link:focus-visible {
  outline: 2px solid rgba(34, 86, 56, 0.42);
  outline-offset: 2px;
  text-decoration: none;
}

.gmt-catalog-modal__notice a {
  color: #225638;
  font-weight: 600;
  text-decoration: none;
}

.gmt-catalog-modal__notice a:hover {
  text-decoration: none;
}

@media (max-width: 980px) {
  .gmt-catalog-modal {
    align-items: flex-start;
    padding: 72px 12px 20px;
  }

  .gmt-catalog-modal__dialog {
    margin: 0;
    max-width: none;
    max-height: calc(100vh - 92px);
  }

  .gmt-catalog-modal__layout {
    grid-template-columns: 1fr;
  }

  .gmt-catalog-modal__media,
  .gmt-catalog-modal__image {
    min-height: 300px;
  }

  .gmt-catalog-modal__content {
    padding: 18px 16px 16px;
  }

  .gmt-catalog-modal__title {
    font-size: 24px;
    line-height: 1.2;
    margin: 8px 0 10px;
    word-break: break-word;
  }

  .gmt-catalog-modal__price {
    font-size: 22px;
  }

  .gmt-catalog-modal__description {
    max-height: none;
    overflow: visible;
  }

  .gmt-catalog-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gmt-catalog-modal__qty {
    width: 100%;
    justify-content: stretch;
  }

  .gmt-catalog-modal__qty-input {
    flex: 1 1 auto;
    min-width: 0;
  }

  .gmt-catalog-modal__add-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .gmt-catalog-modal {
    padding: 64px 8px 12px;
  }

  .gmt-catalog-modal__dialog {
    border-radius: 14px;
    max-height: calc(100dvh - 76px);
  }

  .gmt-catalog-modal__media,
  .gmt-catalog-modal__image {
    min-height: 220px;
  }

  .gmt-catalog-modal__notice.is-success {
    grid-template-columns: 1fr;
  }
}

