/* CELEB UNNI — Shop */
.wrap { width: min(var(--max), 100% - 48px); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

.topbar { background: var(--charcoal); color: var(--ivory); font-size: 12.5px; text-align: center; padding: 8px 12px; letter-spacing: .02em; }
.topbar.test { background: #5B4A3E; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 4px; }
.hdr-right { justify-content: flex-end; }
.logo img { height: 34px; width: auto; }
.icon-btn { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 50%; }
.icon-btn:hover { background: var(--cream); }
.icon-btn svg { width: 21px; height: 21px; stroke: var(--charcoal); fill: none; stroke-width: 1.4; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brown); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; font-family: var(--font-num); }
.nav { display: flex; justify-content: center; gap: 28px; height: 44px; align-items: center; font-size: 12.5px; letter-spacing: .14em; font-family: var(--font-logo); font-weight: 600; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.on { border-bottom-color: var(--charcoal); }
.nav a.sale { color: var(--brown); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .hdr { height: 60px; }
  .logo img { height: 26px; }
  .nav { justify-content: flex-start; gap: 20px; padding: 0 16px; height: 40px; }
  .hdr-left .hide-m { display: none; }
}

/* Drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 200; animation: fade .2s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--ivory); z-index: 201; padding: 24px; overflow: auto; animation: slideIn .25s var(--ease); }
.drawer.right { left: auto; right: 0; animation-name: slideInR; }
@keyframes slideIn { from { transform: translateX(-100%); } }
@keyframes slideInR { from { transform: translateX(100%); } }
.drawer a.dl { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--font-logo); letter-spacing: .14em; font-weight: 600; font-size: 14px; }
.drawer a.dl small { font-family: var(--font-sans); letter-spacing: 0; color: var(--gray); font-weight: 400; margin-left: 8px; font-size: 12px; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 8vw 6vw; gap: 22px; }
.hero-eyebrow { font-family: var(--font-logo); letter-spacing: .32em; font-size: 13px; color: var(--brown); font-weight: 600; }
.hero h1 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.22; font-weight: 400; }
.hero p { font-size: clamp(15px, 1.2vw, 17px); color: var(--gray); max-width: 440px; }
.hero-img { position: relative; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-img { order: -1; aspect-ratio: 4/5; }
  .hero-copy { padding: 36px 20px 44px; }
}

/* Sections */
.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; gap: 16px; }
.sec-head h2 { font-family: var(--font-logo); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .16em; font-weight: 500; }
.sec-head .sub { color: var(--gray); font-size: 14px; margin-top: 6px; font-family: var(--font-serif); }
.more { font-size: 13px; letter-spacing: .08em; border-bottom: 1px solid var(--charcoal); padding-bottom: 2px; white-space: nowrap; }
@media (max-width: 640px) { .section { padding-top: 64px; } .sec-head { margin-bottom: 20px; } }

/* Product grid */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.pgrid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .pgrid, .pgrid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .pgrid, .pgrid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; } }
.pcard { display: block; }
.pcard .ph { position: relative; aspect-ratio: 4/5; background: var(--cream); overflow: hidden; }
.pcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.pcard .ph img.alt { opacity: 0; }
.pcard:hover .ph img.alt { opacity: 1; }
.pcard:hover .ph img { transform: scale(1.03); }
.pcard .ph .ai-tag { opacity: 0; transition: opacity .3s; }
.pcard:hover .ph .ai-tag { opacity: 1; }
.pcard .flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; z-index: 2; }
.pcard .soldout { position: absolute; inset: 0; background: rgba(247, 245, 240, .55); display: flex; align-items: center; justify-content: center; font-family: var(--font-logo); letter-spacing: .2em; font-weight: 600; z-index: 3; }
.pcard .info { padding-top: 14px; display: grid; gap: 4px; }
.pcard .name { font-size: 14.5px; line-height: 1.45; }
.pcard .price { font-family: var(--font-num); font-size: 14.5px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pcard .price del { color: var(--gray-2); font-weight: 400; font-size: 13px; }
.pcard .price .rate { color: var(--brown); }
.pcard .colors { display: flex; gap: 6px; font-size: 12px; color: var(--gray); }
.wish-btn { position: absolute; right: 8px; top: 8px; z-index: 3; width: 36px; height: 36px; border: 0; background: rgba(247, 245, 240, .8); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wish-btn svg { width: 18px; height: 18px; stroke: var(--charcoal); stroke-width: 1.4; fill: none; }
.wish-btn.on svg { fill: var(--brown); stroke: var(--brown); }

/* Editor's pick */
.editor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.editor .big { aspect-ratio: 4/5; background: var(--cream); position: relative; overflow: hidden; }
.editor .big img { width: 100%; height: 100%; object-fit: cover; }
.editor .copy { display: grid; gap: 18px; max-width: 460px; }
.editor .copy h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; gap: 24px; } }

