:root {
  --kfs-primary: #2f6fed;
  --kfs-accent: #ff6b35;
  --kfs-bg: #f5f7fb;
  --kfs-surface: #ffffff;
  --kfs-text: #1d2433;
  --kfs-muted: #64748b;
  --kfs-border: #e5eaf2;
  --kfs-radius: 18px;
  --kfs-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --kfs-wrap: 1200px;
  --kfs-header-bg: #ffffff;
  --kfs-header-border: #e5eaf2;
  --kfs-header-text: #1d2433;
  --kfs-menu-icon: #1d2433;
  --kfs-menu-button-bg: #ffffff;
  --kfs-menu-button-border: #e5eaf2;
  --kfs-header-cart-icon: #1d2433;
  --kfs-header-cart-count: #1d2433;
  --kfs-header-cart-total: #64748b;
  --kfs-header-cart-bg: #ffffff;
  --kfs-header-cart-border: #e5eaf2;
  --kfs-menu-nav-bg: #f5f7fb;
  --kfs-chip-bar-bg: #f5f7fb;
  --kfs-chip-text: #1d2433;
  --kfs-chip-bg: #ffffff;
  --kfs-chip-border: #e5eaf2;
  --kfs-chip-active-text: #ffffff;
  --kfs-chip-active-bg: #2f6fed;
  --kfs-chip-active-border: #2f6fed;

  /* bridge vars for plugin/theme interoperability */
  --kf-primary: var(--kfs-primary);
  --kf-accent: var(--kfs-accent);
  --kf-bg: var(--kfs-bg);
  --kf-surface: var(--kfs-surface);
  --kf-surface-alt: color-mix(in srgb, var(--kfs-surface) 92%, var(--kfs-bg) 8%);
  --kf-text: var(--kfs-text);
  --kf-text-muted: var(--kfs-muted);
  --kf-muted: var(--kfs-muted);
  --kf-border: color-mix(in srgb, var(--kfs-text) 12%, transparent 88%);
  --kf-field-bg: color-mix(in srgb, var(--kfs-surface) 88%, var(--kfs-bg) 12%);
  --kf-field-text: var(--kfs-text);
  --kf-choice-bg: transparent;
  --kf-choice-border: transparent;
  --kf-choice-selected-bg: color-mix(in srgb, var(--kfs-primary) 10%, var(--kfs-surface) 90%);
  --kf-choice-selected-border: color-mix(in srgb, var(--kfs-primary) 36%, transparent 64%);
  --kf-choice-selected-text: var(--kfs-text);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 140px; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--kfs-bg);
  color: var(--kfs-text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.kfs-wrap { width: min(calc(100% - 32px), var(--kfs-wrap)); margin: 0 auto; }
.kfs-main { min-height: 60vh; overflow-x: clip; }
.kfs-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--kfs-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kfs-header-border);
}
.kfs-header-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
}
.kfs-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.kfs-branding-link,
.kfs-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 auto;
}
.kfs-branding .custom-logo {
  display: block;
  max-height: 40px;
  width: auto;
}
.kfs-site-title {
  display: inline-block;
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  color: var(--kfs-header-text);
}
.kfs-branding-link { color: var(--kfs-header-text); }

