/* ============================================================
   KLUBHAUS-inspired theme — shared across all pages
   Plain CSS on top of Bootstrap 5.3
   ============================================================ */

:root {
  --kh-primary: #0a0a0a;
  --kh-primary-soft: #1a1a1a;
  --kh-accent: #c9a227;        /* warm gold */
  --kh-accent-dark: #a8851c;
  --kh-bg: #f6f4f0;            /* warm off-white */
  --kh-surface: #ffffff;
  --kh-muted: #6b6b6b;
  --kh-border: #e4e0d8;
  --kh-success: #2e7d32;
  --kh-error: #c0392b;
  --kh-font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --kh-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--kh-font);
  background-color: var(--kh-bg);
  color: var(--kh-primary);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: var(--kh-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--kh-accent); }

/* ---------- Announcement bar ---------- */
.kh-announce {
  background: var(--kh-primary);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 1rem;
}
.kh-announce a { color: var(--kh-accent); }

/* ---------- Navbar ---------- */
.kh-navbar {
  background: var(--kh-surface);
  border-bottom: 1px solid var(--kh-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.3s ease;
}
.kh-navbar.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.kh-brand {
  font-family: var(--kh-serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: var(--kh-primary);
}
.kh-brand span { color: var(--kh-accent); }
.kh-nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kh-primary) !important;
  position: relative;
  padding: 0.5rem 0.9rem !important;
}
.kh-nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 2px;
  background: var(--kh-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.kh-nav-link:hover::after,
.kh-nav-link.active::after { transform: scaleX(1); }

.kh-icon-btn {
  background: none; border: none;
  color: var(--kh-primary);
  font-size: 1.15rem;
  padding: 0.4rem 0.6rem;
  position: relative;
  transition: color 0.2s ease;
}
.kh-icon-btn:hover { color: var(--kh-accent); }
.kh-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--kh-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ---------- Hero / slideshow ---------- */
.kh-hero {
  position: relative;
  overflow: hidden;
  background: var(--kh-primary);
}
.kh-slide {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  position: absolute;
  inset: 0;
}
.kh-slide.active { opacity: 1; position: relative; }
.kh-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
}
.kh-slide-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 620px;
  padding: 0 1.5rem;
}
.kh-slide-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--kh-accent);
  margin-bottom: 1rem;
}
.kh-slide h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.kh-slide p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 2rem;
}
.kh-hero-dots {
  position: absolute;
  bottom: 1.8rem; left: 0; right: 0;
  z-index: 5;
  text-align: center;
}
.kh-hero-dots button {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kh-hero-dots button.active {
  background: var(--kh-accent);
  border-color: var(--kh-accent);
  width: 30px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.kh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--kh-font);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.kh-btn-primary {
  background: var(--kh-accent);
  color: #fff;
}
.kh-btn-primary:hover {
  background: var(--kh-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201,162,39,0.35);
}
.kh-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.kh-btn-outline:hover {
  background: #fff;
  color: var(--kh-primary);
}
.kh-btn-dark {
  background: var(--kh-primary);
  color: #fff;
}
.kh-btn-dark:hover {
  background: var(--kh-accent);
  color: #fff;
}

/* ---------- Section headings ---------- */
.kh-section { padding: 5rem 0; }
.kh-section-head { text-align: center; margin-bottom: 3rem; }
.kh-section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--kh-accent);
  font-weight: 600;
}
.kh-section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin: 0.6rem 0 0.8rem;
}
.kh-section-head p {
  color: var(--kh-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Collection cards (landing) ---------- */
.kh-collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.kh-collection-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.kh-collection-card:hover img { transform: scale(1.07); }
.kh-collection-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex; align-items: flex-end;
  padding: 1.6rem;
}
.kh-collection-card .overlay h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
}
.kh-collection-card .overlay .sub {
  color: var(--kh-accent);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}
.kh-collection-card:hover .overlay .sub {
  opacity: 1; transform: translateY(0);
}

