@charset "utf-8";

/* Main Collection Grid — Figma 183:10305 (Thema Best) */
.mMainCollection.mainCollectionGrid {
  position: relative;
  padding-bottom: 64px;
  background: #fff;
}

/* Header — title + nav (Figma 183:10307) */
.mainCollectionGrid__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 40px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--gray2, #ddd);
}

.mainCollectionGrid__head .mTit {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.4;
}

.mainCollectionGrid__head .swiperBtnArea {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.mainCollectionGrid__head .swiperBtnArea .btnNext {
  margin-left: 0;
}

.mainCollectionGrid__head .swiperBtnArea .btnPrev.swiper-button-disabled,
.mainCollectionGrid__head .swiperBtnArea .btnNext.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.mainCollectionGrid__body {
  padding-top: 40px;
  overflow: hidden;
}

.mainCollectionGrid .collectionSwiper {
  margin-top: 0;
  padding-bottom: 0;
  overflow: visible;
}

.mainCollectionGrid .collectionSwiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

/* Column — topic + asset list */
.mainCollectionCol {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  max-width: 512px;
}
.swiper-slide.mainCollectionCol:last-child {
  margin-right: 0;
}

/* Topic banner */
.mainCollectionCol__topicLink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mainCollectionCol__topic {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  padding: 40px;
  box-sizing: border-box;
}

.mainCollectionCol__topicBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mainCollectionCol__topicInner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 64px;
  width: 100%;
  min-height: 120px;
}

.mainCollectionCol__topicTitle {
  align-self: stretch;
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
  word-break: keep-all;
}

.mainCollectionCol__topicGo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid #fff;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.08);
}

.mainCollectionCol__topicGo::after {
  content: "";
  display: block;
  width: 18px;
  height: 11px;
  background: url(/type/www/img/main/btn_slideR.svg) no-repeat center / contain;
  filter: brightness(0) invert(1);
}

