/* ==========================================================================
   Khareedoo storefront
   Layout modelled on markaz.app/shop, palette kept on the Khareedoo brand.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — sampled from the logo; swap to restyle the whole storefront */
  --kh-primary: #fe6414;
  --kh-primary-dark: #d94f0d;
  --kh-primary-darker: #a83c08;
  --kh-primary-tint: #fff3ec;
  --kh-primary-tint-2: #ffe4d4;

  /* Neutrals */
  --kh-navy: #101a3d;
  --kh-navy-2: #1b2650;
  --kh-900: #1d2939;
  --kh-800: #26313f;
  --kh-700: #344054;
  --kh-600: #475467;
  --kh-500: #667085;
  --kh-400: #98a2b3;
  --kh-300: #d0d5dd;
  --kh-200: #eaecf0;
  --kh-100: #f2f4f7;
  --kh-50: #f9fafb;
  --kh-white: #fff;
  /* Warm page ground; cards and panels stay white on top of it. */
  --kh-page: #fdf7f2;

  /* Header chrome — sampled from the Khareedoo logo (#fe6414 orange + near-black) */
  --kh-trust-bg: #16110e;
  --kh-catbar-bg: #fdf7f2;
  --kh-brand-accent: #fe6414;
  --kh-brand-accent-dark: #d94f0d;
  --kh-brand-ink: #1c1c1c;
  --kh-hero-ink: #1c1613;
  /* Footer black, with the newsletter band a step lighter above it. */
  --kh-footer-bg: #000;
  --kh-news-bg: #171717;
  --kh-hot: #1c1c1c;
  /* Warm charcoal-to-orange wash, mirroring the reference's neutral→brand ramp */
  --kh-masthead: linear-gradient(90deg, #43332b 0%, #7d4119 28%, #c2530f 58%, #f2610f 84%, #fe6414 100%);

  /* Semantic */
  --kh-rose: #be123c;
  --kh-rose-tint: #fff1f3;
  --kh-amber: #f59e0b;
  --kh-green: #027a48;
  --kh-green-tint: #ecfdf3;

  /* Shape */
  --kh-r-sm: 8px;
  --kh-r: 12px;
  --kh-r-lg: 16px;
  --kh-r-xl: 24px;
  --kh-r-pill: 999px;

  /* Elevation */
  --kh-shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --kh-shadow-sm: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06);
  --kh-shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .1), 0 2px 4px -2px rgba(16, 24, 40, .06);
  --kh-shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);

  /* Layout */
  --kh-container: 1280px;
  --kh-gutter: 20px;
  --kh-header-h: 72px;

  --kh-sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Cart glyph, used as a CSS mask on WooCommerce's own add-to-cart button. */
  --kh-cart-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M2 3h2.2l2.3 12.1a2 2 0 0 0 2 1.6h8.6a2 2 0 0 0 2-1.6L21 7H5.4'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--kh-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--kh-700);
  background: var(--kh-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--kh-primary); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--kh-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

svg { display: block; flex: none; }

:focus-visible {
  outline: 2px solid var(--kh-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.kh-container {
  width: 100%;
  max-width: var(--kh-container);
  margin-inline: auto;
  padding-inline: var(--kh-gutter);
}

.kh-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.kh-skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--kh-primary);
  color: #fff;
  border-radius: 0 0 var(--kh-r-sm) var(--kh-r-sm);
  font-weight: 600;
  transition: top .2s;
}
.kh-skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Buttons / chips
   -------------------------------------------------------------------------- */

.kh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--kh-r-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .18s, border-color .18s, color .18s, transform .12s, box-shadow .18s;
}
.kh-btn:active { transform: translateY(1px); }

.kh-btn--primary {
  background: var(--kh-primary);
  border-color: var(--kh-primary);
  color: #fff;
  box-shadow: var(--kh-shadow-xs);
}
.kh-btn--primary:hover {
  background: var(--kh-primary-dark);
  border-color: var(--kh-primary-dark);
  color: #fff;
}

.kh-btn--ghost {
  background: #fff;
  border-color: var(--kh-300);
  color: var(--kh-700);
}
.kh-btn--ghost:hover { border-color: var(--kh-primary); color: var(--kh-primary); }

.kh-btn--dark {
  background: var(--kh-navy);
  border-color: var(--kh-navy);
  color: #fff;
}
.kh-btn--dark:hover { background: var(--kh-navy-2); color: #fff; }

.kh-btn--sm { padding: 8px 14px; font-size: 13px; }
.kh-btn--lg { padding: 14px 26px; font-size: 15px; }
.kh-btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   4. Trust bar (black strip above the masthead)
   -------------------------------------------------------------------------- */

.kh-trustbar {
  background: var(--kh-trust-bg);
  color: #fff;
  font-size: 14px;
}
.kh-trustbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}
.kh-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: #fff;
  font-weight: 400;
}
.kh-trust svg { color: #fff; }

@media (max-width: 1100px) {
  .kh-trustbar { font-size: 13px; }
  .kh-trustbar__inner { gap: 14px; }
}
@media (max-width: 900px) {
  .kh-trustbar__inner {
    justify-content: flex-start;
    gap: 26px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .kh-trustbar__inner::-webkit-scrollbar { display: none; }
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.kh-header {
  position: relative;
  z-index: 200;
  background: #fff;
}

/* Masthead — gradient band carrying logo, search and account nav */
.kh-masthead { background: var(--kh-masthead); }
.kh-masthead__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 80px;
}

/* Brand lockup */
.kh-brand { flex: none; display: flex; align-items: center; }
.kh-brand img {
  height: 46px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}
/* The supplied logo is dark-on-transparent; knock it to white so it reads on
   the gradient exactly like the reference. Remove this rule to show it in
   full colour instead. */
.kh-brand--invert img { filter: brightness(0) invert(1); }

/* Search */
.kh-hsearch { flex: 1; min-width: 0; max-width: 740px; }
.kh-hsearch__form {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 5px 0 18px;
  background: #fff;
  border-radius: var(--kh-r-pill);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.kh-hsearch__icon { color: var(--kh-500); flex: none; }
.kh-hsearch__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--kh-900);
}
.kh-hsearch__input:focus { outline: none; }
.kh-hsearch__input::placeholder { color: var(--kh-500); }

.kh-hsearch__tools { display: flex; align-items: center; gap: 12px; flex: none; }
.kh-hsearch__chip {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--kh-hot);
  color: #fff;
}
.kh-hsearch__chip:hover { background: var(--kh-brand-accent); color: #fff; }

/* Camera (image search) with the reference's teal progress arc */
.kh-hsearch__cam {
  position: relative;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--kh-800);
}
.kh-hsearch__cam::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--kh-brand-accent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: kh-cam-spin 2.4s linear infinite;
  will-change: transform;
}
.kh-hsearch__cam:hover { color: var(--kh-brand-accent); }
/* Tighten the orbit on hover so it reads as interactive. */
.kh-hsearch__cam:hover::after { animation-duration: 1s; }

@keyframes kh-cam-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.kh-hsearch__btn {
  flex: none;
  height: 42px;
  padding: 0 32px;
  border-radius: var(--kh-r-pill);
  /* Ink rather than orange — the masthead's right edge is already brand
     orange, so an orange button would disappear into it. */
  background: var(--kh-brand-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .18s;
}
.kh-hsearch__btn:hover { background: #000; }

/* Account nav */
.kh-hnav { display: flex; align-items: center; gap: 26px; flex: none; }
.kh-hnav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .18s;
}
.kh-hnav__item:hover { color: #fff; opacity: .82; }
.kh-hnav__badge {
  position: absolute;
  top: -6px;
  left: 13px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--kh-r-pill);
  background: var(--kh-hot);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

/* Legacy logo lockup — still used in the footer and mobile drawer */
.kh-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.kh-logo img { max-height: 42px; width: auto; }
/* Search (used by the archive / 404 empty states) */
.kh-search { flex: 1; max-width: 620px; position: relative; }
.kh-search__form {
  display: flex;
  align-items: center;
  height: 44px;
  background: var(--kh-100);
  border: 1.5px solid transparent;
  border-radius: var(--kh-r-sm);
  transition: border-color .18s, background-color .18s;
}
.kh-search__form:focus-within {
  background: #fff;
  border-color: var(--kh-primary);
  box-shadow: 0 0 0 4px rgba(255, 100, 22, .1);
}
.kh-search__icon { padding: 0 12px; color: var(--kh-400); }
.kh-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--kh-900);
}
.kh-search__input:focus { outline: none; }
.kh-search__input::placeholder { color: var(--kh-400); }
.kh-search__submit {
  height: 34px;
  margin-right: 5px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--kh-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.kh-search__submit:hover { background: var(--kh-primary-dark); }

/* Search suggestion chips */
.kh-search__hints {
  display: flex;
  gap: 8px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--kh-400);
  align-items: center;
}
.kh-search__hints a {
  color: var(--kh-500);
  padding: 2px 8px;
  border-radius: var(--kh-r-pill);
  background: var(--kh-100);
}
.kh-search__hints a:hover { background: var(--kh-primary-tint); color: var(--kh-primary); }

.kh-burger {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border-radius: var(--kh-r-sm);
  color: #fff;
  flex: none;
}
.kh-burger:hover { background: rgba(255, 255, 255, .16); }