/* ---------- Product card (store + landing) ---------- */
.kh-product {
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  overflow: hidden;
  transition: all 0.35s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.kh-product:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,0.1);
  border-color: transparent;
  transform: translateY(-4px);
}
.kh-product-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #efece6;
}
.kh-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.kh-product:hover .kh-product-img img { transform: scale(1.06); }
.kh-product-badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: var(--kh-primary);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
}
.kh-product-badge.sale { background: var(--kh-error); }
.kh-product-actions {
  position: absolute;
  bottom: 0.8rem; right: 0.8rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
}
.kh-product:hover .kh-product-actions { opacity: 1; transform: translateY(0); }
.kh-product-actions button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--kh-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.kh-product-actions button:hover { background: var(--kh-accent); color: #fff; }
.kh-product-body {
  padding: 1.1rem 1.1rem 1.3rem;
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.kh-product-cat {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kh-muted);
}
.kh-product-title {
  font-family: var(--kh-font);
  font-weight: 600;
  font-size: 1rem;
  margin: 0.3rem 0 0.5rem;
  color: var(--kh-primary);
}
.kh-product a:hover .kh-product-title { color: var(--kh-accent); }
.kh-product-price { font-weight: 700; color: var(--kh-primary); }
.kh-product-price .old {
  color: var(--kh-muted);
  font-weight: 400;
  text-decoration: line-through;
  margin-left: 0.4rem;
  font-size: 0.9em;
}
.kh-product-rating {
  font-size: 0.82rem;
  color: var(--kh-accent);
  margin-top: 0.4rem;
}
.kh-product-rating span { color: var(--kh-muted); margin-left: 0.3rem; }

/* ---------- Feature strip ---------- */
.kh-features {
  background: var(--kh-primary);
  color: #fff;
  padding: 2.6rem 0;
}
.kh-feature { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.kh-feature i { font-size: 1.8rem; color: var(--kh-accent); }
.kh-feature h6 { margin: 0; font-family: var(--kh-font); font-weight: 600; letter-spacing: 0.05em; }
.kh-feature p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* ---------- Newsletter ---------- */
.kh-newsletter {
  background: var(--kh-primary-soft);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.kh-newsletter h3 { font-size: 2rem; }
.kh-newsletter p { color: rgba(255,255,255,0.7); margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */
.kh-footer {
  background: var(--kh-primary);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
}
.kh-footer h6 {
  color: #fff;
  font-family: var(--kh-font);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}
.kh-footer a { display: block; color: rgba(255,255,255,0.65); padding: 0.25rem 0; font-size: 0.9rem; }
.kh-footer a:hover { color: var(--kh-accent); }
.kh-footer .kh-brand { color: #fff; }
.kh-footer p, .kh-footer a { overflow-wrap: anywhere; }
.kh-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  margin-right: 0.5rem;
  color: rgba(255,255,255,0.7);
}
.kh-social a:hover { background: var(--kh-accent); border-color: var(--kh-accent); color: #fff; }
.kh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Store: sidebar / filters ---------- */
.kh-filter-list { list-style: none; padding: 0; margin: 0; }
.kh-filter-list li { padding: 0.4rem 0; }
.kh-filter-list a { color: var(--kh-muted); font-size: 0.92rem; cursor: pointer; }
.kh-filter-list a:hover, .kh-filter-list a.active { color: var(--kh-accent); }
.kh-chip {
  display: inline-block;
  background: var(--kh-primary);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  margin: 0.2rem;
  cursor: pointer;
}
.kh-chip:hover { background: var(--kh-accent); color: #fff; }
.kh-chip.active, .kh-chip.active:hover { background: var(--kh-accent); color: #fff; }
.kh-sort-select {
  border: 1px solid var(--kh-border);
  background: var(--kh-surface);
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

/* ---------- Product detail ---------- */
.kh-breadcrumb { font-size: 0.82rem; color: var(--kh-muted); margin-bottom: 1.5rem; }
.kh-breadcrumb a:hover { color: var(--kh-accent); }
.kh-pd-gallery .kh-pd-main {
  border: 1px solid var(--kh-border);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #efece6;
}
.kh-pd-gallery .kh-pd-main img { width: 100%; height: 100%; object-fit: cover; }
.kh-pd-thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.kh-pd-thumbs img {
  width: 78px; height: 104px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--kh-border);
  cursor: pointer; opacity: 0.7;
  transition: all 0.2s ease;
}
.kh-pd-thumbs img.active, .kh-pd-thumbs img:hover { opacity: 1; border-color: var(--kh-accent); }
.kh-pd-info { min-width: 0; overflow-wrap: anywhere; }
.kh-pd-info h1 { font-size: 2.1rem; }
.kh-pd-badge { position: static; }
.kh-pd-info .tab-content img,
.kh-pd-info .tab-content video,
.kh-pd-info .tab-content iframe { max-width: 100%; height: auto; }
.kh-pd-info .tab-content table { display: block; max-width: 100%; overflow-x: auto; }
.kh-pd-price { font-size: 1.7rem; font-weight: 700; }
.kh-pd-price .old { color: var(--kh-muted); font-weight: 400; text-decoration: line-through; font-size: 1.1rem; margin-left: 0.6rem; }
.kh-pd-meta { color: var(--kh-muted); font-size: 0.9rem; }
.kh-swatch {
  display: inline-block;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: border-color 0.2s ease;
}
.kh-swatch.active { border-color: var(--kh-primary); }
.kh-size-btn {
  min-width: 48px;
  border: 1px solid var(--kh-border);
  background: #fff;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}
.kh-size-btn.active, .kh-size-btn:hover { background: var(--kh-primary); color: #fff; border-color: var(--kh-primary); }
.kh-qty { display: inline-flex; border: 1px solid var(--kh-border); }
.kh-qty button {
  width: 42px; border: none; background: #fff; font-size: 1.1rem; cursor: pointer;
}
.kh-qty input {
  width: 72px; min-width: 72px; padding: 0.4rem 0.2rem;
  border: none; text-align: center; font-weight: 600; font-size: 1rem;
  background: #fff; color: var(--kh-primary);
  -moz-appearance: textfield; appearance: textfield;
}
.kh-qty input::-webkit-outer-spin-button,
.kh-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kh-pd-tabs .nav-link { color: var(--kh-muted); font-weight: 600; border: none; border-bottom: 2px solid transparent; border-radius: 0; }
.kh-pd-tabs .nav-link.active { color: var(--kh-primary); border-bottom-color: var(--kh-accent); }

/* ---------- Cart drawer ---------- */
.kh-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.kh-drawer-overlay.open { opacity: 1; visibility: visible; }
.kh-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 90vw;
  background: #fff;
  z-index: 1055;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex; flex-direction: column;
}
.kh-cart-drawer.open { transform: translateX(0); }
.kh-cart-drawer .kh-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--kh-border);
}
.kh-cart-drawer .kh-drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.kh-cart-drawer .kh-drawer-foot { border-top: 1px solid var(--kh-border); padding: 1.2rem 1.4rem; }
.kh-cart-item { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--kh-border); }
.kh-cart-item img { width: 70px; height: 90px; object-fit: cover; }
.kh-cart-item h6 { margin: 0; font-size: 0.95rem; font-family: var(--kh-font); font-weight: 600; }
.kh-cart-item .meta { font-size: 0.8rem; color: var(--kh-muted); }
.kh-cart-item .price { font-weight: 700; }
.kh-cart-item .remove { color: var(--kh-muted); cursor: pointer; background: none; border: none; }
.kh-cart-item .remove:hover { color: var(--kh-error); }
.kh-empty { text-align: center; padding: 3rem 1rem; color: var(--kh-muted); }
.kh-empty i { font-size: 3rem; color: var(--kh-border); }

/* ---------- Checkout ---------- */
.kh-checkout { padding: 3rem 0 5rem; }
.kh-form-control {
  border: 1px solid var(--kh-border);
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
.kh-form-control:focus { border-color: var(--kh-accent); box-shadow: none; }
.kh-order-summary {
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  padding: 1.6rem;
}
.kh-order-summary h5 { font-family: var(--kh-font); font-weight: 700; }
.kh-order-line { display: flex; justify-content: space-between; margin: 0.5rem 0; font-size: 0.92rem; }
.kh-order-total { border-top: 1px solid var(--kh-border); margin-top: 1rem; padding-top: 1rem; font-weight: 700; font-size: 1.1rem; }
.kh-step-badge {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--kh-border); color: var(--kh-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; margin-right: 0.6rem;
}
.kh-step-badge.active { background: var(--kh-accent); color: #fff; }

/* ---------- Toast ---------- */
.kh-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--kh-primary); color: #fff;
  padding: 0.9rem 1.4rem;
  z-index: 1100;
  transform: translateY(120%);
  transition: transform 0.35s ease;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.kh-toast.show { transform: translateY(0); }
.kh-toast i { color: var(--kh-accent); }

/* ---------- Helpers ---------- */
.kh-divider { width: 60px; height: 3px; background: var(--kh-accent); margin: 0.8rem auto 0; }
.text-accent { color: var(--kh-accent) !important; }
.bg-dark-soft { background: var(--kh-primary-soft) !important; }

/* ---------- Animations on scroll ---------- */
.kh-reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s ease; }
.kh-reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .kh-pd-info h1 { font-size: 1.6rem; }
  .kh-slide { min-height: 60vh; }
  .kh-feature { justify-content: flex-start; }
}

/* ---------- App-specific overrides ---------- */
.theme-luxe .kh-search-form { position: relative; display: flex; flex: 1; max-width: 520px; }
.theme-luxe .kh-search-form select {
  border: 1px solid var(--kh-border);
  border-right: none;
  background: #fff;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  color: var(--kh-primary);
  max-width: 140px;
}
.theme-luxe .kh-search-form input {
  flex: 1;
  border: 1px solid var(--kh-border);
  border-left: none;
  border-right: none;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  background: #fff;
}
.theme-luxe .kh-search-form button {
  background: var(--kh-accent);
  color: #fff;
  border: none;
  padding: 0 1.1rem;
}
.theme-luxe .kh-search-form button:hover { background: var(--kh-accent-dark); }

.theme-luxe .kh-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}
.theme-luxe .kh-pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--kh-border);
  color: var(--kh-primary);
  background: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.theme-luxe .kh-pagination .page-item.active .page-link,
.theme-luxe .kh-pagination .page-link:hover {
  background: var(--kh-accent);
  border-color: var(--kh-accent);
  color: #fff;
}
.theme-luxe .kh-pagination .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}

.theme-luxe .kh-form-card input,
.theme-luxe .kh-form-card textarea,
.theme-luxe .kh-form-card select {
  border-radius: 0;
  border: 1px solid var(--kh-border);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
.theme-luxe .kh-form-card input:focus,
.theme-luxe .kh-form-card textarea:focus,
.theme-luxe .kh-form-card select:focus {
  border-color: var(--kh-accent);
  box-shadow: none;
}

.theme-luxe .kh-summary {
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  padding: 1.6rem;
}

.theme-luxe { overflow-x: hidden; }
@supports (overflow-x: clip) {
  .theme-luxe { overflow-x: clip; }
}
.theme-luxe .container { min-width: 0; }
.theme-luxe img { max-width: 100%; }
.theme-luxe .hidden { display: none !important; }
.theme-luxe .is-invalid { border-color: var(--kh-error) !important; }


/* ============================================================
   Fashion Luxe — app surfaces (store filters, product order card,
   checkout, buy page, related products)
   ============================================================ */

/* ---------- Generic helpers used across the themed views ---------- */
.muted { color: var(--kh-muted); }
.section-pad { padding-top: 4rem; padding-bottom: 4rem; }
.theme-luxe .border-gray-300 { border-color: var(--kh-border) !important; }
.theme-luxe .size-error-msg { color: var(--kh-error); font-size: 0.78rem; font-weight: 600; }

.kh-form-card,
.kh-panel {
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  padding: 1.8rem;
}
.kh-panel h2, .kh-panel h3 { font-family: var(--kh-serif); }

/* ---------- Store hero (no static imagery — cover art comes from data) ---------- */
.kh-store-hero {
  background: radial-gradient(circle at 20% 20%, rgba(201,162,39,0.22), transparent 55%), var(--kh-primary);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.kh-store-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.kh-store-hero p { color: rgba(255,255,255,0.78); }

/* ---------- Store sidebar: radio category filter ---------- */
.kh-filter-panel {
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  padding: 1.6rem;
  position: sticky;
  top: 96px;
}
.kh-filter-title {
  font-family: var(--kh-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--kh-border);
}
.kh-filter-help { color: var(--kh-muted); font-size: 0.88rem; }

.kh-cat-radios { display: flex; flex-direction: column; }
.kh-cat-radio {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.2rem;
  cursor: pointer;
  color: var(--kh-muted);
  font-size: 0.93rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.kh-cat-radio input { position: absolute; opacity: 0; pointer-events: none; }
.kh-cat-radio .mark {
  width: 15px; height: 15px;
  border: 1px solid var(--kh-border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}
.kh-cat-radio .mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--kh-accent);
  transform: scale(0);
  transition: transform 0.2s ease;
}
.kh-cat-radio:hover { color: var(--kh-primary); padding-left: 0.45rem; }
.kh-cat-radio input:checked ~ .mark { border-color: var(--kh-accent); }
.kh-cat-radio input:checked ~ .mark::after { transform: scale(1); }
.kh-cat-radio input:checked ~ .text {
  color: var(--kh-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.kh-cat-radio input:focus-visible ~ .mark { box-shadow: 0 0 0 3px rgba(201,162,39,0.25); }

/* ---------- Landing hero driven by the shop cover photo ---------- */
.kh-hero { display: flex; align-items: center; min-height: 62vh; }
.kh-hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.kh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
}
.kh-hero-plain::after {
  background: radial-gradient(circle at 15% 25%, rgba(201,162,39,0.28), transparent 60%);
}
.kh-hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
  padding: 6rem 0;
}
.kh-hero-inner h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.06; margin-bottom: 1.1rem; }
.kh-hero-inner p { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

/* ---------- Landing collection cards: one uniform silhouette ---------- */
.kh-collection-card { display: block; background: #efece6; }
.kh-collection-card img,
.kh-collection-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kh-collection-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--kh-primary-soft), #33302a);
  color: var(--kh-accent);
  font-size: 2.4rem;
}

/* ---------- Product page: order card under the gallery ---------- */
.kh-order-card {
  scroll-margin-top: 100px;
  border-top: 3px solid var(--kh-accent);
  box-shadow: 0 12px 34px rgba(0,0,0,0.07);
}
.kh-order-card-title {
  font-family: var(--kh-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}
#desktopOrderSlot:empty { display: none !important; }

/* ---------- Related products (shared component restyled) ---------- */
.kh-related .custom-card,
.kh-related .card-padding { background: transparent; border: none; padding: 0; }
.kh-related .section-title { display: none; }
.kh-related .related-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.4rem;
}
.kh-related .related-product-link { display: block; }
.kh-related .related-product-card {
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  height: 100%;
  overflow: hidden;
  transition: all 0.35s ease;
}
.kh-related .related-product-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(0,0,0,0.1);
}
.kh-related .related-product-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #efece6;
}
.kh-related .related-product-info { padding: 1rem 1rem 1.2rem; }
.kh-related .related-product-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--kh-primary);
  margin-bottom: 0.35rem;
}
.kh-related .related-product-card:hover .related-product-title { color: var(--kh-accent); }
.kh-related .related-product-price { font-weight: 700; letter-spacing: 0.02em; }

