/* 사용자 화면 공통 반응형 보강 */
html,
body {
  max-width: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.ai-intro .inner {
  width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 1560px) {
  .gf .gf-top {
    column-gap: 56px;
  }

  .gf .gf-top .gf-section .gf-section--wrap .gf-categori {
    gap: 24px;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 1000px) {
  .sub-area .sub-body {
    gap: 24px;
    padding: 36px 0 64px;
  }

  .sub-area .sub-body .sticky-box,
  .sub-area .sub-body .sticky-box.w-100 {
    max-width: 100%;
  }

  .component-user-group {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .component-user-group .component-user-group__left,
  .component-user-group .component-user-group__right {
    min-width: 0;
    max-width: 100%;
  }

  .content-user-body,
  .content-user-body .inquiry-write-board,
  .content-user-body .write-board__body,
  .content-user-body .tox-tinymce,
  .component-group,
  .component-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .component-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .content-user-body .inquiry-write-board .form-table--full .form_area--line {
    min-width: 0;
    flex-direction: column;
  }

  .content-user-body .inquiry-write-board .form-table--full .form_area--line dt,
  .content-user-body .inquiry-write-board .form-table--full .form_area--line dd,
  .content-user-body .inquiry-write-board .form-table--full .form_area--line dd .component-select__box,
  .content-user-body .inquiry-write-board .form-table--full .form_area--line dd .component-select__box .component-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 640px) {
  .inner-1500,
  .hd .inner-1500 {
    width: calc(100% - 32px);
    padding-left: 0;
    padding-right: 0;
  }

  .sub-area .sub-body .sticky-box:has(> .component-user-group),
  .sub-area .sub-body .sticky-box:has(> .component-group) {
    padding: 24px 16px;
  }

  .component-user-group .component-user-group__left h3,
  .api-experience-title {
    line-height: 1.45;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  .content-user-body .inquiry-write-board > .info {
    justify-content: flex-start;
  }

  .content-user-body .inquiry-write-board .form-table--full .form_area--line dt,
  .content-user-body .inquiry-write-board .form-table--full .form_area--line dd {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .content-user-body .inquiry-write-board .form-table--full .form_area--line dt {
    padding: 14px 14px 12px 24px;
  }

  .content-user-body .inquiry-write-board .form-table--full .form_area--line dt:before {
    top: 21px;
    left: 14px;
  }

  .content-user-body .inquiry-write-board input[type="file"] {
    width: 100%;
    height: auto;
    padding: 8px 0;
    text-indent: 0;
  }

  .center_right-head {
    gap: 12px;
    flex-wrap: wrap;
  }

  .center_right-head-right {
    flex-wrap: wrap;
  }
}

/* 사용자 화면의 홈 이동 로고는 절대 위치 이미지에 의존하지 않는다. */
.hd .inner-1500 .hd-wrap .hd-logo {
  flex: 0 0 153px;
  width: 153px;
  min-width: 153px;
  height: 47px;
}

.hd .inner-1500 .hd-wrap .hd-logo > a {
  display: block;
  width: 100%;
  height: 100%;
}

.hd .inner-1500 .hd-wrap .hd-logo > a > img {
  position: static;
  display: block;
  width: 153px;
  height: 47px;
  object-fit: contain;
  object-position: left center;
}

/* 전체상품 카드와 필터를 독립 트랙에 배치해 겹침을 방지한다. */
.all_products .sub-body {
  align-items: start;
}

.all_products .sub-body .left_wide,
.all_products .sub-body .product-list,
.all_products .sub-body .product-item {
  width: 100%;
  min-width: 0;
}

.all_products .sub-body .left_wide .product-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
}

.all_products .sub-body .left_wide .product-list .product-item .round-box {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.all_products .sub-body .left_wide .round-box-footer {
  gap: 12px;
}

.all_products .sub-body .left_wide .box-labels {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.all_products .sub-body > .right {
  box-sizing: border-box;
  width: 300px;
  min-width: 300px;
}

.all_products .sub-body > .right .component-search {
  width: 100%;
}

@media screen and (min-width: 1561px) {
  .all_products .sub-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }
}

@media screen and (max-width: 1560px) {
  .all_products .sub-body {
    display: flex;
    gap: 32px;
  }

  .all_products .sub-body > .right {
    width: 100%;
    min-width: 0;
  }

  .all_products .sub-body > .right .category-section .type-area {
    padding-left: 0;
  }
}

@media screen and (min-width: 861px) and (max-width: 1280px) {
  .all_products .sub-body .left_wide .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1000px) {
  .hd .inner-1500 .hd-wrap .hd-logo {
    flex-basis: 120px;
    width: 120px;
    min-width: 120px;
    height: 37px;
  }

  .hd .inner-1500 .hd-wrap .hd-logo > a > img {
    width: 120px;
    height: 37px;
  }
}

@media screen and (max-width: 860px) {
  .all_products .sub-body .left_wide .product-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 640px) {
  .hd .inner-1500 .hd-wrap .hd-logo {
    flex-basis: 104px;
    width: 104px;
    min-width: 104px;
    height: 32px;
  }

  .hd .inner-1500 .hd-wrap .hd-logo > a > img {
    width: 104px;
    height: 32px;
  }

  .all_products .sub-body .left_wide .product-list {
    margin-top: 28px;
    gap: 20px;
  }

  .all_products .sub-body .left_wide .product-list .product-item .round-box {
    padding: 26px 22px;
  }

  .all_products .sub-body .left_wide .round-box-footer {
    align-items: flex-end;
  }
}
