@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* **************************************************************************************
* 상품 옵션 및 컬러 스와치 CSS
Creation Date : 2026-08-14
************************************************************************************** */

/* 컬러 스와치 스타일 */
.options_required_label {
  background-color: #F04438;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 10px;
  color: white;
  margin-left: 8px;
  font-weight: normal;
  display: inline-block;
  line-height: normal;
}

.color_swatch_wrapper,
.options_required_label {
  display: none;
}

.color_swatch_wrapper {
  position: relative;
}

#select_option_lay .color_swatch_wrapper,
#select_option_lay .color_swatch_selection_area {
  max-width: 100%;
}

.color_swatch_selection_area.swatch-swiper {
  position: relative;
  overflow: hidden;
  margin: 0;
  margin-top: 12px;
  padding: 6px 4px 8px;
}

#select_option_lay .color_swatch_wrapper .color_swatch_selection_area {
  overflow: hidden;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  overflow: visible;
}

.color_swatch_selection_area .swiper-slide.swatch-item {
  width: 50px;
  flex-shrink: 0;
  overflow: visible;
}

.swatch-item img.swatch-img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  outline: none;
  box-shadow: 0 0 0 0 transparent;
  object-fit: cover;
  transition: box-shadow 0.15s ease;
}

.swatch-item.active img.swatch-img {
  box-shadow: 0 0 0 2px #7F56D9;
}

.swatch-item .swatch-tick {
  display: none !important;
  position: absolute;
  top: -5px;
  right: 6px;
  width: 14px !important;
  height: 14px !important;
  margin: 0;
  padding: 0;
  z-index: 10;
  pointer-events: none;
  object-fit: contain;
}

.swatch-item.active .swatch-tick {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.swatch-item.soldout {
  opacity: 0.4;
  cursor: not-allowed;
}

.swatch-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  text-align: center;
  width: 50px;
  max-width: 50px;
  line-height: 1.3;
}

.swatch-swiper-btn {
  position: absolute;
  top: 20%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20,20,43,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: #1a1a2e;
  transition: opacity .2s ease, background .2s ease;
}
.swatch-swiper-btn.swatch-swiper-prev { left: -4px; }
.swatch-swiper-btn.swatch-swiper-next { right: -4px; }
.swatch-swiper-btn.swiper-button-disabled { opacity: 0; pointer-events: none; }
.swatch-swiper-btn svg { width: 14px; height: 14px; }
.swatch-swiper-btn:hover { background: #f2eefe; color: #7c5cff; }

@media (max-width: 480px) {
  #select_option_lay .color_swatch_wrapper {
    padding: 0 18px;
    box-sizing: border-box;
  }
  #select_option_lay .swatch-swiper-btn {
    width: 24px;
    height: 24px;
  }
  #select_option_lay .swatch-swiper-prev {
    left: 5px;
    top: 9px;
  }
  #select_option_lay .swatch-swiper-next {
    right: 5px;
    top: 9px;
  }
}

.goods_option_table .fm-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 41px;
  margin-top: 10px;
  padding: 0 36px 0 12px;
  font-size: 13px;
  color: #111;
  background-color: #fff;
  border: 0;
  border-radius: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.goods_option_table .fm-select:disabled {
  background-color: #f5f5f5;
  color: #9a9a9a;
  cursor: not-allowed;
}

:root {
  --rt-purple: #7b3fe4;
  --rt-purple-dark: #5422ba;
}

#select_option_lay .realtrend-select-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 10px;
  z-index: 1;
}

#select_option_lay .realtrend-select-wrap.is-open {
  z-index: 30;
}

#select_option_lay .realtrend-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  pointer-events: none;
}

#select_option_lay .realtrend-select-wrap.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

#select_option_lay .realtrend-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#select_option_lay .realtrend-select-trigger {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 46px;
  padding: 0 36px 0 12px;
  border: 1px solid #ded8e8;
  border-radius: 10px;
  color: #111;
  background: #fff;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

#select_option_lay .realtrend-select-wrap.is-open .realtrend-select-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#select_option_lay .realtrend-select-trigger:focus {
  outline: none;
}