.kfs-header-actions {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-width:44px;
}
.kfs-header-cart {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:7px 12px;
  border:1px solid var(--kfs-header-cart-border);
  border-radius:14px;
  background:var(--kfs-header-cart-bg);
  max-width:148px;
}
.kfs-header-cart-icon {
  width:18px;
  height:18px;
  line-height:1;
  flex:0 0 auto;
  color:var(--kfs-header-cart-icon);
  display:inline-flex;
}
.kfs-header-cart-icon svg{width:18px;height:18px;display:block;}
.kfs-header-cart-copy {
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.1;
}
.kfs-header-cart-count,
.kfs-header-cart-total {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.kfs-header-cart-count {
  font-size:.72rem;
  font-weight:800;
  color:var(--kfs-header-cart-count);
}
.kfs-header-cart-total {
  font-size:.8rem;
  color:var(--kfs-header-cart-total);
  font-weight:700;
}
.kfs-nav { display: none; }
.kfs-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.kfs-header-spacer,
.kfs-mobile-toggle-spacer { width: 44px; height: 44px; }
.kfs-mobile-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--kfs-menu-button-border);
  background: var(--kfs-menu-button-bg);
  border-radius: 12px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.kfs-mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--kfs-menu-icon);
  border-radius: 999px;
}
.kfs-mobile-menu-panel {
  border-top: 1px solid var(--kfs-header-border);
  background: var(--kfs-header-bg);
}
.kfs-mobile-nav { padding: 12px 0 18px; }
.kfs-desktop-nav-wrap {
  display: none;
  border-top: 1px solid var(--kfs-header-border);
  background: var(--kfs-header-bg);
}
.kfs-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.kfs-mobile-menu a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--kfs-menu-button-border);
  border-radius: 14px;
  background: var(--kfs-menu-button-bg);
  font-weight: 600;
}
.kfs-button, button.kfs-button {
  appearance: none; border: 0; cursor: pointer;
  background: var(--kfs-primary); color: #fff; padding: 11px 16px; border-radius: 14px; font-weight: 800;
  box-shadow: none;
}
.kfs-button-secondary { background: transparent; color: var(--kfs-header-text); border: 1px solid var(--kfs-border); box-shadow: none; }
.kfs-chip {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 18px; background: var(--kfs-chip-bg); border: 1px solid var(--kfs-chip-border); color: var(--kfs-chip-text);
  font-weight: 700;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.kfs-chip.is-active {
  background: var(--kfs-chip-active-bg);
  color: var(--kfs-chip-active-text);
  border-color: var(--kfs-chip-active-border);
  box-shadow: none;
}
.kfs-hero { padding: 28px 0 20px; }
.kfs-hero-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 28px; align-items: start; }
.kfs-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; margin: 0 0 14px; }
.kfs-hero p { font-size: 1.05rem; color: var(--kfs-header-cart-text); max-width: 700px; }
.kfs-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.kfs-panel-stack, .kfs-plugin-grid { display: grid; gap: 16px; }
.kfs-plugin-grid { grid-template-columns: repeat(3, 1fr); }
.kfs-section { padding: 28px 0 44px; }
.kfs-section-alt { background: rgba(255,255,255,.45); border-top: 1px solid var(--kfs-border); border-bottom: 1px solid var(--kfs-border); }
.kfs-section-head { margin-bottom: 18px; }
.kfs-section-head h2, .kfs-section-head h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.kfs-section-head p { margin: 0; color: var(--kfs-header-cart-text); }
.kfs-feature-grid, .kfs-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kfs-card, .kfs-hook-card {
  background: var(--kfs-surface); border: 1px solid var(--kfs-border); border-radius: var(--kfs-radius); padding: 20px; box-shadow: var(--kfs-shadow);
}
.kfs-hook-card p, .kfs-card p { color: var(--kfs-header-cart-text); margin-bottom: 0; }
.kfs-category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.kfs-menu-card-top, .kfs-menu-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.kfs-menu-actions { margin-top: 18px; }
.kfs-footer { border-top: 1px solid var(--kfs-border); background: #fff; }
.kfs-footer-inner { padding: 28px 0; display: flex; justify-content: space-between; gap: 20px; }
.kfs-footer-links { display: flex; gap: 16px; align-items: center; }

.kfs-menu-thumb { display:block; aspect-ratio: 16 / 10; overflow:hidden; border-radius: calc(var(--kfs-radius) - 6px); margin-bottom: 16px; background:#eef2f7; }
.kfs-menu-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.kfs-menu-thumb-placeholder { width:100%; height:100%; min-height:180px; display:grid; place-items:center; color:var(--kfs-muted); font-weight:600; }
.kfs-menu-card h3 { margin:0; font-size:1.08rem; }
.kfs-menu-card-body p { margin:12px 0 0; }
.kfs-section-actions { margin-top: 20px; }

.kfs-button-small { padding: 10px 14px; font-size: .95rem; min-width: 98px; justify-content:center; }
.kfs-product-preview-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.kfs-product-preview-card { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.kfs-product-preview-card h3 { margin:0 0 6px; font-size:1.05rem; }
.kfs-product-preview-actions .kfs-chip { font-weight:700; }
.kfs-menu-page { padding: 10px 0 56px; }
.kfs-menu-nav {
  position: sticky; top: 64px; z-index: 10; margin: 0 0 16px;
  padding: 10px 0 10px; background: var(--kfs-menu-nav-bg);
  border-bottom: 1px solid var(--kfs-chip-border);
}

.kfs-menu-nav.is-stuck { box-shadow: 0 8px 18px rgba(15,23,42,.06); }
.kfs-menu-nav-track { display:flex; gap:10px; overflow:auto; padding: 0 0 2px; background: var(--kfs-chip-bar-bg); }
.kfs-menu-nav-track::-webkit-scrollbar { display:none; }
.kfs-menu-sections { display:grid; gap:18px; }
.kfs-menu-category-block {
  background: var(--kfs-surface); border:1px solid var(--kfs-border);
  border-radius: calc(var(--kfs-radius) + 2px); padding: 18px; box-shadow: none;
  scroll-margin-top: 120px;
}
.kfs-menu-category-head { margin-bottom: 14px; }
.kfs-menu-category-head h2 { margin:0 0 4px; font-size:1.55rem; }
.kfs-menu-category-head p { margin:0; color:var(--kfs-muted); }
.kfs-menu-list { display:grid; gap:12px; }
.kfs-menu-row {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 14px; border:1px solid var(--kfs-border); border-radius: calc(var(--kfs-radius) - 4px);
  background: color-mix(in srgb, var(--kfs-surface) 94%, var(--kfs-bg) 6%);
}
.kfs-menu-row-main { display:flex; align-items:center; gap:14px; min-width:0; flex:1; }
.kfs-menu-row-thumb {
  width:74px; height:74px; border-radius: 16px; overflow:hidden; flex: 0 0 74px;
  background:#eef2f7; display:grid; place-items:center; color:var(--kfs-muted); font-size:.82rem; text-align:center;
}
.kfs-menu-row-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.kfs-menu-row-copy { min-width:0; flex:1; }
.kfs-menu-row-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.kfs-menu-row-head h3 { margin:0; font-size:1.08rem; line-height:1.2; }
.kfs-menu-row-head h3 a { display:block; }
.kfs-menu-row-copy p { margin:6px 0 0; color:var(--kfs-muted); font-size:.95rem; }
.kfs-menu-price { white-space:nowrap; font-size:1rem; }
.kfs-menu-row-actions { display:flex; align-items:center; justify-content:flex-end; flex: 0 0 auto; }

@media (min-width: 981px) {
  .kfs-header-inner {
    min-height: 72px;
    grid-template-columns: 44px 1fr auto;
  }
  .kfs-mobile-toggle,
  .kfs-mobile-toggle-spacer,
  .kfs-mobile-menu-panel { display:none; }
  .kfs-desktop-nav-wrap { display: block; }
  .kfs-nav {
    display: block;
    padding: 12px 0;
  }
}

@media (max-width: 980px) {
  .kfs-hero-grid, .kfs-plugin-grid, .kfs-feature-grid, .kfs-menu-grid { grid-template-columns: 1fr; }
  .kfs-product-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kfs-wrap { width: min(calc(100% - 20px), var(--kfs-wrap)); }
  .kfs-footer-inner { flex-direction: column; align-items: stretch; }
  .kfs-header-inner { min-height: 60px; grid-template-columns: 44px 1fr auto; }
  .kfs-branding .custom-logo { max-height: 34px; }
  .kfs-site-title { font-size: 1.05rem; }
  .kfs-hero { padding-top: 20px; }
  .kfs-menu-page { padding-top: 16px; }
  .kfs-menu-nav { top: 60px; margin-bottom: 16px; }
  .kfs-menu-category-block { scroll-margin-top: 114px; }
  .kfs-menu-category-block { padding: 14px; }
  .kfs-menu-row { align-items:flex-start; padding:12px; }
  .kfs-menu-row-main { align-items:flex-start; }
  .kfs-menu-row-thumb { width:60px; height:60px; flex-basis:60px; border-radius:14px; }
  .kfs-menu-row { gap:10px; }
  .kfs-menu-row-head { flex-direction:column; gap:4px; }
  .kfs-menu-row-copy p { font-size:.9rem; }
  .kfs-menu-row-actions { margin-left:auto; }
  .kfs-button-small { padding: 10px 14px; }

  .kfs-header-cart {
    gap:6px;
    padding:6px 8px;
    max-width:116px;
    border-radius:12px;
  }
  .kfs-header-cart-count { font-size:.68rem; }
  .kfs-header-cart-total { font-size:.76rem; }
}

html.kfs-programmatic-scroll { scroll-behavior: smooth; }

.kfs-menu-list{display:grid;gap:12px;}
.kfs-menu-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid var(--kfs-border);border-radius:22px;background:var(--kfs-surface);}
.kfs-menu-row-main{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center;min-width:0;}
.kfs-menu-row-thumb{display:block;width:72px;height:72px;border-radius:18px;overflow:hidden;background:#eef2f7;}
.kfs-menu-row-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.kfs-menu-row-thumb.is-placeholder{display:grid;place-items:center;color:var(--kfs-muted);font-size:.9rem;text-align:center;padding:6px;}
.kfs-menu-row-copy{min-width:0;}
.kfs-menu-row-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.kfs-menu-row-copy h3{margin:0 0 2px;font-size:1.15rem;line-height:1.15;}
.kfs-menu-row-copy h3 a{color:inherit;}
.kfs-menu-price{font-size:1.05rem;white-space:nowrap;}
.kfs-menu-row-copy p{margin:6px 0 0;color:var(--kfs-muted);font-size:.95rem;}
.kfs-menu-row-actions{display:flex;align-items:center;justify-content:flex-end;}
@media (max-width: 640px){
  .kfs-header-inner{grid-template-columns:44px 1fr auto;}
  .kfs-site-title{font-size:1rem;}
  .kfs-header-cart{max-width:120px;padding:6px 10px;}
  .kfs-header-cart-count{font-size:.68rem;}
  .kfs-header-cart-total{font-size:.78rem;}
  .kfs-menu-row{grid-template-columns:1fr auto;gap:10px;padding:12px;}
  .kfs-menu-row-main{grid-template-columns:64px minmax(0,1fr);gap:12px;}
  .kfs-menu-row-thumb{width:64px;height:64px;border-radius:16px;}
  .kfs-menu-row-copy h3{font-size:1.02rem;}
  .kfs-menu-price{font-size:1rem;}
  .kfs-button-small{min-width:88px;padding:10px 12px;}
}


:root {
  --kfs-footer-bg: var(--kfs-surface);
  --kfs-footer-text: var(--kfs-text);
  --kfs-footer-muted: var(--kfs-muted);
  --kfs-footer-link: var(--kfs-primary);
  --kfs-footer-border: var(--kfs-border);
}

.kfs-footer {
  background: var(--kfs-footer-bg);
  border-top: 1px solid var(--kfs-footer-border);
  color: var(--kfs-footer-text);
  margin-top: 32px;
}
.kfs-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 22px 0 28px;
}
.kfs-footer-inner.has-map { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
.kfs-footer-title { display:block; font-size:1.05rem; margin-bottom: 12px; }
.kfs-footer-links { display:flex; flex-wrap:wrap; gap:16px; margin-bottom:10px; }
.kfs-footer-links a { color: var(--kfs-footer-link); font-weight: 600; }
.kfs-footer-address { margin: 0; color: var(--kfs-footer-muted); }
.kfs-footer-map-card {
  background: color-mix(in srgb, var(--kfs-footer-bg) 88%, var(--kfs-bg) 12%);
  border: 1px solid var(--kfs-footer-border);
  border-radius: calc(var(--kfs-radius) + 2px);
  overflow: hidden;
  min-height: 180px;
}
.kfs-footer-map { width:100%; height:100%; min-height:180px; border:0; display:block; }

.kfs-menu-group-wrap { display:grid; gap:24px; }
.kfs-menu-group { display:grid; gap:14px; }
.kfs-menu-parent-head {
  background: var(--kfs-surface);
  border: 1px solid var(--kfs-border);
  border-radius: calc(var(--kfs-radius) + 2px);
  padding: 18px;
}
.kfs-menu-parent-head h2 { margin:0; font-size:1.55rem; }
.kfs-menu-parent-head p { margin:6px 0 0; color:var(--kfs-muted); }
.kfs-menu-category-head h3 { margin:0 0 4px; font-size:1.3rem; }
.kfs-menu-category-block.is-standalone { scroll-margin-top: 118px; }
.kfs-menu-nav { top: 72px; }
.kfs-menu-nav-track { padding-bottom: 4px; }
.kfs-menu-page .kfs-menu-nav { margin-bottom: 0; }

@media (max-width: 980px) {
  .kfs-footer-inner.has-map { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kfs-footer-inner { padding: 18px 0 22px; }
  .kfs-footer-links { gap: 14px; }
  .kfs-menu-parent-head { padding: 14px; }
  .kfs-menu-parent-head h2 { font-size: 1.4rem; }
  .kfs-menu-nav { top: 60px; }
}


/* v0.4.2 sticky parent/category header fix */
.kfs-menu-group { position: relative; }
.kfs-menu-parent-head {
  position: sticky;
  top: 64px;
  z-index: 12;
}
.kfs-menu-group.has-children .kfs-menu-nav {
  top: calc(64px + var(--kfs-parent-head-height, 78px));
  z-index: 11;
}
.kfs-menu-group .kfs-menu-category-block,
.kfs-menu-group .kfs-menu-category-block.is-standalone {
  scroll-margin-top: calc(64px + var(--kfs-parent-head-height, 78px) + var(--kfs-nav-height, 56px) + 12px);
}
@media (max-width: 640px) {
  .kfs-menu-parent-head { top: 60px; }
  .kfs-menu-group.has-children .kfs-menu-nav {
    top: calc(60px + var(--kfs-parent-head-height, 72px));
  }
  .kfs-menu-group .kfs-menu-category-block,
  .kfs-menu-group .kfs-menu-category-block.is-standalone {
    scroll-margin-top: calc(60px + var(--kfs-parent-head-height, 72px) + var(--kfs-nav-height, 54px) + 12px);
  }
}


/* v0.4.3 menu cleanup */
.kfs-menu-group-wrap{gap:20px;}
.kfs-menu-group{gap:10px;}
.kfs-menu-parent-head{background:var(--kfs-surface);border:0;box-shadow:none;border-radius:0 0 24px 24px;padding:12px 18px 10px;}
.kfs-menu-parent-head h2{font-size:1.25rem;line-height:1.15;}
.kfs-menu-parent-head p{margin:4px 0 0;font-size:.92rem;}
.kfs-menu-group.has-children .kfs-menu-nav{background:var(--kfs-menu-nav-bg);padding-top:6px;padding-bottom:10px;border-bottom:0;}
.kfs-menu-nav-track{background:transparent;}
.kfs-menu-category-block{background:transparent;border:0;box-shadow:none;border-radius:0;padding:8px 0 0;}
.kfs-menu-category-block.is-standalone{padding-top:2px;}
.kfs-menu-category-head{margin-bottom:8px;padding:0 2px;}
.kfs-menu-category-head h3{font-size:1.02rem;line-height:1.2;margin:0;}
.kfs-menu-category-head p{margin:4px 0 0;font-size:.9rem;}
.kfs-menu-list{gap:10px;}
.kfs-menu-row{border-radius:22px;}
@media (max-width:640px){
  .kfs-menu-parent-head{padding:10px 14px 8px;border-radius:0 0 18px 18px;}
  .kfs-menu-parent-head h2{font-size:1.12rem;}
  .kfs-menu-category-head h3{font-size:.98rem;}
}


/* v0.4.4 single product preset completion */
:root {
  --kfs-field-bg: color-mix(in srgb, var(--kfs-surface) 94%, var(--kfs-bg) 6%);
  --kfs-field-border: var(--kfs-border);
  --kfs-field-text: var(--kfs-text);
  --kfs-field-muted: var(--kfs-muted);
  --kfs-selected-bg: color-mix(in srgb, var(--kfs-primary) 12%, var(--kfs-surface) 88%);
  --kfs-selected-border: color-mix(in srgb, var(--kfs-primary) 42%, var(--kfs-border) 58%);
  --kfs-sticky-bar-bg: color-mix(in srgb, var(--kfs-surface) 96%, var(--kfs-bg) 4%);
  --kfs-sticky-bar-border: var(--kfs-border);
}

.single-product .kfs-main,
.single-product .site-main,
.single-product .woocommerce-notices-wrapper,
.single-product .product.type-product {
  color: var(--kfs-text);
}
.single-product .product.type-product {
  width: min(calc(100% - 20px), var(--kfs-wrap));
  margin: 18px auto 36px;
}
.single-product .woocommerce-breadcrumb,
.single-product .posted_in,
.single-product .sku_wrapper,
.single-product .product_meta,
.single-product .woocommerce-product-rating,
.single-product .woocommerce-product-details__short-description,
.single-product .reset_variations,
.single-product .price,
.single-product .stock,
.single-product .quantity label,
.single-product .variations label,
.single-product .wapf-field-label,
.single-product .wapf-field-desc,
.single-product .apfs-label,
.single-product .apfs-description {
  color: var(--kfs-text);
}
.single-product .woocommerce-breadcrumb,
.single-product .product_meta,
.single-product .woocommerce-product-details__short-description,
.single-product .wapf-field-desc,
.single-product .apfs-description,
.single-product .posted_in {
  color: var(--kfs-muted);
}
.single-product div.product form.cart,
.single-product .summary form.cart,
.single-product .wapf-wrapper,
.single-product .apf-wrapper,
.single-product .woosg-product,
.single-product .variations_form,
.single-product .woocommerce-tabs,
.single-product .related,
.single-product .up-sells {
  background: var(--kfs-surface);
  border: 1px solid var(--kfs-border);
  border-radius: var(--kfs-radius);
  box-shadow: none;
}
.single-product div.product form.cart,
.single-product .summary form.cart,
.single-product .variations_form {
  padding: 18px;
}
.single-product .woocommerce-tabs,
.single-product .related,
.single-product .up-sells {
  padding: 20px;
  margin-top: 20px;
}
.single-product .woocommerce-product-gallery,
.single-product .summary {
  margin-bottom: 18px;
}
.single-product .summary > .price { font-size: 1.2rem; font-weight: 800; }
.single-product .quantity input.qty,
.single-product select,
.single-product textarea,
.single-product input[type="text"],
.single-product input[type="number"],
.single-product input[type="email"],
.single-product .wapf-field-input select,
.single-product .wapf-field-input input[type="text"],
.single-product .wapf-field-input input[type="number"],
.single-product .wapf-field-input textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--kfs-field-border);
  background: var(--kfs-field-bg);
  color: var(--kfs-field-text);
  padding: 12px 14px;
  box-shadow: none;
}
.single-product textarea { min-height: 120px; }
.single-product .reset_variations { margin-left: 10px; }
.single-product .variations tbody,
.single-product .variations tr,
.single-product .variations td,
.single-product .variations th { background: transparent; border: 0; padding: 0 0 12px; }
.single-product .wapf-field,
.single-product .apf-field,
.single-product .woocommerce div.product form.cart .variations > tbody > tr {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--kfs-border) 70%, transparent 30%);
}
.single-product .wapf-field:last-child,
.single-product .apf-field:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.single-product .wapf-field-label,
.single-product .apf-label,
.single-product .woocommerce div.product form.cart .variations label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.single-product .wapf-wrapper .wapf-radios li,
.single-product .wapf-wrapper .wapf-checkboxes li,
.single-product .apf-option,
.single-product .wc-pao-addon .form-row {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.single-product .wapf-wrapper .wapf-radios label,
.single-product .wapf-wrapper .wapf-checkboxes label,
.single-product .apf-option label,
.single-product .wc-pao-addon label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid var(--kfs-field-border);
  border-radius: 18px;
  background: var(--kfs-field-bg);
  color: var(--kfs-field-text);
  padding: 12px 14px;
}
.single-product input[type="checkbox"],
.single-product input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--kfs-primary);
}
.single-product .wapf-wrapper input:checked + label,
.single-product .apf-option input:checked + label,
.single-product .wc-pao-addon input:checked + label {
  background: var(--kfs-selected-bg);
  border-color: var(--kfs-selected-border);
}
.single-product form.cart .single_add_to_cart_button,
.single-product .kfs-sticky-product-bar .single_add_to_cart_button,
.single-product .kfs-sticky-product-bar .kfs-button,
.single-product form.cart .button.alt,
.single-product .summary .button.alt {
  min-height: 52px;
  border-radius: 18px;
  border: 0;
  background: var(--kfs-primary);
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}
.single-product .summary .button,
.single-product .summary .button.alt + .button,
.single-product .kfs-sticky-product-bar .button:not(.single_add_to_cart_button) {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid var(--kfs-border);
  background: color-mix(in srgb, var(--kfs-surface) 92%, var(--kfs-bg) 8%);
  color: var(--kfs-text);
  font-weight: 700;
}
.single-product .kfs-sticky-product-bar,
.single-product .woocommerce div.product form.cart .quantity + button + button {
  background: var(--kfs-sticky-bar-bg);
  border-top: 1px solid var(--kfs-sticky-bar-border);
}
.single-product .woocommerce-tabs ul.tabs li a,
.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--kfs-text);
}
.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error,
.single-product .woocommerce-notices-wrapper > * {
  border-radius: 16px;
  border: 1px solid var(--kfs-border);
  background: var(--kfs-surface);
  color: var(--kfs-text);
}
.single-product .woocommerce-message::before,
.single-product .woocommerce-info::before,
.single-product .woocommerce-error::before { color: var(--kfs-primary); }
.single-product .product_meta,
.single-product .posted_in a { color: var(--kfs-muted); }

