/* The 7khalas Box shop (/box): a Sixty60-style flow (dark header with address, delivery day and search; quick-shop
   circles; product rails with a quick "+"; a basket tab with steppers) in the 7khalas look: leaf green, cream, the
   badge and Caveat Brush headings. */
.ks { --ks-ink: #1d1915; --ks-deep: #1f4d18; --ks-green: #3d8b2f; --ks-leaf: #7cc243; --ks-cream: #f3eedf; --ks-paper: #fffdf7; --ks-line: #e7dfca; --ks-terra: #c8794b; --ks-teal: #8a4b22; --ks-sun: #e9b949; --ks-red: #c4452f; }
body.ks { background: var(--ks-cream); padding-bottom: 92px; overflow-x: clip; }
.ks .kh-hide { display: none !important; }

/* Header */
.ks-head { background: linear-gradient(170deg, #2f7124 0%, var(--ks-deep) 70%); color: #fffdf7; padding: calc(.8rem + env(safe-area-inset-top)) 1rem 1.6rem; border-radius: 0 0 26px 26px; position: sticky; top: 0; z-index: 25; box-shadow: 0 8px 22px -16px rgba(0,0,0,.6); }
.ks-head-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ks-where { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; color: #fffdf7; font: inherit; font-size: 1rem; padding: 0; max-width: 46%; cursor: pointer; }
.ks-where span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-where .mdi-map-marker-outline { color: var(--ks-leaf); font-size: 1.3rem; }
.ks-slots { display: flex; gap: .4rem; }
.ks-slot { display: inline-flex; align-items: center; gap: .35rem; border: 1.5px solid rgba(124, 194, 67, .8); border-radius: 999px; padding: .2rem .65rem .2rem .45rem; color: #fffdf7; line-height: 1; }
.ks-slot .mdi { font-size: 1.35rem; color: var(--ks-leaf); }
.ks-slot small { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ks-leaf); }
.ks-slot b { font-weight: 400; font-size: .95rem; letter-spacing: .02em; }
.ks-slot--deliver { border-color: rgba(233, 185, 73, .9); } .ks-slot--deliver .mdi, .ks-slot--deliver small { color: var(--ks-sun); }
.ks-slot--light { color: var(--ks-ink); border-color: var(--ks-green); } .ks-slot--light .mdi, .ks-slot--light small { color: var(--ks-green); }
.ks-title { font-family: var(--kh-display); font-weight: 400; font-size: 2.2rem; margin: .7rem 0 .55rem; line-height: 1; }
.ks-search { display: flex; align-items: center; gap: .5rem; background: var(--ks-paper); border-radius: 16px; padding: 0 .9rem; height: 52px; color: var(--ks-ink); }
.ks-search .mdi { font-size: 1.5rem; color: var(--kh-muted, #6b6255); }
.ks-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--ks-ink); outline: none; min-width: 0; }
.ks-clear { border: 0; background: none; cursor: pointer; }

.ks-main { padding: 0 1rem 1rem; max-width: 720px; margin: 0 auto; }
.ks-sec { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 1.3rem 0 .6rem; }
.ks-sec h2 { font-family: var(--kh-display); font-weight: 400; font-size: 1.55rem; margin: 0; line-height: 1.05; text-transform: none; }
.ks-all { background: none; border: 0; color: var(--ks-teal); font: inherit; font-size: 1.05rem; cursor: pointer; white-space: nowrap; }
.ks-back { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ks-paper); font-size: 1.4rem; cursor: pointer; flex: 0 0 auto; }
.ks-sec .ks-back + h2 { flex: 1; }

/* Quick shops */
.ks-quick { display: flex; gap: .9rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.ks-quick::-webkit-scrollbar, .ks-rail::-webkit-scrollbar { display: none; }
.ks-q { flex: 0 0 auto; width: 78px; background: none; border: 0; text-align: center; font: inherit; color: var(--ks-ink); cursor: pointer; }
.ks-q span { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto .35rem; border-radius: 50%; font-size: 2rem; color: #fff; box-shadow: 0 8px 16px -10px rgba(0,0,0,.5); }
.ks-q small { font-size: .9rem; line-height: 1.1; display: block; }

/* Banner */
.ks-banner { margin-top: 1.1rem; border-radius: 22px; padding: 1.1rem 1.2rem; color: #fffdf7; background: radial-gradient(260px 160px at 90% 20%, rgba(233,185,73,.55), transparent 70%), linear-gradient(135deg, #c8794b, #9a5532); position: relative; overflow: hidden; min-height: 132px; }
.ks-banner h3 { font-family: var(--kh-display); font-weight: 400; font-size: 1.9rem; margin: 0 0 .2rem; line-height: 1; max-width: 70%; }
.ks-banner p { margin: 0 0 .7rem; max-width: 68%; }
.ks-banner img { position: absolute; right: -6px; bottom: -6px; height: 128px; opacity: .95; }
.ks-banner .kh-btn { min-height: 40px; font-size: 1rem; padding: .3rem 1rem; background: #fffdf7; color: #9a5532; border-color: #fffdf7; flex: 0 0 auto; }

/* Rails and product cards */
.ks-rail { display: flex; gap: .7rem; overflow-x: auto; padding: .1rem .1rem .5rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ks-rail > * { scroll-snap-align: start; }
.ks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
@media (min-width: 560px) { .ks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ks-p { position: relative; flex: 0 0 168px; background: var(--ks-paper); border-radius: 20px; padding: .8rem .8rem .7rem; box-shadow: 0 6px 18px -14px rgba(35,31,28,.6); display: flex; flex-direction: column; min-height: 248px; }
.ks-grid .ks-p { flex: none; }
.ks-p-img { height: 92px; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(circle at 50% 60%, rgba(124,194,67,.22), rgba(124,194,67,.04) 70%); margin-bottom: .55rem; }
.ks-p-img .mdi { font-size: 3.2rem; color: var(--ks-green); }
.ks-p-img img { max-height: 88px; max-width: 100%; }
.ks-add { position: absolute; top: .55rem; right: .55rem; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ks-teal); background: var(--ks-paper); color: var(--ks-teal); font-size: 1.5rem; display: grid; place-items: center; cursor: pointer; line-height: 1; }
.ks-add:disabled { opacity: .35; }
.ks-p-price { font-size: 1.35rem; color: var(--ks-ink); line-height: 1; margin: .1rem 0 .25rem; }
.ks-p-price sup { font-size: .65em; }
.ks-p-price.inbox { font-size: 1rem; color: var(--ks-green); }
.ks-p-name { font-size: 1rem; line-height: 1.15; color: var(--ks-ink); }
.ks-p-sub { font-size: .85rem; color: var(--kh-muted, #6b6255); line-height: 1.15; margin-top: .15rem; }
.ks-p-farm { font-size: .8rem; color: var(--ks-teal); margin-top: .25rem; line-height: 1.15; }
.ks-chip { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .25rem; border: 1.5px solid var(--ks-teal); color: var(--ks-teal); border-radius: 999px; padding: .1rem .55rem; font-size: .78rem; margin-top: .55rem; }
.ks-chip--box { border-color: var(--ks-green); color: #fff; background: var(--ks-green); }
.ks-step { position: absolute; top: .55rem; right: .55rem; display: flex; align-items: center; gap: .2rem; background: var(--ks-paper); border-radius: 999px; box-shadow: 0 4px 12px -6px rgba(0,0,0,.4); }
.ks-step button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.4rem; color: var(--ks-teal); cursor: pointer; }
.ks-step b { min-width: 28px; height: 28px; border-radius: 50%; background: var(--ks-teal); color: #fff; display: grid; place-items: center; font-weight: 400; }
.ks-p.in { outline: 2px solid var(--ks-leaf); }

/* Box (tier) cards */
.ks-tier { flex: 0 0 210px; background: var(--ks-paper); border-radius: 22px; padding: 1rem; box-shadow: 0 6px 18px -14px rgba(35,31,28,.6); border: 2px solid transparent; cursor: pointer; text-align: left; font: inherit; color: var(--ks-ink); position: relative; }
.ks-tier.on { border-color: var(--ks-green); background: #f2f8ea; }
.ks-tier .mdi-large { font-size: 2.4rem; color: var(--ks-green); }
.ks-tier b { display: block; font-family: var(--kh-display); font-weight: 400; font-size: 1.45rem; line-height: 1.05; }
.ks-tier .price { font-size: 1.5rem; margin: .2rem 0; }
.ks-tier small { display: block; color: var(--kh-muted, #6b6255); }

/* Discover list and profile rows */
.ks-cat, .ks-row { display: flex; box-sizing: border-box; align-items: center; gap: .9rem; width: 100%; background: var(--ks-paper); border: 0; border-radius: 18px; padding: .9rem 1rem; margin-bottom: .6rem; font: inherit; font-size: 1.12rem; color: var(--ks-ink); text-align: left; cursor: pointer; text-decoration: none; box-shadow: 0 6px 16px -15px rgba(35,31,28,.7); }
.ks-cat span.ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.9rem; color: #fff; flex: 0 0 auto; }
.ks-cat .mdi-chevron-right, .ks-row .mdi-chevron-right { margin-left: auto; font-size: 1.6rem; color: var(--kh-muted, #6b6255); }
.ks-row > .mdi:first-child { font-size: 1.5rem; color: var(--ks-green); }
.ks-group { font-family: inherit; font-size: 1.05rem; color: #5a5145; margin: 1.2rem 0 .5rem .3rem; font-weight: 400; }

/* My Shop tiles */
.ks-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ks-tile { border: 0; border-radius: 22px; min-height: 150px; padding: 1rem; color: #fff; text-align: left; font: inherit; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; position: relative; overflow: hidden; }
.ks-tile .mdi { font-size: 2.6rem; opacity: .95; }
.ks-tile span { font-size: 1.2rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.ks-tile b { display: block; font-family: var(--kh-display); font-weight: 400; font-size: 1.8rem; text-transform: uppercase; }
.ks-tile--sun { background: linear-gradient(140deg, #f1c75b, #e09a2b); }
.ks-tile--teal { background: linear-gradient(140deg, #2aa5ae, #167079); }
.ks-tile--terra { background: linear-gradient(140deg, #e08a5d, #b5532f); }
.ks-tile--wide { width: 100%; margin-top: .7rem; min-height: 110px; }

/* Profile */
.ks-hello { display: flex; align-items: center; gap: .9rem; background: linear-gradient(170deg, #2f7124, var(--ks-deep)); color: #fffdf7; margin: 0 -1rem; padding: calc(1.2rem + env(safe-area-inset-top)) 1.2rem 4.2rem; border-radius: 0 0 26px 26px; }
.ks-hello h1 { font-family: var(--kh-display); font-weight: 400; font-size: 2.4rem; margin: 0; line-height: 1; text-transform: uppercase; }
.ks-avatar { width: 62px; height: 62px; border-radius: 18px; background: var(--ks-teal); display: grid; place-items: center; font-size: 1.6rem; flex: 0 0 auto; }
.ks-ptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: -3rem; }
.ks-ptiles button { background: var(--ks-paper); border: 0; border-radius: 20px; padding: .9rem .4rem; font: inherit; color: var(--ks-ink); cursor: pointer; box-shadow: 0 10px 20px -14px rgba(0,0,0,.5); line-height: 1.15; }
.ks-ptiles .mdi { display: block; font-size: 2.2rem; color: var(--ks-green); margin-bottom: .3rem; }
.ks-ptiles b { font-weight: 400; color: var(--ks-green); }
.ks-foot { display: flex; justify-content: space-between; align-items: center; margin: 1.2rem 0 .5rem; }
.ks-logout { border: 0; background: #e6dfcc; border-radius: 14px; padding: .6rem 1rem; font: inherit; font-size: 1.05rem; cursor: pointer; }
.ks-ver { background: rgba(30,140,148,.12); color: var(--ks-teal); border-radius: 12px; padding: .4rem .8rem; }
.ks-switch { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.ks-switch b { display: block; font-weight: 400; font-size: 1.15rem; }
.ks-switch input { width: 52px; height: 28px; accent-color: var(--ks-green); }

/* Basket */
.ks-basket-head { display: flex; justify-content: space-between; align-items: flex-end; background: var(--ks-paper); margin: 0 -1rem; padding: calc(1rem + env(safe-area-inset-top)) 1.1rem 1rem; }
.ks-basket-head h1 { font-family: var(--kh-display); font-weight: 400; font-size: 2.4rem; margin: 0 0 .3rem; text-transform: uppercase; line-height: 1; }
.ks-basket-head b { font-weight: 400; font-size: 1.15rem; }
.ks-b-right { text-align: right; } .ks-b-right small { display: block; color: var(--kh-muted, #6b6255); }
.ks-card { background: var(--ks-paper); border-radius: 22px; padding: 1rem; margin-top: 1rem; box-shadow: 0 6px 18px -16px rgba(35,31,28,.6); }
.ks-b-slot { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; gap: .5rem; }
.ks-b-box { border: 2px solid var(--ks-green); border-radius: 18px; padding: .8rem .9rem; }
.ks-b-box h3 { font-family: var(--kh-display); font-weight: 400; font-size: 1.5rem; margin: 0; display: flex; justify-content: space-between; }
.ks-b-meter { height: 8px; border-radius: 999px; background: #ece5d2; margin: .5rem 0 .6rem; overflow: hidden; } .ks-b-meter span { display: block; height: 100%; background: var(--ks-leaf); }
.ks-b-line { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--ks-line); }
.ks-b-line .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(124,194,67,.18); color: var(--ks-green); font-size: 1.6rem; flex: 0 0 auto; }
.ks-b-line .nm { flex: 1; min-width: 0; line-height: 1.15; } .ks-b-line .nm small { display: block; color: var(--kh-muted, #6b6255); }
.ks-b-line .rm { border: 0; background: none; color: var(--kh-muted, #6b6255); font-size: 1.3rem; cursor: pointer; }
.ks-b-line .ks-step { position: static; box-shadow: none; background: #e9f1ef; }
.ks-b-extras-title { margin: 1rem 0 .2rem; font-size: 1.05rem; color: #5a5145; }
.ks-empty { text-align: center; color: var(--kh-muted, #6b6255); padding: 1rem 0; margin: 0; }
.ks-checkout { position: sticky; bottom: 82px; background: linear-gradient(180deg, rgba(243,238,223,0), var(--ks-cream) 30%); padding: 1.2rem 0 .4rem; text-align: center; z-index: 5; }
.ks-checkout .kh-btn { width: 100%; min-height: 60px; font-size: 1.35rem; background: var(--ks-terra); border-color: var(--ks-terra); }
.ks-checkout .kh-btn:hover { background: #a85a35; border-color: #a85a35; }

/* Orders tracker */
.ks-track { display: flex; justify-content: space-between; margin: .8rem 0 .3rem; position: relative; }
.ks-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 15px; height: 4px; background: #ece5d2; border-radius: 4px; }
.ks-track div { position: relative; flex: 1; text-align: center; font-size: .78rem; color: #8a8170; }
.ks-track i { width: 32px; height: 32px; margin: 0 auto .25rem; border-radius: 50%; display: grid; place-items: center; background: #ece5d2; color: #fff; font-size: 1.1rem; position: relative; }
.ks-track .done i { background: var(--ks-green); } .ks-track .done { color: var(--ks-ink); }
.ks-track .now i { background: var(--ks-terra); box-shadow: 0 0 0 5px rgba(200,121,75,.2); }

/* Bottom navigation (Home, Discover, My Shop, My Profile, Basket) */
.ks-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ks-paper); border-top: 1px solid var(--ks-line); padding: .35rem .2rem calc(.35rem + env(safe-area-inset-bottom)); }
.ks-nav button { background: none; border: 0; font: inherit; font-size: .88rem; color: var(--ks-ink); display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; padding: .2rem 0; }
.ks-nav .mdi { font-size: 1.7rem; line-height: 1; }
.ks-nav button.on { color: var(--ks-teal); }
.ks-nav-basket small { font-size: .65rem; color: var(--ks-red); letter-spacing: .04em; }
.ks-nav-basket b { font-weight: 400; background: var(--ks-terra); color: #fff; border-radius: 8px; padding: 0 .4rem; font-size: .9rem; }
@media (max-width: 360px) { .ks-slot small { display: none; } .ks-nav button { font-size: .78rem; } }
/* Keep the delivery pills on one line each. */
.ks-slot span { white-space: nowrap; }
.ks-slot small { font-size: .58rem; }
.ks-slot b { font-size: .88rem; }
.ks-slots { flex: 0 0 auto; }
.ks-where { max-width: 40%; }
@media (max-width: 400px) { .ks-slot { padding: .15rem .5rem .15rem .35rem; } .ks-slot .mdi { font-size: 1.1rem; } }

/* Today / Saturday switch in the header: tap to choose when it comes */
.ks-when .ks-slot { font: inherit; background: transparent; cursor: pointer; opacity: .72; transition: background .15s, opacity .15s; }
.ks-when .ks-slot.on { opacity: 1; background: rgba(255, 253, 247, .14); box-shadow: 0 0 0 2px rgba(255, 253, 247, .35) inset; }
.ks-when .ks-slot[data-when="today"] { border-color: rgba(124, 194, 67, .9); }
.ks-when .ks-slot.closed b { text-decoration: none; opacity: .8; }
.ks-today-banner { background: linear-gradient(135deg, #2f7124, #1f4f17); }
.ks-chip--today { border-color: var(--ks-green); color: var(--ks-green); }
.ks-b-sum { display: grid; grid-template-columns: 1fr auto; gap: .25rem .6rem; margin: .6rem 0 .2rem; font-size: 1rem; }
.ks-b-sum b { font-weight: 400; }
.ks-b-sum .tot { font-size: 1.15rem; border-top: 1px solid var(--ks-line, #e6dccb); padding-top: .35rem; }
.ks-checkout-note { display: block; text-align: center; color: var(--kh-muted, #6b6255); font-size: .85rem; margin-top: .2rem; }
.ks-cancel { margin-top: .5rem; }

/* Floating rounded menu bar (pill, like WhatsApp's) with hand-drawn 7khalas icons */
body.ks { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.ks-nav { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); border: 1px solid rgba(35,31,28,.08); border-radius: 999px; padding: .4rem;
  gap: .1rem; background: rgba(255,253,247,.9); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 16px 34px -14px rgba(35,31,28,.5), 0 2px 6px rgba(35,31,28,.06); max-width: 560px; margin: 0 auto; }
.ks-nav button { position: relative; border-radius: 999px; padding: .4rem 0 .35rem; font-size: .8rem; gap: 2px; color: var(--ks-ink); transition: background .18s, color .18s; }
.ks-nav button.on { background: #e2edd2; color: var(--ks-deep); }
.ks-ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ks-ico .acc { fill: var(--ks-leaf); stroke: none; }
.ks-nav button.on .ks-ico .acc { fill: var(--ks-green); }
.ks-nav button:active .ks-ico { transform: scale(.92); }
.ks-ico-wrap { position: relative; display: block; }
.ks-badge { position: absolute; top: -8px; right: -19px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ks-green); color: #fff; font-style: normal; font-size: .72rem; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--ks-paper); }
.ks-badge:empty { display: none; }
.ks-nav-basket b { font-size: .78rem; padding: 0 .45rem; border-radius: 999px; }
.ks-nav-basket small { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; background: var(--ks-sun); color: var(--ks-ink); border-radius: 999px; padding: .05rem .45rem; font-size: .62rem; box-shadow: 0 3px 8px -4px rgba(0,0,0,.4); }
.ks-nav-basket small:empty { display: none; }
.ks-checkout { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (max-width: 360px) { .ks-nav button span { font-size: .72rem; } }

/* Hand-drawn 7khalas icons (kh-icons.js): sized like the icon font they replace */
svg.ks-i { width: 1em; height: 1em; display: inline-block; vertical-align: -.16em; overflow: visible; fill: none; stroke: currentColor; flex: 0 0 auto; }
svg.ks-i.mdi:before { content: none; }
.ks-head, .ks-q span, .ks-cat .ic, .ks-chip--box, .ks-track .done, .ks-tile, .ks-banner { --ks-acc: #ffe9a8; }
.ks-p-img svg.ks-i { width: 3.4rem; height: 3.4rem; color: var(--ks-deep); }
.ks-b-line .ic svg.ks-i { width: 1.7rem; height: 1.7rem; color: var(--ks-deep); }
.ks-q span svg.ks-i { width: 2.1rem; height: 2.1rem; }
.ks-ptiles svg.ks-i { display: block; margin: 0 auto .3rem; width: 2.3rem; height: 2.3rem; }
.ks-q span svg.ks-i, .ks-cat .ic svg.ks-i { stroke-width: 2.4; }
.ks-tile svg.ks-i { stroke-width: 2.2; }

/* Profile: become a supplier */
.ks-row--sell { background: linear-gradient(120deg, #e2edd2, #fff3d6); border: 1.5px dashed var(--ks-green); }
.ks-row--sell .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--ks-deep); color: #fff; --ks-acc: var(--ks-sun); display: grid; place-items: center; font-size: 1.6rem; }
.ks-row--sell b { display: block; font-weight: 400; } .ks-row--sell small { display: block; font-size: .9rem; color: var(--ks-green); line-height: 1.3; }
.ks-organic { display: inline-flex; align-items: center; gap: .2rem; color: var(--ks-green); font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; }

.ks-per { font-size: .9rem; color: var(--kh-muted, #6b6255); font-weight: 400; letter-spacing: 0; }
.ks-row--drive { background: linear-gradient(120deg, #fbeee6, #fff3d6); border-color: var(--ks-terra); } .ks-row--drive .ic { background: var(--ks-terra); } .ks-row--drive small { color: #9a5532; }

/* Skaftin packs (school lunchbox) */
.ks-p-contents { font-size: .82rem; color: var(--kh-text2, #4a433a); line-height: 1.3; margin: .3rem 0 .2rem; background: #fbf0d6; border-radius: 10px; padding: .35rem .5rem; }
.ks-sec-note { margin: -.4rem 0 .6rem; color: var(--kh-muted, #6b6255); font-size: .95rem; }

/* ------------------------------------------------------------------ wide screens (laptops, desktops)
   Like a shop website: one top bar (logo, address, search, account, basket), a white bar with departments and the
   Today / Saturday choice, wide rails with arrows and "+ Add" buttons. Phones keep the app layout above. */
.ks-brand, .ks-me, .ks-cart, .ks-subnav, .ks-arrow, .ks-where-label { display: none; }
.ks-rail-wrap { position: relative; }
@media (min-width: 992px) {
  body.ks { padding-bottom: 3rem; }
  .ks-nav { display: none; }
  .ks .ks-head.kh-hide { display: grid !important; }
  .ks-head { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 1.2rem; border-radius: 0; padding: .9rem max(2rem, calc((100vw - 1280px) / 2)); }
  .ks-head-row { display: contents; }
  .ks-brand { display: block; } .ks-brand img { height: 58px; width: auto; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
  .ks-where { max-width: 260px; background: rgba(255,253,247,.12); border-radius: 14px; padding: .55rem .9rem; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: .45rem; text-align: left; }
  .ks-where .mdi-map-marker-outline { grid-row: 1 / 3; align-self: center; font-size: 1.6rem; }
  .ks-where-label { display: block; grid-column: 2; font-size: .8rem; color: #cfe6bf; }
  .ks-where #ks-where { grid-column: 2; font-size: 1.05rem; }
  .ks-where .mdi-chevron-down { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .ks-title { display: none; }
  .ks-search { grid-column: 3; grid-row: 1; height: 54px; }
  .ks-me { display: flex; align-items: center; gap: .55rem; background: none; border: 0; color: #fffdf7; font: inherit; cursor: pointer; text-align: left; }
  .ks-me-ic { font-size: 2.4rem; line-height: 1; color: #fffdf7; }
  .ks-me small { display: block; font-size: .85rem; color: #cfe6bf; } .ks-me b { font-weight: 400; font-size: 1.05rem; }
  .ks-cart { display: flex; flex-direction: column; align-items: center; gap: .15rem; background: none; border: 0; color: #fffdf7; cursor: pointer; font: inherit; }
  .ks-cart .mdi { font-size: 2rem; line-height: 1; } .ks-cart b { font-weight: 400; background: var(--ks-terra); border-radius: 8px; padding: 0 .45rem; font-size: .95rem; }
  .ks-cart .ks-badge { top: -6px; right: -14px; }

  .ks-subnav { display: block; background: var(--ks-paper); border-bottom: 1px solid var(--ks-line); position: sticky; top: 86px; z-index: 24; box-shadow: 0 6px 14px -12px rgba(0,0,0,.35); }
  .ks-subnav-in { max-width: 1280px; margin: 0 auto; padding: .7rem 2rem; display: flex; align-items: center; gap: 1rem; }
  .ks-sub-link { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; font: inherit; font-size: 1.02rem; color: var(--ks-ink); cursor: pointer; padding: .3rem .2rem; border-radius: 10px; }
  .ks-sub-link:hover { color: var(--ks-green); } .ks-sub-link svg.ks-i, .ks-sub-link .mdi { font-size: 1.5rem; color: var(--ks-deep); }
  .ks-sub-sep { width: 1px; height: 28px; background: var(--ks-line); }
  .ks-sub-label { color: var(--kh-muted, #6b6255); }
  .ks-sub-gap { flex: 1; }
  .ks-subnav .ks-slots { gap: .6rem; }
  .ks-subnav .ks-slot { color: var(--ks-ink); background: var(--kh-field, #fff); padding: .35rem 1rem .35rem .7rem; opacity: 1; }
  .ks-subnav .ks-slot b { font-size: 1.05rem; } .ks-subnav .ks-slot small { font-size: .68rem; }
  .ks-subnav .ks-slot[data-when="today"] { border-color: var(--ks-teal); } .ks-subnav .ks-slot[data-when="today"] .ks-i, .ks-subnav .ks-slot[data-when="today"] small { color: var(--ks-teal); }
  .ks-subnav .ks-slot--deliver { border-color: var(--ks-green); } .ks-subnav .ks-slot--deliver .ks-i, .ks-subnav .ks-slot--deliver small { color: var(--ks-green); }
  .ks-subnav .ks-slot.on { background: #e2edd2; box-shadow: none; }
  .ks-subnav .ks-slot[data-when="today"].on { background: #fbf0d6; }

  .ks-main { max-width: 1280px; padding: 0 2rem 2rem; }
  .ks-sec { margin: 2rem 0 .9rem; } .ks-sec h2 { font-size: 2.1rem; }
  .ks-all { font-size: 1.15rem; }
  .ks-quick { justify-content: flex-start; gap: 1.4rem; overflow-x: auto; scroll-behavior: smooth; padding: .2rem .2rem .5rem; }
  .ks-rail-wrap > .ks-quick ~ .ks-arrow { top: 59px; }
  .ks-q { width: 130px; } .ks-q span { width: 118px; height: 118px; font-size: 3.2rem; margin-bottom: .6rem; } .ks-q small { font-size: 1.12rem; }
  .ks-banner { min-height: 300px; padding: 2.4rem 2.6rem; display: flex; flex-direction: column; justify-content: center; border-radius: 26px; margin-top: 2rem; }
  .ks-banner h3 { font-size: 3.4rem; } .ks-banner p { font-size: 1.25rem; max-width: 55%; margin-bottom: 1.2rem; }
  .ks-banner .kh-btn { align-self: flex-start; min-height: 52px; font-size: 1.2rem; padding: .4rem 1.6rem; }
  .ks-banner img { height: 290px; right: 3%; bottom: 50%; transform: translateY(50%); }

  .ks-arrow { display: grid; place-items: center; position: absolute; top: 45%; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ks-deep); color: #fff; font-size: 1.6rem; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
  .ks-arrow--prev { left: -22px; } .ks-arrow--next { right: -22px; }
  .ks-rail { gap: 1.1rem; padding: .2rem .2rem .8rem; }
  .ks-rail .ks-p { flex: 0 0 calc((100% - 5 * 1.1rem) / 6); }
  .ks-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
  .ks-p { min-height: 360px; padding: 1rem 1rem .9rem; border-radius: 22px; }
  .ks-p-img { height: 150px; } .ks-p-img .mdi, .ks-p-img svg.ks-i { width: 5rem !important; height: 5rem !important; font-size: 5rem; }
  .ks-p-price { font-size: 1.9rem; margin-top: .5rem; } .ks-p-name { font-size: 1.1rem; }
  .ks-add { width: auto; height: 44px; padding: 0 1rem 0 .75rem; border-radius: 999px; background: var(--ks-teal); color: #fff; border: 0; gap: .3rem; display: inline-flex; align-items: center; font: inherit; font-size: 1.15rem; box-shadow: 0 6px 14px -8px rgba(0,0,0,.5); }
  .ks-add::after { content: 'Add'; font-size: 1.05rem; }
  .ks-tier { flex: 0 0 300px; padding: 1.3rem; }
  .ks-tier b { font-size: 1.8rem; } .ks-tier .price { font-size: 1.9rem; }

  section[data-tab="basket"], section[data-tab="profile"], section[data-tab="orders"], section[data-tab="wallet"], section[data-tab="address"], section[data-tab="messages"] { max-width: 860px; margin: 0 auto; }
  section[data-tab="basket"] .ks-rail .ks-p { flex-basis: calc((100% - 3 * 1.1rem) / 4); }
  .ks-checkout { bottom: 0; }
  .ks-ptiles { margin-top: 1.5rem; }
}
@media (min-width: 992px) and (max-width: 1200px) {
  .ks-rail .ks-p { flex-basis: calc((100% - 4 * 1.1rem) / 5); } .ks-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ks-q { width: 108px; } .ks-q span { width: 96px; height: 96px; }
}

.ks-q { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.ks-arrow.off { display: none; }

/* Live tracking (like a food app, in our look) */
.ks-bell { margin-left: auto; color: #fffdf7; }
.kt-map { height: 330px; border-radius: 22px; overflow: hidden; margin-bottom: .8rem; box-shadow: 0 10px 24px -18px rgba(0,0,0,.6); z-index: 1; }
.kt-pin span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 26px; border: 3px solid #fffdf7; box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); }
.kt-pin svg.ks-i { width: 1em; height: 1em; fill: none; stroke: currentColor; }
.kt-home span { background: var(--ks-deep); --ks-acc: var(--ks-sun); }
.kt-driver span { background: var(--ks-teal); --ks-acc: var(--ks-sun); animation: kt-bob 1.4s ease-in-out infinite; }
@keyframes kt-bob { 50% { transform: translateY(-4px); } }
.kt-eta h3 { font-family: var(--kh-display); font-weight: 400; font-size: 2rem; margin: 0 0 .2rem; line-height: 1.05; }
.kt-eta p { margin: 0; font-size: 1.1rem; color: var(--kh-text2, #4a433a); }
.kt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; text-align: center; position: relative; }
.kt-steps div { display: flex; flex-direction: column; align-items: center; gap: .25rem; color: #9a9182; }
.kt-steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #efe8d6; font-size: 1.5rem; }
.kt-steps svg.ks-i { width: 1em; height: 1em; fill: none; stroke: currentColor; }
.kt-steps .done { color: var(--ks-deep); } .kt-steps .done span { background: #e2edd2; }
.kt-steps .now span { background: var(--ks-green); color: #fff; --ks-acc: var(--ks-sun); box-shadow: 0 0 0 6px rgba(124,194,67,.25); animation: kt-glow 1.8s ease-in-out infinite; }
@keyframes kt-glow { 50% { box-shadow: 0 0 0 11px rgba(124,194,67,.08); } }
.kt-steps b { font-weight: 400; font-size: .92rem; } .kt-steps small { font-size: .8rem; }
.kt-code { text-align: center; background: #fff3d6; } .kt-code small { color: var(--kh-muted, #6b6255); } .kt-code b { display: block; font-size: 2.6rem; letter-spacing: .35em; font-weight: 400; margin: .1rem 0 .2rem .35em; } .kt-code p { margin: 0; color: var(--kh-text2, #4a433a); }
.kt-driver { display: flex; align-items: center; gap: .8rem; } .kt-driver div { flex: 1; } .kt-driver b { display: block; font-weight: 400; font-size: 1.2rem; } .kt-driver small { color: var(--kh-muted, #6b6255); }
.kt-av { width: 52px; height: 52px; border-radius: 50%; background: var(--ks-teal); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.kt-driver .kh-btn { min-height: 44px; padding: .3rem 1rem; font-size: 1rem; }
.ks-live { display: flex; align-items: center; gap: .8rem; width: 100%; margin-top: 1rem; border: 0; border-radius: 18px; padding: .9rem 1rem; background: linear-gradient(120deg, #8a4b22, #6b3a19); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 10px 22px -14px rgba(0,0,0,.6); }
.ks-live div { flex: 1; } .ks-live b { display: block; font-weight: 400; font-size: 1.15rem; } .ks-live small { opacity: .85; }
.ks-live svg.ks-i { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; }
.kt-pulse { width: 14px; height: 14px; border-radius: 50%; background: #7cc243; box-shadow: 0 0 0 0 rgba(124,194,67,.7); animation: kt-pulse 1.6s infinite; flex: 0 0 auto; }
@keyframes kt-pulse { 70% { box-shadow: 0 0 0 12px rgba(124,194,67,0); } 100% { box-shadow: 0 0 0 0 rgba(124,194,67,0); } }
.ks-track-btn { margin-top: .6rem; min-height: 44px; font-size: 1rem; padding: .3rem 1rem; }
.ks-track-btn.live { background: var(--ks-teal); border-color: var(--ks-teal); }
#ks-b-fee .ks-b-sum { margin-top: .8rem; }
@media (min-width: 992px) {
  .ks-head .ks-bell { grid-column: 4; grid-row: 1; margin: 0; }
  .ks-head .ks-me { grid-column: 5; grid-row: 1; } .ks-head .ks-cart { grid-column: 6; grid-row: 1; }
  .ks-head { grid-template-columns: auto auto 1fr auto auto auto; }
  section[data-tab="track"] { max-width: 980px; margin: 0 auto; }
  .kt-map { height: 440px; }
}
.kt-proof small { color: var(--kh-muted, #6b6255); } .kt-proof div { display: flex; gap: .5rem; margin-top: .4rem; } .kt-proof img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; }

/* Real product photos (fallback: drawn icons), bulk badge, home or business */
.ks-photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.ks-b-line .ic .ks-photo { border-radius: 10px; }
.ks-bulk { display: inline-block; background: #6b4a2b; color: #fff; border-radius: 6px; padding: 0 .4rem; font-size: .72rem; letter-spacing: .06em; margin: .15rem 0; }
.ks-buyer { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .6rem; }
.ks-buyer button { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; text-align: left; background: var(--ks-paper); border: 2px solid transparent; border-radius: 18px; padding: .8rem; font: inherit; color: var(--ks-ink); cursor: pointer; }
.ks-buyer button.on { border-color: var(--ks-green); background: #f2f8ea; } .ks-buyer .mdi, .ks-buyer svg.ks-i { font-size: 1.7rem; color: var(--ks-green); } .ks-buyer b { font-weight: 400; font-size: 1.1rem; } .ks-buyer small { color: var(--kh-muted, #6b6255); font-size: .85rem; line-height: 1.25; }

/* After delivery: rate, tip, review */
.kt-feedback h3 { font-family: var(--kh-display); font-weight: 400; font-size: 1.7rem; margin: 0 0 .4rem; }
.kt-fb-row { margin: .5rem 0; } .kt-fb-row small { display: block; color: var(--kh-muted, #6b6255); margin-bottom: .2rem; }
.kt-star { border: 0; background: none; font-size: 2rem; color: #d8cfbd; cursor: pointer; padding: 0 .1rem; line-height: 1; } .kt-star.on { color: var(--ks-sun); }
.kt-tags, .kt-tips { display: flex; flex-wrap: wrap; gap: .4rem; }
.kt-tags button, .kt-tips button { border: 1.5px solid var(--ks-line); background: var(--kh-field, #fff); border-radius: 999px; padding: .35rem .8rem; font: inherit; cursor: pointer; }
.kt-tags button.on { background: var(--ks-deep); color: #fff; border-color: var(--ks-deep); } .kt-tips button { border-color: var(--ks-teal); color: var(--ks-teal); }
.kt-prods div { display: flex; align-items: center; gap: .4rem; padding: .25rem 0; border-bottom: 1px solid var(--ks-line); } .kt-prods span { flex: 1; }
.kt-prods button { border: 1.5px solid var(--ks-line); background: var(--kh-field, #fff); border-radius: 10px; padding: .1rem .5rem; font-size: 1.1rem; cursor: pointer; opacity: .55; } .kt-prods button.on { opacity: 1; border-color: var(--ks-green); background: #f2f8ea; }
#kt-comment { margin: .6rem 0; width: 100%; }
.kt-thanks { color: var(--ks-deep); margin: .4rem 0; }
.ks-rate { color: #b07a10; font-size: .85rem; } .ks-rate small { color: #8a8070; }
.ks-bulk { align-self: flex-start; }

/* Product page (sheet), delivery estimate, closest first */
.ks-p[data-open] { cursor: pointer; }
.ks-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(29,25,21,.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.ks-sheet.open { opacity: 1; pointer-events: auto; }
.ks-sheet-card { position: relative; background: var(--ks-paper); color: var(--ks-ink); width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 1.1rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.ks-sheet.open .ks-sheet-card { transform: none; }
@media (min-width: 992px) { .ks-sheet { align-items: center; } .ks-sheet-card { border-radius: 26px; } }
.ks-sheet-x { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ks-cream); color: var(--ks-ink); font-size: 1.5rem; cursor: pointer; z-index: 2; }
.ks-sheet-img { height: 240px; display: grid; place-items: center; border-radius: 20px; background: radial-gradient(circle at 50% 60%, rgba(124,194,67,.22), rgba(124,194,67,.04) 70%); margin-bottom: .8rem; }
.ks-sheet-img svg.ks-i { width: 7rem !important; height: 7rem !important; color: var(--ks-deep); }
.ks-sheet-card h2 { font-family: var(--kh-display); font-weight: 400; font-size: 2rem; margin: 0; line-height: 1.05; }
.ks-sheet-price { font-size: 2rem; margin: .4rem 0; }
.ks-eta { display: flex; gap: .7rem; align-items: center; background: #e2edd2; color: #1d1915; border-radius: 16px; padding: .7rem .9rem; margin: .7rem 0 .4rem; }
.ks-eta .mdi, .ks-eta svg.ks-i { font-size: 1.8rem; color: #1f4d18; flex: 0 0 auto; } .ks-eta b { display: block; font-weight: 400; font-size: 1.15rem; } .ks-eta small { color: var(--kh-text2, #4a433a); }
.ks-eta.today { background: #fbf0d6; } .ks-eta.today .mdi, .ks-eta.today svg.ks-i { color: var(--ks-teal); }
.ks-sheet-add { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .9rem; } .ks-sheet-add .kh-btn { flex: 1; }
.ks-b-to { margin: 0 0 .6rem; color: var(--ks-deep); } #ks-b-where .kh-banner { margin-bottom: .6rem; }
.ks-sort { margin-left: auto; border: 1.5px solid var(--ks-line); background: var(--ks-paper); color: var(--ks-ink); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .95rem; max-width: 50%; }

/* 7khalas palette, not Sixty60's: basket total in forest green, the checkout in leaf green, sun for highlights */
.ks-nav-basket b, .ks-cart b { background: var(--ks-deep, #1f4d18) !important; color: #fffdf7; }
.ks-checkout .kh-btn { background: var(--ks-green, #3d8b2f) !important; border-color: var(--ks-green, #3d8b2f) !important; }
.ks-checkout .kh-btn:hover { background: #2f7124 !important; }
.ks-badge { background: var(--ks-sun, #e9b949); color: #1d1915; }
.ks-q span[style*="e9b949"] { color: #1d1915; }
html.kh-dark .ks-nav-basket b, html.kh-dark .ks-cart b { background: #6fbf45 !important; color: #0e1913; }

/* Size and pack, always readable on the photo */
.ks-p-img { position: relative; height: 112px; }
.ks-size { position: absolute; left: .4rem; bottom: .4rem; background: rgba(255,253,247,.94); color: #1d1915; border: 1px solid rgba(29,25,21,.12); border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; font-weight: 600; line-height: 1.4; max-width: calc(100% - .8rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 3px 8px -5px rgba(0,0,0,.4); }
.ks-sheet-img { position: relative; } .ks-size.big { font-size: 1rem; padding: .2rem .8rem; left: .8rem; bottom: .8rem; }
@media (min-width: 992px) { .ks-p-img { height: 160px; } }
/* Recipes */
.ks-recipe { flex: 0 0 210px; display: flex; flex-direction: column; gap: .25rem; text-align: left; background: var(--ks-paper); border: 0; border-radius: 20px; padding: .6rem; font: inherit; color: var(--ks-ink); cursor: pointer; box-shadow: 0 6px 18px -14px rgba(35,31,28,.6); }
.ks-recipe img, .ks-recipe-ph { width: 100%; height: 130px; object-fit: cover; border-radius: 14px; display: grid; place-items: center; background: #fbf0d6; font-size: 3rem; color: #8a4b22; }
.ks-recipe b { font-weight: 400; font-size: 1.05rem; line-height: 1.2; } .ks-recipe small { color: var(--kh-muted, #6b6255); } .ks-recipe .ks-chip { margin-top: .2rem; }
.ks-recipe-cover { width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; margin-bottom: .6rem; }
.ks-ingr li, .ks-steps li { margin: .3rem 0; line-height: 1.4; }
.ks-buy { background: #fbf0d6; border-radius: 16px; padding: .8rem 1rem; margin-top: .8rem; } .ks-buy p { margin: 0 0 .5rem; } .ks-buy .kh-btn { width: 100%; }
html.kh-dark .ks-buy, html.kh-dark .ks-recipe-ph { background: #1d3024; color: var(--kh-ink); }
.ks-add, .ks-step { z-index: 3; }
html.kh-dark .ks-search input { background: transparent !important; border: 0 !important; }

/* Seshebo Packs: limited choices */
.ks-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.ks-choice { display: flex; flex-direction: column; align-items: flex-start; border: 2px solid var(--ks-line); background: var(--ks-paper); color: var(--ks-ink); border-radius: 16px; padding: .6rem .9rem; font: inherit; cursor: pointer; text-align: left; }
.ks-choice small { color: #8a4b22; font-size: .8rem; } .ks-choice.on { border-color: var(--ks-green); background: #f2f8ea; box-shadow: 0 0 0 1px var(--ks-green); }
html.kh-dark .ks-choice.on { background: #22301c; } .ks-from { font-size: .7rem; color: var(--kh-muted, #6b6255); }

/* Weekend Special Box builder in the basket: A size, B staples, C treats */
.ks-builder .ks-b-how { margin: .1rem 0 .5rem; }
.ks-bs { border-top: 1px solid var(--ks-line); }
.ks-bs-head { display: flex; align-items: center; gap: .7rem; width: 100%; border: 0; background: none; padding: .7rem 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.ks-bs-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: #f1ead6; color: var(--ks-deep); font-family: var(--kh-display); font-size: 1.15rem; }
.ks-bs.done .ks-bs-n { background: var(--ks-leaf); color: #fff; }
.ks-bs.open .ks-bs-n { background: var(--ks-green); color: #fff; }
.ks-bs-t { flex: 1; min-width: 0; line-height: 1.2; } .ks-bs-t b { font-weight: 400; font-size: 1.05rem; } .ks-bs-t em { font-style: normal; color: var(--kh-muted, #6b6255); font-size: .9rem; margin-left: .25rem; }
.ks-bs-t small { display: block; color: var(--kh-muted, #6b6255); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-bs-go { color: var(--ks-green); font-size: .9rem; text-decoration: underline; }
.ks-bs-body { padding: 0 0 .8rem; }
.ks-bsz { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.ks-bsz-o { border: 2px solid var(--ks-line); background: #fffdf7; border-radius: 16px; padding: .7rem .75rem; text-align: left; cursor: pointer; color: inherit; font: inherit; line-height: 1.2; }
.ks-bsz-o b { display: block; font-weight: 400; font-size: 1.05rem; } .ks-bsz-o span { display: block; font-family: var(--kh-display); font-size: 1.35rem; color: var(--ks-deep); } .ks-bsz-o small { color: var(--kh-muted, #6b6255); }
.ks-bsz-o.on { border-color: var(--ks-green); background: rgba(124,194,67,.14); box-shadow: 0 0 0 3px rgba(124,194,67,.2); }
.ks-bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.ks-bt { position: relative; border: 2px solid var(--ks-line); background: #fffdf7; border-radius: 16px; padding: .5rem .4rem .55rem; cursor: pointer; color: inherit; font: inherit; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; transition: transform .12s, border-color .12s; }
.ks-bt:active { transform: scale(.96); }
.ks-bt-img { width: 56px; height: 56px; display: grid; place-items: center; color: var(--ks-deep); }
.ks-bt-img svg.ks-i, .ks-bt-img .ks-i { width: 2.4rem; height: 2.4rem; } .ks-bt-img img, .ks-bt-img .ks-photo { max-width: 56px; max-height: 56px; object-fit: contain; }
.ks-bt b { font-weight: 400; font-size: .9rem; margin-top: .2rem; } .ks-bt small { color: var(--kh-muted, #6b6255); font-size: .75rem; }
.ks-bt-tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ks-leaf); color: #fff; display: none; place-items: center; font-size: .85rem; }
.ks-bt.on { border-color: var(--ks-leaf); background: rgba(124,194,67,.14); } .ks-bt.on .ks-bt-tick { display: grid; }
.ks-bt.full { opacity: .45; }
.ks-bs-fill { margin-top: .6rem; }
.ks-b-remove { margin-top: .5rem; color: var(--kh-muted, #6b6255); }
html.kh-dark .ks-bsz-o, html.kh-dark .ks-bt { background: rgba(255,255,255,.04); }
html.kh-dark .ks-bs-n { background: rgba(255,255,255,.1); color: inherit; }
/* Real product photos never spill out of their frame (the product sheet especially). */
.ks-sheet-img { overflow: hidden; }
.ks-sheet-img .ks-photo { width: auto; height: auto; max-width: 90%; max-height: 210px; min-height: 0; }
.ks-p-img { overflow: hidden; } .ks-p-img .ks-photo { min-height: 0; }
.ks-bs-hint { margin: .6rem 0 0; font-size: .9rem; }
@media (max-width: 991px) {
  .ks-bt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .ks-bt { padding: .45rem .3rem .5rem; border-radius: 14px; }
  .ks-bt-img { width: 46px; height: 46px; } .ks-bt-img svg.ks-i, .ks-bt-img .ks-i { width: 2rem; height: 2rem; } .ks-bt-img img, .ks-bt-img .ks-photo { max-width: 46px; max-height: 46px; }
  .ks-bt b { font-size: .82rem; }
  .ks-bsz { grid-template-columns: 1fr; }
}
.ks-desc { margin: .5rem 0; line-height: 1.4; }
.ks-desc { margin: .5rem 0; line-height: 1.4; }
.ks-desc { margin: .5rem 0; line-height: 1.4; }

/* Box item list (staples / treats) */
body.ks-noscroll { overflow: hidden; }
.ks-picker { position: fixed; inset: 0; z-index: 60; background: rgba(20,24,16,.45); display: none; align-items: flex-end; justify-content: center; }
.ks-picker.open { display: flex; }
.ks-pk-card { background: var(--ks-cream, #f3eedf); width: 100%; max-width: 640px; height: 100%; display: flex; flex-direction: column; animation: ks-pk-in .2s ease-out; }
@keyframes ks-pk-in { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (min-width: 768px) { .ks-picker { align-items: center; } .ks-pk-card { height: min(86vh, 860px); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); } }
.ks-pk-top { display: flex; align-items: center; gap: .7rem; padding: calc(.8rem + env(safe-area-inset-top)) 1rem .6rem; }
.ks-pk-top h2 { font-family: var(--kh-display); font-weight: 400; font-size: 1.7rem; margin: 0; line-height: 1; } .ks-pk-top small { color: var(--kh-muted, #6b6255); }
.ks-pk-search { margin: 0 1rem .6rem; display: flex; align-items: center; gap: .5rem; background: var(--ks-paper, #fffdf7); border-radius: 14px; padding: 0 .8rem; height: 46px; border: 1px solid var(--ks-line); }
.ks-pk-search input { flex: 1; border: 0; background: none; font: inherit; outline: none; min-width: 0; color: inherit; }
.ks-pk-list { flex: 1; overflow-y: auto; padding: 0 1rem 1rem; -webkit-overflow-scrolling: touch; }
.ks-pk-row { display: flex; align-items: center; gap: .8rem; background: var(--ks-paper, #fffdf7); border: 2px solid transparent; border-radius: 18px; padding: .6rem .7rem; margin-bottom: .5rem; }
.ks-pk-row.on { border-color: var(--ks-leaf); background: #f1f8e9; }
.ks-pk-img { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(124,194,67,.22), rgba(124,194,67,.04) 70%); color: var(--ks-deep); overflow: hidden; }
.ks-pk-img svg.ks-i, .ks-pk-img .ks-i { width: 2.3rem; height: 2.3rem; } .ks-pk-img .ks-photo { max-width: 54px; max-height: 54px; width: auto; height: auto; }
.ks-pk-nm { flex: 1; min-width: 0; line-height: 1.2; } .ks-pk-nm b { font-weight: 400; font-size: 1.05rem; display: block; } .ks-pk-nm small { display: block; color: var(--kh-muted, #6b6255); }
.ks-pk-desc { margin-top: .2rem; font-size: .8rem; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ks-pk-add { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ks-green); background: #fff; color: var(--ks-green); font-size: 1.5rem; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.ks-pk-add:disabled { opacity: .35; cursor: not-allowed; }
.ks-step--pk { position: static; box-shadow: none; background: var(--ks-green); color: #fff; flex: 0 0 auto; }
.ks-step--pk button { color: #fff; } .ks-step--pk button:disabled { opacity: .35; }
.ks-pk-bar { background: var(--ks-paper, #fffdf7); border-top: 1px solid var(--ks-line); padding: .7rem 1rem calc(.8rem + env(safe-area-inset-bottom)); }
.ks-pk-meter { height: 6px; border-radius: 999px; background: #ece5d2; overflow: hidden; margin-bottom: .5rem; } .ks-pk-meter span { display: block; height: 100%; background: var(--ks-leaf); transition: width .2s; }
.ks-pk-row2 { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; } #ks-pk-count span { color: #9a5532; } #ks-pk-count .ok { color: var(--ks-green); }
#ks-pk-done { width: 100%; min-height: 52px; font-size: 1.1rem; }
.ks-gogo { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .7rem; padding: .7rem .8rem; border-radius: 16px; background: #fbf3df; }
.ks-gogo small { display: block; color: var(--kh-muted, #6b6255); }
.ks-step--big { position: static; box-shadow: none; background: var(--ks-green); color: #fff; } .ks-step--big button { color: #fff; width: 42px; height: 42px; font-size: 1.4rem; } .ks-step--big b { min-width: 2ch; text-align: center; font-size: 1.2rem; }
.ks-step--big button:disabled { opacity: .35; }
.ks-tier-badge { display: inline-block; font-style: normal; font-size: .72rem; letter-spacing: .02em; background: var(--ks-sun, #e9b949); color: #3b2a07; border-radius: 999px; padding: .1rem .55rem; margin-bottom: .3rem; }
.ks-tier { position: relative; } .ks-tier > .ks-tier-badge { position: absolute; top: .7rem; right: .7rem; margin: 0; }
html.kh-dark .ks-pk-card { background: #142019; } html.kh-dark .ks-pk-row, html.kh-dark .ks-pk-bar, html.kh-dark .ks-pk-search { background: #1b2a20; border-color: #2a3b2e; }
html.kh-dark .ks-pk-row.on { background: #1f3220; } html.kh-dark .ks-gogo { background: #22301c; } html.kh-dark .ks-pk-add { background: transparent; color: #8fd16a; border-color: #8fd16a; }
.ks-step--pk b, .ks-step--big b { background: none !important; color: #fff !important; box-shadow: none !important; min-width: 1.6rem; text-align: center; }

/* Phones: the flat 7 Colors & More wordmark on a cream pill at the top of the green header. */
.ks-mlogo { display: inline-flex; align-items: center; background: #f3eedf; border-radius: 999px; padding: .3rem .9rem; margin-bottom: .55rem; box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); }
.ks-mlogo img { height: 30px; width: auto; display: block; }
@media (min-width: 992px) { .ks-mlogo { display: none; } }
.ks-brand img { height: 64px !important; }

/* Quick in a hurry Picks! pager: one dot per page in the 7 colours; the current page stretches into a pill. */
.ks-quick { scroll-snap-type: x mandatory; scroll-behavior: smooth; } .ks-quick > * { scroll-snap-align: start; } .ks-quick.drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.ks-pager { display: flex; justify-content: center; gap: .45rem; margin: .5rem 0 .2rem; min-height: 10px; }
.ks-pager button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: var(--c); opacity: .35; cursor: pointer; transition: width .3s cubic-bezier(.3,1.4,.5,1), opacity .3s; }
.ks-pager button.on { width: 26px; opacity: 1; }
@media (min-width: 992px) { .ks-quick { overflow-x: auto; } .ks-pager button { width: 11px; height: 11px; } .ks-pager button.on { width: 32px; } }

/* Side panels: departments slide in from the left, other services from the right; bottom sheets on phones. */
.ks-drawer { position: fixed; inset: 0; z-index: 70; background: rgba(20,24,16,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ks-drawer.open { opacity: 1; pointer-events: auto; }
.ks-drawer-panel { position: absolute; top: 0; bottom: 0; width: min(440px, 92vw); background: var(--ks-cream, #f3eedf); display: flex; flex-direction: column; transition: transform .25s ease; box-shadow: 0 0 40px -10px rgba(0,0,0,.4); }
.ks-drawer[data-side="left"] .ks-drawer-panel { left: 0; transform: translateX(-100%); border-radius: 0 24px 24px 0; }
.ks-drawer[data-side="right"] .ks-drawer-panel { right: 0; transform: translateX(100%); border-radius: 24px 0 0 24px; }
.ks-drawer.open .ks-drawer-panel { transform: none; }
.ks-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem .6rem; }
.ks-drawer-top h2 { font-family: var(--kh-display); font-weight: 400; font-size: 1.9rem; margin: 0; }
.ks-drawer-x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ks-paper, #fffdf7); font-size: 1.6rem; cursor: pointer; }
.ks-drawer-body { overflow-y: auto; padding: 0 .9rem 1.2rem; }
.ks-dl { display: flex; flex-direction: column; gap: .45rem; }
.ks-dl-i { display: flex; align-items: center; gap: .8rem; width: 100%; border: 0; background: var(--ks-paper, #fffdf7); border-radius: 16px; padding: .65rem .8rem; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .12s; }
.ks-dl-i:hover { transform: translateX(3px); }
.ks-dl-i .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; flex: 0 0 auto; }
.ks-dl-i .ic svg.ks-i { width: 1.4rem; height: 1.4rem; }
.ks-dl-i b { flex: 1; font-weight: 400; font-size: 1.05rem; } .ks-dl-i .tx { flex: 1; } .ks-dl-i .tx b { display: block; } .ks-dl-i .tx small { color: var(--kh-muted, #6b6255); }
.ks-dl-i > .mdi-chevron-right { color: #a49b8a; font-size: 1.4rem; }
@media (max-width: 767px) {
  .ks-drawer .ks-drawer-panel, .ks-drawer[data-side] .ks-drawer-panel { left: 0; right: 0; top: auto; width: 100%; max-height: 86vh; border-radius: 26px 26px 0 0; transform: translateY(100%); }
  .ks-drawer.open .ks-drawer-panel { transform: none; }
}
html.kh-dark .ks-drawer-panel { background: #142019; } html.kh-dark .ks-dl-i, html.kh-dark .ks-drawer-x { background: #1b2a20; color: inherit; }

/* Footer */
.ks-footer { background: #1f2a1c; color: #e9e3d2; margin-top: 3rem; padding: 2.2rem 1rem calc(1.2rem + 80px); }
.ks-footer-in { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.6rem; }
.ks-footer-logo { height: 54px; width: auto; background: #f3eedf; border-radius: 14px; padding: .35rem .8rem; }
.ks-footer-app p { color: #c9c1ad; margin: .8rem 0; max-width: 32ch; }
.ks-footer-install { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 999px; padding: .5rem 1rem; font: inherit; cursor: pointer; }
.ks-footer-stores { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.ks-footer-stores span { border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: .35rem .7rem; color: #c9c1ad; font-size: .9rem; } .ks-footer-stores small { color: #e9b949; margin-left: .2rem; }
.ks-footer-col summary { font-weight: 700; font-size: 1.05rem; color: #fff; cursor: pointer; list-style: none; margin-bottom: .6rem; } .ks-footer-col summary::-webkit-details-marker { display: none; }
.ks-footer-col a, .ks-footer-col button { display: block; color: #c9c1ad; text-decoration: none; background: none; border: 0; padding: .25rem 0; font: inherit; cursor: pointer; text-align: left; }
.ks-footer-col a:hover, .ks-footer-col button:hover { color: #fff; }
.ks-footer-base { max-width: 1280px; margin: 1.8rem auto 0; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: center; color: #a49b8a; }
.ks-footer-pay { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .ks-footer-pay b { font-weight: 400; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: .15rem .6rem; color: #e9e3d2; font-size: .85rem; }
.ks-footer-social { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; } .ks-footer-social span { margin-right: .2rem; }
.ks-footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 1.25rem; text-decoration: none; transition: transform .15s, background .15s; }
.ks-footer-social a:hover { transform: translateY(-2px); } .ks-footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.ks-footer-social a[data-n="facebook"]:hover { background: #1877f2; } .ks-footer-social a[data-n="instagram"]:hover { background: #d62976; } .ks-footer-social a[data-n="tiktok"]:hover { background: #111; }
.ks-footer-social a[data-n="whatsapp"]:hover { background: #25d366; } .ks-footer-social a[data-n="x"]:hover { background: #000; } .ks-footer-social a[data-n="youtube"]:hover { background: #ff0000; }
.ks-footer-social a.is-soon { opacity: .55; cursor: default; } .ks-footer-social a.is-soon:hover { transform: none; background: rgba(255,255,255,.08); }
@media (max-width: 991px) { .ks-footer-social { justify-content: center; } }
@media (max-width: 991px) { .ks-footer-in { grid-template-columns: 1fr; text-align: center; } .ks-footer-app p { margin-left: auto; margin-right: auto; } .ks-footer-stores { justify-content: center; }
  .ks-footer-col summary::after { content: ' ▾'; color: #a49b8a; } .ks-footer-col a, .ks-footer-col button { text-align: center; width: 100%; } .ks-footer-base { flex-direction: column; text-align: center; } .ks-footer-pay { justify-content: center; } }
@media (min-width: 992px) { .ks-footer { padding-bottom: 5rem; } }
@media (min-width: 992px) { body.ks { padding-bottom: 0 !important; } }

/* Address bar (like the big shops): a bold strip asking for the address. */
.ks-addr-bar { margin-top: .6rem; background: #e2742c; color: #fff; border-radius: 14px; padding: .6rem .9rem; cursor: pointer; text-align: center; box-shadow: 0 8px 18px -12px rgba(226,116,44,.9); }
.ks-addr-bar b { text-decoration: underline; }
/* Not in your province yet */
body.ks-notyet section[data-tab="home"] > :not(#ks-notyet):not(#ks-status) { display: none !important; }
.ks-notyet-card { text-align: center; background: var(--ks-paper, #fffdf7); border-radius: 26px; padding: 2rem 1.2rem; margin: 1.2rem 0; }
.ks-notyet-card img { width: 140px; height: auto; } .ks-notyet-card h2 { font-family: var(--kh-display); font-weight: 400; font-size: 2rem; margin: .6rem 0 .3rem; } .ks-notyet-card p { color: var(--kh-muted, #6b6255); max-width: 42ch; margin: 0 auto 1rem; }

/* Booked orders (they leave the basket) and the every-weekend switch */
.ks-booked { display: flex; align-items: center; gap: .8rem; background: #e3f2d9; border-radius: 18px; padding: .75rem .9rem; margin-bottom: .7rem; }
.ks-booked > .mdi { font-size: 1.8rem; color: #2f7124; } .ks-booked div { flex: 1; line-height: 1.25; } .ks-booked small { display: block; color: #4b4438; }
.ks-booked.edit { background: #fff1cc; } .ks-booked.edit > .mdi { color: #8a5a00; }
.ks-repeat { margin-top: .8rem; background: var(--ks-paper, #fffdf7); border: 2px solid var(--ks-line); border-radius: 18px; padding: .8rem .9rem; }
.ks-repeat-pay { margin-top: .5rem; font-size: .92rem; color: #4b4438; } .ks-repeat-pay .mdi { color: #2f7124; }
.ks-o-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
html.kh-dark .ks-booked { background: #1f3220; } html.kh-dark .ks-booked small, html.kh-dark .ks-repeat-pay { color: #cfc7b4; } html.kh-dark .ks-repeat { background: #1b2a20; border-color: #2a3b2e; }
.ks-booked .kh-btn, .ks-o-acts .kh-btn { width: auto !important; flex: 0 0 auto; min-height: 40px; padding: .3rem 1rem; }

/* Help with an order */
.ks-help-head h2 { font-family: var(--kh-display); font-weight: 400; font-size: 1.9rem; margin: 0; }
.ks-help-body { margin-top: .8rem; }
.ks-help-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; } .ks-help-tiles--r { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-top: .7rem; }
.ks-help-tile { border: 2px solid var(--ks-line); background: var(--ks-paper, #fffdf7); border-radius: 18px; padding: .9rem .7rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; cursor: pointer; font: inherit; color: inherit; }
.ks-help-tile .mdi { font-size: 2rem; color: #c8352d; } .ks-help-tile b { font-weight: 400; font-size: 1.02rem; line-height: 1.15; } .ks-help-tile small { color: var(--kh-muted, #6b6255); }
.ks-help-tile.sm { padding: .7rem .5rem; } .ks-help-tile.sm .mdi { font-size: 1.6rem; } .ks-help-tile.on { border-color: var(--ks-green); background: #eef6e6; }
.ks-help-qty { display: flex; align-items: center; gap: .8rem; }
.ks-help-ph { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .7rem; }
.ks-help-ph span { position: relative; } .ks-help-ph img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; display: block; }
.ks-help-ph span button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #1d1915; color: #fff; cursor: pointer; }
.ks-help-add { width: 84px; height: 84px; border: 2px dashed var(--ks-line); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--ks-green); }
.ks-help-add .mdi { font-size: 1.7rem; }
.ks-dl-i.on { outline: 2px solid var(--ks-green); }
.ks-help-done { text-align: center; padding: 1rem 0; } .ks-help-done > .mdi { font-size: 3.4rem; color: #2f7124; } .ks-help-done h2 { font-family: var(--kh-display); font-weight: 400; font-size: 2rem; margin: .3rem 0; }
.ks-hreq-top { display: flex; justify-content: space-between; gap: .6rem; } .ks-hreq-top b { font-weight: 400; font-size: 1.05rem; }
.ks-hst { font-size: .78rem; padding: .1rem .6rem; border-radius: 999px; white-space: nowrap; align-self: flex-start; }
.ks-hst--info { background: #e6eef8; color: #2f5a8a; } .ks-hst--warn { background: #fff1cc; color: #8a5a00; } .ks-hst--ok { background: #e3f2d9; color: #2f7124; } .ks-hst--bad { background: #f1ece2; color: #6b6255; }
.ks-hreq-res { margin-top: .35rem; color: #2f7124; } .ks-hreq-ph { display: flex; gap: .4rem; margin-top: .5rem; } .ks-hreq-ph img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }

/* Product page */
.ks-sheet--product .ks-sheet-card { max-width: 1040px; }
.ks-pp { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .ks-sheet.ks-sheet--product { align-items: center; } .ks-sheet--product .ks-sheet-card { border-radius: 26px; padding: 1.6rem 1.8rem; } .ks-pp { grid-template-columns: 1.05fr 1fr; gap: 2rem; } .ks-pp-media { position: sticky; top: 0; align-self: start; } }
.ks-pp-media { position: relative; }
.ks-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; background: radial-gradient(circle at 50% 55%, rgba(124,194,67,.22), rgba(124,194,67,.04) 70%); border: 2px solid #d6e8c8; }
.ks-gal::-webkit-scrollbar { display: none; }
.ks-gal figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; height: 340px; display: grid; place-items: center; position: relative; }
.ks-gal img { max-width: 88%; max-height: 300px; object-fit: contain; }
.ks-gal figcaption { position: absolute; top: .7rem; left: .7rem; background: #1f2a1c; color: #fff; font-size: .78rem; padding: .1rem .6rem; border-radius: 999px; }
.ks-gal-thumbs { display: none; gap: .5rem; margin-top: .6rem; } .ks-gal-thumbs button { width: 64px; height: 64px; border-radius: 12px; border: 2px solid var(--ks-line); background: #fff; padding: 4px; cursor: pointer; } .ks-gal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 900px) { .ks-gal-thumbs { display: flex; } .ks-gal figure { height: 420px; } .ks-gal img { max-height: 380px; } }
.ks-pp-media .ks-size.big { position: absolute; left: .9rem; bottom: 4.2rem; } @media (max-width: 899px) { .ks-pp-media .ks-size.big { bottom: 2.2rem; } }
.ks-pp-info h2 { font-family: var(--kh-display); font-weight: 400; font-size: 2.1rem; margin: .3rem 0 .1rem; line-height: 1.1; }
.ks-pp-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.ks-pp-act { border: 1px solid var(--ks-line); background: var(--ks-paper, #fffdf7); border-radius: 999px; padding: .35rem .85rem; font: inherit; cursor: pointer; color: inherit; }
.ks-pp-act.on, .ks-pp-act.on .mdi { color: #c8352d; border-color: #f0c4bd; }
.ks-pp-buy { display: flex; gap: .7rem; align-items: center; margin: .5rem 0; } .ks-pp-buy .kh-btn { flex: 1; min-height: 52px; }
.ks-pp-h { font-weight: 700; font-size: 1.05rem; margin: 1.1rem 0 .4rem; }
.ks-acc details { border-bottom: 1px solid var(--ks-line); padding: .65rem 0; } .ks-acc summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.ks-acc summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--ks-green); } .ks-acc details[open] summary::after { content: '–'; }
.ks-acc details > div { margin-top: .45rem; color: #4b4438; line-height: 1.45; white-space: pre-line; }
.ks-pp-rel { margin-top: .4rem; }
.ks-share { margin-top: 1rem; background: #f6f1e4; border-radius: 18px; padding: .9rem; }
.ks-share-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.ks-share-row a, .ks-share-row button { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 74px; font-size: .78rem; color: inherit; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.ks-share-row .mdi { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 1.6rem; }
html.kh-dark .ks-gal { border-color: #2a3b2e; } html.kh-dark .ks-acc details > div { color: #cfc7b4; } html.kh-dark .ks-share { background: #1b2a20; } html.kh-dark .ks-pp-act { background: #1b2a20; }

/* Box item picker as product cards */
.ks-pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding-bottom: .5rem; }
@media (min-width: 560px) { .ks-pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ks-pk-item { background: var(--ks-paper, #fffdf7); border: 2px solid transparent; border-radius: 18px; padding: .55rem; display: flex; flex-direction: column; gap: .2rem; }
.ks-pk-item.on { border-color: var(--ks-leaf); background: #f1f8e9; }
.ks-pk-ph { position: relative; height: 104px; border: 0; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(124,194,67,.22), rgba(124,194,67,.04) 70%); color: var(--ks-deep); cursor: zoom-in; padding: 0; margin-bottom: .2rem; overflow: hidden; }
.ks-pk-ph svg.ks-i, .ks-pk-ph .ks-i { width: 2.8rem; height: 2.8rem; } .ks-pk-ph .ks-photo { max-width: 90%; max-height: 92px; width: auto; height: auto; }
.ks-pk-ph .ks-size { position: absolute; left: .4rem; bottom: .4rem; }
.ks-pk-badge { position: absolute; top: .4rem; right: .4rem; min-width: 24px; height: 24px; border-radius: 999px; background: var(--ks-green); color: #fff; font-size: .85rem; display: grid; place-items: center; padding: 0 .35rem; }
.ks-pk-item > b { font-weight: 400; font-size: 1rem; line-height: 1.15; } .ks-pk-item .ks-pk-desc { color: var(--kh-muted, #6b6255); font-size: .78rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ks-pk-add2 { margin-top: auto; border: 2px solid var(--ks-green); background: #fff; color: var(--ks-green); border-radius: 999px; padding: .3rem; font: inherit; cursor: pointer; }
.ks-pk-add2:disabled { opacity: .35; cursor: not-allowed; }
.ks-pk-item .ks-step--pk { margin-top: auto; justify-content: space-between; }
html.kh-dark .ks-pk-item { background: #1b2a20; } html.kh-dark .ks-pk-item.on { background: #1f3220; } html.kh-dark .ks-pk-add2 { background: transparent; }

.ks-head-portal { display: inline-block; margin: 0 0 .55rem .5rem; vertical-align: top; } .ks-head-portal:empty { display: none; }
.ks-portal-row { margin-bottom: .8rem; } .ks-portal-row:empty { display: none; }
@media (min-width: 992px) { .ks-head-portal { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; margin: 0; } }

/* Promotion card (refer a friend) */
.ks-promo { --pc: #c8352d; display: flex; gap: 1rem; align-items: flex-start; margin: .9rem 0 .2rem; padding: 1rem 1.1rem; border-radius: 22px; color: #fff; background: radial-gradient(400px 160px at 100% 0%, rgba(255,255,255,.18), transparent 60%), var(--pc); box-shadow: 0 16px 30px -22px var(--pc); }
.ks-promo-pct { flex: 0 0 auto; width: 78px; height: 78px; border-radius: 50%; background: #fff; color: var(--pc); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transform: rotate(-8deg); }
.ks-promo-pct b { font-family: var(--kh-display); font-size: 2rem; font-weight: 400; } .ks-promo-pct small { font-size: .85rem; }
.ks-promo-tx { flex: 1; min-width: 0; }
.ks-promo-tag { display: inline-flex; gap: .3rem; align-items: center; background: rgba(0,0,0,.18); border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; }
.ks-promo h3 { font-family: var(--kh-display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; margin: .35rem 0 .3rem; color: #fff; }
.ks-promo p { margin: 0 0 .5rem; opacity: .95; font-size: .95rem; } .ks-promo-me b { font-weight: 400; font-size: 1.05rem; }
.ks-promo-have { background: #fff; color: var(--pc); border-radius: 999px; padding: .05rem .55rem; white-space: nowrap; }
.ks-promo-act { display: flex; gap: .5rem; flex-wrap: wrap; }
.ks-promo-btn { display: inline-flex; align-items: center; gap: .35rem; background: #fff; color: var(--pc) !important; border: 2px solid #fff; border-radius: 999px; padding: .4rem 1rem; font: inherit; text-decoration: none; cursor: pointer; }
.ks-promo-btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.7); }
.ks-promo-terms { margin-top: .5rem; font-size: .8rem; opacity: .9; } .ks-promo-terms summary { cursor: pointer; }
.ks-promo--p { margin: 1rem 0; }
.ks-off { color: #c8352d; }
@media (max-width: 520px) { .ks-promo { flex-direction: column; } .ks-promo-pct { width: 64px; height: 64px; } }

/* My stash on My Shop */
.ks-stash-n { font-family: var(--bx-font); font-size: 1rem; color: var(--kh-muted, #6b6255); }
.ks-stash-empty { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border: 2px dashed var(--ks-line); border-radius: 18px; color: var(--kh-muted, #6b6255); width: 100%; box-sizing: border-box; }
.ks-stash-empty .mdi { font-size: 1.8rem; color: var(--ks-red); }
html.kh-dark .ks-stash-empty { border-color: #2f4029; }
/* The chosen delivery day (desktop sub-bar) stays readable in dark mode */
html.kh-dark .ks .ks-subnav .ks-slot.on { background: #24401c; box-shadow: 0 0 0 2px #7cc243 inset; }
html.kh-dark .ks .ks-subnav .ks-slot.on b { color: #f3eedf; }
html.kh-dark .ks .ks-subnav .ks-slot.on small, html.kh-dark .ks .ks-subnav .ks-slot.on .ks-i { color: #a6d98a; }

/* Order card buttons: one row, one size */
.ks-o-acts .kh-btn { font-size: 1rem; min-height: 44px; margin-top: 0; }

/* My Shop: Build a new box and My stash side by side */
.ks-tiles--2 { margin-top: .7rem; } .ks-tiles--2 .ks-tile { min-height: 120px; }
.ks-tile--berry { background: linear-gradient(140deg, #d24c6a, #8e2a52); }
.ks-tile .ks-tile-n { position: absolute; top: 1rem; right: 1rem; font-size: .85rem; text-transform: none; background: rgba(255,255,255,.22); border-radius: 999px; padding: .1rem .6rem; }

/* Close (×) on home banners */
[data-closable] { position: relative; }
.kh-banner[data-closable] { padding-right: 2.6rem; }
.ks-promo[data-closable] { padding-right: 2.8rem; }
.ks-x { position: absolute; top: .45rem; right: .5rem; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.12); color: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.ks-x:hover { background: rgba(0,0,0,.22); }
.ks-x:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ks-promo .ks-x, .ks-banner .ks-x { background: rgba(255,255,255,.25); color: #fff; } .ks-promo .ks-x:hover, .ks-banner .ks-x:hover { background: rgba(255,255,255,.4); }

/* Shop banners strip (super admin > Shop banners) */
.ks-bnr { margin-top: 1.1rem; position: relative; }
.ks-bnr-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; gap: 0; }
.ks-bnr-track::-webkit-scrollbar { display: none; }
.ks-bnr .ks-slide { flex: 0 0 100%; scroll-snap-align: start; margin-top: 0; box-sizing: border-box; }
.ks-bnr-dots { margin-top: .6rem; }
.ks-slide--cover h3, .ks-slide--cover p { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.ks-slide--colour h3, .ks-slide--colour p { max-width: 92%; }
.ks-slide--dark { color: #1d1915; } .ks-slide--dark .kh-btn { background: #1d1915; color: #fffdf7; border-color: #1d1915; }
.ks-slide--dark .ks-x { background: rgba(0,0,0,.12); color: #1d1915; }
.ks-slide a.kh-btn { text-decoration: none; display: inline-flex; }
.ks-slide--side img { object-fit: contain; }
@media (min-width: 992px) { .ks-bnr { margin-top: 2rem; } .ks-bnr-track { border-radius: 26px; } .ks-slide--side img { max-width: 38%; object-fit: contain; } }
