@charset "UTF-8";

/*
 * WIDI base skin (F안: A 헤더·히어로 + E 상품 타일)
 *
 * 구간은 세 개만 쓴다. @container 조건에는 변수를 쓸 수 없으므로 숫자로 적는다.
 *   데스크톱  1200px 이상   기본값
 *   노트북    1199px 이하   @container (max-width: 1199px)
 *   태블릿     899px 이하   @container (max-width: 899px)
 *   모바일     599px 이하   @container (max-width: 599px)
 * 도메인 스킨은 이 파일을 불러온 뒤 :root 변수만 덮어쓴다.
 */
:root {
    /* 색 */
    --brand: #075d78;
    --brand-strong: #06465c;
    --brand-hover: #064b63;
    --brand-soft: #e3f0f1;
    --brand-ring: rgba(7, 93, 120, .12);
    --accent: #d76f3d;
    --accent-strong: #a34f28;
    --accent-soft: #fff0e7;
    --sale: #d4483b;
    --text: #16242b;
    --text-soft: #44545b;
    --muted: #5f6e75;
    --faint: #869298;
    --border: #e1e9e9;
    --border-strong: #cdd9d9;
    --surface: #ffffff;
    --surface-soft: #f3f7f7;
    --surface-tint: #e6f1f1;
    --canvas: #f3f6f6;
    --danger: #b43f38;
    --danger-soft: #fff4ef;
    --danger-line: #f0d0c8;
    --success: #13725d;
    --success-soft: #edf8f4;
    --success-line: #c9e3dd;
    --footer-bg: #122c38;
    --on-brand: #ffffff;

    /* 글자 8단계 */
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-md: 15px;
    --fs-lg: 17px;
    --fs-xl: 20px;
    --fs-2xl: 24px;
    --fs-3xl: 30px;
    --fs-4xl: 40px;

    /* 여백 */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 64px;
    --gutter: 32px;
    --section-y: 48px;

    /* 라운드: 버튼·입력 md, 상품 카드 lg, 큰 패널 xl */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 999px;

    --control-h: 48px;
    --shadow-sm: 0 8px 24px rgba(20, 49, 59, .07);
    --shadow: 0 18px 48px rgba(20, 49, 59, .1);
    --content-width: 1200px;
    --font: Pretendard, "SUIT", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    --font-logo: 900 32px/.9 Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--text); font: var(--fs-md)/1.65 var(--font); letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: #cde5e8; color: var(--brand-strong); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid rgba(7, 93, 120, .36); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.shop { container-type: inline-size; min-height: 100vh; background: var(--canvas); }
.wrap { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

/* 헤더 */
.announcement { background: var(--brand-strong); color: rgba(255,255,255,.92); text-align: center; padding: 7px var(--sp-4); font-size: var(--fs-xs); letter-spacing: .01em; }
.header { display: grid; grid-template-columns: auto minmax(280px, 520px) auto; align-items: center; justify-content: space-between; gap: var(--sp-6); padding-block: 20px; }
.header { box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax); }
.logo { display: inline-flex; align-items: baseline; gap: 3px; color: var(--brand); font: var(--font-logo); letter-spacing: -2px; white-space: nowrap; }
.logo i { width: 7px; height: 7px; overflow: hidden; border-radius: 50%; background: var(--accent); color: transparent; font-size: 0; }
.logo > span { font: 650 var(--fs-sm)/1.4 var(--font); letter-spacing: -.02em; margin-left: 10px; color: var(--muted); }
.search { display: flex; align-items: center; min-height: var(--control-h); padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 6px 8px 14px; font-size: var(--fs-md); }
.search input::placeholder { color: var(--faint); }
.search button { flex: none; min-width: 68px; min-height: 38px; border: 0; border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand); font-size: var(--fs-sm); font-weight: 750; }
.search button:hover { background: var(--brand-hover); }
.utilities { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); white-space: nowrap; }
.utilities a, .utilities button { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; border-radius: var(--r-sm); }
.utilities a:hover { background: var(--brand-soft); color: var(--brand); }
.utilities b { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding-inline: 6px; border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand); font-size: var(--fs-xs); }

/* 분류 메뉴: 데스크톱은 밑줄 탭, 모바일은 칩 */
.nav-border { position: relative; z-index: 4; border-block: 1px solid var(--border); background: var(--surface); }
.navigation { display: flex; align-items: center; gap: 28px; min-height: 52px; overflow-x: auto; scrollbar-width: none; }
.navigation::-webkit-scrollbar { display: none; }
.navigation a { position: relative; display: flex; align-items: center; flex: none; min-height: 51px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.navigation a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s ease; }
.navigation a:hover, .navigation a[aria-current] { color: var(--brand); }
.navigation a:hover::after, .navigation a[aria-current]::after { transform: scaleX(1); }
.all-menu { gap: var(--sp-2); color: var(--brand); }
.nav-caption { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: var(--fs-xs); }

