/* ===== Base ===== */
:root {
  --navy: #1e2a3d;
  --navy-deep: #232f42;
  --yellow: #d1cf29;
  --yellow-dark: #c8c72a;
  --ph-gray: #efeeec;
  --line-gray: #e7e7e9;
  --text-gray: #9aa1ab;
  --font: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden 속성이 항상 이기도록. display를 지정한 클래스가 붙어 있으면
   브라우저 기본 display:none을 덮어써 숨겨지지 않는다. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-x pan-y; }

body {
  font-family: var(--font);
  background: #fff;
  color: var(--navy);
  overflow-x: hidden;
  letter-spacing: -0.04em;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* Android Chromium(Chrome·Samsung Internet)의 기본 파란 탭 하이라이트만 제거.
   이 속성은 상속되므로 html에 걸어 클릭 가능한 div/span까지 전부 덮는다.
   디자인과 hover/active 애니메이션은 그대로 유지된다. */
html,
a,
button,
[role="button"],
input,
select,
textarea,
label,
summary,
* {
  -webkit-tap-highlight-color: transparent;
}

/* 키보드 접근성: 탭 이동 시 포커스 링은 명확히 보이도록 유지 */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #34c9dc;
  outline-offset: 2px;
}

.ic { width: 20px; height: 20px; display: block; }
/* Plans·Archive·FAQ·Club 아이콘: 기존 13/14/15px에서 7% 확대 */
.nav-ic-13 { width: 13.91px; height: 13.91px; }   /* Plans */
.nav-ic-14 { width: 14.98px; height: 14.98px; }   /* Archive·FAQ */
.nav-ic-15 { width: 16.05px; height: 16.05px; }   /* Club */

/* 현재 페이지의 우측 아이콘(장바구니·프로필): 투명도 15%만큼 낮춤 — 배지 숫자는 제외 */
.icon-btn.icon-current .ic { opacity: 0.85; }
.icon-btn.icon-current { border-color: rgba(30, 42, 61, 0.425); }

/* Placeholder boxes */
.ph {
  background: var(--ph-gray);
  border-radius: 26px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: transparent; /* 배경 박스 없이 로고·메뉴·아이콘만 떠서 스크롤 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 26px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* 로고: 상·하 끝을 우측 메뉴바(nav-pill) 높이와 동일하게 맞춤 */
.logo-typo,
.logo-symbol {
  display: block;
  height: 44px;   /* nav-pill 높이와 동일 (상·하 여백 3px 반영) */
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-pill {
  position: relative;
  z-index: 200;
  display: flex;
  align-items: center;
  width: 284px;              /* 고정 shell 폭 — 페이지 타이틀 길이와 무관하게 항상 동일 */
  background: #1D2737;
  border-radius: 999px;
  padding: 3px 3px 3px 2px;  /* About과 외곽선 사이 상·하·우 여백 3px */
  color: #fff;
  transition: background 0.5s ease;
}
.nav-about { transition: background 0.5s ease; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: 'Pretendard', 'Pretendard Variable', sans-serif;
  font-size: 15px;
  font-weight: 500;          /* Pretendard Medium */
  padding: 9px 16px;
  border-radius: 999px;
}

/* 좌측 페이지 타이틀 + 아이콘: 고정폭 예약 → 글자 수가 달라져도 뒤 요소 위치 불변 */
#menuNavToggle {
  flex: 0 0 123px;
  width: 123px;
  justify-content: flex-start;
  padding: 9px 16px;         /* 우측 여백 5px 축소(폭 128→123) */
  white-space: nowrap;
  overflow: hidden;
}

.nav-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 0 0 6px;
}

/* 돋보기: 좌우 auto margin으로 남는 공간에 중앙 배치 → 좌/우 여백이 항상 동일 */
.nav-search { flex: 0 0 auto; margin: 0 auto; padding: 9px 14px; }

/* About: 돋보기의 우측 auto가 밀어줘 항상 오른쪽 끝에 고정 */
.nav-about {
  flex: 0 0 auto;
  align-self: stretch;   /* 상·하 여백을 컨테이너 padding(4px)과 동일하게 */
  background: #3F4755;
  padding: 9px 20px;
}

/* Menu dropdown */
/* 팝업창은 nav-pill보다 좌우 10px씩 넓다 → 우측 아이콘과도 같은 10px 간격이 되도록 8px 더 띄움 */
.menu-wrap { position: relative; margin-right: 8px; }

.menu-panel {
  position: absolute;
  top: -30px;                 /* 팝업 상단을 화면 맨 위까지 연장 (Reference 05_Menubar) */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 20px);
  max-width: calc(100vw - 32px);
  z-index: 100;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.3s ease;
}

.menu-panel.open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.menu-panel-inner {
  min-height: 0;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat,
    rgba(251, 251, 251, 0.68);
  background-size: 160px 160px, auto;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid #E1E1E1;   /* stroke 1px #E1E1E1 */
  border-radius: 14px;
  box-shadow: none;            /* 그림자 제거 */
  transform: translateY(-16px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-panel-content {
  padding: 92px 34px 44px;     /* 상단 연장(-30px)만큼 콘텐츠 위치 보정 */
}

.menu-panel.open .menu-panel-inner {
  transform: translateY(0);
}

/* Shop 아코디언 서브메뉴 */
.menu-link-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
}

/* 평소엔 숨겼다가 Shop을 눌러 펼쳤을 때만 위를 향한 V자를 노출(접을 수 있음을 표시) */
.menu-chevron {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.menu-item.open .menu-chevron { opacity: 1; }

.submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.menu-item.open .submenu { grid-template-rows: 1fr; }

/* Shop 서브옵션이 펼쳐지면 바로 아래 Archive와 50px 간격 확보 */
.menu-item + .menu-link {
  transition: margin-top 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.menu-item.open + .menu-link { margin-top: 50px; }

.submenu-inner {
  overflow: hidden;
  min-height: 0;
}

.submenu-link {
  display: block;
  text-decoration: none;
  color: #9aa1ab;
  font-size: 15px;
  padding: 6px 0 6px 1px;
}

.submenu-link:hover { color: var(--navy); }

.menu-close {
  position: absolute;
  top: 87px;
  right: 20px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b7bbc2;
  border-radius: 50%;
}
.menu-close:hover { color: var(--navy); background: #f0f0f1; }
.menu-close svg { width: 12px; height: 12px; }
.menu-close-ic { width: 12px; height: 12px; display: block; }

.menu-group { margin-top: 26px; }
.menu-group:first-of-type { margin-top: 0; }

.menu-group-ic {
  width: 16px;
  height: 16px;
  color: #b7bbc2;
  display: block;
  margin-bottom: 12px;
}

.menu-link {
  display: block;
  text-decoration: none;
  color: var(--navy);
  font-size: 18px;
  font-weight: 500;
  padding: 7px 0;
}
.menu-link:hover { color: #5a687f; }

/* 검색 패널 */
.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition: grid-template-rows 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.25s ease;
}

.search-panel.open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.search-panel-mask {
  overflow: hidden;
  min-height: 0;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ececec;
  border-radius: 999px;
  padding: 13px 22px;
}

.search-pill-icon {
  width: 18px;
  height: 18px;
  color: var(--navy);
  flex-shrink: 0;
}

.search-pill-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--navy);
}
.search-pill-input::placeholder { color: #9aa1ab; }

.icon-btn {
  width: 50.6px;                              /* 46px에서 10% 확대 */
  height: 50.6px;
  border-radius: 50%;
  background: transparent;                    /* 흰 배경 제거 → 투명 */
  border: 1px solid rgba(30, 42, 61, 0.5);    /* 스트로크 50% */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.icon-btn .ic { width: 18.02px; height: 18.02px; }   /* 16.38px에서 10% 확대 */


/* ===== Hero (배경 이미지 + Click & See 영상 재생) ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #edecef; /* 영상 로드 전 배경(영상 배경색과 동일 계열) */
}

/* 메인 영상: 로드 즉시 재생, 화면 가득, 끝나면 마지막 프레임에서 정지 */
.hero-main-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.adopt-360.is-hidden { opacity: 0; }


/* 홈: 헤더를 히어로 위에 겹쳐 뜨고, 스크롤해도 고정 */
.home-page .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  background: transparent;
}

/* 배경 이미지: 히어로 전체를 채움 */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  -webkit-user-drag: none;
  user-select: none;
}

/* 좌측 하단 태그라인 (Pretendard SemiBold) — 레퍼런스 기준 */
.hero-tagline {
  position: absolute;
  left: 40px;
  bottom: 4.5vh;
  z-index: 2;
  font-size: 5vw;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
}

/* 진입 팝업 애니메이션 */
@keyframes hero-pop-in {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(38px); }
  100% { opacity: 1; clip-path: inset(0 0 0 0);    transform: translateY(0); }
}
@keyframes hero-nav-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.home-page .site-header { animation: hero-nav-fade 0.45s ease 0.1s both; }
.home-page .hero-tagline { animation: hero-pop-in 0.66s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both; }

