/* ==========================================================================
   AILO Shop E08 — 산너머 아웃도어 (스포츠·아웃도어 몰)
   원형 B: 산 능선 풀블리드 + 가운데 정렬 슬라이드, 오버레이 헤더(투명 → 흰 배경)
   타이포: Pretendard + Barlow Condensed(영문 대문자·숫자만) / 컬러: 슬레이트 #2e3b47 · 모스 #6f8f3a · 흰 바탕 + #f2f4f3 면
   ========================================================================== */
:root {
  --ailo-tabbar-z: 90; --ailo-tabbar-fg: var(--ailo-muted); --ailo-tabbar-badge: var(--e08-moss);
  --e08-slate: #2e3b47;
  --e08-ink: #1b232b;
  --e08-moss: #6f8f3a;
  --e08-moss-ink: #4b6524;      /* 흰 바탕 글자용(대비 6:1) */
  --e08-moss-lt: #c3d69a;       /* 어두운 면 글자용 */
  --e08-mist: #f2f4f3;
  --e08-cond: "Barlow Condensed", var(--ailo-font);
  --e08-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M-20 320c80-40 140-10 210-50s120-110 210-90 150 70 220 40'/%3E%3Cpath d='M-20 350c90-30 150 0 220-40s130-100 210-80 140 70 210 45'/%3E%3Cpath d='M-20 290c70-50 130-20 200-60s110-120 200-100 160 70 240 30'/%3E%3Cpath d='M-20 250c60-55 120-30 190-70s100-130 190-110 170 70 260 25'/%3E%3Cpath d='M-20 210c55-60 110-40 180-80s95-130 180-115 180 65 280 20'/%3E%3Cpath d='M210 150c30-25 70-30 100-10s20 50-20 55-100-15-80-45Z'/%3E%3Cpath d='M235 152c18-12 40-14 56-4s10 26-12 28-56-8-44-24Z'/%3E%3C/g%3E%3C/svg%3E");

  --ailo-bg: #ffffff;
  --ailo-fg: #1d242b;
  --ailo-muted: #56606a;
  --ailo-line: #dfe3e1;
  --ailo-accent: #2e3b47;
  --ailo-accent-ink: #ffffff;
  --ailo-header-h: 76px;
  --ailo-max: 1320px;
  --ailo-eyebrow-color: var(--e08-moss-ink);
  --ailo-hero-btn-radius: 2px;
  --e08-tb-h: 40px;
}
body { font-feature-settings: "tnum" 0; }
.ailo-eyebrow { font-family: var(--e08-cond); font-size: 15px; font-weight: 600; letter-spacing: .16em; }
.ailo-title { letter-spacing: -.03em; }
.head { margin-bottom: clamp(28px, 3vw, 44px); }
.sec { padding: clamp(72px, 8vw, 120px) 0; }
.sec--tight { padding-bottom: clamp(48px, 5vw, 72px); }
.sec--mist { background: var(--e08-mist); }
.sec__more { margin-top: 48px; text-align: center; }
.btn-line {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 1px solid var(--ailo-fg); border-radius: 2px; font-size: 16px; font-weight: 700; color: var(--ailo-fg);
  transition: background-color .2s, color .2s;
}
.btn-line:hover { background: var(--ailo-fg); color: #fff; }
.btn-line--light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-line--light:hover { background: #fff; color: var(--e08-ink); }

/* ---------- 상단 띠 ---------- */
.tb { background: var(--e08-ink); color: #e6ebe9; position: relative; z-index: 2; font-size: inherit; line-height: inherit; }
.tb__in { min-height: var(--e08-tb-h); padding-right: 52px; padding-left: 52px; }
.tb__txt { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb__txt b { color: var(--e08-moss-lt); font-weight: 700; margin-right: 4px; }
.tb__txt:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tb__close { position: absolute; right: calc(var(--ailo-gutter) - 10px); top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; background: transparent; color: #e6ebe9; font-size: 16px; }

/* ---------- 헤더 ---------- */
.hd { --hd-field: rgba(255, 255, 255, .14); --hd-field-line: rgba(255, 255, 255, .38); --hd-btn-line: rgba(255, 255, 255, .4); }
.hd.is-scrolled, .hd.is-mega-open, .hd.is-search-open, .hd:has(:focus-visible), html.nav-open .hd {
  --hd-field: var(--e08-mist); --hd-field-line: transparent; --hd-btn-line: var(--ailo-line);
}
.hd.is-search-open { background: var(--ailo-bg); color: var(--ailo-fg); box-shadow: 0 1px 0 var(--ailo-line); }
.hd.is-search-open::before { opacity: 0; }
.hd__in { display: flex; align-items: center; gap: 18px; height: var(--ailo-header-h); }
.hd__logo, .ft__logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.hd__mark { width: 38px; height: 27px; }
.hd__name { display: flex; flex-direction: column; font-size: 22px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.hd__name small { font-family: var(--e08-cond); font-size: 13px; font-weight: 600; letter-spacing: .3em; margin-top: 2px; opacity: .85; }
.hd__catbtn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; margin-left: 10px;
  border: 1px solid var(--hd-btn-line); border-radius: 2px; background: transparent; font-size: 16px; font-weight: 700; white-space: nowrap;
}
.hd__catbtn[aria-expanded="true"] { background: var(--e08-slate); border-color: var(--e08-slate); color: #fff; }
.hd__nav ul { display: flex; align-items: center; gap: 2px; }
.hd__nav a { position: relative; display: block; padding: 10px 12px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.hd__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s var(--ailo-ease); }
.hd__nav a:hover::after, .hd__nav a:focus-visible::after { transform: scaleX(1); }
.hd__search { position: relative; flex: 0 1 300px; margin-left: auto; }
.hd__search input {
  width: 100%; height: 44px; padding: 0 48px 0 18px; border: 1px solid var(--hd-field-line); border-radius: 999px;
  background: var(--hd-field); color: inherit; font-size: 15px; outline: none; transition: background-color .3s, border-color .3s;
}
.hd__search input::placeholder { color: currentColor; opacity: .7; }
.hd__search input:focus-visible { outline: 2px solid var(--ailo-accent); outline-offset: 1px; }
.hd__search input::-webkit-search-cancel-button { display: none; }
.hd__search button { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; }
.hd__util { display: flex; align-items: center; gap: 2px; flex: none; }
.hd__ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; font-size: 19px; }
.hd__ico:hover { opacity: .75; }
.hd__count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--e08-moss); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.hd__searchbtn { display: none; }

/* 전체 카테고리 판 */
.catp {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
  background: var(--ailo-bg); color: var(--ailo-fg); border-top: 1px solid var(--ailo-line); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .25);
}
.catp[hidden] { display: none; }
.catp__in { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; padding-top: 32px; padding-bottom: 36px; }
.catp__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.catp__h { display: block; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--ailo-line); font-size: 17px; font-weight: 800; }
.catp__sub a { display: block; padding: 6px 0; font-size: 15px; color: var(--ailo-muted); }
.catp__h:hover, .catp__sub a:hover, .catp__sub a:focus-visible { color: var(--e08-moss-ink); }
.catp__promo { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 220px; padding: 24px; background: var(--e08-ink) var(--e08-topo) center / cover; color: #fff; border-radius: 2px; }
.catp__eyebrow { font-family: var(--e08-cond); font-size: 15px; font-weight: 600; letter-spacing: .16em; color: var(--e08-moss-lt); }
.catp__promo strong { font-size: 22px; font-weight: 800; }
.catp__promo span:last-child { font-size: 15px; opacity: .85; }
.catp__promo:hover { color: #fff; }

/* ---------- 모바일 메뉴 ---------- */
.mnav { background: var(--ailo-bg); padding: calc(var(--ailo-header-h) + var(--e08-tb-h) + 20px) var(--ailo-gutter) 120px; }
.mnav__member { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mnav__auth { display: contents; }
.mnav__member a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ailo-line); border-radius: 999px; font-size: 15px; font-weight: 600; }
.mnav__menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ailo-line); font-size: 20px; font-weight: 700; }
.mnav__label { margin: 28px 0 12px; font-size: 14px; font-weight: 700; color: var(--ailo-muted); }
.mnav__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mnav__cats a { padding: 14px 16px; background: var(--e08-mist); font-size: 16px; font-weight: 600; border-radius: 2px; }
.mnav__cs { margin-top: 28px; font-size: 15px; color: var(--ailo-muted); line-height: 1.8; }
.mnav__cs a { font-weight: 800; color: var(--ailo-fg); }

/* ---------- 히어로 ---------- */
.hero {
  --ailo-hero-h: clamp(480px, 48vw, 640px);
  --ailo-hero-h-m: 480px;
  --ailo-hero-size: clamp(30px, 2.6vw + 14px, 58px);
  --ailo-hero-dim: linear-gradient(180deg, rgba(14, 20, 26, .55) 0%, rgba(14, 20, 26, .32) 45%, rgba(14, 20, 26, .58) 100%);
}
.hero .ailo-hero__body { padding-top: calc(var(--ailo-header-h) + var(--e08-tb-h) + 32px); padding-bottom: 104px; }
.hero__eyebrow { font-size: 16px; letter-spacing: .32em; color: var(--e08-moss-lt); }
.hero .ailo-hero__title { max-width: 16em; letter-spacing: -.035em; }
.hero .ailo-hero__ctrl { justify-content: center; }
.hero .ailo-hero__btn:not(.ailo-hero__btn--ghost) { background: #fff; color: var(--e08-ink); }
.hero .ailo-hero__btn:not(.ailo-hero__btn--ghost):hover { background: var(--e08-moss-lt); color: var(--e08-ink); }
.hero__coord {
  position: absolute; right: var(--ailo-gutter); bottom: clamp(36px, 5vh, 64px); z-index: 3; margin: 0;
  font-family: var(--e08-cond); font-size: 15px; font-weight: 500; letter-spacing: .22em; color: rgba(255, 255, 255, .72);
}

/* ---------- 활동별 바로가기 ---------- */
.act__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: #fff; }
.act__tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; max-height: 540px; width: 100%; padding: clamp(20px, 2.4vw, 36px); overflow: hidden; color: #fff; isolation: isolate; background: var(--e08-slate); }
.act__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ailo-ease); }
.act__tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 20, 26, 0) 35%, rgba(14, 20, 26, .78)); }
.act__tile:hover { color: #fff; }
.act__tile:hover img, .act__tile:focus-visible img { transform: scale(1.05); }
.act__en { font-family: var(--e08-cond); font-size: 16px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--e08-moss-lt); }
.act__ko { margin-top: 4px; font-size: clamp(26px, 1.4vw + 14px, 36px); font-weight: 800; letter-spacing: -.03em; }
.act__desc { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 16px; color: rgba(255, 255, 255, .86); }
.act__desc::after { content: "\2192"; transition: transform .25s var(--ailo-ease); }
.act__tile:hover .act__desc::after { transform: translateX(4px); }

