/* ============================================================
   WEXLEY TONE — 사이트 전체 톤 오버라이드
   main.css / product.css / shop.css 뒤에 로드됩니다.
   되돌리려면 functions.php 에서 'litage-wexley' enqueue 한 줄만 지우면 됩니다.
   - 웜그레이 면, 직각 모서리, 대문자 영문 헤딩, 블랙 버튼, 절제된 모션
   ============================================================ */
:root{
  --bg:#ffffff;
  --panel:#e6e6e3;       /* WEXLEY 스튜디오 웜그레이 */
  --panel-2:#efefec;
  --ink:#111111;
  --ink-soft:#585856;
  --line:#d9d9d5;
  --accent:#111111;      /* 피치 → 블랙 */
  --accent-ink:#ffffff;
  --scribble:#111111;
  --radius:0px;
  --head:"Archivo","Pretendard Variable","Pretendard",-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
}

/* ---------- 타이포 ---------- */
h1,h2,h3{letter-spacing:.02em;}
.hero h1,.sec-head h2,.iwt h2,.collage .intro h2,.cat-hero h1,.rv-sec h2,.entry-title{
  text-transform:uppercase; font-weight:700; letter-spacing:.03em; line-height:1.22;
}
.eyebrow{letter-spacing:.28em; font-weight:600; font-size:11.5px;}
.hero .sub{font-weight:500; letter-spacing:.04em; color:var(--ink-soft);}