/* --------------------------------------------------------------------------
   7. Category nav bar
   -------------------------------------------------------------------------- */

.kh-catbar {
  background: var(--kh-catbar-bg);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.kh-catbar__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.kh-catbar__inner::-webkit-scrollbar { display: none; }

.kh-catbar__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  transition: color .18s;
}
.kh-catbar__link:hover { color: var(--kh-brand-accent-dark); }
.kh-catbar__emoji { font-size: 17px; line-height: 1; }
.kh-catbar__cn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--kh-600);
  text-transform: uppercase;
}

@media (max-width: 1240px) {
  .kh-masthead__inner { gap: 20px; }
  .kh-hnav { gap: 18px; }
  .kh-hnav__item span { display: none; }
  .kh-hnav__badge { left: 12px; }
}
@media (max-width: 1023px) {
  .kh-masthead__inner {
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 0;
  }
  .kh-hsearch { order: 10; flex-basis: 100%; max-width: none; }
  .kh-hsearch__form { height: 46px; }
  .kh-hsearch__btn { padding: 0 20px; font-size: 15px; }
  .kh-brand img { height: 38px; }
  .kh-burger { display: grid; }
  .kh-hnav { margin-left: auto; }
  .kh-catbar { display: none; }
}
@media (max-width: 560px) {
  .kh-hsearch__chip { display: none; }
  .kh-hsearch__form { padding-left: 14px; gap: 8px; }
  .kh-hsearch__btn { padding: 0 16px; }
  .kh-hnav { gap: 14px; }
}

/* --------------------------------------------------------------------------
   8. Mobile drawer
   -------------------------------------------------------------------------- */

.kh-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  visibility: hidden;
  pointer-events: none;
}
.kh-drawer.is-open { visibility: visible; pointer-events: auto; }

.kh-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 61, .5);
  opacity: 0;
  transition: opacity .25s;
}
.kh-drawer.is-open .kh-drawer__scrim { opacity: 1; }

.kh-drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(320px, 86vw);
  background: #fff;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
}
.kh-drawer.is-open .kh-drawer__panel { transform: none; }

.kh-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--kh-200);
}
.kh-drawer__head .kh-brand img { height: 34px; max-width: 170px; }
.kh-drawer__close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--kh-600);
}
.kh-drawer__close:hover { background: var(--kh-100); }

.kh-drawer__body { flex: 1; overflow-y: auto; padding: 10px 0; }
.kh-drawer__title {
  padding: 14px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--kh-400);
}
.kh-drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--kh-700);
}
.kh-drawer__link:hover { background: var(--kh-primary-tint); color: var(--kh-primary); }
.kh-drawer__emoji { font-size: 17px; width: 22px; text-align: center; }

.kh-drawer__foot { padding: 16px 18px; border-top: 1px solid var(--kh-200); }

/* --------------------------------------------------------------------------
   9. Section shell
   -------------------------------------------------------------------------- */

.kh-section { padding: 44px 0; }
.kh-section--tight { padding: 30px 0; }

.kh-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.kh-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 11px;
  border-radius: var(--kh-r-pill);
  background: var(--kh-primary-tint);
  color: var(--kh-primary-darker);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.kh-section__title { font-size: 24px; }
.kh-section__sub { margin: 6px 0 0; color: var(--kh-500); font-size: 14px; }
.kh-section__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kh-primary);
}
.kh-section__link:hover { gap: 9px; }
.kh-section__link svg { transition: transform .18s; }

@media (max-width: 767px) {
  .kh-section { padding: 32px 0; }
  .kh-section__title { font-size: 20px; }
  .kh-section__head { margin-bottom: 16px; }
}

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */

.kh-hero { padding: 22px 0 8px; }
.kh-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
}

/* All slides share one grid cell, so every slide stretches to the tallest —
   the banner never collapses below min-height and never jumps between slides. */
.kh-slider {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  border-radius: var(--kh-r-lg);
  overflow: hidden;
  background: var(--kh-hero-ink);
  /* Kept just below the natural content height so the padding below is what
     you actually see — a taller min-height would re-add centring slack. */
  min-height: 220px;
}
.kh-slide {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  padding: 22px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
}
.kh-slide.is-active { opacity: 1; visibility: visible; }

/* Photo sits on the right; the scrim keeps the left-hand copy readable. */
.kh-slide__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.kh-slide__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      var(--kh-hero-ink) 0%,
      var(--kh-hero-ink) 34%,
      rgba(28, 22, 19, .82) 48%,
      rgba(28, 22, 19, .35) 66%,
      rgba(28, 22, 19, .12) 100%);
}

.kh-slide__inner { max-width: 520px; position: relative; z-index: 2; }
.kh-slide__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: var(--kh-r-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.kh-slide__title {
  font-size: 37px;
  line-height: 1.13;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.kh-slide__title em { font-style: normal; color: var(--kh-primary); }
.kh-slide__text {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 24px;
  max-width: 430px;
}
.kh-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--kh-r-sm);
  background: #fff;
  color: var(--kh-900);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--kh-shadow-md);
  transition: transform .18s, color .18s;
}
.kh-slide__cta:hover { color: var(--kh-primary); transform: translateY(-2px); }

/* Whole-banner click target (replaces the per-slide CTA button) */
.kh-slide__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Slide indicators — boxed, bottom right */
.kh-slider__dots {
  position: absolute;
  bottom: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: var(--kh-r-pill);
  background: rgba(10, 8, 7, .34);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  z-index: 5;
}
.kh-slider__dot {
  width: 6px; height: 6px;
  border-radius: var(--kh-r-pill);
  background: rgba(255, 255, 255, .5);
  transition: width .25s, background-color .25s;
}
.kh-slider__dot:hover { background: rgba(255, 255, 255, .8); }
.kh-slider__dot.is-active { width: 16px; background: #fff; }

/* Sourcing cards — Pakistan / China */
.kh-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }

.kh-origin-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  border-radius: var(--kh-r-lg);
  /* Both hero columns share one grid row, so two tall cards would stretch the
     banner. Kept low enough that the slider's own content sets the height. */
  min-height: 104px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.kh-origin-card:hover { transform: translateY(-2px); box-shadow: var(--kh-shadow-lg); }
/* Card ground is the artwork's own cream, sampled from the source files, so
   the extension below is seamless. */
.kh-origin-card--pk { --kh-card-cream: #f6f4e5; border-color: #e6e5d0; }
.kh-origin-card--cn { --kh-card-cream: #fdf3e7; border-color: #f2e3d1; }
.kh-origin-card { background: var(--kh-card-cream); }

/* The artwork is 4.35:1 but the card is nearer 2.4:1, so `cover` crops the
   left. This fade re-extends the cream under the text, guaranteeing the copy
   sits on a flat ground at any viewport width. It is invisible where it
   overlaps the artwork's own cream. */
.kh-origin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    var(--kh-card-cream) 0%,
    var(--kh-card-cream) 34%,
    rgba(255, 255, 255, 0) 62%);
}

/* Full-bleed flag artwork. The source strips are 800x184 (ratio 4.35) and
   wider than the card, so anchor right to always keep the flag in frame —
   the cropped left edge is flat cream. */
.kh-origin-card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  user-select: none;
}

.kh-origin-card__pill {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--kh-r-pill);
  background: #fff;
  border: 1px solid var(--kh-200);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kh-700);
  box-shadow: var(--kh-shadow-xs);
}
/* Live location indicator: the core dot blinks while a ring radiates out of
   it, the way a "you are here" status light reads. */
.kh-origin-card__dot {
  --kh-live: #0d9f4f;
  position: relative;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kh-live);
  box-shadow: 0 0 0 3px rgba(13, 159, 79, .18);
  animation: kh-dot-blink 1.9s ease-in-out infinite;
}
.kh-origin-card__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--kh-live);
  opacity: 0;
  animation: kh-dot-pulse 1.9s ease-out infinite;
}

