@charset "utf-8";

.page-product .product-hero {
  border-bottom: 0;
}

/* .page-product #container.ats-product-wrap {
  width: min(1600px, calc(100% - 16.6667vw));
  min-height: 42vh;
  margin: 0 auto 150px;
  color: #17171a;
  font-size: 16px;
} */

.page-product #container.ats-product-wrap {
  width: 100%;
  max-width: 1600px;
  min-height: 42vh;
  margin: 0 auto 150px;
  color: #17171a;
  font-size: 16px;
}

.page-product #container.ats-product-wrap--editor {
  width: min(1360px, calc(100% - 16.6667vw));
  margin-top: 72px;
}

.page-product .product-visual {
  width: 100%;
  aspect-ratio: 3.2 / 1;
  overflow: hidden;
  background: #172432;
}

.page-product .product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-product .product-catalog {
    padding: 78px 0 0;
}

.page-product #fboardlist,
.page-product #bo_w,
.page-product #fwrite {
  width: 100% !important;
  max-width: none;
}

.page-product .product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
  margin-bottom: 30px;
}

.page-product .product-total {
  margin: 0;
  color: #73737a;
  font-size: 14px;
  line-height: 1.5;
}

.page-product .product-admin-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.page-product .product-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #d5d7da;
  border-radius: 0;
  background: #fff;
  color: #25262a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.page-product .product-tool:hover,
.page-product .product-tool:focus-visible,
.page-product .product-tool--primary {
  border-color: #104b9d;
  background: #104b9d;
  color: #fff;
}

.page-product .product-options {
  position: relative;
}

.page-product .product-options__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 156px;
  padding: 6px 0;
  border: 1px solid #d8d8d8;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.page-product .product-options__menu[hidden] {
  display: none;
}

.page-product .product-options__menu button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: #fff;
  color: #404146;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.page-product .product-options__menu button:hover,
.page-product .product-options__menu button:focus-visible {
  background: #f1f5fa;
  color: #104b9d;
}

.page-product .product-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #55585f;
  font-size: 13px;
  cursor: pointer;
}

.page-product .product-select-all input,
.page-product .product-card__check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #104b9d;
}

.page-product .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-product .product-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.36 / 1;
  overflow: hidden;
  border: 1px solid #d7d9dc;
  background: #fff;
}

.page-product .product-card__button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.page-product .product-card__button::after {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  content: "";
  pointer-events: none;
  transition: border-color .2s ease;
}

.page-product .product-card__button:hover::after,
.page-product .product-card__button:focus-visible::after {
  border-color: #104b9d;
}

.page-product .product-card__button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.page-product .product-card__button:hover > img,
.page-product .product-card__button:focus-visible > img {
  transform: scale(1.025);
}

.page-product .product-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f1f2f4;
}

.page-product .product-card__fallback img {
  width: 48%;
  height: auto;
  opacity: .36;
  filter: grayscale(1);
}

.page-product .product-card__check {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
}

.page-product .product-empty {
  grid-column: 1 / -1;
  padding: 110px 24px;
  border-top: 1px solid #222;
  border-bottom: 1px solid #ddd;
  color: #777;
  text-align: center;
}

.page-product .pg_wrap {
  display: block;
  margin-top: 92px;
  text-align: center;
}

.page-product .pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.page-product .pg_page,
.page-product .pg_current {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 0;
  background: #fff;
  color: #999;
  font-size: 13px;
}

