/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: #edecea;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ════════════════════════════════════════
   HEADER / NAV
════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 14px 20px 0;
}

.nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-primary,
.nav-secondary,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-center,
.nav-right {
  padding-top: 1px;
}

.nav-link {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  line-height: 1.3;
}

.nav-link:hover {
  opacity: 0.4;
}

.arrow {
  margin: 0 2px;
}

/* Sub-nav: 숨김 → shop 페이지에서 펼침 */
.nav-secondary {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.page-shop .nav-secondary {
  max-height: 24px;
  opacity: 1;
}

.subnav-link {
  opacity: 0.4;
}

.subnav-link.active,
.subnav-link:hover {
  opacity: 1;
}

/* 홈 페이지 nav — 밝은 배경 이미지이므로 검정 유지 */
.page-home .nav-link {
  color: #000;
}

/* ════════════════════════════════════════
   브랜드 네임 (shop/explore 페이지 고정 로고)
════════════════════════════════════════ */
.brand-name {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 999;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.4s ease;
}

/* 홈에선 hero-brand 가 DELTIC 역할 → 고정 로고 숨김 */
.page-home .brand-name {
  display: none;
}

/* ── 좌측 상단 고정 텍스트 (Shop → New In) ── */
.nav-left-fixed {
  position: fixed;
  top: 14px;
  left: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-left-arrow,
.nav-left-label {
  opacity: 0.45;
}

/* 홈 / 상세 페이지에선 숨김 */
.page-home .nav-left-fixed,
.page-product .nav-left-fixed {
  display: none;
}

/* ── 우측 상단 고정 버튼 (Login / Cart) ── */
.nav-right-fixed {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-right-btn {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.nav-right-btn:hover { opacity: 0.4; }

/* 홈 / 상세 페이지에선 숨김 (상세 페이지는 자체 버튼 사용) */
.page-home .nav-right-fixed,
.page-product .nav-right-fixed {
  display: none;
}

/* ════════════════════════════════════════
   페이지 공통 (페이드 인/아웃)
════════════════════════════════════════ */
.page {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.page.active {
  opacity: 1;
  pointer-events: all;
}

/* ════════════════════════════════════════
   PAGE 1 : HOME / HERO
════════════════════════════════════════ */
.p-home {
  background: #0a0a0a;
}

.hero {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ─── 히어로 배경 이미지 + 마우스 패럴랙스 ─── */
.hero-bg {
  position: absolute;
  inset: -8%;            /* 패럴랙스 이동 여유 공간 */
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-color: #e9e5df;  /* 이미지 로드 전 크림색 fallback */
  will-change: transform;
  animation: hero-brightness 6s ease-in-out infinite;
}

/* ── 페이지 진입 애니메이션 ── */
@keyframes hero-enter {
  0%   { opacity: 0; transform: scale(1.10); }
  100% { opacity: 1; transform: scale(1.00); }
}

/* ── 밝기 변화 애니메이션 ── */
@keyframes hero-brightness {
  0%   { filter: brightness(1.00); }
  50%  { filter: brightness(1.12); }
  100% { filter: brightness(1.00); }
}

/* ── 필름 그레인 오버레이 ── */
.hero-grain {
  position: absolute;
  inset: -50%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grain-shift 0.35s steps(1) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(  0,    0 ); }
  25%  { transform: translate( -3%,  2% ); }
  50%  { transform: translate(  2%, -4% ); }
  75%  { transform: translate( -4%,  3% ); }
  100% { transform: translate(  3%, -2% ); }
}

.hero-bg.entering {
  animation: hero-enter 1.6s cubic-bezier(.16, 1, .3, 1) forwards;
}

/* ─── PAF 스타일 히어로 텍스트 블록 ─── */
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 18px 18px 20px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  width: fit-content;
  align-items: flex-start;
}

/* ─── 크레딧 리스트 ─── */
.hero-credits {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 5;
  pointer-events: none;
}

.hero-credits span {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.65;
  color: #000;
  letter-spacing: 0.01em;
}

/* 대형 브랜드 타이틀 */
.hero-brand {
  display: block;
  font-size: clamp(72px, 14vw, 210px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #000;
  user-select: none;
}

/* Shop → 링크 */
.hero-shop-link {
  pointer-events: all;
  display: inline-block;
  font-size: 12.5px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.01em;
  margin-top: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.hero-shop-link:hover {
  opacity: 0.4;
}

/* ════════════════════════════════════════
   PAGE 2 : SHOP
════════════════════════════════════════ */
.p-shop {
  background: #edecea;
  overflow-y: auto;
  /* 기본: nav 1줄 */
  padding-top: 48px;
  padding-bottom: 68px;
}

/* shop 페이지: subnav 2줄 펼쳐지므로 여백 추가 */
.page-shop .p-shop {
  padding-top: 72px;
}

/* 3열 그리드 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d2d0cb;
  border-left: 1px solid #d2d0cb;
}

.card {
  border-right: 1px solid #d2d0cb;
  border-bottom: 1px solid #d2d0cb;
  cursor: pointer;
  overflow: hidden;
}

/* 상품 이미지 영역 (세로로 긴 포트레이트 비율) */
.card-img {
  position: relative;
  width: 100%;
  padding-bottom: 130%;
  overflow: hidden;
  flex-shrink: 0;
}

.card:hover .card-img {
  /* 이미지 확대 효과는 실제 img 태그에 적용; 배경색 카드에선 subtle opacity */
  filter: brightness(0.97);
  transition: filter .4s ease;
}

/* ─── 상품 이미지 플레이스홀더 (실제 사진으로 교체하세요) ─── */
/* 사용법: background-image: url('images/product1.jpg'); */
.ci-1 { background-image: url('images/product1.jpg'); background-size: cover; background-position: center; }
.ci-2 { background-image: url('images/product2.jpg'); background-size: cover; background-position: center; }
.ci-3 { background-image: url('images/product3.jpg'); background-size: cover; background-position: center; }
.ci-4 { background: linear-gradient(165deg, #cbc7bd 0%, #b9b5aa 100%); }
.ci-5 { background: linear-gradient(165deg, #0f0f0f 0%, #1d1d1d 100%); }
.ci-6 { background: linear-gradient(165deg, #1f1f1f 0%, #141414 100%); }

/* 이미지 슬라이더 점(dash) 인디케이터 */
.slide-dots {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 22px;
  height: 1.5px;
  background: rgba(0,0,0,.25);
  border-radius: 1px;
  transition: background .2s;
}

.dot.on {
  background: rgba(0,0,0,.70);
}

/* 상품 정보 */
.card-body {
  padding: 10px 15px 18px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}

.card-name {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.45;
  margin-bottom: 3px;
}

.card-vars {
  font-size: 10px;
  color: #888;
  flex-shrink: 0;
  white-space: nowrap;
}

.card-vars em {
  opacity: .32;
  font-style: normal;
}

.card-price {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-bottom: 3px;
}

.was {
  font-size: 10px;
  color: #999;
  text-decoration: line-through;
}

.now {
  font-size: 10.5px;
}

.wishlist {
  font-size: 10px;
  display: inline-block;
  border-bottom: 1px solid currentColor;
  margin-top: 2px;
  cursor: pointer;
  transition: opacity .15s;
}

.wishlist:hover {
  opacity: .45;
}

/* 스크롤바 */
.p-shop::-webkit-scrollbar { width: 2px; }
.p-shop::-webkit-scrollbar-track { background: transparent; }
.p-shop::-webkit-scrollbar-thumb { background: #c8c5bf; border-radius: 2px; }

/* ════════════════════════════════════════
   PAGE 4 : PRODUCT DETAIL
════════════════════════════════════════ */
.p-product {
  background: #edecea;
  overflow: hidden;
}

/* ─── 상단 breadcrumb 바 ─── */
.pd-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #d2d0cb;
  background: #edecea;
  z-index: 10;
  font-size: 11.5px;
}

.pd-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.pd-topbar-btn {
  font-size: 11.5px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.pd-topbar-btn:hover { opacity: 0.4; }

.pd-crumb-shop,
.pd-crumb-all {
  cursor: pointer;
  transition: opacity 0.15s;
}

.pd-crumb-shop:hover,
.pd-crumb-all:hover { opacity: 0.4; }

.pd-crumb-arrow,
.pd-crumb-name {
  opacity: 0.45;
}

/* ─── 메인 레이아웃 ─── */
.pd-layout {
  position: absolute;
  top: 48px; left: 0; right: 0; bottom: 0;
  display: flex;
}

/* ─── 좌: 이미지 그리드 ─── */
.pd-images {
  flex: 2;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  border-right: 1px solid #d2d0cb;
}

.pd-img {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #d2d0cb;
}

.pd-img:nth-child(odd) {
  border-right: 1px solid #d2d0cb;
}

.pd-images::-webkit-scrollbar { width: 2px; }
.pd-images::-webkit-scrollbar-track { background: transparent; }
.pd-images::-webkit-scrollbar-thumb { background: #c8c5bf; }

/* ─── 우: 상품 정보 ─── */
.pd-info {
  flex: 1;
  overflow-y: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 0;
}

.pd-info::-webkit-scrollbar { width: 2px; }
.pd-info::-webkit-scrollbar-track { background: transparent; }
.pd-info::-webkit-scrollbar-thumb { background: #c8c5bf; }

.pd-name {
  font-size: 11.5px;
  font-weight: 400;
  padding: 14px 20px 4px;
  letter-spacing: 0.005em;
}

.pd-price {
  font-size: 11.5px;
  padding: 0 20px 10px;
}

.pd-desc {
  font-size: 10.5px;
  line-height: 1.65;
  color: #666;
  padding: 0 20px 14px;
}

.pd-sep {
  border-top: 1px solid #d2d0cb;
}

.pd-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 20px;
  font-size: 11.5px;
}

.pd-field-label {
  font-size: 11.5px;
}

.pd-choices {
  display: flex;
  gap: 14px;
}

.pd-choice {
  font-size: 11px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.15s;
}

.pd-choice.pd-active,
.pd-choice:hover {
  opacity: 1;
}

.pd-qty {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pd-qbtn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: opacity 0.15s;
}

.pd-qbtn:hover { opacity: 0.4; }

.pd-qval {
  font-size: 11.5px;
  min-width: 14px;
  text-align: center;
}

.pd-cta {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  text-align: left;
  padding: 12px 20px;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.005em;
}

.pd-cta:hover { opacity: 0.4; }

.pd-ac-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 20px;
  font-size: 11.5px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.pd-ac-row:hover { opacity: 0.4; }

.pd-plus {
  font-size: 14px;
  line-height: 1;
  font-weight: 300;
}

/* ════════════════════════════════════════
   PAGE 3 : EXPLORE
════════════════════════════════════════ */
.p-explore {
  background: #edecea;
  overflow: hidden;
}

.explore-wrap {
  display: flex;
  height: 100%;
  margin-top: 48px;
  border-top: 1px solid #d2d0cb;
}

.ex-main {
  position: relative;
  flex: 2;
  border-right: 1px solid #d2d0cb;
  overflow: hidden;
  cursor: pointer;
}

.ex-side {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ex-block {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
}

.ex-block:first-child {
  border-bottom: 1px solid #d2d0cb;
}

.ex-img {
  width: 100%;
  height: 100%;
  transition: transform .55s ease;
}

.ex-main:hover .ex-img,
.ex-block:hover .ex-img {
  transform: scale(1.025);
}

/* ─── Explore 이미지 플레이스홀더 ─── */
/* 실제 사진으로 교체하세요: background-image: url('images/campaign.jpg'); */
.ex-i1 {
  background:
    radial-gradient(ellipse 65% 45% at 50% 22%, rgba(255,255,255,.09) 0%, transparent 60%),
    linear-gradient(165deg, #0b0b0b, #191716);
}

.ex-i2 {
  background: linear-gradient(165deg, #e5e2da, #d1cdc4);
}

.ex-i3 {
  background: linear-gradient(165deg, #1b1b1b, #0e0e0e);
}

.ex-label {
  position: absolute;
  bottom: 18px;
  left: 17px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  z-index: 2;
}

.ex-label.white {
  color: #fff;
}

/* ════════════════════════════════════════
   LOGIN OVERLAY
════════════════════════════════════════ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #edecea;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.login-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* 닫기 버튼 */
.login-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: opacity 0.15s;
  z-index: 10;
}

.login-close:hover { opacity: 0.4; }

/* 브랜드명 */
.login-brand {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(72px, 14vw, 210px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #000;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* 중앙 폼 + 링크 영역 */
.login-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -50%);
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

/* 폼 */
.login-form {
  display: flex;
  flex-direction: column;
  min-width: 320px;
}

.login-field {
  border-bottom: 1px solid #000;
  margin-bottom: 28px;
}

.login-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 11.5px;
  color: #000;
  padding: 8px 0;
  letter-spacing: 0.01em;
}

.login-input::placeholder {
  color: #aaa;
}

.login-submit {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 10px 0;
  align-self: center;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  margin-top: 8px;
}

.login-submit:hover { opacity: 0.4; }

/* 우측 링크 */
.login-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.login-link {
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}

.login-link:hover { opacity: 0.4; }

/* 하단 크레딧 */
.login-credits {
  position: absolute;
  left: 18px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
}

.login-credits span {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.65;
  color: #000;
  letter-spacing: 0.01em;
}

/* ════════════════════════════════════════
   SIGNUP OVERLAY
════════════════════════════════════════ */
.signup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #edecea;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.signup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* 닫기 버튼 */
.signup-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: opacity 0.15s;
  z-index: 10;
}

.signup-close:hover { opacity: 0.4; }

/* 브랜드명 */
.signup-brand {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(72px, 14vw, 210px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #000;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* 중앙 폼 + 링크 */
.signup-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -55%);
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  min-width: 320px;
}

.signup-field {
  border-bottom: 1px solid #000;
  margin-bottom: 22px;
}

.signup-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 11.5px;
  color: #000;
  padding: 8px 0;
  letter-spacing: 0.01em;
}

.signup-input::placeholder { color: #aaa; }

.signup-submit {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 10px 0;
  align-self: center;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  margin-top: 8px;
}

.signup-submit:hover { opacity: 0.4; }

/* 우측 링크 */
.signup-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.signup-link {
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}

.signup-link:hover { opacity: 0.4; }

/* 동의 체크박스 */
.signup-agree {
  position: absolute;
  left: 50%;
  transform: translateX(-30%);
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.signup-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border: 1px solid #000;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.signup-checkbox:checked {
  background: #000;
}

.signup-check-row span {
  font-size: 11px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ── 회원가입 성공 화면 ── */
.signup-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: space-between;
  width: min(700px, 72vw);
  gap: 40px;
}

.signup-success.active {
  display: flex;
}

.ss-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* 원형 + 아이콘 */
.ss-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
}

.ss-msg {
  font-size: 11.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ss-view {
  font-size: 11.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.ss-view:hover { opacity: 0.4; }

/* 하단 크레딧 */
.signup-credits {
  position: absolute;
  left: 18px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
}

.signup-credits span {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.65;
  color: #000;
  letter-spacing: 0.01em;
}

/* ════════════════════════════════════════
   FORGOT PASSWORD OVERLAY
════════════════════════════════════════ */
.forgot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #edecea;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.forgot-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.forgot-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: opacity 0.15s;
  z-index: 10;
}

.forgot-close:hover { opacity: 0.4; }

.forgot-brand {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(72px, 14vw, 210px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #000;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.forgot-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -50%);
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.forgot-form {
  display: flex;
  flex-direction: column;
  min-width: 320px;
}

.forgot-title {
  font-size: 11.5px;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.forgot-field {
  border-bottom: 1px solid #000;
  margin-bottom: 28px;
}

.forgot-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 11.5px;
  color: #000;
  padding: 8px 0;
  letter-spacing: 0.01em;
}

.forgot-input::placeholder { color: #aaa; }

.forgot-submit {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 10px 0;
  align-self: center;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.forgot-submit:hover { opacity: 0.4; }

.forgot-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.forgot-link {
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}

.forgot-link:hover { opacity: 0.4; }

.forgot-credits {
  position: absolute;
  left: 18px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
}

.forgot-credits span {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.65;
  color: #000;
  letter-spacing: 0.01em;
}

/* ════════════════════════════════════════
   CART OVERLAY
════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* 상단 바 */
.cart-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e0ddd8;
}

.cart-title {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.cart-close {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.cart-close:hover { opacity: 0.4; }

/* 아이템 목록 */
.cart-body {
  position: absolute;
  top: 44px; left: 0; right: 0; bottom: 120px;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 24px;
}

.cart-body::-webkit-scrollbar { width: 2px; }
.cart-body::-webkit-scrollbar-thumb { background: #c8c5bf; }

/* 빈 장바구니 */
.cart-empty {
  font-size: 11.5px;
  color: #aaa;
  letter-spacing: 0.01em;
}

/* 아이템 카드 */
.cart-item {
  display: flex;
  flex-direction: column;
  width: 200px;
}

.cart-item-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  margin-bottom: 10px;
  overflow: hidden;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #e0ddd8;
}

.cart-item-remove {
  position: absolute;
  top: 8px; right: 8px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: opacity 0.15s;
}

.cart-item-remove:hover { opacity: 0.4; }

.cart-item-name {
  font-size: 11px;
  letter-spacing: 0.005em;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 11px;
  margin-bottom: 6px;
}

.cart-item-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 6px 0;
  border-top: 1px solid #e0ddd8;
}

.cart-item-field:last-child {
  border-bottom: 1px solid #e0ddd8;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-qbtn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: opacity 0.15s;
}

.cart-qbtn:hover { opacity: 0.4; }

.cart-qval {
  font-size: 11px;
  min-width: 12px;
  text-align: center;
}

/* 하단 푸터 */
.cart-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 20px 28px;
  border-top: 1px solid #e0ddd8;
  background: #fff;
}

.cart-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 11.5px;
  border-bottom: 1px solid #e0ddd8;
}

.cart-footer-val {
  font-size: 11.5px;
}

.cart-checkout {
  display: block;
  font-size: 11.5px;
  cursor: pointer;
  padding-top: 13px;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.cart-checkout:hover { opacity: 0.4; }

/* 카트 수량 뱃지 */
.cart-badge {
  display: inline;
  font-size: inherit;
  letter-spacing: 0.01em;
}

.cart-badge:empty {
  display: none;
}

/* ════════════════════════════════════════
   반응형 (태블릿 이하: 2열)
════════════════════════════════════════ */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    max-width: 200px;
  }

  .explore-wrap {
    flex-direction: column;
  }

  .ex-main {
    flex: none;
    height: 55%;
    border-right: none;
    border-bottom: 1px solid #d2d0cb;
  }

  .ex-side {
    flex-direction: row;
    height: 45%;
  }

  .ex-block:first-child {
    border-bottom: none;
    border-right: 1px solid #d2d0cb;
  }
}

/* ════════════════════════════════════════
   CHECKOUT OVERLAY
════════════════════════════════════════ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.checkout-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── 좌측 폼 패널 ─── */
.co-left {
  flex: 1;
  overflow-y: auto;
  padding: 36px clamp(20px, 5vw, 72px) 80px;
  background: #edecea;
  border-right: 1px solid #d2d0cb;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.co-left::-webkit-scrollbar { width: 2px; }
.co-left::-webkit-scrollbar-thumb { background: #c8c5bf; }

.co-left > *:not(.co-header) {
  width: 100%;
  max-width: 520px;
}

.co-header {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 44px;
}

.co-back {
  position: absolute;
  left: 0;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s;
}

.co-back:hover { opacity: 0.4; }

.co-brand {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

/* Section */
.co-section { margin-bottom: 32px; }

.co-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.co-sec-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
}

.co-sec-head .co-sec-title { margin-bottom: 0; }

.co-sec-link {
  font-size: 11.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s;
}

.co-sec-link:hover { opacity: 0.4; }

/* Field */
.co-field { margin-bottom: 10px; }

.co-row {
  display: flex;
  gap: 10px;
}

.co-row .co-field { flex: 1; }

/* Input */
.co-input {
  width: 100%;
  background: #fff;
  border: 1px solid #d2d0cb;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  color: #000;
  padding: 13px 14px;
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.co-input:focus { border-color: #000; }
.co-input::placeholder { color: #bbb; }

/* Labeled select (국가/지역, 시/도) */
.co-labeled-select {
  background: #fff;
  border: 1px solid #d2d0cb;
  border-radius: 6px;
  padding: 8px 36px 10px 14px;
  position: relative;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23999' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.co-labeled-select:focus-within { border-color: #000; }

.co-labeled-title {
  display: block;
  font-size: 9.5px;
  color: #aaa;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
  pointer-events: none;
}

.co-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.01em;
}

/* Checkbox */
.co-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 12px;
}

.co-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid #000;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 2px;
  transition: background 0.15s;
}

.co-checkbox:checked { background: #000; }

.co-check-row span {
  font-size: 11px;
  letter-spacing: 0.01em;
}

/* Shipping note */
.co-shipping-msg {
  font-size: 11.5px;
  color: #888;
  letter-spacing: 0.01em;
  line-height: 1.6;
  background: #fff;
  border: 1px solid #d2d0cb;
  border-radius: 6px;
  padding: 18px 16px;
}

/* Submit */
.co-submit {
  width: 100%;
  max-width: 520px;
  background: #000;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 16px 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: opacity 0.15s;
}

.co-submit:hover { opacity: 0.75; }

/* ─── 우측 주문 요약 패널 ─── */
.co-right {
  width: 400px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 36px 32px 80px;
  background: #f5f3f0;
  border-left: 1px solid #d2d0cb;
}

.co-right::-webkit-scrollbar { width: 2px; }
.co-right::-webkit-scrollbar-thumb { background: #c8c5bf; }

/* Item */
.co-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.co-item-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.co-item-thumb {
  width: 64px;
  height: 86px;
  background-size: cover;
  background-position: center;
  background-color: #e0ddd8;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.06);
}

.co-item-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #555;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.co-item-info {
  flex: 1;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 86px;
}

.co-item-name {
  font-size: 11.5px;
  letter-spacing: 0.005em;
}

.co-item-price {
  font-size: 11.5px;
  letter-spacing: 0.005em;
}

/* Discount */
.co-discount-wrap {
  display: flex;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid #d2d0cb;
  border-bottom: 1px solid #d2d0cb;
  margin-bottom: 16px;
}

.co-discount-input {
  flex: 1;
  background: #fff;
  border: 1px solid #d2d0cb;
  outline: none;
  font-family: inherit;
  font-size: 11.5px;
  padding: 10px 14px;
  border-radius: 6px;
  transition: border-color 0.15s;
  color: #000;
}

.co-discount-input:focus { border-color: #000; }
.co-discount-input::placeholder { color: #bbb; }

.co-discount-btn {
  background: none;
  border: 1px solid #d2d0cb;
  font-family: inherit;
  font-size: 11.5px;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.co-discount-btn:hover { opacity: 0.5; }

/* Summary */
.co-summary-rows { margin-bottom: 16px; }

.co-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.005em;
  padding: 5px 0;
}

.co-muted { color: #888; }

.co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid #d2d0cb;
}

.co-total-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.co-total-right {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.co-currency {
  font-size: 10px;
  color: #888;
  letter-spacing: 0.01em;
}

.co-total-amt {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.co-tax-note {
  font-size: 10px;
  color: #888;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .nav-center {
    display: none;
  }
}