/* ---------- Checkout ---------- */
.kh-steps { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 2rem; flex-wrap: wrap; }
.kh-steps .step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--kh-muted);
}
.kh-steps .step i { font-size: 1rem; }
.kh-steps .step.active { color: var(--kh-primary); }
.kh-steps .step.active i { color: var(--kh-accent); }
.kh-steps .step.done { color: var(--kh-accent); }
.kh-steps .line { width: 44px; height: 1px; background: var(--kh-border); flex-shrink: 0; }
@media (max-width: 575.98px) {
  .kh-steps { gap: 0.5rem 0.6rem; }
  .kh-steps .step { font-size: 0.7rem; letter-spacing: 0.08em; }
  .kh-steps .line { width: 20px; }
}

.kh-option-list { border: 1px solid var(--kh-border); background: var(--kh-surface); }
.kh-option-list .kh-option { padding: 0.9rem 1.1rem; }
.kh-option-list .kh-option + .kh-option { border-top: 1px solid var(--kh-border); }
.kh-option-list .form-check-input:checked {
  background-color: var(--kh-accent);
  border-color: var(--kh-accent);
}

.theme-luxe .kh-summary { position: sticky; top: 96px; }
.theme-luxe .kh-summary h2 { font-family: var(--kh-serif); }
.kh-summary .row-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.93rem;
}
.kh-summary .total { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; }