/* ---------- 장비로 찾기 ---------- */
.cq { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px; }
.cq__a { display: grid; gap: 12px; justify-items: center; text-align: center; }
.cq__img { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--e08-mist); border-radius: 2px; }
.cq__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ailo-ease); }
.cq__a:hover img { transform: scale(1.06); }
.cq__name { font-size: 16px; font-weight: 700; }
.cq__a:hover .cq__name { color: var(--e08-moss-ink); }

/* ---------- 상품 카드 ---------- */
.ptabs .ailo-tabs__list { border-bottom-color: #cfd5d2; margin-bottom: 12px; }
.ptabs .ailo-tabs__tab { font-size: 18px; padding: 0 22px; }
.ptabs .ailo-tabs__panel { padding-top: 28px; }
.pd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
/* 상품 카드 — 뼈대·가격 줄·품절 기본은 공용 .ailo-prod (common/css/ailo-base.css S4), 아래는 이 템플릿 모양만 */
.pd__media { background: #fff; border-radius: 2px; }
.sec:not(.sec--mist) .pd__media { background: var(--e08-mist); }
.pd__media img { transition: transform .6s var(--ailo-ease), opacity .3s; }
.pd__link:hover .pd__media img, .pd__link:focus-visible .pd__media img { transform: scale(1.045); }
.pd__badge { z-index: 1; border: 0; border-radius: 2px; background: var(--e08-slate); line-height: 1.4; color: #fff; }
.pd__badge--sold { background: #5d6268; }
.pd__brand { margin-top: 16px; font-family: var(--e08-cond); font-size: 15px; letter-spacing: .12em; }
.pd__name { margin-top: 4px; font-size: 16px; }
.pd__brand + .pd__name { margin-top: 4px; }
.pd__sum { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 8px; font-size: 15px; line-height: 1.55; }
.pd__price { align-content: flex-start; column-gap: 8px; min-height: 52px; margin-top: 10px; }
.pd__dc { font-size: 18px; color: var(--e08-moss-ink); }
.pd__now { font-size: 18px; letter-spacing: -.01em; }
.pd__old { flex-basis: 100%; order: 3; }
.pd__meta { display: block; }
.pd__meta > span:first-child { color: var(--e08-moss); }
.pd__dot { margin: 0 2px; }
/* 베스트 순위(브랜드 줄 앞) */
.pd-grid--rank { counter-reset: rk; }
.pd-grid--rank > .pd { counter-increment: rk; }
.pd-grid--rank .pd__brand::before { content: counter(rk, decimal-leading-zero); margin-right: 10px; font-weight: 700; color: var(--e08-moss-ink); letter-spacing: .04em; }
/* 품절 */
.pd.is-soldout .pd__media img { opacity: .42; filter: grayscale(1); }
.pd.is-soldout .pd__name, .pd.is-soldout .pd__now { color: inherit; }
.pd.is-soldout .pd__media::after { content: "SOLD OUT"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; inset: 50% auto auto 50%; padding: 6px 14px; border: 1px solid var(--ailo-fg); font-family: var(--e08-cond); font-size: 16px; font-weight: 700; letter-spacing: .2em; color: var(--ailo-fg); background: rgba(255, 255, 255, .7); }

/* ---------- 기획전 ---------- */
.sec--dark { background: var(--e08-ink) var(--e08-topo) center / 900px auto repeat; color: #fff; --ailo-eyebrow-color: var(--e08-moss-lt); }
.sec--dark .ailo-more { color: #fff; }
.sec--dark .ailo-more:hover { color: var(--e08-moss-lt); }
.ev__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(270px, auto)); gap: 24px; }
.ev__card { position: relative; overflow: hidden; border-radius: 2px; background: var(--e08-slate); isolation: isolate; }
.ev__card--main { grid-row: span 2; min-height: 560px; }
.ev__card a { position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff; }
.ev__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ailo-ease); }
.ev__card a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 20, 26, .05) 30%, rgba(14, 20, 26, .82)); }
.ev__card a:hover img, .ev__card a:focus-visible img { transform: scale(1.04); }
.ev__body { display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 2.4vw, 36px); }
.ev__tag { font-family: var(--e08-cond); font-size: 16px; font-weight: 700; letter-spacing: .18em; color: var(--e08-moss-lt); }
.ev__title { font-size: clamp(22px, .8vw + 16px, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.ev__card--main .ev__title { font-size: clamp(28px, 1.6vw + 16px, 42px); }
.ev__sum { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 30em; }
.ev__date { font-size: 14px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

/* ---------- MD 추천 가로 넘김 ---------- */
.md__nav { display: flex; gap: 8px; }
.md__btn { width: 48px; height: 48px; border: 1px solid var(--ailo-line); border-radius: 2px; background: #fff; font-size: 15px; transition: background-color .2s, color .2s; }
.md__btn:hover:not(:disabled) { background: var(--e08-slate); border-color: var(--e08-slate); color: #fff; }
.md__btn:disabled { opacity: .35; cursor: default; }
.md__track { grid-auto-columns: calc((100% - 3 * 24px) / 4); column-gap: 24px; outline-offset: 6px; } /* 뼈대는 공용 .ailo-rail__track */
.pd--md .pd__media { aspect-ratio: 1; }

/* ---------- 활동 가이드 ---------- */
.gd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gd__card { display: flex; flex-direction: column; background: #fff; border-radius: 2px; overflow: hidden; }
.gd__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gd__img img { width: 100%; height: 100%; object-fit: cover; }
.gd__tag { position: absolute; left: 14px; top: 14px; padding: 5px 10px; background: #fff; color: var(--e08-slate); font-size: 14px; font-weight: 700; border-radius: 2px; }
.gd__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.gd__title { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.gd__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--ailo-line); border-bottom: 1px solid var(--ailo-line); }
.gd__stats div + div { padding-left: 14px; border-left: 1px solid var(--ailo-line); }
.gd__stats dt { font-family: var(--e08-cond); font-size: 14px; font-weight: 600; letter-spacing: .16em; color: var(--ailo-muted); }
.gd__stats dd { margin: 2px 0 0; font-family: var(--e08-cond); font-size: clamp(28px, 1vw + 18px, 36px); font-weight: 700; line-height: 1.05; color: var(--e08-slate); font-variant-numeric: tabular-nums; }
.gd__stats small { margin-left: 2px; font-size: 16px; font-weight: 600; color: var(--ailo-muted); }
.gd__gear { font-size: 16px; color: var(--ailo-muted); }
.gd__gear span { display: block; font-size: 14px; font-weight: 700; color: var(--e08-moss-ink); }
.gd__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 16px; font-weight: 700; }
.gd__more:hover { color: var(--e08-moss-ink); }

/* ---------- 장비 체크리스트 ---------- */
.ck__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ck__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.ck__tabs { margin-top: 32px; }
.ck__tabs .ailo-tabs__tab { font-size: 16px; }
.ck__prog { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.ck__num { font-family: var(--e08-cond); font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ck__num b { color: var(--e08-moss-ink); }
.ck__bar { position: relative; flex: 1; height: 6px; margin-left: 8px; background: var(--ailo-line); border-radius: 3px; overflow: hidden; }
.ck__bar i { position: absolute; inset: 0; background: var(--e08-moss); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ailo-ease); }
.ck__list.is-done .ck__bar i { background: var(--e08-slate); }
.ck__list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.ck__list label { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; background: var(--e08-mist); border-radius: 2px; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color .2s; }
.ck__list label:hover { background: #e7ebe9; }
.ck__list input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--e08-moss-ink); }
.ck__list label:has(input:checked) { background: #e5ecd9; }
.ck__list label:has(input:checked) span { color: var(--e08-moss-ink); font-weight: 700; }
.ck__note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.ck__reset { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 1px solid var(--ailo-line); border-radius: 2px; background: #fff; font-size: 16px; font-weight: 600; }
.ck__reset:hover { border-color: var(--ailo-fg); }

/* ---------- 브랜드 스토리 ---------- */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--e08-slate); color: #fff; --ailo-eyebrow-color: var(--e08-moss-lt); }
.story__media { min-height: 560px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__body { padding: clamp(56px, 6vw, 104px) clamp(24px, 5vw, 88px); align-self: center; }
.story__txt { margin-top: 22px; font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, .86); max-width: 32em; }
.story__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px 0 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.story__nums b { display: block; font-family: var(--e08-cond); font-size: clamp(34px, 1.6vw + 20px, 48px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.story__nums span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); }

/* ---------- 수선·A/S ---------- */
.repair__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.repair__steps li { padding-top: 20px; border-top: 1px solid var(--e08-slate); }
.repair__steps b { display: block; font-family: var(--e08-cond); font-size: 40px; font-weight: 700; line-height: 1; color: var(--e08-moss-ink); }
.repair__steps strong { display: block; margin-top: 14px; font-size: 19px; font-weight: 800; }
.repair__steps span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.65; color: var(--ailo-muted); }

/* ---------- 리뷰 ---------- */
.rv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rv__item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 18px; background: #fff; border-radius: 2px; }
.rv__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.rv__img img { width: 100%; height: 100%; object-fit: cover; }
.rv__body { min-width: 0; }
.rv__stars { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv__glyph { color: var(--e08-moss); letter-spacing: 1px; }
.rv__subject { margin-top: 6px; font-size: 17px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rv__sum { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--ailo-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rv__product { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--e08-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv__by { margin-top: 2px; font-size: 14px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }

/* ---------- 소식 + 고객센터 ---------- */
.cs { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.cs__box { padding: clamp(28px, 3vw, 44px); background: var(--e08-slate) var(--e08-topo) center / 700px auto; color: #fff; border-radius: 2px; }
.cs__eyebrow { font-family: var(--e08-cond); font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--e08-moss-lt); }
.cs__title { margin-top: 6px; font-size: 24px; font-weight: 800; }
.cs__tel { display: inline-block; margin-top: 10px; font-family: var(--e08-cond); font-size: clamp(42px, 2vw + 26px, 56px); font-weight: 700; letter-spacing: .02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cs__tel:hover { color: var(--e08-moss-lt); }
.cs__hours { margin-top: 6px; font-size: 16px; color: rgba(255, 255, 255, .82); }
.cs__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.cs__links a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; background: rgba(255, 255, 255, .08); border-radius: 2px; font-size: 15px; font-weight: 600; text-align: center; transition: background-color .2s; }
.cs__links a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.cs__links i { font-size: 20px; color: var(--e08-moss-lt); }
.cs__bank { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 15px; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; }
.cs__bank-h { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; color: var(--e08-moss-lt); }

/* ---------- 배송·교환·반품 ---------- */
.guidebar { background: var(--e08-mist); padding: clamp(48px, 5vw, 72px) 0; }
.guidebar__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.guidebar h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.guidebar h3 i { color: var(--e08-slate); }
.guidebar p { margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--ailo-muted); }

/* ---------- 푸터 ---------- */
.ft { background: var(--e08-ink); color: #b9c1c8; padding: 60px 0 44px; font-size: 14px; }
.ft__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft__logo { color: #fff; }
.ft__logo:hover { color: #fff; }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.ft__links a:hover { color: #fff; }
.ft__links b { color: #fff; }
.ft__sns { display: flex; gap: 8px; }
.ft__sns a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff; font-size: 17px; }
.ft__sns a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ft__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; padding: 28px 0; }
.ft__info p { line-height: 1.9; }
.ft__info a:hover { color: #fff; }
.ft__escrow { padding: 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px; }
.ft__escrow-h { font-size: 15px; font-weight: 700; color: #fff; }
.ft__escrow p + p { margin-top: 6px; line-height: 1.7; }
.ft__escrow a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #fff; font-weight: 600; }
.ft__copy { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- 맨 위로 · 하단 탭바 ---------- */
.totop { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 2px; background: var(--e08-slate); color: #fff; font-size: 17px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
html:has(.hd.is-scrolled) .totop { opacity: 1; visibility: visible; }
.totop:hover { color: #fff; background: var(--e08-ink); }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1279.98px) {
  .hd__searchbtn { display: inline-flex; }
  .hd__search { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 16px var(--ailo-gutter); background: var(--ailo-bg); color: var(--ailo-fg); border-top: 1px solid var(--ailo-line); box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .3); }
  .hd__search.is-open { display: block; }
  .hd__search input { max-width: 760px; display: block; margin-inline: auto; height: 50px; font-size: 16px; }
  .hd__search button { right: max(calc(50% - 376px), calc(var(--ailo-gutter) + 6px)); }
  .hd__util { margin-left: auto; }
  .cq { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  .hd__in { gap: 10px; }
  .hd__nav a { padding: 10px 8px; font-size: 15px; }
  .hd__nav a::after { left: 8px; right: 8px; }
  .hd__catbtn { margin-left: 4px; padding: 0 12px; }
  .catp__in { grid-template-columns: minmax(0, 1fr); }
  .catp__promo { display: none; }
  .rv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 62px; --e08-tb-h: 36px; }
  .hd__nav, .hd__cat, .hd__pc { display: none !important; }
  .hd__mark { width: 32px; height: 23px; }
  .hd__name { font-size: 20px; }
  .hd__name small { font-size: 12px; }
  .tb__txt { font-size: 13px; }
  .pd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 18px; }
  .act__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act__tile { aspect-ratio: 4 / 4.4; }
  .ev__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .ev__card--main { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .ev__card { min-height: 300px; }
  .gd { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gd__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .gd__img { aspect-ratio: auto; min-height: 100%; }
  .ck__in { grid-template-columns: minmax(0, 1fr); }
  .ck__media { display: none; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__media { min-height: 0; aspect-ratio: 16 / 9; }
  .repair__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .cs { grid-template-columns: minmax(0, 1fr); }
  .guidebar__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ft__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .totop { display: none; }
  /* 하단 탭바 — 공용 .ailo-tabbar, 토큰만 */
  .tabbar i { color: var(--ailo-fg); }
}
@media (max-width: 767.98px) {
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .md__track { grid-auto-columns: 62%; column-gap: 14px; }
  .rv { grid-template-columns: minmax(0, 1fr); }
  .hero__coord { display: none; }
  .gd__card { grid-template-columns: minmax(0, 1fr); }
  .gd__img { aspect-ratio: 16 / 10; }
  .ev__grid { grid-template-columns: minmax(0, 1fr); }
  .ev__card { min-height: 260px; }
  .ev__card--main { min-height: 380px; }
  .ck__list ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .hero .ailo-hero__body { padding-top: calc(var(--ailo-header-h) + var(--e08-tb-h) + 24px); padding-bottom: 92px; }
  .hero .ailo-hero__sub { font-size: 16px; margin-top: 14px; }
  .hero .ailo-hero__actions { margin-top: 24px; }
  .hero__eyebrow { font-size: 14px; letter-spacing: .24em; }
  .hd__in { gap: 4px; }
  .act__tile { aspect-ratio: 4 / 5; padding: 16px; }
  .act__ko { font-size: 22px; }
  .act__en { font-size: 14px; letter-spacing: .14em; }
  .act__desc { font-size: 14px; }
  .cq { gap: 14px 10px; }
  .cq__name { font-size: 15px; }
  .ptabs .ailo-tabs__tab { font-size: 16px; padding: 0 14px; }
  .pd__name { font-size: 15px; }
  .pd__dc, .pd__now { font-size: 17px; }
  .rv__item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .story__nums { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .story__nums span { font-size: 13px; }
  .repair__steps { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .cs__links a { font-size: 14px; padding: 14px 4px; }
  .ft__top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .act__tile img, .cq__img img, .pd__media img, .ev__card img, .ck__bar i { transition: none; }
}
