/* Main storefront */
.vkm-page-grid { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); align-items: start; }
.vkm-category-rail {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden auto;
  padding: 18px 8px 28px;
  background: var(--white);
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
}
.admin-bar .vkm-category-rail { top: calc(var(--header-height) + 32px); height: calc(100vh - var(--header-height) - 32px); }
.vkm-category-search { height: 54px; margin: 0 0 18px; padding: 0 16px; }
.vkm-category-search::after { content: "⌕"; color: var(--brand); font-size: 24px; }
.vkm-category-search input { font-size: 16px; font-weight: 600; }
.vkm-category-list { list-style: none; margin: 0; padding: 0; }
.vkm-category-list li { margin: 0 0 5px; }
.vkm-category-list button {
  width: 100%; min-height: 76px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.vkm-category-list button:hover { background: #f8fafc; }
.vkm-category-list button.active { border-color: color-mix(in srgb, var(--brand) 24%, white); background: var(--brand-lt); color: #8f2933; }
.vkm-category-thumb {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--brand);
  font-weight: 900;
}
.vkm-category-thumb img { width: 100%; height: 100%; object-fit: contain; }
.vkm-category-list strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 800; }
.vkm-category-arrow { color: #c0cbd8; font-size: 24px; text-align: center; }
.vkm-category-list button.active .vkm-category-arrow { color: var(--brand); font-size: 12px; }
.vkm-category-empty { padding: 20px 12px; color: var(--muted); text-align: center; }

/* Optional parent > subcategory drill-down. Flat-list selectors above stay unchanged. */
.vkm-category-list--hierarchical button.has-children .vkm-category-arrow,
.vkm-category-list--hierarchical button.active.has-children .vkm-category-arrow { color: currentColor; font-size: 24px; }
.vkm-category-list--hierarchical .vkm-category-drill-head { margin-bottom: 8px; }
.vkm-category-list--hierarchical .vkm-category-drill-head button {
  min-height: 52px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.vkm-category-list--hierarchical .vkm-category-drill-head strong { font-weight: 900; }
.vkm-category-list--hierarchical .vkm-category-drill-back { color: var(--black); font-size: 24px; line-height: 1; text-align: center; }
.vkm-category-list--hierarchical .vkm-category-go { margin-bottom: 8px; }
.vkm-category-list--hierarchical .vkm-category-go button { border-bottom: 1px solid var(--border); border-radius: 12px; }
.vkm-main { min-width: 0; padding: 0 20px 48px; }
.vkm-banner {
  max-width: 1710px;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: var(--white);
}
.vkm-banner img { display: block; width: 100%; height: clamp(250px, 29vw, 430px); object-fit: cover; }
.vkm-features {
  max-width: 1710px;
  min-height: 104px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin: 0 auto 28px;
  padding: 14px 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
}
.vkm-features > div { display: flex; align-items: center; gap: 16px; padding: 5px 18px; }
.vkm-features > div > span {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: var(--brand-lt);
  color: var(--brand);
  font-size: 24px;
  font-weight: 900;
}
.vkm-features p { display: flex; flex-direction: column; margin: 0; }
.vkm-features strong { font-size: 16px; font-weight: 900; }
.vkm-features small { margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.vkm-collection-heading {
  max-width: 1710px;
  min-height: 114px;
  display: flex; align-items: center;
  gap: 24px;
  margin: 0 auto 28px;
  padding: 22px 34px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
}
.vkm-heading-mark { width: 28px; height: 28px; border: 1px solid color-mix(in srgb, var(--brand) 30%, white); border-radius: 50%; background: var(--brand-lt); }
.vkm-collection-heading p { display: flex; flex-direction: column; margin: 0; }
.vkm-collection-heading small { color: var(--muted); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.vkm-collection-heading strong { font-size: 29px; line-height: 1.1; font-weight: 900; }
.vkm-availability {
  max-width: 1710px;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(470px, auto) 1fr;
  align-items: center;
  gap: 20px;
  margin: 0 auto 52px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
}
.vkm-availability-label { color: #334155; font-size: 14px; white-space: nowrap; }
.vkm-availability-label::first-letter { color: var(--brand); }
.vkm-availability-toggle { min-height: 56px; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 14px; background: #edf1f6; }
.vkm-filter-pill {
  min-height: 46px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-transform: none;
  touch-action: manipulation;
}
.vkm-filter-pill i { width: 11px; height: 11px; border-radius: 50%; background: #9aabc0; }
.vkm-filter-pill strong { white-space: nowrap; font-size: 14px; font-weight: 900; }
.vkm-filter-pill span { padding: 4px 9px; border-radius: 999px; background: #dbe2eb; color: #526075; font-size: 10px; font-weight: 900; white-space: nowrap; }
.vkm-filter-pill.active { background: var(--white); color: var(--black); box-shadow: 0 3px 12px rgba(15, 23, 42, .08); }
.vkm-filter-pill.active i { background: var(--green); box-shadow: 0 0 0 4px #d9f9ed; }
.vkm-filter-pill.active span { background: var(--green); color: var(--white); }
.vkm-availability > p { justify-self: end; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.vkm-availability > p:first-letter { color: var(--green); }
.vkm-product-grid {
  max-width: 1710px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
  margin: 0 auto;
}
.vkm-product-card {
  min-width: 0;
  min-height: 280px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 28px;
  row-gap: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .035);
  overflow: hidden;
}
.vkm-product-card.is-out { opacity: .65; }
.vkm-product-media {
  grid-row: 1 / 3;
  width: 100%;
  aspect-ratio: 1;
  align-self: center;
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid #edf1f6;
  border-radius: 19px;
  background: #fafbfd;
}
.vkm-product-media img { width: 92%; height: 92%; object-fit: contain; transition: transform .25s ease; }
.vkm-product-card:hover .vkm-product-media img { transform: scale(1.035); }
.vkm-product-info { min-width: 0; align-self: center; }
.vkm-product-category {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #f2f6fa;
  color: #526075;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vkm-stock-status { display: inline-flex; margin-left: 8px; padding: 6px 10px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 900; }
.product-name { display: block; margin: 16px 0 12px; color: var(--black); font-size: 20px !important; font-weight: 900 !important; line-height: 1.28; text-decoration: none !important; text-transform: uppercase !important; }
.vkm-product-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.product-price { margin: 0; color: var(--black) !important; font-size: 21px !important; font-weight: 900 !important; }
.vkm-gst-badge, .vkm-cart-item-price > span {
  padding: 5px 10px;
  border: 1px solid #5ebdff;
  border-radius: 999px;
  background: #eaf7ff;
  color: #0875d1;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.vkm-minimum { margin: 22px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.vkm-minimum strong { color: #334155; font-weight: 900; }
.vkm-tier-line { margin: 8px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.vkm-product-actions { grid-column: 2; display: flex; justify-content: flex-end; align-items: center; min-height: 48px; }
.quote-btn-outline {
  min-width: 210px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--brand) 18%, transparent);
}
.quote-btn-outline:hover { background: var(--brand-dk); }
.quote-btn-outline:disabled { opacity: .45; cursor: not-allowed; }
.quote-btn-outline span { font-size: 20px; line-height: 1; }
.vkm-card-quantity, .vkm-cart-quantity { display: flex; align-items: center; gap: 9px; }
.vkm-qty-remove, .vkm-qty-button {
  width: 45px; height: 45px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid #d9dfe8;
  border-radius: 50%;
  background: var(--white);
  color: #9aa3af;
  font-size: 23px;
  cursor: pointer;
}
.vkm-qty-remove { border-color: #ff6370; color: #ff4558; }
.vkm-qty-remove svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vkm-qty-button.is-plus { border-color: var(--brand); background: var(--brand); color: var(--white); }
.vkm-qty-button:disabled { opacity: .45; cursor: not-allowed; }
.vkm-qty-value, .vkm-cart-quantity input {
  width: 80px; height: 45px;
  display: grid; place-items: center;
  padding: 0 8px;
  border: 1px solid #d8dee7;
  border-radius: 3px;
  background: var(--white);
  color: #303640;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}
.vkm-loading, .vkm-empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-items: center; padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: var(--white); color: var(--muted); font-weight: 800; }