.kh-cart-line {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--kh-border);
  align-items: flex-start;
}
.kh-cart-line:last-child { border-bottom: none; }
.kh-cart-line > .flex-grow-1 { min-width: 0; }
.kh-cart-line h6, .kh-cart-line p { overflow-wrap: anywhere; }
.kh-cart-line img { width: 76px; height: 96px; object-fit: cover; }
.kh-cart-line h6 { font-family: var(--kh-font); font-weight: 600; font-size: 0.95rem; }
.kh-qty-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--kh-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
}
.kh-qty .input-qty {
  width: 64px;
  min-width: 64px;
  border: none;
  text-align: center;
  font-weight: 600;
  background: #fff;
}
.kh-qty button { line-height: 1; }

.kh-total-btn {
  background: var(--kh-accent);
  color: #fff;
  border: none;
  width: 100%;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  transition: all 0.25s ease;
}
.kh-total-btn:hover { background: var(--kh-accent-dark); color: #fff; }
.theme-luxe .btn-delete-product,
.theme-luxe .btn-remove-variant { border: none; background: transparent; color: var(--kh-error); }

/* ---------- Buy page ---------- */
.kh-buy-hero {
  background: linear-gradient(180deg, var(--kh-surface) 0%, var(--kh-bg) 100%);
  padding: 4rem 0;
  border-bottom: 1px solid var(--kh-border);
}
.kh-buy-hero .kh-slide-eyebrow { color: var(--kh-accent); margin-bottom: 0.8rem; }
.kh-buy-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 1rem; }
.kh-buy-lede { color: var(--kh-muted); font-size: 1.05rem; }
.kh-buy-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #efece6;
  border: 1px solid var(--kh-border);
}
.kh-buy .gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.kh-buy .gallery-slide.active { opacity: 1; transform: scale(1); }
.kh-buy .gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--kh-primary);
  z-index: 3;
  transition: all 0.2s ease;
}
.kh-buy .gallery-arrow:hover { background: var(--kh-accent); color: #fff; }
.kh-buy .gallery-arrow.prev { left: 0; }
.kh-buy .gallery-arrow.next { right: 0; }
.kh-buy .gallery-dots { display: flex; gap: 0.5rem; justify-content: center; padding-top: 0.9rem; }
.kh-buy .gallery-dot {
  width: 24px; height: 3px;
  border: none;
  background: var(--kh-border);
  transition: background 0.2s ease;
}
.kh-buy .gallery-dot.active { background: var(--kh-accent); }

.kh-buy-price {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 3px solid var(--kh-accent);
  padding: 0.4rem 0 0.4rem 1rem;
  margin-top: 1.6rem;
}
.kh-buy-price .label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--kh-muted);
}
.kh-buy-price .value { font-family: var(--kh-serif); font-size: 2rem; font-weight: 700; }