.page-product .pg_current {
  color: #111;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-product .pg_start,
.page-product .pg_end {
  display: none;
}

.page-product .pg_prev,
.page-product .pg_next {
  color: transparent;
  font-size: 0;
}

.page-product .pg_prev::before,
.page-product .pg_next::before {
  color: #92959a;
  font-family: "FontAwesome";
  font-size: 14px;
}

.page-product .pg_prev::before {
  content: "\f104";
}

.page-product .pg_next::before {
  content: "\f105";
}

body.product-modal-open {
  overflow: hidden;
}

.product-modal,
.product-search {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(17, 19, 22, .68);
}

.product-modal[hidden],
.product-search[hidden] {
  display: none;
}

.product-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(1600px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.product-modal__panel:focus {
  outline: 0;
}

.product-modal__close,
.product-search__close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #81858a;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.product-modal__close:hover,
.product-modal__close:focus-visible,
.product-search__close:hover,
.product-search__close:focus-visible {
  color: #104b9d;
}

.product-modal__media {
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #073878;
}

.product-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.product-modal__media .product-modal__fallback {
  width: 48%;
  height: auto;
  opacity: .72;
  filter: brightness(0) invert(1);
}

.product-modal__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 5vw, 96px);
  background: #fff;
}

.product-modal__code {
  margin: 0 0 20px;
  color: #104b9d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.product-modal__title {
  min-width: 0;
  max-width: 80%;
  margin: 0;
  color: #151619;
  font-size: clamp(28px, 2vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: break-word !important;
  word-break: keep-all !important;
}

.product-modal__description {
  max-width: 620px;
  margin-top: 28px;
  color: #5c6067;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: break-word !important;
}

.product-modal__description img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.product-modal__edit {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 0 18px;
  border: 1px solid #104b9d;
  color: #104b9d;
  font-size: 13px;
  font-weight: 700;
}

.product-modal__edit:hover,
.product-modal__edit:focus-visible {
  background: #104b9d;
  color: #fff;
}

.product-search__panel {
  position: relative;
  width: min(620px, calc(100vw - 40px));
  padding: 44px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.product-search__panel h2 {
  margin: 0 0 28px;
  color: #18191c;
  font-size: 24px;
}

.product-search__panel form {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 92px;
  gap: 8px;
}

.product-search__panel select,
.product-search__panel input,
.product-search__panel button[type="submit"] {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d1d4d8;
  border-radius: 0;
  background: #fff;
  color: #26272a;
  font-size: 14px;
}

.product-search__panel button[type="submit"] {
  border-color: #104b9d;
  background: #104b9d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.page-product .ats-product-redirect {
  min-height: 50vh;
  padding: 100px 0;
  text-align: center;
}

/* Product editor */
.page-product #bo_w {
  color: #27282c;
}

.page-product #bo_w > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.page-product #bo_w .write_div {
  position: relative;
  margin-bottom: 14px;
}

.page-product #bo_w .frm_input,
.page-product #bo_w select,
.page-product #bo_w textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #d6d8dc;
  border-radius: 0;
  background: #fff;
  color: #222428;
  font-size: 15px;
}

.page-product #bo_w .frm_input:focus,
.page-product #bo_w select:focus,
.page-product #bo_w textarea:focus {
  border-color: #104b9d;
  outline: 2px solid rgba(16, 75, 157, .12);
}

.page-product #bo_w .bo_w_info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-product #bo_w .product-write-code label {
  display: block;
  margin-bottom: 9px;
  color: #282a2f;
  font-size: 14px;
  font-weight: 700;
}

.page-product #bo_w #autosave_wrapper {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.page-product #bo_w #autosave_wrapper .frm_input {
  min-width: 0;
  flex: 1;
}

.page-product #bo_w #btn_autosave,
.page-product #bo_w .btn_frmline {
  flex: none;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #d6d8dc;
  background: #f5f6f7;
  color: #555960;
}

.page-product #bo_w #autosave_pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  width: min(440px, 100%);
  padding: 20px;
  border: 1px solid #d8d8d8;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
}

.page-product #bo_w .wr_content textarea {
  min-height: 360px;
  padding: 18px;
  line-height: 1.75;
  resize: vertical;
}

.page-product #bo_w .wr_content iframe {
  width: 100% !important;
  max-width: 100%;
  background: #fff;
}

.page-product #bo_w .bo_w_link {
  display: none;
}

