*{box-sizing:border-box}body{margin:0;background:#faf8f5;color:#34262e;font:16px -apple-system,BlinkMacSystemFont,Arial,sans-serif}header,main{max-width:960px;margin:auto;padding:16px}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfd5d5}header strong,h1,h2{font-family:Georgia,serif}header strong{font-size:21px}h1{font-size:35px;margin:8px 0 16px}button,select,input{color:inherit;font:inherit;padding:10px;border:1px solid #d7cbd0;border-radius:10px;background:white}button{cursor:pointer}section{display:flex;gap:8px;flex-wrap:wrap}input,select{flex:1;min-width:145px;max-width:100%}#count,small{color:#655860}#grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(145px,45%),1fr));gap:12px}.tile{display:flex;flex-direction:column;gap:8px;text-align:left;padding:8px;height:100%}.tile span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tile b{margin-top:auto}.tile img{width:100%;aspect-ratio:1;object-fit:contain}#more{margin:18px auto}dialog{width:min(94vw,490px);max-height:88vh;border:0;border-radius:16px;padding:16px;color:inherit}dialog::backdrop{background:#30232c88}#close{float:right}article{clear:both;padding-top:10px}.gallery{display:flex;overflow:auto;scroll-snap-type:x mandatory;gap:8px}.gallery img{width:90%;height:240px;object-fit:contain;flex:none;scroll-snap-align:center}.buy,#basket{background:#6d3755;color:white}.row{padding:12px 0;border-bottom:1px solid #ddd}.row button{margin:5px}#more:not([hidden]){display:block}


/* Korea Lux product gallery */
#panel article .kl-gallery{width:100%;margin:0 0 12px}
#panel article .kl-stage{position:relative;width:100%;height:min(380px,75vw);background:#fff;border-radius:12px;overflow:hidden;touch-action:pan-y}
#panel article .kl-stage img{display:block;width:100%;height:100%;object-fit:contain;cursor:zoom-in}
#panel .kl-prev,#panel .kl-next{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;padding:0;border:1px solid #ddd;border-radius:50%;background:#fffffff0;color:#34262e;font-size:28px;line-height:1;z-index:2}
#panel .kl-prev{left:8px}
#panel .kl-next{right:8px}
#panel .kl-counter{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);background:#34262ecc;color:white;padding:4px 12px;border-radius:20px;font-size:13px;pointer-events:none}
dialog.kl-photo-zoom{width:96vw;max-width:1000px;max-height:96vh;background:white;padding:10px}
dialog.kl-photo-zoom img{display:block;width:100%;height:80vh;object-fit:contain}
dialog.kl-photo-zoom button{display:block;margin-left:auto;margin-bottom:8px}


/* Korea Lux shopping cart */
.kl-cart-items{display:flex;flex-direction:column;gap:12px}
.kl-cart-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:14px;padding:12px 0;border-bottom:1px solid #e7dfe2}
.kl-cart-row>img{width:90px;height:110px;object-fit:contain;border-radius:10px;background:#fff}
.kl-cart-info{display:flex;flex-direction:column;gap:7px}
.kl-cart-info>strong{font-size:15px;line-height:1.4}
.kl-cart-controls{display:flex;align-items:center;gap:14px}
.kl-cart-controls button{width:36px;height:36px;padding:0;font-size:20px;border-radius:10px}
.kl-line-total{font-size:17px}
.kl-cart-summary{display:flex;flex-direction:column;gap:6px;background:#f5eff2;border-radius:14px;padding:18px;margin:18px 0}
.kl-cart-summary>strong{font-size:28px;color:#34262e}
.kl-cart-continue{width:100%;margin-top:12px;padding:14px}
.kl-cart-empty{text-align:center;padding:30px 10px;color:#655860}


/* Korea Lux checkout */
.kl-checkout{display:flex;flex-direction:column;gap:12px}
.kl-checkout h3{font-size:19px;margin:16px 0 2px}
.kl-field{display:flex;flex-direction:column;gap:6px}
.kl-field span{font-size:14px;font-weight:600}
.kl-field input,.kl-checkout textarea{width:100%;padding:13px;border:1px solid #d7cbd0;border-radius:10px;font:inherit;background:white;color:inherit}
.kl-delivery{display:flex;flex-direction:column;gap:9px}
.kl-delivery label{display:flex;align-items:center;gap:12px;border:1px solid #d7cbd0;border-radius:12px;padding:15px;background:#fff;cursor:pointer}
.kl-delivery input{min-width:0;flex:none;accent-color:#6d3755}
.kl-delivery label:has(input:checked){background:#f5eff2;border-color:#6d3755}
.kl-checkout-next{width:100%;padding:16px;font-weight:600;font-size:16px;margin-top:10px}
.kl-checkout-status{font-size:14px;color:#655860}
.kl-checkout-status:empty{display:none}


/* Free delivery */
.kl-free-delivery{padding:14px;margin:12px 0;border-radius:12px;background:#f5eff2;font-size:14px}
.kl-delivery-track{height:7px;background:#ded3da;border-radius:10px;margin-top:12px;overflow:hidden}
.kl-delivery-fill{height:100%;background:#6d3755;border-radius:10px;transition:width .2s}
.kl-delivery-complete{background:#edf5ee;color:#28633b}
.kl-delivery-complete .kl-delivery-fill{background:#39824e}


/* Simplified delivery */
.kl-checkout [hidden] {
    display: none !important;
}

.kl-delivery-smart,
.kl-smart-rates,
.kl-smart-points {
    display: grid;
    gap: 12px;
}

.kl-smart-rate {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    text-align: left;
    width: 100%;
    padding: 14px;
    border: 1px solid #d8cbd3;
    border-radius: 12px;
    color: #382932;
    background: white;
    cursor: pointer;
}

.kl-smart-rate.selected {
    border-color: #693650;
    background: #f3edf1;
}

.kl-smart-rate small {
    grid-column: 1 / -1;
}

.kl-city-choices select,
.kl-smart-points input,
.kl-smart-points select {
    width: 100%;
    min-height: 46px;
}

.kl-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.kl-consent input {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    margin: 0;
    accent-color: #693650;
}

/* Korea Lux storefront v1 */

#storefront [hidden] {
  display:none !important;
}

#storefront {
  max-width:1100px;
}

#storefront #query {
  width:100%;
  min-height:48px;
  padding:12px 16px;
  background:#fff;
  border-radius:14px;
}

#store-banners {
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  margin:16px 0 24px;
  scrollbar-width:thin;
}

.store-banner {
  flex:0 0 90%;
  min-height:160px;
  border-radius:20px;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:9px;
  background:linear-gradient(120deg,#ecdcd8,#f5ebe3);
  color:#593045;
  scroll-snap-align:start;
}

.store-banner:nth-child(2n) {
  background:linear-gradient(120deg,#dfe9df,#eef3e9);
  color:#355444;
}

.store-banner strong {
  font:700 clamp(24px,6vw,34px)/1.13 Georgia,serif;
}

.store-banner b {
  font-size:26px;
}

.store-banner small {
  font-size:10px;
  letter-spacing:2px;
}

.store-banner button {
  font-size:13px;
  padding:8px 12px;
}

#store-title {
  font-size:27px;
  margin:18px 0 12px;
}

#store-categories {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.store-category {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  background:white;
  border:1px solid #e8dfe3;
  border-radius:14px;
  gap:8px;
  padding:7px;
  min-width:0;
}

.store-category img {
  width:100%;
  aspect-ratio:1.2;
  object-fit:contain;
  border-radius:9px;
}

.store-category strong {
  font-size:12px;
  font-weight:600;
  line-height:1.3;
  min-height:32px;
  text-align:center;
}

#store-extra,
#store-sections,
#store-leaves {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

#store-sections:not(:empty),
#store-leaves:not(:empty),
#store-extra:not(:empty) {
  margin:12px 0;
}

.store-chip {
  font-size:13px;
  padding:9px 12px;
  border-radius:20px;
}

.store-chip[aria-pressed=true] {
  color:white;
  background:#693650;
  border-color:#693650;
}

#store-back {
  margin-top:15px;
}

#store-products-title {
  font-size:25px;
  margin:25px 0 12px;
}

#store-toolbar {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
}

#store-toolbar select {
  min-width:0;
  width:100%;
  font-size:14px;
}

#store-filters {
  background:#f3ebef;
  padding:14px;
  margin:12px 0;
  border-radius:14px;
}

.store-price {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.store-price label,
.store-facet {
  display:grid;
  gap:6px;
  font-size:13px;
  min-width:0;
}

.store-price input,
.store-facet select {
  min-width:0;
  width:100%;
}

#store-facets {
  display:grid;
  gap:12px;
  margin:15px 0;
}

#storefront #grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

#storefront .tile {
  border-color:#e6dce1;
  border-radius:14px;
  padding:10px;
}

#storefront .tile b {
  font-size:19px;
  color:#693650;
}

#storefront .tile span {
  font-size:13px;
  line-height:1.4;
}

#storefront .tile small {
  font-size:11px;
  font-weight:600;
}

@media(min-width:720px) {

  #store-categories {
    grid-template-columns:repeat(6,minmax(0,1fr));
  }

  #storefront #grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .store-banner {
    flex-basis:60%;
  }

  .store-category strong {
    font-size:14px;
  }

  #store-facets {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* Premium category gallery */