.kh-buy-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
  border-top: 1px solid var(--kh-border);
  padding-top: 1.6rem;
}
.kh-buy-assurance i { color: var(--kh-accent); font-size: 1.3rem; }
.kh-buy-assurance h6 { font-family: var(--kh-font); font-weight: 600; font-size: 0.9rem; margin: 0.4rem 0 0.15rem; }
.kh-buy-assurance span { color: var(--kh-muted); font-size: 0.8rem; }

.kh-buy-panel {
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  padding: 2rem;
}
.kh-buy-description { color: var(--kh-muted); }
.kh-buy-description { overflow-wrap: anywhere; }
.kh-buy-description img { max-width: 100%; height: auto; margin: 1rem 0; }
.kh-buy-description video, .kh-buy-description iframe { max-width: 100%; }
.kh-buy-description table { display: block; max-width: 100%; overflow-x: auto; }
.kh-buy-title, .kh-buy-lede, .kh-buy-order .line span { overflow-wrap: anywhere; }

.kh-buy-order {
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  position: sticky;
  top: 96px;
}
.kh-buy-order .head {
  background: var(--kh-primary);
  color: #fff;
  font-family: var(--kh-serif);
  font-size: 1.05rem;
  padding: 1rem 1.4rem;
  border-bottom: 3px solid var(--kh-accent);
}
.kh-buy-order .body { padding: 1.4rem; }
.kh-buy-order .line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  padding: 0.5rem 0;
}
.kh-buy-delivery { border-top: 1px solid var(--kh-border); margin-top: 0.6rem; padding-top: 0.4rem; color: var(--kh-muted); }
.kh-buy-help { color: var(--kh-muted); font-size: 0.82rem; text-align: center; margin-top: 1rem; }