@media (max-width: 640px) {
  .single-product .product.type-product { margin-top: 12px; }
  .single-product div.product form.cart,
  .single-product .summary form.cart,
  .single-product .variations_form,
  .single-product .woocommerce-tabs,
  .single-product .related,
  .single-product .up-sells { padding: 14px; border-radius: 20px; }
}


/* v0.4.6 single product UI overhaul */
:root {
  --kfs-panel: color-mix(in srgb, var(--kfs-surface) 72%, transparent 28%);
  --kfs-panel-strong: color-mix(in srgb, var(--kfs-surface) 88%, var(--kfs-bg) 12%);
  --kfs-line: color-mix(in srgb, var(--kfs-text) 12%, transparent 88%);
  --kfs-soft: color-mix(in srgb, var(--kfs-surface) 92%, var(--kfs-bg) 8%);
}

.single-product .product.type-product,
.single-product div.product,
.single-product div.product .summary,
.single-product div.product .woocommerce-product-gallery {
  color: var(--kfs-text);
}

.single-product .product.type-product {
  display: grid;
  gap: 20px;
}

.single-product .product.type-product .summary > * + * {
  margin-top: 14px;
}

.single-product div.product form.cart,
.single-product .summary form.cart,
.single-product .variations_form,
.single-product .kf-apf-wrap,
.single-product .kf-apf-group,
.single-product .woocommerce-tabs,
.single-product .related,
.single-product .up-sells {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.single-product .summary form.cart,
.single-product div.product form.cart,
.single-product .variations_form {
  padding: 0 !important;
  margin: 0 !important;
}

.single-product .kf-apf-wrap {
  padding: 0 !important;
  margin: 6px 0 0 !important;
}

.single-product .kf-apf-group {
  padding: 0 !important;
  margin: 0 0 22px !important;
}

.single-product .kf-apf-group + .kf-apf-group {
  padding-top: 18px !important;
  border-top: 1px solid var(--kfs-line) !important;
}

.single-product .kf-apf-group-title,
.single-product .summary .product_title,
.single-product .entry-title {
  color: var(--kfs-text) !important;
  letter-spacing: -0.02em;
}

.single-product .summary .product_title,
.single-product .entry-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.02;
  margin-bottom: 8px;
}

.single-product .kf-apf-group-title {
  font-size: 1.08rem !important;
  margin: 0 0 12px !important;
  font-weight: 800 !important;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-breadcrumb,
.single-product .product_meta,
.single-product .posted_in,
.single-product .summary p,
.single-product .kf-apf-description {
  color: var(--kfs-muted) !important;
}

.single-product .summary > .price,
.single-product .summary .price,
.single-product .summary .price .amount {
  color: var(--kfs-text) !important;
  font-weight: 800;
}

.single-product .kf-apf-field,
.single-product .woocommerce div.product form.cart .variations > tbody > tr,
.single-product .wc-pao-addon,
.single-product .wapf-field,
.single-product .apf-field {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
}

.single-product .kf-apf-label,
.single-product .woocommerce div.product form.cart .variations label,
.single-product .wapf-field-label,
.single-product .apf-label {
  display: block;
  color: var(--kfs-text) !important;
  font-weight: 700;
  margin: 0 0 10px !important;
  font-size: 0.98rem;
}

.single-product .kf-apf-description {
  margin: -4px 0 10px !important;
  font-size: 0.9rem;
}

.single-product .kf-apf-choices {
  display: grid;
  gap: 10px;
}

.single-product .kf-apf-choice {
  display: block;
  margin: 0 !important;
}

.single-product .kf-apf-choice-inner,
.single-product .wapf-wrapper .wapf-radios label,
.single-product .wapf-wrapper .wapf-checkboxes label,
.single-product .apf-option label,
.single-product .wc-pao-addon label {
  display: grid !important;
  grid-template-columns: 26px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  min-height: 0;
  border: 1px solid var(--kfs-line) !important;
  border-radius: 18px;
  background: var(--kfs-soft) !important;
  color: var(--kfs-text) !important;
  padding: 14px 16px !important;
}

.single-product .kf-apf-choice input,
.single-product .wapf-wrapper input[type="checkbox"],
.single-product .wapf-wrapper input[type="radio"],
.single-product .apf-option input,
.single-product .wc-pao-addon input[type="checkbox"],
.single-product .wc-pao-addon input[type="radio"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--kfs-primary);
}

.single-product .kf-apf-choice:has(input:checked) .kf-apf-choice-inner,
.single-product .wapf-wrapper .wapf-radios li:has(input:checked) label,
.single-product .wapf-wrapper .wapf-checkboxes li:has(input:checked) label,
.single-product .apf-option:has(input:checked) label,
.single-product .wc-pao-addon .form-row:has(input:checked) label {
  background: color-mix(in srgb, var(--kfs-primary) 12%, var(--kfs-surface) 88%) !important;
  border-color: color-mix(in srgb, var(--kfs-primary) 40%, var(--kfs-line) 60%) !important;
}

.single-product .kf-apf-choice .kf-apf-option-image {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
}

.single-product .kf-apf-select,
.single-product .quantity input.qty,
.single-product select,
.single-product textarea,
.single-product input[type="text"],
.single-product input[type="number"],
.single-product input[type="email"],
.single-product .wapf-field-input select,
.single-product .wapf-field-input input[type="text"],
.single-product .wapf-field-input input[type="number"],
.single-product .wapf-field-input textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid var(--kfs-line) !important;
  background: var(--kfs-soft) !important;
  color: var(--kfs-text) !important;
  padding: 12px 16px;
  box-shadow: none !important;
}

.single-product textarea,
.single-product .wapf-field-input textarea {
  min-height: 120px;
}

.single-product select option,
.single-product .kf-apf-select option {
  color: #111;
}

.single-product .quantity {
  margin: 0 !important;
}

.single-product form.cart {
  display: grid;
  gap: 16px;
}

.single-product form.cart .quantity,
.single-product .quantity .qty {
  max-width: 96px;
}

.single-product form.cart .single_add_to_cart_button,
.single-product form.cart .button.alt,
.single-product .summary .button.alt,
.single-product .summary .button,
.single-product .summary .kfs-button,
.single-product .summary .button {
  min-height: 56px;
  border-radius: 20px;
  padding: 14px 20px;
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: none !important;
}

.single-product form.cart .single_add_to_cart_button,
.single-product form.cart .button.alt,
.single-product .summary .button.alt {
  background: var(--kfs-primary) !important;
  color: #fff !important;
  border: 0 !important;
}

.single-product .summary .button:not(.single_add_to_cart_button):not(.alt),
.single-product .summary .kfs-button-secondary,
.single-product .summary .button[name="add-to-cart"] + .button,
.single-product .summary .button[name="add-to-cart"] ~ .button {
  background: color-mix(in srgb, var(--kfs-primary) 14%, var(--kfs-surface) 86%) !important;
  color: var(--kfs-text) !important;
  border: 1px solid color-mix(in srgb, var(--kfs-primary) 30%, var(--kfs-line) 70%) !important;
}

.single-product .woocommerce-variation-add-to-cart,
.single-product .cart {
  align-items: center;
}

.single-product .woocommerce-variation-add-to-cart,
.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.single-product .woocommerce-variation-add-to-cart > *,
.single-product form.cart > * {
  margin: 0 !important;
}

