/* ═══════════════════════════════════════════════════════════════
   DX Mall Theme — style.css v1.0.0
   디자인: 미니멀 모노톤 패션몰
   폰트: Cormorant Garamond (세리프) + Noto Sans KR
═══════════════════════════════════════════════════════════════ */

/* ── 리셋 & 기본 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.mall-body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  font-size: 14px;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── CSS 변수 ── */
:root {
  --mall-black:  #111111;
  --mall-white:  #ffffff;
  --mall-gray1:  #f5f5f3;
  --mall-gray2:  #e8e8e8;
  --mall-gray3:  #999999;
  --mall-gray4:  #666666;
  --mall-red:    #c0392b;
  --mall-serif:  'Cormorant Garamond', Georgia, serif;
  --mall-sans:   'Noto Sans KR', sans-serif;
  --mall-header-h: 64px;
  --mall-max:    1280px;
  --mall-trans:  all .25s ease;
}

/* ── 공통 컨테이너 ── */
.mall-container { max-width: var(--mall-max); margin: 0 auto; padding: 0 40px; }

/* ── 공통 섹션 타이틀 ── */
.mall-sec-title {
  font-family: var(--mall-serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  margin-bottom: 10px;
}
.mall-sec-line {
  width: 32px; height: 1px; background: var(--mall-black);
  margin: 0 auto 40px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   헤더
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-notice-bar {
  background: var(--mall-black); color: var(--mall-white);
  font-size: .72rem; letter-spacing: .1em; text-align: center;
  padding: 8px; text-transform: uppercase;
}
.mall-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mall-gray2);
  transition: var(--mall-trans);
}
.mall-header-inner {
  max-width: var(--mall-max); margin: 0 auto; padding: 0 40px;
  height: var(--mall-header-h);
  display: flex; align-items: center; gap: 32px;
}
.mall-logo {
  font-family: var(--mall-serif);
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  flex-shrink: 0; color: var(--mall-black);
}
.mall-nav { display: flex; gap: 2px; flex: 1; }
.mall-nav-link {
  padding: 8px 14px;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mall-gray4); transition: var(--mall-trans);
  position: relative;
}
.mall-nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 1px; background: var(--mall-black);
  transform: scaleX(0); transition: transform .25s ease;
}
.mall-nav-link:hover { color: var(--mall-black); }
.mall-nav-link:hover::after { transform: scaleX(1); }

.mall-header-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mall-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: .9rem; color: var(--mall-black); transition: var(--mall-trans);
  position: relative;
}
.mall-icon-btn:hover { background: var(--mall-gray1); }
.mall-cart-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--mall-black); color: var(--mall-white);
  font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* 검색 드롭다운 */