@media (max-width: 991.98px) {
  .kh-filter-panel, .theme-luxe .kh-summary, .kh-buy-order { position: static; }
  .kh-buy-assurance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .kh-panel, .kh-form-card, .theme-luxe .kh-summary, .kh-buy-panel { padding: 1.2rem; }
  .kh-buy-title { font-size: 1.8rem; }
  .kh-qty input, .kh-qty .input-qty { width: 52px; min-width: 52px; }
  .kh-qty button { width: 36px; }

  /* ---------- Enable carousel navigation arrows on mobile ---------- */
  .kh-carousel .landing-carousel-nav {
    display: inline-flex;
    width: 36px;
    height: 36px;
    opacity: 1;
    z-index: 10;
  }
  .kh-carousel .landing-carousel-nav:hover {
    background: var(--kh-accent);
    color: #fff;
  }
  .kh-carousel .landing-carousel-prev { left: 6px; }
  .kh-carousel .landing-carousel-next { right: 6px; }
}

/* ---------- Loader overlay in luxe colours ---------- */
.theme-luxe .loader {
  border-color: rgba(0,0,0,0.08);
  border-top-color: var(--kh-accent);
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
}
.theme-luxe .loader::after { border-top-color: var(--kh-accent-dark); }
.theme-luxe .loading-text {
  font-family: var(--kh-font);
  color: var(--kh-primary);
  letter-spacing: 0.2em;
}

