/* Kisun shop — browsing, glass, and reviews.
   Pink steps back to being an accent: plum and ink carry the weight, and the
   translucent panels let the photography through. */

:root {
  --ks-glass: rgba(255, 255, 255, .72);
  --ks-glass-strong: rgba(255, 255, 255, .88);
  --ks-glass-line: rgba(255, 255, 255, .5);
  --ks-ink: #222120;
  --ks-plum: #252422;
  --ks-accent: #393632;
  --ks-shadow: 0 18px 44px rgba(38, 36, 33, .16);
  --ks-shadow-lift: 0 26px 64px rgba(38, 36, 33, .24);
}

.ks-locked, .ks-locked body { overflow: hidden; }

/* ---------- the header, turning to glass on the way down ---------- */
.kd #store > .nav {
  position: sticky; top: 0; z-index: 60;
  transition: height .22s ease, background .22s ease, box-shadow .22s ease, backdrop-filter .22s ease;
}
.ks-scrolled .kd #store > .nav {
  height: 64px;
  background: var(--ks-glass) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 30px rgba(38, 36, 33, .1);
  border-bottom-color: transparent;
}
.ks-scrolled .kd #store .logo { height: 30px; transition: height .22s ease; }
/* On a phone the header is three rows tall — logo, the pages, the search box.
   Sticking that plus the category rail plus the sort bar would eat a third of
   the screen and leave the products peeping out underneath. So on a phone the
   header scrolls away and only the rail and the sort bar follow you down; the
   bottom bar is what stays in reach. */
@media (max-width: 760px) {
  /* The phone header, rebuilt.

     It was four rows — logo with the currency and the basket, then "Sign in"
     alone on a line of its own, then Home / Shop / Track order, then the
     search box and the language picker. 269px on an 844px screen: a third of
     the phone gone before a single product. The measured guidance for a
     commerce header is to keep it under a fifth to a quarter of the screen.

     The pages and the account are already in the dock at the bottom of the
     screen, where a thumb reaches them, so they come out of the header
     altogether rather than being repeated in it. What is left is what a phone
     header is actually for: who this is, what you are looking for, and what is
     in your basket. */
  .kd #store > .nav {
    position: sticky !important; top: 0;
    height: auto; min-height: 0;
    padding: 9px 14px 10px; gap: 8px 10px;
    flex-wrap: wrap; align-items: center;
    transition: transform .26s ease, background .22s ease;
  }
  .ks-scrolled .kd #store > .nav { height: auto; }
  .kd #store > .nav .shopNav,
  .kd #store > .nav .ke-account-button { display: none !important; }
  .kd #store > .nav .logo { order: 1; height: 28px; flex: 0 0 auto; }
  .kd #store > .nav .kd-search {
    order: 2; flex: 1 1 0%; min-width: 0; max-width: none; flex-basis: 0%; margin: 0;
  }
  .kd #store > .nav .kd-cart { order: 3; flex: 0 0 auto; }
  .kd #store > .nav .kl-pick { order: 4; flex: 0 0 auto; margin: 0; }
  .kd #store > .nav .select { order: 5; flex: 0 0 auto; margin-left: auto; }
  .kd #store > .nav .grow { display: none; }
  /* out of the way going down the page, back the moment you move up */
  .kd #store > .nav.ks-hide { transform: translateY(-101%); }
}

/* Between a phone and a desktop the header had wrapped onto two rows, which
   is the same imbalance in a smaller dose. There is room for one row here —
   it just needs smaller gaps and a search box willing to shrink. */
@media (min-width: 761px) and (max-width: 1180px) {
  .kd #store > .nav { flex-wrap: nowrap; gap: 10px; padding: 0 18px; min-height: 64px; }
  .kd #store > .nav .kd-search { flex: 1 1 0%; min-width: 0; max-width: none; }
  .kd #store > .nav .shopNav { flex: 0 0 auto; }
  .kd #store > .nav .shopNav button { padding: 0 9px; font-size: 14px; }
  .kd #store > .nav .grow { display: none; }
  .kd #store > .nav .kl-pick select { max-width: 92px; }
}

/* ---------- the category rail ---------- */
.ks-rail-wrap {
  position: sticky; top: var(--ks-head, 64px); z-index: 40;
  margin: 0 -4px 14px; padding: 10px 4px;
  background: var(--ks-glass); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 18px;
}
/* one row that slides sideways — the shop's own rule wraps it into three rows
   on a phone, which pushes the products off the screen */
