/* 게스트 전용: 상단 쿠폰 티커 + 가입 혜택 모달 (시안 sian_popup → 로컬) */

.s4-ticker {
  position: sticky;
  top: 0;
  z-index: 1010;
  width: 100%;
  min-height: 36px;
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  background: #1a1a1a;
  color: #fff;
}
/* PC: 검정 바는 풀폭, 안쪽은 max 1200px.
   문구가 짧아 space-between 이면 버튼만 우측으로 휑함 → PC는 문구+버튼을 한 덩어리로 가운데 */
.s4-ticker__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 36px;
  padding: 0 20px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .s4-ticker__inner {
    justify-content: center;
    gap: 14px;
  }
}
.s4-ticker p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s4-ticker button,
.s4-ticker__cta {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #8a5a2b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
}
.s4-ticker button:hover,
.s4-ticker__cta:hover {
  background: #6e4620;
}
/* 티커 CTA: 쿠폰받기 / 회원가입 세로 롤링 */
.s4-ticker__cta-viewport {
  display: block;
  height: 24px;
  overflow: hidden;
  line-height: 24px;
}
.s4-ticker__cta-track {
  display: block;
  transition: transform 0.45s ease;
  will-change: transform;
}
.s4-ticker__cta.is-alt .s4-ticker__cta-track {
  transform: translateY(-24px);
}
.s4-ticker__cta-item {
  display: block;
  height: 24px;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
}

/* 티커 있을 때 PC sticky 헤더(s3-pc-chrome) / 모바일 본문 오프셋 */
body.has-s4-ticker.sian-main .s3-pc-chrome {
  top: 36px;
}
@media (max-width: 767px) {
  body.has-s4-ticker.sian-main #contents.contents {
    padding-top: calc(50px + 36px + env(safe-area-inset-top, 0px));
  }
  /* 마이페이지·장바구니 모바일: 기존 LNB 오프셋 유지 (시안 contents padding 안 씀) */
  body.has-s4-ticker.sian-main.s4-has-lnb #contents.contents,
  body.has-s4-ticker.sian-main.s4-cart #contents.contents {
    padding-top: 0 !important;
  }
  /* 상품상세는 #header 없음 → 티커 높이만. 갤러리 풀블리드 */
  body.has-s4-ticker.sian-main.prd-view #contents.contents {
    padding-top: calc(36px + env(safe-area-inset-top, 0px)) !important;
  }
  /* 티커 = 세이프에어리어 + 36px. 헤더 z-index(1001)보다 위여야 가려지지 않음 */
  body.has-s4-ticker .s4-ticker {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1010;
  }
  body.has-s4-ticker .m-wrap > .header#header,
  body.has-s4-ticker #header.header {
    top: calc(36px + env(safe-area-inset-top, 0px)) !important;
  }
  /* 리스트·상세 lnb(뒤로+제목)도 같이 내려야 검색/장바구니가 제목 아래 줄로 안 떨어짐 */
  body.has-s4-ticker.sian-main .lnb {
    top: calc(36px + env(safe-area-inset-top, 0px)) !important;
  }
  body.has-s4-ticker.sian-main.prd-view .prd-button {
    top: calc(36px + env(safe-area-inset-top, 0px));
  }
}

body.s4-join-locked {
  overflow: hidden;
}

/* 가입·로그인 header-none-page: lnb(뒤로·홈). 비회원 티커(36px) 아래로 */
.header-none-page .lnb.lnb--join-nav {
  z-index: 1005;
}
body.has-s4-ticker .header-none-page .lnb {
  top: calc(36px + env(safe-area-inset-top, 0px)) !important;
}
body.has-s4-ticker .header-none-page #contents > .content {
  margin-top: calc(50px + 36px + env(safe-area-inset-top, 0px));
}
.lnb--join-nav .lnb__tit-page {
  padding: 0 50px !important;
}
.lnb--join-nav .lnb__tit-page:after {
  display: none !important;
}
.lnb--join-nav .lnb__home {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1a1a' d='M12 3l9 8h-3v9h-5v-6H11v6H6v-9H3z'/%3E%3C/svg%3E") no-repeat center / 22px;
  overflow: hidden;
  text-indent: -9999px;
}