.mall-search-drop {
  background: var(--mall-white); border-top: 1px solid var(--mall-gray2);
  border-bottom: 1px solid var(--mall-gray2);
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.mall-search-drop.open { max-height: 80px; }
.mall-search-drop-inner {
  max-width: var(--mall-max); margin: 0 auto; padding: 0 40px;
  height: 64px; display: flex; align-items: center; gap: 0;
}
.mall-search-drop form { display: flex; align-items: center; width: 100%; max-width: 600px; border-bottom: 1px solid var(--mall-black); }
.mall-search-drop-inp {
  flex: 1; padding: 10px 0; font-size: .9rem;
  border: none; outline: none; background: none;
  font-family: var(--mall-sans); letter-spacing: .02em;
}
.mall-search-drop-btn { padding: 10px; font-size: .85rem; color: var(--mall-black); }

/* 모바일 메뉴 */
.mall-mob-menu { display: none; flex-direction: column; gap: 5px; width: 24px; }
.mall-mob-menu span { display: block; height: 1px; background: var(--mall-black); transition: var(--mall-trans); }
.mall-mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 300; }
.mall-mob-overlay.open { display: block; }
.mall-mob-nav {
  position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
  background: var(--mall-white); z-index: 400; padding: 32px 28px;
  transition: left .35s ease; overflow-y: auto;
}
.mall-mob-nav.open { left: 0; }
.mall-mob-close { position: absolute; top: 20px; right: 20px; font-size: 1rem; color: var(--mall-gray4); }
.mall-mob-logo { font-family: var(--mall-serif); font-size: 1.1rem; font-weight: 700; letter-spacing: .18em; margin: 20px 0 28px; }
.mall-mob-link { display: block; padding: 11px 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--mall-gray2); color: var(--mall-gray4); }
.mall-mob-link:hover { color: var(--mall-black); }
.mall-mob-divider { margin: 12px 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   홈 — 히어로
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-hero {
  position: relative; overflow: hidden;
  height: calc(100vh - var(--mall-header-h));
  min-height: 500px; max-height: 820px;
  background: #e8e4df;
}
.mall-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.mall-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.08) 0%, transparent 60%);
}
.mall-hero-content {
  position: absolute; bottom: 80px; left: 80px; max-width: 480px;
}
.mall-hero-eyebrow {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mall-gray4); margin-bottom: 14px;
}
.mall-hero-title {
  font-family: var(--mall-serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--mall-black); margin-bottom: 16px;
}
.mall-hero-sub { font-size: .85rem; color: var(--mall-gray4); margin-bottom: 28px; line-height: 1.6; }
.mall-hero-btn {
  display: inline-block; padding: 14px 32px;
  background: var(--mall-black); color: var(--mall-white);
  font-size: .72rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  transition: var(--mall-trans);
}
.mall-hero-btn:hover { background: #333; }
.mall-hero-no-img .mall-hero-content { position: relative; bottom: auto; left: auto; padding: 100px 80px; }

/* 히어로 슬라이더 인디케이터 */
.mall-hero-indicators {
  position: absolute; bottom: 32px; left: 80px;
  display: flex; align-items: center; gap: 12px;
  font-size: .68rem; letter-spacing: .08em; color: var(--mall-gray4);
}
.mall-hero-indicator-line { width: 32px; height: 1px; background: var(--mall-gray3); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   상품 섹션 공통
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-section { padding: 80px 0; }
.mall-section-gray { background: var(--mall-gray1); }

/* 상품 슬라이더 래퍼 */
.mall-slider-wrap {
  position: relative;
}
.mall-slider {
  display: flex; gap: 1px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.mall-slider::-webkit-scrollbar { display: none; }
.mall-slider-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--mall-white); border: 1px solid var(--mall-gray2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--mall-black); z-index: 10;
  transition: var(--mall-trans); cursor: pointer;
}
.mall-slider-arrow:hover { background: var(--mall-black); color: var(--mall-white); border-color: var(--mall-black); }
.mall-slider-arrow.left { left: -22px; }
.mall-slider-arrow.right { right: -22px; }

/* ── 상품 카드 ── */
.mall-product-card {
  flex: 0 0 calc(20% - 1px); scroll-snap-align: start;
  position: relative; cursor: pointer;
}
.mall-product-card-thumb {
  aspect-ratio: 3/4; overflow: hidden; background: var(--mall-gray1);
  position: relative;
}
.mall-product-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.mall-product-card:hover .mall-product-card-thumb img { transform: scale(1.04); }
.mall-product-card-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--mall-gray2);
}
.mall-product-badge-sale {
  position: absolute; top: 12px; left: 12px;
  background: var(--mall-black); color: var(--mall-white);
  font-size: .6rem; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; text-transform: uppercase;
}
.mall-product-badge-new {
  position: absolute; top: 12px; left: 12px;
  background: var(--mall-white); color: var(--mall-black);
  border: 1px solid var(--mall-black);
  font-size: .6rem; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; text-transform: uppercase;
}
.mall-sold-out-dim {
  position: absolute; inset: 0; background: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mall-gray4);
}
.mall-product-card-wish {
  position: absolute; bottom: 12px; right: 12px;
  width: 32px; height: 32px; background: var(--mall-white);
  border: 1px solid var(--mall-gray2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--mall-gray4); transition: var(--mall-trans);
  opacity: 0;
}
.mall-product-card:hover .mall-product-card-wish { opacity: 1; }
.mall-product-card-wish:hover { background: var(--mall-black); color: var(--mall-white); border-color: var(--mall-black); }