/* ---------- 상단 공지 · 헤더 ---------- */
.announce{background:#111; color:#fff;}
.announce .mid{font-weight:500; letter-spacing:.08em; font-size:12px;}
.header .lt-wrap{height:68px;}
.header.scrolled{box-shadow:none; border-color:var(--line);}
.logo{font-weight:700; font-size:18px; letter-spacing:.22em; text-transform:uppercase;}
.logo span{font-weight:500;}
.menu{gap:30px; font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:600;}
.icon-btn{border-radius:0;}
.cart-count{border-radius:0; min-width:16px; height:16px; line-height:16px; font-size:10px;}
.m-menu{font-size:15px; letter-spacing:.12em; text-transform:uppercase;}
.menu .soon,.m-menu .soon{color:var(--ink-soft);}

/* ---------- 버튼 ---------- */
.btn{
  border-radius:0; text-transform:uppercase; letter-spacing:.14em;
  font-size:12px; font-weight:700; padding:16px 30px; border-width:1px;
}
.btn:hover{background:#fff; color:var(--ink);}
.btn-peach{background:var(--ink); border-color:var(--ink); color:#fff;}
.btn-peach:hover{background:#fff; border-color:var(--ink); color:var(--ink);}
.btn-ghost{border-radius:0; padding:12px 22px; font-size:11.5px; font-weight:700; letter-spacing:.14em; border-width:1px;}
.btn-ghost:hover{background:var(--ink); color:#fff;}

/* ---------- 히어로 · 시트 ---------- */
.hero{background:var(--panel); padding:72px 0 104px;}
.hero-media img{animation:none; mix-blend-mode:multiply;}
.sheet{border-radius:0; margin-top:0; padding-top:72px;}
.usp div{font-weight:500; letter-spacing:.02em;}
.usp svg{stroke-width:1.1;}

/* ---------- 상품 카드 ---------- */
.card-media{border-radius:0; background:var(--panel);}
.card-media img{width:80%; height:80%;}
.tag{border-radius:0; top:0; right:0; padding:7px 12px; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; background:#fff;}
.tag.dark{background:var(--ink);}
.card-body{text-align:left; padding:16px 2px 0;}
.card-body .nm,.grid-4 .card-body .nm{font-family:var(--head); font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;}
.card-body .pr{font-size:14px; color:var(--ink-soft);}

/* ---------- 이미지+텍스트 · 콜라주 ---------- */
.iwt{border-radius:0; background:var(--panel);}
.iwt .tx{padding:64px 60px;}
.iwt p{color:var(--ink-soft);}
.checks svg circle{fill:var(--ink);}
.c-card{border-radius:0;}
.c-card .t{font-family:var(--head); font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:700;}
.rv-badge{border-radius:0;}
.rv-card{border-radius:0;}
.rv-card .ph img{mix-blend-mode:normal;}

/* ---------- 마키 · 푸터 ---------- */
.marquee{background:#111;}
.marquee-item{font-weight:700; -webkit-text-stroke:1px #dcdcd8;}
.marquee-item i{border-radius:0;}
footer{background:#111; border-radius:0;}
.f-grid h4{font-size:12px; letter-spacing:.18em; text-transform:uppercase; font-weight:700;}
.f-news h3{text-transform:uppercase; letter-spacing:.04em; font-weight:700;}
.f-news form{border-radius:0; background:#222;}
.f-news button{border-radius:0;}

/* ---------- 카테고리 ---------- */
.cat-hero{background:var(--panel);}
.coming-mark{-webkit-text-stroke:1px var(--ink);}

/* ---------- 상품 상세 ---------- */
.pd .crumb{font-size:11.5px; letter-spacing:.12em; text-transform:uppercase;}
.pd .pd-top{grid-template-columns:minmax(0,1fr) 420px; gap:48px; padding:24px 0 80px;}
@media(max-width:1100px){ .pd .pd-top{grid-template-columns:minmax(0,1fr) 360px; gap:32px;} }
@media(max-width:900px){ .pd .pd-top{grid-template-columns:1fr; gap:24px;} }

/* 갤러리: 대표컷 1장을 크게 + 아래 썸네일 스트립 (WEXLEY ETAN 방식) */
.pd .gal-main{border-radius:0; background:var(--panel); aspect-ratio:3/4; overflow:hidden;}
.pd .gal-main img{width:100%; height:100%; max-width:none; max-height:none; object-fit:cover; background:var(--panel);}
.pd .gal-thumbs{display:flex; gap:8px; margin-top:10px; overflow-x:auto; scrollbar-width:thin; padding-bottom:4px;}
.pd .gal-thumbs button{flex:0 0 72px; aspect-ratio:3/4; border-radius:0; border:1px solid transparent; background:var(--panel); opacity:.72; transition:opacity .2s;}
.pd .gal-thumbs button:hover{opacity:1;}
.pd .gal-thumbs button.active{border-color:var(--ink); opacity:1;}
.pd .gal-thumbs button img{width:100%; height:100%; object-fit:cover;}
@media(max-width:640px){ .pd .gal-thumbs button{flex-basis:60px;} }

/* 구매박스 아코디언 (Details / Specifications / Store policy) */
.pd .wx-acc{margin-top:22px; border-top:1px solid var(--line);}
.pd .wx-acc details{border-bottom:1px solid var(--line);}
.pd .wx-acc summary{list-style:none; cursor:pointer; padding:15px 0; font-family:var(--head); font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; display:flex; justify-content:space-between;}
.pd .wx-acc summary::-webkit-details-marker{display:none;}
.pd .wx-acc summary::after{content:"+"; font-weight:400; font-size:16px; line-height:1;}
.pd .wx-acc details[open] summary::after{content:"2";}
.pd .wx-acc-body{padding:0 0 16px; font-size:13.5px; color:var(--ink-soft);}
.pd .wx-acc-body p{margin:0 0 6px;}
.pd .wx-acc-body table{width:100%; border-collapse:collapse;}
.pd .wx-acc-body th,.pd .wx-acc-body td{padding:8px 0; text-align:left; border-bottom:1px solid var(--line); font-weight:400;}
.pd .wx-acc-body th{width:34%; color:var(--mute,#8d8d8d);}

.pd .buy .brandline{font-size:11px; letter-spacing:.24em; text-transform:uppercase; font-weight:600;}
.pd .buy h1{font-size:clamp(20px,2.2vw,26px); font-weight:700; letter-spacing:.04em; text-transform:uppercase; line-height:1.28;}
.pd .buy .sub{font-size:14px;}
.pd .price .off{color:var(--ink);}
.pd .price .now{font-family:var(--head); font-weight:700; letter-spacing:0;}
.pd .info-rows b{color:var(--ink);}
.pd .opt-label{font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-weight:700;}
.pd .opt-select{border-radius:0;}
.pd .line{border-radius:0; background:var(--panel-2);}
.pd .qty{border-radius:0;}
.pd .totals .row.grand{font-family:var(--head);}
.pd .ship-nudge{border-radius:0;}
.pd .ship-bar,.pd .ship-bar i{border-radius:0;}
.pd .ship-bar i{background:var(--ink);}
.pd .ship-nudge b{color:var(--ink);}
.pd .btns .btn{padding:17px 20px;}
.pd .ep-btn{border-radius:0; height:52px; font-size:14px;}
.pd .tabs a{font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:700;}
.pd .sec h2{font-size:13px; letter-spacing:.18em; text-transform:uppercase; font-weight:700;}
.pd .rv-cta{border-radius:0; background:var(--panel-2);}
.pd .ship-table th{font-size:12px; letter-spacing:.06em;}
.pd .m-bar .btn{border-radius:0;}
.pd .detail-empty{border-radius:0;}

/* 상세 본문 (ETAN 방식): 3분할 매크로 → 사진/글 교차 → 전폭 시네마틱 */
.pd .detail{padding:0;}
.pd .detail .lt-wrap{max-width:none; padding:0;}
.pd .detail-imgs{max-width:none; margin:0;}
.pd .detail-imgs > p:empty{display:none;}
.pd .detail-imgs img{width:100%; max-width:none;}
.wx-triple{display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:6px; background:var(--panel-2);}
.wx-triple img{width:100%; aspect-ratio:3/4; object-fit:cover; display:block; background:var(--panel);}
.wx-split{display:grid; grid-template-columns:1fr 1fr; align-items:stretch; background:#fff;}
.wx-split .wx-txt{display:flex; flex-direction:column; justify-content:center; padding:72px clamp(28px,6vw,96px);}
.wx-split .wx-pic{background:var(--panel); min-height:560px;}
.wx-split .wx-pic img{width:100%; height:100%; object-fit:cover; display:block;}
.wx-split.rev .wx-pic{order:-1;}
.wx-split h3{font-family:var(--head); font-size:clamp(17px,1.7vw,21px); font-weight:600; letter-spacing:.03em; text-transform:uppercase; line-height:1.4; margin:0 0 16px;}
.wx-split p{color:var(--ink-soft); max-width:480px; margin:0 0 12px; font-size:14.5px;}
.wx-cine{margin:0; background:var(--panel);}
.wx-cine img{width:100%; height:auto; display:block;}
.wx-spec{max-width:780px; margin:72px auto; padding:0 20px;}
.wx-spec h2{font-family:var(--head); font-size:13px; letter-spacing:.18em; text-transform:uppercase; margin:0 0 16px;}
.wx-spec table{width:100%; border-collapse:collapse;}
.wx-spec th,.wx-spec td{padding:13px 0; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; font-size:14px;}
.wx-spec th{width:30%; font-family:var(--head); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); font-weight:600;}
@media(max-width:860px){
  .wx-triple{grid-template-columns:1fr;}
  .wx-split,.wx-split.rev{grid-template-columns:1fr;}
  .wx-split.rev .wx-pic{order:0;}
  .wx-split .wx-txt{padding:40px 20px;}
  .wx-split .wx-pic{min-height:420px;}
}

/* ---------- 장바구니 · 결제 ---------- */
.woocommerce-checkout .btn,.woocommerce-cart .btn{border-radius:0;}



/* ---------- 홈 히어로: 노트북 세팅 ↔ 거치대 단독 슬라이드 ---------- */
.hero-chip{display:inline-block; margin:0 0 26px; padding:7px 12px; border:1px solid var(--ink); font-size:12px; letter-spacing:.04em; font-weight:600;}
.hero-slider{position:relative; display:grid; width:100%; max-width:620px; margin-left:auto; aspect-ratio:1/1;}
.hero-slider .hs-slide{grid-area:1/1; display:flex; align-items:center; justify-content:center; pointer-events:none;}
.hero-slider .hs-slide.on{pointer-events:auto;}
/* 슬라이드 이미지는 히어로 배경색(#e6e6e3) 위에 제품만 합성해 둔 파일이라 블렌드 없이 그대로 사용 */
.hero-slider .hs-slide img{width:100%; height:100%; object-fit:contain; mix-blend-mode:normal; animation:none; opacity:0; transition:opacity .8s ease;}
.hero-slider .hs-slide.on img{opacity:1;}
@media(max-width:860px){ .hero-slider{margin:0 auto; max-width:460px;} }

@media(max-width:480px){ .hero h1{font-size:27px;} }

/* ---------- 홈 서브 히어로 (백팩) : 사진 + 글 분할 ---------- */
.subhero{padding:0; margin:8px 0 0;}
.subhero-link{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); background:#161616; color:#fff;}
.subhero-pic{background:var(--panel); overflow:hidden;}
.subhero-pic img{width:100%; height:100%; min-height:560px; object-fit:cover; object-position:50% 40%; display:block; transition:transform .9s cubic-bezier(.2,.7,.2,1);}
.subhero-link:hover .subhero-pic img{transform:scale(1.03);}
.subhero-txt{display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:56px clamp(28px,6vw,96px);}
.subhero-txt .eyebrow{color:#cfcfca;}
.subhero-txt h2{font-size:clamp(26px,3vw,42px); font-weight:700; line-height:1.22; letter-spacing:.02em; margin:14px 0 16px; color:#fff;}
.subhero-txt p{color:#c4c4bf; margin:0 0 22px; font-size:15px; max-width:440px;}
.subhero-price{margin:0 0 26px; font-family:var(--head); font-size:20px;}
.subhero-price s{color:#8d8d88; font-size:15px; margin-right:8px;}
.subhero-price b{font-weight:700;}
.subhero-txt .btn{background:#fff; color:#111; border-color:#fff;}
.subhero-link:hover .btn{background:transparent; color:#fff;}
.subhero-note{margin-top:14px; font-size:11.5px; color:#ffd9a0;}
@media(max-width:860px){
  .subhero-link{grid-template-columns:1fr;}
  .subhero-pic img{min-height:0; aspect-ratio:4/5;}
  .subhero-txt{padding:36px 20px 44px;}
}

/* ---------- SHOP BY CATEGORY (Wexley 타일) ---------- */
.cat-tiles-sec{padding:72px 0 24px;}
.cat-tiles-h{font-family:var(--head); font-size:13px; letter-spacing:.2em; text-transform:uppercase; font-weight:700; margin:0 0 24px;}
.cat-tiles{display:grid; grid-template-columns:repeat(var(--n,4),1fr); gap:8px;}
.cat-tile{display:block;}
.cat-tile .im{background:var(--panel); aspect-ratio:3/4; overflow:hidden; display:flex; align-items:center; justify-content:center;}
.cat-tile .im img{width:86%; height:86%; object-fit:contain; mix-blend-mode:multiply; transition:transform .7s cubic-bezier(.2,.7,.2,1);}
.cat-tile:hover .im img{transform:scale(1.05);}
.cat-tile .nm{margin-top:12px; font-family:var(--head); font-size:12px; letter-spacing:.16em; text-transform:uppercase; font-weight:700;}
@media(max-width:860px){ .cat-tiles{grid-template-columns:repeat(2,1fr);} .cat-tiles-sec{padding-top:48px;} }

/* ---------- 홈 전반 Wexley 톤 보정 ---------- */
.scribble svg,.circle-word svg{display:none;}
.scribble,.circle-word{white-space:normal;}
.quote-row h2{font-size:clamp(20px,2.3vw,30px); font-weight:600; letter-spacing:.02em; text-transform:none;}
.card-media{aspect-ratio:4/5;}
.grid-2 .card-media{aspect-ratio:4/5;}
.cart-btn svg{width:22px; height:22px;}
.logo{font-size:19px;}
@media(max-width:900px){ .logo{font-size:17px;} }

/* ---------- 모바일 최적화 (상품 상세) ---------- */
/* 썸네일 스트립(flex)의 min-content가 그리드 칸을 화면보다 넓히던 문제 → 칸을 minmax(0,1fr)로 고정 */
.pd .pd-top > *{min-width:0;}
.pd .gal-main,.pd .gal-thumbs{max-width:100%;}
@media(max-width:900px){
  .pd .pd-top{grid-template-columns:minmax(0,1fr); gap:22px; padding:12px 0 40px;}
  .pd .buy{position:static;}
}
@media(max-width:640px){
  .pd .crumb{padding-top:14px;}
  .pd .buy h1{font-size:20px; letter-spacing:.02em;}
  .pd .buy .sub{font-size:13.5px;}
  .pd .price .now{font-size:26px;}
  .pd .info-rows div{grid-template-columns:64px 1fr; font-size:13px;}
  .pd .easy-pay{gap:8px;}
  .pd .ep-btn{height:50px; font-size:14px;}
  .pd .btns{grid-template-columns:1fr 1.3fr; gap:8px;}
  .pd .btns .btn{padding:15px 8px; letter-spacing:.08em;}
  .pd .tabs a{font-size:11px; letter-spacing:.04em; padding:14px 2px; line-height:1.3;}
  .pd .detail-imgs img{width:100%; max-width:100%; height:auto;}
  .pd .sec{padding:44px 0;}
  .pd .sec-inner{padding-left:2px; padding-right:2px;}
  .pd .ship-table th{width:108px; padding-right:10px;}
  .pd .ship-table th,.pd .ship-table td{font-size:13px; padding:12px 2px;}
  .pd .wx-acc summary{padding:14px 0;}
  .wx-spec{margin:40px auto; padding:0 16px;}
  .wx-spec th{width:34%; font-size:11px;}
  .wx-spec th,.wx-spec td{font-size:13px; padding:11px 0;}
  .wx-split .wx-txt{padding:32px 20px;}
  .wx-split h3{font-size:18px;}
  .wx-triple{gap:4px; padding:4px;}
}
/* 상품 목록/카테고리 카드 간격 */
@media(max-width:640px){
  .cat-list{padding-top:28px;}
}

/* 카드의 '자세히 보기' 버튼: 데스크톱은 마우스를 올릴 때만, 터치 기기에서는 숨김 (이미지를 가리지 않게) */
.card-media .more{opacity:0; transition:opacity .25s ease; white-space:nowrap;}
.card:hover .card-media .more,.card:focus-visible .card-media .more{opacity:1;}
@media (hover:none), (max-width:860px){ .card-media .more{display:none;} }

/* ---------- 모션 절제 ---------- */
[data-animate]{transform:translateY(20px); transition-duration:.7s;}

/* ---------- 헤더 개편: 브랜드명 가운데 · SHOP / EXPLORE ---------- */
.header .lt-wrap{grid-template-columns:1fr auto 1fr;}
.header .logo{grid-column:2; grid-row:1; justify-self:center; font-size:26px; letter-spacing:.2em; padding-left:.2em; color:inherit;}
.header .menu{grid-column:1; grid-row:1; justify-self:start; align-items:center; gap:34px;}
.header .h-right{grid-column:3; grid-row:1;}
.header{transition:background .3s ease, color .3s ease, border-color .2s ease, box-shadow .2s ease;}
.header:hover{background:#111; color:#fff;}
.header:hover .icon-btn:hover{background:rgba(255,255,255,.14);}
.header:hover .menu a::after{background:#fff;}
.has-sub{position:relative; display:flex; align-items:center; height:68px;}
.has-sub .sub{position:absolute; left:-16px; top:calc(100% - 4px); min-width:150px; padding:10px 0; background:#111; color:#fff; opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity .25s ease, transform .25s ease, visibility .25s; letter-spacing:.06em;}
.has-sub:hover .sub,.has-sub:focus-within .sub{opacity:1; visibility:visible; transform:none;}
.has-sub .sub a{display:block; padding:9px 18px;}
.has-sub .sub a::after{display:none;}
.has-sub .sub a:hover{background:#fff; color:#111;}
.m-menu{inset:68px 0 0 0;}
.m-menu a.m-sub{padding:10px 4px 10px 20px; font-size:14px; font-weight:500; color:var(--ink-soft);}
@media(max-width:900px){ .header .logo{font-size:20px;} .header .burger{grid-column:1; grid-row:1;} }

/* ---------- About us (EXPLORE) ---------- */
.about-hero{padding:96px 0 56px; text-align:center;}
.about-hero h1{font-size:clamp(30px,4.4vw,52px); line-height:1.25; font-weight:700; margin:14px 0 18px;}
.about-hero .tag{color:var(--ink-soft); font-size:17px;}
.about-sec{padding:48px 0;}
.about-sec .narrow{max-width:720px; margin:0 auto;}
.about-sec h2{font-size:clamp(22px,2.4vw,30px); font-weight:700; margin-bottom:18px;}
.about-sec p{color:#333; margin:0 0 14px; line-height:1.85;}
.about-two{display:grid; grid-template-columns:1fr 1fr; gap:20px; max-width:960px; margin:0 auto;}
.about-two .box{background:var(--panel-2); padding:36px 32px;}
.about-two h3{font-size:22px; font-weight:700; letter-spacing:.04em; margin-bottom:6px;}
.about-two small{display:block; color:#777; margin-bottom:14px;}
.about-flow{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; max-width:960px; margin:28px auto 0;}
.about-flow .box{border:1px solid var(--line); padding:28px 24px;}
.about-flow b{display:block; font-size:18px; margin-bottom:6px;}
.about-flow span{color:var(--ink-soft);}
@media(max-width:760px){ .about-two,.about-flow{grid-template-columns:1fr;} .about-hero{padding:64px 0 32px;} .about-hero,.about-sec .narrow{text-align:center;} }

/* ---------- 홈 베스트셀러 (3열) ---------- */
.best{padding:8px 0 24px;}
.best-title{text-align:center; font-size:clamp(28px,3.4vw,42px); font-weight:700; letter-spacing:.02em; text-transform:none; margin:0 0 40px;}
.best-rv{display:flex; justify-content:center; margin:-20px 0 32px;}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.grid-3 .card-media{aspect-ratio:4/5;}
.grid-3 .card-body{text-align:left;}
@media(max-width:860px){ .grid-3{grid-template-columns:1fr; gap:28px;} .best-title{margin-bottom:28px;} }

/* ---------- 홈 룩북 (큰 사진 + 캡션) ---------- */
.lookbook{display:grid; gap:48px; padding:72px 0 24px;}
.lb-item{display:block;}
.lb-img{aspect-ratio:16/9; overflow:hidden; background:var(--panel);}
.lb-img img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .8s cubic-bezier(.2,.7,.2,1);}
.lb-img.lb-street img{object-position:45% center;}
.lb-img.lb-cowork img{object-position:58% center;}
.lb-item:hover .lb-img img{transform:scale(1.03);}
.lb-cap{text-align:center; margin:16px 0 0; font-size:14px; letter-spacing:.04em;}
@media(max-width:860px){ .lookbook{gap:32px; padding-top:48px;} .lb-img{aspect-ratio:4/5;} }

/* ---------- 카드 이미지 배경 어우러짐 ---------- */
/* 상품 사진 배경이 완전한 흰색이 아니라(248~254) 웜그레이 카드 위에서 사각형 테두리가 보이던 문제:
   살짝 밝혀 배경을 순백으로 만들고, multiply 합성으로 카드 배경색과 일치시킴 */
.card-media img,.cat-tile .im img{filter:brightness(1.035);}

/* ---------- 상품 상세 이미지 폭 제한 ---------- */
/* 상세 이미지 원본이 폭 780px 기준이라 화면 전체 폭으로 늘리면 PC에서 글자가 커지고 흐려져 비율이 어색함.
   본문 폭을 860px로 제한해 가운데 정렬 (모바일은 기존처럼 화면 폭에 맞춤) */
.pd .detail-imgs{max-width:860px; margin:0 auto;}
.pd .detail-imgs img{width:100%; max-width:100%; height:auto;}

/* ---------- 상품 상세 갤러리 크기·비율 ---------- */
/* 갤러리 비율은 대표 이미지 비율을 따라감(--gal-ar: 스탠드·충전기 1, 백팩 0.75).
   이미지와 칸의 비율이 같아서 이미지 뒤로 배경이 비치는 틈(어우러지지 않던 부분)이 없음.
   PC에서는 가로 최대 645px, 화면 높이를 넘지 않도록 폭을 자동 제한 */
.pd .gal-col{--gal-ar:1;}
.pd .gal-main{aspect-ratio:var(--gal-ar);}
.pd .gal-main img{object-fit:contain;}
.pd .gal-thumbs button{aspect-ratio:var(--gal-ar);}
@media(min-width:901px){
  .pd .pd-top{grid-template-columns:minmax(0,645px) minmax(0,1fr); gap:56px;}
  .pd .gal-col{width:min(100%, calc((100vh - 150px) * var(--gal-ar))); max-width:645px; margin-inline:auto;}
  .pd .gal-thumbs button{flex-basis:64px;}
}

/* ---------- 상품 상세 갤러리 스와이프 ---------- */
/* 대표 사진을 좌우로 밀면 다음/이전 사진으로 넘어가도록 가로 스크롤 슬라이드로 구성(scroll-snap).
   justify-content를 시작점으로 둬야 왼쪽 사진이 잘리지 않음 */
.pd .gal-main{display:flex; justify-content:flex-start; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;}
.pd .gal-main::-webkit-scrollbar{display:none;}
.pd .gal-main img{flex:0 0 100%; width:100%; height:100%; scroll-snap-align:start; scroll-snap-stop:always;}
.pd .gal-thumbs{scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;}
.pd .gal-thumbs button{scroll-snap-align:start;}

/* ---------- 백팩 상세: Aer 방식 2열 갤러리 (PC) ---------- */
/* 백팩 카테고리 상품만 .pd-grid. PC에서는 슬라이드 대신 사진 전부를 2열로 쌓아 보여주고(스크롤),
   구매 정보 박스는 오른쪽에 고정. 모바일은 기존 좌우 스와이프 유지 */
@media(min-width:901px){
  .pd.pd-grid .pd-top{grid-template-columns:minmax(0,1fr) 400px; gap:48px; align-items:start;}
  .pd.pd-grid .gal-col{width:100%; max-width:none; margin-inline:0;}
  .pd.pd-grid .gal-main{display:grid; grid-template-columns:1fr 1fr; gap:12px; overflow:visible; aspect-ratio:auto; background:none; scroll-snap-type:none; overscroll-behavior:auto;}
  .pd.pd-grid .gal-main img{flex:none; width:100%; height:auto; aspect-ratio:var(--gal-ar); object-fit:cover; background:var(--panel); scroll-snap-align:none;}
  .pd.pd-grid .gal-thumbs{display:none;}
  .pd.pd-grid .buy{position:sticky; top:84px; align-self:start;}
}

/* ---------- 사진형 카드 (백팩) ---------- */
/* 회색 스튜디오 배경 사진을 다른 카드의 웜그레이 배경과 같은 톤으로 맞춤:
   사진 배경(약 231)이 흰색에 가깝도록 밝기를 1.105배 올린 뒤 곱하기 합성하면 카드 배경색(#e6e6e3)과 같아짐.
   사진은 85%로 줄이고 가장자리를 부드럽게 흐려 배경에 녹임 */
.card.is-photo .card-media img,.cat-tile.is-photo .im img{
  width:85%; height:85%; object-fit:cover; mix-blend-mode:multiply; filter:brightness(1.105);
  -webkit-mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent);
  mask-composite:intersect;
}