.s4-join-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.s4-join-modal.is-open {
  display: flex;
}
.s4-join-modal__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}
.s4-join-modal__panel {
  position: relative;
  z-index: 1;
  width: min(360px, 88vw);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
@media (min-width: 768px) {
  .s4-join-modal__panel {
    width: 470px;
  }
}
.s4-join-modal__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  user-select: none;
  pointer-events: none;
}
/* 이미지 아래: CTA + 닫기 / 오늘하루 */
.s4-join-modal__actions {
  padding: 16px 16px 18px;
  box-sizing: border-box;
  background: #fff;
}
.s4-join-modal__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0 0 12px;
  border-radius: 10px;
  background: #1b2a4a;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  box-sizing: border-box;
}
.s4-join-modal__cta:hover {
  background: #15233d;
  color: #fff !important;
}
.s4-join-modal__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.s4-join-modal__btn {
  flex: 1;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #e5e2dc;
  border-radius: 10px;
  background: #f7f6f3;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.s4-join-modal__btn:hover {
  background: #efece6;
  border-color: #d4d0c8;
}
.s4-join-modal__btn--today {
  flex: 1.35;
  background: #fff;
  color: #6b7280;
}
.s4-join-modal__btn--today:hover {
  color: #1a1a1a;
  background: #f9fafb;
}

/* 로그인 레이어 세로 스크롤. PC 모달(header.php)·모바일 풀화면 .layer__content 공통 */
.layer.layer--login-layer .layer__content {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, 0.28) transparent;
  scrollbar-gutter: stable;
}
.layer.layer--login-layer .layer__content::-webkit-scrollbar {
  width: 5px;
}
.layer.layer--login-layer .layer__content::-webkit-scrollbar-track {
  margin: 10px 0;
  background: transparent;
}
.layer.layer--login-layer .layer__content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background-color: rgba(17, 17, 17, 0.18);
  transition: background-color 0.2s ease;
}
.layer.layer--login-layer .layer__content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(17, 17, 17, 0.36);
}
@media (min-width: 768px) {
  .layer.layer--login-layer .layer__content {
    scrollbar-color: rgba(17, 17, 17, 0.22) transparent;
  }
  .layer.layer--login-layer .layer__content::-webkit-scrollbar {
    width: 6px;
  }
  .layer.layer--login-layer .layer__content::-webkit-scrollbar-thumb {
    background-color: rgba(17, 17, 17, 0.14);
  }
  .layer.layer--login-layer .layer__content:hover::-webkit-scrollbar-thumb {
    background-color: rgba(17, 17, 17, 0.28);
  }
}

