.section .item-main {
  width: 100%;
  min-height: 100dvh;
  height: 100%;
  font-size: 15px;
}

.item-main h2.logo {
  display: block;
  width: 162px;
  height: 30px;
  margin: 0 auto;
  background: var(--img-logo) no-repeat;
  background-size: cover;
}

.item-main h3 {
  font-size: 32px;
  line-height: 42px;
  margin: 34px 0 20px;
}

.item-main p:nth-of-type(2) {
  margin: 10px 0 32px;
}

.item-main .search-form {
  width: 100%;
}

.item-main .search-form .form-inner {
  width: 100%;
  max-width: 748px;
  margin: 0 auto;
  padding: 9px 16px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-orange-100);
}

.item-main .form-inner:focus-within {
  border-color: var(--color-primary);
}

.item-main .search-form .form-inner .icon {
  min-width: 26px;
}

.item-main .search-form .form-inner input {
  margin: 0 14px 0 4px;
  border: none;
}

.item-main .search-form .btn {
  min-width: 100px;
  width: 100px;
  height: 46px;
}

.item-main .search-helper {
  margin-top: 18px;
  font-size: 14px;
}

.item-main .search-title,
.item-main .search-helper {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  opacity: 1;
  transform: translateY(0);
}

.item-main .search-helper .btn-border {
  font-size: 14px;
  line-height: 30px;
  font-weight: 400;
}

.item-main .search-helper .helper-tags,
.item-main .search-helper .tag-list {
  gap: 10px;
}

.item-main .search-helper .helper-tags h4 {
  min-width: max-content;
  margin-top: 7px;
}

.item-main .search-helper .helper-login {
  margin-top: 44px;
  font-size: 13px;
  gap: 14px;
}

.item-main .search-helper .helper-login a {
  font-size: 15px;
  text-decoration: underline;
}


/* ---------------- 검색 결과 */
.section.is-search-mode {
  background-color: var(--color-white);
}

.section.is-search-mode .item-main {
  margin: 0 auto;
  min-height: auto;
  justify-content: start !important;
  align-items: flex-start !important;
  padding: 84px 16px 0 16px;

}

.section.is-search-mode .item-main .search-form {
  order: 1;
  width: 100%;
}

.section.is-search-mode .item-main .search-title {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  order: 2;
  margin: 0 auto;
}

.section.is-search-mode .item-main .search-helper {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  order: 3;
  margin: 0 auto;
}

/* 스켈레톤(result) 분리 후 올라오는 애니메이션 */
.section.is-search-mode .result.is-moving {
  position: absolute;
  top: 130px;
  /* 검색창만 남았을 때의 위치 */
  left: 0;
  width: 100%;
  animation: skeletonSlideUp 0.5s ease-out forwards;
}

@keyframes skeletonSlideUp {
  0% {
    transform: translateY(200px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.section.is-search-mode .item-main .form-inner {
  box-shadow: none !important;
  padding: 2px 14px;
  border-color: var(--color-gray-100);
}

.section.is-search-mode .item-main .search-form .form-inner input {
  margin: 0 14px 0 4px;
}

.section.is-search-mode .item-main .search-form .btn {
  min-width: 70px;
  width: 70px;
  height: 34px;
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--space-2);
}

.result {
  padding: 28px 20px;
  position: relative;
}

.result .skeleton {
  width: 100%;
  padding: 28px 20px;
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
}

.result.is-loading .skeleton-top .image {
  width: 170px;
  height: 170px;
  margin-right: 16px;
}

.skel-w-sm {
  /* width: 100%; */
  width: 90px;
}

.skel-w-md {
  width: 160px;
}

.skel-w-lg {
  /* width: 100%; */
  width: 260px;
}

.skel-h-sm {
  height: 22px;
}

.skel-h-md {
  height: 28px;
}

.skel-h-lg {
  height: 40px;
}

.result.is-loading .skeleton-list li:nth-child(2) {
  margin: 6px 0;
}

.result.is-loading .skeleton-list li:nth-child(4) {
  margin: 52px 0 16px;
}

.result.is-loading .skeleton-bottom .thumbnail {
  width: 260px;
  height: 28px;
  margin: 20px 0 16px;
}

.result.is-loading .skeleton-bottom .card-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.result.is-loading .skeleton-bottom .card .image {
  width: 100%;
  height: 148px;
}

.result.is-loading .skeleton-bottom .card .text {
  padding: 14px 12px;
}

.result.is-loading .skeleton-bottom .card .text .skel-w-md {
  margin: 8px 0 26px;
}

.bg-gray-100.is-shimmer {
  position: relative;
  overflow: hidden;
}

.bg-gray-100.is-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.0) 100%);
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}




