/* ==========================================================================
   SIGLAP THEME — 다크 모노톤 커머스
   1. Variables  2. Reset/Base  3. Layout  4. Header  5. Hero
   6. Sections/Products  7. Banners  8. Magazine  9. Footer
   10. Pages  11. Responsive
   ========================================================================== */

/* ===================
   1. CSS Variables
   =================== */
:root {
	--c-bg:        #0b0b0b;
	--c-bg-2:      #111111;
	--c-ink:       #111111;
	--c-white:     #ffffff;
	--c-line:      #e5e5e5;
	--c-line-dk:   #2a2a2a;
	--c-gray:      #757575;
	--c-gray-2:    #939393;
	--c-accent:    #e8323c;   /* 할인 포인트 레드 */

	--font-kr: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
	--font-en: 'Jost', 'Pretendard', sans-serif;

	--header-h: 96px;
	--topbar-h: 35px;
	--maxw: 1600px;
	--pad-x: 40px;

	--ease: cubic-bezier(.22,.61,.36,1);
}

/* ===================
   2. Reset & Base
   =================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font-kr);
	color: var(--c-ink);
	background: var(--c-white);
	line-height: 1.6;
	font-size: 16px;
	letter-spacing: -0.01em;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
del { color: var(--c-gray-2); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
	position: fixed; top: -60px; left: 8px; z-index: 200;
	background: #000; color: #fff; padding: 10px 16px; transition: top .2s;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* 인뷰 애니메이션 */