#select_option_lay .realtrend-select-trigger:focus-visible {
  outline: 2px solid var(--rt-purple);
  outline-offset: 2px;
}

#select_option_lay .realtrend-select-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#select_option_lay .realtrend-select-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  margin: 0;
  padding: 10px 6px 6px 6px;
  list-style: none;
  border: 1px solid #ded8e8;
  border-top: 0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 12, 26, 0.14);
  max-height: min(220px, 40dvh);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: #c4b0f0 transparent;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

#select_option_lay .realtrend-select-menu:not(.is-open) {
  display: none;
}

#select_option_lay .realtrend-select-menu::-webkit-scrollbar {
  width: 6px;
}

#select_option_lay .realtrend-select-menu::-webkit-scrollbar-track {
  background: transparent;
}

#select_option_lay .realtrend-select-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c4b0f0;
}

#select_option_lay .realtrend-select-menu::-webkit-scrollbar-thumb:hover {
  background: #b49cec;
}

#select_option_lay .realtrend-select-menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #111;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#select_option_lay .realtrend-select-menu li:hover,
#select_option_lay .realtrend-select-menu li.is-selected {
  color: var(--rt-purple);
  background: #f2ebff;
}

#select_option_lay .realtrend-select-menu li.is-sold-out {
  opacity: 0.34;
  cursor: not-allowed;
  pointer-events: none;
}

#select_option_lay .realtrend-select-menu li.is-sold-out:hover,
#select_option_lay .realtrend-select-menu li.is-sold-out.is-selected {
  color: #111;
  background: transparent;
}

#select_option_lay .realtrend-select-swatch-img {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

#select_option_lay .realtrend-select-option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.goods_option_table tr.optionTr td {
  padding: 0;
}

/* 선택된 옵션 목록 (goods_quantity_table) */
.goods_quantity_table {
  background-color: transparent !important;
}

#select_option_lay .goods_quantity_table tr.quanity_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 5px;
  padding: 0px 10px;
  border: 1px solid #ece7f4;
  border-radius: 14px;
  background: #fff;
}

#select_option_lay .goods_quantity_table tr.quanity_row td {
  border: 0 !important;
}

#select_option_lay .goods_quantity_table tr.quanity_row .quantity_cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

#select_option_lay .option_text {
  flex: 1 1 auto;
  min-width: 0;
  color: #171320;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  word-break: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#select_option_lay .option_text .option-title-icon {
  height: 14px;
  width: 14px;
  margin-right: 10px;
  vertical-align: -2px;
}

#select_option_lay .num_price {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

#select_option_lay .num_price,
#select_option_lay .num_price > li:first-child {
  flex-shrink: 0;
}

#select_option_lay .num_price > li:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  height: 29px;
  border: 1px solid #ece7f4;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

#select_option_lay .num_price .eaMinus,
#select_option_lay .num_price .eaPlus {
  width: 34px !important;
  height: 38px !important;
  border: 0;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

#select_option_lay .num_price input.ea_change {
  width: 26px;
  border: 0;
  box-sizing: border-box;
  background: transparent;
  color: #171320;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  -moz-appearance: textfield;
}
#select_option_lay .num_price input.ea_change::-webkit-outer-spin-button,
#select_option_lay .num_price input.ea_change::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#select_option_lay .option_col_price {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #171320;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

#select_option_lay .removeOption {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, background 0.2s ease;
}

#select_option_lay .removeOption:hover {
  opacity: 1;
  background: #fdeaea;
}

@media (max-width: 480px) {
  #select_option_lay .option_text .option-title-icon {
    margin-right: 6px;
  }

  #select_option_lay .goods_quantity_table tr.quanity_row {
    padding: 0;
  }

  #select_option_lay .goods_quantity_table tr.quanity_row .quantity_cell {
    gap: 5px;
  }

  .goods_quantity_table .option_text {
    width: 35%;
  }

  .goods_quantity_table .num_price {
    width: 60%
  }

  #goods_view_quickview .goods_quantity_table .option_text {
    width: 35%;
  }

  #goods_view_quickview .goods_quantity_table .num_price {
    width: 60%;
  }
}

.realtrend-select-menu li {
  padding: 0;
  font-size: 12px;
}