.result-box .result-header {
  padding: 0 22px;
  height: 40px;
  font-size: 15px;
  gap: 12px;
  border-color: #FEF7DB;
}

.result-box .result-header h3 {
  font-size: 16px;
}

.result-box .result-item {
  gap: 15px;
  font-size: 13px;
  padding: 20px 18px 34px 18px;
}

.result-box .result-item .thumb {
  width: 170px;
  height: 170px;
  background: var(--img-result) no-repeat;
  background-size: cover;
}

.result-box .result-item .tag {
  gap: 14px;
}

.delivery-rocket {
  gap: 6px;
}

.delivery-rocket span.icon {
  width: 18px;
  height: 18px;
  background-image: var(--icon-rocket);
  background-size: 18px 18px;
}

.result-box .result-item .result-info .name {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 14px 0 6px;
}

.result-box .result-info .price {
  font-size: 14px;
  margin: 52px 0 18px;
}

.result-box .result-info .price .price-current {
  font-size: 26px;
}

.result-box .result-info .price .price-current .price-unit {
  font-size: 21px;
}

.result-box .result-info .price .price-discount {
  display: block;
  margin: 0 4px 0 12px;
}

.price .price-original {
  text-decoration: line-through;
}

.result-box .result-info .buy-btn {
  display: block;
  width: 150px;
  height: 40px;
}

.result-box .result-info .buy-btn a {
  width: 100%;
  height: 100%;
  gap: 8px;
  font-size: 15px;
}

.result-box .result-info .buy-btn a span.icon {
  width: 20px;
  height: 20px;
  background-image: var(--icon-shoppingCart);
  background-size: 20px 20px;
}

.result-content {
  opacity: 0;
  visibility: hidden;
}

.result-content .content-recommend {
  margin-top: 40px;
  padding-bottom: 24px;
}

.content-recommend .recommend {
  font-size: 15px;
  gap: 6px;
}

.content-recommend .recommend span.icon {
  width: 20px;
  height: 20px;
  background-image: var(--icon-sparkles);
}

.content-recommend .recommend .badge {
  width: max-content;
  margin-left: 4px;
}

.content-recommend .sort-button {
  width: 114px;
  height: 34px;
  padding: 0 12px;
  border-color: var(--color-gray-550);
}

.content-recommend .sort-button span.icon {
  background-image: var(--icon-triangle);
  width: 10px;
  height: 10px;
}

.content-recommend .sort-list {
  width: 114px;
  top: 36px;
  left: 0;
}

.content-recommend .sort-list button {
  width: 100%;
  padding: 8px 14px;
  text-align: left;
  color: var(--color-gray-700);
}

.content-recommend .sort-list button:hover {
  background-color: var(--color-gray-60);
}

.recommend-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.recommend-list .recommend-item {
  transition: all 0.3s;
}

.recommend-list .recommend-item:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-orange-200);
}

.recommend-list .item-thumb {
  width: 100%;
  height: 148px;
  background: var(--img-result) no-repeat;
  background-position: center;
  background-size: contain;
}

.recommend-list .item-info {
  padding: 18px 12px 12px 12px;
  font-size: 12px;
}

.recommend-list .item-info .badge {
  margin: 0 0 0 auto;
  border: none;
  text-align: center;
}

.recommend-list .item-info .name {
  height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 10px 0 4px;
}

.recommend-list .item-info .rating {
  gap: 2px;
  font-size: 12px;
  margin: 6px 0 14px 0;
}

.recommend-list .item-info .rating .icon {
  background-image: var(--icon-star);
  width: 12px;
  height: 12px;
}

.recommend-list .item-info .price > div {
  gap: 8px;
}

.recommend-list .item-info .price > div .price-current {
  font-size: 16px;
}

.recommend-list .item-info .price > p {
  margin-top: 2px;
}