.inview { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.inview.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.inview { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ===================
   3. Layout
   =================== */
.site-main { min-height: 40vh; }
.section { padding: 80px var(--pad-x); max-width: var(--maxw); margin: 0 auto; }
.section__head {
	display: flex; align-items: flex-end; justify-content: space-between;
	margin-bottom: 36px; gap: 16px;
}
.section__eyebrow {
	display: block; font-family: var(--font-en); font-size: 13px; letter-spacing: .18em;
	color: var(--c-gray); margin-bottom: 8px; font-weight: 500;
}
.section__label { font-size: 28px; font-weight: 700; }
.section__more {
	font-family: var(--font-en); font-size: 13px; letter-spacing: .12em; color: var(--c-gray);
	border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .2s;
	white-space: nowrap;
}
.section__more:hover { color: var(--c-ink); }

/* ===================
   4. Header
   =================== */
.topbar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 60;
	height: var(--topbar-h); background: #000; color: #fff; overflow: hidden;
	display: flex; align-items: center;
}
.topbar__track {
	display: flex; align-items: center; white-space: nowrap;
	animation: siglap-marquee 24s linear infinite; will-change: transform;
	font-size: 12px; letter-spacing: .02em;
}
.topbar__item { padding: 0 4px; }
.topbar__sep { padding: 0 18px; opacity: .5; }
@keyframes siglap-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.header {
	position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 50;
	height: var(--header-h); transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s;
}
.header__inner {
	height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	padding: 0 var(--pad-x); gap: 20px;
}
.header__left { display: flex; align-items: center; gap: 20px; }
.header__menu, .header__nav ul { display: flex; align-items: center; gap: 30px; }
.header__menu a {
	font-family: var(--font-en); font-size: 14px; font-weight: 500; letter-spacing: .06em;
	position: relative; padding: 6px 0;
}
.header__menu a::after {
	content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
	background: currentColor; transition: width .3s var(--ease);
}
.header__menu a:hover::after { width: 100%; }

.header__logo { text-align: center; }
.header__logo .logo, .header__logo .custom-logo-link {
	font-family: var(--font-en); font-weight: 600; font-size: 26px; letter-spacing: .18em;
	display: inline-block;
}
.header__logo img { max-height: 34px; width: auto; margin: 0 auto; }

.header__util { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.header__icon { position: relative; display: inline-flex; align-items: center; }
.header__cart-count {
	position: absolute; top: -8px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px;
	background: var(--c-accent); color: #fff; border-radius: 9px; font-size: 10px; line-height: 16px;
	text-align: center; font-family: var(--font-en);
}

.header__burger { display: none; flex-direction: column; gap: 5px; width: 26px; padding: 4px 0; }
.header__burger span { display: block; height: 1.5px; width: 100%; background: currentColor; transition: .3s; }

/* 히어로 위: 투명 + 흰 글자 */
.header--hero { color: #fff; background: transparent; }
/* 스크롤/일반 페이지: 검정 배경 흰 글자 (다크 모노톤 유지) */
.header--solid { color: #fff; background: #0b0b0b; }
.header.is-scrolled { background: #0b0b0b; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }

/* 히어로가 아닌 페이지는 헤더/탑바 높이만큼 본문 여백 */
body:not(.has-hero) .site-main { padding-top: calc(var(--header-h) + var(--topbar-h)); }

/* 검색 오버레이 */
.searchbox {
	position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.94);
	display: flex; align-items: center; justify-content: center; color: #fff;
}
.searchbox[hidden] { display: none; }
.searchbox__inner { width: min(680px, 88vw); position: relative; }
.searchbox__form { display: flex; border-bottom: 1px solid rgba(255,255,255,.4); }
.searchbox__input {
	flex: 1; background: none; border: 0; color: #fff; font-size: 28px; padding: 14px 0;
	font-family: var(--font-en);
}
.searchbox__input::placeholder { color: rgba(255,255,255,.4); }
.searchbox__submit { font-family: var(--font-en); letter-spacing: .1em; padding: 0 12px; }
.searchbox__close { position: absolute; top: -60px; right: 0; font-size: 24px; color: #fff; }

/* 모바일 드로어 */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.drawer__panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 84vw);
	background: #0b0b0b; color: #fff; padding: 24px; transform: translateX(-100%);
	transition: transform .4s var(--ease); display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer__logo { font-family: var(--font-en); font-size: 22px; letter-spacing: .18em; }
.drawer__close { font-size: 22px; }
.drawer__menu { display: flex; flex-direction: column; gap: 4px; }
.drawer__menu a { display: block; padding: 16px 0; font-size: 18px; font-family: var(--font-en); letter-spacing: .04em; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer__foot { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--c-gray-2); }

/* ===================
   5. Hero (풀블리드 배너 슬라이더)
   =================== */
.hero { position: relative; background: #0b0b0b; overflow: hidden; }
.hero__swiper { position: relative; }
.hero__slide { display: block; }
.hero__img {
	width: 100%; height: auto; display: block;
	aspect-ratio: 1920 / 650;      /* 데스크탑 배너 원본 비율 — 크롭 없이 전체 노출 */
	object-fit: cover; object-position: center;
}
/* 헤더 가독성용 상단 스크림 (밝은/어두운 슬라이드 모두 대응) */
.hero::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 180px; z-index: 3;
	background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0)); pointer-events: none;
}
/* 페이지네이션 */
.hero__pagination { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 4; display: flex; justify-content: center; gap: 10px; }
.hero__pagination .swiper-pagination-bullet {
	width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); opacity: 1; transition: .3s;
}
.hero__pagination .swiper-pagination-bullet-active { background: #fff; width: 26px; border-radius: 5px; }
/* 좌우 화살표 */
.hero__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
	width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.28); color: #fff;
	font-size: 26px; display: flex; align-items: center; justify-content: center; transition: .25s;
	backdrop-filter: blur(2px);
}
.hero__nav:hover { background: rgba(0,0,0,.6); }
.hero__nav--prev { left: 24px; }
.hero__nav--next { right: 24px; }
.hero__scroll { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 4; }
.hero__scroll span {
	display: block; width: 1px; height: 46px; background: rgba(255,255,255,.6); position: relative; overflow: hidden;
}
.hero__scroll span::after {
	content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: #fff;
	animation: siglap-scrolldot 1.8s var(--ease) infinite;
}
@keyframes siglap-scrolldot { 0% { top: -50%; } 100% { top: 100%; } }

/* ===================
   6. Products
   =================== */