/* Style collection */
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.style-tile { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--cream); display: block; }
.style-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.style-tile:hover img { transform: scale(1.04); }
.style-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); color: #fff; }
.style-tile .cap b { font-family: var(--font-serif); font-weight: 500; font-size: 18px; display: block; }
.style-tile .cap span { font-size: 12px; letter-spacing: .1em; font-family: var(--font-logo); }
@media (max-width: 900px) { .styles { grid-template-columns: repeat(2, 1fr); } }

/* Story */
.story { background: var(--cream); }
.story-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 96px 0; }
.story h2 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 400; margin: 14px 0 22px; }
.story p { color: #4a4744; line-height: 1.9; }
.story-img { aspect-ratio: 1/1; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .story-in { grid-template-columns: 1fr; gap: 28px; padding: 64px 0; } }

/* Insta */
.insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.insta a { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--cream); }
.insta img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .insta { grid-template-columns: repeat(3, 1fr); } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { background: var(--white); border: 1px solid var(--line); padding: 22px; display: grid; gap: 10px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* Kakao */
.kakao-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 36px 40px; background: var(--white); border: 1px solid var(--line); }
.kakao-cta h3 { font-size: 22px; font-weight: 400; }
.btn.kakao { background: #FEE500; border-color: #FEE500; color: #191919; }
@media (max-width: 760px) { .kakao-cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; } }