.single-product .woocommerce-product-gallery {
  background: transparent;
}

.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image img {
  border-radius: calc(var(--kfs-radius) + 6px);
}

.single-product .woocommerce-product-gallery__image {
  overflow: hidden;
}

.single-product .product_meta,
.single-product .posted_in,
.single-product .sku_wrapper {
  font-size: 0.92rem;
}

.single-product .woocommerce-tabs,
.single-product .related,
.single-product .up-sells {
  margin-top: 30px !important;
  padding: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs,
.single-product .woocommerce-tabs .panel,
.single-product .related > h2,
.single-product .up-sells > h2 {
  border: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  padding: 10px 16px !important;
  border-radius: 999px;
  background: var(--kfs-soft);
  border: 1px solid var(--kfs-line);
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  background: color-mix(in srgb, var(--kfs-primary) 14%, var(--kfs-surface) 86%);
  border-color: color-mix(in srgb, var(--kfs-primary) 30%, var(--kfs-line) 70%);
}

.single-product .woocommerce-tabs .panel {
  margin: 18px 0 0 !important;
  padding: 0 !important;
}

.single-product .kf-apf-wrap hr,
.single-product .kf-apf-wrap .woocommerce-divider,
.single-product .kf-apf-wrap .kf-apf-divider {
  border: 0;
  border-top: 1px solid var(--kfs-line);
  margin: 18px 0;
}

@media (max-width: 782px) {
  .single-product .product.type-product {
    gap: 16px;
    margin-top: 12px;
  }

  .single-product .summary .product_title,
  .single-product .entry-title {
    font-size: 1.8rem;
  }

  .single-product .woocommerce-variation-add-to-cart,
  .single-product form.cart {
    align-items: stretch;
  }

  .single-product form.cart .quantity,
  .single-product .quantity .qty {
    max-width: 86px;
  }

  .single-product form.cart .single_add_to_cart_button,
  .single-product .summary .button {
    flex: 1 1 calc(50% - 6px);
  }

  .single-product .kf-apf-choice-inner,
  .single-product .wapf-wrapper .wapf-radios label,
  .single-product .wapf-wrapper .wapf-checkboxes label,
  .single-product .apf-option label,
  .single-product .wc-pao-addon label {
    padding: 12px 14px !important;
    gap: 12px;
  }
}


/* v0.4.7 single product rebuild */
.single-product .woocommerce-breadcrumb,
.single-product .product_meta,
.single-product .posted_in,
.single-product .sku_wrapper,
.single-product .woocommerce-product-rating {
  color: var(--kfs-muted) !important;
  font-size: .95rem;
}
.single-product .product.type-product {
  grid-template-columns: 1fr;
  gap: 24px;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  width: 100%;
  float: none;
}
.single-product div.product .woocommerce-product-gallery {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a {
  background: color-mix(in srgb, var(--kfs-surface) 86%, var(--kfs-bg) 14%) !important;
  border-radius: 24px;
  overflow: hidden;
}
.single-product .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent !important;
}
.single-product .woocommerce-product-gallery__image--placeholder img {
  filter: grayscale(1) opacity(.8);
  background: color-mix(in srgb, var(--kfs-surface) 86%, var(--kfs-bg) 14%) !important;
}
.single-product .summary {
  padding: 0 !important;
}
.single-product .summary > .price:first-child,
.single-product .summary .product_title {
  margin-top: 0 !important;
}
.single-product form.cart {
  display: grid;
  gap: 18px;
}
.single-product .kf-apf-wrap {
  --kf-apf-surface: transparent;
  --kf-apf-surface-alt: transparent;
  --kf-apf-border: color-mix(in srgb, var(--kfs-text) 10%, transparent 90%);
  --kf-apf-field-bg: color-mix(in srgb, var(--kfs-surface) 90%, var(--kfs-bg) 10%);
  --kf-apf-field-text: var(--kfs-text);
  --kf-apf-choice-bg: transparent;
  --kf-apf-choice-border: transparent;
  --kf-apf-choice-selected-bg: color-mix(in srgb, var(--kfs-primary) 12%, var(--kfs-surface) 88%);
  --kf-apf-choice-selected-border: color-mix(in srgb, var(--kfs-primary) 45%, transparent 55%);
  --kf-apf-choice-selected-text: var(--kfs-text);
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.single-product .kf-apf-group {
  margin: 0 0 22px !important;
}
.single-product .kf-apf-group + .kf-apf-group {
  border-top: 1px solid color-mix(in srgb, var(--kfs-text) 10%, transparent 90%) !important;
  padding-top: 18px !important;
}
.single-product .kf-apf-group-title,
.single-product .kf-apf-label {
  font-size: 1rem !important;
  margin-bottom: 10px !important;
}
.single-product .kf-apf-choice,
.single-product .apf-option,
.single-product .wapf-wrapper .wapf-radios li,
.single-product .wapf-wrapper .wapf-checkboxes li,
.single-product .wc-pao-addon .form-row {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.single-product .kf-apf-choice-inner,
.single-product .apf-option label,
.single-product .wapf-wrapper .wapf-radios label,
.single-product .wapf-wrapper .wapf-checkboxes label,
.single-product .wc-pao-addon label {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  position: relative;
}
.single-product .kf-apf-choice-inner::after,
.single-product .apf-option label::after,
.single-product .wapf-wrapper .wapf-radios label::after,
.single-product .wapf-wrapper .wapf-checkboxes label::after,
.single-product .wc-pao-addon label::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--kfs-text) 10%, transparent 90%);
}
.single-product .kf-apf-choice:last-child .kf-apf-choice-inner::after,
.single-product .apf-option:last-child label::after,
.single-product .wapf-wrapper .wapf-radios li:last-child label::after,
.single-product .wapf-wrapper .wapf-checkboxes li:last-child label::after,
.single-product .wc-pao-addon .form-row:last-child label::after {
  display:none;
}
.single-product .kf-apf-choice:has(input:checked) .kf-apf-choice-inner,
.single-product .apf-option:has(input:checked) label,
.single-product .wapf-wrapper .wapf-radios li:has(input:checked) label,
.single-product .wapf-wrapper .wapf-checkboxes li:has(input:checked) label,
.single-product .wc-pao-addon .form-row:has(input:checked) label {
  color: var(--kfs-primary) !important;
}
.single-product .kf-apf-choice input,
.single-product .apf-option input,
.single-product .wapf-wrapper input[type="radio"],
.single-product .wapf-wrapper input[type="checkbox"],
.single-product .wc-pao-addon input[type="checkbox"],
.single-product .wc-pao-addon input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--kfs-primary);
}
.single-product .summary select,
.single-product .summary textarea,
.single-product .summary input[type="text"],
.single-product .summary input[type="number"],
.single-product .summary input[type="email"],
.single-product .summary .kf-apf-input,
.single-product .summary .kf-apf-select {
  background: color-mix(in srgb, var(--kfs-surface) 88%, var(--kfs-bg) 12%) !important;
  border: 1px solid color-mix(in srgb, var(--kfs-text) 12%, transparent 88%) !important;
  box-shadow: none !important;
}
.single-product .summary .quantity {
  margin: 0 !important;
}
.single-product .summary .quantity .qty,
.single-product .quantity input.qty {
  min-height: 58px;
  border-radius: 18px !important;
  text-align: center;
  min-width: 112px;
}
.single-product form.cart .single_add_to_cart_button,
.single-product .summary .button.alt {
  min-height: 58px;
  border-radius: 18px !important;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: none !important;
}
.single-product .summary .button,
.single-product .summary .button.alt + .button {
  min-height: 58px;
  border-radius: 18px !important;
  box-shadow: none !important;
}
.single-product .woocommerce-Reviews-title,
.single-product .woocommerce-tabs h2 {
  color: var(--kfs-text) !important;
}
.single-product .woocommerce-tabs ul.tabs {
  border: 0 !important;
  margin: 18px 0 !important;
  padding: 0 !important;
  display: flex;
  gap: 10px;
}
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after { display:none !important; }
.single-product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}
.single-product .woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px !important;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kfs-surface) 90%, var(--kfs-bg) 10%) !important;
  border: 1px solid color-mix(in srgb, var(--kfs-text) 10%, transparent 90%) !important;
}
.single-product .woocommerce-tabs ul.tabs li.active a {
  background: color-mix(in srgb, var(--kfs-primary) 18%, var(--kfs-surface) 82%) !important;
  color: var(--kfs-text) !important;
  border-color: color-mix(in srgb, var(--kfs-primary) 36%, transparent 64%) !important;
}
.single-product #reviews,
.single-product .woocommerce-Tabs-panel {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.single-product #review_form_wrapper textarea,
.single-product #review_form_wrapper input[type="text"],
.single-product #review_form_wrapper input[type="email"] {
  background: color-mix(in srgb, var(--kfs-surface) 88%, var(--kfs-bg) 12%) !important;
  border: 1px solid color-mix(in srgb, var(--kfs-text) 12%, transparent 88%) !important;
}
.single-product .star-rating span::before,
.single-product p.stars a { color: var(--kfs-primary) !important; }
@media (min-width: 900px) {
  .single-product .product.type-product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .single-product .woocommerce-product-gallery {
    position: sticky; top: 110px;
  }
}


/* v0.4.8 custom product template */
.single-product .woocommerce-breadcrumb,
.single-product .product_meta,
.single-product .posted_in,
.single-product .sku_wrapper,
.single-product .related,
.single-product .up-sells,
.single-product .woocommerce-tabs,
.single-product .woocommerce-product-rating,
.single-product .woocommerce-product-details__short-description { display:none !important; }