/* 클릭 시 커서 위치에서 확장되어 재생되는 영상 레이어 */
.hero-reveal {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  clip-path: inset(50% 50% 50% 50%); /* 기본은 접힌 상태 */
  transition: clip-path 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.hero-reveal.open { pointer-events: auto; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Click & See 커서 */
.hero-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 350;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.hero-cursor.show { opacity: 1; }
.hero-cursor-box {
  display: block;
  width: 160px;
  height: 96px;
  background: #1D2737;
  margin: -48px 0 0 -80px; /* 포인터에 박스 중앙 정렬 */
  transform-origin: center;
}
.hero-cursor-label {
  display: block;
  margin: 9px 0 0 -80px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #1D2737;
  white-space: nowrap;
  transform-origin: center;
}
.hero-cursor.show .hero-cursor-box { animation: cursor-pop 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-cursor.show .hero-cursor-label { animation: cursor-pop 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
@keyframes cursor-pop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 0 35px;
}

.gallery .ph { height: 47.8vw; }

/* ===== Words strip ===== */
.words-strip {
  display: flex;
  align-items: flex-start;
  padding: 56px 37px 0;
  font-size: 16px;
}

.word { white-space: nowrap; }

.words-strip .word:nth-child(1) { margin-right: 11.4vw; }
.words-strip .word:nth-child(2) { margin-right: 6.5vw; }
.words-strip .word:nth-child(3) { margin-right: 5.3vw; }
.words-strip .word:nth-child(4) { margin-right: 4.4vw; }

.strip-copy {
  font-weight: 700;
  max-width: 710px;
  font-size: 15.5px;
  line-height: 1.35;
}

.word-index { margin-left: auto; }

/* ===== Paw section ===== */
.paw-section {
  display: flex;
  justify-content: flex-end;
  padding: 120px 37px 130px;
}

.paw-col { width: 50%; }

.paw-media {
  border-radius: 26px;
  overflow: hidden;
  background: #f4f4f4;
}

.paw-media img { display: block; width: 100%; }

.paw-caption {
  margin-top: 66px;
  font-size: 19px;
  line-height: 1.5;
  color: #16202e;
}

.early-access {
  margin-top: 68px;
  display: flex;
  gap: 8px;
}

.email-input {
  width: 350px;
  border: none;
  background: #f1f1f0;
  border-radius: 999px;
  padding: 15px 24px;
  font-size: 15px;
  color: var(--navy);
  outline: none;
}

.email-input::placeholder { color: #8b8f96; }

.btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  padding: 15px 28px;
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #f2f2f0;
  min-height: 39vw;
}

.feature-col {
  padding: 98px 32px 0;
  text-align: center;
  border-right: 1px solid #e2e2e0;
}

.feature-col:last-child { border-right: none; }

.feature-title {
  font-size: 31px;
  font-weight: 700;
  color: #17181a;
}

.feature-desc {
  margin-top: 20px;
  font-size: 15px;
  color: #a9a9ab;
}

/* ===== Big media ===== */
.big-media { padding: 66px 28px; }

.big-media .ph-wide { height: 47.5vw; border-radius: 24px; }

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 440px 20px 0;
}

.cta-mark {
  width: 58px;
  height: 42px;
  margin: 0 auto 66px;
  display: block;
}

.cta-title {
  font-size: 62px;
  font-weight: 700;
  color: var(--navy);
}

.cta-desc {
  margin-top: 88px;
  font-size: 17px;
  line-height: 1.95;
  color: #b0b4ba;
}

.btn-explore {
  margin-top: 118px;
  padding: 20px 38px;
  font-size: 19px;
  gap: 14px;
}

.btn-explore .ic { width: 22px; height: 22px; }

/* ===== Site footer (13_EndPage) ===== */
.site-footer-lg {
  background: #000;
  color: #fff;
  padding: 130px 51px 200px;
  font-family: var(--font);
}

.footer-legal {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.footer-main {
  margin-top: 108px;
  display: flex;
  align-items: flex-start;
}

.footer-brand {
  width: 331px;
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 600;          /* Pretendard SemiBold */
  letter-spacing: -0.06em;
}

.footer-info {
  margin: 0;
  display: grid;
  grid-template-columns: 356px auto;
  row-gap: 50px;
  font-size: 18px;
  line-height: 1.45;
}
.footer-info dt { font-weight: 400; color: #fff; }
.footer-info dd { margin: 0; color: #fff; }
.footer-info a { color: #fff; text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }

.footer-ceo {
  display: grid;
  grid-template-columns: 130px auto;
  gap: 8px 30px;
}

.footer-tagline {
  margin-left: auto;
  padding-left: 40px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

/* ===== Profile page (14_ProfilePage) ===== */
.profile-hero { padding: 30px 51px 0; }

.profile-welcome {
  font-size: 7vw;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--navy);
}

.profile-tagline {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.profile-body {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 51px 140px;
}

.profile-id {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar {
  width: 128px;
  height: 140px;
  border-radius: 64px;        /* 세로 알약(stadium) — 너비/2, 상하 반원 캡 (ref 03_Profile) */
  background: #d4d4d4;
}

.profile-name {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 600;
  color: #16202e;
}

.profile-email {
  margin-top: 8px;
  font-size: 16px;
  color: #9aa1ab;
}

.profile-edit {
  position: absolute;
  right: 51px;
  top: 232px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 34px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.profile-edit:hover { background: #1a2436; transform: translateY(-1px); }

.profile-form {
  margin-top: 74px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 46px;
}

.pf-field { min-width: 0; }

.pf-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #16202e;
  margin-bottom: 14px;
}

.pf-input {
  width: 100%;
  border: none;
  background: #f4f4f3;
  border-radius: 999px;
  padding: 18px 24px;
  font-size: 15px;
  color: var(--navy);
  outline: none;
  font-family: inherit;
}
.pf-input::placeholder { color: #a7abb2; }
.pf-input:disabled { cursor: default; color: #7a808a; }
.profile-form.editing .pf-input { background: #eef0f1; }
.pf-input:focus:not(:disabled) { box-shadow: 0 0 0 2px rgba(30, 42, 61, 0.25); }

.pf-select-wrap { position: relative; }
.pf-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
}
.pf-chevron {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 8px;
  color: #9aa1ab;
  pointer-events: none;
}

.profile-emails {
  margin-top: 120px;
  text-align: center;
}
.pe-title {
  font-size: 21px;
  font-weight: 700;
  color: #16202e;
}
.pe-address {
  margin-top: 26px;
  font-size: 17px;
  color: #16202e;
}
.pe-time {
  margin-top: 8px;
  font-size: 15px;
  color: #9aa1ab;
}
.pe-add {
  margin-top: 34px;
  background: #d6f3fb;
  color: #23c0e0;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.pe-add:hover { background: #c2ecf7; }

/* ===== Accessories (shop) page ===== */
.logo-mark-only { height: 44px; opacity: 0.55; }

.shop-layout {
  display: flex;
  align-items: flex-start;
  padding: 0 144px 60px 51px;
}

/* --- Sidebar --- */
.shop-sidebar {
  width: 270px;
  flex-shrink: 0;
  margin-top: 262px;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid #e7e7e9;
}

.filter-title {
  font-size: 27px;
  font-weight: 600;
  color: var(--navy);
}

.filter-ic {
  width: 18px;
  height: 14px;
  color: var(--navy);
}

.filter-links {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 0 34px;
}

.filter-link {
  text-decoration: none;
  font-size: 13.5px;
  color: #6f7680;
  text-align: left;
  padding: 0;
}

.filter-link:hover { color: var(--navy); }

/* 선택된 카테고리는 투명도를 15% 낮춤 */
.filter-link.active { opacity: 0.85; color: var(--navy); font-weight: 600; }

.filter-links-light .filter-link { color: #b3b8bf; }
.filter-links-light .filter-link:hover { color: var(--navy); }
/* 연한 목록(Style)은 위 규칙이 .active와 우선순위가 같아 색을 덮어쓰므로 따로 지정한다 */
.filter-links-light .filter-link.active { opacity: 1; color: var(--navy); font-weight: 600; }

.filter-section {
  border-top: 1px solid #e7e7e9;
  padding-top: 18px;
}

.filter-chevron {
  display: block;
  width: 14px;
  height: 8px;
  margin: 0 auto 20px;
  color: var(--navy);
}

.filter-subtitle {
  font-size: 27px;
  font-weight: 600;
  color: var(--navy);
}

.price-slider { margin-top: 30px; padding-bottom: 40px; }

.price-track {
  position: relative;
  height: 4px;
  background: #e4e4e6;
  border-radius: 999px;
}

.price-fill {
  position: absolute;
  left: 0%;
  width: 100%;
  height: 100%;
  background: #2b3648;
  border-radius: 999px;
}

/* 드래그 핸들 — 기존 디자인을 해치지 않도록 작고 단순하게 */
.price-track { touch-action: none; }
.price-knob {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2b3648;
  cursor: grab;
  z-index: 2;
}
.price-knob:active { cursor: grabbing; }

.price-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0;
  font-size: 12.5px;
  color: #4b5563;
}

.filter-style { padding-top: 30px; }

.filter-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-chevron-r {
  width: 14px;
  height: 8px;
  color: var(--navy);
}

.filter-style .filter-links { padding: 28px 0 10px; }

.btn-apply {
  width: 100%;
  margin-top: 22px;
  padding: 15px 0;
  background: #3a2e2a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
}

/* --- Main --- */
.shop-main {
  flex: 1;
  margin-left: 135px;
  min-width: 0;
}

.shop-title {
  margin-top: 68px;
  font-size: 96px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.1;
  color: var(--navy);
}

.shop-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 44px;
  margin-top: 48px;
  font-size: 15px;
  color: #9aa1ab;
}

.shop-sort { display: inline-flex; align-items: center; gap: 7px; }

.shop-sort strong {
  color: var(--navy);
  font-weight: 600;
}

.sort-chevron { width: 13px; height: 8px; color: var(--navy); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 88px 14px;
  margin-top: 30px;
}

.product-media {
  aspect-ratio: 1 / 1;
  background: #f0eeed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.product-media span {
  font-size: 15px;
  color: #a2a4a8;
}

.product-name {
  margin-top: 30px;
  font-size: 20.5px;
  font-weight: 600;
  color: #16202e;
}

.product-price {
  margin-top: 12px;
  font-size: 18.5px;
  color: #1e2a3d;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-price s { color: #b3b8bf; }

.sale-badge {
  font-style: normal;
  font-size: 14px;
  color: #f4757e;
  background: #fdeaec;
  border-radius: 999px;
  padding: 5px 12px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 96px;
  padding-top: 42px;
  border-top: 1px solid #e7e7e9;
  font-size: 15.5px;
}

.page-prev,
.page-next {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}

.page-arrow { width: 20px; height: 14px; }

.page-numbers {
  display: flex;
  align-items: center;
  gap: 26px;
}

.page-num {
  text-decoration: none;
  color: #b3b8bf;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.page-num.current {
  background: #ececec;
  color: var(--navy);
}

.page-num:hover { color: var(--navy); }

.page-ellipsis { color: #b3b8bf; letter-spacing: 2px; }

/* ===== FAQ page ===== */
.faq-section {
  display: flex;
  gap: 80px;
  padding: 84px 144px 220px 51px;
}

.faq-title {
  flex-shrink: 0;
  width: 420px;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.06em;
  color: var(--navy);
}

.faq-list {
  flex: 1;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  border: 1px solid #e5e5e7;
  /* 접힌 상태(약 70px)에서 끝이 완전히 둥근 pill. 펼쳐도 이 R값을 유지하며 중앙만 길어짐 */
  border-radius: 34px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 24px 30px;
  font-size: 16.5px;
  color: var(--navy);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-answer { grid-template-rows: 1fr; }

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 30px;
  font-size: 15px;
  line-height: 1.65;
  color: #8b93a0;
}

.faq-item.open .faq-answer-inner { padding: 0 30px 26px; }

/* ===== Customer Service floating button ===== */
.cs-button {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 300;
  background: var(--yellow);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 17px 30px;
  border-radius: 999px;
  transition: transform 0.2s ease;
}
.cs-button:hover { transform: translateY(-2px); }

/* ===== Chat widget ===== */
.chat-widget {
  position: fixed;
  top: 118px;                               /* 헤더(≈88px) 아래 30px 고정 — 최상단에서도 절대 겹치지 않음 */
  right: 40px;
  bottom: 110px;
  z-index: 300;
  width: min(400px, calc(100vw - 48px));    /* 뷰포트를 넘지 않도록(전송 버튼 잘림 방지) */
  max-height: 760px;                        /* 데스크톱 높이 상한(짧은 화면에선 top·bottom으로 축소) */
  /* 메뉴 팝업창과 동일한 글래스모피즘(노이즈 + 반투명 + 블러 + 라이트 보더) */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat,
    rgba(251, 251, 251, 0.68);
  background-size: 160px 160px, auto;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid #E1E1E1;   /* 메뉴 팝업과 동일한 stroke */
  border-radius: 22px;
  box-shadow: none;            /* 그림자 제거 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
}

.chat-widget.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 18px;
  flex-shrink: 0;
}

.chat-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}

.chat-status {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9aa1ab;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c9dc;
}

.chat-header-actions { display: flex; gap: 8px; }

.chat-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e7e7e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.chat-icon-btn svg { width: 15px; height: 15px; }
.chat-icon-btn img { width: 16px; height: 16px; display: block; }
.chat-icon-btn:hover { background: #f5f5f4; }

.chat-body {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 4px 26px 18px;
  /* 스크롤바 숨김 (스크롤은 유지, 위치는 커스텀 도트로 표시) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-body::-webkit-scrollbar { width: 0; height: 0; display: none; }

.chat-greeting { text-align: center; padding: 10px 6px 22px; }

.greeting-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--navy);
}

.greeting-desc {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #9aa1ab;
}

.greeting-faq-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
}
.greeting-faq-btn svg { width: 14px; height: 14px; }

.chat-divider { height: 1px; background: #eeeeef; }

.chat-date {
  text-align: center;
  font-size: 12px;
  color: #b3b8bf;
  padding: 16px 0 14px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }

.msg-bot { align-self: flex-start; }

.msg-user { align-self: flex-end; margin-left: auto; }

.msg-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-avatar svg { width: 16px; height: 16px; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.msg-bubble {
  font-size: 14px;
  line-height: 1.55;
  padding: 12px 16px;
}

/* 이스터에그: 이미지 말풍선 */
.msg-bubble.msg-image {
  padding: 0;
  background: transparent;
  max-width: 210px;
}
.msg-bubble.msg-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.msg-bot .msg-bubble {
  background: #f1f1f0;
  color: #24303f;
  border-radius: 4px 16px 16px 16px;
}

.msg-user .msg-bubble {
  background: var(--navy-deep);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}

/* 봇 답변 아래 추천 질문 칩 */
.chat-suggests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 36px;
}

.suggest-chip {
  padding: 8px 14px;
  border: 1px solid #dfe1e5;
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: var(--navy);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.suggest-chip:hover {
  background: #f4f4f3;
  border-color: var(--navy);
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}
.typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b3b8bf;
  animation: typing-bounce 1.1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #eeeeef;
}

.chat-attach {
  width: 30px;
  height: 30px;
  color: #9aa1ab;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-attach svg { width: 18px; height: 18px; }
.chat-attach img { width: 11px; height: auto; display: block; }

.chat-input {
  flex: 1;
  min-width: 0;              /* 좁을 때 입력창이 줄어들어 전송 버튼이 밀려 잘리지 않도록 */
  border: none;
  background: #f4f4f3;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--navy);
  outline: none;
}
.chat-input::placeholder { color: #a7abb2; }

.chat-send {
  width: 40px;
  height: 40px;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.chat-send:hover { transform: scale(1.06); }
.chat-send svg { width: 16px; height: 16px; }
.chat-send img { width: 40px; height: 40px; display: block; }

/* 커스텀 스크롤 위치 인디케이터 (얇은 D1CF29 도트) */
.chat-scroll-dot {
  position: absolute;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1cf29;
  opacity: 0;
  transition: opacity 0.25s ease, top 0.1s linear;
  pointer-events: none;
  z-index: 6;
}
.chat-scroll-dot.visible { opacity: 1; }

/* ===== Archive page — 세로 스크롤 갤러리 (같은 번호=가로 병렬, 이미지 간 여백 20px) ===== */
.archive-page { background: #fff; }

.archive-wrap {
  padding: 40px 20px 120px;    /* sticky 헤더 아래 여백 + 하단 여백 */
}

.archive-title {
  margin: 0 0 6px 20px;
  font-size: 88px;
  font-weight: 600;            /* Pretendard SemiBold */
  letter-spacing: -0.06em;
  line-height: 1.0;
  color: var(--navy);
}

.archive-words {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 20px 20px 40px;   /* Life·Moves·Better 줄을 20px 내림 */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #9aa1ab;
}
.archive-words .aw-mid { display: inline-flex; gap: 48px; }

.archive-video-wrap {
  margin-top: 8px;
}

/* 영상 배경이 흰색이라 페이지와 자연스럽게 이어진다 */
.archive-video {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* ===== Club page ===== */
.club-hero {
  padding: 8px 26px 0 26px;   /* 좌측을 헤더 로고 좌측 끝에 정렬 */
}

.club-title {
  font-size: 96px;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--navy);
}

.club-subtitle {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
}


.club-body {
  display: flex;
  padding: 76px 26px 120px 26px;   /* 좌우 모두 헤더(로고·프로필) 끝선에 정렬 */
  align-items: flex-start;
}

/* 표가 좌측 Club 제목 라인부터 우측 끝까지 전체 폭을 차지 */
.club-table {
  flex: 1;
  min-width: 0;
}

.club-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 4등분 */
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid #ececee;
  font-size: 16px;
  color: #1e2a3d;
  text-align: left;                         /* 좌측정렬 */
}

.club-row-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  padding-top: 0;
}

.club-level {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== Product detail slide-in ===== */
.product-media {
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.product-media:hover { opacity: 0.6; }

body.detail-open { overflow: hidden; }

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  visibility: hidden;
  pointer-events: none;
}
.detail-overlay.open {
  visibility: visible;
  pointer-events: auto;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(120, 120, 122, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.detail-overlay.open .detail-backdrop { opacity: 1; }

.detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(1480px, 82vw);
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail-overlay.open .detail-panel { transform: translateX(0); }

/* 닫기 화살표: 원형 배경 없이, 화면 좌측 끝에서 30px 안쪽(어두운 backdrop 위)에 배치 */
.detail-back {
  position: absolute;
  left: 30px;
  top: 50%;
  margin-top: -12px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.2s ease;
}
.detail-back-ic { width: 24px; height: 24px; display: block; }
.detail-back:hover { opacity: 0.65; }

.detail-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 100px 60px 80px 24px;
}

.detail-crumb { margin-left: 2px; }

.detail-columns {
  display: flex;
  gap: 34px;
  margin-top: 26px;
}

.detail-media-col {
  flex: 1.15;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-media {
  width: 100%;
  aspect-ratio: 6 / 4.9;
  background: #f0eeed;
}

.detail-info-col {
  flex: 1;
  min-width: 0;
  padding-top: 10px;
}

.detail-name {
  font-size: 72px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #17181a;
}

.detail-watchers {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #6f7680;
}
.detail-watchers svg { width: 18px; height: 13px; color: var(--navy); }

.detail-price {
  margin-top: 56px;
  font-size: 32px;
  font-weight: 600;
  color: #17181a;
  letter-spacing: -0.02em;
}

.detail-desc {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #6f7680;
}

.detail-colors-label {
  margin-top: 44px;
  font-size: 15px;
  color: #17181a;
}

.detail-colors {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.color-dot svg { width: 12px; height: 10px; opacity: 0; }
.color-dot.selected svg { opacity: 1; }

.detail-tags {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid #ececee;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-tag {
  padding: 12px 22px;
  border: 1px solid #e2e2e4;
  border-radius: 999px;
  font-size: 14px;
  color: #6f7680;
  background: #fff;
}
.detail-tag.active {
  background: #3a2e2a;
  border-color: #3a2e2a;
  color: #fff;
}

.detail-buy-row {
  margin-top: 70px;
  padding-top: 44px;
  border-top: 1px solid #ececee;
  display: flex;
  align-items: center;
  gap: 18px;
}

.detail-qty { padding: 13px 20px; }

.detail-add-cart {
  flex: 1;
  padding: 19px 0;
  background: var(--navy-deep);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.detail-add-cart:hover { background: #1a2436; }
.detail-add-cart.added { background: #d1cf29; }

.detail-also-title {
  margin-top: 120px;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #17181a;
}

.detail-also {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.also-card {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.also-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0eeed;
  transition: opacity 0.2s ease;
}
.also-card:hover .also-media { opacity: 0.6; }

.also-name {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 600;
  color: #17181a;
}

.also-price {
  margin-top: 8px;
  font-size: 17px;
  color: #1e2a3d;
}

/* ===== Adoption page ===== */
/* 메뉴바는 애니메이션 없이 상단에 고정 */
body.adoption-page { padding-top: 90px; }
body.adoption-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: transparent;
}

/* --- Intro (view 1): 이미지 + 텍스트가 한 화면(뷰포트)에 모두 보이도록 --- */








/* --- Studio (view 2) --- */
.adopt-studio {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.adopt-studio.entered { opacity: 1; }



.color-dot-lg {
  position: relative;
  overflow: hidden;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease;
}
.color-dot-lg:hover { transform: scale(1.1); }
.dot-swatch { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.color-dot-lg svg { position: relative; z-index: 1; width: 12px; height: 10px; opacity: 0; }
.color-dot-lg.selected svg { opacity: 1; }
.color-dot-lg.selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(30, 42, 61, 0.5); }

.turn-viewport {
  width: min(62vw, 1100px);   /* 기존 min(49.6vw, 880px)의 1.25배 */
  margin: 10px auto 0;
  cursor: grab;
  touch-action: pan-y;
}
.turn-viewport.grabbing { cursor: grabbing; }

/* ===== Adoption 히어로 (Reference 11) — 좌:정보 / 중앙:360 ===== */
.adopt-hero { padding: 24px 26px 40px; }

.adopt-lassie-title {
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 34px;
}

.adopt-cols {
  --abox: 104px;             /* 행 높이 산출용 기준값 (과거 우측 박스 한 변) */
  --agap: 16px;              /* 행 높이 산출용 간격 */
  display: flex;
  align-items: stretch;      /* 좌·중앙 높이를 맞춰 상·하단 끝선을 정렬 */
  gap: 24px;
  /* 행 높이는 그대로 유지 → 강아지 상·하단, 버튼 하단이 모두 이 선에 맞는다 */
  height: calc(var(--abox) * 4 + var(--agap) * 3);
}

/* 좌측 컬럼 */
.adopt-left { flex: 0 0 33%; display: flex; flex-direction: column; min-width: 0; }
.adopt-lassie-sub { font-size: 15px; line-height: 1.7; color: #8E9297; }
.adopt-rule { height: 1px; background: #ececee; margin: 26px 0; }
.adopt-bottom { margin-top: auto; }        /* 컬러·구분선·구매행을 하단에 정렬 */
.adopt-hero .adopt-tags {
  margin-top: 0; padding-top: 0; border-top: none; max-width: none;
  display: flex; flex-wrap: nowrap; gap: 12px; justify-content: space-between;
}
/* 표시 전용(선택 불가) · 비율 유지한 채 좌우 끝이 구분선과 일치하도록 균등 확장 */
.adopt-hero .detail-tag {
  flex: 1 1 auto;
  padding: 11px 4px;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
  cursor: default;
  pointer-events: none;
}
/* 컬러칩은 가로 한 줄 */
.adopt-hero .studio-colors {
  display: flex; flex-direction: row; align-items: center;
  justify-content: flex-start; gap: 14px; margin-bottom: 0;
}
.adopt-hero .adopt-buy-row { margin-top: 0; padding-top: 0; border-top: none; }
/* 레그 선택 단계로 넘어가면 컬러칩은 페이드아웃 후 사라진다 */
.adopt-hero .studio-colors { transition: opacity 0.5s ease; }
.adopt-hero .studio-colors.is-hidden { opacity: 0; }

/* 중앙 360 뷰어 — 360 인디케이터를 강아지 이미지에 겹쳐 배치 */
.adopt-center { flex: 1 1 auto; min-width: 0; position: relative; display: flex; align-items: stretch; justify-content: center; }
.adopt-center .turn-viewport { position: relative; width: 100%; margin: 0; z-index: 1; }
/* 프레임 PNG는 상 9.21% / 하 9.69%가 투명 여백이라, 강아지 실물이 행 높이를 꽉 채우도록 보정
   (높이 100/81.1 = 123.3%, 위로 9.21%×1.233 = 11.36% 끌어올림) */
.adopt-center .turn-viewport img {
  position: absolute;
  top: -11.36%;
  left: 50%;
  transform: translateX(-50%);
  height: 123.3%;
  width: auto;
  max-width: none;
}
.adopt-360 {
  transition: opacity 0.5s ease;
  position: absolute;
  /* 12번 프레임에서 강아지 중심(x=594.5)이 이미지 중심(550)보다 오른쪽으로 치우쳐 있다.
     원본 +44.5px에 렌더 배율(행높이 464px×1.233 ÷ 619)을 곱해 약 +41px 보정. */
  left: calc(50% + 41px);
  bottom: calc(4% - 40px);   /* 강아지에 너무 붙어 있어 아래로 내림(20px + 추가 20px) */
  transform: translateX(-50%);
  width: 42%;
  max-width: 420px;
  height: auto;
  pointer-events: none;
  z-index: 0;                /* 투명배경 강아지 이미지보다 아래 레이어 */
}

/* 우측 이미지 박스 4개는 제거했다. --abox·--agap은 행 높이 계산에만 남겨둔다. */

/* ===== Adoption: Leg 선택 ===== */
/* 태그 ↔ 레그 썸네일 자리 (겹치지 않게 같은 영역 사용) */
.adopt-swap { position: relative; }
.adopt-swap > * { transition: opacity 0.5s ease; }
.adopt-swap > .is-hidden { opacity: 0; }
/* .detail-tags/.adopt-legs의 display:flex가 [hidden]을 덮어써서 둘 다 보이던 문제 해결 */
.adopt-swap > [hidden] { display: none; }

/* 태그가 있던 자리의 상단 끝선에 맞춰 띄운다 (아래 요소를 밀지 않도록 절대배치) */
.adopt-legs { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 12px; }
.leg-thumb {
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: #F6F6F6;
  border: 4px solid transparent;   /* border-box라 선택 시에도 크기가 변하지 않는다 */
  border-radius: 18px;
  overflow: hidden;
  opacity: 0.6;
}
.leg-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 고른 레그만 불투명 + 4px 스트로크 */
.leg-thumb.selected { opacity: 1; border-color: #E1E1E1; }

/* 소개글 ↔ 레그 설명 전환 */
.adopt-lassie-sub { transition: opacity 0.5s ease; }
.adopt-lassie-sub.is-hidden { opacity: 0; }

/* 턴테이블 위에 겹치는 레그 이미지 (본체와 같은 위치·크기) */
/* 페이드는 Choose a Leg 진입 시 각도 초기화에만 쓴다. 레그 교체는 즉시 전환. */
#turnImg { transition: opacity 0.5s ease; }
#turnImg.is-hidden { opacity: 0; }
.leg-overlay { transition: none; }
#turnImg.is-off { visibility: hidden; }   /* 레그를 보는 동안 본체를 즉시 감춤 */
.leg-overlay {
  position: absolute;
  top: -11.36%;
  left: 50%;
  transform: translateX(-50%);
  height: 123.3%;
  width: auto;
  max-width: none;
  z-index: 2;
}



.turn-viewport img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}




/* --- Made to Move Together --- */
/*
  가로 기준선 (좌측 여백 51px, 텍스트 폭 560px)
    - 텍스트 컬럼 좌측 : 51px
    - 한글 본문/Weatherproof/Add to Cart 우측 : 51 + 560 = 611px
    - 이미지 박스 좌측 : 611 + 120 = 731px
  세로 기준선
    - 제목 상단 = 이미지 박스 상단, Add to Cart 하단 = 이미지 박스 하단
*/
.adopt-move-wrap {
  display: flex;
  gap: 0;
  align-items: stretch;
  padding: 90px 0 0;
  margin-bottom: 32px;       /* 하단 끝 ~ 검은색 푸터 사이 간격 */
  background: #fff;
}

/* 텍스트 컬럼 폭 = 본문(가장 넓은 줄) 폭 → 선·Weatherproof·Add to Cart 우측 끝이 본문 우측 끝과 일치 */
.adopt-move-col {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 130px 0 51px;   /* 우측 130px = 본문 우측 끝 ~ 이미지 박스 시작 */
}

.adopt-move-title {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 34px;
  font-weight: 600;          /* Pretendard SemiBold */
  line-height: 1;            /* 상단 끝선을 이미지 박스 상단에 맞춤 */
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* 지정된 줄바꿈(<br>)대로만 개행 → 가장 긴 줄의 폭이 컬럼 폭 기준선이 된다 */
.adopt-move-desc {
  margin-top: 22px;
  width: max-content;
  max-width: none;
  font-size: 15.5px;
  line-height: 1.75;
  color: #6f7680;
}

/* 4개 태그를 본문 폭에 고르게 펼쳐 Weatherproof 우측 끝이 본문 우측 끝과 일치 */
.adopt-tags {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid #ececee;
  justify-content: space-between;
}

.adopt-buy-row {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #ececee;
  align-items: stretch;      /* 수량 박스 세로 폭을 Add to Cart와 동일하게 */
}

.adopt-buy-row .detail-qty { padding-top: 0; padding-bottom: 0; }

/* Add to Cart도 Pretendard SemiBold */
.adopt-buy-row .detail-add-cart {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-weight: 600;
}

/* 우측 이미지 박스: 좌측은 본문 우측 끝 +130px, 우측은 화면 끝까지
   세로는 제목 상단 ~ Add to Cart 하단 (컬럼 높이에 stretch) */
.adopt-move-media {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  background: #f0eeed;
  overflow: hidden;
}
/* absolute: 사진의 고유 높이가 행 높이를 밀어내지 않도록(= 텍스트 컬럼 높이에 정확히 맞춤) */
.adopt-move-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* 비율 유지 + 박스에 꽉 차게 */
  -webkit-user-drag: none;
  user-select: none;
}

/* 장바구니 항목에 실제 상품 이미지가 있을 때 */
/* 상품 배경을 F6F6F6으로 통일.
   multiply 블렌드로 사진의 흰 배경만 F6F6F6이 되고 제품은 거의 영향 없음
   (투명 PNG는 투명 영역이 그대로 배경색으로 보인다) */
.cart-item-media-photo { background: #F6F6F6; }
.cart-item-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
/* Adoption(Lassie) 이미지는 작게 보여 1.6배 확대 (중앙 기준) */
.cart-item-media-lassie { overflow: hidden; }
/* PNG 안에서 강아지가 5.77% 우측으로 치우쳐 있어 보정 후 확대 */
.cart-item-media-lassie img { transform: scale(1.6) translateX(-5.77%); transform-origin: center center; }

.promo-coupon-ic { width: 16px; height: 16px; flex-shrink: 0; display: block; }

/* ===== Cart badge & add-to-cart button ===== */
.icon-btn { position: relative; }

.cart-badge {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid #fff;
}

/* ===== Cart / checkout page ===== */
.cart-hero { padding: 40px 26px 0 51px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #9aa1ab;
}
.breadcrumb a { color: #9aa1ab; text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.crumb-arrow { width: 7px; height: 11px; color: #c3c7cd; }
.crumb-link {
  color: var(--navy);
  font-weight: 500;
}
#crumbPaymentWrap { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 500; }

.cart-page-title {
  margin-top: 6px;
  font-size: 96px;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--navy);
}

.cart-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px 26px 0 51px;    /* 우측 끝을 프로필 아이콘(헤더 26px)에 정렬 */
  border-bottom: 1px solid #e7e7e9;
}

.cart-tab {
  font-size: 16px;
  font-weight: 600;            /* Pretendard SemiBold — 모든 탭 동일 굵기 유지 */
  color: #9aa1ab;
  text-align: center;
  padding: 0 0 16px;
  margin-bottom: -1px; /* 활성 밑줄이 회색 기준선 위에 겹치도록 */
  border-bottom: 2px solid transparent;
}
.cart-tab.active {
  color: var(--navy);          /* 활성은 색·밑줄만 변경(굵기 동일) */
  border-bottom-color: #34c9dc; /* 그리드 셀 전체(정확히 1/3) 폭으로 밑줄 */
}
.cart-tab[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }

.cart-body {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 48px 26px 140px 51px;   /* 우측 끝을 프로필 아이콘에 정렬 */
}
.cart-body.success-mode { justify-content: center; }
.cart-body.success-mode .cart-side-col { width: 480px; }

.cart-items-col {
  flex: 1;
  min-width: 0;
  border-right: 1px solid #ececee;
  padding-right: 60px;
}

.cart-item {
  display: flex;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid #ececee;
}
.cart-item:first-child { padding-top: 0; }

.cart-item-media {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background: #f0eeed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}
.cart-item-media span { font-size: 12.5px; color: #a2a4a8; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cart-item-top h3 { font-size: 19px; font-weight: 600; color: var(--navy); }

.cart-item-delete { color: var(--navy); flex-shrink: 0; }
.cart-item-delete svg,
.cart-item-delete img { width: 18px; height: 18px; display: block; }
.cart-item-delete:hover { color: #e15361; }
.cart-item-delete:hover img { opacity: 0.55; }

.cart-item-color { margin-top: 8px; font-size: 14px; color: var(--navy); }
.cart-item-color span { color: #9aa1ab; }

/* Color 라벨 아래 좌측정렬 컬러칩 (2색은 위/아래로 반 나눔) */
.cart-item-color-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.cart-color-chip {
  display: block;
  margin-top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(30, 42, 61, 0.12);
}

.cart-item-bottom {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-item-price { font-size: 19px; font-weight: 600; color: var(--navy); }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f4f4f3;
  border-radius: 999px;
  padding: 8px 16px;
}
.qty-btn { font-size: 16px; color: var(--navy); width: 16px; }
.qty-val { font-size: 15px; font-weight: 600; color: var(--navy); min-width: 12px; text-align: center; }

.cart-empty {
  padding: 90px 20px;
  text-align: center;
}
.cart-empty-title { font-size: 22px; font-weight: 700; color: var(--navy); }
.cart-empty-desc { margin-top: 10px; font-size: 14.5px; color: #9aa1ab; }
.cart-empty .btn-dark-pill { margin-top: 26px; display: inline-flex; }

.cart-summary-inline { margin-top: 36px; }
.cart-details-panel h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.detail-row { padding: 16px 0; border-bottom: 1px solid #ececee; display: flex; justify-content: space-between; gap: 20px; }
.detail-row strong { color: var(--navy); font-size: 15px; }
.detail-row span { color: #9aa1ab; font-size: 14px; text-align: right; }

.cart-side-col { width: 420px; flex-shrink: 0; }

.order-summary h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 26px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 15.5px;
  color: #9aa1ab;
}
.summary-row span:last-child { color: var(--navy); }
.summary-row .discount { color: #f4757e !important; }

.summary-total {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #ececee;
  font-size: 19px;
  font-weight: 700;
}
.summary-total span { color: var(--navy) !important; }

.promo-row {
  margin-top: 30px;
  display: flex;
  gap: 8px;
}
.promo-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f4f3;
  border-radius: 999px;
  padding: 13px 18px;
}
.promo-input-wrap svg { width: 16px; height: 16px; color: #9aa1ab; flex-shrink: 0; }
.promo-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--navy);
}
.promo-input-wrap input::placeholder { color: #a7abb2; }

.btn-dark-pill {
  padding: 13px 22px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.promo-msg { margin-top: 10px; font-size: 13px; color: #9aa1ab; min-height: 16px; }

.btn-checkout {
  display: block;
  width: 100%;
  margin-top: 26px;
  padding: 18px 0;
  background: var(--navy-deep);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-checkout:hover { transform: translateY(-1px); }
.btn-checkout.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-checkout.shake { animation: cart-shake 0.4s ease; }
@keyframes cart-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.cart-empty-msg { margin-top: 14px; font-size: 13px; color: #e15361; text-align: center; }

/* Shipping / payment forms */
.shipping-form h2,
.payment-form h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 26px;
}

.shipping-form input,
.shipping-form select,
.payment-form input,
.payment-form select {
  width: 100%;
  border: 1px solid #e2e2e4;
  border-radius: 999px;
  padding: 15px 20px;
  font-size: 14.5px;
  color: var(--navy);
  outline: none;
  margin-bottom: 14px;
  background: #fff;
}
.shipping-form input::placeholder,
.payment-form input::placeholder { color: #a7abb2; }
.shipping-form input:focus,
.shipping-form select:focus,
.payment-form input:focus,
.payment-form select:focus { border-color: var(--navy); }

/* 네이티브 select 화살표 제거(커스텀 셰브론 사용) + 미선택 시 플레이스홀더 색 */
.select-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.select-field:invalid { color: #a7abb2; }

/* 작성/선택 완료된 칸은 D1CF29 30% 로 표시 */
.shipping-form input.filled,
.shipping-form select.filled,
.payment-form input.filled,
.payment-form select.filled {
  background: rgba(209, 207, 41, 0.3);
  border-color: rgba(209, 207, 41, 0.55);
}

.form-row { display: grid; gap: 12px; margin-bottom: 14px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row input,
.form-row select { margin-bottom: 0; }

.select-like { position: relative; }
.select-like input,
.select-like select { padding-right: 34px; }
.select-like svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 7px;
  color: #9aa1ab;
  pointer-events: none;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
}
.checkbox-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #d3d5d9;
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
}
.checkbox-row input:checked + .checkbox-box { background: var(--navy-deep); border-color: var(--navy-deep); }
.checkbox-row input:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.pay-brands {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 첫/마지막 로고가 입력칸 좌우 끝에 정렬 */
  margin: 20px 0 6px;
}
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 42px;
  padding: 6px 8px;
  border: 1px solid #e2e2e4;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.brand-logo img { max-width: 100%; max-height: 100%; display: block; }
.brand-logo:hover { border-color: #c8c9cc; }
.brand-logo.selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

.toggle-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--navy);
}
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: #d9dadd;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.toggle input:checked ~ .toggle-track { background: var(--navy-deep); }
.toggle input:checked ~ .toggle-track .toggle-thumb { transform: translateX(18px); }

/* Success */
.order-success { text-align: center; padding-top: 40px; }
.success-ic { width: 56px; height: 56px; color: #4caf6f; margin-bottom: 20px; }
.order-success h2 { font-size: 26px; font-weight: 700; color: var(--navy); }
.order-success p { margin-top: 12px; font-size: 14.5px; color: #9aa1ab; }
.order-success .btn-checkout { margin-top: 28px; }

/* ===== Small screens: keep it from breaking badly ===== */


/* ===== Accessories: 실제 제품 이미지 + Try on ===== */
.product-media { position: relative; padding: 0; overflow: hidden; }

/* 기본/착용 이미지를 겹쳐 두고 Try on 시 crossfade */
.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.product-img.is-on { opacity: 1; }

/* Apply Filter 시 그리드 전체를 Try on과 동일한 속도로 페이드 */
.product-grid { transition: opacity 0.5s ease; }
.product-grid.grid-fading { opacity: 0; }


/* 상세 설명 하단 각주 (· 항목) */
.detail-notes {
  display: block;
  margin-top: 18px;
  color: #9aa1ab;
  line-height: 1.9;
}

.shop-meta { justify-content: space-between; }
.shop-meta-right { display: inline-flex; align-items: center; gap: 44px; }

.tryon-btn {
  background: #D7D133;
  color: #1e2a3d;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.3s ease, color 0.3s ease;
}
.tryon-btn:hover { transform: translateY(-1px); }
.tryon-btn.active { background: #2b2b2b; color: #fff; }


.detail-media { overflow: hidden; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.also-media { background-size: cover; background-position: center; }

/* ===== Plans / Pricing page ===== */
.plans-page { background: #fff; }

.plans-hero {
  padding: 90px 40px 0;
  text-align: center;
}
.plans-title {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 96px;
  font-weight: 600;          /* Pretendard SemiBold */
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--navy);
}
.plans-subtitle {
  margin: 26px auto 0;
  font-size: 20px;
  line-height: 1.6;
  color: #9aa1ab;
}

/* Top Pick / All 세그먼트 토글 */
.plans-toggle {
  margin: 48px auto 0;
  display: inline-flex;
  gap: 2px;
  padding: 5px;
  background: #ededed;
  border-radius: 999px;
}
.plans-seg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: #7b828c;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.plans-seg.active {
  background: #fff;
  color: var(--navy);
}
.seg-save { font-size: 15px; color: #a7abb2; font-weight: 500; }

/* 스마트폰에서만 줄바꿈 */
.br-phone { display: none; }

/* 카드 그리드 */
.plans-grid {
  display: flex;
  align-items: stretch;
  gap: 70px;                    /* 카드 사이 간격 */
  margin: 0;
  padding: 70px 120px 130px;    /* 화면 좌우 끝 ~ 카드 간격 */
}

/* Top Pick: Long Stay + Adopt 두 장만 (Short Stay 숨김) */
.plans-grid.view-top [data-plan="short"] { display: none; }

.plan-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 46px 44px 44px;
  background: #fff;
  border: 1px solid #e7e7e9;
  border-radius: 24px;
}
.plan-card-dark {
  background: #1D2737;
  border-color: #1D2737;
}

.plan-name {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.plan-card-dark .plan-name { color: #fff; }

.plan-badge {
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--yellow);
  color: #1D2737;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan-price {
  margin-top: 36px;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.plan-card-dark .plan-price { color: #fff; }

.plan-period {
  margin-top: 10px;
  font-size: 15px;
  color: #9aa1ab;
}
.plan-card-dark .plan-period { color: #9aa6b2; }

.plan-lead {
  margin-top: 40px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.plan-card-dark .plan-lead { color: #fff; }

.plan-features {
  margin-top: 24px;
  list-style: none;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 16px;
  color: #6b7280;
}
.plan-card-dark .plan-features li { color: #c4cbd4; }

.feat-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #ececec;
  color: #9aa1ab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feat-check svg { width: 12px; height: 10px; }
.plan-card-dark .feat-check { background: #fff; color: #1D2737; }

.plan-btn {
  margin-top: auto;
  width: 100%;
  margin-bottom: 0;
  padding: 17px 0;
  border: 1px solid #d8dade;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.25s ease;
}
.plan-features + .plan-btn { margin-top: 42px; }
.plan-btn:hover { transform: translateY(-1px); background: #f7f7f6; }
.plan-btn.picked { background: #D7D133; border-color: #D7D133; color: #1D2737; transform: none; }
.plan-btn-solid {
  border-color: #fff;
  background: #fff;
  color: #1D2737;
}
.plan-btn-solid:hover { background: #f0f0f0; }

/* (선택한 플랜 표시 배지는 Adoption 화면에서 제거됨 — 장바구니 반영만 유지) */

/* =========================================================
   Responsive — 태블릿(≤900px) / 스마트폰(≤600px)
   데스크톱 레이아웃은 그대로 두고, 좁은 화면에서만 세로로 쌓는다.
   ========================================================= */

/* ---------- 태블릿 ---------- */
@media (max-width: 900px) {
  .hero { height: 82vh; min-height: 480px; }

  /* 좌우 여백 축소 (데스크톱 51/144px → 24px) */
  .cart-hero, .cart-tabs, .cart-body,
  .club-hero, .club-body,
  .archive-wrap, .profile-hero, .profile-body,
  .faq-section, .adopt-hero, .plans-grid { padding-left: 24px; padding-right: 24px; }
  .cart-tabs { margin-left: 24px; margin-right: 24px; }

  .shop-layout { padding: 0 24px 60px; }
  .shop-main { margin-left: 40px; }
  .shop-sidebar { width: 210px; margin-top: 120px; }
  .product-grid { gap: 56px 14px; }

  .faq-section { gap: 40px; }
  .faq-title { width: 300px; font-size: 44px; }

  .plans-grid { gap: 32px; }
  .adopt-cols { --abox: 84px; --agap: 12px; gap: 16px; }
  .adopt-lassie-title { font-size: 56px; }
}

/* ---------- 스마트폰 ---------- */
@media (max-width: 600px) {
  /* --- 공통: 헤더 --- */
  .site-header { padding: 12px 14px; gap: 8px; }
  .logo-typo, .logo-symbol { height: 27.2px; }   /* 34px에서 20% 축소 — 메인 워드마크가 넓어 헤더가 넘치던 문제 */
  .header-right { gap: 8px; }
  .menu-wrap { margin-right: 4px; }
  .nav-pill { width: auto; min-width: 0; }
  #menuNavToggle { flex: 0 0 auto; width: auto; padding: 8px 10px; font-size: 13px; }
  .nav-item { font-size: 13px; padding: 8px 10px; gap: 6px; }
  .nav-about { padding: 8px 12px; }
  .nav-divider { margin-left: 4px; }
  .nav-search { padding: 8px 8px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn .ic { width: 14px; height: 14px; }
  .cart-badge { min-width: 18px; height: 18px; font-size: 11px; }
  .menu-panel { width: calc(100% + 20px); max-width: calc(100vw - 28px); }   /* 탭과 동일한 좌우 10px 간격 */
  /* 좌측 메뉴 아이콘(16px)과 우측 X(26px)의 세로 중심을 맞추고 둘 다 7px 내림
     → 아이콘 중심 89px 기준: 콘텐츠 padding-top 81px, X top 76px */
  .menu-panel-content { padding: 81px 22px 32px; }
  .menu-close { top: 76px; right: 14px; }
  .br-phone { display: inline; }

  /* --- 공통: 페이지 좌우 여백 --- */
  .cart-hero, .cart-tabs, .cart-body,
  .club-hero, .club-body,
  .archive-wrap, .profile-hero, .profile-body,
  .faq-section, .adopt-hero, .plans-grid,
  .site-footer-lg { padding-left: 14px; padding-right: 14px; }
  .cart-tabs { margin-left: 14px; margin-right: 14px; }

  /* --- 공통: 큰 타이틀 --- */
  .cart-page-title, .club-title, .shop-title, .archive-title,
  .plans-title, .adopt-lassie-title { font-size: 40px; }
  .club-subtitle { font-size: 20px; }
  .plans-subtitle { font-size: 15px; }

  /* --- 메인 --- */
  .hero { height: 72vh; min-height: 420px; }
  .site-footer-lg { padding-top: 60px; padding-bottom: 70px; }
  .footer-main { margin-top: 40px; flex-direction: column; gap: 28px; }
  .footer-brand { width: auto; font-size: 22px; }
  .footer-info { grid-template-columns: 1fr; row-gap: 18px; font-size: 15px; }
  .footer-ceo { grid-template-columns: 1fr 1fr; gap: 6px 12px; }

  /* --- Adoption: 3단 → 세로 스택 --- */
  .adopt-cols { flex-direction: column; height: auto; gap: 26px; }
  .adopt-left { flex: 1 1 auto; width: 100%; }
  .adopt-bottom { margin-top: 26px; }
  .adopt-center { width: 100%; height: 62vw; min-height: 240px; }
  /* 데스크톱은 height 기준(width:auto)이라 좁은 화면에서 폭이 화면을 넘어선다 → 폭 기준으로 전환 */
  .adopt-center .turn-viewport img,
  .leg-overlay {
    top: 0; left: 0;
    transform: translateX(-2.1%);   /* PNG 안에서 강아지가 2.1% 우측이라 보정 */
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .adopt-360 { width: 56%; bottom: 2%; left: 50%; }   /* 데스크톱의 +41px 보정 해제 → 화면 중앙 */
  .adopt-boxes { flex-direction: row; width: 100%; gap: 10px; }
  .adopt-box { flex: 1 1 0; width: auto; height: auto; aspect-ratio: 1 / 1; }
  .adopt-hero .adopt-tags { flex-wrap: wrap; gap: 8px; }
  .adopt-hero .detail-tag { flex: 0 0 auto; font-size: 12.5px; padding: 8px 12px; }
  .adopt-legs { position: static; }
  .adopt-swap { min-height: 0; }
  .adopt-buy-row { flex-wrap: nowrap; }
  .detail-add-cart { font-size: 14px; }

  /* --- Accessories: 사이드바 → 상단, 그리드 2열 --- */
  .shop-layout { flex-direction: column; align-items: stretch; padding: 0 14px 48px; }
  .shop-sidebar { width: 100%; margin-top: 24px; }
  .shop-main { margin-left: 0; margin-top: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 12px; }
  .shop-meta { flex-wrap: wrap; gap: 12px; }
  .shop-meta-right { gap: 16px; font-size: 12.5px; }
  .pagination { flex-wrap: wrap; gap: 14px; }

  /* 상품 상세 슬라이드인 */
  .detail-panel { width: 100%; }
  .detail-scroll { padding: 84px 18px 60px; }
  .detail-columns { flex-direction: column; gap: 22px; }
  .detail-back { left: 12px; }

  /* --- Cart --- */
  /* 세로 스택에서 align-items:flex-start면 자식이 내용폭으로 줄어든다 → stretch로 우측 끝 정렬 */
  .cart-body { flex-direction: column; gap: 32px; align-items: stretch; }
  .cart-items-col { border-right: none; padding-right: 0; }
  .cart-side-col { width: 100%; }
  .cart-tab { font-size: 13px; padding-bottom: 12px; }
  .cart-item { gap: 14px; }
  .cart-item-media { width: 108px; height: 108px; }
  .cart-item-top h3 { font-size: 16px; }
  .cart-item-price { font-size: 16px; }
  .form-row.two, .form-row.three { grid-template-columns: 1fr; }
  .promo-row { flex-wrap: nowrap; gap: 6px; }
  .promo-input-wrap { min-width: 0; padding: 12px 14px; }
  .promo-row .btn-dark-pill { flex: 0 0 auto; padding: 12px 16px; white-space: nowrap; }
  .order-summary, .shipping-form, .payment-form, .order-success { width: 100%; min-width: 0; }
  .brand-logos { flex-wrap: wrap; gap: 10px; }

  /* --- Plans --- */
  .plans-hero { padding-top: 56px; }
  .plans-grid { flex-direction: column; padding-top: 40px; padding-bottom: 70px; gap: 22px; }
  .plan-card { padding: 32px 24px; }
  .plan-price { font-size: 34px; margin-top: 24px; }
  .plan-name { font-size: 22px; }
  .plans-toggle { margin-top: 30px; }
  .plans-seg { padding: 11px 20px; font-size: 14px; }

  /* --- Club: 4열 표 → 2열 --- */
  .club-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 14px; padding: 18px 0; }
  .club-row-head { display: none; }

  /* --- FAQ --- */
  .faq-section { flex-direction: column; gap: 26px; padding-bottom: 120px; }
  .faq-title { width: 100%; font-size: 34px; }
  .faq-question { font-size: 14.5px; }
  .cs-button { right: 16px; bottom: 16px; font-size: 13px; padding: 12px 18px; }
  .chat-widget {
    width: calc(100vw - 24px);
    right: 12px;
    left: 12px;
    top: 96px;
    bottom: 84px;
    max-height: none;
  }

  /* --- Archive --- */
  .archive-title { font-size: 40px; margin-left: 0; }
  .archive-words { margin-left: 0; margin-right: 0; font-size: 12px; }
  .archive-words .aw-mid { gap: 16px; }
  .archive-video-wrap { margin-top: 4px; }

  /* --- Profile --- */
  .profile-welcome { font-size: 34px; }
  .profile-edit { position: static; display: block; margin: 18px auto 0; padding: 12px 28px; font-size: 15px; }
  .profile-form { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .profile-tagline { font-size: 17px; }
  .profile-body { padding-top: 40px; padding-bottom: 70px; }
}
