/* ==========================================================
   기획전 모델컷 쇼퍼블 (sale_model.html)
   팔레트: 크림 #FAFAF8 · 딥 로즈 #BE123C · 다크 그린 #166534 · 차콜 #1C1917
   ========================================================== */

.sm-page {
  --sm-bg:       #FAFAF8;
  --sm-rose:     #BE123C;
  --sm-green:    #166534;
  --sm-text:     #1C1917;
  --sm-muted:    #78716C;
  --sm-border:   rgba(190, 18, 60, 0.2);
  --sm-dot-size: 22px;

  max-width: 600px;
  margin: 0 auto;
  background: var(--sm-bg);
}

/* ----------------------------------------------------------
   에디토리얼 텍스트
   ---------------------------------------------------------- */
.sm-editorial {
  padding: 40px 24px 48px;
  border-bottom: 1px solid var(--sm-border);
}

/* 헤더 영역 (레이블 + 타이틀 + 리드) */
.sm-editorial__header {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--sm-border);
}

/* 카테고리 레이블 */
.sm-editorial__label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--sm-text);
  text-transform: uppercase;
  margin: 0 0 16px;
}

/* 디스플레이 타이틀 */
.sm-editorial__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sm-text);
  margin: 0 0 20px;
}

/* 리드 문장 (날짜/메타 스타일) */
.sm-editorial__lead {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--sm-muted);
  margin: 0;
}

/* 본문 */
.sm-editorial__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.sm-editorial__body p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--sm-text);
  margin: 0;
}

/* 부제목 단락 */
.sm-editorial__sub {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--sm-text);
  padding-left: 12px;
  border-left: 2px solid var(--sm-rose);
}

/* 마무리 문장 */
.sm-editorial__cta-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--sm-rose);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ----------------------------------------------------------
   이미지 영역
   ---------------------------------------------------------- */
.sm-shoppable__image {
  position: relative;
  width: 100%;
}

.sm-shoppable__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

/* ----------------------------------------------------------
   상품 위치 닷
   ---------------------------------------------------------- */
.sm-dot {
  position: absolute;
  width: var(--sm-dot-size);
  height: var(--sm-dot-size);
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}

.sm-dot__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 250, 248, 0.8);
  animation: sm-dot-pulse 2.2s ease-out infinite;
}

.sm-dot__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #FAFAF8;
  border: 2px solid rgba(28, 25, 23, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.sm-dot:hover .sm-dot__core,
.sm-dot.is-active .sm-dot__core {
  background: var(--sm-rose);
  transform: scale(1.15);
}

.sm-dot.is-active .sm-dot__pulse {
  border-color: rgba(190, 18, 60, 0.6);
}

@keyframes sm-dot-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  60%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ----------------------------------------------------------
   툴팁 카드 (이미지 위 오버레이)
   ---------------------------------------------------------- */
.sm-tooltip {
  position: absolute;
  z-index: 1;
  display: flex;
  gap: 6px;
  width: 148px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  animation: sm-tooltip-in 0.18s ease;
  pointer-events: auto;
  transform-origin: top center;
}

@keyframes sm-tooltip-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes sm-tooltip-out {
  0%   { opacity: 1; transform: scale(1)    translateY(0); }
  60%  { opacity: 0; transform: scale(0.25) translateY(-12px); }
  100% { opacity: 0; transform: scale(0.1)  translateY(-16px); }
}

.sm-tooltip--hiding {
  animation: sm-tooltip-out 0.35s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  pointer-events: none;
}

.sm-tooltip__img-wrap {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 3px;
  background: #F0EDE8;
}

.sm-tooltip__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-tooltip__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm-tooltip__category {
  display: none;
}

.sm-tooltip__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--sm-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-tooltip__color {
  font-size: 10px;
  color: var(--sm-muted);
  margin: 0;
}

.sm-tooltip__prices {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}

.sm-tooltip__origin {
  font-size: 10px;
  color: var(--sm-muted);
  text-decoration: line-through;
}

.sm-tooltip__sale {
  font-size: 12px;
  font-weight: 700;
  color: var(--sm-rose);
}

.sm-tooltip__cta {
  display: block;
  margin-top: 6px;
  margin-left: calc(-48px - 6px);
  padding: 5px 0;
  background: var(--sm-rose);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.sm-tooltip__cta:hover {
  background: #9F1239;
}

/* ----------------------------------------------------------
   대표 상품 섹션
   ---------------------------------------------------------- */
.sm-featured {
  padding: 24px 16px 20px;
  background: var(--sm-bg);
  border-top: 1px solid var(--sm-border);
}

.sm-featured__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sm-text);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.sm-featured__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sm-featured-card {
  min-width: 0;
}

.sm-featured-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sm-featured-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #F0EDE8;
}