.single-product .kfs-main {
  padding-bottom: 48px;
}
.single-product .kfs-product-page {
  padding: 18px 0 40px;
}
.single-product .kfs-product-shell {
  display: grid;
  gap: 20px;
}
.single-product .kfs-product-intro {
  display: grid;
  grid-template-columns: 120px minmax(0,1fr);
  gap: 18px;
  align-items: center;
}
.single-product .kfs-product-media-card,
.single-product .kfs-product-order-column,
.single-product .kfs-product-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.single-product .kfs-product-media-frame {
  background: color-mix(in srgb, var(--kfs-surface) 82%, var(--kfs-bg) 18%);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--kfs-text) 7%, transparent 93%);
}
.single-product .kfs-product-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-product .kfs-product-media-placeholder {
  text-align: center;
  gap: 8px;
  padding: 16px;
}
.single-product .kfs-product-placeholder-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--kfs-bg) 55%, var(--kfs-surface) 45%);
  color: color-mix(in srgb, var(--kfs-text) 35%, transparent 65%);
  margin: 0 auto;
}
.single-product .kfs-product-placeholder-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}
.single-product .kfs-product-placeholder-copy {
  color: var(--kfs-muted);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.single-product .kfs-product-summary-head {
  display: grid;
  gap: 6px;
}
.single-product .kfs-product-kicker {
  font-size: .88rem;
  color: var(--kfs-muted);
}
.single-product .kfs-product-kicker a { color: inherit; }
.single-product .kfs-product-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.single-product .kfs-product-price,
.single-product .kfs-product-price .amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--kfs-text);
}
.single-product .kfs-product-short-description,
.single-product .kfs-product-short-description p {
  margin: 0;
  color: var(--kfs-muted);
  font-size: 1rem;
}
.single-product .kfs-product-short-description--standalone {
  margin-top: -4px;
  max-width: 60ch;
}
.single-product .kfs-product-order-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 0 0;
}
.single-product .kfs-product-order-panel form.cart,
.single-product .kfs-product-order-panel .variations_form,
.single-product .kfs-product-order-panel .cart,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart {
  display: grid !important;
  gap: 18px;
  align-items: stretch;
}
.single-product .kfs-product-order-panel .kf-apf-wrap {
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.single-product .kfs-product-order-panel .kf-apf-group,
.single-product .kfs-product-order-panel .variations tbody {
  display: grid;
  gap: 10px;
}
.single-product .kfs-product-order-panel .kf-apf-group + .kf-apf-group {
  margin-top: 4px !important;
  padding-top: 12px !important;
  border-top: 1px solid color-mix(in srgb, var(--kfs-text) 8%, transparent 92%);
}
.single-product .kfs-product-order-panel .kf-apf-group-title,
.single-product .kfs-product-order-panel .kf-apf-label,
.single-product .kfs-product-order-panel .variations label {
  font-size: 1rem !important;
  font-weight: 800 !important;
  margin: 0 0 4px !important;
}
.single-product .kfs-product-order-panel .kf-apf-choice-inner,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-radios label,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-checkboxes label,
.single-product .kfs-product-order-panel .apf-option label,
.single-product .kfs-product-order-panel .wc-pao-addon label {
  grid-template-columns: 24px minmax(0,1fr) auto;
  gap: 12px;
  padding: 12px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.single-product .kfs-product-order-panel .kf-apf-choice-inner::after,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-radios label::after,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-checkboxes label::after,
.single-product .kfs-product-order-panel .apf-option label::after,
.single-product .kfs-product-order-panel .wc-pao-addon label::after {
  background: color-mix(in srgb, var(--kfs-text) 10%, transparent 90%);
}
.single-product .kfs-product-order-panel .kf-apf-choice input,
.single-product .kfs-product-order-panel .wapf-wrapper input[type="checkbox"],
.single-product .kfs-product-order-panel .wapf-wrapper input[type="radio"],
.single-product .kfs-product-order-panel .apf-option input,
.single-product .kfs-product-order-panel .wc-pao-addon input[type="checkbox"],
.single-product .kfs-product-order-panel .wc-pao-addon input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--kfs-primary);
}
.single-product .kfs-product-order-panel select,
.single-product .kfs-product-order-panel textarea,
.single-product .kfs-product-order-panel input[type="text"],
.single-product .kfs-product-order-panel input[type="number"],
.single-product .kfs-product-order-panel input[type="email"],
.single-product .kfs-product-order-panel .kf-apf-input,
.single-product .kfs-product-order-panel .kf-apf-select {
  background: color-mix(in srgb, var(--kfs-bg) 40%, var(--kfs-surface) 60%) !important;
  border: 1px solid color-mix(in srgb, var(--kfs-text) 12%, transparent 88%) !important;
  border-radius: 16px !important;
  min-height: 54px;
  color: var(--kfs-text) !important;
}
.single-product .kfs-product-order-panel textarea { min-height: 110px; }
.single-product .kfs-product-order-panel .quantity {
  width: 100%;
  max-width: 164px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  border: 1px solid color-mix(in srgb, var(--kfs-text) 12%, transparent 88%);
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--kfs-bg) 40%, var(--kfs-surface) 60%);
}
.single-product .kfs-product-order-panel .quantity .qty,
.single-product .kfs-product-order-panel input.qty {
  width: 64px;
  min-height: 52px;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-size: 1.05rem;
  padding: 0 4px !important;
}
.single-product .kfs-qty-btn {
  width: 48px;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--kfs-text);
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
}
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart,
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls {
  display: grid !important;
  grid-template-columns: max-content 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.single-product .kfs-product-order-panel .single_add_to_cart_button,
.single-product .kfs-product-order-panel .button.alt,
.single-product .kfs-product-order-panel .button[name="add-to-cart"] {
  min-height: 56px;
  border-radius: 18px !important;
  font-size: 1.05rem;
  padding: 14px 20px;
  width: 100%;
}
.single-product .kfs-product-order-panel .button:not(.single_add_to_cart_button):not(.alt) {
  min-height: 56px;
  border-radius: 18px !important;
  width: 100%;
}
.single-product .kfs-product-section {
  padding-top: 8px;
}
.single-product .kfs-product-section-head h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}
.single-product .kfs-product-section-body {
  color: var(--kfs-text);
}
.single-product .woocommerce-Reviews,
.single-product .comment-respond {
  background: transparent;
  border: 0;
  padding: 0;
}
.single-product .woocommerce-Reviews .comment-form-comment textarea,
.single-product .woocommerce-Reviews textarea#comment {
  background: color-mix(in srgb, var(--kfs-bg) 40%, var(--kfs-surface) 60%) !important;
  border: 1px solid color-mix(in srgb, var(--kfs-text) 12%, transparent 88%) !important;
  border-radius: 20px;
  color: var(--kfs-text);
}
.single-product .woocommerce-review-link,
.single-product .woocommerce-Reviews-title,
.single-product .woocommerce-Reviews .comment-reply-title {
  color: var(--kfs-text);
}
.single-product .comment-form-rating .stars a { color: var(--kfs-primary); }


.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 26px;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice {
  margin: 0 !important;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner {
  min-height: 54px;
  align-items: center;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner span:last-child {
  line-height: 1.2;
}
.single-product .kfs-product-order-panel .kf-apf-field-select select,
.single-product .kfs-product-order-panel .kf-apf-field-select .kf-apf-select {
  max-width: 360px;
}
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart {
  row-gap: 14px;
}
.single-product .kfs-product-order-panel .quantity {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 6px auto 0;
}
.single-product .kfs-product-order-panel .simple-product-controls > .single_add_to_cart_button,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
.single-product .kfs-product-order-panel .grouped-product-controls > .single_add_to_cart_button {
  grid-column: 1;
}
.single-product .kfs-product-order-panel {
  padding-bottom: 18px;
}
.single-product .kfs-product-reviews-section > .kfs-product-section-head {
  display: none;
}
.single-product #reviews > h2,
.single-product .woocommerce-Reviews-title {
  display: none;
}
@media (max-width: 640px) {
  .single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
  }
  .single-product .kfs-product-order-panel .quantity {
    max-width: 220px;
  }
}

@media (min-width: 860px) {
  .single-product .kfs-product-order-panel .kf-apf-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: start;
  }
  .single-product .kfs-product-order-panel .kf-apf-group:has(select),
  .single-product .kfs-product-order-panel .kf-apf-group:has(textarea),
  .single-product .kfs-product-order-panel .kf-apf-group.kf-apf-group--full {
    grid-column: 1 / -1;
  }
}
@media (max-width: 980px) {
  .single-product .kfs-product-title {
    font-size: 2.2rem;
  }
}
@media (max-width: 640px) {
  .single-product .kfs-product-page {
    padding-top: 10px;
  }
  .single-product .kfs-product-shell {
    gap: 18px;
  }
  .single-product .kfs-product-intro {
    grid-template-columns: 92px minmax(0,1fr);
    gap: 14px;
    align-items: start;
  }
  .single-product .kfs-product-title {
    font-size: 1.9rem;
  }
  .single-product .kfs-product-price,
  .single-product .kfs-product-price .amount {
    font-size: 1.55rem;
  }
  .single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart,
  .single-product .kfs-product-order-panel .simple-product-controls,
  .single-product .kfs-product-order-panel .grouped-product-controls {
    grid-template-columns: 1fr 1fr;
  }
  .single-product .kfs-product-order-panel .quantity {
    grid-column: 1 / -1;
    max-width: 180px;
  }
}
@media (max-width: 767px) {
  .single-product .kfs-product-media-frame { aspect-ratio: 16 / 11; border-radius: 24px; }
  .single-product .kfs-product-media-placeholder { padding: 18px; }
}


