/* ER SHOP opt-in home collections, independent of legacy home product rails. */
.cw-merch-editorial,.cw-merch-spotlight{box-sizing:border-box;min-width:0;margin-top:28px;margin-bottom:32px}
.cw-merch-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 17px}
.cw-merch-heading>div{min-width:0}
.cw-merch-heading span{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;color:#c62128;margin-bottom:6px}
.cw-merch-heading h2{margin:0;font-size:clamp(21px,2vw,27px);line-height:1.23;font-weight:900;letter-spacing:-.045em;color:#111317}
.cw-merch-heading p{margin:7px 0 0;font-size:12px;color:#70747d;line-height:1.5}
.cw-merch-heading>a{flex:none;white-space:nowrap;font-size:12px;font-weight:750;color:#24262b;text-decoration:none}
.cw-merch-editorial__hero{position:relative;display:block;width:100%;height:auto;aspect-ratio:1.65/1;background:#1b1d23;overflow:hidden;border-radius:10px;isolation:isolate}
.cw-merch-editorial__hero-image{display:block;width:100%;height:100%;object-fit:cover}
.cw-merch-editorial__hero-overlay>span{position:absolute;right:0;bottom:0;font-size:26px}
.cw-merch-editorial__rail{display:flex;min-width:0;gap:10px;margin-top:12px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x mandatory;padding-bottom:7px;overscroll-behavior-x:contain}
.cw-merch-list-card{flex:0 0 clamp(142px,32%,210px);min-width:0;display:flex;flex-direction:column;gap:4px;scroll-snap-align:start;text-decoration:none!important;color:#1b1c21!important}
.cw-merch-list-card__picture,.cw-merch-focus-card__picture{display:block;overflow:hidden;background:#f3f3f5;border-radius:8px;aspect-ratio:1/1}
.cw-merch-list-card__picture img,.cw-merch-focus-card__picture img{display:block;width:100%;height:100%;object-fit:contain}
.cw-merch-brand{display:block;font-size:12px;font-weight:850;color:#222;margin-top:7px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cw-merch-item-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px!important;line-height:1.45!important;color:#555c65!important;font-weight:500!important;min-height:2.6em}
.cw-merch-price{display:block;font-size:14px!important;font-weight:850!important;color:#111317;line-height:1.4;max-width:100%;overflow:hidden}
.cw-merch-price .cw-dual-price{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
.cw-merch-price .cw-member-price-lock{font-size:11px}
.cw-merch-placeholder{display:block;width:100%;height:100%;background:linear-gradient(130deg,#f0f0f1,#dfdfe1)}
.cw-merch-spotlight{padding-top:14px;padding-bottom:16px;background:linear-gradient(#f6f7f9,#f2f3f6);border-radius:15px;overflow:hidden}
.cw-merch-spotlight .cw-merch-heading{padding:14px clamp(15px,3%,26px) 0;align-items:center}
.cw-merch-spotlight__viewport{position:relative;height:485px;overflow:hidden;touch-action:pan-y;user-select:none;box-sizing:border-box}
.cw-merch-spotlight__track{position:relative;width:100%;height:100%}
.cw-merch-spotlight__slot{position:absolute;top:14px;left:50%;width:66%;max-width:370px;min-width:0;opacity:0;pointer-events:none;transform:translateX(-50%) scale(.79);transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .45s ease;z-index:0}
.cw-merch-spotlight__slot.is-active{opacity:1;pointer-events:auto;transform:translateX(-50%) scale(1);z-index:3}
.cw-merch-spotlight__slot.is-prev{opacity:.65;pointer-events:auto;transform:translateX(calc(-50% - 66%)) scale(.82);z-index:1}
.cw-merch-spotlight__slot.is-next{opacity:.65;pointer-events:auto;transform:translateX(calc(-50% + 66%)) scale(.82);z-index:1}
.cw-merch-focus-card{display:flex;flex-direction:column;gap:5px;min-width:0;background:#fff;padding:9px 9px 13px;border-radius:11px;text-align:center;text-decoration:none!important;color:#141519!important;box-sizing:border-box;box-shadow:0 10px 25px rgba(13,20,31,.06)}
.cw-merch-focus-card .cw-merch-brand{font-size:12px;margin-top:6px}
.cw-merch-focus-card .cw-merch-item-title{font-size:12px!important}
.cw-merch-focus-card .cw-merch-price .cw-dual-price{align-items:center}
.cw-merch-spotlight__controls{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:4px}
.cw-merch-spotlight__controls button{width:29px;height:29px;border-radius:50%;border:1px solid #d7d9e0;background:white;color:#15161a;font-size:22px;cursor:pointer;line-height:20px}
.cw-merch-spotlight__count{font-size:12px;font-weight:750;color:#60636a;min-width:45px;text-align:center}
@media(max-width:767px){
 .cw-merch-editorial,.cw-merch-spotlight{margin-top:22px;margin-bottom:26px}
 .cw-merch-editorial__hero{border-radius:0;aspect-ratio:1.2/1}
 .cw-merch-editorial__rail{gap:9px}
 .cw-merch-list-card{flex-basis:45%}
 .cw-merch-spotlight__viewport{height:460px}
 .cw-merch-spotlight__slot{width:76%;max-width:370px}
 .cw-merch-spotlight__slot.is-prev{transform:translateX(calc(-50% - 66%)) scale(.80)}
 .cw-merch-spotlight__slot.is-next{transform:translateX(calc(-50% + 66%)) scale(.80)}
}
@media(max-width:360px){.cw-merch-spotlight__viewport{height:415px}.cw-merch-spotlight__slot{width:78%}.cw-merch-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.cw-merch-spotlight__slot{transition:none}}

/* Editorial banner remains visible independent of category product count. */
.cw-merch-editorial__admin-note{background:#fff6df;border:1px solid #f1d79a;padding:12px;border-radius:9px;font-size:12px;line-height:1.5;color:#633e0e}
.cw-merch-editorial__admin-note a{color:#a33218;text-decoration:underline}

/* 3.8.14: Editorial copy belongs in the section heading, never the hero image. */
.cw-merch-editorial__heading{width:100%;box-sizing:border-box;margin-bottom:14px;padding:0}
.cw-merch-editorial__heading>div{flex:1 1 auto;min-width:0}
.cw-merch-editorial__heading h2{overflow-wrap:break-word;word-break:keep-all}
.cw-merch-editorial__heading p{overflow-wrap:break-word;word-break:keep-all}
/* The carousel's viewport height is resized from the tallest actual card;
   tall product names or KRW/USDT prices must not be clipped by fixed CSS. */
.cw-merch-spotlight__slot{box-sizing:border-box}
.cw-merch-focus-card__picture{width:100%;flex:0 0 auto}
.cw-merch-focus-card .cw-merch-item-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.45!important;min-height:2.9em}
.cw-merch-focus-card .cw-merch-price{overflow:visible;min-height:0}
.cw-merch-spotlight__controls{position:relative;z-index:4;padding:9px 0 3px}
@media(max-width:767px){
 .cw-merch-editorial__heading{padding:0 2px;margin-bottom:15px}
 .cw-merch-editorial__heading h2{font-size:clamp(20px,5.4vw,25px)}
 .cw-merch-editorial__heading p{font-size:12px}
 .cw-merch-editorial__heading>a{font-size:11px}
}

/* v3.8.15: intrinsic carousel height, NOT a measured fixed viewport.
   The active product is the sole in-flow child; inactive neighbors remain absolute.
   This keeps KRW/USDT and text fully visible on every viewport, before JS loads too. */
.cw-merch-spotlight__viewport {height:auto!important; min-height:0!important; overflow:hidden!important; padding:14px 0 2px!important;}
.cw-merch-spotlight__track {position:relative!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;height:auto!important;min-height:0!important;width:100%!important;}
.cw-merch-spotlight__slot {position:absolute!important;top:0!important;left:50%!important;width:82%!important;max-width:410px!important;height:auto!important;box-sizing:border-box!important;}
.cw-merch-spotlight__slot.is-active {position:relative!important;left:auto!important;top:auto!important;transform:none!important;opacity:1!important;z-index:3!important;}
.cw-merch-spotlight__slot.is-prev {transform:translateX(calc(-50% - 68%)) scale(.80)!important;}
.cw-merch-spotlight__slot.is-next {transform:translateX(calc(-50% + 68%)) scale(.80)!important;}
.cw-merch-focus-card {height:auto!important;min-height:0!important;overflow:visible!important;}
.cw-merch-focus-card .cw-merch-price, .cw-merch-focus-card .cw-dual-price {display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal!important;}
.cw-merch-focus-card .cw-dual-price > * {max-height:none!important;}
.cw-merch-spotlight__controls {margin-top:8px!important;padding-top:8px!important;}
@media (max-width:767px){.cw-merch-spotlight__slot{width:82%!important;max-width:410px!important;}}
@media (max-width:360px){.cw-merch-spotlight__slot{width:83%!important;}}

/* 3.8.16 hotfix: prevent KRW and USDT overlap inside home spotlight center card */
.cw-merch-focus-card .cw-merch-price{
  display:block!important;
  width:100%!important;
  overflow:visible!important;
}
.cw-merch-focus-card .cw-merch-price .cw-dual-price{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  width:100%!important;
  white-space:normal!important;
}
.cw-merch-focus-card .cw-merch-price .cw-krw-price,
.cw-merch-focus-card .cw-merch-price .cw-usdt-price{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:visible!important;
  line-height:1.15!important;
}
.cw-merch-focus-card .cw-merch-price .cw-krw-price{
  font-size:clamp(16px,4.8vw,19px)!important;
}
.cw-merch-focus-card .cw-merch-price .cw-usdt-price{
  font-size:clamp(12px,4vw,15px)!important;
}
.cw-merch-focus-card .cw-merch-price .cw-usdt-price .cw-usdt-icon{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
}
.cw-merch-focus-card .cw-merch-price .cw-usdt-price em{
  font-size:.82em!important;
}
@media (max-width:390px){
  .cw-merch-focus-card .cw-merch-price .cw-krw-price{font-size:17px!important;}
  .cw-merch-focus-card .cw-merch-price .cw-usdt-price{font-size:13px!important;}
}