/* Footer */
.footer { background: var(--charcoal); color: #CFC9C0; margin-top: 96px; padding: 64px 0 40px; font-size: 13px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--font-logo); letter-spacing: .18em; color: var(--ivory); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .biz { margin-top: 40px; padding-top: 24px; border-top: 1px solid #3c3c3c; line-height: 1.9; color: #9d978f; font-size: 12px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1/-1; } }

/* List page */
.page-head { padding: 56px 0 28px; text-align: center; }
.page-head h1 { font-family: var(--font-logo); letter-spacing: .2em; font-size: clamp(26px, 3vw, 38px); font-weight: 500; }
.page-head p { color: var(--gray); margin-top: 8px; font-family: var(--font-serif); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.toolbar .chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Product detail */
.pd { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; padding: 32px 0 0; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery .g { position: relative; aspect-ratio: 4/5; background: var(--cream); overflow: hidden; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g.full { grid-column: 1/-1; }
.gallery-label { grid-column: 1/-1; font-size: 12px; letter-spacing: .14em; color: var(--gray); padding: 18px 0 6px; font-family: var(--font-logo); font-weight: 600; }
.pd-info { position: sticky; top: 140px; display: grid; gap: 18px; }
.pd-info h1 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; }
.pd-price { font-family: var(--font-num); font-size: 22px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.pd-price del { font-size: 15px; color: var(--gray-2); font-weight: 400; }
.pd-price .rate { color: var(--brown); }
.opt-group { display: grid; gap: 8px; }
.opt-group .label { display: flex; justify-content: space-between; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts .chip { min-width: 54px; justify-content: center; border-radius: var(--radius); }
.qty { display: inline-flex; border: 1px solid var(--line); background: var(--white); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 18px; }
.qty input { width: 44px; text-align: center; border: 0; font-family: var(--font-num); background: none; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; padding: 17px 0; cursor: pointer; display: flex; justify-content: space-between; font-size: 14.5px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 18px; color: var(--gray); }
.acc details[open] summary::after { content: '−'; }
.acc .body { padding: 0 0 20px; font-size: 14px; color: #48453f; white-space: pre-line; }
.meas { font-size: 13px; }
.meas th, .meas td { padding: 8px 6px; text-align: center; }
.sticky-buy { display: none; }
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .wrap.pd-wrap { width: 100%; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .g { flex: 0 0 100%; scroll-snap-align: start; }
  .gallery-label { display: none; }
  .pd-info { position: static; padding: 0 16px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ivory); border-top: 1px solid var(--line); }
  .sticky-buy .btn { flex: 1; }
  body.has-sticky { padding-bottom: 76px; }
}
.ai-note { font-size: 12.5px; color: var(--gray); background: var(--cream); padding: 10px 12px; border-left: 2px solid var(--gold); }
.style-reco { display: grid; gap: 14px; }
.style-reco .occ { display: grid; gap: 8px; }
.mini-products { display: flex; gap: 10px; overflow-x: auto; }
.mini { flex: 0 0 110px; font-size: 12px; }
.mini .ph { aspect-ratio: 4/5; background: var(--cream); overflow: hidden; margin-bottom: 6px; }
.mini .ph img { width: 100%; height: 100%; object-fit: cover; }

/* Cart / checkout */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-bottom: 40px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .ph { aspect-ratio: 4/5; background: var(--cream); overflow: hidden; }
.cart-line .ph img { width: 100%; height: 100%; object-fit: cover; }
.summary { background: var(--white); border: 1px solid var(--line); padding: 24px; position: sticky; top: 140px; display: grid; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; font-size: 14px; }
.summary .total { font-size: 18px; font-weight: 700; font-family: var(--font-num); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.step-title { font-family: var(--font-serif); font-size: 18px; margin: 28px 0 14px; display: flex; align-items: center; gap: 10px; }
.step-title .n { width: 26px; height: 26px; border-radius: 50%; background: var(--charcoal); color: var(--ivory); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-num); }
.pay-test { border: 1px dashed var(--warn); background: #FFF9EC; padding: 22px; display: grid; gap: 14px; }

/* Account */
.auth-box { width: min(440px, 100%); margin: 0 auto; padding: 24px 0 40px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button, .tabs a { padding: 12px 18px; border: 0; background: none; border-bottom: 2px solid transparent; font-size: 14px; color: var(--gray); white-space: nowrap; }
.tabs .on { color: var(--charcoal); border-bottom-color: var(--charcoal); }
.order-card { border: 1px solid var(--line); background: var(--white); padding: 18px; display: grid; gap: 12px; margin-bottom: 12px; }
.status-steps { display: flex; gap: 0; font-size: 12px; color: var(--gray-2); }
.status-steps span { flex: 1; text-align: center; padding: 8px 0; border-top: 2px solid var(--line); }
.status-steps span.on { color: var(--charcoal); border-top-color: var(--charcoal); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { padding: 14px 0; cursor: pointer; }
.faq p { margin: 0 0 16px; color: var(--gray); font-size: 14px; }
.demo-flag { position: absolute; right: 10px; bottom: 10px; z-index: 2; }

/* 프로필 링크 페이지 (/links) */
.links-page { padding: 32px 16px 60px; }
.links-in { max-width: 480px; margin: 0 auto; text-align: center; }
.links-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; }
.links-in h1 { font-family: var(--font-serif); font-size: 22px; margin: 0 0 4px; }
.links-in h2 { font-size: 14px; letter-spacing: .08em; margin: 28px 0 12px; text-align: left; }
.links-btn { display: block; padding: 14px; margin: 10px 0; border-radius: 999px; background: #292929; color: #fff; font-weight: 600; text-decoration: none; }
.links-btn.line { background: transparent; color: inherit; border: 1px solid currentColor; margin-top: 24px; }
.links-list { display: grid; gap: 10px; text-align: left; }
.links-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid rgba(0,0,0,.1); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; font-size: 14px; line-height: 1.5; }
.links-item img, .links-item .ph { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; background: #eee; }
.links-item .gold { color: #B69B72; font-weight: 700; }
.links-go { font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: #292929; color: #fff; white-space: nowrap; }
