@charset "UTF-8";
/* 전자책 스토어 공통 — 스토어 골격, 목록 화면, 표지 색. 상세 페이지 전용 규칙은 product-detail.css 한 곳에만 둔다. */

/* 스토어 토큰. 본문 폭·여백·색을 여기서만 정한다. 같은 값을 여러 파일에서 다시 적지 않는다. */
:root{
  --measure:min(1240px,87%);
  --navy:#10263d;--navy-2:#173e5b;--navy-3:#1d93ed;--flag:#e7653d;--flag-ink:#8b4f2e;
  --surface:#f4f5f0;--surface-2:#edeee7;--surface-3:#f1f2ed;
  --text-2:#5f6a5c;--text-3:#6f7767;
  --line-1:#e5e8df;--line-2:#d5dbcf;
}
.store-site{background:#fff;color:var(--ink)}

/* 섹션 공통 */
.store-section{padding:75px 0;border-bottom:1px solid var(--line-1);scroll-margin-top:82px}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:32px}
.section-heading h2{font-size:clamp(27px,2.4vw,34px);line-height:1.35;letter-spacing:-.04em;font-weight:600}
.section-heading>p{font-size:13px;line-height:1.8;color:var(--text-3)}

/* 가격 표기. 목록 카드와 상세 페이지가 같은 규칙을 쓴다. */
.price-line{display:flex;align-items:baseline;gap:15px;flex-wrap:wrap}
.price-line s{font-size:14px;color:#9aa091;text-decoration-thickness:1px;order:-1;width:100%}
.price-line strong{font-size:32px;letter-spacing:-.03em;font-weight:600}
.price-line>span{font-size:11px;color:var(--text-3)}
/* 비교 가격은 확정된 정가가 있을 때만 노출한다. */
.price-comparison{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:0 0 5px;font-size:12px;color:var(--text-3)}
.price-comparison s{text-decoration-thickness:1px;color:#868f82}
.price-comparison strong{font-size:12px;font-weight:600;color:#27351f}

/* 푸터. 본문과 같은 폭을 써서 좌우 끝을 맞춘다. */
.store-footer{border-top:1px solid var(--line-1);padding:35px 0 0}
.store-footer>*{width:var(--measure);margin-inline:auto}
.store-footer .wordmark img{height:30px;width:auto}
.store-footer-top{display:flex;align-items:center;justify-content:space-between}
.store-footer-top>a:last-child{font-size:12px;color:#7d886f}
.store-footer .footer-bottom{font-size:10px;color:#919a83;margin-top:25px}

/* 판매 PDF 표지의 색과 조형을 반영한 코드 표지. 목록 카드와 상세 책 표지가 같은 색을 쓴다. */

/* 목록 화면 — 전체 폭 히어로와 상품 목록 */
.market-site .header{background:#f3f3ed;border-bottom-color:#dfe2d6}
.header-context{margin-left:20px;padding-left:20px;border-left:1px solid #cdd2c2;font-size:11px;color:#606956}
.market-main{padding-top:var(--header-height)}
.market-hero{background:#f3f3ed;border-bottom:1px solid #dfe2d6;overflow:hidden}
.market-hero-inner{width:var(--measure);margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:5%;align-items:center;min-height:440px;padding:32px 0}
.market-hero-copy{position:relative;z-index:1}
.market-hero h1{font-size:clamp(30px,2.8vw,40px);font-weight:600;line-height:1.32;letter-spacing:-.05em}
.market-hero h1 .hl{background:var(--accent);color:#1b2015;padding:.04em .16em;margin:0 -.04em;border-radius:3px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.market-hero-lead{font-size:14px;line-height:1.95;color:var(--text-2);margin-top:26px}
.ebook-hero-visual{width:100%;min-width:0;justify-self:end}
.ebook-hero-visual picture{display:block;aspect-ratio:16/9}
.ebook-hero-visual img{width:100%;height:100%;aspect-ratio:16/9;object-fit:contain;border-radius:2px}
.ebook-hero-visual figcaption{font-size:10px;line-height:1.65;color:#626c56;margin-top:12px;word-break:keep-all}

.market-content{width:var(--measure);margin:auto}
.market-section{padding:85px 0 30px;border-bottom:0;scroll-margin-top:var(--header-height)}
.market-section .section-heading{margin-bottom:36px}
.market-list{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.market-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-rows:1fr auto;gap:0 7%;align-items:center;padding:0 42px 0 0;border:1px solid #e4e6dd;border-radius:6px;overflow:hidden;background:#fff;transition:border-color .45s,background .45s,box-shadow .5s,transform .5s var(--ease)}
.market-item:hover{border-color:#c3cdae;background:#fcfdf8;box-shadow:0 22px 40px -30px #4d5a3540;transform:translateY(-2px)}
.market-product-art{grid-column:1;grid-row:1/3;align-self:stretch;min-height:360px;background:var(--surface-2);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;padding:36px;perspective:1200px}
.market-thumb{display:block;width:min(280px,100%);height:auto;aspect-ratio:1;border-radius:6px;box-shadow:22px 28px 30px -18px #46503260;transition:transform .6s var(--ease)}
.market-item:hover .market-thumb{transform:translateY(-4px)}
.market-body{padding:34px 0 18px}
.market-index{font-size:10px;letter-spacing:.14em;color:#9aa38c;display:flex;align-items:center;gap:10px}
.market-index em{font-style:normal;font-size:11px;letter-spacing:0;padding:5px 10px;background:var(--surface-3);color:#6d7463;border-radius:3px}
.market-body h3{font-size:25px;font-weight:500;line-height:1.4;letter-spacing:-.03em;margin:17px 0 15px;transition:color .4s}
.market-item:hover .market-body h3{color:#4a5c22}
.market-subtitle{display:block;font-size:12px;color:#8b9280;margin:-4px 0 12px}
.market-body>p{font-size:13px;line-height:1.85;color:var(--text-2);max-width:52ch}
.market-parts{display:block;margin-top:18px;font-size:12px;line-height:1.8;color:#626c56}
.market-side{grid-column:2;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;padding:22px 0 30px;border-top:1px solid #e3e6dc}
.market-side .price-line{flex-wrap:wrap;gap:5px 12px}
.market-side .price-line strong{display:block;font-size:25px;font-weight:600;letter-spacing:-.03em}
.market-side .price-line span{font-size:10.5px;color:#8b9280}
.market-side .price-comparison{justify-content:flex-end;font-size:10px}
.market-side .price-comparison strong{font-size:10px}
.market-price-block{display:block}
.market-requirement{display:block;margin-top:7px;font-size:10.5px;line-height:1.55;color:var(--text-3)}
.market-more{display:inline-flex;justify-content:center;align-items:center;min-height:46px;flex-shrink:0;padding:12px 19px;border:1px solid #bac3ad;border-radius:3px;font-size:12px;color:#4a5340;transition:background .3s,border-color .3s}
.market-item:hover .market-more,.market-item:focus-visible .market-more{background:var(--accent);border-color:var(--accent)}

/* 스토어 안의 레퍼런스 안내 */
.ref-promo{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);margin:60px 0 70px;background:#171917;color:#f1f2ea;border-radius:8px;overflow:hidden}
.market-site .ref-promo{margin-top:65px}
.ref-promo-copy{padding:52px 48px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.ref-promo h2{font-size:clamp(20px,2.1vw,29px);font-weight:500;line-height:1.5;letter-spacing:-.04em}
.ref-promo-copy>p{font-size:12.5px;line-height:1.85;color:#98a08d;margin-top:16px;max-width:38ch}
.promo-link{margin-top:30px;font-size:12.5px;position:relative;padding-bottom:6px;color:#eef0e5}
.promo-link::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:#5f6a53;transition:background .4s}
.promo-link:hover::after{background:var(--accent)}
.promo-link:hover{color:var(--accent)}
.ref-promo-visual{position:relative;overflow:hidden;min-height:300px;display:block}
.ref-promo-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:left center;transform:scale(1.03);transition:transform 1.1s var(--ease)}
.ref-promo-visual:hover img{transform:scale(1.09)}
.ref-promo-visual::before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#171917,#17191700 34%);pointer-events:none}
.promo-caption{position:absolute;z-index:2;left:26px;bottom:22px;font-size:10.5px;color:var(--ink);background:#f7f8f3;border-radius:40px;padding:6px 12px;transition:transform .5s var(--ease),background .4s}
.ref-promo-visual:hover .promo-caption{transform:translateY(-5px);background:var(--accent)}

@media(max-width:1000px){
  .market-hero-inner{min-height:380px;padding:28px 0;column-gap:3%}
  .market-hero h1{font-size:clamp(26px,3.6vw,34px)}
  .market-hero-lead{font-size:13px}
  .market-item{padding-right:28px;column-gap:5%}
  .market-body h3{font-size:22px}
  .market-product-art{min-height:350px;padding:25px}
  .market-side .price-line strong{font-size:22px}
  .section-heading>p{max-width:220px}
}

@media(max-width:900px){
  .ref-promo{grid-template-columns:1fr}
  .ref-promo-copy{padding:38px 30px}
  .ref-promo-visual{min-height:230px}
  .ref-promo-visual::before{background:linear-gradient(0deg,#17191766,#17191700 45%)}
}

@media(max-width:650px){
  :root{--measure:calc(100% - 36px)}
  .store-section{padding:45px 0}
  .section-heading{display:block;margin-bottom:25px}
  .section-heading h2{font-size:25px}
  .section-heading>p{margin-top:13px;font-size:11px;max-width:none}
  .store-footer{padding:25px 0 0}
  .store-footer .footer-bottom{gap:15px;font-size:9px}
  .header-context{font-size:10px;margin-left:12px;padding-left:12px}
  .market-hero-inner{grid-template-columns:1fr;min-height:0;padding:28px 0 24px;row-gap:24px}
  .market-hero h1{font-size:clamp(24px,6.6vw,30px)}
  .market-hero-lead{font-size:12px;margin-top:16px}
  .ebook-hero-visual{max-width:460px;justify-self:start}
  .ebook-hero-visual figcaption{font-size:9px;margin-top:10px}
  .market-section{padding:48px 0 0}
  .market-section .section-heading{margin-bottom:25px}
  .market-item{grid-template-columns:1fr;gap:0;padding:0}
  .market-product-art{grid-column:1;grid-row:auto;min-height:310px;padding:30px}
  .market-thumb{width:min(240px,100%)}
  .market-body{padding:26px 24px 22px}
  .market-body h3{font-size:22px;max-width:none}
  .market-body>p{font-size:12px}
  .market-parts{margin-top:13px}
  .market-side{grid-column:1;margin:0 24px;padding:20px 0 24px;gap:12px;flex-wrap:wrap}
  .market-side .price-line strong{font-size:23px}
  .market-requirement{font-size:10px}
  .market-more{font-size:11px;padding:12px 16px}
  .price-comparison{font-size:11px}
  .ref-promo{margin:44px 0 52px}
  .ref-promo-copy{padding:32px 24px}
  .market-site .ref-promo{margin-top:44px}
}

@media(prefers-reduced-motion:reduce){.market-thumb,.market-item{transition:none}}