@keyframes kh-dot-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* Base opacity is 0, so reduced-motion users simply see a steady dot. */
@keyframes kh-dot-pulse {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

.kh-origin-card__title {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.kh-origin-card--pk .kh-origin-card__title { color: #0d7a3e; }
.kh-origin-card--cn .kh-origin-card__title { color: var(--kh-900); }

/* The arrow appears on whichever market the visitor is NOT in, so it has to
   be tinted per card rather than assuming China is always the away option. */
.kh-origin-card__title svg { transition: transform .18s; }
.kh-origin-card--pk .kh-origin-card__title svg { color: #0d7a3e; }
.kh-origin-card--cn .kh-origin-card__title svg { color: #d92b1f; }
.kh-origin-card:hover .kh-origin-card__title svg { transform: translateX(4px); }

@media (max-width: 1023px) {
  .kh-hero__grid { grid-template-columns: 1fr; }
  .kh-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .kh-slider { min-height: 250px; }
  .kh-slide { padding: 24px 32px; }
  .kh-slide__title { font-size: 31px; }
  .kh-origin-card { min-height: 128px; }
}
@media (max-width: 767px) {
  .kh-hero__side { grid-template-columns: 1fr; }
  .kh-slider { min-height: 330px; }
  .kh-slide { padding: 26px 24px; align-items: flex-end; }
  .kh-slide__title { font-size: 26px; }
  .kh-slide__text { font-size: 14px; margin-bottom: 18px; }
  .kh-slide__kicker { margin-bottom: 12px; }
  /* Stack the wash vertically so the photo still reads on a narrow screen. */
  .kh-slide__scrim {
    background: linear-gradient(180deg,
      rgba(28, 22, 19, .25) 0%,
      rgba(28, 22, 19, .72) 45%,
      var(--kh-hero-ink) 88%);
  }
  .kh-slide__photo { object-position: center 25% !important; }
  .kh-slider__dots { right: 14px; bottom: 12px; padding: 4px 7px; }
}
@media (max-width: 420px) {
  .kh-slide__title { font-size: 23px; }
  .kh-origin-card__title { font-size: 18px; }
}

/* --------------------------------------------------------------------------
   11. Category circles
   -------------------------------------------------------------------------- */

/* Reusable white rounded panel on the cream page ground — same treatment as
   the category card, for any section that should sit on its own surface. */
.kh-panel {
  background: #fff;
  border-radius: 28px;
  padding: 32px 40px 36px;
}

@media (max-width: 991px) { .kh-panel { padding: 24px; border-radius: 22px; } }
@media (max-width: 767px) { .kh-panel { padding: 20px 18px 24px; } }

/* White card sitting on the cream page ground */
.kh-section--cream { background: var(--kh-catbar-bg); }
.kh-catcard {
  position: relative;
  background: #fff;
  border-radius: 28px;
  /* Bottom padding is 12px light: .kh-cats supplies it, so the hover shadow
     has somewhere to go. */
  padding: 34px 40px 26px;
}

.kh-catcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* 16 + the grid's 10px top padding = the intended 26px gap. */
  margin-bottom: 16px;
}
.kh-catcard__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--kh-navy);
  letter-spacing: -.02em;
}
.kh-catcard__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--kh-navy);
}
.kh-catcard__link svg { transition: transform .18s; }
.kh-catcard__link:hover { color: var(--kh-primary); }
.kh-catcard__link:hover svg { transform: translateX(3px); }

/* Two rows, flowing sideways */
.kh-cats {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc((100% - 9 * 18px) / 10);
  gap: 22px 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* overflow-x:auto makes overflow-y compute to auto, which clips the hover
     lift and its shadow. Pad the scroll box; the card's own padding is
     reduced by the same amount so spacing is unchanged. */
  padding: 10px 0 12px;
}
.kh-cats::-webkit-scrollbar { display: none; }
.kh-cats > * { scroll-snap-align: start; }

.kh-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.kh-cat:hover { color: inherit; }
.kh-cat__icon {
  width: 100%;
  max-width: 108px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f5f7;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, background-color .22s;
}
.kh-cat__icon img { width: 100%; height: 100%; object-fit: cover; }
.kh-cat__emoji { font-size: 42px; line-height: 1; }
.kh-cat:hover .kh-cat__icon {
  transform: translateY(-4px);
  box-shadow: var(--kh-shadow-md);
  background: var(--kh-primary-tint);
}
.kh-cat__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--kh-navy);
  line-height: 1.28;
}
.kh-cat:hover .kh-cat__name { color: var(--kh-primary); }

@media (max-width: 1199px) {
  .kh-cats { grid-auto-columns: calc((100% - 7 * 18px) / 8); }
}
@media (max-width: 991px) {
  .kh-catcard { padding: 26px 24px 18px; border-radius: 22px; }
  .kh-catcard__title { font-size: 22px; }
  .kh-cats { grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 18px 16px; }
}
@media (max-width: 767px) {
  .kh-catcard { padding: 22px 18px 14px; }
  .kh-catcard__title { font-size: 19px; }
  .kh-catcard__link { font-size: 13.5px; }
  .kh-cats { grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 16px 14px; }
  .kh-cat__emoji { font-size: 32px; }
  .kh-cat__name { font-size: 11.5px; }
}
@media (max-width: 480px) {
  .kh-cats { grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 14px 12px; }
}

/* --------------------------------------------------------------------------
   13. Occasion tiles
   -------------------------------------------------------------------------- */

.kh-occ__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.kh-occ__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--kh-navy);
  letter-spacing: -.02em;
}
.kh-occ__note { margin: 0; font-size: 15px; color: var(--kh-500); }

/* Vibe pills */
.kh-vibes { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.kh-vibe {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--kh-r-pill);
  font-size: 15px;
  font-weight: 700;
  background: var(--vibe-bg);
  color: var(--vibe-fg);
  transition: transform .18s, box-shadow .18s;
}
.kh-vibe:hover { transform: translateY(-2px); box-shadow: var(--kh-shadow-md); color: var(--vibe-fg); }
.kh-vibe--eid     { --vibe-bg: #fdf1de; --vibe-fg: #b45309; }
.kh-vibe--wedding { --vibe-bg: #fde7ef; --vibe-fg: #be123c; }
.kh-vibe--daily   { --vibe-bg: #e4eefc; --vibe-fg: #1d4ed8; }
.kh-vibe--office  { --vibe-bg: #e7e9fd; --vibe-fg: #4338ca; }
.kh-vibe--glow    { --vibe-bg: #f3e8fd; --vibe-fg: #7e22ce; }
.kh-vibe--gift    { --vibe-bg: #dff5ea; --vibe-fg: #047857; }

/* Feature + tiles + banner */
.kh-occ__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

/* Editor's pick */
.kh-pick {
  position: relative;
  grid-row: span 2;
  overflow: hidden;
  /* Every slide shares one grid cell, so image and copy cross-fade together. */
  display: grid;
  grid-template: 1fr / 1fr;
  /* The right column drives the real height (148+18+148+18+140 = 472). */
  min-height: 360px;
  border-radius: 18px;
  background: var(--kh-hero-ink);
  transition: transform .22s, box-shadow .22s;
}
.kh-pick:hover { transform: translateY(-3px); box-shadow: var(--kh-shadow-lg); }

.kh-pick__slide {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
.kh-pick__slide.is-active { opacity: 1; visibility: visible; }

/* Anchored right of centre: the models sit on the right of these frames,
   with wall space to the left. */
.kh-pick__photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

/* Stretched click target, under the body copy and dots. */
.kh-pick__link { position: absolute; inset: 0; z-index: 2; }

.kh-pick__dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: var(--kh-r-pill);
  background: rgba(10, 8, 7, .34);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}
.kh-pick__dot {
  width: 6px; height: 6px;
  border-radius: var(--kh-r-pill);
  background: rgba(255, 255, 255, .5);
  transition: width .25s, background-color .25s;
}
.kh-pick__dot:hover { background: rgba(255, 255, 255, .8); }
.kh-pick__dot.is-active { width: 16px; background: #fff; }
.kh-pick__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 14, .1) 30%, rgba(20, 16, 14, .82) 78%, rgba(20, 16, 14, .95) 100%);
}
/* Sits above the stretched link but passes clicks through to it. */
.kh-pick__body {
  position: relative;
  z-index: 3;
  padding: 26px 28px;
  display: block;
  pointer-events: none;
}
.kh-pick__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 13px;
  border-radius: var(--kh-r-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.kh-pick__title {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 8px;
}
.kh-pick__title em { font-style: normal; color: var(--kh-primary); display: block; }
.kh-pick__text {
  display: block;
  max-width: 300px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 16px;
}
.kh-pick__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.kh-pick__cta svg { transition: transform .18s; }
.kh-pick:hover .kh-pick__cta svg { transform: translateX(4px); }

/* Small tiles */
.kh-occ__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.kh-otile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 148px;
  padding: 18px 18px 18px 22px;
  border-radius: 18px;
  background: var(--tile-bg);
  border: 1px solid var(--tile-line);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.kh-otile:hover {
  transform: translateY(-3px);
  box-shadow: var(--kh-shadow-lg);
  border-color: transparent;
}
.kh-otile--cosmetics { --tile-bg: #fceef3; --tile-line: #f6dbe5; }
.kh-otile--jewellery { --tile-bg: #f6f1e9; --tile-line: #ebe1d1; }
.kh-otile--shoes     { --tile-bg: #e9f2ec; --tile-line: #d5e6dc; }
.kh-otile--tech      { --tile-bg: #e8eef7; --tile-line: #d4e1f0; }

.kh-otile__body { position: relative; z-index: 2; }
.kh-otile__name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--kh-navy);
  margin-bottom: 4px;
}
.kh-otile__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: #047857;
}
.kh-otile__cta::after {
  content: "→";
  transition: transform .18s;
}
.kh-otile:hover .kh-otile__cta::after { transform: translateX(3px); }

/* Contained thumbnail rather than a bled-in photo: each category image
   carries its own background, which would clash with the pastel ground. */
.kh-otile__img {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(16, 24, 40, .16);
  transition: transform .25s;
}
.kh-otile:hover .kh-otile__img { transform: scale(1.05) rotate(-1.5deg); }

/* China banner */
/* Warm ground, matched to the sunset tones of the ship photo so the fade
   reads as one image rather than two colour worlds meeting. */
.kh-china {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 140px;
  border-radius: 18px;
  background: #fdf0e4;
  border: 1px solid #f5ddc8;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.kh-china:hover { transform: translateY(-3px); box-shadow: var(--kh-shadow-lg); border-color: transparent; }

/* Full-bleed photo on the right, fading into the warm card ground. */
.kh-china__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
.kh-china__photo.is-active { opacity: 1; visibility: visible; }

.kh-china__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #fdf0e4 0%, #fdf0e4 36%, rgba(253, 240, 228, .6) 54%, rgba(253, 240, 228, 0) 76%);
}

.kh-china__link { position: absolute; inset: 0; z-index: 2; }

.kh-china__body {
  position: relative;
  z-index: 3;
  padding: 20px 26px;
  pointer-events: none;
}

.kh-china__dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: var(--kh-r-pill);
  background: rgba(10, 8, 7, .38);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}
.kh-china__dot {
  width: 5px; height: 5px;
  border-radius: var(--kh-r-pill);
  background: rgba(255, 255, 255, .55);
  transition: width .25s, background-color .25s;
}
.kh-china__dot:hover { background: rgba(255, 255, 255, .85); }
.kh-china__dot.is-active { width: 14px; background: #fff; }
.kh-china__title {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--kh-navy);
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.kh-china__text { display: block; font-size: 13.5px; color: var(--kh-600); margin-bottom: 10px; }
.kh-china__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 700;
  color: #d92b1f;
}
.kh-china__cta svg { transition: transform .18s; }
.kh-china:hover .kh-china__cta svg { transform: translateX(4px); }

@media (max-width: 991px) {
  .kh-occ__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kh-occ__title { font-size: 22px; }
  .kh-occ__note { font-size: 13.5px; }
  .kh-vibes { gap: 9px; margin-bottom: 20px; }
  .kh-vibe { padding: 10px 16px; font-size: 13.5px; }
  .kh-occ__grid { grid-template-columns: 1fr; }
  .kh-pick { grid-row: auto; min-height: 380px; }
  .kh-pick__title { font-size: 26px; }
}
@media (max-width: 560px) {
  .kh-occ__tiles { gap: 12px; }
  .kh-otile { min-height: 118px; padding: 14px; gap: 8px; }
  .kh-otile__name { font-size: 14px; }
  .kh-otile__cta { font-size: 11.5px; }
  .kh-otile__img { width: 68px; height: 68px; border-radius: 11px; }
  .kh-china { min-height: 124px; }
  .kh-china__body { padding: 16px 18px; }
  .kh-china__title { font-size: 17px; }
  .kh-china__text { font-size: 12.5px; margin-bottom: 8px; }
  .kh-china__cta { font-size: 13px; }
  .kh-pick { min-height: 300px; }
  .kh-pick__body { padding: 20px; }
  .kh-pick__title { font-size: 23px; }
}

/* --------------------------------------------------------------------------
   14. Product cards + carousel
   -------------------------------------------------------------------------- */

/* Rail section header — title with an inline tag chip, link on the right */
.kh-railhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.kh-railhead__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--kh-navy);
  letter-spacing: -.02em;
}
.kh-railhead__sub { margin: 6px 0 0; font-size: 14.5px; color: var(--kh-500); }

/* Plain text link, same treatment as "See all" in the category card. */
.kh-railhead__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--kh-navy);
}
.kh-railhead__link svg { transition: transform .18s; }
.kh-railhead__link:hover { color: var(--kh-primary); }
.kh-railhead__link:hover svg { transform: translateX(3px); }

@media (max-width: 767px) {
  .kh-railhead { align-items: flex-start; gap: 12px; }
  .kh-railhead__title { font-size: 20px; }
  .kh-railhead__sub { font-size: 13px; }
  .kh-railhead__link { font-size: 13.5px; }
}

.kh-rail { position: relative; }
.kh-rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 6);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  margin: -4px -2px -8px;
}
.kh-rail__track::-webkit-scrollbar { display: none; }
.kh-rail__track > * { scroll-snap-align: start; }