.mall-product-card-info { padding: 14px 4px 4px; }
.mall-product-card-name {
  font-size: .82rem; color: var(--mall-black);
  margin-bottom: 5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.mall-product-card-price { font-size: .82rem; display: flex; align-items: center; gap: 7px; }
.mall-price-num { font-weight: 700; color: var(--mall-black); }
.mall-price-origin { color: var(--mall-gray3); text-decoration: line-through; font-size: .75rem; }
.mall-price-sale { color: var(--mall-red); font-weight: 700; }

/* 그리드 형 (카테고리, 검색) */
.mall-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   프로모션 배너 2단
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.mall-promo-card {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9; background: var(--mall-gray1);
  cursor: pointer;
}
.mall-promo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mall-promo-card:hover img { transform: scale(1.03); }
.mall-promo-content {
  position: absolute; inset: 0; padding: 40px 48px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.mall-promo-eyebrow { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.mall-promo-title { font-family: var(--mall-serif); font-size: 1.8rem; font-weight: 700; color: var(--mall-white); line-height: 1.2; margin-bottom: 10px; }
.mall-promo-sub { font-size: .78rem; color: rgba(255,255,255,.8); margin-bottom: 20px; }
.mall-promo-link { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--mall-white); display: flex; align-items: center; gap: 10px; }
.mall-promo-link::after { content: ''; width: 32px; height: 1px; background: var(--mall-white); }
/* 밝은 배너 */
.mall-promo-card.light .mall-promo-eyebrow { color: var(--mall-gray4); }
.mall-promo-card.light .mall-promo-title { color: var(--mall-black); }
.mall-promo-card.light .mall-promo-sub { color: var(--mall-gray4); }
.mall-promo-card.light .mall-promo-link { color: var(--mall-black); }
.mall-promo-card.light .mall-promo-link::after { background: var(--mall-black); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   서비스 바
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-service-bar { padding: 40px 0; border-top: 1px solid var(--mall-gray2); border-bottom: 1px solid var(--mall-gray2); }
.mall-service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.mall-service-item { display: flex; align-items: center; gap: 16px; }
.mall-service-item i { font-size: 1.3rem; color: var(--mall-gray4); flex-shrink: 0; }
.mall-service-item strong { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 3px; }
.mall-service-item span { font-size: .72rem; color: var(--mall-gray3); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   상품 상세
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 48px 0; }
.mall-detail-gallery {}
.mall-detail-main { aspect-ratio: 3/4; overflow: hidden; background: var(--mall-gray1); margin-bottom: 8px; }
.mall-detail-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.mall-detail-thumbs { display: flex; gap: 6px; }
.mall-detail-thumb { width: 72px; aspect-ratio: 3/4; object-fit: cover; cursor: pointer; border: 1px solid transparent; transition: border-color .2s; }
.mall-detail-thumb:hover, .mall-detail-thumb.active { border-color: var(--mall-black); }

.mall-detail-info { padding-top: 10px; }
.mall-detail-cat { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--mall-gray3); margin-bottom: 12px; }
.mall-detail-name { font-family: var(--mall-serif); font-size: 1.7rem; font-weight: 600; line-height: 1.25; margin-bottom: 14px; }
.mall-detail-price-wrap { margin-bottom: 20px; }
.mall-detail-price { font-size: 1.2rem; font-weight: 700; }
.mall-detail-price-origin { font-size: .85rem; color: var(--mall-gray3); text-decoration: line-through; margin-right: 8px; }
.mall-detail-price-sale { color: var(--mall-red); }
.mall-detail-delivery { font-size: .78rem; color: var(--mall-gray4); padding: 12px 0; border-top: 1px solid var(--mall-gray2); border-bottom: 1px solid var(--mall-gray2); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

.mall-option-group { margin-bottom: 14px; }
.mall-option-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mall-gray4); display: block; margin-bottom: 8px; }
.mall-option-sel { width: 100%; padding: 11px 14px; border: 1px solid var(--mall-gray2); font-size: .85rem; outline: none; font-family: var(--mall-sans); appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.mall-option-sel:focus { border-color: var(--mall-black); }

.mall-qty-row { display: flex; align-items: center; gap: 0; border: 1px solid var(--mall-gray2); width: 120px; margin-bottom: 14px; }
.mall-qty-btn { width: 38px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--mall-gray4); transition: var(--mall-trans); }
.mall-qty-btn:hover { color: var(--mall-black); }
.mall-qty-inp { flex: 1; height: 42px; border: none; border-left: 1px solid var(--mall-gray2); border-right: 1px solid var(--mall-gray2); text-align: center; font-size: .88rem; outline: none; }

.mall-detail-total { font-size: .82rem; color: var(--mall-gray4); margin-bottom: 20px; }
.mall-detail-total strong { font-size: 1.1rem; color: var(--mall-black); margin-left: 8px; }

.mall-btn-cart {
  width: 100%; padding: 15px; margin-bottom: 8px;
  border: 1px solid var(--mall-black); background: var(--mall-white); color: var(--mall-black);
  font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: var(--mall-trans);
}
.mall-btn-cart:hover { background: var(--mall-black); color: var(--mall-white); }
.mall-btn-buy {
  width: 100%; padding: 15px;
  background: var(--mall-black); color: var(--mall-white);
  font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: var(--mall-trans);
}
.mall-btn-buy:hover { background: #333; }
.mall-btn-soldout {
  width: 100%; padding: 15px;
  background: var(--mall-gray1); color: var(--mall-gray3);
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; cursor: not-allowed;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   카테고리 / 목록 헤더
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-list-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--mall-gray2);
  margin-bottom: 32px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.mall-list-title { font-family: var(--mall-serif); font-size: 1.6rem; font-weight: 600; }
.mall-list-count { font-size: .78rem; color: var(--mall-gray3); }
.mall-sort-sel {
  padding: 8px 32px 8px 14px; border: 1px solid var(--mall-gray2);
  font-size: .75rem; outline: none; font-family: var(--mall-sans);
  appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   장바구니
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-page-header { padding: 48px 0 32px; border-bottom: 1px solid var(--mall-gray2); margin-bottom: 40px; }
.mall-page-title { font-family: var(--mall-serif); font-size: 1.8rem; font-weight: 600; letter-spacing: .05em; }
.mall-cart-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.mall-cart-table { width: 100%; border-collapse: collapse; }
.mall-cart-table th { padding: 8px 0; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mall-gray3); font-weight: 500; border-bottom: 1px solid var(--mall-black); text-align: left; }
.mall-cart-table td { padding: 20px 0; border-bottom: 1px solid var(--mall-gray2); vertical-align: middle; font-size: .85rem; }
.mall-cart-product-wrap { display: flex; align-items: center; gap: 16px; }
.mall-cart-thumb { width: 72px; aspect-ratio: 3/4; object-fit: cover; flex-shrink: 0; }
.mall-cart-name { font-size: .85rem; font-weight: 500; margin-bottom: 4px; }
.mall-cart-opt { font-size: .75rem; color: var(--mall-gray3); }
.mall-cart-del { color: var(--mall-gray3); font-size: .8rem; cursor: pointer; transition: color .2s; padding: 8px; }
.mall-cart-del:hover { color: var(--mall-black); }
.mall-cart-summary { border: 1px solid var(--mall-gray2); padding: 28px; position: sticky; top: calc(var(--mall-header-h) + 20px); }
.mall-summary-title { font-family: var(--mall-serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--mall-gray2); }
.mall-summary-row { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 10px; color: var(--mall-gray4); }
.mall-summary-total { border-top: 1px solid var(--mall-black); padding-top: 14px; margin-top: 4px; font-weight: 700; color: var(--mall-black); font-size: .95rem; }
.mall-btn-primary {
  display: block; width: 100%; padding: 14px; margin-top: 20px;
  background: var(--mall-black); color: var(--mall-white); text-align: center;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  transition: var(--mall-trans);
}
.mall-btn-primary:hover { background: #333; }
.mall-btn-outline {
  display: block; width: 100%; padding: 12px; margin-top: 8px; text-align: center;
  border: 1px solid var(--mall-gray2); color: var(--mall-gray4);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  transition: var(--mall-trans);
}
.mall-btn-outline:hover { border-color: var(--mall-black); color: var(--mall-black); }
.mall-empty-state { padding: 100px 0; text-align: center; color: var(--mall-gray3); }
.mall-empty-state i { font-size: 2.5rem; display: block; margin-bottom: 16px; }
.mall-empty-state p { font-size: .85rem; margin-bottom: 20px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   주문서
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-checkout-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; padding-bottom: 80px; }
.mall-form-block { margin-bottom: 32px; }
.mall-form-block-title { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--mall-black); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--mall-gray2); }
.mall-form-row { margin-bottom: 14px; }
.mall-form-label { font-size: .72rem; letter-spacing: .08em; color: var(--mall-gray4); display: block; margin-bottom: 6px; }
.mall-inp {
  width: 100%; padding: 11px 0; border: none; border-bottom: 1px solid var(--mall-gray2);
  font-size: .88rem; outline: none; font-family: var(--mall-sans); background: none;
  transition: border-color .2s;
}
.mall-inp:focus { border-bottom-color: var(--mall-black); }
.mall-inp::placeholder { color: var(--mall-gray3); }
.mall-pay-methods { display: flex; gap: 8px; flex-wrap: wrap; }
.mall-pay-method { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--mall-gray2); cursor: pointer; font-size: .82rem; transition: var(--mall-trans); }
.mall-pay-method input[type=radio] { accent-color: var(--mall-black); }
.mall-pay-method:has(input:checked) { border-color: var(--mall-black); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   주문 완료
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-done-wrap { max-width: 560px; margin: 0 auto; padding: 80px 0; text-align: center; }
.mall-done-icon { font-size: 3rem; color: var(--mall-black); margin-bottom: 24px; }
.mall-done-title { font-family: var(--mall-serif); font-size: 1.8rem; font-weight: 600; margin-bottom: 10px; }
.mall-done-sub { font-size: .85rem; color: var(--mall-gray4); margin-bottom: 32px; }
.mall-done-order { background: var(--mall-gray1); padding: 24px; margin-bottom: 28px; text-align: left; }
.mall-done-btns { display: flex; gap: 10px; justify-content: center; }
.mall-done-btn { padding: 12px 28px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   마이페이지
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-status {
  display: inline-block; padding: 2px 9px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--mall-gray2); color: var(--mall-gray4);
}
.mall-status.paid { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.mall-status.pending { background: #fefce8; border-color: #fef08a; color: #854d0e; }
.mall-status.shipping { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.mall-status.cancelled { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.mall-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mall-table th { padding: 10px 8px; text-align: left; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mall-gray3); border-bottom: 1px solid var(--mall-black); font-weight: 500; }
.mall-table td { padding: 14px 8px; border-bottom: 1px solid var(--mall-gray2); vertical-align: middle; }
.mall-table-link { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mall-gray4); border-bottom: 1px solid var(--mall-gray2); padding-bottom: 1px; transition: var(--mall-trans); }
.mall-table-link:hover { color: var(--mall-black); border-bottom-color: var(--mall-black); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   페이지네이션
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-pager { display: flex; justify-content: center; gap: 2px; padding: 40px 0; }
.mall-page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: .78rem; color: var(--mall-gray4); border: 1px solid transparent;
  transition: var(--mall-trans);
}
.mall-page-btn:hover { border-color: var(--mall-gray2); color: var(--mall-black); }
.mall-page-btn.active { border-color: var(--mall-black); color: var(--mall-black); font-weight: 700; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   푸터
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-footer { background: var(--mall-black); color: rgba(255,255,255,.7); padding: 60px 0 32px; margin-top: auto; }
.mall-footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 24px; }
.mall-footer-logo { font-family: var(--mall-serif); font-size: 1.2rem; font-weight: 700; letter-spacing: .2em; color: var(--mall-white); margin-bottom: 12px; }
.mall-footer-tagline { font-size: .78rem; color: rgba(255,255,255,.4); }
.mall-footer-links { display: flex; gap: 60px; }
.mall-footer-col h4 { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mall-white); margin-bottom: 16px; font-weight: 500; }
.mall-footer-col a { display: block; font-size: .78rem; color: rgba(255,255,255,.5); margin-bottom: 10px; transition: color .2s; }
.mall-footer-col a:hover { color: var(--mall-white); }
.mall-footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.mall-footer-biz { font-size: .72rem; display: flex; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.3); }
.mall-footer-biz span { display: flex; align-items: center; gap: 4px; }
.mall-footer-copy { font-size: .72rem; color: rgba(255,255,255,.25); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   토스트
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mall-toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--mall-black); color: var(--mall-white);
  padding: 12px 24px; font-size: .82rem; letter-spacing: .05em;
  opacity: 0; transition: all .3s ease; z-index: 9999; pointer-events: none;
  white-space: nowrap;
}
.mall-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   반응형
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
  .mall-container { padding: 0 24px; }
  .mall-header-inner { padding: 0 24px; }
  .mall-hero-content { left: 48px; bottom: 60px; }
  .mall-product-card { flex: 0 0 calc(25% - 1px); }
  .mall-product-grid { grid-template-columns: repeat(3,1fr); }
  .mall-detail-wrap { gap: 40px; }
}
@media (max-width: 768px) {
  :root { --mall-header-h: 56px; }
  .mall-nav { display: none; }
  .mall-mob-menu { display: flex; }
  .mall-logo { margin: 0 auto; }
  .mall-hero { max-height: 540px; }
  .mall-hero-content { left: 28px; bottom: 40px; }
  .mall-hero-title { font-size: 1.8rem; }
  .mall-product-card { flex: 0 0 calc(50% - 1px); }
  .mall-product-grid { grid-template-columns: repeat(2,1fr); }
  .mall-promo-grid { grid-template-columns: 1fr; }
  .mall-service-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .mall-cart-wrap { grid-template-columns: 1fr; }
  .mall-cart-summary { position: static; }
  .mall-checkout-wrap { grid-template-columns: 1fr; }
  .mall-detail-wrap { grid-template-columns: 1fr; }
  .mall-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .mall-footer-links { gap: 32px; }
  .mall-slider-arrow { display: none; }
}
@media (max-width: 480px) {
  .mall-container { padding: 0 16px; }
  .mall-hero-content { left: 20px; right: 20px; bottom: 32px; }
  .mall-section { padding: 48px 0; }
  .mall-service-grid { grid-template-columns: 1fr; }
}