/* ---------- Landing carousels (categories + product sections) ---------- */
.kh-carousel {
  position: relative;
}
.kh-carousel-track {
  display: flex;
  align-items: stretch;
  column-gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 2px 18px;
  cursor: grab;
}
.kh-carousel-track::-webkit-scrollbar { height: 0; }
.kh-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}
.kh-carousel .landing-carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.kh-carousel-product {
  display: flex;
  width: calc((100% - 24px) / 2);
}
.kh-carousel-collection {
  width: calc((100% - 24px) / 2);
}
.kh-carousel .landing-carousel-nav {
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  color: var(--kh-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.kh-carousel:hover .landing-carousel-nav,
.kh-carousel .landing-carousel-nav:focus-visible { opacity: 1; }
.kh-carousel .landing-carousel-nav:hover {
  background: var(--kh-accent);
  border-color: var(--kh-accent);
  color: #fff;
}
.kh-carousel .landing-carousel-prev { right: auto; left: -18px; }
.kh-carousel .landing-carousel-nav.is-disabled { opacity: 0; pointer-events: none; }
.kh-carousel.is-static .landing-carousel-nav { display: none; }
.kh-carousel .landing-carousel-loader {
  position: absolute;
  right: 12px;
  bottom: -4px;
  color: var(--kh-muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .kh-carousel-product { width: calc((100% - 2 * 24px) / 3); }
  .kh-carousel-collection { width: calc((100% - 3 * 24px) / 4); }
}
@media (min-width: 1200px) {
  .kh-carousel-product { width: calc((100% - 3 * 24px) / 4); }
}
@media (max-width: 575.98px) {
  .kh-carousel .landing-carousel-nav { display: inline-flex; }
}

/* Ensure carousel navigation arrows are always visible on mobile/tablets immediately */
@media (max-width: 768px) {
    .kh-carousel .landing-carousel-nav {
        opacity: 1 !important;
        display: inline-flex !important;
        pointer-events: auto !important;
    }

        /* Keep inactive/edge buttons hidden if they reach the boundary */
        .kh-carousel .landing-carousel-nav.is-disabled,
        .kh-carousel.is-static .landing-carousel-nav {
            opacity: 0 !important;
            pointer-events: none !important;
        }
}

/* 1. Prevent global page horizontal bleed */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* 2. Contain the carousel container */
.kh-carousel {
    position: relative;
    overflow: hidden; /* Clamps any bleed from buttons or tracks */
}

/* 3. Mobile carousel arrows positioning */
@media (max-width: 768px) {
    .kh-carousel .landing-carousel-nav {
        opacity: 1 !important;
        display: inline-flex !important;
        pointer-events: auto !important;
    }

    /* Keep arrows strictly INSIDE screen boundaries */
    .kh-carousel .landing-carousel-prev {
        left: 8px !important;
        right: auto !important;
    }

    .kh-carousel .landing-carousel-next {
        right: 8px !important;
        left: auto !important;
    }

    .kh-carousel .landing-carousel-nav.is-disabled,
    .kh-carousel.is-static .landing-carousel-nav {
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 1199.98px) {
  .theme-luxe .kh-navbar .nav .kh-nav-link { padding: 0.5rem 0.5rem !important; letter-spacing: 0.04em; }
  .theme-luxe .kh-search-form { min-width: 0; }
  .theme-luxe .kh-search-form input { min-width: 0; }
  .theme-luxe .kh-search-form select { max-width: 110px; }
}