.kh-rail__nav {
  position: absolute;
  top: 34%;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--kh-900);
  border: 1px solid var(--kh-200);
  box-shadow: var(--kh-shadow-md);
  z-index: 6;
  transition: opacity .2s, background-color .2s;
}
.kh-rail__nav:hover { background: var(--kh-primary); color: #fff; border-color: var(--kh-primary); }
.kh-rail__nav[disabled] { opacity: 0; pointer-events: none; }
.kh-rail__nav--prev { left: -16px; }
.kh-rail__nav--next { right: -16px; }

/* Fixed grid variant */
.kh-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.kh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--kh-200);
  border-radius: var(--kh-r);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.kh-card:hover {
  border-color: transparent;
  box-shadow: var(--kh-shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}

.kh-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--kh-100);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--kh-r) var(--kh-r) 0 0;
}
.kh-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.kh-card:hover .kh-card__media img { transform: scale(1.06); }
.kh-card__ph { font-size: 46px; line-height: 1; opacity: .55; }

.kh-card__badges {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.kh-badge {
  padding: 4px 9px;
  border-radius: var(--kh-r-pill);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.5;
  color: #fff;
  background: var(--kh-rose);
  box-shadow: 0 2px 6px rgba(16, 24, 40, .18);
}
.kh-badge--new { background: var(--kh-green); }
.kh-badge--brand { background: var(--kh-primary); }
.kh-badge--free { background: var(--kh-navy); }

.kh-card__wish {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--kh-500);
  box-shadow: var(--kh-shadow-xs);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .2s, transform .2s, color .2s;
}
.kh-card:hover .kh-card__wish { opacity: 1; transform: none; }
.kh-card__wish:hover { color: var(--kh-rose); }
.kh-card__wish.is-on { opacity: 1; transform: none; color: var(--kh-rose); }
.kh-card__wish.is-on svg { fill: currentColor; }

.kh-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 12px 13px;
  flex: 1;
}
.kh-card__cat {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--kh-400);
}
.kh-card__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--kh-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
}
.kh-card:hover .kh-card__title { color: var(--kh-primary); }

.kh-rating { display: flex; align-items: center; gap: 5px; font-size: 11.5px; }
.kh-rating__stars { display: flex; gap: 1px; color: var(--kh-amber); }
.kh-rating__stars svg { width: 12px; height: 12px; fill: currentColor; }
.kh-rating__stars svg.is-off { color: var(--kh-300); }
.kh-rating__count { color: var(--kh-400); }

.kh-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.kh-price__now { font-size: 15px; font-weight: 700; color: var(--kh-900); }
.kh-price__was { font-size: 12px; color: var(--kh-400); text-decoration: line-through; }
.kh-price__off { font-size: 11.5px; font-weight: 700; color: var(--kh-rose); }

.kh-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 3px;
}
.kh-card__cod {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--kh-green-tint);
  color: var(--kh-green);
  font-size: 10.5px;
  font-weight: 600;
}
.kh-card__add {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--kh-primary-tint);
  color: var(--kh-primary);
  transition: background-color .18s, color .18s;
}
.kh-card__add:hover { background: var(--kh-primary); color: #fff; }

@media (max-width: 1199px) {
  .kh-rail__track { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
  .kh-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .kh-rail__track { grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px; }
  .kh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Keep the arrows on touch, but tuck them inside the container so they
     can't push the page sideways. */
  .kh-rail__nav { width: 34px; height: 34px; top: 30%; }
  .kh-rail__nav--prev { left: -4px; }
  .kh-rail__nav--next { right: -4px; }
}
@media (max-width: 767px) {
  .kh-rail__track { grid-auto-columns: 46%; gap: 12px; }
  .kh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kh-card__title { font-size: 12.5px; }
  .kh-rail__nav { width: 32px; height: 32px; top: 28%; }
  .kh-rail__nav--prev { left: -2px; }
  .kh-rail__nav--next { right: -2px; }
}
@media (max-width: 480px) {
  .kh-rail__track { grid-auto-columns: 60%; }
  .kh-rail__nav { width: 30px; height: 30px; }
  .kh-rail__nav--prev { left: 0; }
  .kh-rail__nav--next { right: 0; }
}

/* --------------------------------------------------------------------------
   16. Value props strip
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   16b. Editor's pick promo band
   -------------------------------------------------------------------------- */

.kh-eband {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 440px;
  padding: 48px;
  border-radius: 24px;
  background: #f8bd83;
}
.kh-eband__photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Weighted low so the product still-life stays in frame. */
  object-position: center 55%;
}

.kh-eband__body { position: relative; z-index: 1; max-width: 470px; }
.kh-eband__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kh-primary-darker);
}
.kh-eband__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: #23150c;
  margin-bottom: 14px;
  max-width: 12ch;
}
.kh-eband__text {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(35, 21, 12, .78);
  max-width: 38ch;
}

/* Plain solid button, same shape as the rest of the site. Ink rather than
   orange, which would vanish into the artwork. */