/* v0.5.2 rhythm pass */
.single-product .kfs-product-shell {
  max-width: 760px;
  margin: 0 auto;
  gap: 28px;
}
.single-product .kfs-product-intro,
.single-product .kfs-product-short-description--standalone,
.single-product .kfs-product-order-panel,
.single-product .kfs-product-details-section,
.single-product .kfs-product-reviews-section {
  width: min(100%, 680px);
  margin-left: auto;
  margin-right: auto;
}
.single-product .kfs-product-intro {
  align-items: start;
  gap: 20px;
}
.single-product .kfs-product-media-card--compact {
  width: 132px;
}
.single-product .kfs-product-summary-head--inline {
  align-content: center;
  min-height: 132px;
}
.single-product .kfs-product-title {
  font-size: clamp(2rem, 6vw, 3.1rem);
}
.single-product .kfs-product-price,
.single-product .kfs-product-price .amount {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}
.single-product .kfs-product-short-description--standalone {
  margin-top: -12px;
  max-width: 680px;
}
.single-product .kfs-product-order-panel {
  padding-top: 6px;
  padding-bottom: 26px;
}
.single-product .kfs-product-order-panel form.cart,
.single-product .kfs-product-order-panel .variations_form,
.single-product .kfs-product-order-panel .cart,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart {
  gap: 22px;
}
.single-product .kfs-product-order-panel .kf-apf-group,
.single-product .kfs-product-order-panel .variations tbody,
.single-product .kfs-product-order-panel .kf-apf-wrap {
  max-width: 620px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.single-product .kfs-product-order-panel .kf-apf-group {
  gap: 14px;
}
.single-product .kfs-product-order-panel .kf-apf-group + .kf-apf-group {
  margin-top: 10px !important;
  padding-top: 18px !important;
}
.single-product .kfs-product-order-panel .kf-apf-group-title,
.single-product .kfs-product-order-panel .kf-apf-label,
.single-product .kfs-product-order-panel .variations label {
  margin-bottom: 8px !important;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices {
  gap: 12px 20px;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner {
  min-height: 48px;
  padding: 6px 0 !important;
}
.single-product .kfs-product-order-panel .quantity {
  max-width: 180px;
  min-height: 56px;
  margin-top: 10px;
  margin-bottom: 6px;
}
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart,
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls {
  grid-template-columns: repeat(2, minmax(0,1fr));
  width: min(100%, 620px);
  margin-left: auto;
  margin-right: auto;
}
.single-product .kfs-product-order-panel .quantity {
  grid-column: 1 / -1;
}
.single-product .kfs-product-order-panel .single_add_to_cart_button,
.single-product .kfs-product-order-panel .button.alt,
.single-product .kfs-product-order-panel .button[name="add-to-cart"] {
  min-height: 58px;
}
.single-product .kfs-product-reviews-section {
  margin-top: 20px;
  padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--kfs-text) 8%, transparent 92%);
}
.single-product .kfs-product-reviews-section .comment-form,
.single-product .kfs-product-reviews-section #reviews,
.single-product .kfs-product-reviews-section .woocommerce-Reviews {
  max-width: 620px;
}
.single-product .kfs-product-reviews-section .comment-form > * + * {
  margin-top: 16px;
}
.single-product .kfs-product-reviews-section .form-submit {
  margin-top: 18px;
}
.single-product .kfs-product-reviews-section input[type="text"],
.single-product .kfs-product-reviews-section input[type="email"],
.single-product .kfs-product-reviews-section textarea {
  width: 100%;
}
@media (max-width: 640px) {
  .single-product .kfs-product-shell {
    gap: 24px;
  }
  .single-product .kfs-product-intro,
  .single-product .kfs-product-short-description--standalone,
  .single-product .kfs-product-order-panel,
  .single-product .kfs-product-details-section,
  .single-product .kfs-product-reviews-section {
    width: min(100%, calc(100% - 28px));
  }
  .single-product .kfs-product-order-panel .kf-apf-group,
  .single-product .kfs-product-order-panel .variations tbody,
  .single-product .kfs-product-order-panel .kf-apf-wrap,
  .single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart,
  .single-product .kfs-product-order-panel .simple-product-controls,
  .single-product .kfs-product-order-panel .grouped-product-controls,
  .single-product .kfs-product-reviews-section .comment-form,
  .single-product .kfs-product-reviews-section #reviews,
  .single-product .kfs-product-reviews-section .woocommerce-Reviews {
    width: 100%;
    max-width: none;
  }
  .single-product .kfs-product-intro {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
  }
  .single-product .kfs-product-media-card--compact {
    width: 112px;
  }
  .single-product .kfs-product-summary-head--inline {
    min-height: 112px;
  }
}


/* v0.5.3 product polish pass - actual build */
.single-product .kfs-product-shell {
  max-width: 780px;
}
.single-product .kfs-product-intro,
.single-product .kfs-product-short-description--standalone,
.single-product .kfs-product-order-panel,
.single-product .kfs-product-details-section,
.single-product .kfs-product-reviews-section {
  width: min(100%, 720px);
}
.single-product .kfs-product-intro {
  grid-template-columns: 124px minmax(0,1fr);
  gap: 20px;
}
.single-product .kfs-product-media-card--compact {
  width: 124px;
}
.single-product .kfs-product-summary-head--inline {
  min-height: 124px;
  display: flex;
  align-items: center;
}
.single-product .kfs-product-title-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px 18px;
  align-items: end;
}
.single-product .kfs-product-title {
  font-size: clamp(2rem, 6.4vw, 3.2rem);
  line-height: .98;
}
.single-product .kfs-product-price,
.single-product .kfs-product-price .amount {
  color: var(--kfs-accent);
  font-size: clamp(1.3rem, 4.2vw, 1.8rem);
  line-height: 1;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.single-product .kfs-product-short-description--standalone {
  max-width: 720px;
  margin-top: -8px;
  font-size: 1rem;
}
.single-product .kfs-product-order-panel .kf-apf-group,
.single-product .kfs-product-order-panel .variations tbody,
.single-product .kfs-product-order-panel .kf-apf-wrap,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart,
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls {
  max-width: 720px;
}
.single-product .kfs-product-order-panel .kf-apf-group-title,
.single-product .kfs-product-order-panel .kf-apf-label,
.single-product .kfs-product-order-panel .variations label {
  font-size: 1.55rem !important;
  line-height: 1.08;
  margin-bottom: 12px !important;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices {
  gap: 18px 28px;
}
.single-product .kfs-product-order-panel .kf-apf-choice-inner,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-radios label,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-checkboxes label,
.single-product .kfs-product-order-panel .apf-option label,
.single-product .kfs-product-order-panel .wc-pao-addon label {
  font-size: 1.18rem;
  gap: 14px;
  padding: 14px 0 !important;
}
.single-product .kfs-product-order-panel .kf-apf-choice input,
.single-product .kfs-product-order-panel .wapf-wrapper input[type="checkbox"],
.single-product .kfs-product-order-panel .wapf-wrapper input[type="radio"],
.single-product .kfs-product-order-panel .apf-option input,
.single-product .kfs-product-order-panel .wc-pao-addon input[type="checkbox"],
.single-product .kfs-product-order-panel .wc-pao-addon input[type="radio"] {
  width: 28px;
  height: 28px;
}
.single-product .kfs-product-order-panel select,
.single-product .kfs-product-order-panel textarea,
.single-product .kfs-product-order-panel input[type="text"],
.single-product .kfs-product-order-panel input[type="number"],
.single-product .kfs-product-order-panel input[type="email"],
.single-product .kfs-product-order-panel .kf-apf-input,
.single-product .kfs-product-order-panel .kf-apf-select {
  min-height: 58px;
  font-size: 1.08rem;
}
.single-product .kfs-product-order-panel .kf-apf-group button:not(.single_add_to_cart_button):not(.alt):not([name="add-to-cart"]),
.single-product .kfs-product-order-panel .kf-apf-wrap button:not(.single_add_to_cart_button):not(.alt):not([name="add-to-cart"]),
.single-product .kfs-product-order-panel .kf-apf-group .button:not(.single_add_to_cart_button):not(.alt):not([name="add-to-cart"]),
.single-product .kfs-product-order-panel .kf-apf-wrap .button:not(.single_add_to_cart_button):not(.alt):not([name="add-to-cart"]) {
  min-height: 56px;
  min-width: 96px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 1.18rem;
}
.single-product .kfs-product-order-panel .quantity {
  max-width: 196px;
  min-height: 62px;
  width: 196px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: stretch;
}
.single-product .kfs-qty-btn {
  width: 52px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  line-height: 1;
}
.single-product .kfs-product-order-panel .quantity .qty,
.single-product .kfs-product-order-panel input.qty {
  width: 100%;
  min-height: 60px;
  display: block;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0 !important;
  margin: 0;
}
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart,
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls {
  gap: 16px;
}
@media (max-width: 640px) {
  .single-product .kfs-product-intro,
  .single-product .kfs-product-short-description--standalone,
  .single-product .kfs-product-order-panel,
  .single-product .kfs-product-details-section,
  .single-product .kfs-product-reviews-section {
    width: min(100%, calc(100% - 24px));
  }
  .single-product .kfs-product-title-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .single-product .kfs-product-price,
  .single-product .kfs-product-price .amount {
    text-align: left;
  }
  .single-product .kfs-product-order-panel .kf-apf-group-title,
  .single-product .kfs-product-order-panel .kf-apf-label,
  .single-product .kfs-product-order-panel .variations label {
    font-size: 1.35rem !important;
  }
  .single-product .kfs-product-order-panel .kf-apf-choice-inner,
  .single-product .kfs-product-order-panel .wapf-wrapper .wapf-radios label,
  .single-product .kfs-product-order-panel .wapf-wrapper .wapf-checkboxes label,
  .single-product .kfs-product-order-panel .apf-option label,
  .single-product .kfs-product-order-panel .wc-pao-addon label {
    font-size: 1.08rem;
  }
}


/* v0.5.4 single product refinement */
.single-product .kfs-product-shell { width:min(100%, 780px); margin:0 auto; }
.single-product .kfs-product-intro { grid-template-columns: 120px minmax(0,1fr); gap: 20px; align-items: center; }
.single-product .kfs-product-media-frame { min-height: 120px; }
.single-product .kfs-product-media-placeholder { padding: 0; }
.single-product .kfs-product-placeholder-mark { width: 34px; height: 34px; border-radius: 12px; }
.single-product .kfs-product-placeholder-copy { display:none; }
.single-product .kfs-product-summary-head--inline { align-self:center; }
.single-product .kfs-product-title-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 14px; align-items:end; }
.single-product .kfs-product-title { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.single-product .kfs-product-price, .single-product .kfs-product-price .amount { color: var(--kfs-accent); font-size: 2rem; white-space: nowrap; }
.single-product .kfs-product-order-panel { width:min(100%, 780px); margin:0 auto; }
.single-product .kfs-product-order-panel .kf-apf-wrap { width:100%; max-width:720px; margin:0 auto 12px !important; }
.single-product .kfs-product-order-panel .kf-apf-group { width:100%; max-width:720px; margin:0 auto; }
.single-product .kfs-product-order-panel .kf-apf-group-title,
.single-product .kfs-product-order-panel .kf-apf-label { font-size: 1.1rem !important; }
.single-product .kfs-product-order-panel .kf-apf-field { width:100%; }
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-label,
.single-product .kfs-product-order-panel .kf-apf-field-select .kf-apf-label,
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-label { width:100%; margin-bottom:10px !important; }
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choices { display:grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 12px; max-width: 420px; margin: 0 auto; }
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner { display:flex; align-items:center; justify-content:center; min-height:60px; padding: 0 18px !important; border:1px solid color-mix(in srgb, var(--kfs-primary) 45%, transparent 55%) !important; border-radius: 999px !important; background: color-mix(in srgb, var(--kfs-primary) 10%, transparent 90%) !important; }
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner input { display:none; }
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner span:last-child { font-size:1rem; font-weight:800; text-transform: lowercase; }
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices { max-width: 720px; margin: 0 auto; gap: 10px 24px; }
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner { min-height: 58px; padding: 10px 0 !important; }
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner span:last-child { font-size: 1rem; font-weight: 600; }
.single-product .kfs-product-order-panel .kf-apf-field-select select, .single-product .kfs-product-order-panel .kf-apf-field-select .kf-apf-select { width:100%; max-width:100%; }
.single-product .kfs-product-order-panel .quantity { display:grid !important; grid-template-columns:56px 72px 56px; align-items:center; justify-content:center; width: 184px; max-width:184px; min-height:58px; border-radius:20px; margin: 16px auto 2px; overflow:hidden; }
.single-product .kfs-qty-btn { width:56px; min-height:58px; display:grid; place-items:center; padding:0; line-height:1; }
.single-product .kfs-qty-btn--minus { order:1; }
.single-product .kfs-product-order-panel .quantity .qty, .single-product .kfs-product-order-panel input.qty { order:2; width:72px; min-height:58px; font-size:1.1rem; font-weight:700; text-align:center; padding:0 !important; -moz-appearance:textfield; appearance:textfield; }
.single-product .kfs-qty-btn--plus { order:3; }
.single-product .kfs-product-order-panel .quantity input.qty::-webkit-outer-spin-button,
.single-product .kfs-product-order-panel .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin:0; }
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart,
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls { grid-template-columns:1fr 1fr !important; gap:16px; }
.single-product .kfs-product-order-panel .simple-product-controls > .single_add_to_cart_button,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
.single-product .kfs-product-order-panel .grouped-product-controls > .single_add_to_cart_button { grid-column:auto; }
.single-product .kfs-product-section.kfs-product-reviews-section { margin-top: 28px; padding-top: 28px; border-top:1px solid color-mix(in srgb, var(--kfs-text) 10%, transparent 90%); }
@media (max-width:640px){
  .single-product .kfs-product-shell, .single-product .kfs-product-order-panel { width:min(100%, 100%); }
  .single-product .kfs-product-intro { grid-template-columns: 110px minmax(0,1fr); gap: 16px; }
  .single-product .kfs-product-title-row { grid-template-columns:1fr; align-items:start; }
  .single-product .kfs-product-price, .single-product .kfs-product-price .amount { justify-self:start; }
  .single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choices { max-width:100%; }
}


/* v0.5.5 strict repair build */
.single-product .kfs-product-shell{max-width:760px;}
.single-product .kfs-product-intro,
.single-product .kfs-product-order-panel,
.single-product .kfs-product-reviews-section{width:min(100%,680px);margin-inline:auto;}
.single-product .kfs-product-intro{grid-template-columns:112px minmax(0,1fr);gap:18px;align-items:center;}
.single-product .kfs-product-media-card--compact{width:112px;}
.single-product .kfs-product-media-frame{aspect-ratio:1/1;min-height:112px;border-radius:22px;background:color-mix(in srgb,var(--kfs-surface) 86%, var(--kfs-bg) 14%);border:1px solid color-mix(in srgb,var(--kfs-text) 8%, transparent 92%);}
.single-product .kfs-product-media-placeholder{padding:0;display:grid;place-items:center;}
.single-product .kfs-product-placeholder-mark{width:30px;height:30px;border-radius:10px;background:transparent;opacity:.75;}
.single-product .kfs-product-title-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px 14px;}
.single-product .kfs-product-title{font-size:clamp(1.9rem,8vw,3.1rem);line-height:.96;}
.single-product .kfs-product-price,.single-product .kfs-product-price .amount{font-size:clamp(1.7rem,6vw,2.2rem);color:var(--kfs-accent);}
.single-product .kfs-product-order-panel .kf-apf-wrap,
.single-product .kfs-product-order-panel .kf-apf-group,
.single-product .kfs-product-order-panel .variations tbody,
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart{width:min(100%,620px);max-width:620px;margin-inline:auto !important;}
.single-product .kfs-product-order-panel .kf-apf-group-title,.single-product .kfs-product-order-panel .kf-apf-label{font-size:1.1rem !important;margin-bottom:12px !important;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-group-title,
.single-product .kfs-product-order-panel .kf-apf-field-select .kf-apf-group-title,
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-group-title,
.single-product .kfs-product-order-panel .kf-apf-field-radio > .kf-apf-label,
.single-product .kfs-product-order-panel .kf-apf-field-select > .kf-apf-label,
.single-product .kfs-product-order-panel .kf-apf-field-checkbox > .kf-apf-label{font-size:1.3rem !important;font-weight:800;}
.single-product .kfs-product-order-panel .kf-apf-field{margin-bottom:20px;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choices{display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px 16px;max-width:100%;margin:0;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice{display:contents;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner{display:flex;align-items:center;justify-content:center;min-height:54px;padding:0 20px !important;border-radius:999px !important;min-width:110px;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner span:last-child{font-size:1rem;font-weight:800;text-transform:lowercase;}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px 26px;max-width:100%;margin:0;}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice{min-width:0;}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner{display:flex;align-items:center;gap:14px;min-height:52px;padding:8px 0 !important;}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner span:last-child{font-size:1rem;font-weight:700;}
.single-product .kfs-product-order-panel .quantity{display:flex !important;align-items:center;justify-content:center;gap:0;width:164px;max-width:164px;min-height:54px;margin:24px auto 10px;border:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%);border-radius:22px;background:color-mix(in srgb,var(--kfs-surface) 92%, var(--kfs-bg) 8%);overflow:hidden;}
.single-product .kfs-product-order-panel .quantity .kfs-qty-input-wrap{order:2;display:flex;align-items:center;justify-content:center;width:52px;min-width:52px;height:54px;}
.single-product .kfs-qty-btn{width:56px;min-width:56px;height:54px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;font-size:1.6rem;line-height:1;color:var(--kfs-text);}
.single-product .kfs-qty-btn--minus{order:1;border-right:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%);}
.single-product .kfs-qty-btn--plus{order:3;border-left:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%);}
.single-product .kfs-product-order-panel .quantity .qty,.single-product .kfs-product-order-panel input.qty{order:2;width:52px !important;min-width:52px;height:54px;min-height:54px;border:0 !important;background:transparent !important;box-shadow:none !important;text-align:center;font-size:1.25rem;font-weight:800;padding:0 !important;margin:0 !important;}
.single-product .kfs-product-order-panel .simple-product-controls,.single-product .kfs-product-order-panel .grouped-product-controls,.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.single-product .kfs-product-order-panel .single_add_to_cart_button,.single-product .kfs-product-order-panel .button.alt,.single-product .kfs-product-order-panel .button[name="add-to-cart"]{min-height:60px;border-radius:20px;}
.single-product .kfs-product-reviews-section{margin-top:34px;padding-top:28px;border-top:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%);}
.single-product .kfs-product-reviews-section .comment-form,.single-product .kfs-product-reviews-section #reviews,.single-product .kfs-product-reviews-section .woocommerce-Reviews{max-width:620px;margin-inline:auto;}
.single-product .kfs-product-reviews-section .comment-form > * + *{margin-top:16px;}
.single-product .kfs-product-reviews-section .form-submit{margin-top:14px;}
@media (max-width:640px){
  .single-product .kfs-product-intro,.single-product .kfs-product-order-panel,.single-product .kfs-product-reviews-section{width:min(100%,calc(100% - 28px));}
  .single-product .kfs-product-intro{grid-template-columns:96px minmax(0,1fr);gap:16px;}
  .single-product .kfs-product-media-card--compact{width:96px;}
  .single-product .kfs-product-media-frame{min-height:96px;}
  .single-product .kfs-product-title-row{grid-template-columns:minmax(0,1fr);align-items:start;}
  .single-product .kfs-product-price,.single-product .kfs-product-price .amount{text-align:left;justify-self:start;}
  .single-product .kfs-product-order-panel .kf-apf-wrap,
  .single-product .kfs-product-order-panel .kf-apf-group,
  .single-product .kfs-product-order-panel .variations tbody,
  .single-product .kfs-product-order-panel .simple-product-controls,
  .single-product .kfs-product-order-panel .grouped-product-controls,
  .single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart,
  .single-product .kfs-product-reviews-section .comment-form,
  .single-product .kfs-product-reviews-section #reviews,
  .single-product .kfs-product-reviews-section .woocommerce-Reviews{width:100%;max-width:none;}
  .single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choices{grid-template-columns:1fr auto;}
  .single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner{min-width:92px;}
  .single-product .kfs-product-order-panel .quantity{margin-top:18px;}
}


