/* EBBM COSMETICS 공통 스타일
   구조: 구역(.sec/.hero) > 줄(.row) > 칸(.col) > 위젯(.txt .img .btns .pad .slider)
   PC 화면(.pc)과 모바일 화면(.mo)을 따로 두고 768px 에서 바꿔 보여 준다. */
@font-face { font-family: Questrial; src: url(/assets/fonts/questrial-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Cormorant; src: url(/assets/fonts/cormorant-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/assets/fonts/cormorant-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url(/assets/fonts/noto-sans-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: aritadm; src: url(/assets/fonts/AritaDotum-Medium.woff2) format("woff2"); font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF; }
:root {
  --sans: Questrial, aritadm, "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", "Noto Sans", sans-serif;
  --serif: Cormorant, "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", "Noto Sans", serif;
  --mont: Montserrat, var(--sans);
  --ink: #212121; --gold: #d4af6b; --hd-h: 139px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--hd-h); }
body { margin: 0; font-family: var(--sans); font-size: 13px; line-height: 1; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mo { display: none; }
@media (max-width: 767px) { .pc { display: none; } .mo { display: block; } }

/* ── 머리글 ── */
.hd { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--hd-h); background: #fff; color: var(--ink); transition: background-color .3s, color .3s; }
.hd { border-bottom: 1px solid rgba(0, 0, 0, .07); }
.page-home .hd:not(.solid) { border-bottom-color: transparent; }
.hd-menu { position: absolute; left: 30px; top: 50%; width: 42px; height: 45px; margin-top: -22px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hd-menu span { display: block; width: 20px; height: 1.5px; background: currentColor; }
.hd-logo { position: absolute; left: 50%; top: 10px; width: 86px; height: 118px; margin-left: -43px; }
.hd-logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s; }
.hd-logo .logo-white { opacity: 0; }
.hd-store { position: absolute; right: 82px; top: 50%; margin-top: -6px; font-size: 12px; line-height: 1; letter-spacing: 0; }
.hd-store:hover { opacity: .6; }
body { padding-top: var(--hd-h); }
/* 첫 화면: 사진 위에 투명하게 겹쳤다가, 스크롤하면 흰 바탕으로 */
.page-home { padding-top: 0; }
.page-home .hd:not(.solid) { background: transparent; color: #fff; }
.page-home .hd:not(.solid) .logo-white { opacity: 1; }
.page-home .hd:not(.solid) .logo-black { opacity: 0; }
@media (max-width: 767px) {
  :root { --hd-h: 74px; }
  section[id] { scroll-margin-top: 0; }
  .hd { border-bottom: 0; }
  body, .page-home { padding-top: 0; }
  .hd, .page-home .hd:not(.solid) { position: relative; background: #fff; color: var(--ink); }
  .page-home .hd .logo-white { opacity: 0 !important; } .page-home .hd .logo-black { opacity: 1 !important; }
  .hd-menu { left: 4px; }
  .hd-logo { top: 10px; width: 39px; height: 54px; margin-left: -20px; }
  .hd-store { right: 15px; margin-top: -7px; font-size: 14px; }
}
.mnav { border-bottom: 1px solid rgba(0, 0, 0, .07); height: 46px; padding: 0 22px; white-space: nowrap; overflow-x: auto; background: #fff; scrollbar-width: none; }
.mnav::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { .mnav.mo { display: flex; } }
.mnav a { flex: none; padding: 0 8px; margin-right: 12px; font-size: 11px; line-height: 45px; border-bottom: 1px solid transparent; }
.mnav a.on { border-bottom-color: var(--ink); }

/* ── 서랍 메뉴 ── */
.drawer-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .5); }
.drawer { position: fixed; z-index: 201; top: 0; bottom: 0; left: 0; width: 300px; max-width: 80vw; padding: 40px 0; background: #2f2f2f; color: #fff; text-align: center; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-close { position: absolute; right: 12px; top: 6px; font-size: 26px; line-height: 1; color: #fff; opacity: .8; }
.drawer-logo { display: inline-block; margin-bottom: 22px; }
.drawer nav a { display: block; padding: 3.5px 0; font-family: "Noto Sans", var(--sans); font-size: 14px; line-height: 14px; letter-spacing: 1px; color: rgba(255, 255, 255, .5); }
.drawer nav a.on, .drawer nav a:hover { color: #fff; }

/* ── 구역 ── */
.sec { position: relative; }
.sec-bg, .sec-ov { position: absolute; inset: 0; }
.sec-bg { background-size: cover; background-repeat: no-repeat; }
.sec-bg.fixed { background-attachment: fixed; }
@supports (-webkit-touch-callout: none) { .sec-bg.fixed { background-attachment: scroll; } } /* iOS 는 고정 배경을 못 쓴다 */
.inside { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { padding: 0 15px; min-width: 0; }
.w { margin: 15px 0; }
.pad { width: 100%; min-height: 1px; }
.line { margin: 0; border: 0; height: 0; }

/* ── 글 ── (가져올 때 원래 글꼴 값이 태그마다 구워져 있다) */
.txt { display: flow-root; font-family: var(--sans); font-size: 13px; line-height: 1; color: var(--ink); overflow-wrap: break-word; }
.txt h1, .txt h2, .txt h3, .txt h4, .txt h5, .txt h6, .txt p, .txt ul, .txt ol { margin: 0; font-weight: 400; }
.txt ul, .txt ol { padding-left: 40px; }
.txt a:not(.btn) { color: inherit; }
.btn { display: inline-block; text-align: center; white-space: nowrap; transition: background-color .2s, color .2s, opacity .2s; cursor: pointer; }
.btn:hover { opacity: .65; }
.hero .btn:hover { opacity: 1; background-color: #e0d9c8 !important; border-color: #e0d9c8 !important; color: #fff !important; }
.hero .btn:hover * { color: #fff !important; }

/* ── 사진 ── */
.img { margin: 0; }
.img a { display: block; }
.img-box { position: relative; overflow: hidden; margin: 0 auto; max-width: 100%; }
.img-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.img-box.crop img { object-fit: cover; }
.img-hover { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .3s; }
.img-box:not(.crop) .img-hover { background-size: contain; }
.img:hover .img-hover { opacity: 1; }
.img.zoom .img-box img, .img.zoom .img-hover { transition: transform .5s, opacity .3s; }
.img.zoom:hover .img-box img, .img.zoom:hover .img-hover { transform: scale(1.1); }
.img figcaption { line-height: 1; }
.icon { line-height: 0; }

/* ── 큰 슬라이드(히어로) ── */
.hero { position: relative; overflow: hidden; background: #ddd; }
.slide { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; opacity: 0; visibility: hidden; transition: opacity .7s, visibility 0s .7s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .7s; z-index: 1; }
.slide-ov, .slide-link { position: absolute; inset: 0; }
.slide-link { z-index: 1; }
.slide-in { position: relative; height: 100%; width: min(1280px, 100% - 160px); margin: 0 auto; padding: 0 10px; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.slide-in .txt { color: #fff; }
.slide-in .btn { position: relative; z-index: 2; pointer-events: auto; }
.hero.under-header .slide-in { padding-top: 139px; }
.mo .slide-in { width: 100%; padding: 0 20px; }
.dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.dots button { width: 9px; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .6); transition: width .3s, background-color .3s; }
.dots button.on { width: 30px; background: #fff; }

/* ── 작은 사진 슬라이드 ── */
.slider { position: relative; overflow: hidden; background: #fff; border: 1px solid #eee; }
.slider-item { position: absolute; inset: 0; background: center / cover no-repeat; transform: translateX(100%); transition: transform .2s ease-out; cursor: zoom-in; }
.slider-item.on { transform: none; }
.slider-item.prev { transform: translateX(-100%); }
.slider .dots { bottom: 16px; gap: 10px; }

/* ── 스크롤하면 나타나는 효과 ── */
.js [data-anim] { opacity: 0; }
.js [data-anim].in { opacity: 1; animation: var(--dur, .7s) ease var(--delay, 0s) both; }
.js [data-anim="fadeIn"].in { animation-name: fadeIn; }
.js [data-anim="fadeInUp"].in { animation-name: fadeInUp; }
.js [data-anim="zoomIn"].in { animation-name: zoomIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js [data-anim] { opacity: 1 !important; animation: none !important; } .slide, .slider-item { transition: none; } }

/* ── 바닥글 ── */
.ft { background: #383838; color: #fff; font-size: 12px; line-height: 12px; }
.ft-in { max-width: 1280px; margin: 0 auto; padding: 29px 15px 30px; }
.ft p { margin: 0; }
.ft-links { display: flex; flex-wrap: wrap; gap: 0 12px; margin-bottom: 16px !important; }
.ft-links a:hover { opacity: .7; }
.ft-info span { display: inline-block; margin-right: 12px; }
.ft-info .gap { margin-top: 6px; }
.ft-info .copy { margin-top: 20px; }
@media (max-width: 767px) { .ft-in { padding: 29px 15px 40px; } .ft-info p { line-height: 12px; } }

/* ── 약관·안내 ── */
.legal { max-width: 860px; margin: 0 auto; padding: 60px 20px 90px; font-size: 14px; line-height: 1.8; }
.legal h1 { margin: 0 0 30px; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.2; }
.legal h2 { margin: 34px 0 8px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.legal p { margin: 0 0 8px; }
.legal ul { margin: 0 0 8px; padding-left: 20px; }
.legal .btn { margin-top: 20px; padding: 12px 30px; border: 1px solid rgba(0, 0, 0, .2); }
.notfound { text-align: center; padding: 120px 20px; }

/* ── 사진 크게 보기 ── */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; }
.lightbox button { position: absolute; right: 18px; top: 10px; font-size: 36px; color: #fff; }