.kh-eband__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--kh-r-sm);
  background: var(--kh-brand-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background-color .18s;
}
.kh-eband__cta svg { transition: transform .18s; }
.kh-eband__cta:hover { background: #000; color: #fff; }
.kh-eband__cta:hover svg { transform: translateX(3px); }

@media (max-width: 991px) {
  .kh-eband { min-height: 360px; padding: 36px 32px; gap: 22px; }
  .kh-eband__title { font-size: 30px; }
  .kh-eband__text { font-size: 14.5px; }
}
@media (max-width: 700px) {
  /* Below this the still-life would sit under the copy, so the photo becomes
     a band across the top and the text takes a solid ground beneath it. */
  .kh-eband {
    display: block;
    min-height: 0;
    padding: 0;
    background: linear-gradient(180deg, #ffe6cf 0%, #ffd9b8 100%);
  }
  .kh-eband__photo { position: relative; height: 220px; object-position: center 60%; }
  .kh-eband__body { max-width: none; padding: 24px 22px 28px; }
  .kh-eband__title { font-size: 24px; max-width: none; }
  .kh-eband__text { margin-bottom: 20px; }
  .kh-eband__cta { padding: 12px 24px; font-size: 14px; }
}

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */

.kh-faq__title {
  font-size: 30px;
  font-weight: 700;
  color: var(--kh-navy);
  letter-spacing: -.02em;
  line-height: 1.18;
  margin-bottom: 10px;
}
.kh-faq__lede {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--kh-500);
  max-width: 58ch;
  margin-bottom: 12px;
}

/* Plain rows divided by hairlines — no card borders or fills. */
.kh-acc { border-top: 1px solid var(--kh-200); }
.kh-acc:first-child { border-top: 0; }

.kh-acc__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--kh-navy);
  transition: color .18s;
}
.kh-acc__q:hover { color: var(--kh-primary); }

/* Thin plus that loses its upright stroke to become a minus when open. */
.kh-acc__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--kh-400);
  transition: color .18s;
}
.kh-acc__icon::before,
.kh-acc__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.kh-acc__icon::before {
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  margin-top: -.75px;
}
.kh-acc__icon::after {
  top: 0; bottom: 0; left: 50%;
  width: 1.5px;
  margin-left: -.75px;
  transition: transform .25s ease, opacity .2s ease;
}
.kh-acc__q:hover .kh-acc__icon { color: var(--kh-primary); }
.kh-acc.is-open .kh-acc__icon { color: var(--kh-primary); }
.kh-acc.is-open .kh-acc__icon::after { transform: scaleY(0); opacity: 0; }

.kh-acc__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.kh-acc.is-open .kh-acc__a { grid-template-rows: 1fr; }
.kh-acc__a > div { overflow: hidden; }
.kh-acc__a p {
  padding: 0 40px 26px 0;
  margin: -6px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--kh-600);
  max-width: 78ch;
}

@media (max-width: 767px) {
  .kh-faq__title { font-size: 22px; }
  .kh-faq__lede { font-size: 14px; }
  .kh-acc__q { padding: 20px 0; font-size: 15px; gap: 16px; }
  .kh-acc__a p { padding: 0 24px 20px 0; font-size: 14px; }
}

/* --------------------------------------------------------------------------
   19. Closing shopping CTA
   -------------------------------------------------------------------------- */

/* Brand banner band. The artwork is bright (luminance 150-209 across the
   frame), so the copy is dark and no wash is used — its left third is
   already clear space made for exactly this. */
.kh-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 420px;
  padding: 48px;
  border-radius: 24px;
  background: #f7bb84;
}
.kh-cta__photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Anchored high: keeps her head in frame while still showing the bags. */
  object-position: center 18%;
}

.kh-cta__body { position: relative; z-index: 1; max-width: 470px; }
.kh-cta__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kh-primary-darker);
}
.kh-cta__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: #23150c;
  max-width: 12ch;
  margin-bottom: 14px;
}
.kh-cta__text {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(35, 21, 12, .78);
  max-width: 38ch;
}

/* Plain solid button, same shape as the rest of the site. Ink rather than
   orange, which would vanish into the artwork. */
.kh-cta__primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--kh-r-sm);
  background: var(--kh-brand-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background-color .18s;
}
.kh-cta__primary svg { transition: transform .18s; }
.kh-cta__primary:hover { background: #000; color: #fff; }
.kh-cta__primary:hover svg { transform: translateX(3px); }

@media (max-width: 991px) {
  .kh-cta { min-height: 340px; padding: 36px 32px; }
  .kh-cta__title { font-size: 30px; }
  .kh-cta__text { font-size: 14.5px; margin-bottom: 22px; }
}
@media (max-width: 700px) {
  /* Below this the subject would sit under the copy, so the photo becomes a
     band across the top and the text takes a solid ground beneath it. */
  .kh-cta {
    display: block;
    min-height: 0;
    padding: 0;
    background: linear-gradient(180deg, #ffe6cf 0%, #ffd9b8 100%);
  }
  .kh-cta__photo {
    position: relative;
    height: 230px;
    object-position: center 15%;
  }
  .kh-cta__body { max-width: none; padding: 24px 22px 28px; }
  .kh-cta__title { font-size: 24px; max-width: none; }
  .kh-cta__text { margin-bottom: 20px; }
  .kh-cta__primary { padding: 12px 24px; font-size: 14px; }
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

/* --kh-footer-bg keeps the ground a one-line change. */
.kh-footer {
  background: var(--kh-footer-bg);
  color: rgba(255, 255, 255, .68);
  font-size: 13.5px;
}

.kh-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
  padding: 52px 0 42px;
}

.kh-footer__brand .kh-brand { margin-bottom: 16px; }
.kh-footer__brand .kh-brand img { height: 44px; }
.kh-footer__about { font-size: 13px; line-height: 1.65; margin-bottom: 20px; max-width: 330px; }

.kh-footer__contact { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.kh-footer__contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.kh-footer__contact svg { color: var(--kh-primary); margin-top: 2px; }
.kh-footer__contact a:hover { color: #fff; }

.kh-footer__col-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: .01em;
}
.kh-footer__links { display: flex; flex-direction: column; gap: 10px; }
.kh-footer__links a { font-size: 13px; color: rgba(255, 255, 255, .66); transition: color .18s, padding-left .18s; }
.kh-footer__links a:hover { color: #fff; padding-left: 3px; }

.kh-footer__apps { display: flex; gap: 10px; flex-wrap: wrap; }
.kh-store {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: var(--kh-r-sm);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .18s, border-color .18s;
}
.kh-store:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: inherit; }
.kh-store svg { color: #fff; }
.kh-store__text { line-height: 1.15; }
.kh-store__text small { display: block; font-size: 9.5px; color: rgba(255, 255, 255, .55); }
.kh-store__text strong { display: block; font-size: 13px; color: #fff; font-weight: 600; }

.kh-footer__mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.kh-footer__pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kh-footer__pay-label { font-size: 12px; color: rgba(255, 255, 255, .5); margin-right: 2px; }
.kh-pay {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  background: #fff;
  color: #2b1a12;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}
/* Tint the line-drawn marks. JazzCash and Easypaisa carry their own brand
   colours in the SVG, so they are left alone. */
.kh-pay svg { flex: none; }
.kh-pay--cod svg { color: #0d7a3e; }
.kh-pay--visa svg { color: #1a1f71; }
.kh-pay--mc svg { color: #eb001b; }
.kh-pay--bank svg { color: #475467; }

.kh-social { display: flex; align-items: center; gap: 9px; }
.kh-social__label { font-size: 12px; color: rgba(255, 255, 255, .5); margin-right: 2px; }
.kh-social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
  transition: background-color .18s, color .18s, transform .18s;
}
.kh-social a:hover { background: var(--kh-primary); color: #fff; transform: translateY(-2px); }

.kh-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
}
.kh-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.kh-footer__legal a:hover { color: #fff; }
.kh-footer__made { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1099px) {
  .kh-footer__top { grid-template-columns: 1fr 1fr 1fr; gap: 34px 24px; }
  .kh-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .kh-footer__top { grid-template-columns: 1fr 1fr; padding: 38px 0 30px; }
  .kh-footer__mid { flex-direction: column; align-items: flex-start; }
  .kh-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   21. Mobile bottom tab bar
   -------------------------------------------------------------------------- */

.kh-tabbar { display: none; }

@media (max-width: 767px) {
  .kh-tabbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 180;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid var(--kh-200);
    box-shadow: 0 -2px 12px rgba(16, 24, 40, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .kh-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 2px 7px;
    font-size: 10px;
    font-weight: 500;
    color: var(--kh-500);
  }
  .kh-tab.is-active { color: var(--kh-primary); }
  body { padding-bottom: 62px; }
}

/* --------------------------------------------------------------------------
   22. Back to top
   -------------------------------------------------------------------------- */

.kh-totop {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 170;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--kh-primary);
  color: #fff;
  box-shadow: var(--kh-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.kh-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.kh-totop:hover { background: var(--kh-primary-dark); color: #fff; }

@media (max-width: 767px) { .kh-totop { bottom: 74px; right: 14px; } }

/* --------------------------------------------------------------------------
   23. wp_nav_menu wrappers
   -------------------------------------------------------------------------- */

/* Menus output <li> wrappers; the anchors carry the styling. */
.kh-catbar__inner li { flex: none; display: flex; }
.kh-drawer__body li { display: block; }
.kh-footer__links li,
.kh-footer__legal li { display: block; }
.kh-footer__legal { flex-direction: row; }

/* --------------------------------------------------------------------------
   24. Inner pages (archives, single, search, 404)
   -------------------------------------------------------------------------- */

.kh-pagehead {
  padding: 34px 0;
  background: var(--kh-white);
  border-bottom: 1px solid var(--kh-200);
}
.kh-pagehead h1 { font-size: 28px; }
.kh-pagehead p { margin-top: 6px; color: var(--kh-500); }
/* Flex, so the leading home icon sits on the same line as the trail. */
.kh-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  color: var(--kh-500);
  margin-bottom: 8px;
}
.kh-crumbs a { display: inline-flex; align-items: center; }
.kh-crumbs a:hover { color: var(--kh-primary); }

.kh-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.kh-post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--kh-200);
  border-radius: var(--kh-r);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.kh-post:hover { box-shadow: var(--kh-shadow-lg); transform: translateY(-3px); }
.kh-post__thumb { aspect-ratio: 16 / 10; background: var(--kh-100); overflow: hidden; }
.kh-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-post__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kh-post__meta { font-size: 11.5px; color: var(--kh-400); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kh-post__title { font-size: 16px; line-height: 1.35; }
.kh-post__title a:hover { color: var(--kh-primary); }
.kh-post__excerpt { font-size: 13px; color: var(--kh-500); }

.kh-entry { max-width: 780px; margin-inline: auto; font-size: 15px; line-height: 1.7; color: var(--kh-700); }
.kh-entry h2 { font-size: 22px; margin: 1.6em 0 .5em; }
.kh-entry h3 { font-size: 18px; margin: 1.4em 0 .4em; }
.kh-entry a { color: var(--kh-primary); text-decoration: underline; }
.kh-entry img { border-radius: var(--kh-r); margin: 1.2em 0; }
.kh-entry blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--kh-primary);
  color: var(--kh-600);
  font-style: italic;
}
.kh-entry ul, .kh-entry ol { margin: 0 0 1.2em 1.3em; }
.kh-entry ul { list-style: disc; }
.kh-entry ol { list-style: decimal; }
.kh-entry li { margin-bottom: .4em; }
.kh-entry code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--kh-100);
  font-size: .9em;
}

.kh-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 34px;
}
.kh-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kh-200);
  border-radius: var(--kh-r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kh-600);
}
.kh-pagination .page-numbers:hover { border-color: var(--kh-primary); color: var(--kh-primary); }
.kh-pagination .page-numbers.current {
  background: var(--kh-primary);
  border-color: var(--kh-primary);
  color: #fff;
}

.kh-empty { text-align: center; padding: 60px 20px; }
.kh-empty__emoji { font-size: 56px; line-height: 1; margin-bottom: 14px; }
.kh-empty h1 { font-size: 26px; margin-bottom: 8px; }
.kh-empty p { color: var(--kh-500); margin-bottom: 22px; }
.kh-empty .kh-search { max-width: 460px; margin-inline: auto; }

@media (max-width: 991px) { .kh-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .kh-posts { grid-template-columns: 1fr; } .kh-pagehead h1 { font-size: 22px; } }

/* --------------------------------------------------------------------------
   24b. Product category archive
   -------------------------------------------------------------------------- */

.kh-cathead { padding: 40px 0 36px; }
/* With artwork the band grows and stacks: photo, scrim, then the copy. The
   scrim is heaviest on the left so the navy heading keeps its contrast while
   the picture stays visible on the right. */
.kh-cathead.has-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 52px 0 46px;
  min-height: 232px;
  display: flex;
  align-items: center;
  border-bottom-color: transparent;
}
/* Painted as a background rather than an <img>: the band's height comes from
   min-height plus content, so it is indefinite, and `height: 100%` on an
   absolutely positioned replaced element falls back to the image's intrinsic
   size — which cropped every hero to the top of a viewport-tall frame.
   background-size has no such rule. The near-centre position keeps the subject
   in the band rather than the backdrop above it. */
.kh-cathead__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center 45%;
  background-size: cover;
  background-repeat: no-repeat;
}
.kh-cathead__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(253, 247, 242, .97) 0%,
      rgba(253, 247, 242, .95) 34%,
      rgba(253, 247, 242, .68) 62%,
      rgba(253, 247, 242, .3) 100%);
}
.kh-cathead.has-art .kh-container { width: 100%; }
/* The tinted pill disappears into the wash, so over artwork it goes solid. */
.kh-cathead.has-art .kh-cathead__count {
  background: #fff;
  box-shadow: 0 1px 3px rgba(28, 22, 19, .12);
}
.kh-cathead__title {
  font-size: 34px;
  font-weight: 700;
  color: var(--kh-navy);
  letter-spacing: -.025em;
  margin-bottom: 8px;
}
.kh-cathead__sub { margin: 0 0 12px; font-size: 15.5px; color: var(--kh-500); max-width: 62ch; }
.kh-cathead__count {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--kh-r-pill);
  background: var(--kh-primary-tint);
  color: var(--kh-primary-darker);
  font-size: 13px;
  font-weight: 700;
}