/* v0.5.7 actual single product reset */
.kfs-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.single-product .kfs-product-shell{max-width:720px;margin:0 auto;gap:24px;}
.single-product .kfs-product-intro,.single-product .kfs-product-order-panel,.single-product .kfs-product-short-description--standalone{width:min(100%,640px);margin-inline:auto;}
.single-product .kfs-product-intro{grid-template-columns:96px minmax(0,1fr);gap:18px;align-items:center;}
.single-product .kfs-product-media-card--compact{width:96px;}
.single-product .kfs-product-media-frame{min-height:96px;aspect-ratio:1/1;border-radius:20px;background:color-mix(in srgb,var(--kfs-surface) 85%, var(--kfs-bg) 15%);border:1px solid color-mix(in srgb,var(--kfs-text) 8%, transparent 92%);}
.single-product .kfs-product-media-placeholder{padding:0;display:grid;place-items:center;}
.single-product .kfs-product-placeholder-mark{width:28px;height:28px;margin:0 auto;opacity:.8;background:transparent;}
.single-product .kfs-product-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:end;}
.single-product .kfs-product-title{font-size:clamp(2rem,7vw,3rem);line-height:.98;margin:0;}
.single-product .kfs-product-price,.single-product .kfs-product-price .amount{font-size:clamp(1.8rem,6vw,2.2rem);color:var(--kfs-accent)!important;font-weight:800;white-space:nowrap;}
.single-product .kfs-product-short-description--standalone{display:none;}
.single-product .kfs-product-order-panel{padding-top:8px;padding-bottom:8px;}
.single-product .kfs-product-order-panel .kf-apf-wrap,.single-product .kfs-product-order-panel .kf-apf-group,.single-product .kfs-product-order-panel .variations tbody,.single-product .kfs-product-order-panel .simple-product-controls,.single-product .kfs-product-order-panel .grouped-product-controls,.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart{width:min(100%,560px);max-width:560px;margin-inline:auto!important;}
.single-product .kfs-product-order-panel .kf-apf-group{gap:16px;margin-bottom:8px;}
.single-product .kfs-product-order-panel .kf-apf-group-title,.single-product .kfs-product-order-panel .kf-apf-label{font-size:1.2rem!important;font-weight:800!important;text-align:center;margin-bottom:12px!important;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choices{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:12px;max-width:360px;margin:0 auto;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice{display:block;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner{display:flex;align-items:center;justify-content:center;min-height:58px;padding:0 18px!important;border-radius:999px!important;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner input{display:none!important;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner span:last-child{font-size:1rem;font-weight:800;text-transform:lowercase;}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;max-width:420px;margin:0 auto;}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 0!important;}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner::after{display:none!important;}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner span:last-child{font-size:1rem;font-weight:700;}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox input[type="checkbox"],.single-product .kfs-product-order-panel .kf-apf-field-checkbox input[type="radio"],.single-product .kfs-product-order-panel .kf-apf-field-radio input[type="checkbox"],.single-product .kfs-product-order-panel .kf-apf-field-radio input[type="radio"]{width:22px;height:22px;accent-color:var(--kfs-primary);}
.single-product .kfs-product-order-panel .quantity{display:flex!important;align-items:center;justify-content:center;width:180px;max-width:180px;min-height:56px;margin:22px auto 10px;border:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%);border-radius:20px;background:color-mix(in srgb,var(--kfs-surface) 94%, var(--kfs-bg) 6%);overflow:hidden;}
.single-product .kfs-product-order-panel .quantity .kfs-qty-input-wrap{display:flex;align-items:center;justify-content:center;width:68px;min-width:68px;height:56px;order:2;}
.single-product .kfs-product-order-panel .quantity .qty,.single-product .kfs-product-order-panel input.qty{width:68px!important;min-width:68px;height:56px;min-height:56px;border:0!important;background:transparent!important;box-shadow:none!important;text-align:center;font-size:1.3rem;font-weight:800;padding:0!important;margin:0!important;}
.single-product .kfs-qty-btn{width:56px;min-width:56px;height:56px;border:0;background:transparent;display:flex!important;align-items:center;justify-content:center;color:var(--kfs-text)!important;font-size:1.7rem;font-weight:500;line-height:1;}
.single-product .kfs-qty-btn--minus{order:1;border-right:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%);}
.single-product .kfs-qty-btn--plus{order:3;border-left:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%);}
.single-product .kfs-product-order-panel .simple-product-controls,.single-product .kfs-product-order-panel .grouped-product-controls,.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:min(100%,560px);max-width:560px;margin-inline:auto!important;}
.single-product .kfs-product-order-panel .quantity{grid-column:1/-1;}
.single-product .kfs-product-order-panel .single_add_to_cart_button,.single-product .kfs-product-order-panel .button.alt,.single-product .kfs-product-order-panel .button[name="add-to-cart"]{min-height:58px;border-radius:18px!important;width:100%;}
.single-product .kfs-product-reviews-section,.single-product #reviews,.single-product .woocommerce-Reviews,.single-product .comment-respond{display:none!important;}
@media (max-width:640px){
  .single-product .kfs-product-intro,.single-product .kfs-product-order-panel{width:min(100%,calc(100% - 28px));}
  .single-product .kfs-product-intro{grid-template-columns:96px minmax(0,1fr);gap:16px;}
  .single-product .kfs-product-title-row{grid-template-columns:minmax(0,1fr);align-items:start;}
  .single-product .kfs-product-price,.single-product .kfs-product-price .amount{text-align:left;justify-self:start;}
}


