:root {
  --ks-primary: #2E7D32;
  --ks-secondary: #689F38;
  --ks-accent: #FFB300;
  --ks-bg: #FFFFFF;
  --ks-section: #F5F7F2;
  --ks-text: #263238;
  --ks-font: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ks-text); background: var(--ks-bg); font-family: var(--ks-font); }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; z-index: 9; padding: 8px; }
.ks-announce { background: var(--ks-primary); color: #fff; text-align: center; padding: 8px 16px; }
.ks-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
  border-bottom: 1px solid #e4eadf;
  overflow: hidden;
}
.ks-nav { overflow: hidden; }
.ks-nav-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 75px;
  height: 75px;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.ks-nav-start {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}
.ks-nav-end {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.ks-menu-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
  cursor: pointer;
}
.ks-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ks-primary);
  border-radius: 2px;
}
.ks-nav-inline {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
  height: 40px;
  align-self: center;
}
.ks-nav-inline a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ks-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.ks-nav-inline a:hover { background: var(--ks-section); color: var(--ks-primary); }
.ks-nav-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  align-self: center;
  height: 42px;
  gap: 4px;
  flex-shrink: 0;
}
.ks-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.ks-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ks-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}
.ks-icon-btn:hover { background: var(--ks-section); color: var(--ks-primary); }
.ks-cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: .65rem;
  line-height: 18px;
  border-radius: 999px;
}
.ks-search-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}
.ks-search-panel > .container { overflow: hidden; min-height: 0; }
.ks-header.is-search-open .ks-search-panel { grid-template-rows: 1fr; }
.ks-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px;
}
.ks-search .form-control { flex: 1; min-width: 0; }
.ks-search-submit {
  background: var(--ks-primary);
  color: #fff;
  flex-shrink: 0;
}
.ks-search-submit:hover { background: #1b5e20; color: #fff; }
.ks-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 45, 34, .4);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
body.is-store-nav-open .ks-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}
.ks-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 41;
  transform: translateX(-100%);
  transition: transform .3s ease;
  box-shadow: 8px 0 28px rgba(27, 45, 34, .12);
  display: flex;
  flex-direction: column;
}
body.is-store-nav-open .ks-drawer { transform: translateX(0); }
body.is-store-nav-open { overflow: hidden; }
.ks-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid #e4eadf;
  min-height: 60px;
}
.ks-drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.ks-drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  color: var(--ks-text);
  text-decoration: none;
  font-weight: 600;
}
.ks-drawer-nav a:hover { background: var(--ks-section); color: var(--ks-primary); }
@media (max-width: 767px) {
  .ks-header .ks-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
}
@media (min-width: 768px) {
  .ks-nav-inline { display: flex; }
}
.ks-header .ks-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ks-primary);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  line-height: 0;
  height: 75px;
  width: auto;
  overflow: hidden;
}
.ks-header .ks-brand img {
  width: auto;
  height: 75px;
  max-width: none;
  max-height: 75px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  padding: 0;
  margin: 0;
  display: block;
}
/* Mobile-first hero: text overlaid on left of image */
.ks-hero {
  position: relative;
  background: var(--ks-section);
  padding: 16px 16px 24px;
}
.ks-hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #e8efe4;
  box-shadow: 0 12px 32px rgba(38, 50, 56, 0.08);
}
.ks-hero.has-media .ks-hero-frame { min-height: 0; }
.ks-hero:not(.has-media) .ks-hero-frame { min-height: 280px; display: flex; align-items: center; }
.ks-hero-media { position: relative; z-index: 0; }
.ks-hero-media picture,
.ks-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  opacity: 1;
}
.ks-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  max-width: 100%;
  padding: 22px 8px 4px;
  margin: 0;
}
.ks-hero-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.55rem, 6.2vw, 2rem);
  line-height: 1.18;
  color: #1b2b22;
  letter-spacing: -0.02em;
}
.ks-hero-lead {
  margin: 0 0 18px;
  color: #455a64;
  font-size: 0.98rem;
  line-height: 1.5;
}
.ks-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
}
.ks-kicker { color: var(--ks-secondary); font-weight: 700; margin: 0; }
@media (min-width: 576px) {
  .ks-hero { padding: 20px 20px 28px; }
  .ks-hero-frame { border-radius: 20px; }
  .ks-hero-copy { padding: 28px 8px 8px; }
  .ks-hero-copy h1 { font-size: clamp(1.8rem, 3.5vw, 2.35rem); }
}
@media (min-width: 768px) {
  .ks-hero { padding: 28px clamp(20px, 4vw, 40px) 36px; }
  .ks-hero-frame { border-radius: 22px; }
  .ks-hero-lead { font-size: 1.05rem; max-width: 28rem; }
}
@media (min-width: 992px) {
  .ks-hero-copy h1 { font-size: clamp(2.1rem, 2.8vw, 2.75rem); }
}
.ks-reviews { background: #fff; }
.ks-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.ks-review-card {
  background: var(--ks-section);
  border: 1px solid #e4eadf;
  border-radius: 16px;
  padding: 20px;
}
.ks-review-stars {
  margin: 0 0 10px;
  color: #f9a825;
  letter-spacing: 2px;
  font-size: 1rem;
}
.ks-review-body { margin: 0 0 14px; line-height: 1.5; }
.ks-review-by { margin: 0; color: #546e7a; font-size: .9rem; }
.ks-review-by strong { display: block; color: var(--ks-text); }
.ks-section { padding: 48px 0; }
.ks-tint { background: var(--ks-section); }
.ks-shop { background: var(--ks-section); }
.ks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.ks-card { background: #fff; border: 1px solid #e4eadf; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ks-card-media, .ks-gallery { position: relative; display: block; background: var(--ks-section); }
.ks-card-media { overflow: hidden; border-radius: 16px 16px 0 0; }
.ks-flags { position: absolute; top: 16px; left: 20px; z-index: 2; display: flex; pointer-events: none; }
.ks-flag { border-radius: 999px; padding: 5px 10px; color: #fff; background: var(--ks-primary); font-size: .75rem; font-weight: 700; line-height: 1.2; }
.ks-flag-best { background: #f9a825; color: #263238; }
.ks-flag-trend { background: #ef6c00; }
.ks-flag-new { background: #2e7d32; }
.ks-flag-limited { background: #c62828; }
.ks-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ks-card-top h3 { margin: 0; }
.ks-card-top .ks-price { margin: 0; white-space: nowrap; }
.ks-card-blurb { margin: 0; color: #607d8b; font-size: .875rem; }
.ks-card-form { display: grid; grid-template-columns: 1fr 88px; gap: 8px; margin-top: auto; }
.ks-card-form .ks-add {
  grid-column: 1 / -1;
  background: var(--ks-primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.ks-card-form .ks-add .ks-icon,
.ks-pdp-add .ks-icon { width: 18px; height: 18px; }
.ks-card-form .ks-add:disabled { opacity: .55; }
.ks-pdp-add {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ks-section .ks-card select { width: 100%; max-width: none; margin: 0; }
.ks-card h3 { font-size: 1.05rem; }
.ks-card a { color: inherit; text-decoration: none; }
.ks-card-img, .ks-ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: #f7f4ef;
  display: block;
  padding: 10px 8px;
}
.ks-ph { display: grid; place-items: center; font-size: 2rem; color: var(--ks-primary); padding: 0; }
.ks-card-body, .ks-section .container { padding-left: 16px; padding-right: 16px; }
.ks-card-body { padding: 16px; }
.ks-price { font-weight: 700; font-size: 1.15rem; }
.ks-price s, .ks-mrp { color: #78909c; font-weight: 400; margin-left: 8px; }
.ks-price-block { text-align: right; }
.ks-save-line {
  margin: 2px 0 0;
  color: #2e7d32;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
}
.ks-card-off,
.ks-off-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 6px;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 2px 8px rgba(198, 40, 40, .35);
}
.ks-pdp-off { top: 16px; right: 16px; }
.ks-cart-off {
  top: 6px;
  right: 6px;
  min-width: 40px;
  min-height: 40px;
  font-size: .58rem;
}
.ks-line-discount {
  display: block;
  margin-top: 4px;
  color: #546e7a;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
}
.ks-line-discount s {
  color: #90a4ae;
  font-weight: 500;
}
.ks-checkout-line-copy .ks-line-discount {
  margin-top: 6px;
}
.ks-pack-off {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ffebee;
  color: #c62828;
  font-size: .7rem;
  font-weight: 700;
}
.ks-cart-price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin: 6px 0 0;
  font-size: .9rem;
}
.ks-cart-price-meta s { color: #78909c; }
.ks-cart-row-save strong { color: #2e7d32; }
.ks-variant-discount {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
}
.ks-variant-row .is-invalid {
  border-color: #c62828 !important;
  background: #fff8f7;
}
.ks-pill, .ks-badge { display: inline-block; border-radius: 999px; padding: 2px 8px; color: #fff; background: var(--ks-accent); font-size: .8rem; }
.ks-cats, .ks-footer a { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-cats a, .ks-cats button, .ks-footer a { text-decoration: none; }
.ks-cats a, .ks-cats button { background: #fff; border: 1px solid #e4eadf; border-radius: 999px; padding: 8px 14px; color: var(--ks-primary); font: inherit; cursor: pointer; }
.ks-cats .is-active { background: var(--ks-primary); color: #fff; border-color: var(--ks-primary); }
#ks-products { margin-top: 20px; }
.ks-footer { background: #1b5e20; color: #fff; padding: 40px 0 24px; }
.ks-footer a { color: #fff; display: block; }
.ks-footer h2 { font-size: 1rem; }
.ks-copy { opacity: .8; margin-top: 24px; }
.btn-primary, .btn-primary:hover { background: var(--ks-primary); border-color: var(--ks-primary); }
.btn-warning { background: var(--ks-accent); border-color: var(--ks-accent); color: #263238; }
.ks-form label, .ks-section label { display: block; margin-top: 12px; font-weight: 600; }
.ks-form input, .ks-form textarea, .ks-form select, .ks-section input, .ks-section textarea, .ks-section select { width: 100%; max-width: 42rem; padding: 8px 10px; border: 1px solid #cfd8dc; border-radius: 8px; }
.ks-variant { display: flex; gap: 8px; align-items: center; border: 1px solid #e4eadf; border-radius: 12px; padding: 8px 12px; margin: 8px 0; max-width: 42rem; }
.ks-gallery-main {
  width: 100%;
  max-height: min(72vh, 720px);
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: #f7f4ef;
  border-radius: 16px;
  padding: 12px;
}
.ks-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.ks-thumb {
  width: 72px;
  height: 90px;
  object-fit: contain;
  object-position: center;
  background: #f7f4ef;
  border-radius: 8px;
  padding: 4px;
}
.ks-totals { background: var(--ks-section); border-radius: 16px; padding: 16px; margin-top: 16px; }

/* Modern cart */
.ks-cart-page { max-width: 1120px; }
.ks-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}
.ks-cart-head h1 { margin: 4px 0 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.ks-cart-count-label { color: #78909c; font-weight: 600; font-size: .7em; }
.ks-cart-continue {
  color: var(--ks-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ks-cart-continue:hover { text-decoration: underline; }
.ks-cart-empty {
  text-align: center;
  background: var(--ks-section);
  border-radius: 20px;
  padding: 56px 24px;
}
.ks-cart-empty h2 { margin: 0 0 8px; }
.ks-cart-empty p { color: #607d8b; margin: 0 0 20px; }
.ks-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.ks-cart-items {
  display: grid;
  gap: 14px;
}
.ks-cart-line {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid #e4eadf;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(38, 50, 56, 0.04);
}
.ks-cart-line.is-unavailable { opacity: .72; }
.ks-cart-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f4ef;
  aspect-ratio: 4 / 5;
}
.ks-cart-img, .ks-cart-thumb .ks-ph {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: #f7f4ef;
  display: block;
  padding: 6px;
}
.ks-cart-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ks-cart-info-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.ks-cart-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.ks-cart-title a { color: inherit; text-decoration: none; }
.ks-cart-title a:hover { color: var(--ks-primary); }
.ks-cart-variant { margin: 4px 0 0; color: #607d8b; font-size: .92rem; }
.ks-cart-warn { margin: 6px 0 0; color: #c62828; font-size: .875rem; font-weight: 600; }
.ks-cart-unit { margin: 0; font-weight: 700; white-space: nowrap; }
.ks-cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.ks-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd8dc;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.ks-qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ks-primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.ks-qty-btn:hover:not(:disabled) { background: var(--ks-section); }
.ks-qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.ks-qty-input {
  width: 48px !important;
  max-width: 48px !important;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid #e4eadf !important;
  border-right: 1px solid #e4eadf !important;
  border-radius: 0 !important;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}
.ks-qty-input::-webkit-outer-spin-button,
.ks-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ks-cart-line-total {
  margin: 0;
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 800;
  min-width: 5.5rem;
  text-align: right;
}
.ks-cart-remove {
  border: 0;
  background: transparent;
  color: #607d8b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ks-cart-remove:hover { color: #c62828; }
.ks-cart-summary {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid #e4eadf;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(38, 50, 56, 0.06);
}
.ks-cart-summary h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}
.ks-cart-summary-rows { display: grid; gap: 12px; }
.ks-cart-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #455a64;
}
.ks-cart-row strong { color: var(--ks-text); }
.ks-cart-row-total {
  padding-top: 12px;
  border-top: 1px solid #e4eadf;
  font-size: 1.15rem;
  color: var(--ks-text);
}
.ks-cart-note { margin: 14px 0 0; color: #607d8b; font-size: .9rem; }
.ks-cart-note-warn { color: #c62828; font-weight: 600; }
.ks-cart-checkout {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 18px;
  min-height: 48px;
  line-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.ks-cart-checkout.is-disabled,
.ks-cart-mobile-cta .btn.is-disabled {
  opacity: .55;
  pointer-events: none;
  cursor: not-allowed;
  background: #90a4ae;
  border-color: #90a4ae;
}
.ks-cart-keep-shopping {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--ks-primary);
  font-weight: 600;
  text-decoration: none;
}
.ks-cart-keep-shopping:hover { text-decoration: underline; }
.ks-cart-secure {
  margin: 12px 0 0;
  color: #90a4ae;
  font-size: .8rem;
  text-align: center;
}
.ks-cart-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e4eadf;
  box-shadow: 0 -8px 24px rgba(38, 50, 56, 0.08);
  backdrop-filter: blur(8px);
}
.ks-cart-mobile-cta span {
  display: block;
  font-size: .75rem;
  color: #78909c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ks-cart-mobile-cta strong {
  display: block;
  font-size: 1.15rem;
}
.ks-cart-mobile-cta .btn {
  min-width: 140px;
  min-height: 46px;
  font-weight: 700;
  border-radius: 12px;
}
@media (max-width: 991.98px) {
  body:has(.ks-cart-mobile-cta) {
    padding-bottom: 84px;
  }
}
.ks-pack-card-top em:empty { display: none; }
@media (max-width: 900px) {
  .ks-cart-layout { grid-template-columns: 1fr; }
  .ks-cart-summary { position: static; }
}
@media (max-width: 575px) {
  .ks-cart-head { flex-direction: column; align-items: flex-start; }
  .ks-cart-line { grid-template-columns: 88px minmax(0, 1fr); padding: 12px; gap: 12px; }
  .ks-cart-info-top { flex-direction: column; gap: 6px; }
  .ks-cart-line-total { margin-left: 0; text-align: left; min-width: 0; }
  .ks-cart-actions { justify-content: space-between; }
}
.ks-faq { background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.ks-cartbar, .ks-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e4eadf;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 25;
  box-shadow: 0 -8px 24px rgba(38, 50, 56, 0.08);
}
.ks-cartbar {
  color: var(--ks-text);
  text-decoration: none;
  font-weight: 700;
  justify-content: center;
}
.ks-cartbar[hidden],
.ks-cartbar.is-empty { display: none !important; }
.ks-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px);
  z-index: 40;
  min-width: min(92vw, 320px);
  max-width: 92vw;
  padding: 12px 16px;
  border-radius: 14px;
  background: #1b5e20;
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 28px rgba(27, 43, 34, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.ks-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ks-toast.is-error { background: #c62828; }
.ks-buybar-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ks-buybar-copy strong { font-size: 1.15rem; }
.ks-buybar-copy span { color: #78909c; font-size: .8rem; }
.ks-buybar .btn {
  min-width: 140px;
  min-height: 46px;
  font-weight: 700;
  border-radius: 12px;
}
.ks-wa { position: fixed; right: 16px; bottom: 16px; width: 64px; height: 64px; background: #25D366; color: #fff; border-radius: 50%; display: grid; place-items: center; text-decoration: none; z-index: 24; box-shadow: 0 8px 24px rgba(18, 140, 126, .35); }
.ks-wa svg { width: 38px; height: 38px; display: block; }
.has-buybar .ks-wa { bottom: 84px; }

/* Product detail page */
.ks-pdp {
  background:
    radial-gradient(circle at top left, rgba(46, 125, 50, 0.08), transparent 42%),
    linear-gradient(180deg, #f7faf5 0%, #fff 280px);
  padding: 8px 0 56px;
}
.ks-pdp .ks-crumbs { margin-bottom: 18px; }
.ks-pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px 40px;
  align-items: start;
  margin-bottom: 36px;
}
.ks-gallery-stage {
  background: #fff;
  border: 1px solid #e4eadf;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(38, 50, 56, 0.06);
}
.ks-pdp .ks-gallery-main,
.ks-pdp .ks-gallery-stage .ks-ph {
  width: 100%;
  max-height: min(68vh, 640px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #f7f4ef;
  border-radius: 18px;
  padding: 16px;
  display: block;
}
.ks-pdp .ks-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ks-thumb-btn {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.ks-thumb-btn.is-active,
.ks-thumb-btn:hover {
  border-color: var(--ks-primary);
}
.ks-pdp .ks-thumb,
.ks-thumb-btn .ks-ph {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f4ef;
  border-radius: 10px;
  display: block;
}
.ks-pdp-buy {
  position: sticky;
  top: 104px;
  background: #fff;
  border: 1px solid #e4eadf;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(38, 50, 56, 0.06);
}
.ks-pdp-cat {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--ks-primary);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.ks-pdp-title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.ks-pdp-lead {
  margin: 0 0 20px;
  color: #546e7a;
  font-size: 1.02rem;
  line-height: 1.55;
}
.ks-pdp-packs {
  border: 0;
  margin: 0;
  padding: 0;
}
.ks-pdp-packs legend {
  font-weight: 700;
  margin-bottom: 10px;
  float: none;
  width: auto;
  font-size: .95rem;
}
.ks-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.ks-pack-card {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px;
  border: 1.5px solid #d7e0d4;
  border-radius: 16px;
  background: #fbfcf9;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ks-pack-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ks-pack-card:hover { border-color: #a5c29a; }
.ks-pack-card.is-selected {
  border-color: var(--ks-primary);
  background: #eef7ec;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}
.ks-pack-card.is-soldout { opacity: .55; cursor: not-allowed; }
.ks-pack-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.ks-pack-card-top strong { font-size: 1rem; }
.ks-pack-card-top em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ks-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ks-pack-card.is-soldout .ks-pack-card-top em { color: #c62828; }
.ks-pack-card-meta { color: #78909c; font-size: .85rem; }
.ks-pack-card-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.ks-pack-card-price b { font-size: 1.05rem; }
.ks-pack-card-price s { color: #90a4ae; font-size: .85rem; }
.ks-pdp-priceblock {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0 8px;
  padding: 14px 0;
  border-top: 1px solid #e4eadf;
  border-bottom: 1px solid #e4eadf;
}
.ks-pdp-priceblock .ks-price {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.ks-pdp-priceblock .ks-mrp {
  display: inline;
  margin: 0 0 0 8px;
  text-decoration: line-through;
}
.ks-pdp-save {
  margin: 0;
  color: #2e7d32;
  font-weight: 700;
  background: #e8f5e9;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .85rem;
  white-space: nowrap;
}
.ks-pdp-soldout {
  margin: 0 0 12px;
  color: #c62828;
  font-weight: 600;
}
.ks-pdp-qtyrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 18px;
}
.ks-pdp-qtylabel { font-weight: 700; margin: 0; }
.ks-pdp-add {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05rem;
}
.ks-pdp-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ks-pdp-trust li {
  position: relative;
  padding-left: 22px;
  color: #546e7a;
  font-size: .92rem;
}
.ks-pdp-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ks-accent);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #f0c24d;
}
.ks-pdp-panel,
.ks-pdp-related {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #e4eadf;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(38, 50, 56, 0.04);
}
.ks-pdp-panel-head {
  margin-bottom: 16px;
}
.ks-pdp-panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.ks-pdp-panel-head p {
  margin: 0;
  color: #78909c;
}
.ks-table-scroll { overflow-x: auto; }
.ks-pdp-table { margin: 0; }
.ks-pdp-table th {
  background: #f5f7f2;
  white-space: nowrap;
}
@media (max-width: 991px) {
  .ks-pdp-layout { grid-template-columns: 1fr; gap: 18px; }
  .ks-pdp-buy { position: static; padding: 18px; }
  .ks-pdp { padding-bottom: 100px; }
}
@media (max-width: 575px) {
  .ks-pack-grid { grid-template-columns: 1fr 1fr; }
  .ks-pdp-priceblock { flex-direction: column; align-items: flex-start; }
}
.ks-hp { position: absolute; left: -10000px; height: 0; overflow: hidden; }
/* Legacy admin shell styles removed — admin.css owns .ks-admin-body layout */
.ks-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ks-metrics article { background: var(--ks-section); border-radius: 12px; padding: 12px; }
.ks-metrics small { display: block; color: #546e7a; }
.ks-auth { min-height: 100vh; display: grid; place-items: center; background: var(--ks-section); }
.ks-variant-row, .ks-images { display: grid; gap: 8px; border-top: 1px solid #e4eadf; padding: 12px 0; }
.ks-crumbs ol { display: flex; gap: 8px; list-style: none; padding: 0; flex-wrap: wrap; }
.ks-muted { color: #607d8b; }
@media (max-width: 991px) {
  .ks-admin { grid-template-columns: 1fr; }
  /* Do not restyle admin drawer here — admin.css owns .ks-admin-body .ks-side */
  body:not(.ks-admin-body) .ks-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
/* Premium page shells: track + contact */
.ks-page-hero {
  background: linear-gradient(135deg, #eef5ea 0%, #f7f4ef 55%, #fff 100%);
  padding: 28px 0 8px;
  border-bottom: 1px solid #e4eadf;
}
.ks-page-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: #1b2b22;
}
.ks-page-lead {
  margin: 0;
  max-width: 40rem;
  color: #546e7a;
  font-size: 1.05rem;
  line-height: 1.55;
}
.ks-surface-card {
  background: #fff;
  border: 1px solid #e4eadf;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(38, 50, 56, 0.05);
}
.ks-surface-card h2,
.ks-surface-card h3 { margin-top: 0; }
.ks-premium-form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #37474f;
}
.ks-premium-form input,
.ks-premium-form textarea,
.ks-premium-form select {
  width: 100%;
  max-width: none;
  padding: 12px 14px;
  border: 1px solid #cfd8dc;
  border-radius: 12px;
  background: #fbfcf9;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ks-premium-form input:focus,
.ks-premium-form textarea:focus,
.ks-premium-form select:focus {
  outline: none;
  border-color: var(--ks-secondary);
  box-shadow: 0 0 0 3px rgba(104, 159, 56, 0.18);
  background: #fff;
}
.ks-full-btn {
  width: 100%;
  margin-top: 18px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
}
.ks-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ks-help-card,
.ks-cta-card {
  margin-top: 16px;
  border-radius: 18px;
  padding: 20px;
}
.ks-help-card {
  background: #f5f7f2;
  border: 1px solid #e4eadf;
}
.ks-cta-card {
  background: linear-gradient(145deg, #1b5e20, #2e7d32);
  color: #fff;
}
.ks-cta-card p { opacity: .92; }
.ks-cta-card .btn { font-weight: 700; }

/* Track order */
.ks-track-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.ks-track-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 8px;
  color: #90a4ae;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ks-track-divider::before,
.ks-track-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e4eadf;
}
.ks-track-empty code {
  background: #eef5ea;
  padding: 2px 6px;
  border-radius: 6px;
  color: #1b5e20;
}
.ks-feature-list {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: #455a64;
}
.ks-feature-list li { margin: 6px 0; }
.ks-order-list { display: grid; gap: 10px; }
.ks-order-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e4eadf;
  border-radius: 14px;
  background: #fbfcf9;
}
.ks-order-list-item p { margin: 4px 0 0; color: #78909c; font-size: .9rem; }
.ks-order-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-weight: 700;
}
.ks-track-result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.ks-track-result-head h2 { margin: 4px 0; }
.ks-track-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ks-progress-track {
  list-style: none;
  margin: 0 0 28px;
  padding: 18px 12px 8px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  background: #f5f7f2;
  border-radius: 16px;
  border: 1px solid #e4eadf;
  overflow-x: auto;
}
.ks-progress-step {
  position: relative;
  text-align: center;
  min-width: 72px;
  color: #90a4ae;
}
.ks-progress-step strong {
  display: block;
  font-size: .78rem;
  margin-top: 8px;
  color: inherit;
}
.ks-progress-step span {
  display: block;
  font-size: .72rem;
  margin-top: 2px;
}
.ks-progress-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cfd8dc;
  background: #fff;
  position: relative;
  z-index: 1;
}
.ks-progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 2px;
  background: #dce4d8;
}
.ks-progress-step.is-done { color: #2e7d32; }
.ks-progress-step.is-done .ks-progress-dot,
.ks-progress-step.is-current .ks-progress-dot {
  border-color: #2e7d32;
  background: #2e7d32;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}
.ks-progress-step.is-done::after,
.ks-progress-step.is-current::after { background: #81c784; }
.ks-progress-step.is-current { color: #1b5e20; font-weight: 700; }
.ks-progress-step.is-cancelled { color: #c62828; grid-column: 1 / -1; text-align: left; padding: 8px 12px; }
.ks-progress-step.is-cancelled .ks-progress-dot {
  border-color: #c62828;
  background: #c62828;
}
.ks-track-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}
.ks-track-grid h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.ks-track-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ks-track-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2ea;
}
.ks-track-items span {
  display: block;
  color: #78909c;
  font-size: .88rem;
  margin-top: 2px;
}
.ks-track-items em {
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.ks-track-totals {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e4eadf;
  display: grid;
  gap: 8px;
}
.ks-track-totals div {
  display: flex;
  justify-content: space-between;
  color: #546e7a;
}
.ks-track-totals .is-grand {
  color: #1b2b22;
  font-size: 1.05rem;
  padding-top: 6px;
}
.ks-info-block,
.ks-note-block {
  background: #fbfcf9;
  border: 1px solid #e4eadf;
  border-radius: 14px;
  padding: 14px;
}
.ks-info-block p { margin: 0 0 6px; }
.ks-note-block { margin-top: 12px; background: #fff8e1; border-color: #ffe082; }
.ks-timeline-rich {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ks-timeline-rich li {
  position: relative;
  padding: 12px 14px 12px 28px;
  border-radius: 12px;
  background: #f5f7f2;
  border: 1px solid #e4eadf;
}
.ks-timeline-rich li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ks-primary);
}
.ks-timeline-rich time {
  display: block;
  color: #78909c;
  font-size: .82rem;
  margin: 2px 0 6px;
}
.ks-timeline-rich p { margin: 0; color: #455a64; }

/* Contact */
.ks-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.ks-contact-side { display: grid; gap: 16px; }
.ks-contact-side .ks-help-card,
.ks-contact-side .ks-cta-card { margin-top: 0; }
.ks-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ks-detail-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2ea;
}
.ks-detail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ks-detail-list span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #90a4ae;
  font-weight: 700;
}
.ks-detail-list a,
.ks-detail-list strong {
  color: #1b2b22;
  text-decoration: none;
  font-weight: 700;
  word-break: break-word;
}
.ks-detail-list a:hover { color: var(--ks-primary); }
.ks-map-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.ks-map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e4eadf;
  background: #eef2ea;
  aspect-ratio: 16 / 9;
  min-height: 240px;
}
.ks-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 991px) {
  .ks-track-layout,
  .ks-contact-layout,
  .ks-track-grid,
  .ks-form-grid {
    grid-template-columns: 1fr;
  }
  .ks-progress-track {
    grid-template-columns: repeat(6, minmax(88px, 1fr));
    justify-content: start;
  }
  .ks-track-result-head {
    flex-direction: column;
  }
  .ks-track-badges { justify-content: flex-start; }
  .ks-map-head { flex-direction: column; }
}
.ks-find-card .ks-find-hints {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: #607d8b;
  font-size: .9rem;
}
.ks-find-hints li { margin: 4px 0; }
.ks-order-list-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ks-order-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.ks-order-list-meta .btn-sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
}
.ks-support-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.ks-support-order-card,
.ks-support-chat-card {
  background: #fbfcf9;
  border: 1px solid #e4eadf;
  border-radius: 16px;
  padding: 16px;
}
.ks-chat-head { margin-bottom: 12px; }
.ks-chat-head h3 { margin: 0 0 4px; }
.ks-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 4px 12px;
  margin-bottom: 12px;
}
.ks-chat-empty {
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #cfd8dc;
  color: #78909c;
  text-align: center;
}
.ks-chat-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e4eadf;
}
.ks-chat-bubble header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: .8rem;
}
.ks-chat-bubble time { color: #90a4ae; white-space: nowrap; }
.ks-chat-bubble p { margin: 0; line-height: 1.45; color: #263238; }
.ks-chat-bubble.is-customer {
  align-self: flex-end;
  background: #e8f5e9;
  border-color: #c8e6c9;
  border-bottom-right-radius: 6px;
}
.ks-chat-bubble.is-store {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 6px;
}
.ks-chat-compose textarea {
  resize: vertical;
  min-height: 84px;
}
.ks-admin-chat {
  max-height: 420px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f5f7f2;
  border-radius: 12px;
}
@media (max-width: 991px) {
  .ks-support-split { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .ks-surface-card { padding: 18px; border-radius: 16px; }
  .ks-page-hero { padding-top: 20px; }
  .ks-order-list-item {
    flex-direction: column;
    align-items: stretch;
  }
  .ks-order-list-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .ks-chat-thread { max-height: 300px; }
}

:focus-visible { outline: 3px solid var(--ks-accent); outline-offset: 2px; }

/* Premium checkout */
.ks-checkout {
  background:
    radial-gradient(circle at top right, rgba(46, 125, 50, 0.09), transparent 40%),
    linear-gradient(180deg, #f4f8f2 0%, #fff 320px);
  padding: 18px 0 72px;
}
.ks-checkout-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 22px;
  font-size: .9rem;
  font-weight: 600;
  color: #78909c;
}
.ks-checkout-steps a {
  color: var(--ks-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ks-checkout-steps .is-current {
  color: var(--ks-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ks-checkout-steps > span:not(.ks-checkout-steps-sep):not(.is-current) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ks-checkout-steps span span,
.ks-checkout-steps a span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e8efe4;
  color: #546e7a;
  font-size: .78rem;
  font-weight: 800;
}
.ks-checkout-steps .is-current span:first-child {
  background: var(--ks-primary);
  color: #fff;
}
.ks-checkout-steps-sep {
  width: 28px;
  height: 2px;
  background: #d7e0d4;
  border-radius: 2px;
}
.ks-checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}
.ks-checkout-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}
.ks-checkout-sub {
  margin: 0;
  max-width: 42rem;
  color: #607d8b;
}
.ks-checkout-back {
  color: var(--ks-primary);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ks-checkout-back:hover { text-decoration: underline; }
.ks-checkout-alert { border-radius: 16px; }
.ks-checkout-blocked {
  background: #fff;
  border: 1px solid #e4eadf;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(38, 50, 56, 0.05);
  max-width: 560px;
}
.ks-checkout-blocked h2 { margin: 0 0 8px; font-size: 1.35rem; }
.ks-checkout-blocked p { color: #607d8b; }
.ks-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 24px;
  align-items: start;
}
.ks-checkout-form { display: grid; gap: 16px; }
.ks-checkout-card {
  background: #fff;
  border: 1px solid #e4eadf;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(38, 50, 56, 0.04);
}
.ks-checkout-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.ks-checkout-card-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}
.ks-checkout-card-head p {
  margin: 0;
  color: #78909c;
  font-size: .92rem;
}
.ks-checkout-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #2e7d32, #689f38);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
}
.ks-checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.ks-field { min-width: 0; }
.ks-field-full { grid-column: 1 / -1; }
.ks-field label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  font-size: .9rem;
}
.ks-optional {
  color: #90a4ae;
  font-weight: 500;
}
.ks-field input,
.ks-field textarea {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cfd8dc;
  border-radius: 12px;
  background: #fbfcf9;
  font: inherit;
  color: var(--ks-text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ks-field input:focus,
.ks-field textarea:focus {
  outline: 0;
  border-color: var(--ks-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.14);
}
.ks-field textarea { resize: vertical; min-height: 96px; }
.ks-pay-grid {
  display: grid;
  gap: 10px;
}
.ks-pay-card {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 16px;
  border: 1.5px solid #d7e0d4;
  border-radius: 16px;
  background: #fbfcf9;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ks-pay-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ks-pay-card:hover { border-color: #a5c29a; }
.ks-pay-card.is-selected {
  border-color: var(--ks-primary);
  background: #eef7ec;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}
.ks-pay-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.ks-pay-card-top strong { font-size: 1.02rem; }
.ks-pay-card-top em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #90a4ae;
}
.ks-pay-card.is-selected .ks-pay-card-top em { color: var(--ks-primary); }
.ks-pay-card-copy {
  color: #607d8b;
  font-size: .9rem;
  line-height: 1.45;
}
.ks-checkout-submit {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05rem;
}
.ks-checkout-fine {
  margin: 12px 0 0;
  color: #90a4ae;
  font-size: .82rem;
  text-align: center;
}
.ks-checkout-summary {
  position: sticky;
  top: 100px;
}
.ks-checkout-summary-inner {
  background: #fff;
  border: 1px solid #e4eadf;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 36px rgba(38, 50, 56, 0.07);
}
.ks-checkout-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.ks-checkout-summary-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.ks-checkout-summary-head span {
  color: #78909c;
  font-weight: 600;
  font-size: .88rem;
}
.ks-checkout-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ks-checkout-lines li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.ks-checkout-thumb {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f4ef;
  border: 1px solid #e4eadf;
}
.ks-checkout-img,
.ks-checkout-thumb .ks-ph {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
  background: #f7f4ef;
}
.ks-checkout-line-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.ks-checkout-line-copy strong {
  font-size: .95rem;
  line-height: 1.3;
}
.ks-checkout-line-copy span {
  color: #78909c;
  font-size: .82rem;
}
.ks-checkout-lines b {
  font-size: .95rem;
  white-space: nowrap;
}
.ks-checkout-totals {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4eadf;
  display: grid;
  gap: 10px;
}
.ks-checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #455a64;
}
.ks-checkout-totals strong { color: var(--ks-text); }
.ks-checkout-grand {
  padding-top: 10px;
  border-top: 1px dashed #e4eadf;
  font-size: 1.15rem;
  color: var(--ks-text) !important;
}
.ks-checkout-hint {
  margin: 0;
  font-size: .82rem;
  color: #607d8b;
}
.ks-checkout-hint.is-good {
  color: #2e7d32;
  font-weight: 700;
}
.ks-checkout-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #e4eadf;
  display: grid;
  gap: 8px;
}
.ks-checkout-trust li {
  position: relative;
  padding-left: 20px;
  color: #546e7a;
  font-size: .88rem;
}
.ks-checkout-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ks-accent);
}
.ks-checkout-edit {
  display: inline-block;
  margin-top: 14px;
  color: var(--ks-primary);
  font-weight: 700;
  text-decoration: none;
}
.ks-checkout-edit:hover { text-decoration: underline; }
.ks-checkout-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #e4eadf;
  box-shadow: 0 -8px 24px rgba(38, 50, 56, 0.08);
  backdrop-filter: blur(8px);
}
.ks-checkout-mobile-cta span {
  display: block;
  font-size: .72rem;
  color: #78909c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ks-checkout-mobile-cta strong {
  display: block;
  font-size: 1.15rem;
}
.ks-checkout-mobile-cta .btn {
  min-width: 148px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 800;
}
@media (max-width: 991.98px) {
  body:has(.ks-checkout-mobile-cta) {
    padding-bottom: 88px;
  }
  .ks-checkout-layout {
    grid-template-columns: 1fr;
  }
  .ks-checkout-summary {
    position: static;
    order: -1;
  }
  .ks-checkout {
    padding-bottom: 100px;
  }
}
@media (max-width: 575px) {
  .ks-checkout-fields { grid-template-columns: 1fr; }
  .ks-checkout-head { flex-direction: column; align-items: flex-start; }
  .ks-checkout-steps-sep { width: 16px; }
}

/* Order success (checkout step 3) */
.ks-success-hero {
  margin-bottom: 22px;
  max-width: 44rem;
}
.ks-success-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}
.ks-success-hero p { color: #546e7a; }
.ks-success-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ks-success-qr {
  display: block;
  margin: 12px 0;
  border-radius: 14px;
  border: 1px solid #e4eadf;
  background: #fff;
  padding: 8px;
}
.ks-success-actions {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
}
.ks-success-actions .btn {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 700;
}