/* 히어로: 왼쪽 문구, 오른쪽 사진 */
.hero { background: var(--surface-tint); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: var(--sp-7); padding-block: 56px; }
.hero-copy { min-width: 0; }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); background: var(--surface-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--brand); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); }
.hero h1 { margin: 14px 0 16px; font-size: var(--fs-4xl); line-height: 1.25; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; }
.hero p { color: var(--text-soft); font-size: 16px; line-height: 1.75; margin: 0 0 var(--sp-5); }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: var(--control-h); padding: 12px 22px; background: var(--brand); color: var(--on-brand); border-radius: var(--r-md); font-size: var(--fs-md); font-weight: 700; transition: background .2s ease, box-shadow .2s ease; }
.primary:hover { background: var(--brand-hover); box-shadow: 0 10px 24px rgba(7, 93, 120, .2); }

/* 분류 선택 */
.categories { display: flex; align-items: center; gap: 40px; padding-block: 28px; border-bottom: 1px solid var(--border); }
.section-kicker { flex: none; }
.section-kicker > span { display: block; font-size: var(--fs-xl); font-weight: 750; letter-spacing: -.04em; }
.section-kicker small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); }
.category-list { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.category-list label { font-size: var(--fs-sm); white-space: nowrap; }
.category-list select { flex: 1; max-width: 390px; min-width: 0; }
select { min-height: var(--control-h); padding: 10px 38px 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); }

/* 상품 목록 */
.products { padding-block: var(--section-y) calc(var(--section-y) + var(--sp-4)); scroll-margin-top: 20px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.section-title > div { min-width: 0; }
.section-title :is(h1,h2) { margin: 6px 0; font-size: var(--fs-3xl); line-height: 1.35; letter-spacing: -.05em; overflow-wrap: anywhere; text-wrap: balance; }
.section-title p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.section-title p strong { color: var(--brand); }
.section-title > a { flex: none; padding: 8px 0; color: var(--brand); font-size: var(--fs-sm); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* 상품 카드: 흰 타일 */
.product { min-width: 0; }
.product > a { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: box-shadow .2s ease, border-color .2s ease; }
.product > a:hover { border-color: rgba(7, 93, 120, .22); box-shadow: var(--shadow-sm); }
.product-picture { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--r-lg) - 6px); background: var(--surface-soft); }
.packshot { position: absolute; inset: 0; background-image: url('/assets/design/product-concepts.png'); background-size: 200% 200%; }
.p1 { background-position: 0 0; }
.p2 { background-position: 100% 0; }
.p3 { background-position: 0 100%; }
.p4 { background-position: 100% 100%; }
.tag { position: absolute; z-index: 1; left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 2px 8px; background: var(--brand); color: var(--on-brand); border-radius: 6px; font-size: var(--fs-xs); font-weight: 700; }
.product-brand { margin-top: 12px; padding-inline: 4px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.product h3 { margin: 2px 0 4px; padding-inline: 4px; font-size: var(--fs-md); line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s ease; }
.product a:hover h3 { color: var(--brand); }
.product p { margin: 0 0 var(--sp-2); padding-inline: 4px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.product .price { margin-top: auto; padding-inline: 4px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; font-variant-numeric: tabular-nums; }
.price .discount { color: var(--sale); font-size: 16px; font-weight: 800; }
.price strong { font-size: var(--fs-lg); line-height: 1.4; font-weight: 800; letter-spacing: -.03em; }
.price small { margin-left: 1px; font-size: var(--fs-sm); font-weight: 600; }
.price del { color: var(--faint); font-size: var(--fs-xs); }

/* 기획 배너·서비스 안내 */
.editorial { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 36px 40px; border-radius: var(--r-xl); background: var(--surface-tint); }
.editorial::after { content: ""; position: absolute; right: 14%; width: 150px; height: 150px; border: 32px solid rgba(255,255,255,.45); border-radius: 50%; pointer-events: none; }
.editorial > * { position: relative; z-index: 1; }
.editorial h2 { margin: 6px 0 4px; font-size: var(--fs-2xl); letter-spacing: -.05em; }
.editorial p { margin: 0; color: var(--muted); font-size: var(--fs-md); }
.editorial > a { flex: none; }
.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: var(--section-y) 60px; }
.service-strip > div { position: relative; min-height: 66px; padding: 0 28px 0 56px; border-right: 1px solid var(--border); }
.service-strip > div:first-child { padding-left: 42px; }
.service-strip > div:last-child { border-right: 0; }
.service-strip span { position: absolute; left: 0; top: -2px; color: var(--accent); font-size: var(--fs-xs); font-weight: 850; letter-spacing: .08em; }
.service-strip > div:first-child span { left: 0; }
.service-strip b { font-size: var(--fs-md); }
.service-strip p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-sm); }