.sm-featured-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sm-featured-card__link:hover .sm-featured-card__img-wrap img {
  transform: scale(1.04);
}

.sm-featured-card__tags {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sm-featured-card__tag {
  display: inline-block;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(28, 25, 23, 0.7);
  color: #fff;
  border-radius: 2px;
}

.sm-featured-card__tag--preorder {
  background: var(--sm-rose);
}

.sm-featured-card__info {
  padding: 8px 2px 0;
}

.sm-featured-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.sm-featured-card__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sm-rose);
}

.sm-featured-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sm-text);
  margin: 2px 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-featured-card__color {
  font-size: 11px;
  color: var(--sm-muted);
  margin: 0 0 4px;
}

.sm-featured-card__prices {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sm-featured-card__origin {
  font-size: 11px;
  color: var(--sm-muted);
  text-decoration: line-through;
}

.sm-featured-card__sale {
  font-size: 14px;
  font-weight: 700;
  color: var(--sm-rose);
}

/* ----------------------------------------------------------
   모델컷 슬라이더
   ---------------------------------------------------------- */
.sm-modelshots {
  border-top: 1px solid var(--sm-border);
}

.sm-modelshots__track {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sm-modelshots__item {
  position: relative;
}

.sm-modelshots__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------
   모델 영상 (왼쪽 하단 고정 플로팅)
   ---------------------------------------------------------- */
.sm-video {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  line-height: 0;
}

.sm-video__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 0;
  font-size: 20px;
}

.sm-video__player {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .sm-video {
    width: 140px;
    bottom: 16px;
    left: 16px;
  }
}

/* ----------------------------------------------------------
   관련 상품 섹션
   ---------------------------------------------------------- */
.sm-related {
  padding: 24px 16px 20px;
  background: var(--sm-bg);
  border-top: 1px solid var(--sm-border);
}

.sm-related__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sm-muted);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.sm-related__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.sm-related-card {
  min-width: 0;
}

.sm-related-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sm-related-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #F0EDE8;
}

.sm-related-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sm-related-card__link:hover .sm-related-card__img-wrap img {
  transform: scale(1.04);
}

.sm-related-card__tags {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sm-related-card__tag {
  display: inline-block;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(28, 25, 23, 0.7);
  color: #fff;
  border-radius: 2px;
}

.sm-related-card__tag--preorder {
  background: var(--sm-rose);
}

.sm-related-card__info {
  padding: 8px 2px 0;
}

.sm-related-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.sm-related-card__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sm-rose);
}

.sm-related-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sm-text);
  margin: 2px 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-related-card__color {
  font-size: 11px;
  color: var(--sm-muted);
  margin: 0 0 4px;
}

.sm-related-card__prices {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sm-related-card__origin {
  font-size: 11px;
  color: var(--sm-muted);
  text-decoration: line-through;
}

.sm-related-card__sale {
  font-size: 14px;
  font-weight: 700;
  color: var(--sm-rose);
}

/* ----------------------------------------------------------
   마키 배너
   ---------------------------------------------------------- */
.sm-marquee {
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid var(--sm-rose);
  background: var(--sm-bg);
  cursor: default;
}

.sm-marquee__track {
  display: flex;
  width: max-content;
  animation: sm-marquee-scroll 22s linear infinite;
}

.sm-marquee__track span {
  font-size: 52px;
  font-weight: 700;
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--sm-rose);
  line-height: 1;
  padding-right: 32px;
  flex-shrink: 0;
}

@keyframes sm-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