.kh-catnav-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--kh-navy);
  margin-bottom: 16px;
}

/* Subcategory chips */
.kh-subcats {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 16px 12px;
}
.kh-subcat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}
.kh-subcat__icon {
  width: 100%;
  max-width: 84px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f5f7;
  overflow: hidden;
  font-size: 30px;
  transition: transform .22s, box-shadow .22s, background-color .22s;
}
.kh-subcat__icon img { width: 100%; height: 100%; object-fit: cover; }
.kh-subcat:hover .kh-subcat__icon {
  transform: translateY(-3px);
  box-shadow: var(--kh-shadow-md);
  background: var(--kh-primary-tint);
}
.kh-subcat__name { font-size: 12.5px; font-weight: 700; color: var(--kh-navy); line-height: 1.3; }
.kh-subcat:hover .kh-subcat__name { color: var(--kh-primary); }

/* Budget filter links */
.kh-budgets { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-budget {
  display: inline-flex;
  align-items: center;
  /* A flex container drops the whitespace between "Under" and the price. */
  gap: 5px;
  padding: 10px 18px;
  border-radius: var(--kh-r-pill);
  background: #fff;
  border: 1px solid var(--kh-200);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kh-700);
  transition: border-color .18s, color .18s;
}
.kh-budget:hover { border-color: var(--kh-primary); color: var(--kh-primary); }

/* Result count + sort */
.kh-cattoolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--kh-200);
}
.kh-cattoolbar__count { margin: 0; font-size: 14px; color: var(--kh-500); }
.kh-cattoolbar__sort select {
  padding: 9px 14px;
  border: 1px solid var(--kh-200);
  border-radius: var(--kh-r-sm);
  background: #fff;
  font: inherit;
  font-size: 13.5px;
  color: var(--kh-700);
}
.kh-cattoolbar__sort form { margin: 0; }

@media (max-width: 1199px) { .kh-subcats { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .kh-cathead { padding: 28px 0 24px; }
  /* Narrower viewports leave less room beside the copy, so the wash covers
     more of the frame. */
  .kh-cathead.has-art { padding: 34px 0 30px; min-height: 190px; }
  .kh-cathead.has-art .kh-cathead__scrim {
    background:
      linear-gradient(90deg,
        rgba(253, 247, 242, .97) 0%,
        rgba(253, 247, 242, .94) 52%,
        rgba(253, 247, 242, .74) 100%);
  }
  .kh-cathead__title { font-size: 26px; }
  .kh-cathead__sub { font-size: 14px; }
  .kh-subcats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kh-subcats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
  .kh-subcat__icon { font-size: 24px; }
  .kh-subcat__name { font-size: 11.5px; }
  .kh-budget { padding: 8px 14px; font-size: 12.5px; }
  .kh-catnav-title { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   24c. Single product
   -------------------------------------------------------------------------- */

.kh-pdp__head { padding: 20px 0 4px; }
.kh-crumbs__here {
  display: inline-block;
  max-width: 32ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--kh-navy);
  font-weight: 600;
}
.kh-pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Gallery — vertical thumbs beside the stage.
   The stage is a fixed height rather than an aspect ratio: driving it from the
   column width made it over 1000px tall. Thumbs share the height so both
   columns end on the same line. */
.kh-gal {
  --kh-gal-h: min(84vh, 760px);
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
}
.kh-gal__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: var(--kh-gal-h);
  overflow-y: auto;
  scrollbar-width: none;
}
.kh-gal__thumbs::-webkit-scrollbar { display: none; }
.kh-gal__thumb {
  flex: none;
  padding: 0;
  border: 2px solid var(--kh-200);
  border-radius: var(--kh-r);
  overflow: hidden;
  background: transparent;
  transition: border-color .18s;
}
/* Thumbs are navigation, so a light 3:4 crop is fine and keeps the column
   from running past the stage. */
.kh-gal__thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.kh-gal__thumb:hover { border-color: var(--kh-300); }
.kh-gal__thumb.is-active { border-color: var(--kh-primary); }

.kh-gal__main {
  position: relative;
  border-radius: var(--kh-r-lg);
  background: transparent;
  border: 1px solid var(--kh-200);
  overflow: hidden;
  height: var(--kh-gal-h);
}
/* contain, so tall product shots are shown whole instead of being cropped
   to fit the frame. */
.kh-gal__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.kh-gal__img.is-active { opacity: 1; visibility: visible; cursor: zoom-in; }

.kh-gal__view,
.kh-gal__count {
  position: absolute;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: var(--kh-r-pill);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--kh-200);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kh-700);
  backdrop-filter: blur(6px);
}
.kh-gal__view { left: 14px; }
.kh-gal__view:hover { color: var(--kh-primary); border-color: var(--kh-primary); }
.kh-gal__count { right: 14px; }