/* 푸터 */
.footer { background: var(--footer-bg); padding-block: 48px; color: rgba(255,255,255,.7); }
.footer .logo { color: #fff; }
.footer .logo i { background: #f29a65; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) 26px; margin: 20px 0 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: var(--fs-sm); }
.footer-links span { color: #fff; font-weight: 650; }
.footer-links a { padding-block: 4px; }
.footer-links a:hover { color: #fff; }
.footer p { margin: 4px 0; font-size: var(--fs-xs); line-height: 1.85; }
.footer details { padding-block: 5px; font-size: var(--fs-xs); }
.footer summary { width: fit-content; cursor: pointer; color: rgba(255,255,255,.86); }
.footer small { display: block; margin-top: 22px; color: rgba(255,255,255,.5); font-size: var(--fs-xs); }

/* 모바일 하단 탭바 */
.mobile-bottom { display: none; }
.ui-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 노트북 1199px 이하 */
@container (max-width: 1199px) {
    .shop > * { --gutter: 28px; }
    .header { grid-template-columns: auto minmax(240px, 440px) auto; gap: var(--sp-5); }
    .logo > span, .nav-caption { display: none; }
    .hero h1 { font-size: 36px; }
}

/* 태블릿 899px 이하 */
@container (max-width: 899px) {
    .shop > * { --gutter: 24px; --section-y: 40px; }
    .header { grid-template-columns: auto auto; gap: var(--sp-3) var(--sp-4); padding-block: var(--sp-4); }
    .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
    .search input { font-size: 16px; }
    .utilities { justify-self: end; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
    .hero-photo { aspect-ratio: 16 / 7; }
    .categories { gap: 22px; }
    .category-list label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .service-strip { grid-template-columns: 1fr; padding-block: 36px 44px; }
    .service-strip > div, .service-strip > div:first-child { min-height: auto; padding: 18px 0 18px 42px; border-right: 0; border-bottom: 1px solid var(--border); }
    .service-strip > div:last-child { border-bottom: 0; }
    .service-strip span { top: 18px; }
    .editorial { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
    .editorial::after { right: -28px; bottom: -50px; }
}

/* 모바일 599px 이하 */
@container (max-width: 599px) {
    .shop > * { --gutter: 16px; --section-y: 32px; }
    .announcement { padding-block: 6px; }
    .header { padding-block: 12px 14px; }
    .logo { font-size: 26px; }
    .logo i { width: 6px; height: 6px; }
    .utilities { gap: 0; }
    .utilities a { padding-inline: 8px; }
    .search { min-height: 44px; }
    .search button { min-width: 60px; min-height: 34px; }

    .nav-border { border: 0; background: transparent; }
    .navigation { gap: var(--sp-2); min-height: 0; padding-block: 10px; }
    .navigation a { min-height: 40px; padding-inline: 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); font-size: 14px; }
    .navigation a::after { display: none; }
    .navigation a[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
    .navigation .ui-icon { width: 18px; height: 18px; }

    .hero-inner { gap: 20px; padding-block: 28px; }
    .hero-photo { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
    .hero h1 { margin-block: 12px; font-size: 28px; }
    .hero p { font-size: var(--fs-md); }
    .primary { width: 100%; min-height: 46px; }

    .categories { display: block; padding-block: 24px; }
    .section-kicker > span { font-size: var(--fs-lg); }
    .category-list { margin-top: var(--sp-4); gap: var(--sp-2); }
    .category-list select { max-width: none; }
    .category-list .button { flex: none; padding-inline: 14px; }

    .section-title { align-items: flex-start; gap: var(--sp-3); margin-bottom: 20px; }
    .section-title :is(h1,h2) { font-size: var(--fs-2xl); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product > a { padding: 8px 8px 12px; }
    .product h3 { font-size: 14px; }
    .product p { display: none; }
    .price strong { font-size: 16px; }
    .price .discount { font-size: var(--fs-md); }

    .editorial h2 { font-size: var(--fs-xl); }
    .footer { padding-block: 36px calc(32px + env(safe-area-inset-bottom)); }

    .mobile-bottom { position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); border-top: 1px solid var(--border); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(14px); }
    .mobile-bottom a { min-height: 52px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border-radius: var(--r-md); color: var(--muted); font-size: var(--fs-xs); }
    .mobile-bottom a[aria-current] { color: var(--brand); font-weight: 750; }
    .mobile-bottom .ui-icon { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