.page-product #bo_w .bo_w_flie {
  padding: 14px 16px;
  border: 1px solid #d6d8dc;
}

.page-product #bo_w .bo_w_flie .file_wr {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.page-product #bo_w .bo_w_flie .lb_icon {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #d6d8dc;
  color: #104b9d;
  font-size: 13px;
  font-weight: 800;
}

.page-product #bo_w .frm_file {
  width: 100%;
  min-height: 40px;
  color: #555960;
}

.page-product #bo_w .file_del {
  display: block;
  margin-top: 10px;
  color: #666a70;
  font-size: 13px;
}

.page-product #bo_w .btn_confirm {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #e0e2e5;
}

.page-product #bo_w .btn_confirm .btn {
  display: inline-flex;
  min-width: 120px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid #cfd2d6;
  border-radius: 0;
  background: #fff;
  color: #33363b;
  font-size: 14px;
  font-weight: 700;
}

.page-product #bo_w .btn_confirm .btn_submit {
  border-color: #104b9d;
  background: #104b9d;
  color: #fff;
}
@media (max-width: 1600px) {
.page-product .product-catalog {
    padding: 78px 6% 0;
}
}


@media (max-width: 1024px) {
  .page-product #container.ats-product-wrap,
  .page-product #container.ats-product-wrap--editor {
    width: 100%;
    margin-bottom: 110px;
  }

  .page-product #container.ats-product-wrap--editor {
    margin-top: 54px;
  }

  .page-product .product-visual {
    aspect-ratio: 2.15 / 1;
  }

  .page-product .product-catalog {
    padding-top: 58px;
  }

  .page-product .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-modal__panel {
    grid-template-columns: minmax(0, 1fr);
    width: min(760px, calc(100vw - 48px));
  }

  .product-modal__media {
    min-height: 360px;
    aspect-ratio: 1.5 / 1;
  }

  .product-modal__content {
    min-height: 340px;
    padding: 52px 48px;
  }

  .product-modal__close {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  }

  .product-modal__title {
    max-width: 100%;
  }

  .page-product .product-catalog {
    padding: 78px 6% 0;
}


}

@media (max-width: 600px) {
  .page-product #container.ats-product-wrap,
  .page-product #container.ats-product-wrap--editor {
    width: 100%;
    margin-bottom: 76px;
  }

  .page-product #container.ats-product-wrap--editor {
    margin-top: 38px;
  }

  .page-product .product-visual {
    aspect-ratio: 1.45 / 1;
  }

  .page-product .product-visual img {
    object-position: 38% center;
  }

  .page-product .product-catalog {
    padding-top: 44px;
  }

  .page-product .product-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-product .product-admin-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page-product .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-product .pg_wrap {
    margin-top: 58px;
  }

  .product-modal,
  .product-search {
    padding: 12px;
  }

  .product-modal__panel {
    display: block;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow-x: hidden;
  }

  .product-modal__media {
    width: 100%;
    max-width: 100%;
    min-height: 260px;
  }

  .product-modal__content {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    overflow: hidden;
    padding: 38px 28px;
  }

  .product-modal__title {
    width: 100%;
    white-space: normal !important;
    font-size: 27px;
  }

  .product-modal__close,
  .product-search__close {
    top: 8px;
    right: 10px;
  }

  .product-search__panel {
    width: calc(100vw - 24px);
    padding: 34px 22px 24px;
  }

  .product-search__panel form {
    grid-template-columns: 1fr;
  }

  .page-product #bo_w .bo_w_info {
    grid-template-columns: 1fr;
  }

  .page-product #bo_w #autosave_wrapper {
    flex-direction: column;
  }

  .page-product #bo_w .bo_w_flie .file_wr {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .page-product #bo_w .btn_confirm {
    flex-direction: column-reverse;
  }

  .page-product #bo_w .btn_confirm .btn {
    width: 100%;
  }
}