.kh-gal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--kh-200);
  color: var(--kh-700);
  box-shadow: var(--kh-shadow-sm);
  opacity: 0;
  transition: opacity .2s, background-color .2s, color .2s;
}
.kh-gal__main:hover .kh-gal__nav,
.kh-gal__nav:focus-visible { opacity: 1; }
.kh-gal__nav:hover { background: var(--kh-primary); border-color: var(--kh-primary); color: #fff; }
.kh-gal__nav--prev { left: 12px; }
.kh-gal__nav--next { right: 12px; }

/* Lightbox. z-index clears the WordPress admin bar (99999), and the image is
   sized against the viewport so it can never overflow. */
.kh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  background: rgba(10, 8, 7, .93);
  backdrop-filter: blur(4px);
}
.kh-lightbox img {
  width: auto;
  height: auto;
  max-width: min(900px, calc(100vw - 140px));
  max-height: calc(100vh - 144px);
  object-fit: contain;
  border-radius: var(--kh-r);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.kh-lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  transition: background-color .18s;
}
.kh-lightbox__close:hover { background: rgba(255, 255, 255, .28); color: #fff; }

.kh-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  transition: background-color .18s;
}
.kh-lightbox__nav:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.kh-lightbox__nav--prev { left: 24px; }
.kh-lightbox__nav--next { right: 24px; }

.kh-lightbox__count {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 16px;
  border-radius: var(--kh-r-pill);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .kh-lightbox { padding: 64px 12px; }
  .kh-lightbox img { max-width: calc(100vw - 24px); max-height: calc(100vh - 150px); }
  .kh-lightbox__nav { width: 40px; height: 40px; }
  .kh-lightbox__nav--prev { left: 10px; }
  .kh-lightbox__nav--next { right: 10px; }
}

/* Summary column */
.kh-pdp__toprow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.kh-pdp__seller {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--kh-r-pill);
  background: var(--kh-green-tint);
  border: 1px solid #b7e4c9;
  font-size: 12px;
  font-weight: 700;
  color: var(--kh-green);
}
.kh-pdp__sku { font-size: 12.5px; color: var(--kh-400); font-weight: 600; }
.kh-pdp__save {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border-radius: var(--kh-r-pill);
  background: #fff;
  border: 1px solid var(--kh-200);
  font-size: 13px;
  font-weight: 600;
  color: var(--kh-700);
  transition: border-color .18s, color .18s;
}
.kh-pdp__save:hover { border-color: var(--kh-rose); color: var(--kh-rose); }
.kh-pdp__save.is-on { border-color: var(--kh-rose); color: var(--kh-rose); }
.kh-pdp__save.is-on svg { fill: currentColor; }

.kh-pdp__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--kh-navy);
  margin-bottom: 12px;
}
.kh-pdp__loved {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--kh-green);
}
.kh-pdp__loved svg { fill: currentColor; }
.kh-pdp__rating { margin-bottom: 14px; }

.kh-pdp__stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 16px;
  border-radius: var(--kh-r-pill);
  border: 1px solid var(--kh-200);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kh-700);
}
.kh-pdp__stock svg { color: var(--kh-500); }
.kh-pdp__stock--out { border-color: #f6cdd4; background: var(--kh-rose-tint); color: var(--kh-rose); }
.kh-pdp__stock--out svg { color: currentColor; }

.kh-pdp__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--kh-primary);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.kh-pdp__price del { font-size: 18px; font-weight: 500; color: var(--kh-400); margin-right: 8px; }
.kh-pdp__price ins { text-decoration: none; }
/* The currency symbol carried the same 800 weight as the figure, which read as
   a second heavy word rather than a unit. */
.kh-pdp__price .woocommerce-Price-currencySymbol {
  font-weight: 500;
  font-size: .74em;
  margin-right: 2px;
}
.kh-pdp__price del .woocommerce-Price-currencySymbol { font-weight: 400; }

.kh-pdp__excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--kh-600);
  margin-bottom: 22px;
}

/* WooCommerce's add-to-cart form, restyled */
.kh-pdp form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 22px;
}
/* Woo renders the attributes as a table; unwrap it so each attribute sits on
   one line as "Size : [pills]". */
.kh-pdp form.cart .variations { width: 100%; margin-bottom: 4px; }
.kh-pdp form.cart .variations tbody { display: block; }
.kh-pdp form.cart .variations tr {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 14px;
}
.kh-pdp form.cart .variations th,
.kh-pdp form.cart .variations td { padding: 6px 0; display: block; text-align: left; }
/* Positioned so the visually-hidden select the pills replace is contained by
   the cell — left to the viewport it resolved far to the right and pushed a
   horizontal scrollbar onto the page above 1024px. */
.kh-pdp form.cart .variations td { position: relative; flex: 1 1 auto; min-width: 0; }
.kh-pdp form.cart .variations label {
  font-weight: 700;
  color: var(--kh-navy);
  font-size: 14.5px;
}
.kh-pdp form.cart .variations label::after { content: " :"; }

/* Stock already reads in the pill above the price, so Woo's own per-variation
   line is a duplicate. */
.kh-pdp .woocommerce-variation-availability { display: none; }

/* The variation form gets the same row layout as a simple product's. */
.kh-pdp .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.kh-qty__label {
  flex-basis: 100%;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--kh-navy);
}

/* Attribute pills, built by JS from the hidden select */
.kh-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.kh-pill {
  min-width: 58px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--kh-r-pill);
  border: 1px solid var(--kh-200);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kh-700);
  transition: border-color .18s, background-color .18s, color .18s;
}
.kh-pill:hover:not([disabled]) { border-color: var(--kh-primary); color: var(--kh-primary); }
.kh-pill.is-active { background: var(--kh-primary); border-color: var(--kh-primary); color: #fff; }
/* Sizes Woo reports as unavailable stay in place, greyed, so the run of sizes
   still reads as a complete set. */
.kh-pill[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* Quantity stepper */
.kh-pdp .quantity.kh-qty {
  display: inline-flex;
  align-items: center;
  height: 54px;
  border: 1px solid var(--kh-200);
  border-radius: var(--kh-r-pill);
  background: #fff;
  overflow: hidden;
}
.kh-qty__btn {
  width: 46px;
  height: 100%;
  font-size: 19px;
  line-height: 1;
  color: var(--kh-700);
  transition: background-color .18s, color .18s;
}
.kh-qty__btn:hover { background: var(--kh-100); color: var(--kh-primary); }
.kh-pdp .quantity.kh-qty .qty {
  width: 46px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.kh-pdp .quantity.kh-qty .qty::-webkit-outer-spin-button,
.kh-pdp .quantity.kh-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Add to bag — outlined and transparent, beside the filled Buy now */
.kh-pdp form.cart .button,
.kh-pdp form.cart button.button {
  flex: 1;
  min-width: 180px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 28px !important;
  border-radius: var(--kh-r-pill) !important;
  background: transparent !important;
  border: 1.5px solid var(--kh-navy) !important;
  color: var(--kh-navy) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  transition: background-color .18s, color .18s;
}
/* Cart glyph as a mask, so it inherits the button's text colour on hover. */
.kh-pdp form.cart .button::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--kh-cart-glyph) center / contain no-repeat;
  mask: var(--kh-cart-glyph) center / contain no-repeat;
}
.kh-pdp form.cart .button:hover {
  background: var(--kh-navy) !important;
  color: #fff !important;
}

/* Sits in the cart form's row beside Add to cart, and is rendered as a link on
   simple products and a button on variable ones — so the box model is stated
   rather than inherited. */
.kh-pdp__buynow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 180px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  gap: 9px;
  height: 54px;
  border-radius: var(--kh-r-pill);
  background: var(--kh-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(254, 100, 20, .28);
  transition: background-color .18s, transform .18s;
}
.kh-pdp__buynow:hover { background: var(--kh-primary-dark); color: #fff; transform: translateY(-1px); }

.kh-pdp__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.kh-pdp__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kh-600);
}
.kh-pdp__trust svg { color: var(--kh-green); }

/* Share / copy link */
.kh-pdp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--kh-200);
}
.kh-pdp__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--kh-r-pill);
  border: 1px solid var(--kh-200);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kh-700);
  transition: border-color .18s, color .18s;
}
.kh-pdp__action:hover { border-color: var(--kh-primary); color: var(--kh-primary); }
.kh-pdp__action.is-done { border-color: var(--kh-green); color: var(--kh-green); }

.kh-pdp__ship { display: flex; flex-direction: column; gap: 14px; }
.kh-pdp__ship-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--kh-500);
}
.kh-pdp__ship-row svg { color: var(--kh-primary); margin-top: 2px; flex: none; }
.kh-pdp__ship-row strong { display: block; color: var(--kh-navy); font-size: 14px; }