/* 카카오·네이버 강조 SNS. 로그인 레이어 login.php · 약관 /shop/join/join_select (_sns_start.php) */
.sns-start {
  width: 100%;
  max-width: 360px;
  margin: 8px auto 0;
  padding: 0 4px;
  box-sizing: border-box;
}
.join-select-page .sns-start {
  margin-top: 40px;
  padding-bottom: 24px;
}
.sns-start__quick {
  position: relative;
}
.sns-start__kicker {
  margin: 0 0 20px;
  text-align: center;
  color: #e53935;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.sns-start__kicker:after {
  content: "";
  display: block;
  width: 72%;
  max-width: 220px;
  height: 1px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, #e53935 18%, #e53935 82%, transparent);
}
.sns-start__btns {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
}
.sns-start__btn-wrap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
.sns-start__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 48px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.sns-start__last {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 4px;
  background: #191919;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.06em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.sns-start__btn-wrap .sns-start__last,
.sns-start__icon-wrap .sns-start__last {
  position: absolute;
  left: 50%;
  top: -12px;
  bottom: auto;
  transform: translateX(-50%);
}
.sns-start__btn-wrap .sns-start__last:after,
.sns-start__icon-wrap .sns-start__last:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: #191919;
  transform: rotate(45deg);
}
.sns-start__etc.has-last {
  padding-top: 22px;
}
.sns-start__icon-wrap .sns-start__last {
  top: -14px;
  white-space: nowrap;
  max-width: none;
}
.sns-start__btn--kakao {
  background: #fee500;
  color: #191919;
}
.sns-start__btn--kakao:hover,
.sns-start__btn--kakao:focus {
  background: #f5dc00;
}
.sns-start__btn--naver {
  background: #03c75a;
  color: #fff;
}
.sns-start__btn--naver:hover,
.sns-start__btn--naver:focus {
  background: #02b351;
}
.sns-start__btn-ico {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.sns-start__btn-ico--kakao {
  background: #191919;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.48 3 2 6.58 2 11c0 2.84 1.86 5.34 4.66 6.8L6 21.5l4.14-2.2c.6.08 1.22.12 1.86.12 5.52 0 10-3.58 10-8S17.52 3 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.48 3 2 6.58 2 11c0 2.84 1.86 5.34 4.66 6.8L6 21.5l4.14-2.2c.6.08 1.22.12 1.86.12 5.52 0 10-3.58 10-8S17.52 3 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sns-start__btn-ico--naver {
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h5.2l5.4 7.7V4H20v16h-5.2l-5.4-7.7V20H4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h5.2l5.4 7.7V4H20v16h-5.2l-5.4-7.7V20H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sns-start__or {
  position: relative;
  height: 20px;
  margin: 22px 0 18px;
  text-align: center;
}
.sns-start__or:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e8e8e8;
}
.sns-start__or span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: #fff;
  color: #bdbdbd;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.sns-start__etc {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
}
.sns-start__icon-wrap {
  position: relative;
  display: inline-flex;
  overflow: visible;
}
.sns-start__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #eee;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-indent: -9999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sns-start__icon--naver {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2303C75A' d='M4 4h5.2l5.4 7.7V4H20v16h-5.2l-5.4-7.7V20H4z'/%3E%3C/svg%3E");
  background-size: 20px;
}
.sns-start__icon--google {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 8 3.1l5.7-5.7C34.2 6.1 29.4 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20c11 0 19.7-8 19.7-20 0-1.3-.1-2.7-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 16 19 12 24 12c3.1 0 5.8 1.2 8 3.1l5.7-5.7C34.2 6.1 29.4 4 24 4 16.3 4 9.6 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.2-5.2l-6.1-5.2C29.2 35.3 26.7 36 24 36c-5.3 0-9.7-3.3-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-1.1 3.2-3.5 5.8-6.4 7.4l.1.1 6.1 5.2C36.8 41.4 43.7 36 43.7 24c0-1.3-.1-2.7-.4-3.9z'/%3E%3C/svg%3E");
  background-size: 24px;
}
.sns-start__icon--apple {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23111111' d='M16.4 12.6c0-2.3 1.9-3.4 2-3.5-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.2-2.8.9-3.5.9s-1.8-.8-3-.8c-1.5 0-3 .9-3.8 2.3-1.6 2.8-.4 7 1.2 9.3.8 1.1 1.7 2.3 2.9 2.3 1.2 0 1.6-.7 3-.7s1.8.7 3 .7 2-.1 2.9-2.3c1.1-1.5 1.5-2.9 1.5-3-.1 0-2.9-1.1-2.8-4.4zM14.7 5.9c.6-.8 1.1-1.9.9-3-1 .1-2.1.7-2.8 1.5-.6.7-1.2 1.8-1 2.9 1.1.1 2.2-.5 2.9-1.4z'/%3E%3C/svg%3E");
  background-size: 22px;
}
.sns-start__vbar {
  display: block;
  width: 1px;
  height: 18px;
  margin: 0 14px;
  background: #e8e8e8;
  flex: 0 0 1px;
}
/* 기존 button-content 아이디 가입. join_select는 go_join('W'), 로그인 레이어는 약관 페이지 */
.sns-start__id-join {
  margin: 28px 0 0;
  text-align: center;
}
.sns-start__id-join-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #424242;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.sns-start__id-join-btn:hover,
.sns-start__id-join-btn:focus {
  color: #1a1a1a;
}
@media (max-width: 359px) {
  .sns-start__icon {
    width: 44px;
    height: 44px;
  }
  .sns-start__vbar {
    margin: 0 8px;
  }
  .sns-start__btn {
    height: 46px;
    font-size: 13px;
  }
}
