/* Korea Store card stage 14 — shared visual and interaction polish.
   Keeps existing page identities, improves accessibility and compact mobile layout. */
body .ks2-product[data-product-card],
body .ksb-card[data-product-card],
body .kss-card[data-product-card],
body .ksp-rec-card[data-product-card]{min-width:0}
body .ks2-product-body,
body .ksb-body,
body .kss-body,
body .ksp-rec-body{min-width:0}
body .ks2-product-body h3,
body .ksb-body h3,
body .kss-body h3,
body .ksp-rec-body h3{overflow-wrap:anywhere;text-wrap:pretty}
body .ks2-product-body h3 a,
body .ksb-body h3 a,
body .kss-body h3 a,
body .ksp-rec-body h3 a{color:inherit}
body .ksc-card-meta,
body .ksb-body>span,
body .kss-brand,
body .ksp-rec-meta{min-width:0}
body .ks2-product .ks2-price,
body .ksb-card .ksb-price,
body .kss-card .kss-price,
body .ksp-rec-card .ksp-rec-price{min-width:0;overflow-wrap:anywhere}
body [data-product-card] .ks-price-unavailable{color:#685d58;font-size:13px;font-weight:700;line-height:1.35}
body [data-product-card] [data-card-old-price][hidden]{display:none!important}
body [data-product-card] [data-card-image]{display:block;object-fit:contain}
body [data-product-card] [data-card-image].ks-photo-fallback{filter:none!important;opacity:.82}
body [data-product-card] .ks-card-stock-out{color:#934858}
body [data-product-card] .ks-card-stock-low{color:#88602e}
body [data-product-card] [data-add-cart]:disabled{opacity:.53;cursor:not-allowed;box-shadow:none}
body [data-product-card] a:focus-visible,
body [data-product-card] button:focus-visible,
body [data-quick-dialog] button:focus-visible{outline:3px solid #857364;outline-offset:3px}
body .ks2-product-media img,
body .ksb-media img,
body .kss-media img,
body .ksp-rec-media img{object-fit:contain}
body .ksp-rec-card .ksp-rec-stock{font-size:12px;line-height:1.4}
body .ksp-detail .ksp-variant[hidden]{display:none!important}
body .ksp-detail .ksp-stock{font-size:13px}
body .ksc-quickview__media>img{object-fit:contain}
@media(max-width:767px){
  body .ks2-product-body h3,
  body .ksb-body h3,
  body .kss-body h3,
  body .ksp-rec-body h3{font-size:13px;line-height:1.38}
  body .ks2-product .ks2-price strong,
  body .ksb-card .ksb-price strong,
  body .kss-card .kss-price strong,
  body .ksp-rec-card .ksp-rec-price strong{font-size:15px}
  body [data-product-card] .ks-price-unavailable{font-size:12px}
  body .ksc-grid .ks2-cart,
  body .ksb-card .ksb-cart,
  body .kss-card .kss-cart,
  body .ksp-rec-card .ksp-rec-cart{min-height:40px}
  body .ksc-grid .ksc-card-details{min-width:40px;min-height:40px}
  body .ksc-quickview__cart,
  body .ksp-add,
  body .ksp-buy{min-height:48px}
}
@media(prefers-reduced-motion:reduce){
  body [data-product-card] img,
  body [data-product-card] button{transition:none!important}
}

/* Search, favorites and product suggestions use the same compact details. */
body .kss-card{position:relative}
body .kss-card-badges{
  position:absolute;z-index:3;left:9px;top:9px;
  display:flex;gap:4px;flex-wrap:wrap;max-width:65%;
  pointer-events:none;
}
body .kss-card-badges span{
  display:inline-flex;align-items:center;min-height:23px;
  padding:2px 8px;background:rgba(255,255,255,.94);
  color:#302b27;border:1px solid rgba(63,51,43,.1);
  border-radius:5px;font-size:11px;line-height:1.2;font-weight:800;
}
body .kss-card-badges .is-sale{background:#312a26;color:#fff}
body .kss-card .kss-card-stock{
  display:block;line-height:1.4;font-size:12px;
  margin-top:7px;color:#527d62;
}
body .kss-card .kss-card-stock.ks-card-stock-out{color:#965465}
body .kss-card .kss-card-stock.ks-card-stock-low{color:#896235}
body .ksfp-card[data-product-card]{min-width:0}
body .ksfp-card__body h2{overflow-wrap:anywhere}
body .ksfp-card__price{min-width:0}
body .ksfp-card__price .ks-price-unavailable{font-size:13px}
body .ksfp-card__actions button:disabled{opacity:.52;cursor:not-allowed}
body .ksfp-card [data-card-image]{object-fit:contain}
body .ksp-price-row>.ks-price-unavailable{font-size:19px;line-height:1.35}
body .ksb-card .ksb-cart:disabled,
body .ksp-rec-card .ksp-rec-cart:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:767px){
 body .kss-card-badges{top:7px;left:7px}
 body .kss-card-badges span{min-height:21px;padding:2px 6px;font-size:10px}
 body .ksfp-card__price .ks-price-unavailable{font-size:12px}
}
