/* =========================================================
   index4.php 전용 스타일 (에디토리얼 럭셔리 컨셉 시안)
   style.css의 :root 변수/리셋을 그대로 이어받아 사용
   ========================================================= */

/* ---------- 카카오톡 상담 플로팅 ---------- */
.kakao-float{ position:fixed; right:20px; bottom:20px; z-index:580; }
.kakao-float-btn{
  width:54px; height:54px; border-radius:50%; background:#FEE500; color:#3c1e1e;
  display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(0,0,0,.22);
  transition:.2s;
}
.kakao-float-btn:hover{ transform:translateY(-2px); box-shadow:0 8px 22px rgba(0,0,0,.28); }
.kakao-float-btn svg{ width:26px; height:26px; }
.kakao-float-panel{
  position:absolute; right:0; bottom:66px; width:240px; background:#fff; border-radius:10px;
  box-shadow:0 12px 32px rgba(0,0,0,.2); padding:16px 18px;
}
.kakao-float-label{ font-size:11.5px; color:var(--ink-mute); margin-bottom:8px; }
.kakao-float-id-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 12px; background:var(--bg-alt); border-radius:6px; margin-bottom:10px;
}
.kakao-float-id-row span{ font-size:13.5px; font-weight:600; color:var(--ink); word-break:break-all; }
.kakao-float-id-row button{
  flex:0 0 auto; font-family:inherit; font-size:11px; padding:5px 10px; border-radius:20px;
  border:1px solid var(--ink); color:var(--ink); white-space:nowrap;
}
.kakao-float-id-row button:hover{ background:var(--ink); color:#fff; }
.kakao-float-hint{ font-size:11px; color:var(--ink-mute); line-height:1.5; }
@media(max-width:480px){
  .kakao-float{ right:14px; bottom:14px; }
  .kakao-float-panel{ width:min(78vw,240px); }
}

/* ---------- 상단고정 공지 (여러 건 스택) ---------- */
.h4-notice-row{
  display:flex; align-items:center; gap:10px;
  background:var(--ink); color:#fff; padding:10px 16px; font-size:12px; letter-spacing:.02em;
}
.h4-notice-row:nth-child(even){ background:#3f3d38; }
.h4-notice-link{
  flex:1 1 auto; min-width:0; display:flex; align-items:center; justify-content:center; gap:10px;
  color:#fff; text-align:center;
}
.h4-notice-row:hover .h4-notice-link{ color:var(--gold); }
.h4-notice-tag{
  flex:0 0 auto; font-size:10.5px; letter-spacing:.06em; border:1px solid rgba(255,255,255,.5);
  border-radius:20px; padding:2px 9px;
}
.h4-notice-title{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:70vw; }
.h4-notice-close{
  flex:0 0 auto; display:flex; align-items:center; justify-content:center;
  width:20px; height:20px; color:rgba(255,255,255,.75);
}
.h4-notice-close:hover{ color:#fff; }
.h4-notice-close svg{ width:13px; height:13px; }

/* ---------- Header (미니멀) ---------- */
.header4{
  position:sticky; top:0; z-index:300;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header4-inner{
  max-width:var(--maxw); margin:0 auto; padding:0 20px;
  display:grid; grid-template-columns:1fr auto 1fr;
  align-items:center; height:64px;
}
@media(min-width:768px){
  .header4-inner{ padding:0 40px; height:80px; }
}
.h4-burger{
  justify-self:start; display:flex; align-items:center; gap:9px;
  font-size:11px; letter-spacing:.1em; color:var(--ink-soft);
}
.h4-burger svg{ width:20px; height:20px; }
.h4-burger:hover{ color:var(--ink); }
.h4-burger .lbl{ display:none; }
@media(min-width:768px){ .h4-burger .lbl{ display:inline; } }

.h4-logo{ justify-self:center; text-align:center; line-height:1; }
.h4-logo .mark{ font-size:19px; letter-spacing:.06em; font-weight:600; }
.h4-logo .sub{ display:block; font-size:8px; letter-spacing:.3em; color:var(--ink-mute); margin-top:3px; }
.h4-logo-img{ display:inline-block; max-height:26px; width:auto; margin:0 auto; }
@media(min-width:768px){
  .h4-logo .mark{ font-size:24px; }
  .h4-logo .sub{ font-size:9px; margin-top:5px; }
  .h4-logo-img{ max-height:34px; }
}
.drawer-head .h4-logo-img{ max-height:22px; }

.h4-icons{ justify-self:end; display:flex; align-items:center; gap:8px; }
@media(min-width:768px){ .h4-icons{ gap:16px; } }
.h4-icons svg{ width:18px; height:18px; }
.h4-icons a{ color:var(--ink-soft); display:flex; }
.h4-icons a:hover{ color:var(--ink); }
.h4-auth-link{ display:none; font-size:11.5px; letter-spacing:.04em; white-space:nowrap; }
@media(min-width:768px){ .h4-auth-link{ display:inline-flex; } }


/* ---------- 레이어 팝업배너 ---------- */
.popup-shade{
  position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:590;
}
.popup-banner{
  position:fixed; z-index:600;
  top:calc(14vh + var(--popup-offset, 0) * 28px);
  left:calc(50% + var(--popup-offset, 0) * 28px);
  transform:translateX(-50%);
  width:min(90vw, 360px);
}
.popup-banner-body{
  background:#fff; border-radius:8px; overflow:hidden; position:relative;
  box-shadow:0 16px 44px rgba(0,0,0,.28);
}
.popup-banner-body img{ width:100%; display:block; }
.popup-close{
  position:absolute; top:8px; right:8px; z-index:2; width:28px; height:28px; border-radius:50%;
  background:rgba(0,0,0,.45); color:#fff; display:flex; align-items:center; justify-content:center;
}
.popup-close svg{ width:14px; height:14px; }
.popup-close:hover{ background:rgba(0,0,0,.65); }
.popup-banner-actions{ display:flex; border-top:1px solid var(--line); }
.popup-banner-actions button{
  flex:1; padding:11px 6px; font-family:inherit; font-size:11px; letter-spacing:-.01em;
  color:var(--ink-soft); background:#fff; transition:.15s;
}
.popup-banner-actions button:first-child{ border-right:1px solid var(--line); }
.popup-banner-actions button:hover{ background:var(--bg-alt); color:var(--ink); }
@media(max-width:480px){
  .popup-banner{
    width:min(86vw,320px);
    top:calc(10vh + var(--popup-offset, 0) * 18px);
    left:calc(50% + var(--popup-offset, 0) * 14px);
  }
}

/* ---------- 전역 플래시 메시지 (헤더 하단) ---------- */
.h4-flash{
  text-align:center; font-size:12.5px; padding:12px 20px; letter-spacing:.02em;
}
.h4-flash.success{ background:#eef3fe; color:#2f5bd6; }
.h4-flash.danger{ background:#fbeceb; color:#b3392f; }

/* ---------- Mobile drawer (카테고리/브랜드 선택) ---------- */
.drawer-overlay{
  position:fixed; inset:0; background:rgba(20,18,15,.45);
  opacity:0; pointer-events:none; transition:opacity .25s; z-index:400;
}
.drawer-overlay.is-open{ opacity:1; pointer-events:auto; }

.brand-drawer{
  position:fixed; top:0; left:0; height:100%;
  width:min(88vw,380px); background:#fff; z-index:401;
  transform:translateX(-100%); transition:transform .3s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column; overflow-y:auto;
  box-shadow:8px 0 30px rgba(0,0,0,.08);
}
.brand-drawer.is-open{ transform:translateX(0); }

.drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 22px 18px; border-bottom:1px solid var(--line);
}
.drawer-head .mark{ font-size:18px; letter-spacing:.05em; font-weight:600; }
.drawer-close{ display:flex; padding:4px; color:var(--ink-soft); }
.drawer-close svg{ width:20px; height:20px; }
.drawer-close:hover{ color:var(--ink); }

.drawer-tab{ border-bottom:1px solid var(--line); }
.drawer-tab-head{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding:20px 22px; font-family:'Playfair Display',serif; font-size:17px; letter-spacing:.03em;
  text-align:left;
}
.drawer-tab-head .en{ font-size:10px; letter-spacing:.2em; color:var(--ink-mute); font-family:'Noto Sans KR',sans-serif; margin-left:8px; }
.drawer-tab-head .plus{ position:relative; width:12px; height:12px; flex:0 0 auto; }
.drawer-tab-head .plus::before,
.drawer-tab-head .plus::after{
  content:''; position:absolute; background:var(--ink); transition:transform .25s;
}
.drawer-tab-head .plus::before{ left:0; top:50%; width:100%; height:1px; margin-top:-.5px; }
.drawer-tab-head .plus::after{ top:0; left:50%; width:1px; height:100%; margin-left:-.5px; }
.drawer-tab.is-open .drawer-tab-head .plus::after{ transform:rotate(90deg); }

.drawer-tab-body{
  max-height:0; overflow:hidden; transition:max-height .3s ease;
  padding:0 22px;
}
.drawer-tab.is-open .drawer-tab-body{ max-height:640px; padding-bottom:20px; }
.drawer-brand-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.drawer-brand-item{ text-align:center; }
.drawer-brand-thumb{
  display:block; width:100%; aspect-ratio:1/1; border-radius:50%; overflow:hidden;
  border:1px solid var(--line); margin-bottom:8px;
}
.drawer-brand-thumb img{ width:100%; height:100%; object-fit:cover; }
.drawer-brand-thumb.is-empty{ background:var(--bg-alt); display:flex; align-items:center; justify-content:center; border-style:dashed; }
.drawer-brand-thumb.is-empty svg{ width:20px; height:20px; color:var(--ink-mute); }
.drawer-brand-item .nm{ font-size:11.5px; letter-spacing:.02em; }
.drawer-brand-item.is-empty .nm{ color:var(--ink-mute); }
.drawer-all-link{
  display:block; text-align:center; font-size:11.5px; letter-spacing:.1em;
  color:var(--ink-soft); padding:14px 0 4px; border-top:1px dashed var(--line); margin-top:6px;
}
.drawer-all-link:hover{ color:var(--gold-dark); }

/* ---------- 통란 배너 (여러 장이면 슬라이드) ---------- */
.mega-banner{
  position:relative; width:100%; height:56vw; min-height:320px; max-height:640px;
  overflow:hidden; background:var(--ink);
}
@media(min-width:768px){ .mega-banner{ height:52vw; max-height:640px; } }

.mb-track{
  display:flex; width:100%; height:100%; overflow-x:auto;
  scroll-snap-type:x mandatory; scrollbar-width:none;
}
.mb-track::-webkit-scrollbar{ display:none; }
.mega-banner.is-slider .mb-track{ cursor:grab; }
.mb-track.is-dragging{ cursor:grabbing; scroll-snap-type:none; }

.mb-slide{ position:relative; flex:0 0 100%; width:100%; height:100%; scroll-snap-align:start; }
.mb-slide-link{ display:block; width:100%; height:100%; }
.mb-slide picture, .mb-slide img{ display:block; width:100%; height:100%; object-fit:cover; }
.mb-slide img{ filter:grayscale(.25) contrast(1.05) brightness(.72); }

.mb-copy{
  position:absolute; left:0; right:0; bottom:0; padding:36px 24px 46px;
  text-align:center; color:#fff;
}
@media(min-width:768px){ .mb-copy{ padding:0; top:0; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; } }
.mb-copy .eyebrow{ font-size:11px; letter-spacing:.3em; color:rgba(255,255,255,.75); margin-bottom:14px; }
.mb-title{ font-family:'Playfair Display',serif; font-size:clamp(26px,6vw,52px); letter-spacing:.04em; font-weight:500; margin-bottom:16px; color:#fff; }
.mb-copy p{ font-size:13px; color:rgba(255,255,255,.8); margin-bottom:26px; letter-spacing:.02em; }
.mb-cta{
  display:inline-block; padding:13px 38px; border:1px solid #fff; color:#fff;
  font-size:11.5px; letter-spacing:.16em; border-radius:30px; transition:.25s;
}
.mb-cta:hover{ background:#fff; color:var(--ink); }

.mb-arrow{
  display:none; position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.5); align-items:center; justify-content:center;
  color:#fff; z-index:5; transition:.2s; backdrop-filter:blur(4px);
}
.mb-arrow:hover{ background:rgba(255,255,255,.3); }
.mb-arrow svg{ width:18px; height:18px; }
.mb-arrow.prev{ left:16px; }
.mb-arrow.next{ right:16px; }
@media(min-width:768px){ .mb-arrow{ display:flex; } .mb-arrow.prev{ left:28px; } .mb-arrow.next{ right:28px; } }

.mb-dots{
  position:absolute; left:0; right:0; bottom:16px; z-index:5;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.mb-dot{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.45); transition:.2s; }
.mb-dot.active{ background:#fff; width:18px; border-radius:4px; }

/* ---------- 섹션 공통 ---------- */
.mx-section{ padding:64px 0; }
.mx-section.alt{ background:var(--bg-alt); }
.mx-head{ text-align:center; margin-bottom:38px; }
.mx-head .en{ font-size:11px; letter-spacing:.28em; color:var(--gold-dark); margin-bottom:10px; }
.mx-head h2{ font-family:'Playfair Display',serif; font-size:clamp(22px,3.4vw,32px); font-weight:500; letter-spacing:.02em; }

/* ---------- 브랜드 원형 슬라이더 ---------- */
.mx-slider-wrap{ position:relative; }
.mx-slider-track{
  display:flex; gap:26px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding:4px 4px 10px; scrollbar-width:none;
}
.mx-slider-track::-webkit-scrollbar{ display:none; }
.mx-circle-item{ flex:0 0 auto; width:132px; scroll-snap-align:start; text-align:center; }
@media(min-width:768px){ .mx-circle-item{ width:158px; } }
.mx-circle-thumb{
  display:block; width:100%; aspect-ratio:1/1; border-radius:50%; overflow:hidden;
  border:1px solid var(--line); transition:.3s; margin-bottom:14px;
}
.mx-circle-item a:hover .mx-circle-thumb{ box-shadow:0 10px 26px rgba(0,0,0,.1); transform:translateY(-3px); }
.mx-circle-thumb img{ width:100%; height:100%; object-fit:cover; transition:.4s; }
.mx-circle-item a:hover .mx-circle-thumb img{ transform:scale(1.06); }
.mx-circle-thumb.is-empty{ background:var(--bg-alt); border-style:dashed; display:flex; align-items:center; justify-content:center; }
.mx-circle-thumb.is-empty svg{ width:26px; height:26px; color:var(--ink-mute); }
.mx-circle-name{ font-size:13px; letter-spacing:.03em; }
.mx-circle-item.is-empty .mx-circle-name{ color:var(--ink-mute); }

.mx-arrow{
  display:none; position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%; background:#fff;
  border:1px solid var(--line); align-items:center; justify-content:center;
  color:var(--ink-soft); z-index:5; transition:.2s;
}
.mx-arrow:hover{ color:var(--ink); border-color:var(--ink); }
.mx-arrow svg{ width:16px; height:16px; }
.mx-arrow.prev{ left:-20px; }
.mx-arrow.next{ right:-20px; }
@media(min-width:1024px){ .mx-arrow{ display:flex; } }

/* ---------- 상품 그리드 ---------- */
.mx-product-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px;
}
@media(min-width:640px){ .mx-product-grid{ grid-template-columns:repeat(4,1fr); gap:22px; } }

.mx-pcard{ position:relative; }
.mx-pcard-link{ display:block; }
.mx-pcard-img{
  display:block; position:relative; width:100%; aspect-ratio:1/1.15; overflow:hidden;
  background:var(--bg-alt); margin-bottom:14px;
}
.mx-pcard-img img{ width:100%; height:100%; object-fit:cover; transition:.5s; }
.mx-pcard-link:hover .mx-pcard-img img{ transform:scale(1.05); }
.mx-badge{
  position:absolute; top:10px; left:10px; background:var(--ink); color:#fff;
  font-size:10.5px; letter-spacing:.08em; padding:5px 10px; border-radius:20px;
}
.mx-wish{
  position:absolute; top:10px; right:10px; z-index:2; width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center;
  color:var(--ink-soft); transition:.15s; box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.mx-wish svg{ width:17px; height:17px; }
.mx-wish:hover{ color:#c0392b; background:#fff; }
.mx-wish.active{ color:#c0392b; }
.mx-wish.active svg{ fill:#c0392b; }
.mx-pcard-img.is-empty{ display:flex; align-items:center; justify-content:center; border:1px dashed var(--line); }
.mx-pcard-img.is-empty svg{ width:26px; height:26px; color:var(--ink-mute); }
.mx-pname{ font-size:13px; letter-spacing:.01em; margin-bottom:6px; line-height:1.4; }
.mx-price{ font-size:13px; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.mx-price .now{ font-weight:600; }
.mx-price .now.sale{ color:var(--gold-dark); }
.mx-price .old{ color:var(--ink-mute); text-decoration:line-through; font-size:12px; }
.mx-pcard.is-empty .mx-pname{ color:var(--ink-mute); }

.mx-more-wrap{ text-align:center; margin-top:44px; }
.mx-more-btn{
  display:inline-block; padding:14px 44px; border:1px solid var(--ink);
  font-size:11.5px; letter-spacing:.14em; border-radius:30px; transition:.25s;
}
.mx-more-btn:hover{ background:var(--ink); color:#fff; }

/* ---------- 푸터 (미니멀) ---------- */
.footer4{
  border-top:1px solid var(--line); padding:56px 20px 44px;
  text-align:center;
}
.footer4 .mark{ font-family:'Playfair Display',serif; font-size:24px; letter-spacing:.08em; margin-bottom:10px; }
.footer4 .sub{ font-size:10.5px; letter-spacing:.28em; color:var(--ink-mute); margin-bottom:22px; }
.footer4-link{ display:inline-block; font-size:11.5px; color:var(--ink-soft); margin-bottom:14px; text-decoration:underline; text-underline-offset:3px; }
.footer4-link:hover{ color:var(--ink); }
.footer4 .copy{ font-size:11.5px; color:var(--ink-mute); }