.mainCollectionCol__topicLink:hover .mainCollectionCol__topicBg {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

/* Asset list — horizontal row cards */
.mainCollectionCol__list {
  display: flex;
  flex-direction: column;
}

.mainProductCard--collectionRow {
  border-bottom: 1px solid var(--gray2, #ddd);
}

.mainProductCard--collectionRow:last-child {
  border-bottom: 0;
}

.mainProductCard--collectionRow .mainProductCard__link--row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  height: auto;
  padding: 32px 0;
  padding-bottom: 32px;
  color: inherit;
  text-decoration: none;
}

.mainProductCard__thumb--collectionRow {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: #f7f7f7;
}

.mainProductCard__thumb--collectionRow .mainProductCard__thumbImage {
  position: relative;
  width: 100%;
  aspect-ratio: 294 / 166;
  overflow: hidden;
}

.mainProductCard__thumb--collectionRow .mainProductCard__thumbImage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mainProductCard--collectionRow:hover
  .mainProductCard__thumb--collectionRow
  .mainProductCard__thumbImage
  img {
  transform: scale(1.03);
}

.mainProductCard--collectionRow .mainProductCard__badges {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  width: 100%;
  padding: 0 6px 6px;
  box-sizing: border-box;
}

.mainProductCard--collectionRow .mainProductCard__badge {
  padding: 2px 3px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  font-size: 12px;
  letter-spacing: -0.24px;
}

.mainProductCard__body--collectionRow {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mainProductCard--collectionRow .mainProductCard__titleKo {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.mainProductCard--collectionRow .mainProductCard__titleEn {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  opacity: 0.8;
  -webkit-line-clamp: 1;
}

.mainProductCard--collectionRow .mainProductCard__prices {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mainProductCard--collectionRow .mainProductCard__priceRow {
  gap: 10px;
  font-size: 16px;
}

.mainProductCard--collectionRow .mainProductCard__priceLabel {
  flex-shrink: 0;
  color: #000;
  font-weight: 500;
}

body[data-theme="dark-mode"]
  .mainProductCard--collectionRow
  .mainProductCard__priceLabel {
  color: #fff;
}

.mainProductCard--collectionRow .mainProductCard__priceValue {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.36px;
}

.mainProductCard--collectionRow .mainProductCard__priceValue--individual {
  color: #f14e21;
}

.mainProductCard--collectionRow .mainProductCard__priceValue--company {
  color: #e2383f;
}

.mainProductCard--collectionRow .mainProductCard__specs {
  margin-top: 0;
  gap: 4px;
}

.mainProductCard--collectionRow .mainProductCard__spec {
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: transparent;
  color: #666;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.24px;
}

.mainCollectionGrid--empty,
.mainCollectionGrid--hidden {
  display: none;
}

@media (max-width: 1040px) {
  .mainCollectionGrid__head .mTit {
    font-size: 48px;
  }

  .mainCollectionCol {
    max-width: 430px;
    width: 430px;
  }

  .mainCollectionCol__topicTitle {
    font-size: 32px;
  }

  .mainCollectionCol__topicInner {
    gap: 40px;
  }

  .mainCollectionGrid .collectionSwiper {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .mainCollectionGrid {
    padding-bottom: 40px;
  }

  .mainCollectionGrid__head {
    padding-top: 24px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray2, #ddd);
  }

  .mainCollectionGrid__head .swiperBtnArea {
    display: none;
  }

  .mainCollectionGrid__head .mTit {
    font-size: 36px;
  }

  .mainCollectionGrid__body {
    padding-top: 24px;
  }

  .mainCollectionCol__topic {
    padding: 40px;
    min-height: 166px;
  }

  .mainCollectionCol__topicTitle {
    font-size: 28px;
  }

  .mainCollectionCol__topicInner {
    gap: 64px;
  }

  .mainCollectionCol__topicGo {
    width: 48px;
    height: 48px;
  }

  .mainCollectionGrid .collectionSwiper {
    overflow: visible;
  }

  .mainCollectionGrid.mainCollectionGrid--mobileStack
    .collectionSwiper
    .swiper-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: none !important;
  }

  .mainCollectionGrid.mainCollectionGrid--mobileStack
    .collectionSwiper
    .swiper-slide.mainCollectionCol {
    width: 100% !important;
    max-width: none;
  }

  /* 마지막 카드 하단 padding 제거 — pagination과의 과도한 간격 방지 */
  .mainCollectionGrid
    .mainProductCard--collectionRow:last-child
    .mainProductCard__link--row {
    padding-bottom: 0;
  }

  .mainCollectionGrid .swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 0;
    width: 100%;
  }

  .mainCollectionGrid .swiper-pagination-bullet {
    width: 60px;
    height: 2px;
    border-radius: 0;
    background: #ddd;
    opacity: 1;
    margin: 0;
    flex-shrink: 0;
  }

  .mainCollectionGrid .swiper-pagination-bullet-active {
    background: #111;
  }

  body[data-theme="dark-mode"] .mainCollectionGrid .swiper-pagination-bullet {
    background: #3d4549;
  }

  body[data-theme="dark-mode"]
    .mainCollectionGrid
    .swiper-pagination-bullet-active {
    background: #fff;
  }

  .mainCollectionCol__cardPagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px 0;
  }

  .mainCollectionCol__cardBullet {
    width: 60px;
    height: 2px;
    border: 0;
    padding: 0;
    margin: 0;
    background: #ddd;
    cursor: pointer;
  }

  .mainCollectionCol__cardBullet.is-active {
    background: #111;
  }

  .mainProductCard--collectionRow .mainProductCard__priceValue {
    font-size: 15px;
    letter-spacing: -0.3px;
  }

  body[data-theme="dark-mode"] .mainCollectionCol__cardBullet {
    background: #3d4549;
  }

  body[data-theme="dark-mode"] .mainCollectionCol__cardBullet.is-active {
    background: #fff;
  }
}

@media (max-width: 480px) {
  .mainCollectionGrid__head .mTit {
    font-size: 32px;
  }
}