.recommend-list .item-info .btn-border {
  height: 36px;
  margin-top: 15px;
  border-color: var(--color-border);
  border-radius: 8px;
  font-size: 13px;
}

.recommend-list .item-info .btn-border:hover {
  background-color: var(--color-border-hover);
}

.recommend-list .item-info .btn-border a {
  width: 100%;
  height: 100%;
}

/* --- 막대형 로딩 스피너 --- */
.loading {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 40px auto;
}

.loading .bar {
  position: absolute;
  top: 0;
  left: 14px; /* 32/2 - 2 */
  width: 4px;
  height: 9px;
  background-color: var(--color-primary); 
  border-radius: 4px;
  opacity: 0.2;
  transform-origin: 50% 16px; /* height/2 = 16 */
  animation: loading-fade 0.8s infinite linear;
}

.loading .bar:nth-child(1) { transform: rotate(0deg);   animation-delay: -0.7s; }
.loading .bar:nth-child(2) { transform: rotate(45deg);  animation-delay: -0.6s; }
.loading .bar:nth-child(3) { transform: rotate(90deg);  animation-delay: -0.5s; }
.loading .bar:nth-child(4) { transform: rotate(135deg); animation-delay: -0.4s; }
.loading .bar:nth-child(5) { transform: rotate(180deg); animation-delay: -0.3s; }
.loading .bar:nth-child(6) { transform: rotate(225deg); animation-delay: -0.2s; }
.loading .bar:nth-child(7) { transform: rotate(270deg); animation-delay: -0.1s; }
.loading .bar:nth-child(8) { transform: rotate(315deg); animation-delay: 0s; }

@keyframes loading-fade {
  0% { opacity: 1; }
  100% { opacity: 0.2; }
}





@media (max-width: 767px) {}


@media (max-width: 600px) {

  .skel-w-lg {
    width: 100%;
  }

  .skel-w-md {
    width: 120px;
  }

  .top-btn {
    width: 50px !important;
    height: 50px !important;
  }


  .item-main {
    padding: 0 16px;
  }

  .item-main h2.logo {
    width: 140px;
    height: 26px;
  }

  .item-main h3 {
    font-size: 24px;
    line-height: 34px;
  }

  .item-main .search-title .search-sub01 {
    display: none !important;
  }

  .item-main .search-title .search-sub02 span {
    display: block;
    margin: 2px 0;
  }

  .item-main .search-form .form-inner {
    padding: 5px 12px;
  }

  .item-main .search-form .form-inner .icon {
    min-width: 20px;
    width: 22px;
    height: 22px;
  }

  .item-main .search-form .form-inner input {
    padding: 0 4px;
  }

  .item-main .search-form .btn {
    min-width: 74px;
    width: 74px;
    height: 44px;
  }

  .result-box .result-header {
    font-size: 14px;
  }

  .item-main .search-helper,
  .item-main .search-helper .btn-border {
    font-size: 13px;
  }

  .item-main .search-helper .btn-border {
    padding: 0 10px;
    font-weight: 500;
  }

  .item-main .search-helper .helper-tags, 
  .item-main .search-helper .tag-list {
    gap: 5px;
  }

  .result.is-loading .skeleton-bottom .card-list,
  .recommend-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .result.is-loading .skeleton-bottom .card-list .card:nth-of-type(3) {
    display: none;
  }

  .section.is-search-mode .item-main {
    padding-top: 64px;
  }

  .result {
    padding: 28px 16px;
  }

  .result-box .result-item {
    padding: 16px 14px 26px 14px;
  }

  .result-box .result-item .thumb {
    min-width: 140px;
    width: 140px;
    height: 140px;
  }

  .result-box .result-item .result-info .name {
    font-size: 15px;
    margin: 8px 0 4px;
  }

  .result-box .result-info .price .price-current {
    font-size: 22px;
  }

  .result-box .result-info .price {
    flex-wrap: wrap;
    margin: 30px 0 18px;
  }
  .result-box .result-info .price .price-discount {
    margin-left: 6px;
  }
  .price .price-original {
    width: 100%;
  }

  .result-box .result-info .buy-btn {
    width: 100%;
  }

  .result-content .content-recommend {
    margin-top: 24px;
  }

  .recommend-list {
    margin-top: 20px;
  }


}