.ks-rail {
  display: flex !important; flex-wrap: nowrap !important; gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 2px; scrollbar-width: none;
  /* a row that does not wrap is wider than the screen, so it has to be told
     it may be narrower than its contents — without this it pushes the whole
     page wide, and a phone browser answers by zooming the shop out */
  min-width: 0; max-width: 100%;
}
.ks-rail-wrap { min-width: 0; max-width: 100%; overflow: hidden; }
.ks-rail::-webkit-scrollbar { display: none; }
.ks-rail > * { scroll-snap-align: start; flex: 0 0 auto; }
@media (max-width: 760px) { .ks-rail-wrap { top: 0; border-radius: 0; margin-inline: -14px; padding-inline: 14px; } }

/* ---------- sort and filter ---------- */
.ks-toolbar {
  position: sticky; top: calc(var(--ks-head, 64px) + var(--ks-rail, 0px) + 8px); z-index: 35;
  margin: 0 0 18px; padding: 12px 14px;
  background: var(--ks-glass-strong); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--ks-glass-line); border-radius: 16px;
  box-shadow: 0 8px 26px rgba(38, 36, 33, .08);
}
.ks-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ks-count { flex: 1; min-width: 120px; color: var(--kd-muted, #737270); font: 600 14.5px var(--kd-sans, system-ui, sans-serif); }
.ks-toolbar-tools { display: flex; align-items: center; gap: 10px; }
.ks-select { display: flex; align-items: center; gap: 8px; color: var(--kd-muted, #737270); font: 600 13.5px var(--kd-sans, system-ui, sans-serif); }
.ks-select select {
  min-height: 42px; padding: 0 12px; border: 1px solid var(--kd-line, #e2e1e0); border-radius: 999px;
  background: #fff; color: var(--ks-ink); font: 600 14px var(--kd-sans, system-ui, sans-serif);
}
.ks-filter-btn {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  min-height: 42px; padding: 0 16px;
  border: 1px solid var(--kd-line, #e2e1e0); border-radius: 999px; background: #fff;
  color: var(--ks-ink); font: 600 14px var(--kd-sans, system-ui, sans-serif); cursor: pointer;
}
.ks-filter-btn:hover { border-color: var(--ks-accent); }
.ks-filter-btn i {
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--ks-accent); color: #fff;
  font: 700 12px var(--kd-sans, system-ui, sans-serif); font-style: normal;
}
.ks-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ks-chips[hidden] { display: none; }
.ks-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 12px;
  border: 0; border-radius: 999px; background: var(--ks-plum); color: #fff;
  font: 600 13px var(--kd-sans, system-ui, sans-serif); cursor: pointer;
}
.ks-chip:hover { background: var(--ks-accent); }

/* ---------- the filter sheet ---------- */
.ks-sheet, .ks-modal, .ks-drawer {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(26, 25, 23, .55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ks-sheet[hidden], .ks-modal[hidden], .ks-drawer[hidden] { display: none; }
.ks-sheet-card {
  width: min(420px, 100%); max-height: min(80vh, 640px); display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; box-shadow: var(--ks-shadow-lift); overflow: hidden;
}
.ks-sheet-card header, .ks-drawer-panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--kd-line, #e2e1e0);
}
.ks-sheet-card h2, .ks-drawer-panel h2 { margin: 0; font: 700 19px var(--kd-sans, system-ui, sans-serif); color: var(--ks-ink); }
.ks-sheet-close, .ks-drawer-close, .ks-modal-close {
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--kd-bg, #f9f9f8); color: var(--ks-ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.ks-sheet-close:hover, .ks-drawer-close:hover, .ks-modal-close:hover { background: var(--ks-accent); color: #fff; }
.ks-sheet-body { padding: 8px 20px 20px; overflow-y: auto; }
.ks-sheet-body fieldset { border: 0; padding: 14px 0 0; margin: 0; }
.ks-sheet-body legend { padding: 0; color: var(--ks-ink); font: 700 15px var(--kd-sans, system-ui, sans-serif); }
.ks-range { display: block; margin-top: 10px; color: var(--kd-muted, #737270); font: 600 14px var(--kd-sans, system-ui, sans-serif); }
.ks-range output { color: var(--ks-accent); }
.ks-range input { width: 100%; margin-top: 8px; accent-color: var(--ks-accent); }
.ks-check { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ks-ink); font: 500 15px var(--kd-sans, system-ui, sans-serif); }
.ks-check input { width: 20px; height: 20px; accent-color: var(--ks-accent); }
.ks-sheet-card footer { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--kd-line, #e2e1e0); }
.ks-ghost, .ks-solid {
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font: 600 15px var(--kd-sans, system-ui, sans-serif); cursor: pointer;
}
.ks-ghost { border: 1.5px solid var(--kd-line, #e2e1e0); background: #fff; color: var(--ks-ink); }
.ks-ghost:hover { border-color: var(--ks-accent); }
.ks-solid { flex: 1; border: 0; background: var(--ks-plum); color: #fff; }
.ks-solid:hover { background: var(--ks-accent); }
.ks-wide { width: 100%; }

/* ---------- stars ---------- */
.ks-stars { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.ks-stars-none { color: var(--kd-muted, #737270); font: 500 12.5px var(--kd-sans, system-ui, sans-serif); }
.ks-star-row { display: inline-flex; gap: 1px; }
.ks-star-slot { position: relative; display: inline-block; width: 1em; height: 1em; overflow: hidden; }
.ks-star { position: absolute; inset: 0; width: 100%; height: 100%; }
.ks-star-slot .ks-star:first-child { color: #dbdbda; }
.ks-star-slot .ks-star:last-child { color: #e8a33c; clip-path: inset(0 100% 0 0); }
.ks-full .ks-star:last-child { clip-path: inset(0 0 0 0); }
.ks-half .ks-star:last-child { clip-path: inset(0 50% 0 0); }
.ks-star path { fill: currentColor; }
.ks-stars-sm { font-size: 14px; }
.ks-stars-md { font-size: 19px; }
.ks-score-num { color: var(--ks-ink); font: 700 13.5px var(--kd-sans, system-ui, sans-serif); }
.ks-score-count { color: var(--kd-muted, #737270); font: 500 12.5px var(--kd-sans, system-ui, sans-serif); }
.ks-card-stars { display: block; margin: 6px 0; letter-spacing: normal; }

/* ---------- quick look ---------- */
.ks-pic { position: relative; }
.ks-quick {
  position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--ks-glass-strong); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ks-ink); font: 600 13.5px var(--kd-sans, system-ui, sans-serif);
  box-shadow: 0 8px 20px rgba(38, 36, 33, .2);
  opacity: 0; pointer-events: none; cursor: pointer;
  transition: opacity .18s ease, transform .18s cubic-bezier(.22,.68,.3,1);
}
.card:hover .ks-quick, .card:focus-within .ks-quick { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
/* On a touch screen there is no hovering, so the button would sit on the
   picture permanently. On a phone the tap already opens the product, so the
   button is left off; on a tablet there is room for it to stay showing. */
@media (hover: none) and (min-width: 761px) { .ks-quick { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } }
@media (max-width: 760px) { .ks-quick { display: none !important; } }

.ks-modal-card {
  position: relative; width: min(940px, 100%); max-height: min(88vh, 720px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--ks-shadow-lift);
  animation: ksPop .24s cubic-bezier(.22,.68,.3,1);
}
@keyframes ksPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ks-modal-close { position: absolute; right: 14px; top: 14px; z-index: 2; background: var(--ks-glass-strong); }
.ks-modal-body { display: contents; }
.ks-quick-art { position: relative; background: var(--kd-bg, #f9f9f8); display: flex; flex-direction: column; }
.ks-quick-art > img { width: 100%; flex: 1; min-height: 0; object-fit: cover; }
.ks-quick-blank { flex: 1; background: linear-gradient(135deg, #f1f1f0, #e4ebf5); }
.ks-thumbs { display: flex; gap: 8px; padding: 10px; background: rgba(255, 255, 255, .7); }
.ks-thumb { width: 54px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.ks-thumb.is-on { border-color: var(--ks-accent); }
.ks-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ks-quick-facts { padding: 34px 32px; overflow-y: auto; }
.ks-quick-cat { margin: 0; color: var(--ks-accent); font: 700 12px var(--kd-sans, system-ui, sans-serif); text-transform: uppercase; letter-spacing: .12em; }
.ks-quick-facts h2 { margin: 10px 0 12px; font: 400 clamp(24px, 3vw, 32px) var(--kd-serif, Georgia, serif); color: var(--ks-ink); }
.ks-quick-price { margin: 14px 0 0; font: 700 26px var(--kd-sans, system-ui, sans-serif); color: var(--ks-ink); }
.ks-quick-about { margin: 12px 0 0; color: var(--kd-muted, #737270); font: 500 15px/1.6 var(--kd-sans, system-ui, sans-serif); }
.ks-quick-actions { margin-top: 22px; }
.ks-quick-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--kd-muted, #737270); font: 500 13.5px var(--kd-sans, system-ui, sans-serif); }

/* ---------- the basket drawer ---------- */
.ks-drawer { justify-content: flex-end; padding: 0; }
.ks-drawer-panel {
  width: min(460px, 100%); height: 100%; display: flex; flex-direction: column;
  background: #fff; box-shadow: var(--ks-shadow-lift);
  animation: ksSlide .26s cubic-bezier(.22,.68,.3,1);
}
@keyframes ksSlide { from { transform: translateX(100%); } to { transform: none; } }
.ks-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.ks-drawer-body .page { display: block !important; }
.ks-drawer-body .breadcrumbs, .ks-drawer-body .sectionHead { display: none; }
/* The basket was laid out for a full-width page: two columns with the summary
   stuck to the side. In a 460px drawer it has to become one column, and the
   summary has to stop sticking or it floats over the items. */
.kd .ks-drawer-body #cartPage.ks-in-drawer,
.kd .ks-drawer-body #cartPage.ks-in-drawer:has(.summaryBox) { display: block !important; }
.ks-drawer-body #cartPage.ks-in-drawer .summaryBox {
  position: static !important; top: auto !important; margin: 16px 0 0 !important; max-width: none !important; padding: 18px;
}
.ks-drawer-body #cartPage.ks-in-drawer .cartItem { grid-template-columns: 64px minmax(0, 1fr) !important; gap: 12px; padding: 12px; }
.ks-drawer-body #cartPage.ks-in-drawer .cartItem > div:last-child { grid-column: 2; text-align: left; }
.ks-drawer-body #cartPage.ks-in-drawer .mini { width: 64px !important; height: 64px !important; }
.ks-drawer-body #cartPage.ks-in-drawer .box { margin: 0; }

/* ---------- reviews ---------- */
.ks-reviews { grid-column: 1 / -1; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--kd-line, #e2e1e0); }
.ks-reviews-head h2 { margin: 0; font: 400 clamp(24px, 3vw, 32px) var(--kd-serif, Georgia, serif); color: var(--ks-ink); }
.ks-quiet { margin: 6px 0 0; color: var(--kd-muted, #737270); font: 500 14.5px/1.6 var(--kd-sans, system-ui, sans-serif); }
.ks-reviews-top { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 26px; margin: 22px 0 26px; align-items: center; }
.ks-score { text-align: center; padding: 20px; background: var(--kd-bg, #f9f9f8); border-radius: 20px; }
/* Direct children only: the star row inside this box is built from <span> and
   <b> too, and a blanket rule turned every star into its own line. */
.ks-score > b { display: block; font: 400 52px var(--kd-serif, Georgia, serif); color: var(--ks-ink); line-height: 1; }
.ks-score-none { color: var(--kd-muted, #737270) !important; }
.ks-score > span { display: block; margin: 2px 0 8px; color: var(--kd-muted, #737270); font: 500 13px var(--kd-sans, system-ui, sans-serif); }
.ks-score > .ks-stars { display: inline-flex; margin: 0 auto; }
.ks-score > small { display: block; margin-top: 8px; color: var(--kd-muted, #737270); font: 600 12.5px var(--kd-sans, system-ui, sans-serif); }
.ks-bars { display: grid; gap: 7px; }
.ks-bar-row { display: flex; align-items: center; gap: 8px; color: var(--kd-muted, #737270); font: 600 13px var(--kd-sans, system-ui, sans-serif); }
.ks-bar-row .ks-star { position: static; width: 13px; height: 13px; color: #e8a33c; }
.ks-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--kd-line, #e2e1e0); overflow: hidden; }
.ks-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ks-accent); }

.ks-write { margin-bottom: 24px; }
.ks-write-form { display: grid; gap: 12px; padding: 22px; background: var(--kd-bg, #f9f9f8); border-radius: 20px; }
.ks-write-form h3 { margin: 0; font: 700 18px var(--kd-sans, system-ui, sans-serif); color: var(--ks-ink); }
.ks-pick { display: flex; align-items: center; gap: 4px; }
.ks-pick-star { width: 38px; height: 38px; padding: 4px; border: 0; background: none; color: #dbdbda; cursor: pointer; }
.ks-pick-star .ks-star { position: static; width: 100%; height: 100%; }
.ks-pick-star.is-on { color: #e8a33c; }
.ks-pick-label { margin-left: 8px; color: var(--kd-muted, #737270); font: 600 14px var(--kd-sans, system-ui, sans-serif); }
.ks-input {
  width: 100%; box-sizing: border-box; min-height: 50px; padding: 13px 15px;
  border: 1.5px solid var(--kd-line, #e2e1e0); border-radius: 14px; background: #fff;
  font: 500 15.5px/1.5 var(--kd-sans, system-ui, sans-serif); color: var(--ks-ink);
}
.ks-input:focus { outline: 3px solid rgba(57, 54, 50, .22); border-color: var(--ks-accent); }
.ks-write-form .ks-solid { justify-self: start; flex: 0; }

.ks-review-list { display: grid; gap: 16px; }
.ks-review { padding: 20px 22px; background: #fff; border: 1px solid var(--kd-line, #e2e1e0); border-radius: 18px; }
.ks-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ks-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ks-plum); color: #fff; font: 700 16px var(--kd-sans, system-ui, sans-serif); }
.ks-review-head b { display: block; color: var(--ks-ink); font: 700 15px var(--kd-sans, system-ui, sans-serif); }
.ks-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--kd-green, #23694a); font: 600 12.5px var(--kd-sans, system-ui, sans-serif); }
.ks-review-when { margin-left: auto; color: var(--kd-muted, #737270); font: 500 12.5px var(--kd-sans, system-ui, sans-serif); }
.ks-review h3 { margin: 8px 0 4px; font: 700 16px var(--kd-sans, system-ui, sans-serif); color: var(--ks-ink); }
.ks-review p { margin: 6px 0 0; color: var(--kd-ink-2, #424140); font: 500 15px/1.65 var(--kd-sans, system-ui, sans-serif); }

/* ---------- sections fading up ---------- */
.ks-fade { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s cubic-bezier(.22,.68,.3,1); }
.ks-fade.ks-shown { opacity: 1; transform: none; }

/* ---------- pink steps back ----------
   The hero is deep ink now, not a pink field. The drifting colour still sits
   behind the words, but muted and under glass, so it reads as depth. Pink is
   left to do what an accent does: the eyebrow, the button, the price. */
.kd #store .hero {
  background: #161615 !important;
  border: 0 !important;
  box-shadow: 0 26px 60px rgba(21, 20, 18, .26) !important;
}
.kd #store .hero .heroText { color: #f3f2f1; }
.kd #store .hero h1 { color: #fff !important; }
.kd #store .hero p { color: #c7c6c4 !important; }
.kd #store .hero .heroText .muted { color: #d1ceca !important; }
/* the glow is behind the ink, so it has to sit above it to be seen at all */
.kd #store .hero .kf-glow { z-index: 0; opacity: .34; mix-blend-mode: screen; }
.kd #store .hero > *:not(.kf-glow) { position: relative; z-index: 1; }
.kd #store .hero .primary { background: var(--ks-accent) !important; box-shadow: 0 10px 26px rgba(57, 54, 50, .4); }
.kd #store .trust > div { background: var(--ks-glass); backdrop-filter: blur(8px); }
.kd .kf-stat { background: var(--ks-glass-strong); backdrop-filter: blur(10px); }
.kd .kf-step { background: var(--ks-glass-strong); backdrop-filter: blur(10px); }
.kd #store .card { background: var(--ks-glass-strong); backdrop-filter: blur(8px); border-color: var(--ks-glass-line); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .ks-modal-card { grid-template-columns: 1fr; max-height: 92vh; }
  .ks-quick-art > img { height: 240px; flex: 0 0 auto; }
  .ks-quick-facts { padding: 22px 20px 28px; }
  .ks-reviews-top { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .ks-toolbar { top: calc(var(--ks-rail, 0px) + 4px); border-radius: 14px; }
  .ks-toolbar-tools { width: 100%; }
  .ks-select { flex: 1; }
  .ks-select select { width: 100%; }
  .ks-sheet { align-items: flex-end; padding: 0; }
  .ks-sheet-card { width: 100%; max-height: 82vh; border-radius: 24px 24px 0 0; animation: ksUp .26s cubic-bezier(.22,.68,.3,1); }
  @keyframes ksUp { from { transform: translateY(100%); } to { transform: none; } }
  .ks-modal { align-items: flex-end; padding: 0; }
  .ks-modal-card { border-radius: 24px 24px 0 0; }
}

/* ---------- less movement, when a device asks for it ---------- */
.kf-calm .ks-modal-card, .kf-calm .ks-drawer-panel, .kf-calm .ks-sheet-card { animation: none; }
.kf-calm .ks-fade { opacity: 1; transform: none; transition: none; }
.kf-calm .kd #store > .nav { transition: none; }

/* The fake five-star row used to be hidden outright, which was the right call
   when it was decoration. These are real ratings now, so they come back —
   only for the slots this layer has filled in. */
.card .stars.ks-card-stars { display: block !important; margin: 7px 0 !important; }
/* the card's own rule clamps every <b> to two lines with a minimum height —
   meant for the product name, but it also caught the score beside the stars */
.kd .cardInfo .ks-score-num, .kd .cardInfo .ks-score-count { display: inline; min-height: 0; }
.card .stars.ks-card-stars .ks-stars { color: var(--ks-ink); }

/* anything scrolled to lands below the sticky stack, never under it */
.kd #store .card, .kd #store .sectionHead, .kd #store .page, .ks-reviews, #kfHow {
  scroll-margin-top: calc(var(--ks-head, 64px) + var(--ks-rail, 0px) + 24px);
}

/* ---------- whose rate this is ---------- */
.ks-rate-note {
  margin: 12px 0 0; padding: 10px 14px;
  background: var(--kd-bg, #f9f9f8); border-radius: 12px;
  color: var(--kd-muted, #737270); font: 500 13px/1.5 var(--kd-sans, system-ui, sans-serif);
}
.ks-rate-note[hidden] { display: none !important; }

/* ---------- add to basket ---------- */
.kd #store .productActions { display: flex; gap: 10px; align-items: stretch; }
.kd #store .productActions .ks-add-basket,
.kd #store .productActions .primary { flex: 1 1 0; min-height: 52px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; }
.kd #store .productActions .ks-add-basket {
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); cursor: pointer;
}
.kd #store .card .ks-card-add { margin-bottom: 8px; }
.kd #store .card .ks-card-view {
  background: transparent !important; color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, .7) !important; box-shadow: none !important;
}
.kd #store .ks-added { transform: scale(.97); }
.ks-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 18px; border-radius: 16px;
  background: rgba(34, 34, 34, .82); color: #fff;
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  font: 600 14.5px/1.35 system-ui, sans-serif;
  transition: transform .26s ease, opacity .26s ease; pointer-events: none;
}
.ks-toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.ks-toast button {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 0;
  background: #fff; color: #26241f; font: 800 13px system-ui, sans-serif; cursor: pointer;
}
@media (max-width: 760px) { .ks-toast { bottom: 88px; } }
.ks-toast { width: min(440px, calc(100vw - 32px)); }
.ks-toast span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd #store .card .ks-card-add,
.kd #store .card .ks-card-view { white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.kd #store .productActions .ks-add-basket,
.kd #store .productActions .primary { min-width: 0 !important; width: auto !important; padding: 0 12px !important; white-space: nowrap; }
.kd #store .productActions .outline { flex: 0 0 52px; min-width: 0 !important; width: 52px !important; padding: 0 !important; }
@media (max-width: 760px) {
  .kd #store .card .ks-card-add,
  .kd #store .card .ks-card-view { font-size: 12px !important; padding: 11px 6px !important; min-height: 0 !important; letter-spacing: .03em; }
  .kd #store .productActions .ks-add-basket,
  .kd #store .productActions .primary { font-size: 13px !important; letter-spacing: .03em; }
}
.kd #store #productDetail > div { min-width: 0; }
.kd #store .productActions { min-width: 0; max-width: 100%; }
.kd #store .productActions .ks-add-basket,
.kd #store .productActions .primary { white-space: normal; line-height: 1.15; }