.store-category {
    overflow:hidden;
    padding:0;
    gap:0;
    background:#fff;
    border-radius:14px;
}

.store-category img {
    display:block;
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:0;
}

.store-category strong {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px 5px;
    min-height:44px;
    width:100%;
    line-height:1.25;
}

.store-category:hover {
    border-color:#98677c;
}


.kl-header-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.kl-header-actions button {
  white-space:nowrap;
}

.kl-orders-demo {
  color:#98737f;
  display:block;
  margin-bottom:16px;
}

.kl-order-card {
  background:#fff;
  border:1px solid #e6dadd;
  border-radius:16px;
  padding:15px;
  margin:14px 0;
  overflow-wrap:anywhere;
}

.kl-order-heading {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:6px;
}

.kl-order-paid,
.kl-order-pending {
  font-size:12px;
  border-radius:20px;
  padding:5px 9px;
}

.kl-order-paid {
  background:#e7f2eb;
  color:#326849;
}

.kl-order-pending {
  background:#f7ecd9;
  color:#89602e;
}

.kl-order-item {
  display:grid;
  gap:5px;
  padding:12px 0;
  border-bottom:1px solid #eee5e7;
}

.kl-order-totals {
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  padding:14px 0;
}

.kl-order-totals strong {
  text-align:right;
}

.kl-order-note {
  font-size:13px;
  color:#84616d;
}

@media(max-width:480px) {
  header {
    flex-wrap:wrap;
    gap:10px;
  }
}


.kl-managed-banner{
  display:block;
  width:100%;
  max-height:240px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:10px;
}
