
/* KoreaStore.by — commerce layer */
:root{
  --ks-commerce-bg:#f6f3ef;
  --ks-commerce-card:#fff;
  --ks-commerce-line:#ddd7d1;
  --ks-commerce-text:#211f1d;
  --ks-commerce-muted:#7b746e;
  --ks-commerce-accent:#20201f;
  --ks-commerce-pink:#ee5c8e;
  --ks-commerce-success:#58725d;
}
.ks-commerce-shell{max-width:1240px;margin:0 auto;padding:28px var(--ks-side,24px) 80px}
.ks-commerce-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}
.ks-commerce-head h1{font-family:Georgia,serif;font-size:clamp(38px,5vw,66px);font-weight:400;letter-spacing:-.05em;line-height:.95;margin:0}
.ks-commerce-head p{max-width:520px;margin:8px 0 0;color:var(--ks-commerce-muted);font-size:13px;line-height:1.6}
.ks-commerce-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.ks-commerce-panel{background:var(--ks-commerce-card);border:1px solid var(--ks-commerce-line);border-radius:22px;padding:20px}
.ks-commerce-panel h2{font-family:Georgia,serif;font-size:26px;font-weight:400;margin:0 0 16px;letter-spacing:-.03em}
.ks-commerce-loading{padding:28px;border:1px dashed var(--ks-commerce-line);border-radius:16px;text-align:center;color:var(--ks-commerce-muted)}
.ks-cart-list{display:grid;gap:10px}
.ks-cart-line{display:grid;grid-template-columns:92px minmax(0,1fr) 126px 132px 34px;gap:14px;align-items:center;padding:12px;border:1px solid var(--ks-commerce-line);border-radius:16px;background:#fff}
.ks-cart-line__media{width:92px;height:92px;border-radius:12px;background:#f4f1ee;overflow:hidden;display:grid;place-items:center}
.ks-cart-line__media img{width:100%;height:100%;object-fit:cover}
.ks-cart-line__body{min-width:0}
.ks-cart-line__body>span{display:block;font-size:12px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--ks-commerce-muted);margin-bottom:5px}
.ks-cart-line__body strong{display:block;font-size:13px;line-height:1.35}
.ks-cart-line__body small{display:block;margin-top:6px;color:var(--ks-commerce-muted);font-size:12px}
.ks-cart-line__mobile-price{display:none;margin-top:7px;font-weight:700}
.ks-cart-qty{display:grid;grid-template-columns:34px 48px 34px;align-items:center;border:1px solid var(--ks-commerce-line);border-radius:999px;overflow:hidden;background:#fff}
.ks-cart-qty button{border:0;background:transparent;height:36px;cursor:pointer;font-size:18px}
.ks-cart-qty input{width:100%;height:36px;border:0;text-align:center;background:transparent;font-weight:700;-moz-appearance:textfield}
.ks-cart-qty input::-webkit-outer-spin-button,.ks-cart-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ks-cart-line__price{text-align:right}
.ks-cart-line__price strong{display:block;font-size:14px}
.ks-cart-line__price small{display:block;color:var(--ks-commerce-muted);font-size:12px;margin-top:4px}
.ks-cart-remove{width:34px;height:34px;border:1px solid var(--ks-commerce-line);border-radius:50%;background:#fff;cursor:pointer;font-size:18px;line-height:1;color:#817871}
.ks-cart-remove:hover{background:#f8ecef;border-color:#e6c2cd;color:#9e415d}
.ks-cart-empty{text-align:center;padding:46px 20px;border:1px dashed var(--ks-commerce-line);border-radius:18px}
.ks-cart-empty h2{margin:0 0 8px}
.ks-cart-empty p{margin:0 0 18px;color:var(--ks-commerce-muted)}
.ks-cart-summary{position:sticky;top:112px}
.ks-summary-row{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #eee9e4;font-size:12px}
.ks-summary-row span{color:var(--ks-commerce-muted)}
.ks-summary-row strong{font-size:13px}
.ks-summary-total{display:flex;justify-content:space-between;align-items:baseline;padding:18px 0 14px}
.ks-summary-total span{font-size:12px}
.ks-summary-total strong{font-family:Georgia,serif;font-size:28px;font-weight:400}
.ks-commerce-btn{width:100%;min-height:46px;border-radius:12px;border:1px solid var(--ks-commerce-accent);background:var(--ks-commerce-accent);color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 16px;font-size:12px;font-weight:800;cursor:pointer;text-decoration:none}
.ks-commerce-btn:hover{transform:translateY(-1px)}
.ks-commerce-btn.secondary{background:#fff;color:var(--ks-commerce-text);border-color:var(--ks-commerce-line)}
.ks-commerce-note{font-size:12px;line-height:1.55;color:var(--ks-commerce-muted);margin:12px 0 0}
.ks-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ks-field{display:grid;gap:6px}
.ks-field.full{grid-column:1/-1}
.ks-field label{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#716a64}
.ks-field input,.ks-field select,.ks-field textarea{width:100%;border:1px solid var(--ks-commerce-line);border-radius:11px;background:#fff;color:var(--ks-commerce-text);padding:12px 13px;font-size:13px;min-height:44px}
.ks-field textarea{min-height:94px;resize:vertical}
.ks-field input:focus,.ks-field select:focus,.ks-field textarea:focus{border-color:#9b938b;box-shadow:0 0 0 3px rgba(238,92,142,.07);outline:none}
.ks-radio-list{display:grid;gap:8px}
.ks-radio{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--ks-commerce-line);border-radius:13px;padding:12px 13px;cursor:pointer;background:#fff}
.ks-radio:has(input:checked){border-color:#948b83;box-shadow:0 0 0 2px rgba(31,31,30,.04)}
.ks-radio input{width:16px;height:16px;accent-color:#222}
.ks-radio b{font-size:12px}
.ks-radio small{font-size:12px;color:var(--ks-commerce-muted)}
.ks-radio>em{font-style:normal;font-size:12px;font-weight:700}
.ks-check{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5;color:var(--ks-commerce-muted)}
.ks-check input{margin-top:2px}
.ks-check a{text-decoration:underline;text-underline-offset:2px}
.ks-checkout-status{display:none;border-radius:12px;padding:12px 14px;font-size:12px;line-height:1.5;margin-bottom:12px}
.ks-checkout-status.is-error{display:block;background:#fff0f2;color:#8d2d48;border:1px solid #efcbd5}
.ks-checkout-status.is-success{display:block;background:#edf5ee;color:#446149;border:1px solid #cadfcd}
.ks-checkout-items{display:grid;gap:9px;margin:14px 0}
.ks-checkout-item{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center}
.ks-checkout-item img{width:46px;height:46px;border-radius:8px;background:#f3efeb;object-fit:cover}
.ks-checkout-item b{font-size:12px;display:block}
.ks-checkout-item small{font-size:12px;color:var(--ks-commerce-muted)}
.ks-checkout-item strong{font-size:12px}
.ks-order-hero{background:#fff;border:1px solid var(--ks-commerce-line);border-radius:24px;padding:clamp(24px,5vw,46px);display:grid;gap:20px}
.ks-order-status{display:inline-flex;align-items:center;gap:8px;width:max-content;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:800;background:#f1eee9}
.ks-order-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#b59b55}
.ks-order-status.paid:before,.ks-order-status.done:before{background:#5f8364}
.ks-order-hero h1{font-family:Georgia,serif;font-size:clamp(38px,5vw,64px);font-weight:400;letter-spacing:-.05em;line-height:.95;margin:0}
.ks-order-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ks-order-meta div{background:#f8f6f3;border-radius:12px;padding:13px}
.ks-order-meta span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--ks-commerce-muted);margin-bottom:5px}
.ks-order-meta strong{font-size:12px}
.ks-product-live{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.86fr);gap:18px;align-items:start}
.ks-product-live__media{background:#f2efeb;border-radius:24px;min-height:560px;display:grid;place-items:center;overflow:hidden}
.ks-product-live__media img{width:100%;height:100%;object-fit:cover}
.ks-product-live__detail{background:#fff;border:1px solid var(--ks-commerce-line);border-radius:24px;padding:28px;position:sticky;top:112px}
.ks-product-live__brand{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ks-commerce-muted)}
.ks-product-live__detail h1{font-family:Georgia,serif;font-size:clamp(34px,4vw,52px);font-weight:400;letter-spacing:-.045em;line-height:.98;margin:10px 0 14px}
.ks-product-live__price{display:flex;gap:10px;align-items:baseline;margin-bottom:14px}
.ks-product-live__price strong{font-size:23px}
.ks-product-live__price del{font-size:12px;color:#9e958d}
.ks-product-live__stock{font-size:12px;font-weight:700;color:var(--ks-commerce-success);margin-bottom:18px}
.ks-product-live__stock.is-out{color:#9d3e55}
.ks-product-live__desc{font-size:12px;line-height:1.65;color:var(--ks-commerce-muted);margin-bottom:18px}
.ks-product-live__meta{display:grid;gap:0;border-top:1px solid var(--ks-commerce-line);border-bottom:1px solid var(--ks-commerce-line);margin:18px 0}
.ks-product-live__meta div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #eee9e4;font-size:12px}
.ks-product-live__meta div:last-child{border-bottom:0}
.ks-product-live__meta span{color:var(--ks-commerce-muted)}
.ks-product-actions{display:grid;grid-template-columns:1fr 48px;gap:8px}
.ks-product-actions .ks2-heart{position:static;width:48px;height:48px;border:1px solid var(--ks-commerce-line)}

@media(max-width:920px){
  .ks-commerce-grid{grid-template-columns:1fr}
  .ks-cart-summary,.ks-product-live__detail{position:static}
  .ks-product-live{grid-template-columns:1fr}
  .ks-product-live__media{min-height:440px}
}
@media(max-width:700px){
  .ks-commerce-shell{padding:18px 10px 96px}
  .ks-commerce-head{display:block;margin-bottom:16px}
  .ks-commerce-panel{padding:14px;border-radius:17px}
  .ks-cart-line{grid-template-columns:74px minmax(0,1fr) 32px;grid-template-areas:"media body remove" "qty qty price";gap:10px;padding:10px}
  .ks-cart-line__media{grid-area:media;width:74px;height:74px}
  .ks-cart-line__body{grid-area:body}
  .ks-cart-line__mobile-price{display:block;font-size:12px}
  .ks-cart-qty{grid-area:qty;width:116px}
  .ks-cart-line__price{grid-area:price;align-self:center}
  .ks-cart-line__price small{display:none}
  .ks-cart-remove{grid-area:remove;width:30px;height:30px}
  .ks-form-grid{grid-template-columns:1fr}
  .ks-field.full{grid-column:auto}
  .ks-order-meta{grid-template-columns:1fr 1fr}
  .ks-product-live__media{min-height:350px;border-radius:18px}
  .ks-product-live__detail{padding:20px;border-radius:18px}
}
@media(max-width:420px){
  .ks-order-meta{grid-template-columns:1fr}
  .ks-radio{grid-template-columns:20px minmax(0,1fr)}
  .ks-radio>em{grid-column:2}
}

.ks-radio.is-disabled{opacity:.52;cursor:not-allowed;background:#f7f5f2}
.ks-radio.is-disabled input{cursor:not-allowed}
.ks-account-loading{font-size:12px;color:var(--ks-commerce-muted)}
.ks-account-auth{max-width:620px;margin:0 auto}
.ks-account-auth__tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#ece8e3;border-radius:14px;margin-bottom:10px}
.ks-account-auth__tabs button{min-height:40px;border:0;border-radius:10px;background:transparent;color:#746d67;font-size:12px;font-weight:800;cursor:pointer}
.ks-account-auth__tabs button.active{background:#fff;color:#222;box-shadow:0 2px 10px rgba(33,31,29,.06)}
.ks-account-form[hidden]{display:none!important}
.ks-account-form h2{font-family:Georgia,serif;font-size:28px;font-weight:400;margin:0 0 16px}
.ks-account-form .ks-field small{font-size:12px;color:var(--ks-commerce-muted)}
.ks-account-profile{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.ks-account-profile h2{font-family:Georgia,serif;font-size:30px;font-weight:400;margin:5px 0}
.ks-account-profile p{margin:0;color:var(--ks-commerce-muted);font-size:12px}
.ks-account-profile .ks-commerce-btn{width:auto;min-width:110px}
.ks-account-orders__head{align-items:center}
.ks-account-orders__head h2{font-family:Georgia,serif;font-size:32px;font-weight:400;margin:0}
.ks-account-orders__head .ks-commerce-btn{width:auto;min-width:120px}
.ks-account-order-list{display:grid;gap:10px}
.ks-account-order{padding:16px}
.ks-account-order header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.ks-account-order header span{display:block;font-size:12px;color:var(--ks-commerce-muted)}
.ks-account-order h3{font-size:12px;margin:3px 0 0}
.ks-account-order header>strong{font-size:13px;white-space:nowrap}
.ks-account-order__status,.ks-account-order__items{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}
.ks-account-order__status span{padding:5px 7px;border-radius:999px;background:#f1eee9;font-size:12px;font-weight:700}
.ks-account-order__items{padding-top:10px;border-top:1px solid #eee9e4}
.ks-account-order__items span{font-size:12px;color:var(--ks-commerce-muted)}
.ks-account-empty{text-align:center;padding:36px}
.ks-account-empty p{color:var(--ks-commerce-muted);font-size:12px}
.ks-account-empty .ks-commerce-btn{max-width:240px;margin:16px auto 0}
.ks-payment-action{display:grid;gap:8px;padding:14px;border:1px solid #e6dbbf;background:#fffaf0;border-radius:13px}
.ks-payment-action p{margin:0;font-size:12px;line-height:1.5;color:#746843}
.ks-payment-action .ks-commerce-btn{max-width:260px}
@media(max-width:700px){
 .ks-account-profile{display:grid}
 .ks-account-profile .ks-commerce-btn{width:100%}
 .ks-account-orders__head .ks-commerce-btn{width:100%;margin-top:10px}
}