/* v0.5.8 hard quantity + placeholder fix */
.single-product .kfs-product-media-placeholder{font-size:0 !important;line-height:0 !important;}
.single-product .kfs-product-media-placeholder *{font-size:0 !important;}
.single-product .kfs-product-media-placeholder svg{width:20px !important;height:20px !important;display:block !important;}
.single-product .kfs-product-media-frame{display:grid !important;place-items:center !important;}
.single-product .kfs-product-order-panel,
.single-product .kfs-product-order-panel .kf-apf-wrap,
.single-product .kfs-product-order-panel .kf-apf-group,
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart{max-width:600px !important;}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choices,
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices{max-width:520px !important;}
.single-product .kfs-product-order-panel .quantity.kfs-fixed-qty{
  display:grid !important;
  grid-template-columns:56px 72px 56px !important;
  align-items:center !important;
  justify-content:center !important;
  width:184px !important;
  max-width:184px !important;
  min-height:56px !important;
  margin:22px auto 10px !important;
  border:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%) !important;
  border-radius:22px !important;
  background:color-mix(in srgb,var(--kfs-surface) 94%, var(--kfs-bg) 6%) !important;
  overflow:hidden !important;
}
.single-product .kfs-product-order-panel .quantity.kfs-fixed-qty .kfs-qty-input-wrap{
  display:flex !important;align-items:center !important;justify-content:center !important;
  width:72px !important;min-width:72px !important;height:56px !important;order:2 !important;
}
.single-product .kfs-product-order-panel .quantity.kfs-fixed-qty .qty,
.single-product .kfs-product-order-panel .quantity.kfs-fixed-qty input.qty{
  width:72px !important;min-width:72px !important;height:56px !important;min-height:56px !important;
  border:0 !important;background:transparent !important;box-shadow:none !important;
  text-align:center !important;font-size:1.3rem !important;font-weight:800 !important;
  padding:0 !important;margin:0 !important;color:var(--kfs-text) !important;
}
.single-product .kfs-product-order-panel .quantity.kfs-fixed-qty .kfs-qty-btn,
.single-product .kfs-qty-btn{
  width:56px !important;min-width:56px !important;height:56px !important;
  display:flex !important;align-items:center !important;justify-content:center !important;
  border:0 !important;background:transparent !important;color:var(--kfs-text) !important;
  font-size:1.7rem !important;font-weight:700 !important;line-height:1 !important;
  opacity:1 !important;visibility:visible !important;
}
.single-product .kfs-product-order-panel .quantity.kfs-fixed-qty .kfs-qty-btn--minus{order:1 !important;border-right:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%) !important;}
.single-product .kfs-product-order-panel .quantity.kfs-fixed-qty .kfs-qty-btn--plus{order:3 !important;border-left:1px solid color-mix(in srgb,var(--kfs-text) 10%, transparent 90%) !important;}
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart{grid-template-columns:1fr 1fr !important;}
.single-product .kfs-product-order-panel .quantity.kfs-fixed-qty{grid-column:1 / -1 !important;}

/* v0.5.9 APF width + spacing refinement */
.single-product .kfs-product-shell {
  max-width: 860px;
}
.single-product .kfs-product-intro,
.single-product .kfs-product-order-panel {
  width: min(100%, 760px);
}
.single-product .kfs-product-order-panel {
  margin-top: 18px;
}
.single-product .kfs-product-order-panel form.cart,
.single-product .kfs-product-order-panel .variations_form,
.single-product .kfs-product-order-panel .cart,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart,
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls,
.single-product .kfs-product-order-panel .kf-apf-wrap {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.single-product .kfs-product-order-panel .kf-apf-group {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.single-product .kfs-product-order-panel .kf-apf-group-title,
.single-product .kfs-product-order-panel .kf-apf-label,
.single-product .kfs-product-order-panel .variations label {
  font-size: 1.1rem !important;
  line-height: 1.2;
  margin: 0 0 10px !important;
}
.single-product .kfs-product-order-panel .kf-apf-group + .kf-apf-group {
  margin-top: 20px;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices,
.single-product .kfs-product-order-panel .kf-apf-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  align-items: start;
}
.single-product .kfs-product-order-panel .kf-apf-choice,
.single-product .kfs-product-order-panel .apf-option,
.single-product .kfs-product-order-panel .wc-pao-addon {
  width: 100%;
}
.single-product .kfs-product-order-panel .kf-apf-choice-inner,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-radios label,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-checkboxes label,
.single-product .kfs-product-order-panel .apf-option label,
.single-product .kfs-product-order-panel .wc-pao-addon label {
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 10px 0 !important;
  font-size: 1rem;
}
.single-product .kfs-product-order-panel .kf-apf-choice-inner::after,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-radios label::after,
.single-product .kfs-product-order-panel .wapf-wrapper .wapf-checkboxes label::after,
.single-product .kfs-product-order-panel .apf-option label::after,
.single-product .kfs-product-order-panel .wc-pao-addon label::after {
  display: none !important;
}
.single-product .kfs-product-order-panel .kf-apf-choice input,
.single-product .kfs-product-order-panel .wapf-wrapper input[type="checkbox"],
.single-product .kfs-product-order-panel .wapf-wrapper input[type="radio"],
.single-product .kfs-product-order-panel .apf-option input,
.single-product .kfs-product-order-panel .wc-pao-addon input[type="checkbox"],
.single-product .kfs-product-order-panel .wc-pao-addon input[type="radio"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
}
.single-product .kfs-product-order-panel .kf-apf-group button:not(.single_add_to_cart_button):not(.alt):not([name="add-to-cart"]),
.single-product .kfs-product-order-panel .kf-apf-wrap button:not(.single_add_to_cart_button):not(.alt):not([name="add-to-cart"]),
.single-product .kfs-product-order-panel .kf-apf-group .button:not(.single_add_to_cart_button):not(.alt):not([name="add-to-cart"]),
.single-product .kfs-product-order-panel .kf-apf-wrap .button:not(.single_add_to_cart_button):not(.alt):not([name="add-to-cart"]) {
  min-width: 140px;
  width: auto;
  padding: 12px 24px;
  font-size: 1rem;
}
.single-product .kfs-product-order-panel .quantity,
.single-product .kfs-product-order-panel .kfs-fixed-qty {
  margin: 10px auto 14px !important;
}
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart {
  margin-top: 8px;
  gap: 14px;
}
@media (max-width: 680px) {
  .single-product .kfs-product-intro,
  .single-product .kfs-product-order-panel {
    width: min(100%, 680px);
  }
  .single-product .kfs-product-order-panel .kf-apf-group,
  .single-product .kfs-product-order-panel .kf-apf-wrap,
  .single-product .kfs-product-order-panel form.cart,
  .single-product .kfs-product-order-panel .simple-product-controls,
  .single-product .kfs-product-order-panel .grouped-product-controls,
  .single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart {
    max-width: 100%;
  }
}

/* v0.6.0 single product layout rescue */
.single-product .kfs-product-shell,
.single-product .kfs-product-intro,
.single-product .kfs-product-short-description--standalone,
.single-product .kfs-product-order-panel {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.single-product .kfs-product-order-panel {
  padding-top: 8px;
  padding-bottom: 8px;
}
.single-product .kfs-product-order-panel .kf-apf-wrap {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}
.single-product .kfs-product-order-panel .kf-apf-group,
.single-product .kfs-product-order-panel .kf-apf-field,
.single-product .kfs-product-order-panel .kf-apf-choices {
  width: 100%;
  max-width: none;
}
.single-product .kfs-product-order-panel .kf-apf-group + .kf-apf-group {
  margin-top: 0 !important;
  padding-top: 10px !important;
}
.single-product .kfs-product-order-panel .kf-apf-group-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  margin: 0 0 8px !important;
}
.single-product .kfs-product-order-panel .kf-apf-field {
  margin: 0 0 14px !important;
  padding: 0 !important;
}
.single-product .kfs-product-order-panel .kf-apf-field-radio {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-label {
  margin: 0 !important;
  font-size: 1rem !important;
}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice {
  border: 1px solid color-mix(in srgb, var(--kfs-primary) 28%, transparent 72%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--kfs-primary) 10%, var(--kfs-surface) 90%);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 52px;
  padding: 0 !important;
}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choice span {
  font-size: 1rem;
  font-weight: 800;
  text-transform: lowercase;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-label,
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-group-title {
  margin-bottom: 10px !important;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choices {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px !important;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice {
  border: 0;
  padding: 0;
  background: transparent;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 0 0 10px !important;
}
.single-product .kfs-product-order-panel .kf-apf-field-checkbox .kf-apf-choice-inner::after {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  background: color-mix(in srgb, var(--kfs-text) 10%, transparent 90%);
  margin-top: 10px;
}
.single-product .kfs-product-order-panel .quantity {
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}
.single-product .kfs-product-order-panel form.cart,
.single-product .kfs-product-order-panel .variations_form,
.single-product .kfs-product-order-panel .cart,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart {
  gap: 12px !important;
}
.single-product .kfs-product-order-panel .simple-product-controls,
.single-product .kfs-product-order-panel .grouped-product-controls,
.single-product .kfs-product-order-panel .woocommerce-variation-add-to-cart {
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 12px;
}
.single-product .kfs-product-order-panel .single_add_to_cart_button,
.single-product .kfs-product-order-panel .button.alt,
.single-product .kfs-product-order-panel .button[name="add-to-cart"] {
  min-width: 0;
}
.single-product .kfs-product-order-panel .quantity { grid-column: 1 / -1; }
.single-product .kfs-product-reviews-section,
.single-product .woocommerce-Reviews,
.single-product .comment-respond,
.single-product #reviews {
  display: none !important;
}
.single-product .kfs-product-media-placeholder {
  padding: 0 !important;
}
.single-product .kfs-product-placeholder-copy { display: none !important; }
@media (max-width: 640px) {
  .single-product .kfs-product-shell,
  .single-product .kfs-product-intro,
  .single-product .kfs-product-short-description--standalone,
  .single-product .kfs-product-order-panel { max-width: none; }
  .single-product .kfs-product-order-panel .kf-apf-field-radio {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .single-product .kfs-product-order-panel .kf-apf-field-radio .kf-apf-choices {
    width: 100%;
  }
}