/* Description / additional info tabs */
.kh-pdp__tabs .woocommerce-tabs { margin: 0; }
.kh-pdp__tabs .woocommerce-tabs ul.tabs {
  margin: 0 0 22px;
  padding: 0 0 0 0;
  border-bottom: 1px solid var(--kh-200);
  /* Scroll the strip instead of wrapping it, so extra tabs from plugins can't
     stack up on a phone. */
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.kh-pdp__tabs .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.kh-pdp__tabs .woocommerce-tabs ul.tabs li { flex: none; }
.kh-pdp__tabs .woocommerce-tabs ul.tabs::before { border: 0; }
.kh-pdp__tabs .woocommerce-tabs ul.tabs li {
  margin: 0 6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.kh-pdp__tabs .woocommerce-tabs ul.tabs li::before,
.kh-pdp__tabs .woocommerce-tabs ul.tabs li::after { display: none; }
.kh-pdp__tabs .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 12px 18px !important;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--kh-500);
  border-bottom: 2px solid transparent;
}
.kh-pdp__tabs .woocommerce-tabs ul.tabs li.active a { color: var(--kh-primary); border-bottom-color: var(--kh-primary); }
.kh-pdp__tabs .woocommerce-Tabs-panel h2 { font-size: 19px; margin-bottom: 12px; }
.kh-pdp__tabs .woocommerce-Tabs-panel { font-size: 15px; line-height: 1.7; color: var(--kh-600); }
/* Product copy is author-supplied, so anything unwrappable scrolls in place
   rather than widening the page. */
.kh-pdp__tabs .woocommerce-Tabs-panel table,
.kh-pdp__tabs .woocommerce-Tabs-panel pre { display: block; max-width: 100%; overflow-x: auto; }
.kh-pdp__tabs .woocommerce-Tabs-panel img { height: auto; }

@media (max-width: 991px) {
  .kh-pdp__grid { grid-template-columns: 1fr; gap: 28px; }
  .kh-pdp__title { font-size: 24px; }
  .kh-pdp__price { font-size: 27px; }
}
@media (max-width: 640px) {
  /* Thumbs move under the stage once the column is this narrow. */
  .kh-gal { --kh-gal-h: min(72vh, 520px); grid-template-columns: 1fr; gap: 10px; }
  .kh-gal__thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .kh-gal__thumb { width: 64px; }
  .kh-gal__nav { display: none; }
  .kh-pdp__title { font-size: 21px; }
  .kh-pdp__price { font-size: 24px; }
  .kh-pdp__toprow { gap: 8px; }
  .kh-pdp__save { margin-left: 0; }
  .kh-pdp form.cart .button,
  .kh-pdp__buynow { min-width: 0; width: 100%; flex-basis: 100%; }
  .kh-pdp .quantity.kh-qty { width: 100%; justify-content: space-between; }
  .kh-pdp__trust { gap: 8px 16px; }
  .kh-pdp__trust li { font-size: 12.5px; }
  .kh-crumbs__here { max-width: 18ch; }
}

/* --------------------------------------------------------------------------
   25. WooCommerce
   Overrides on top of Woo's own stylesheets, so shop pages match the theme.
   -------------------------------------------------------------------------- */

.kh-woo .woocommerce-result-count,
.kh-woo .woocommerce-ordering { margin-bottom: 20px; font-size: 13.5px; color: var(--kh-500); }
.kh-woo .woocommerce-ordering select {
  padding: 8px 12px;
  border: 1px solid var(--kh-200);
  border-radius: var(--kh-r-sm);
  font: inherit;
  font-size: 13.5px;
  background: #fff;
}

/* Product grid */
.kh-woo ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kh-woo ul.products::before,
.kh-woo ul.products::after { content: none; }
.kh-woo ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid var(--kh-200);
  border-radius: var(--kh-r);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.kh-woo ul.products li.product:hover {
  border-color: transparent;
  box-shadow: var(--kh-shadow-lg);
  transform: translateY(-3px);
}
.kh-woo ul.products li.product a img {
  margin: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--kh-100);
}
.kh-woo ul.products li.product .woocommerce-loop-product__title {
  padding: 11px 12px 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--kh-800);
}
.kh-woo ul.products li.product .price {
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--kh-900);
}
.kh-woo ul.products li.product .price del { font-size: 12px; font-weight: 400; color: var(--kh-400); }
.kh-woo ul.products li.product .price ins { text-decoration: none; }
.kh-woo ul.products li.product .star-rating { margin: 6px 12px 0; font-size: .75em; color: var(--kh-amber); }
.kh-woo ul.products li.product .button {
  margin: 10px 12px 12px;
  align-self: flex-start;
}
/* WooCommerce's own rule is `.woocommerce ul.products li.product .onsale`, four
   classes, so the badge needs at least that much weight to be moved — otherwise
   it keeps Woo's negative margin and gets clipped by the card's rounded corner. */
.kh-woo span.onsale,
.kh-woo ul.products li.product span.onsale,
.kh-woo div.product span.onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 2;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 5px 10px;
  border-radius: var(--kh-r-pill);
  background: var(--kh-rose);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

/* Buttons */
.kh-woo .button,
.kh-woo button.button,
.kh-woo input.button,
.kh-woo a.button,
.kh-woo .woocommerce-button {
  padding: 10px 18px !important;
  border-radius: var(--kh-r-sm) !important;
  background: var(--kh-primary) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  transition: background-color .18s;
}
.kh-woo .button:hover,
.kh-woo button.button:hover,
.kh-woo a.button:hover { background: var(--kh-primary-dark) !important; }
.kh-woo .button.alt,
.kh-woo button.button.alt { background: var(--kh-brand-ink) !important; }
.kh-woo .button.alt:hover { background: #000 !important; }

/* Notices */
.kh-woo .woocommerce-message,
.kh-woo .woocommerce-info,
.kh-woo .woocommerce-error {
  border-top: 0;
  border-left: 3px solid var(--kh-primary);
  border-radius: var(--kh-r-sm);
  background: var(--kh-primary-tint);
  color: var(--kh-700);
  font-size: 13.5px;
}
.kh-woo .woocommerce-message::before,
.kh-woo .woocommerce-info::before { color: var(--kh-primary); }
.kh-woo .woocommerce-error { border-left-color: var(--kh-rose); background: var(--kh-rose-tint); }

/* Single product */
.kh-woo div.product .product_title { font-size: 26px; margin-bottom: 10px; }
.kh-woo div.product p.price { font-size: 24px; font-weight: 700; color: var(--kh-900); }
.kh-woo div.product p.price del { font-size: 16px; color: var(--kh-400); }
.kh-woo div.product .woocommerce-tabs ul.tabs li {
  border-radius: var(--kh-r-sm) var(--kh-r-sm) 0 0;
  background: var(--kh-100);
  border-color: var(--kh-200);
}
.kh-woo div.product .woocommerce-tabs ul.tabs li.active { background: #fff; }
.kh-woo .quantity .qty {
  padding: 8px;
  border: 1px solid var(--kh-200);
  border-radius: var(--kh-r-sm);
  font: inherit;
}

/* Forms, cart and checkout */
.kh-woo table.shop_table {
  border-radius: var(--kh-r);
  border-color: var(--kh-200);
  font-size: 14px;
}
.kh-woo table.shop_table th { color: var(--kh-900); }
.kh-woo .form-row input.input-text,
.kh-woo .form-row textarea,
.kh-woo .form-row select,
.kh-woo #coupon_code {
  padding: 10px 12px;
  border: 1px solid var(--kh-300);
  border-radius: var(--kh-r-sm);
  font: inherit;
  font-size: 14px;
}
.kh-woo .form-row input.input-text:focus,
.kh-woo .form-row textarea:focus {
  outline: none;
  border-color: var(--kh-primary);
  box-shadow: 0 0 0 3px rgba(254, 100, 20, .12);
}
.kh-woo .select2-container--default .select2-selection--single {
  height: 42px;
  border-color: var(--kh-300);
  border-radius: var(--kh-r-sm);
}
.kh-woo .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; }

/* Pagination */
.kh-woo .woocommerce-pagination ul.page-numbers {
  border: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.kh-woo .woocommerce-pagination ul.page-numbers li { border: 0; }
.kh-woo .woocommerce-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kh-200);
  border-radius: var(--kh-r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kh-600);
}
.kh-woo .woocommerce-pagination .page-numbers.current {
  background: var(--kh-primary);
  border-color: var(--kh-primary);
  color: #fff;
}

@media (max-width: 991px) {
  .kh-woo ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .kh-woo ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kh-woo div.product .product_title { font-size: 21px; }
}

/* --------------------------------------------------------------------------
   26. Small-screen polish
   Final pass for narrow phones, where the masthead runs out of room before
   any single component does.
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  .kh-trustbar { font-size: 12.5px; }
  .kh-trustbar__inner { gap: 20px; }

  .kh-masthead__inner { gap: 10px; }
  .kh-brand img { height: 32px; max-width: 152px; }
  .kh-hnav { gap: 12px; }

  .kh-section { padding: 26px 0; }
  .kh-section--tight { padding: 20px 0; }
}

@media (max-width: 400px) {
  .kh-brand img { max-width: 126px; }
  .kh-burger { width: 36px; height: 36px; }
  .kh-hnav { gap: 9px; }

  /* Give the query itself room once the field gets this narrow. */
  .kh-hsearch__cam { display: none; }
  .kh-hsearch__btn { padding: 0 13px; }

  .kh-container { padding-inline: 14px; }
}

/* --------------------------------------------------------------------------
   27. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