.pcarousel { position: relative; }
.pcarousel__swiper { position: relative; overflow: hidden; }
.pcard { display: block; }
.pcard__thumb {
	position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: #f2f2f2;
	border-radius: 2px;
}
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__thumb img { transform: scale(1.05); }
.pcard__thumb--empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#e9e9e9,#dcdcdc); }
.pcard__badge {
	position: absolute; top: 12px; left: 12px; background: var(--c-accent); color: #fff;
	font-family: var(--font-en); font-weight: 600; font-size: 12px; padding: 5px 9px; border-radius: 2px;
}
.pcard__body { display: block; padding: 16px 2px 4px; }
.pcard__name { display: block; font-size: 15px; font-weight: 600; }
.pcard__desc { display: block; font-size: 13px; color: var(--c-gray); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pcard__discount { color: var(--c-accent); font-weight: 700; font-family: var(--font-en); }
.pcard__now { font-weight: 700; font-size: 16px; }
.pcard__regular { font-size: 13px; }

.pcarousel__nav {
	position: absolute; top: 38%; transform: translateY(-50%); z-index: 5;
	width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.9);
	box-shadow: 0 2px 14px rgba(0,0,0,.14); font-size: 22px; line-height: 1;
	display: flex; align-items: center; justify-content: center; color: #111; transition: .2s;
}
.pcarousel__nav:hover { background: #111; color: #fff; }
.pcarousel__nav--prev { left: -8px; }
.pcarousel__nav--next { right: -8px; }
.pcarousel__nav.swiper-button-disabled { opacity: 0; pointer-events: none; }

/* FluxShop 숏코드 그리드도 동일 톤으로 (상품목록/상세 페이지) */
.fluxshop-products, .fhs-products { max-width: var(--maxw); margin: 0 auto; }

/* ===================
   7. Banners
   =================== */
/* 브랜드 문구 밴드 (다크 타이포, 이미지 없음) */
.statement { background: #0b0b0b; color: #fff; padding: 110px var(--pad-x); }
.statement__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.statement__eyebrow { font-family: var(--font-en); letter-spacing: .26em; color: var(--c-gray-2); font-size: 13px; margin-bottom: 20px; }
.statement__title { font-size: clamp(24px, 3.2vw, 42px); font-weight: 700; line-height: 1.35; }
.statement__desc { margin-top: 22px; color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.8; }
.statement__more {
	display: inline-block; margin-top: 34px; font-family: var(--font-en); letter-spacing: .14em;
	font-size: 13px; border: 1px solid rgba(255,255,255,.55); padding: 14px 40px; transition: .3s;
}
.statement__more:hover { background: #fff; color: #000; }

/* 풀폭 이미지 밴드 (시그랩 자체 배너, 오버레이 없음) */
.imgband { background: #0b0b0b; }
.imgband__link { display: block; max-width: 1920px; margin: 0 auto; }
.imgband__img {
	width: 100%; height: auto; display: block; aspect-ratio: 1920 / 650;
	object-fit: cover; object-position: center;
}

/* ===================
   8. Magazine
   =================== */
.magazine__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.magcard__thumb { display: block; aspect-ratio: 4/3; overflow: hidden; background: #eee; border-radius: 2px; }
.magcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.magcard:hover .magcard__thumb img { transform: scale(1.05); }
.magcard__thumb--empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#efefef,#e0e0e0); }
.magcard__body { display: block; padding: 18px 2px; }
.magcard__date { display: block; font-family: var(--font-en); font-size: 12px; color: var(--c-gray); letter-spacing: .08em; }
.magcard__title { display: block; margin-top: 8px; font-size: 18px; font-weight: 600; }

/* ===================
   9. Footer
   =================== */
.footer { background: #0b0b0b; color: #cfcfcf; padding: 70px var(--pad-x) 40px; }
.footer__top {
	max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr;
	gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--c-line-dk);
}
.footer__logo { font-family: var(--font-en); font-size: 24px; letter-spacing: .18em; color: #fff; }
.footer__tagline { margin-top: 14px; color: var(--c-gray-2); font-size: 14px; }
.footer__sns { display: flex; gap: 18px; margin-top: 22px; font-family: var(--font-en); font-size: 13px; letter-spacing: .04em; }
.footer__sns a { color: var(--c-gray-2); transition: color .2s; }
.footer__sns a:hover { color: #fff; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col-title { font-family: var(--font-en); font-size: 13px; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--c-gray-2); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__cs-num { font-family: var(--font-en); font-size: 24px; color: #fff; letter-spacing: .02em; }
.footer__cs-time { margin-top: 10px; font-size: 13px; color: var(--c-gray-2); line-height: 1.7; }
.footer__bottom { max-width: var(--maxw); margin: 26px auto 0; }
.footer__company { font-size: 12px; color: #7d7d7d; line-height: 1.9; }
.footer__copy { margin-top: 14px; font-family: var(--font-en); font-size: 12px; color: #6d6d6d; letter-spacing: .04em; }

/* ===================
   10. Generic Pages
   =================== */
.page-wrap { max-width: 1200px; }
.page-head { text-align: center; margin-bottom: 48px; }
.page-head__title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.page-content { font-size: 16px; line-height: 1.8; }
.page-content h2 { font-size: 26px; margin: 40px 0 16px; }
.page-content h3 { font-size: 20px; margin: 28px 0 12px; }
.page-content p { margin: 0 0 18px; }
.page-content img { border-radius: 4px; margin: 20px auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-grid__thumb { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; margin-bottom: 16px; background: #eee; }
.post-grid__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-grid__meta { font-family: var(--font-en); font-size: 12px; color: var(--c-gray); }
.post-grid__title { font-size: 19px; margin: 6px 0 8px; }
.post-grid__excerpt { color: var(--c-gray); font-size: 14px; }
.pagination { text-align: center; margin-top: 50px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--c-line); font-family: var(--font-en); font-size: 14px; }
.pagination .current { background: #111; color: #fff; border-color: #111; }
.single { max-width: 820px; }
.single__head { text-align: center; margin-bottom: 30px; }
.single__date { font-family: var(--font-en); font-size: 13px; color: var(--c-gray); letter-spacing: .06em; }
.single__title { font-size: clamp(26px, 3.5vw, 40px); margin-top: 10px; }
.single__thumb { margin: 0 0 36px; border-radius: 4px; overflow: hidden; }
.empty { text-align: center; color: var(--c-gray); padding: 80px 0; }

/* ===================
   11. Responsive
   =================== */
@media (max-width: 1280px) {
	:root { --pad-x: 28px; --header-h: 84px; }
	.section { padding: 64px var(--pad-x); }
}

@media (max-width: 1024px) {
	.header__inner { grid-template-columns: auto 1fr auto; }
	.header__nav { display: none; }        /* 데스크탑 메뉴 숨김 → 햄버거 */
	.header__burger { display: flex; }
	.header__logo { text-align: left; }
	.halfbanner { grid-template-columns: 1fr; }
	.halfbanner__text { padding: 60px var(--pad-x); }
	.halfbanner__media { min-height: 320px; }
	.magazine__grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.footer__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
	:root { --header-h: 64px; --topbar-h: 32px; --pad-x: 18px; }
	body { font-size: 15px; }
	.section { padding: 52px var(--pad-x); }
	.section__label { font-size: 22px; }
	.hero__img, .imgband__img { aspect-ratio: 1 / 1; }    /* 모바일: 정사각 배너 */
	.statement { padding: 72px var(--pad-x); }
	.hero__nav { display: none; }          /* 모바일은 스와이프 */
	.hero__pagination { bottom: 14px; }
	.hero__scroll { display: none; }
	.pcarousel__nav { display: none; }     /* 모바일은 스와이프 */
	.footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
	.header__logo .logo { font-size: 20px; letter-spacing: .14em; }
	.magazine__grid, .post-grid { grid-template-columns: 1fr; }
	.footer__cols { grid-template-columns: 1fr; }
	.hero__title { font-size: clamp(34px, 10vw, 52px); }
}

/* 터치 타겟 최소 44px 보장 */
.header__icon, .header__burger, .pcarousel__nav, .section__more, .drawer__close, .searchbox__close {
	min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.section__more { min-width: auto; padding: 10px 0; }
