.ratio:hover {
  cursor: pointer;
}

.ratio-1x1 {
  width: 50vh;
}

.swiper-slide.swiper-slide-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide.swiper-slide-prev {
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-slide.swiper-slide-next {
  display: flex;
  align-items: center;
  justify-content: center;
}

div#categories {
  background-color: #f5f5f5;
  padding: 1em;
  border-radius: 1em;
  margin-bottom: 1em;
}
#weeklyBanner {
  img {
    border-radius: 0 0 5px 5px;
  }
}
.pagination {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  list-style: none;
  gap: 0.5rem;
}

.pagination li {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  font-size: 0.9rem;
  color: #818386;
}

.pagination li.active {
  background-color: #818386;
  color: #fff;
  border-color: #818386;
}

.pagination li:hover:not(.active) {
  background-color: #e9ecef;
  border-color: #ddd;
}

#select-all-items::after {
  display: none;
}

.nav-link.active {
  background-color: #e9f5ff;
}

.skeleton-card {
  background-color: #f0f0f0;
  border-radius: 0.5rem;
  height: 300px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    background-color: #f0f0f0;
  }

  50% {
    background-color: #e0e0e0;
  }

  100% {
    background-color: #f0f0f0;
  }
}

.skeleton-line {
  height: 18px;
  width: 70%;
  background-color: #f0f0f0;
  border-radius: 4px;
  margin-bottom: 10px;
  animation: pulse 1.5s infinite ease-in-out;
}

.swiper-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: auto;
  height: auto;
  border: 2px solid #ddd; /* 기본 border 색상 */
  border-radius: 6px; /* 라운드 정도 */
  transition: border-color 0.2s ease-in-out;
}

.swiper-thumb:hover {
  border-color: #007bff; /* 호버 시 파란 테두리 */
}

:root {
  --swiper-thumbnail-border-radius: 6px;
  --swiper-thumbnail-opacity: 0.5;
  --swiper-thumbnail-opacity-active: 1;
}

.swiper-thumb-img {
  border-radius: var(--swiper-thumbnail-border-radius);
  opacity: var(--swiper-thumbnail-opacity);
  transition: opacity 0.2s ease-in-out;
}

.swiper-thumb.swiper-slide-thumb-active .swiper-thumb-img {
  opacity: var(--swiper-thumbnail-opacity-active);
}

/* category style */
#filter {
  /* border: 1px solid lightgray;
    border-radius: 5px;
    padding: 10px;
    margin-right: 0.5em;
    margin-bottom: 0.5em; */

  .filter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .cont {
    width: 90%;
  }
}

.dropdown-menu.show {
  width: 53vw;
  border-radius: 15px;
}

.button-3 {
  width: 100%;
  padding: 0.5rem;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-align: center;
}

#dropdownOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 998;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

#dropdownOverlay.show {
  opacity: 1;
  visibility: visible;
}

/* card design */
#productCardCont {
  .card {
    background-color: #f2f5f7;
    height: 22em;
  }
  .img-cont {
    background-color: white;
    height: 145px;
    border-radius: 1em;
    margin: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      max-width: 80%;
      max-height: 80%;
      object-fit: contain;
    }
  }
  .card-body {
    padding: 0 0.75em 1em;
    h6 {
      text-decoration-line: line-through;
    }
  }
  .card-title {
    margin: 6px 0px 6px 0 !important;
    line-height: normal !important;
    border-left: none !important;
    padding-left: 0 !important;
    height: auto !important;

    .title-en,
    .title-ko {
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.3em;
      max-height: calc(1.3em * 2);
    }
    .title-en {
      display: block;
      font-size: 0.9rem;
      font-weight: 500;
      color: #333;
    }

    .title-ko {
      display: block;
      font-size: 0.9rem;
      font-weight: 400;
      color: #777;
      margin-top: 0.1em;
    }
  }
}

@media (max-width: 576px) {
  #productCardCont {
    .card-title {
      margin: 2px 0px 2px 0 !important;
      line-height: normal !important;
      border-left: none !important;
      padding-left: 0 !important;
      height: auto !important;
    }
    .title-ko {
      display: block;
      font-size: 0.85rem;
      font-weight: 500;
      white-space: nowrap; /* 한 줄로 유지 */
      overflow: hidden; /* 넘치는 내용 숨김 */
      text-overflow: ellipsis; /* ...으로 표시 */
    }
    .img-cont {
      background-color: white;
      height: 145px;
      border-radius: 1em;
      margin: 0.4rem;
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        max-width: 80%;
        max-height: 80%;
        object-fit: contain;
      }
    }
  }
}

/* ############### product detail page ####################*/

#productImgCont {
  .swiper-gallery {
    .thumbnail-nav {
      gap: 8px;
    }

    .thumb-img {
      width: 100px;
      height: 100px;
      object-fit: contain;
      border: 2px solid transparent;
      border-radius: 6px;
      cursor: pointer;
      transition: border 0.3s;
      opacity: 0.5;
    }
    .thumb-img:hover,
    .thumb-img.active {
      border-color: #e4e3d3;
    }
    .thumb-img.active {
      opacity: 1;
    }
    .swiper-wrapper {
      width: 500px;
      height: 350px;
    }
    .swiper-slide {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}

.custom-breadcrumb {
  a {
    color: #333;
  }
  .item.active {
    color: #777;
  }
}
.original-price {
  text-decoration-line: line-through;
  font-size: 16px;
  color: gray !important;
  margin-left: 1em;
  font-weight: 400;
}
#accordionProductInfo {
  button {
    color: #333;
    display: flex;
    justify-content: space-between;
  }
}

div#headingOne,
div#headingTwo {
  padding: 0;
}
.ad-img {
  img {
    width: 100%;
  }
}

/* ad swiper */
#adSwiper {
  width: 100%;
  img {
    width: 100%;
  }
}
/* mobile media query */
@media (max-width: 575px) {
  /* filter button */
  .dropdown-menu.show {
    width: 70vw;
  }
  .special-heading {
    font-size: 30px;
    text-align: center;
    margin-bottom: 0.75rem;
  }
}

/***** single ads page css *******/
.carousel-wrapper {
  position: relative;
}
.carousel-side-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.025);
}
.carousel-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.carousel-side-btn.left {
  left: 8px;
}
.carousel-side-btn.right {
  right: 8px;
}

/* mobile media query */
@media (max-width: 575px) {
  .carousel-side-btn {
    opacity: 1;
    transition: none;
  }
}

.ai-info {
  font-size: 0.8rem;
  font-style: italic;
}

hr.vr {
  display: inline-block !important;
  width: 0.05rem !important;
  height: 100% !important;
  background-color: #cfcfcf !important;
  border: none !important;
  margin: 0 0.5rem 0 0.5rem !important;
}

.card-body p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}