/* ===== Kenya Ni Home Marketplace — Jumia-inspired Design ===== */
/* Scoped under .knh-marketplace to avoid conflicts with the news site */

.knh-marketplace .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.knh-marketplace {
  --orange: #f68b1e;
  --orange-hover: #e07e1b;
  --ink: #313133;
  --muted: #75757a;
  --line: #e4e6e8;
  --paper: #ffffff;
  --paper-alt: #f5f6f7;
  --bg: #f6f7f8;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 4px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --green: #009063;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.knh-marketplace *, .knh-marketplace *::before, .knh-marketplace *::after {
  box-sizing: border-box;
}

.knh-marketplace a { color: inherit; text-decoration: none; }
.knh-marketplace img { max-width: 100%; display: block; }
.knh-marketplace button, .knh-marketplace input, .knh-marketplace select {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Container ===== */
.knh-marketplace .container,
.knh-marketplace .row {
  max-width: 1248px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .knh-marketplace .container,
  .knh-marketplace .row { padding: 0 12px; }
}

/* ===== Header ===== */
.knh-marketplace .head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.knh-marketplace .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
  padding: 0;
  box-sizing: border-box;
}

.knh-marketplace .header .mobile-menu-toggle {
  display: none;
}

.knh-marketplace .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 22px;
  white-space: nowrap;
  color: var(--ink);
  flex-shrink: 0;
}

.knh-marketplace .logo img {
  max-height: 32px;
  max-width: 160px;
  object-fit: contain;
}

.knh-marketplace .logo small {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--orange);
  font-weight: 700;
}

.knh-marketplace .search {
  display: flex;
  flex: 1;
  height: 38px;
}

.knh-marketplace .search .search-icon {
  display: none;
}

.knh-marketplace .search input {
  flex: 1;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 16px;
  outline: none;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  background: var(--paper-alt);
  transition: all 0.2s ease;
}

.knh-marketplace .search input:focus {
  border-color: var(--orange);
  background: var(--paper);
  box-shadow: 0 0 0 2px rgba(246, 139, 30, 0.2);
}

.knh-marketplace .search button.search-submit {
  background: var(--orange);
  color: var(--paper);
  border: 1px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.knh-marketplace .search button.search-submit:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

/* ===== Account / Cart Buttons ===== */
.knh-marketplace .headbtn {
  background: none;
  border: none;
  padding: 4px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.knh-marketplace .headbtn:hover {
  color: var(--orange);
}

.knh-marketplace .headbtn i {
  font-size: 15px;
}

.knh-marketplace .post-ad-btn {
  background: var(--green, #009063) !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.knh-marketplace .post-ad-btn:hover {
  background: #007a52 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.knh-marketplace .post-ad-btn i {
  color: #ffffff !important;
}

/* Navbar auth buttons - premium */
.knh-marketplace .signin-btn {
  color: var(--green, #009063) !important;
  border: 1.5px solid var(--green, #009063) !important;
  padding: 7px 16px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 144, 99, 0.1) !important;
}
.knh-marketplace .signin-btn:hover {
  background: var(--green, #009063) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 144, 99, 0.25) !important;
  transform: translateY(-1px) !important;
}
.knh-marketplace .signup-btn {
  background: linear-gradient(135deg, var(--orange, #f68b1e), #ea580c) !important;
  color: #ffffff !important;
  padding: 7px 16px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  box-shadow: 0 3px 10px rgba(246, 139, 30, 0.25) !important;
  transition: all 0.2s ease !important;
}
.knh-marketplace .signup-btn:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
  box-shadow: 0 5px 14px rgba(246, 139, 30, 0.35) !important;
  transform: translateY(-1px) !important;
}
.knh-marketplace .post-ad-btn {
  background: linear-gradient(135deg, #0b8f5f, #009063) !important;
  color: #ffffff !important;
  padding: 7px 16px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  box-shadow: 0 3px 10px rgba(0, 144, 99, 0.25) !important;
  transition: all 0.2s ease !important;
}
.knh-marketplace .post-ad-btn:hover {
  background: linear-gradient(135deg, #009063, #007a52) !important;
  box-shadow: 0 5px 14px rgba(0, 144, 99, 0.35) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 640px) {
  .knh-marketplace .signin-btn,
  .knh-marketplace .signup-btn {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
  }
  .knh-marketplace .post-ad-btn {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
  }
  .knh-marketplace .actions {
    gap: 5px !important;
  }
  .knh-marketplace .headbtn {
    padding: 4px 6px !important;
    font-size: 12px !important;
  }
  .knh-marketplace .headbtn i {
    font-size: 14px !important;
  }
}
.knh-marketplace .signin-btn {
  color: var(--green, #009063) !important;
  border: 1px solid var(--green, #009063) !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.knh-marketplace .signin-btn:hover {
  background: var(--green, #009063) !important;
  color: #ffffff !important;
}
.knh-marketplace .signup-btn {
  background: var(--orange, #f68b1e) !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.knh-marketplace .signup-btn:hover {
  background: #d97706 !important;
  color: #ffffff !important;
}
.knh-marketplace .nav-hide-sm { display: inline; }
@media (max-width: 640px) {
  .knh-marketplace .nav-hide-sm { display: none; }
}

/* Product image auto-fit */
.knh-marketplace .product .photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}
.knh-marketplace .product .photo {
  overflow: hidden;
}
.knh-marketplace .cat-strip-img img,
.knh-marketplace .hero-cat-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 980px) {
  .knh-marketplace .post-ad-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  .knh-marketplace .post-ad-btn .post-ad-text {
    display: inline !important;
  }
}

@media (max-width: 640px) {
  .knh-marketplace .post-ad-btn {
    padding: 6px 8px !important;
    font-size: 11.5px !important;
  }
}

/* ===== Dropdown Menus ===== */
.knh-marketplace .headbtn.dropdown {
  position: relative;
}

.knh-marketplace .dropdown-menu {
  position: absolute;
  top: 100%;
  z-index: 10;
  left: 0;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  margin: 0;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.knh-marketplace .dropdown-menu.show {
  display: block;
}

.knh-marketplace .headbtn:hover .dropdown-menu,
.knh-marketplace .dropdown-menu:hover {
  display: block;
}

.knh-marketplace .dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s ease;
}

.knh-marketplace .dropdown a:hover {
  background: var(--orange);
  color: var(--paper);
}

.knh-marketplace .headbtn .badge {
  background: var(--orange);
  color: var(--paper);
  border-radius: 50%;
  padding: 2px 7px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.knh-marketplace .headbtn#whatsapp {
  color: #25d36e;
  padding: 4px 10px;
}
.knh-marketplace .headbtn#whatsapp:hover {
  background: rgba(37, 211, 108, 0.1);
  color: #1dd850;
}
.knh-marketplace .headbtn#whatsapp i {
  font-size: 16px;
}
.knh-marketplace .footlinks a.footlink-whatsapp {
  color: #25d36e;
  font-weight: 700;
}
.knh-marketplace .footlinks a.footlink-whatsapp:hover {
  text-decoration: underline;
}
.knh-marketplace .nav {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  box-sizing: border-box;
}

.knh-marketplace .nav::-webkit-scrollbar { height: 4px; }
.knh-marketplace .nav::-webkit-scrollbar-thumb { background: #d4d4d6; }

.knh-marketplace .nav button {
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}

.knh-marketplace .nav button:hover { color: var(--orange); }
.knh-marketplace .nav button.active {
  color: var(--orange);
  font-weight: 700;
}
.knh-marketplace .nav button.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}

.knh-marketplace .nav button i { font-size: 16px; }

/* ===== Main Content ===== */
.knh-marketplace main {
  padding: 20px 0;
}

/* ===== Hero ===== */
.knh-marketplace .hero {
  position: relative;
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #100c1b;
  box-shadow: none;
  min-height: 280px;
  aspect-ratio: 1740 / 520;
  cursor: default;
}

.knh-marketplace .hero-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.knh-marketplace .hero-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.knh-marketplace .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.knh-marketplace .hero .slide-text {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 40px 8%;
  width: 60%;
  color: white;
  z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7));
}

.knh-marketplace .hero .slide-text h1 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 8px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  animation: slideIn 0.6s ease-out;
}

.knh-marketplace .hero .slide-accent {
  color: var(--orange);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  display: block;
  margin: 4px 0 8px;
  animation: slideIn 0.6s ease-out 0.1s both;
}

.knh-marketplace .hero .slide-description {
  font-size: clamp(14px, 2.2vw, 17px);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 16px;
  color: #e0e0e0;
  font-family: 'Montserrat', sans-serif;
  max-width: 90%;
  animation: slideIn 0.6s ease-out 0.1s both;
}

.knh-marketplace .hero .hero-cta {
  border-radius: 24px;
  padding: 10px 24px;
  font-weight: 700;
  background: white;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: slideIn 0.6s ease-out 0.2s both;
}

.knh-marketplace .hero .hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.knh-marketplace .hero .arrow {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.knh-marketplace .hero .arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.knh-marketplace .hero .arrow.prev { left: 8px; }
.knh-marketplace .hero .arrow.next { right: 8px; left: auto; }

.knh-marketplace .hero .dots {
  display: flex;
  gap: 6px;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.knh-marketplace .hero .dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.knh-marketplace .hero .dots button.on {
  background: var(--orange);
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .knh-marketplace .hero { min-height: 200px; }
}
/* ===== Section Layout ===== */
.knh-marketplace section.category-section,
.knh-marketplace section.mint,
.knh-marketplace section.flash,
.knh-marketplace section.results {
  margin: 20px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

/* Section background colors by category (applied to entire section) */
.knh-marketplace section.section-top    { background: #e8f5e9; }
.knh-marketplace section.section-flash  { background: #e6f4ea; }
.knh-marketplace section.section-official   { background: #e8f5e9; }
.knh-marketplace section.section-phones     { background: #e2f5f1; }
.knh-marketplace section.section-audio      { background: #e5f3f7; }
.knh-marketplace section.section-appliances { background: #f0f7e8; }
.knh-marketplace section.section-beauty     { background: #e8f7ef; }
.knh-marketplace section.section-home       { background: #eaf4e2; }
.knh-marketplace section.section-fashion    { background: #e0f5ea; }
.knh-marketplace section.section-computing  { background: #e6f2f0; }
.knh-marketplace section.section-cars       { background: #f5f0e6; }
.knh-marketplace section.results,
.knh-marketplace section.results.show       { background: var(--paper); }

.knh-marketplace section.category-section.empty,
.knh-marketplace section.mint.empty,
.knh-marketplace section.flash.empty,
.knh-marketplace section.results.empty {
  display: none;
}

/* ===== Section Head ===== */
.knh-marketplace .sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 12px 16px;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 0;
}

.knh-marketplace .sectionhead h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.knh-marketplace .sectionhead h2 i {
  font-size: 20px;
}

/* Distinct colors for section titles */
.knh-marketplace .section-top .sectionhead h2,
.knh-marketplace .section-official .sectionhead h2 { color: #2e7d32; }
.knh-marketplace .section-flash .sectionhead h2 { color: #ffffff; }
.knh-marketplace .section-phones .sectionhead h2 { color: #00695c; }
.knh-marketplace .section-audio .sectionhead h2 { color: #0277bd; }
.knh-marketplace .section-appliances .sectionhead h2 { color: #558b2f; }
.knh-marketplace .section-beauty .sectionhead h2 { color: #2e7d32; }
.knh-marketplace .section-home .sectionhead h2 { color: #558b2f; }
.knh-marketplace .section-fashion .sectionhead h2 { color: #2e7d32; }
.knh-marketplace .section-computing .sectionhead h2 { color: #00695c; }
.knh-marketplace .section-cars .sectionhead h2 { color: #6d4c41; }

.knh-marketplace .sectionhead h2 i { color: inherit; }

.knh-marketplace .sectionhead .timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  flex-shrink: 0;
}

.knh-marketplace .sectionhead .seeall {
  background: transparent;
  border: 1px solid var(--line);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 24px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.knh-marketplace .sectionhead .seeall:hover {
  color: var(--orange);
  background: var(--bg);
  border-color: var(--orange);
}

.knh-marketplace .sectionhead .seeall i {
  font-size: 14px;
  color: var(--muted);
}

/* ===== Products Horizontal Scroll (all breakpoints) ===== */
.knh-marketplace .products {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  box-sizing: border-box;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
  -webkit-overflow-scrolling: touch;
}

.knh-marketplace .products::-webkit-scrollbar {
  height: 4px;
}

.knh-marketplace .products::-webkit-scrollbar-track {
  background: transparent;
}

.knh-marketplace .products::-webkit-scrollbar-thumb {
  background-color: var(--muted);
  border-radius: 2px;
}

.knh-marketplace .products .product {
  flex: 0 0 185px;
  width: 185px;
  height: auto;
  min-height: 0;
  scroll-snap-align: start;
  align-self: stretch;
}

/* ===== Product Row Wrapper ===== */
.knh-marketplace .products-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* ===== Prev/Next Arrows ===== */
.knh-marketplace .products-wrap .arrow {
  position: sticky;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.knh-marketplace .products-wrap .arrow:hover:not(:disabled) {
  background: var(--orange);
  color: var(--paper);
  transform: translateY(-50%) scale(1.1);
}

.knh-marketplace .products-wrap .arrow:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.knh-marketplace .products-wrap .arrow.next {
  left: auto;
  right: 0;
}

.knh-marketplace .products .product {
  flex: 0 0 auto;
  width: 185px;
}

/* ===== Product Card ===== */
.knh-marketplace .product {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 0 0 185px;
  width: 185px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  box-shadow: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
}

.knh-marketplace .product .photo {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  display: block;
  border: 0;
  border-radius: 12px 12px 0 0;
  background-color: #f8f9fa;
  overflow: hidden;
  flex-shrink: 0;
}

.knh-marketplace .product .photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.knh-marketplace .product .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 42px;
  color: var(--muted);
}

.knh-marketplace .product .details {
  padding: 8px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
  min-height: 0;
}

.knh-marketplace .product .name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--ink);
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  min-height: 0;
  max-height: 36px;
}

.knh-marketplace .product .name:hover {
  color: var(--orange);
}

.knh-marketplace .product .rating {
  font-size: 11px;
  line-height: 16px;
  color: #f68b1e;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}

.knh-marketplace .product .rating span {
  color: var(--muted);
  font-weight: 500;
}

.knh-marketplace .product .price {
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
  margin-top: 6px;
}

.knh-marketplace .product .price-old-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.knh-marketplace .product .old {
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}

.knh-marketplace .product .discount {
  background: #11843b;
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.knh-marketplace .product .add {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: #303030;
  color: var(--paper);
  border-radius: 50%;
  font-size: 20px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.2s ease;
}

.knh-marketplace .product .add:hover {
  background: var(--orange);
  transform: scale(1.1);
}

/* Save (heart) button on product cards */
.knh-marketplace .product .save-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #303030;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
}
.knh-marketplace .product .save-btn i { font-size: 17px; line-height: 1; }
.knh-marketplace .product .save-btn:hover {
  background: #fff;
  color: #e0245e;
  transform: scale(1.1);
}
.knh-marketplace .product .save-btn.is-saved {
  background: #e0245e;
  color: #fff;
}
.knh-marketplace .product .save-btn.is-saved i { font-weight: 700; }

/* Save button inside the product popup */
.pd-save {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--line, #e4e7ec);
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.pd-save i { font-size: 18px; }
.pd-save:hover {
  border-color: #e0245e;
  color: #e0245e;
}
.pd-save.is-saved {
  background: #e0245e;
  border-color: #e0245e;
  color: #fff;
}
.pd-save.is-saved i { font-weight: 700; }

/* ===== Categories Grid ===== */
.knh-marketplace .categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 12px 0;
}

.knh-marketplace .categories button.cat {
  padding: 12px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.knh-marketplace .categories button.cat:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: var(--shadow-card);
}

.knh-marketplace .categories .cat .photo {
  border-radius: var(--radius-sm);
  aspect-ratio: 1.5 / 1;
  margin-bottom: 8px;
  background: var(--paper-alt);
}

/* ===== Promo Banners ===== */
.knh-marketplace .promos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 0;
}

.knh-marketplace .promo {
  padding: 24px;
  text-align: left;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #e62020, #ff6500);
  color: white;
  position: relative;
  min-height: 160px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.knh-marketplace .promo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.knh-marketplace .promo strong {
  font-size: 26px;
  line-height: 1.1;
  display: block;
  max-width: 70%;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.knh-marketplace .promo span {
  display: block;
  font-size: 13px;
  opacity: 0.9;
}

.knh-marketplace .promo:nth-child(2) {
  background: linear-gradient(120deg, #d93025, #e65100);
}

.knh-marketplace .promo:nth-child(3) {
  background: linear-gradient(120deg, #1a73e8, #4285f4);
}

.knh-marketplace .promo:nth-child(4) {
  background: linear-gradient(120deg, #f68b1e, #ffb347);
}

.knh-marketplace .promo b {
  position: absolute;
  right: 16px;
  top: 24px;
  font-size: 40px;
  opacity: 0.2;
}

/* ===== Flash Sales ===== */
.knh-marketplace .flash {
  margin: 16px 0;
}

.knh-marketplace .section-flash .sectionhead {
  background: linear-gradient(90deg, #c62828, #f68b1e);
  color: white;
  border-radius: 14px 14px 0 0;
  padding: 14px 20px;
  margin: 0;
  flex-wrap: nowrap;
  gap: 12px;
}

.knh-marketplace .section-flash .sectionhead h2 {
  color: white;
  font-size: 20px;
  margin: 0;
}

.knh-marketplace .section-flash .sectionhead small {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.95;
}

.knh-marketplace .section-flash .sectionhead .seeall {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.knh-marketplace .section-flash .sectionhead .seeall:hover {
  background: rgba(255, 255, 255, 0.15);
}

.knh-marketplace .section-flash .timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: white;
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}

.knh-marketplace .flash {
  display: none;
}

/* ===== Footer ===== */
.knh-marketplace .footer {
  background: #232a32;
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 0 20px;
  margin-top: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.knh-marketplace .footer .wrap {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0;
}

.knh-marketplace .footer .logo {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 22px;
  color: var(--paper);
}

.knh-marketplace .footer .logo img {
  max-height: 32px;
  max-width: 150px;
  object-fit: contain;
}

.knh-marketplace .footer .logo small {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--orange);
}

.knh-marketplace .footlinks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.knh-marketplace .footlinks a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.knh-marketplace .footlinks a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.knh-marketplace .note {
  font-size: 12px;
  color: #75757a;
  max-width: 1248px;
  margin: 24px auto 0;
  padding: 0 12px;
}

/* ===== Modal ===== */
.knh-marketplace dialog {
  border: none;
  border-radius: var(--radius);
  padding: 26px;
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
}

.knh-marketplace dialog::backdrop {
  background: rgba(16, 24, 39, 0.6);
  backdrop-filter: blur(4px);
}

.knh-marketplace dialog .close {
  float: right;
  background: var(--paper-alt);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  border: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.knh-marketplace dialog .close:hover {
  background: var(--orange);
  color: var(--paper);
  transform: scale(1.1);
}

.knh-marketplace dialog .modalphoto {
  max-width: 260px;
  margin: 20px auto;
}

.knh-marketplace dialog .price {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 16px 0;
}

.knh-marketplace dialog .old {
  color: var(--muted);
}

.knh-marketplace dialog .demotext {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.knh-marketplace dialog .full {
  width: 100%;
  margin-top: 15px;
}

/* ===== Toast ===== */
.knh-marketplace .toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 14px 25px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.18);
  display: none;
  max-width: 90%;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.knh-marketplace .toast.show {
  display: block;
}

/* ===== Search Results ===== */
.knh-marketplace .results {
  display: none;
}

.knh-marketplace .results.show {
  display: block;
}

.knh-marketplace .empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

body.knh-marketplace.filtered .browse { display: none; }

/* ===== Actions Wrapper ===== */
.knh-marketplace .header .actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Mobile Drawer Navigation ===== */
.knh-marketplace .drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.knh-marketplace .drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

.knh-marketplace .mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 88vw;
  max-width: 380px;
  background: #ffffff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.knh-marketplace .mobile-drawer.open {
  transform: translateX(0);
}

.knh-marketplace .mobile-drawer[aria-hidden="true"] {
  pointer-events: none;
}

.knh-marketplace .drawer-header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  border-bottom: 1px solid #eeeeee;
  flex-shrink: 0;
  background: #ffffff;
  z-index: 2;
}

.knh-marketplace .drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}

.knh-marketplace .drawer-logo img {
  max-height: 36px;
  max-width: 140px;
  width: auto;
}

.knh-marketplace .drawer-content {
  overflow-y: auto;
  flex: 1;
  background: #ffffff;
}

.knh-marketplace .drawer-section {
  border-bottom: 1px solid #eeeeee;
}

.knh-marketplace .drawer-section-head {
  width: 100%;
  min-height: 48px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.knh-marketplace .drawer-section-head:focus {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.knh-marketplace .drawer-section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #555;
}

.knh-marketplace .drawer-chevron {
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.knh-marketplace .drawer-section-head[aria-expanded="true"] .drawer-chevron {
  transform: rotate(90deg);
}

.knh-marketplace .drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #ffffff;
}

.knh-marketplace .drawer-sub.expanded {
  max-height: 2000px;
}

.knh-marketplace .drawer-sub a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 14px 28px;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  border: none;
  background: none;
  font-family: 'Montserrat', sans-serif;
  min-height: 56px;
}

.knh-marketplace .drawer-sub a i {
  font-size: 24px;
  width: 24px;
  min-width: 24px;
  color: var(--ink);
  flex-shrink: 0;
}

.knh-marketplace .drawer-divider {
  height: 1px;
  background: #eeeeee;
  margin: 0;
}

.knh-marketplace .drawer-categories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px;
}

.knh-marketplace .drawer-see-all {
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.knh-marketplace .drawer-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 14px 28px;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  border: none;
  background: none;
  font-family: 'Montserrat', sans-serif;
  min-height: 56px;
  width: 100%;
  text-align: left;
}

.knh-marketplace .drawer-cat i {
  font-size: 24px;
  width: 24px;
  min-width: 24px;
  color: var(--ink);
  flex-shrink: 0;
}

.knh-marketplace .drawer-cat.active {
  background: rgba(246, 139, 30, 0.08);
}

.knh-marketplace .drawer-cat span,
.knh-marketplace .drawer-sub a,
.knh-marketplace .drawer-section-label { white-space: nowrap; }

/* ===== Responsive Breakpoints ===== */
@media (max-width: 768px) {
  /* Mobile: cards shrink to 160px, horizontal scroll stays */
  .knh-marketplace .products {
    gap: 10px;
    padding: 12px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .knh-marketplace .products .product {
    flex: 0 0 160px;
    width: 160px;
    height: 100%;
  }
  .knh-marketplace .products-wrap {
    align-items: stretch;
  }

  /* --- Header --- */
  .knh-marketplace .header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    height: auto;
    min-height: 58px;
    padding: 10px 12px;
    box-sizing: border-box;
  }
  .knh-marketplace .header .mobile-menu-toggle {
    display: inline-flex;
  }
  /* Mobile header keeps only the menu toggle and the cart */
  .knh-marketplace .header .logo,
  .knh-marketplace .header .search,
  .knh-marketplace .header #account,
  .knh-marketplace .header .headbtn#help,
  .knh-marketplace .header .headbtn#livechat,
  .knh-marketplace .header .headbtn#whatsapp {
    display: none;
  }
  .knh-marketplace .header .actions {
    margin-left: auto;
  }
  .knh-marketplace .header .account-text,
  .knh-marketplace .header .cart-text {
    display: none;
  }
  .knh-marketplace .header .headbtn .badge {
    display: inline-flex;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 50%;
    margin-left: 2px;
  }
  .knh-marketplace .nav {
    display: none;
  }

  /* --- Search hidden on mobile (marketplace header is cart-only) --- */
  .knh-marketplace .header .search {
    display: none;
  }

  /* --- Icon-only header controls --- */
  .knh-marketplace .header .headbtn,
  .knh-marketplace .header .headbtn.dropdown {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 0;
    gap: 0;
    min-width: 38px;
    min-height: 38px;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .knh-marketplace .header .headbtn i {
    font-size: 18px;
  }
  .knh-marketplace .header .headbtn .badge {
    font-size: 10px;
  }
  .knh-marketplace .header .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 190px;
  }

  /* --- Hero --- */
  .knh-marketplace .hero {
    min-height: 200px;
    aspect-ratio: auto;
    height: 210px;
    margin: 12px 0;
  }
  .knh-marketplace .hero .slide-text {
    padding: 16px 12px;
    width: 100%;
    max-width: 100%;
  }
  .knh-marketplace .hero .slide-text h1 { font-size: 20px; line-height: 1.15; }
  .knh-marketplace .hero .slide-accent { font-size: 16px; }
  .knh-marketplace .hero .slide-description { font-size: 13px; margin-bottom: 12px; }
  .knh-marketplace .hero .hero-cta { padding: 8px 18px; font-size: 13px; }
  .knh-marketplace .hero .arrow { display: none; }
  .knh-marketplace .hero .dots { bottom: 6px; }

  /* --- Section spacing on mobile --- */
  .knh-marketplace section.category-section,
  .knh-marketplace section.flash,
  .knh-marketplace section.results {
    margin: 16px 0;
    border-radius: 12px;
  }
  .knh-marketplace .sectionhead {
    padding: 10px 12px;
    gap: 8px;
    margin: 0;
  }
  .knh-marketplace .sectionhead h2 { font-size: 16px; }
  .knh-marketplace .sectionhead .seeall {
    font-size: 12px;
    padding: 8px 16px;
  }
  .knh-marketplace .section-flash .sectionhead { padding: 10px 12px; }
  .knh-marketplace .section-flash .sectionhead h2 { font-size: 16px; }
  .knh-marketplace .section-flash .sectionhead small { font-size: 12px; }
  .knh-marketplace .section-flash .timer {
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
  }
  .knh-marketplace .categories { grid-template-columns: repeat(3, 1fr); }
  .knh-marketplace .promos { grid-template-columns: repeat(2, 1fr); }
  .knh-marketplace .promo { min-height: 110px; padding: 14px; }
  .knh-marketplace .promo strong { font-size: 18px; }
  .knh-marketplace .nav { gap: 12px; }
  .knh-marketplace .nav button { font-size: 12px; }
}

@media (max-width: 430px) {
  .knh-marketplace .products {
    gap: 8px;
    padding: 12px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .knh-marketplace .product {
    flex: 0 0 160px;
    width: 160px;
    height: 100%;
  }
  .knh-marketplace .products-wrap {
    align-items: stretch;
  }
  .knh-marketplace .products-wrap .arrow {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .knh-marketplace .product .name {
    font-size: 13px;
    line-height: 18px;
  }
  .knh-marketplace .product .price { font-size: 15px; }
  .knh-marketplace .container,
  .knh-marketplace .row { padding: 0 12px; box-sizing: border-box; }
  .knh-marketplace .header { height: auto; min-height: 58px; }
  .knh-marketplace .header .logo { display: none; }
  .knh-marketplace .hero { height: 190px; min-height: 190px; }
  .knh-marketplace .hero .slide-text h1 { font-size: 18px; }
  .knh-marketplace .hero .slide-accent { font-size: 15px; }
  .knh-marketplace .sectionhead h2 { font-size: 16px; }
  .knh-marketplace .sectionhead .seeall {
    font-size: 11px;
    padding: 8px 16px;
  }
  .knh-marketplace .flash .timer { font-size: 10px; padding: 3px 6px; }
  .knh-marketplace .promo { min-height: 96px; padding: 12px; }
  .knh-marketplace .promo strong { font-size: 16px; }
  .knh-marketplace .promo span { font-size: 11px; }
}


/* ============================================================
   CART — premium drawer-style dialog
   (`.cartrow` / `.qty` previously had no rules at all)
   ============================================================ */
.knh-marketplace dialog.modal-cart {
  max-width: 920px;
  width: calc(100% - 32px);
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.knh-marketplace dialog.modal-cart .close {
  position: absolute;
  top: 16px;
  right: 16px;
  float: none;
  z-index: 5;
  width: 36px;
  height: 36px;
  font-size: 18px;
  background: var(--paper-alt);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.knh-marketplace dialog.modal-cart .close:hover {
  background: var(--orange);
  color: var(--paper);
}

.cart-view {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  background: var(--paper);
}

/* ---- Header ---- */
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  flex-wrap: wrap;
}

.cart-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.cart-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.cart-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft, #fff4e5);
  color: var(--orange-dark, #c96a00);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Two-column layout ---- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 8px 28px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ---- Cart row ---- */
.cartrow {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.cartrow:last-child { border-bottom: 0; }

.cart-thumb {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-thumb-empty { color: var(--muted); font-size: 22px; }

.cartrow-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cartrow-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cartrow-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cartrow-line {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.cartrow-meta {
  font-size: 12px;
  color: var(--muted);
}

.cartrow-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ---- Quantity stepper ---- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.qty button:hover {
  background: var(--orange);
  color: #fff;
}

.qty button:active { transform: scale(0.94); }

.qty-val {
  min-width: 34px;
  padding: 0 6px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 34px;
  background: var(--paper);
}

.cartrow-unit {
  font-size: 12px;
  color: var(--muted);
}

.cartrow-remove {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.15s ease, color 0.15s ease;
}

.cartrow-remove:hover {
  background: var(--red-soft, #fee2e2);
  color: var(--red, #b91c1b);
}

/* ---- Summary panel ---- */
.cart-summary {
  padding: 24px 24px 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.cart-summary-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.cart-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.cart-summary-row strong {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.cart-summary-muted { font-size: 12.5px; color: var(--muted); }

.cart-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.cart-summary-total strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---- Buttons ---- */
.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark, #e07414) 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(246, 139, 30, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-checkout:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(246, 139, 30, 0.36);
}

.btn-checkout:active { transform: translateY(0) scale(0.99); }

.btn-continue {
  width: 100%;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-continue:hover {
  background: var(--paper);
  border-color: var(--orange);
  color: var(--orange-dark, #c96a00);
}

.cart-summary-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.cart-summary-note-left {
  justify-content: flex-start;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 6px;
}

/* ---- Checkout view ---- */
.checkout-main {
  padding: 8px 28px 24px;
  overflow-y: auto;
  min-width: 0;
}

.checkout-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.checkout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.checkout-row:last-child { border-bottom: 0; }

.checkout-name { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.checkout-name em {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
  font-size: 12.5px;
}

.checkout-amount { font-weight: 800; color: var(--ink); white-space: nowrap; }

.checkout-totals {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Empty state ---- */
.cart-empty {
  padding: 56px 28px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-empty-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--orange);
  background: var(--brand-soft, #fff4e5);
  margin-bottom: 18px;
}

.cart-empty-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.cart-empty-text {
  margin: 0 0 24px;
  max-width: 320px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.cart-empty-btn {
  width: auto;
  padding: 13px 28px;
  min-width: 200px;
}

/* ---- Responsive ---- */
@media (max-width: 780px) {
  .cart-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .cart-items { overflow: visible; }
  .cart-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }
  .cart-head { padding: 20px 20px 16px; }
  .cart-title { font-size: 20px; }
  .cart-items { padding: 6px 20px; }
  .cart-summary { padding: 20px; }
  .checkout-main { padding: 6px 20px 20px; }
  .cart-thumb { width: 68px; height: 68px; }
  .cartrow { gap: 12px; padding: 15px 0; }
  .cartrow-remove { margin-left: 0; }
}

@media (max-width: 420px) {
  .knh-marketplace dialog.modal-cart { width: calc(100% - 16px); }
  .cart-thumb { width: 58px; height: 58px; border-radius: 9px; }
  .cartrow-name { font-size: 13.5px; }
  .cartrow-line { font-size: 13px; }
  .qty button { width: 30px; height: 30px; }
  .qty-val { min-width: 30px; line-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-checkout,
  .btn-continue,
  .qty button,
  .cartrow-remove { transition: none; }
}


/* ============================================================
   PRODUCT ROWS — flush to the edge, no dead space on the left
   The sticky prev/next arrows used to occupy 32px of layout
   width, pushing the first card away from the edge.
   ============================================================ */
.knh-marketplace .products {
  padding: 10px 8px;
}

.knh-marketplace .products-wrap .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 4;
  width: 34px;
  height: 34px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.knh-marketplace .products-wrap .arrow.prev { left: 6px; }

.knh-marketplace .products-wrap .arrow.next { right: 6px; }

/* Keep the very first card clear of the overlay arrow */
.knh-marketplace .products .product:first-child { scroll-snap-align: start; }

@media (max-width: 780px) {
  .knh-marketplace .products { padding: 8px 6px; }
  .knh-marketplace .products-wrap .arrow { width: 30px; height: 30px; }
  .knh-marketplace .products-wrap .arrow.prev { left: 3px; }
  .knh-marketplace .products-wrap .arrow.next { right: 3px; }
}


/* ============================================================
   HERO — mobile text responsiveness
   The slide height was fixed, so a long headline + accent +
   description + CTA overflowed and got clipped on phones.
   ============================================================ */
@media (max-width: 900px) {
  .knh-marketplace .hero .slide-text {
    width: 100%;
    max-width: 100%;
    padding: 22px 20px;
  }
  .knh-marketplace .hero .slide-description { max-width: 100%; }
}

@media (max-width: 780px) {
  .knh-marketplace .hero {
    height: 240px;
    min-height: 240px;
  }
  .knh-marketplace .hero .slide-text {
    padding: 18px 16px;
    justify-content: flex-end;
  }
  .knh-marketplace .hero .slide-text h1 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .knh-marketplace .hero .slide-accent {
    font-size: 15px;
    margin: 2px 0 6px;
  }
  .knh-marketplace .hero .slide-description {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .knh-marketplace .hero .hero-cta {
    padding: 9px 20px;
    font-size: 13px;
  }
  .knh-marketplace .hero .dots { bottom: 8px; }
}

@media (max-width: 420px) {
  .knh-marketplace .hero {
    height: 250px;
    min-height: 250px;
  }
  .knh-marketplace .hero .slide-text { padding: 14px 13px; }
  .knh-marketplace .hero .slide-text h1 {
    font-size: 18px;
    -webkit-line-clamp: 3;
  }
  .knh-marketplace .hero .slide-description {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
  }
  .knh-marketplace .hero .slide-accent { font-size: 14px; }
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  .knh-marketplace .hero .slide-text h1,
  .knh-marketplace .hero .slide-accent,
  .knh-marketplace .hero .slide-description {
    animation: none;
  }
}


/* ============================================================
   PRODUCT CARDS — larger images
   ============================================================ */
.knh-marketplace .products .product {
  flex: 0 0 240px;
  width: 240px;
}
.knh-marketplace .products .product .photo {
  border-radius: 14px 14px 0 0;
}
.knh-marketplace .products .product .details {
  padding: 12px 14px 14px;
}
.knh-marketplace .products .product .name {
  font-size: 14.5px;
  line-height: 1.35;
}

@media (max-width: 780px) {
  .knh-marketplace .products .product {
    flex: 0 0 190px;
    width: 190px;
  }
}

@media (max-width: 420px) {
  .knh-marketplace .products .product {
    flex: 0 0 168px;
    width: 168px;
  }
}

/* ============================================================
   PRODUCT POPUP — premium quick-view modal
   ============================================================ */
.knh-marketplace dialog.modal-product {
  max-width: 940px;
  width: calc(100% - 48px);
  max-height: 90vh;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.4);
  border: 0;
}
.knh-marketplace dialog.modal-product::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Close button — fixed at top-right of the dialog */
.knh-marketplace dialog.modal-product .close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.15);
  transition: color .15s ease, transform .2s ease, background .15s ease;
}
.knh-marketplace dialog.modal-product .close:hover {
  background: #fef2f2;
  color: #dc2626;
  transform: rotate(90deg);
}

/* ---- Grid layout: 45% gallery / 55% info ---- */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
  text-align: left;
}

/* ---- Gallery (left) ---- */
.pd-media {
  padding: 28px 24px;
  background: #f8fafc;
  border-right: 1px solid #e8edf3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  min-width: 0;
}

.pd-gallery {
  position: relative;
}

.pd-hero {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf3;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  position: relative;
}

.pd-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pd-hero-empty {
  color: #cbd5e1;
  font-size: 48px;
}

/* Zoom button on hero image */
.pd-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: color .15s ease, transform .15s ease;
  z-index: 2;
}
.pd-zoom:hover { color: var(--orange); transform: scale(1.08); }

/* Zoomed overlay */
.pd-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.85);
  display: grid;
  place-items: center;
  padding: 40px;
  cursor: zoom-out;
}
.pd-zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Thumbnails */
.pd-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pd-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: .7;
  transition: border-color .15s ease, opacity .15s ease, transform .15s ease;
  flex-shrink: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { opacity: 1; transform: translateY(-1px); }
.pd-thumb.active { border-color: var(--orange, #f97316); opacity: 1; }

/* ---- Info panel (right) ---- */
.pd-body {
  padding: 36px 32px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* Top row: category, location, verified */
.pd-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pd-cat {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #c2410c;
  background: #fff7ed;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
}
.pd-loc {
  font-size: 12.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pd-loc i { font-size: 14px; }
.pd-verified {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.pd-verified i { font-size: 13px; }

/* Title */
.pd-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #0f172a;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* Rating */
.pd-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
}
.pd-rating-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 1px;
}
.pd-rating-count {
  font-size: 12.5px;
  color: #94a3b8;
}

/* Price block */
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 0;
  background: transparent;
  border: 0;
}
.pd-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #dc2626;
  line-height: 1;
}
.pd-old {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}
.pd-disc {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #dc2626;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Description */
.pd-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 8px;
}
.pd-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 14px;
}
.pd-desc-empty {
  color: #94a3b8;
  font-style: italic;
  background: #fbfdff;
}

/* Seller card */
.pd-seller {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 18px;
}
.pd-seller-ico {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.pd-seller-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.pd-seller-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.pd-seller-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease;
}
.pd-seller-name:hover { color: var(--orange); }
.pd-seller-loc {
  font-size: 11.5px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pd-seller-verified {
  margin-left: auto;
  color: #15803d;
  font-size: 12px;
  flex-shrink: 0;
}

/* Quantity + Add to cart row */
.pd-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}
.pd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  flex: none;
  height: 50px;
}
.pd-qty button {
  width: 42px;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  display: grid;
  place-items: center;
}
.pd-qty button:hover { background: var(--orange, #f97316); color: #fff; }
#pd-qty {
  min-width: 38px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  padding: 0 4px;
}
.pd-add {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #dc2626;
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28);
  transition: background .15s ease, transform .15s ease, box-shadow .2s ease;
}
.pd-add:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.38);
}
.pd-add:active { transform: translateY(0) scale(0.99); }

/* WhatsApp button */
.pd-wa {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 2px solid #22c55e;
  border-radius: 12px;
  background: #fff;
  color: #16a34a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.pd-wa:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
}

/* Secondary actions row (share etc.) */
.pd-secondary-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.pd-share {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.pd-share:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateY(-1px);
}

/* Trust row */
.pd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.pd-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}
.pd-trust i { color: var(--orange, #f97316); font-size: 13px; }

/* ---- Product detail: report, safety, unavailable ---- */
.pd-report {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #dc2626;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pd-report:hover { background: #fee2e2; border-color: #f87171; }

.pd-safety {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f0fbf6;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}
.pd-safety-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 10px;
}
.pd-safety-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pd-safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
}
.pd-safety-list i {
  color: #16a34a;
  font-size: 13px;
  flex: none;
  margin-top: 1px;
}

.pd-unavailable-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.pd-unavailable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pd-unavailable:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }

/* ---- Product feedback ---- */
.pd-feedback {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}
.pd-feedback-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}
.pd-feedback-head i { color: var(--orange, #f68b1e); }
.pd-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.pd-feedback-empty {
  color: #94a3b8;
  font-size: 12.5px;
  text-align: center;
  padding: 16px 0;
}
.pd-feedback-item {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 12px;
}
.pd-feedback-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.pd-feedback-author {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}
.pd-feedback-rating {
  display: flex;
  gap: 1px;
}
.pd-feedback-rating i {
  font-size: 11px;
  color: #f5a623;
}
.pd-feedback-rating i.bi-star { color: #e2e8f0; }
.pd-feedback-text {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}
.pd-feedback-reply {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f0fbf6;
  border-left: 3px solid var(--green, #009063);
  border-radius: 0 6px 6px 0;
  font-size: 11.5px;
  color: #334155;
}
.pd-feedback-reply-author {
  font-weight: 700;
  color: var(--green, #009063);
  margin-bottom: 3px;
}
.pd-feedback-form {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 12px;
}
.pd-feedback-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.pd-star-btn {
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.pd-star-btn:hover,
.pd-star-btn.active { color: #f5a623; }
.pd-feedback-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  resize: vertical;
  min-height: 60px;
  outline: none;
}
.pd-feedback-input:focus { border-color: var(--green, #009063); }
.pd-feedback-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.pd-feedback-submit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--green, #009063);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pd-feedback-submit:hover { background: #007a52; }
.pd-feedback-login {
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  padding: 10px 0;
}
.pd-feedback-login a { color: var(--green, #009063); font-weight: 700; }

/* ---- Original price block ---- */
.pd-original {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
}
.pd-original-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.pd-original-value {
  font-size: 15px;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: line-through;
}

/* ---- Payment methods ---- */
.pd-pay {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
}
.pd-pay-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.pd-pay-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}
.pd-pay-value i { color: var(--green, #16a34a); font-size: 15px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .knh-marketplace dialog.modal-product {
    width: calc(100% - 20px);
    max-height: 92vh;
    border-radius: 16px;
    margin: auto;
  }
  .pd {
    grid-template-columns: minmax(0, 1fr);
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .pd-media {
    border-right: 0;
    border-bottom: 1px solid #e8edf3;
    padding: 16px;
    overflow: visible;
  }
  .pd-hero { aspect-ratio: 4 / 3; max-height: 300px; }
  .pd-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .pd-thumb { width: 52px; height: 52px; }
  .pd-body {
    padding: 20px 18px 26px;
    overflow: visible;
  }
  .pd-title { font-size: 22px; }
  .pd-price { font-size: 25px; }
  .pd-price-row { padding: 0; }
  .pd-verified { margin-left: 0; }
  .pd-actions { flex-wrap: wrap; }
  .pd-add { min-width: 0; }
}

@media (max-width: 480px) {
  .knh-marketplace dialog.modal-product {
    width: calc(100% - 12px);
    max-height: 94vh;
    border-radius: 14px;
    margin: auto;
  }
  .pd { max-height: 94vh; }
  .pd-media { padding: 12px; }
  .pd-hero { aspect-ratio: 1 / 1; max-height: 240px; }
  .pd-body { padding: 16px 14px 22px; }
  .pd-topline { gap: 7px; flex-wrap: nowrap; overflow: hidden; }
  .pd-cat { font-size: 9.5px; padding: 3px 9px; white-space: nowrap; flex-shrink: 0; }
  .pd-loc { font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
  .pd-verified { font-size: 10px; padding: 3px 8px; white-space: nowrap; flex-shrink: 0; }
  .pd-title { font-size: 19px; line-height: 1.25; }
  .pd-rating { font-size: 12px; }
  .pd-price { font-size: 22px; }
  .pd-price-row { padding: 0; }
  .pd-original { padding: 9px 12px; gap: 8px; }
  .pd-original-value { font-size: 14px; }
  .pd-section-label { margin: 2px 0 7px; }
  .pd-desc { font-size: 13.5px; line-height: 1.7; padding: 13px 14px; margin-bottom: 16px; }
  .pd-seller { padding: 10px 12px; }
  .pd-seller-ico { width: 38px; height: 38px; }
  .pd-seller-name { font-size: 13px; }
  .pd-actions { flex-direction: column; gap: 8px; }
  .pd-qty { justify-content: center; height: 46px; }
  .pd-add { height: 46px; }
  .pd-trust { gap: 10px; }
  .pd-wa { height: 44px; font-size: 13px; }
  .pd-share { height: 42px; font-size: 13px; }
  .knh-marketplace dialog.modal-product .close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pd-thumb, .pd-add, .pd-wa, .pd-share, .pd-zoom,
  .knh-marketplace dialog.modal-product .close {
    transition: none;
  }
}

/* ============================================================
   PRODUCT CARD — add button sits at the top-right of the image
   ============================================================ */
.knh-marketplace .product {
  position: relative;
}

.knh-marketplace .product .add {
  top: 8px;
  right: 8px;
  bottom: auto;
  width: 34px;
  height: 34px;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.knh-marketplace .product .details {
  padding-right: 14px;
}

/* ============================================================
   MOBILE SCROLLING — free horizontal swipe, no snap, no arrows
   ============================================================ */
@media (max-width: 780px) {
  .knh-marketplace .products {
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 10px;
    padding: 8px 6px;
  }

  .knh-marketplace .products .product {
    scroll-snap-align: none;
    flex: 0 0 168px;
    width: 168px;
  }

  /* Overlay arrows cover the cards and swallow swipes on touch */
  .knh-marketplace .products-wrap .arrow {
    display: none;
  }

  .knh-marketplace .product .photo,
  .knh-marketplace .product .photo img,
  .knh-marketplace .product .name {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .knh-marketplace .products .product .details {
    padding: 10px 12px 12px;
    padding-right: 12px;
  }

  .knh-marketplace .products .product .add {
    width: 30px;
    height: 30px;
    font-size: 16px;
    top: 6px;
    right: 6px;
    bottom: auto;
  }
}

@media (max-width: 430px) {
  .knh-marketplace .products .product {
    flex: 0 0 156px;
    width: 156px;
  }
}

/* ============================================================
   PRODUCT ROWS — free horizontal scrolling at every width
   ============================================================ */
.knh-marketplace .products {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  /* flex:1 1 100% + min-width:0 is what lets a flex child become a
     horizontal scroller instead of widening its parent. */
  flex: 1 1 100%;
  width: auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scroll-behavior: auto;
  touch-action: pan-x pan-y pinch-zoom;
  pointer-events: auto;
  cursor: grab;
}

.knh-marketplace .products-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 780px) {
  .knh-marketplace .products {
    overflow-x: scroll;
  }
}

/* ============================================================
   SECTION HEADS (Flash Sales "| Live Now" + timer + See All)
   Three items in a nowrap flex overflowed on phones.
   ============================================================ */
@media (max-width: 768px) {
  .knh-marketplace .sectionhead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    padding: 12px 14px;
  }

  .knh-marketplace .sectionhead h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
    gap: 6px;
    min-width: 0;
  }

  .knh-marketplace .sectionhead h2 small {
    font-size: 11.5px;
    white-space: nowrap;
  }

  .knh-marketplace .sectionhead .seeall {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
    padding: 7px 12px;
    white-space: nowrap;
  }

  .knh-marketplace .sectionhead .timer {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    font-size: 11.5px;
    padding: 4px 10px;
    white-space: nowrap;
  }

  .knh-marketplace .section-flash .sectionhead {
    border-radius: 14px 14px 0 0;
  }
}

.knh-marketplace .products.dragging {
  cursor: grabbing;
}

.knh-marketplace .products > .product,
.knh-marketplace .products .product {
  scroll-snap-align: none;
}

/* ===== Saved items dropdown (replaces cart) ===== */
.knh-marketplace .saved-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e0245e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
}
.knh-marketplace .saved-badge:empty { display: none; }
.knh-marketplace .saved-empty {
  padding: 14px 16px;
  text-align: left;
  color: #94a3b8;
  font-size: 12.5px;
}
.knh-marketplace .saved-list { max-height: 340px; overflow-y: auto; }
.knh-marketplace .saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}
.knh-marketplace .saved-item:hover { background: #fff7ed; }
.knh-marketplace .saved-item img {
  width: 38px; height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
}
.knh-marketplace .saved-item-info { flex: 1 1 auto; min-width: 0; }
.knh-marketplace .saved-item-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.knh-marketplace .saved-item-price {
  font-size: 11.5px;
  color: var(--orange, #f68b1e);
  font-weight: 700;
}
.knh-marketplace .saved-item-remove {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.knh-marketplace .saved-item-remove:hover { color: #dc2626; background: #fef2f2; }

/* ===== Saved items drawer header (right aligned) ===== */
.knh-marketplace .drawer-categories-head.drawer-head-right {
  justify-content: flex-end;
  gap: 10px;
  padding-right: 16px;
}

.knh-marketplace .drawer-saved-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e0245e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.knh-marketplace .drawer-saved { padding: 0 8px 8px; }
.knh-marketplace .drawer-saved .saved-item { padding: 8px 6px; }

/* ===== Premium filter experience ===== */
.knh-marketplace section.results {
  padding: 16px 16px 22px;
  margin: 20px 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: visible;
}

.knh-marketplace .results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.knh-marketplace .results-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.knh-marketplace .results-title h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
}

.knh-marketplace .results-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.knh-marketplace .results-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.knh-marketplace .filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.knh-marketplace .filter-toggle:hover,
.knh-marketplace .filter-toggle.has-filters {
  border-color: var(--orange);
  color: var(--orange);
  background: #fff7ed;
}

.knh-marketplace .filter-toggle .filter-count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}

.knh-marketplace .filter-toggle.has-filters .filter-count { display: inline-flex; }

.knh-marketplace .sort-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
}

.knh-marketplace .sort-control-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.knh-marketplace .sort-select {
  border: 0;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding-right: 4px;
  outline: none;
}

.knh-marketplace .clear-all {
  border: 0;
  background: transparent;
  color: var(--green);
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 8px;
}

.knh-marketplace .clear-all:hover { background: #f0fbf6; text-decoration: underline; }

.knh-marketplace .active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 4px;
}

.knh-marketplace .active-chips[hidden] { display: none; }

.knh-marketplace .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #cdeee0;
  background: #eefaf4;
  color: #0b7a52;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.knh-marketplace .filter-chip:hover { background: #dcf6ea; border-color: #a7e3c9; }
.knh-marketplace .filter-chip i { font-size: 10px; }

.knh-marketplace .results-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-top: 14px;
}

.knh-marketplace .filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.knh-marketplace .filter-overlay.show { opacity: 1; visibility: visible; }

.knh-marketplace .filter-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 132px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 148px);
}

.knh-marketplace .filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  background: linear-gradient(135deg, #0b8f5f, #009063);
  color: #ffffff;
  flex-shrink: 0;
}

.knh-marketplace .filter-panel-title { display: flex; align-items: center; gap: 8px; }
.knh-marketplace .filter-panel-title h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: 0.2px; }
.knh-marketplace .filter-panel-title i { font-size: 16px; }

.knh-marketplace .filter-panel-head-actions { display: flex; align-items: center; gap: 6px; }

.knh-marketplace .filter-reset {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.knh-marketplace .filter-reset:hover { background: rgba(255, 255, 255, 0.26); }

.knh-marketplace .filter-close {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.knh-marketplace .filter-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0;
}

.knh-marketplace .filter-group { border-bottom: 1px solid var(--line); }
.knh-marketplace .filter-group:last-child { border-bottom: 0; }

.knh-marketplace .filter-group-head {
  padding: 12px 14px 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}

.knh-marketplace .filter-group-body { padding: 2px 12px 12px; }
.knh-marketplace .filter-group-scroll { max-height: 210px; overflow-y: auto; }
.knh-marketplace .knh-filter-empty { margin: 4px 2px; font-size: 12px; color: var(--muted); }

.knh-marketplace .knh-filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 4px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease;
}

.knh-marketplace .knh-filter-row:hover { background: var(--paper-alt); }
.knh-marketplace .knh-filter-row input { position: absolute; opacity: 0; width: 0; height: 0; }

.knh-marketplace .knh-filter-box {
  width: 17px;
  height: 17px;
  flex: none;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: all 0.14s ease;
}

.knh-marketplace .knh-filter-row input:checked + .knh-filter-box {
  background: var(--green);
  border-color: var(--green);
}

.knh-marketplace .knh-filter-row input:checked + .knh-filter-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.knh-marketplace .knh-filter-row input:focus-visible + .knh-filter-box { outline: 2px solid var(--green); outline-offset: 2px; }

.knh-marketplace .knh-filter-radio {
  width: 17px;
  height: 17px;
  flex: none;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  position: relative;
  transition: all 0.14s ease;
}

.knh-marketplace .knh-filter-row input:checked + .knh-filter-radio { border-color: var(--green); }

.knh-marketplace .knh-filter-row input:checked + .knh-filter-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green);
}

.knh-marketplace .knh-filter-text {
  flex: 1 1 auto;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.knh-marketplace .knh-filter-count { font-size: 11px; color: var(--muted); font-weight: 600; }

.knh-marketplace .knh-verified-icon { color: var(--green); margin-right: 4px; }

.knh-marketplace .price-boxes { display: flex; align-items: center; gap: 6px; }

.knh-marketplace .price-box {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.knh-marketplace .price-box span { font-size: 10.5px; font-weight: 700; color: var(--muted); }

.knh-marketplace .price-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  -moz-appearance: textfield;
}

.knh-marketplace .price-box input::-webkit-outer-spin-button,
.knh-marketplace .price-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.knh-marketplace .price-dash { color: #9ca3af; font-size: 12px; }

.knh-marketplace .price-slider { position: relative; height: 34px; margin: 12px 2px 4px; }

.knh-marketplace .price-slider-track {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.knh-marketplace .price-slider-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--green);
  border-radius: 2px;
}

.knh-marketplace .price-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.knh-marketplace .price-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; border: 0; }
.knh-marketplace .price-slider input[type="range"]::-moz-range-track { background: transparent; border: 0; }

.knh-marketplace .price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green);
  border: 2.5px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  margin-top: -6.5px;
}

.knh-marketplace .price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 2.5px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.knh-marketplace #price-min { z-index: 3; }
.knh-marketplace #price-max { z-index: 4; }

.knh-marketplace .price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.knh-marketplace .filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.knh-marketplace .filter-panel-foot {
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.knh-marketplace .apply-filters {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #0b8f5f, #009063);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 144, 99, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.knh-marketplace .apply-filters:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(0, 144, 99, 0.3); }

.knh-marketplace .clear-all-ghost {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.knh-marketplace .clear-all-ghost:hover { border-color: #d1d5db; background: var(--paper-alt); }

.knh-marketplace .results-main { min-width: 0; }
.knh-marketplace .results .products-wrap { display: block; }
.knh-marketplace .results .products-wrap .arrow { display: none; }

.knh-marketplace .results .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 0;
}

.knh-marketplace .results .products .product { width: 100%; flex: none; }

.knh-marketplace .load-more {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 999px;
  background: #fff; color: var(--orange); border: 1.5px solid #fed7aa;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .15s ease;
}
.knh-marketplace .load-more:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-1px); }
.knh-marketplace .load-more i { transition: transform .2s ease; }
.knh-marketplace .load-more:hover i { transform: translateY(2px); }

/* Grid / list view toggle */
.knh-marketplace .view-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
}
.knh-marketplace .view-toggle button {
  width: 38px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; font-size: 16px; transition: all .15s ease;
}
.knh-marketplace .view-toggle button + button { border-left: 1px solid var(--line); }
.knh-marketplace .view-toggle button.active { background: var(--orange); color: #fff; }
.knh-marketplace .view-toggle button:hover:not(.active) { background: #fff7ed; color: var(--orange); }

/* Below-hero view bar */
.knh-marketplace .mp-viewbar {
  max-width: 1248px; margin: 22px auto 0; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.knh-marketplace .mp-viewall {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--orange); color: #fff; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px -8px rgba(246,139,30,.55);
  transition: transform .15s ease, filter .15s ease;
}
.knh-marketplace .mp-viewall:hover { transform: translateY(-1px); filter: brightness(1.05); }
.knh-marketplace .mp-viewall-ghost { background: #fff; color: var(--orange); border: 1px solid #fed7aa; box-shadow: none; }
.knh-marketplace .mp-viewall-ghost:hover { background: #fff7ed; }

/* List view layout for results */
.knh-marketplace .results .products.list-view { grid-template-columns: 1fr; }
.knh-marketplace .results .products.list-view .product {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: stretch;
}
.knh-marketplace .results .products.list-view .product .photo { width: 150px; height: 100%; min-height: 150px; }
.knh-marketplace .results .products.list-view .product .details { padding: 16px 18px; justify-content: center; }
.knh-marketplace .results .products.list-view .product .name { font-size: 16px; }
@media (max-width: 640px) {
  .knh-marketplace .results .products.list-view .product { grid-template-columns: 110px minmax(0, 1fr); }
  .knh-marketplace .results .products.list-view .product .photo { width: 110px; min-height: 110px; }
}

.knh-marketplace .mp-breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  max-width: 1248px; margin: 0 auto; padding: 14px 12px 0;
  font-size: 12.5px; color: var(--muted);
}
.knh-marketplace .mp-breadcrumb a { color: var(--muted); font-weight: 600; text-decoration: none; }
.knh-marketplace .mp-breadcrumb a:hover { color: var(--orange); }
.knh-marketplace .mp-breadcrumb i { font-size: 10px; color: #cbd5e1; }
.knh-marketplace .mp-breadcrumb .cur { color: var(--ink); font-weight: 600; }

/* How it works — premium */
.knh-marketplace .mp-how { max-width: 1248px; margin: 48px auto 0; padding: 0 12px; }
.knh-marketplace .mp-how-title {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em; text-align: center; margin: 0 0 8px;
  color: #000000;
}
.knh-marketplace .mp-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.knh-marketplace .mp-how-step {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid #fed7aa; border-radius: 18px; padding: 22px 20px 20px;
  box-shadow: 0 12px 34px -20px rgba(246,139,30,.45);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.knh-marketplace .mp-how-step::before {
  content: attr(data-n); position: absolute; top: -14px; right: 8px;
  font-size: 68px; font-weight: 900; line-height: 1; letter-spacing: -0.05em;
  color: rgba(246,139,30,.10); pointer-events: none;
}
.knh-marketplace .mp-how-step::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--orange), #f59e0b);
}
.knh-marketplace .mp-how-step:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -22px rgba(246,139,30,.55); border-color: #fdba74; }
.knh-marketplace .mp-how-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 23px;
  background: linear-gradient(135deg, var(--orange), #f59e0b); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(246,139,30,.6); margin-bottom: 14px;
}
.knh-marketplace .mp-how-step h3 {
  font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600;
  color: var(--ink); margin: 0 0 8px; letter-spacing: -0.01em;
}
.knh-marketplace .mp-how-step p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.knh-marketplace .mp-how-note {
  margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: center;
}
.knh-marketplace .mp-how-note i { color: #16a34a; }
@media (max-width: 860px) { .knh-marketplace .mp-how-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Footer socials — real brand colors */
.knh-marketplace .mp-socials { display: flex; gap: 12px; margin-top: 14px; }
.knh-marketplace .mp-socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); font-size: 17px; color: var(--muted);
  transition: all .18s ease;
}
.knh-marketplace .mp-socials a:nth-child(1) { color: #25D366; }
.knh-marketplace .mp-socials a:nth-child(2) { color: #1877F2; }
.knh-marketplace .mp-socials a:nth-child(3) { color: #000000; }
.knh-marketplace .mp-socials a:nth-child(4) { color: #E4405F; }
.knh-marketplace .mp-socials a:nth-child(5) { color: #FF0000; }
.knh-marketplace .mp-socials a:hover { transform: translateY(-2px); background: #fff; border-color: currentColor; }

/* Premium category nav (menubar) */
.knh-marketplace .nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.knh-marketplace .nav::-webkit-scrollbar { display: none; }
.knh-marketplace .nav button {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .15s ease;
}
.knh-marketplace .nav button i { color: var(--orange); font-size: 15px; }
.knh-marketplace .nav button:hover { border-color: var(--orange); color: var(--orange); }
.knh-marketplace .nav button.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.knh-marketplace .nav button.active i { color: #fff; }

/* Compare */
.knh-marketplace .cmp-btn {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08);
  background: #fff; color: #475569; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(15,23,42,.12); transition: all .15s ease;
}
.knh-marketplace .cmp-btn:hover { color: var(--orange); border-color: var(--orange); }
.knh-marketplace .cmp-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.knh-marketplace .cmp-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px -12px rgba(15,23,42,.2);
}
.knh-marketplace .cmp-tray[hidden] { display: none; }
.knh-marketplace .cmp-tray-items { display: flex; gap: 8px; overflow-x: auto; flex: 1; }
.knh-marketplace .cmp-chip {
  display: flex; align-items: center; gap: 8px; flex: none; padding: 4px 8px 4px 4px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; max-width: 200px;
}
.knh-marketplace .cmp-chip-img { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--surface); display: grid; place-items: center; flex: none; }
.knh-marketplace .cmp-chip-img img { width: 100%; height: 100%; object-fit: cover; }
.knh-marketplace .cmp-chip-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.knh-marketplace .cmp-chip-x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.knh-marketplace .cmp-tray-actions { display: flex; gap: 8px; flex: none; }
.knh-marketplace .cmp-go, .knh-marketplace .cmp-clear {
  height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 700; cursor: pointer; border: 1px solid transparent;
}
.knh-marketplace .cmp-go { background: var(--orange); color: #fff; }
.knh-marketplace .cmp-go:disabled { opacity: .5; cursor: not-allowed; }
.knh-marketplace .cmp-clear { background: #fff; color: var(--muted); border-color: var(--line); }
.knh-marketplace .cmp-modal { max-width: 900px; width: 92vw; border: 0; border-radius: 18px; padding: 0; }
.knh-marketplace .cmp-modal .close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.knh-marketplace .cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.knh-marketplace .cmp-table th, .knh-marketplace .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.knh-marketplace .cmp-table td.cmp-td-label { text-align: left; font-weight: 700; color: var(--muted); white-space: nowrap; }
.knh-marketplace .cmp-td-img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; display: block; margin: 0 auto 8px; background: var(--surface); }
.knh-marketplace .cmp-td-name { display: block; font-weight: 700; font-size: 13.5px; }
@media (max-width: 640px) { body.knh-marketplace { padding-bottom: 64px; } }

/* Glass mode — frosted, translucent, text & images fully visible */
body.knh-marketplace.glass {
  background: linear-gradient(135deg, #eef2f7 0%, #e4ecf5 50%, #eef2f7 100%);
  background-attachment: fixed;
}
body.knh-marketplace.glass .head,
body.knh-marketplace.glass .mobile-drawer,
body.knh-marketplace.glass .mp-viewbar,
body.knh-marketplace.glass .mp-how-step,
body.knh-marketplace.glass .product,
body.knh-marketplace.glass .sf-card,
body.knh-marketplace.glass .cmp-tray,
body.knh-marketplace.glass .mp-bottom-nav,
body.knh-marketplace.glass .notif-menu,
body.knh-marketplace.glass .filter-panel,
body.knh-marketplace.glass .results {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 10px 34px -16px rgba(15,23,42,.22);
}
body.knh-marketplace.glass .product .photo,
body.knh-marketplace.glass .sf-card-media,
body.knh-marketplace.glass .hero-cat-img { background: rgba(255,255,255,.35); }
body.knh-marketplace.glass .headbtn,
body.knh-marketplace.glass .nav button,
body.knh-marketplace.glass .view-toggle,
body.knh-marketplace.glass .cmp-chip,
body.knh-marketplace.glass .search input,
body.knh-marketplace.glass .hero-field input,
body.knh-marketplace.glass .hero-field select {
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,.65);
  color: var(--ink);
}
body.knh-marketplace.glass .mp-how-title { color: #0f172a; }
.theme-toggle { cursor: pointer; }

/* Category accordion filter */
.knh-marketplace .cat-acc { border-bottom: 1px solid var(--line); }
.knh-marketplace .cat-acc:last-child { border-bottom: 0; }
.knh-marketplace .cat-acc-head {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 11px 8px; border: 0; background: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--ink);
  border-radius: 10px; transition: background .15s ease, color .15s ease;
}
.knh-marketplace .cat-acc-head:hover { background: var(--surface); }
.knh-marketplace .cat-acc.selected .cat-acc-head { color: var(--orange); font-weight: 700; }
.knh-marketplace .cat-acc-name { flex: 1; min-width: 0; }
.knh-marketplace .cat-acc-count {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  background: var(--surface); border-radius: 999px; padding: 1px 8px;
}
.knh-marketplace .cat-acc.selected .cat-acc-count { background: #fff7ed; color: var(--orange); }
.knh-marketplace .cat-acc-caret { color: var(--muted); transition: transform .2s ease; font-size: 12px; }
.knh-marketplace .cat-acc.open .cat-acc-caret { transform: rotate(180deg); color: var(--orange); }
.knh-marketplace .cat-acc-sub { display: none; padding: 0 0 8px 8px; flex-direction: column; gap: 2px; }
.knh-marketplace .cat-acc.open .cat-acc-sub { display: flex; }
.knh-marketplace .knh-subcat-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px;
  font-size: 12.5px; color: var(--body, var(--muted)); cursor: pointer; transition: background .15s ease;
}
.knh-marketplace .knh-subcat-row:hover { background: var(--surface); }
.knh-marketplace .knh-subcat-row input { width: 15px; height: 15px; accent-color: var(--orange); cursor: pointer; }
.knh-marketplace .knh-subcat-row span { flex: 1; }

/* Notifications */
.knh-marketplace .notif-btn { position: relative; }
.knh-marketplace .notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--paper);
}
.knh-marketplace .notif-menu {
  position: absolute; top: 64px; right: 16px; width: 320px; max-width: 92vw; z-index: 130;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 44px -16px rgba(15,23,42,.28); padding: 6px; max-height: 60vh; overflow-y: auto;
}
.knh-marketplace .notif-menu[hidden] { display: none; }
.knh-marketplace .notif-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; color: var(--ink); text-decoration: none; line-height: 1.4;
}
.knh-marketplace .notif-item i { color: var(--orange); margin-top: 2px; }
.knh-marketplace .notif-item.unread { background: #fff7ed; font-weight: 600; }
.knh-marketplace .notif-item:hover { background: var(--surface); }
.knh-marketplace .notif-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13.5px; }

.knh-marketplace .hero-keyword { position: relative; }
.knh-marketplace .hero-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 44px -16px rgba(15,23,42,.28); padding: 6px; overflow: hidden;
}
.knh-marketplace .hero-suggest-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: none; border-radius: 10px;
  font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--ink); cursor: pointer;
}
.knh-marketplace .hero-suggest-item:hover { background: #fff7ed; color: var(--orange); }
.knh-marketplace .hero-suggest-item i { color: var(--muted); font-size: 15px; }
.knh-marketplace .hero-suggest-item:hover i { color: var(--orange); }

/* Back to top */
.knh-marketplace .back-to-top {
  position: fixed; right: 18px; bottom: 84px; z-index: 90;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--orange); color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 8px 22px -6px rgba(246,139,30,.55);
  transition: transform .15s ease, opacity .2s ease;
}
.knh-marketplace .back-to-top:hover { transform: translateY(-2px); }

/* Mobile bottom navigation */
.knh-marketplace .mp-bottom-nav { display: none; }

@media (max-width: 640px) {
  .knh-marketplace .mp-bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    justify-content: space-around; align-items: center;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .knh-marketplace .mp-bottom-nav a,
  .knh-marketplace .mp-bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: 0; background: none; color: var(--muted); cursor: pointer;
    font-size: 10.5px; font-weight: 600; text-decoration: none; padding: 4px 0;
  }
  .knh-marketplace .mp-bottom-nav i { font-size: 20px; }
  .knh-marketplace .mp-bottom-nav a.active,
  .knh-marketplace .mp-bottom-nav button:active { color: var(--orange); }
  .knh-marketplace .back-to-top { bottom: 78px; }
  body.knh-marketplace { padding-bottom: 60px; }
}

@media (max-width: 980px) {
  .knh-marketplace section.results { padding: 14px 12px 18px; margin: 14px 0; border-radius: 14px; }
  .knh-marketplace .results-layout { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .knh-marketplace .filter-toggle { display: inline-flex; }
  .knh-marketplace .filter-close { display: inline-flex; }
  .knh-marketplace .filter-overlay { display: block; }

  .knh-marketplace .filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 360px);
    max-height: none;
    border-radius: 0;
    border: 0;
    transform: translateX(102%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    box-shadow: -12px 0 30px rgba(15, 23, 42, 0.18);
  }

  .knh-marketplace .filter-panel.open { transform: translateX(0); }
  .knh-marketplace .filter-panel-body { flex: 1 1 auto; }
  body.knh-marketplace.filter-open { overflow: hidden; }
}

@media (min-width: 981px) {
  .knh-marketplace .filter-toggle { display: none; }
  .knh-marketplace .filter-close { display: none; }
  .knh-marketplace .filter-overlay { display: none; }
}

@media (max-width: 560px) {
  .knh-marketplace .results-head { align-items: flex-start; }
  .knh-marketplace .results-title { width: 100%; justify-content: space-between; }
  .knh-marketplace .results-actions { width: 100%; justify-content: space-between; }
  .knh-marketplace .sort-control { flex: 1 1 auto; justify-content: space-between; }
  .knh-marketplace .results .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ===== Premium Search Hero ===== */
.knh-marketplace .hero-compact {
  background: linear-gradient(135deg, #0b8f5f 0%, #009063 50%, #007a52 100%);
  border-radius: 18px;
  padding: 32px 24px 24px;
  margin: 16px 0 12px;
  box-shadow: 0 8px 28px rgba(0, 144, 99, 0.18);
  position: relative;
  overflow: hidden;
}
.knh-marketplace .hero-compact::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.knh-marketplace .hero-compact::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.knh-marketplace .hero-compact-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.knh-marketplace .hero-compact-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  line-height: 1.2;
}
.knh-marketplace .hero-compact-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  font-weight: 500;
  margin: 0 0 20px;
}
.knh-marketplace .hero-search-row {
  display: flex;
  gap: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.knh-marketplace .hero-search-row:focus-within {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(246, 139, 30, 0.3);
  border-color: rgba(246, 139, 30, 0.5);
}
.knh-marketplace .hero-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  flex: 1 1 auto;
  min-width: 0;
  transition: background 0.15s ease;
}
.knh-marketplace .hero-field:hover { background: #f8fafc; }
.knh-marketplace .hero-field i {
  color: #94a3b8;
  font-size: 17px;
  flex: none;
  transition: color 0.15s ease;
}
.knh-marketplace .hero-field:focus-within i { color: var(--orange, #f68b1e); }
.knh-marketplace .hero-field select,
.knh-marketplace .hero-field input {
  border: 0;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a2223;
  width: 100%;
  outline: none;
  padding: 15px 0;
}
.knh-marketplace .hero-field select {
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.knh-marketplace .hero-field input::placeholder { color: #94a3b8; font-weight: 500; }
.knh-marketplace .hero-category {
  flex: 0 0 190px;
  border-right: 1px solid #eef2f7;
}
.knh-marketplace .hero-location {
  flex: 0 0 160px;
  border-right: 1px solid #eef2f7;
}
.knh-marketplace .hero-search-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 28px;
  background: linear-gradient(135deg, #f68b1e, #ea580c);
  color: #ffffff;
  border: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: none;
  position: relative;
  overflow: hidden;
}
.knh-marketplace .hero-search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s ease;
}
.knh-marketplace .hero-search-btn:hover::before { left: 100%; }
.knh-marketplace .hero-search-btn:hover { background: linear-gradient(135deg, #ea580c, #dc2626); }

/* Hero category tiles — full-image cards with labels outside */
.knh-marketplace .hero-cats {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.knh-marketplace .hero-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  min-width: 0;
  border: 0;
  background: none;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.knh-marketplace .hero-cat-item:hover { transform: translateY(-3px); }
.knh-marketplace .hero-cat-img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.4);
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.18s ease, box-shadow 0.18s ease;
}
.knh-marketplace .hero-cat-item:hover .hero-cat-img {
  outline-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.45);
}
.knh-marketplace .hero-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.knh-marketplace .hero-cat-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  z-index: 0;
}
.knh-marketplace .hero-cat-img:not(:has(img)) .hero-cat-icon { position: static; }
.knh-marketplace .hero-cat-img.no-img img { display: none; }
.knh-marketplace .hero-cat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

@media (max-width: 980px) {
  .knh-marketplace .hero-search-row { flex-direction: column; border-radius: 12px; }
  .knh-marketplace .hero-category,
  .knh-marketplace .hero-location { border-right: 0; border-bottom: 1px solid #eef2f7; flex: 1 1 auto; }
  .knh-marketplace .hero-field { padding: 0 12px; }
  .knh-marketplace .hero-field select,
  .knh-marketplace .hero-field input { padding: 12px 0; }
  .knh-marketplace .hero-search-btn { justify-content: center; padding: 12px; border-radius: 0 0 12px 12px; }
  .knh-marketplace .hero-cats { gap: 10px; }
  .knh-marketplace .hero-cat-img { width: 72px; height: 72px; border-radius: 16px; }
  .knh-marketplace .hero-cat-label { font-size: 10.5px; }
}

@media (max-width: 640px) {
  .knh-marketplace .hero-compact { padding: 22px 14px 18px; border-radius: 14px; }
  .knh-marketplace .hero-compact-title { font-size: 22px; }
  .knh-marketplace .hero-compact-sub { font-size: 12px; margin-bottom: 14px; }
  .knh-marketplace .hero-cats { gap: 8px; margin-top: 14px; }
  .knh-marketplace .hero-cat-img { width: 56px; height: 56px; border-radius: 14px; }
  .knh-marketplace .hero-cat-label { font-size: 9.5px; }
}

/* ===== Award-winning filter cards ===== */
.knh-marketplace .filter-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 24px -18px rgba(16, 24, 40, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
  flex: 0 0 auto;
}

.knh-marketplace .filter-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05), 0 16px 32px -20px rgba(16, 24, 40, 0.4);
}

.knh-marketplace .filter-card.has-active {
  border-color: rgba(0, 144, 99, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 144, 99, 0.1), 0 12px 28px -18px rgba(0, 144, 99, 0.5);
}

.knh-marketplace .filter-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}

.knh-marketplace .filter-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eafaf3;
  color: var(--green);
  font-size: 15px;
  flex: none;
  transition: all 0.18s ease;
}

.knh-marketplace .filter-card.has-active .filter-card-icon { background: var(--green); color: #fff; }

.knh-marketplace .filter-card-head h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  flex: 1 1 auto;
}

.knh-marketplace .filter-card-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: #eafaf3;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.knh-marketplace .filter-card-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.knh-marketplace .filter-card:hover .filter-card-clear,
.knh-marketplace .filter-card.has-active .filter-card-clear,
.knh-marketplace .filter-card-clear:focus-visible { opacity: 1; }

.knh-marketplace .filter-card-clear:hover { color: var(--green); background: var(--paper-alt); }

.knh-marketplace .filter-card-body { padding: 0 14px 14px; }
.knh-marketplace .filter-card-scroll { max-height: none; overflow: visible; }

.knh-marketplace .brand-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--green);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.knh-marketplace .brand-more:hover { background: #f0fbf6; border-color: var(--green); }
.knh-marketplace .brand-more i { font-size: 11px; }

.knh-marketplace .price-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.knh-marketplace .price-quick-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.knh-marketplace .price-quick-chip:hover { border-color: var(--green); color: var(--green); }

.knh-marketplace .price-quick-chip.active {
  background: #eafaf3;
  border-color: var(--green);
  color: var(--green);
}

.knh-marketplace .knh-star { color: #f5a623; font-size: 12px; margin-right: 1px; }
.knh-marketplace .knh-rating-num { font-weight: 800; color: var(--ink); margin: 0 2px 0 4px; }
.knh-marketplace .knh-rating-up { color: var(--muted); font-weight: 600; }

.knh-marketplace .sort-pills { display: flex; flex-direction: column; gap: 6px; }

.knh-marketplace .sort-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.knh-marketplace .sort-pill:hover { border-color: #c9e9db; color: var(--ink); background: #fbfefc; }

.knh-marketplace .sort-pill.active {
  border-color: var(--green);
  background: #eafaf3;
  color: var(--green);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--green);
}

.knh-marketplace .filter-panel-badge {
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}

.knh-marketplace .filter-panel-badge.show { display: inline-flex; }

.knh-marketplace .filter-panel-body { scrollbar-width: none; -ms-overflow-style: none; }
.knh-marketplace .filter-panel-body::-webkit-scrollbar { display: none; }

@media (min-width: 981px) {
  .knh-marketplace .results-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }

  .knh-marketplace .filter-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    max-height: none;
    position: static;
    top: auto;
    gap: 12px;
    padding: 0;
  }

  .knh-marketplace .filter-panel-head {
    background: transparent;
    color: var(--ink);
    padding: 0 4px 2px;
  }

  .knh-marketplace .filter-panel-title i { color: var(--green); font-size: 16px; }
  .knh-marketplace .filter-panel-title h3 { color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: 0.3px; }

  .knh-marketplace .filter-reset {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
  }

  .knh-marketplace .filter-reset:hover { background: var(--paper-alt); color: var(--ink); }

  .knh-marketplace .filter-panel-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 2px 6px 2px 2px;
    overflow: visible;
  }
}

@media (max-width: 980px) {
  .knh-marketplace .filter-panel {
    background: var(--bg);
    padding: 0;
    gap: 0;
    border-radius: 0;
  }

  .knh-marketplace .filter-panel-head {
    background: linear-gradient(135deg, #0b8f5f, #009063);
    color: #ffffff;
    padding: 14px 14px;
  }

  .knh-marketplace .filter-panel-title h3 { color: #ffffff; }
  .knh-marketplace .filter-panel-title i { color: #ffffff; }
  .knh-marketplace .filter-panel-badge { background: rgba(255, 255, 255, 0.22); }

  .knh-marketplace .filter-reset {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
  }

  .knh-marketplace .filter-reset:hover { background: rgba(255, 255, 255, 0.26); color: #ffffff; }

  .knh-marketplace .filter-panel-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    overflow-y: auto;
    flex: 1 1 auto;
  }

  .knh-marketplace .filter-card { border-radius: 14px; }
  .knh-marketplace .filter-card-clear { opacity: 1; }

  .knh-marketplace .filter-panel-foot {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 12px;
  }
}

/* ===== Jiji-style product detail ===== */
.pd.jiji .pd-media { position: relative; }
.pd-imgcount { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; z-index: 2; }
.pd-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12.5px; color: var(--mp-muted, #64748b); }
.pd-badges .pd-loc, .pd-badges .pd-time, .pd-badges .pd-views { display: inline-flex; align-items: center; gap: 4px; }
.pd-sponsored { background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff; font-weight: 800; font-size: 11px; padding: 3px 9px; border-radius: 6px; letter-spacing: .3px; }
.pd-views { margin-left: auto; }
.pd-attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--mp-border, #e2e8f0); border: 1px solid var(--mp-border, #e2e8f0); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.pd-attr { background: #fff; padding: 11px 14px; display: flex; flex-direction: column; gap: 2px; }
.pd-attr-v { font-size: 14px; font-weight: 700; color: var(--mp-text, #0f172a); }
.pd-attr-k { font-size: 12px; color: var(--mp-muted, #64748b); }
.pd-store-addr { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--mp-muted, #475569); background: #f1f5f9; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }
.pd-contact-row { margin: 12px 0 8px; }
.pd-contact-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #087C42; color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; transition: background .15s ease; }
.pd-contact-btn:hover { background: #076836; color: #fff; }
.pd-offer-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-outline-btn { flex: 1; min-width: 140px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #fff; color: #087C42; border: 1.5px solid #087C42; border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .15s ease; }
.pd-outline-btn:hover { background: #ecfdf5; color: #076836; }
.pd-showmore { background: none; border: none; color: #087C42; font-weight: 800; font-size: 13.5px; cursor: pointer; padding: 6px 0; margin-top: 2px; }
.pd-showmore:hover { text-decoration: underline; }
.pd-seller-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mp-muted, #64748b); margin-top: 4px; }
.pd-seller-actions { margin: 10px 0 4px; }
.pd-chat-btn { width: 100%; }
.pd-postlike { margin: 14px 0; }
.pd-postlike-btn { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; background: #0f172a; color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 14.5px; font-weight: 800; text-decoration: none; transition: background .15s ease; }
.pd-postlike-btn:hover { background: #1e293b; color: #fff; }
@media (max-width: 480px) {
  .pd-attrs { grid-template-columns: 1fr; }
  .pd-views { margin-left: 0; }
}

.pd-fullwidth { max-width: 1240px; margin: 8px auto 0; padding: 0 20px 48px; }
.pd-fw-inner { background:#fff; border:1px solid var(--line,#e2e8f0); border-radius:16px; padding:22px 24px; box-shadow:0 1px 2px rgba(15,23,42,.04); }
.pd-desc-full { width:100%; max-width:100%; font-size:14.5px; line-height:1.7; }
@media (max-width:640px){ .pd-fullwidth{padding:0 14px 40px;} .pd-fw-inner{padding:16px;} }

/* ===== Marketplace mobile drawer refinement ===== */
.knh-marketplace .drawer-header { background: rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.knh-marketplace .drawer-search { padding: 10px 12px; border-bottom: 1px solid #eef2f7; background: #fff; }
.knh-marketplace .drawer-search form { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 44px; }
.knh-marketplace .drawer-search i { color: var(--muted); font-size: 16px; }
.knh-marketplace .drawer-search input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; font-family: 'Montserrat', sans-serif; color: var(--ink); min-width: 0; }

.knh-marketplace .drawer-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border-bottom: 1px solid #eef2f7; }
.knh-marketplace .drawer-quick-link { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: #f8fafc; color: var(--ink); font-size: 11.5px; font-weight: 700; text-decoration: none; transition: all .15s ease; }
.knh-marketplace .drawer-quick-link i { font-size: 21px; color: var(--orange); }
.knh-marketplace .drawer-quick-link:hover { background: #fff7ed; }
.knh-marketplace .drawer-quick-sell { background: var(--orange); color: #fff; }
.knh-marketplace .drawer-quick-sell i { color: #fff; }
.knh-marketplace .drawer-quick-sell:hover { background: var(--orange-d, #e07e1b); }

.knh-marketplace .drawer-categories { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
.knh-marketplace .drawer-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px !important; border-radius: 14px !important; background: #f8fafc !important; border: 1px solid var(--line) !important; font-size: 12.5px !important; font-weight: 700; }
.knh-marketplace .drawer-cat i { font-size: 22px; color: var(--orange); }
.knh-marketplace .drawer-cat:hover, .knh-marketplace .drawer-cat.active { background: #fff7ed !important; border-color: var(--orange) !important; }

.knh-marketplace .drawer-footer { padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #eef2f7; }
.knh-marketplace .drawer-footer-links { display: flex; gap: 18px; margin-bottom: 12px; }
.knh-marketplace .drawer-footer-links a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.knh-marketplace .drawer-socials { display: flex; gap: 10px; }
.knh-marketplace .drawer-socials a { width: 38px; height: 38px; border-radius: 50%; background: #f8fafc; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.knh-marketplace .drawer-socials a:nth-child(1) { color: #25D366; }
.knh-marketplace .drawer-socials a:nth-child(2) { color: #1877F2; }
.knh-marketplace .drawer-socials a:nth-child(3) { color: #000; }
.knh-marketplace .drawer-socials a:nth-child(4) { color: #E4405F; }
/* Categories as a clean list (not tiles/pills) */
.knh-marketplace .drawer-categories { grid-template-columns: 1fr !important; gap: 0 !important; display: block !important; }
.knh-marketplace .drawer-cat {
  flex-direction: row !important; justify-content: space-between !important; align-items: center !important;
  padding: 13px 14px !important; border: 0 !important; background: none !important;
  border-radius: 0 !important; border-bottom: 1px solid #eef2f7 !important;
  font-size: 14px !important; font-weight: 600 !important;
}
.knh-marketplace .drawer-cat span { flex: 1; text-align: left; }
.knh-marketplace .drawer-cat i { font-size: 18px !important; color: var(--muted); }
.knh-marketplace .drawer-cat:hover, .knh-marketplace .drawer-cat.active { background: #f8fafc !important; border-color: #eef2f7 !important; }
.knh-marketplace .drawer-cat:hover i, .knh-marketplace .drawer-cat.active i { color: var(--orange); }

/* Remove card look from drawer sections */
.knh-marketplace .drawer-section { border-bottom: 0 !important; background: none !important; }
.knh-marketplace .drawer-section-head { background: none !important; border-bottom: 1px solid #eef2f7; }
.knh-marketplace .drawer-sub { background: none !important; }
.knh-marketplace .drawer-sub a { padding: 11px 14px !important; border-radius: 0 !important; }

/* Section head icons */
.knh-marketplace .drawer-section-head { justify-content: flex-start; gap: 10px; }
.knh-marketplace .drawer-section-ico { color: var(--orange); font-size: 18px; }
.knh-marketplace .drawer-section-label { flex: 1; text-align: left; }

/* ===== Drawer polish (award-winning) ===== */
.knh-marketplace .drawer-header { height: 60px; padding: env(safe-area-inset-top) 14px 0; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86)); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); }
.knh-marketplace .drawer-sell-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 14px 6px; height: 48px; border-radius: 14px; background: var(--orange); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 14.5px; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(246,139,30,.6); }
.knh-marketplace .drawer-section-label { font-size: 11px !important; font-weight: 800 !important; letter-spacing: .08em; color: var(--muted) !important; }
.knh-marketplace .drawer-cat { position: relative; }
.knh-marketplace .drawer-cat.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.knh-marketplace .drawer-cat.active span { font-weight: 800; }
/* staggered reveal on open */
@keyframes drawerIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.knh-marketplace .mobile-drawer.open .drawer-search,
.knh-marketplace .mobile-drawer.open .drawer-content > * { animation: drawerIn .42s cubic-bezier(.22,1,.36,1) both; }
.knh-marketplace .mobile-drawer.open .drawer-search { animation-delay: .04s; }
.knh-marketplace .mobile-drawer.open .drawer-content > *:nth-child(1) { animation-delay: .08s; }
.knh-marketplace .mobile-drawer.open .drawer-content > *:nth-child(2) { animation-delay: .12s; }
.knh-marketplace .mobile-drawer.open .drawer-content > *:nth-child(3) { animation-delay: .16s; }
.knh-marketplace .mobile-drawer.open .drawer-content > *:nth-child(4) { animation-delay: .20s; }

/* Grid-rows accordion (smoother) */
.knh-marketplace .drawer-sub { display: grid; grid-template-rows: 0fr; max-height: none !important; transition: grid-template-rows .32s cubic-bezier(.22,1,.36,1); }
.knh-marketplace .drawer-sub.expanded { grid-template-rows: 1fr; max-height: none !important; }
.knh-marketplace .drawer-sub > * { overflow: hidden; min-height: 0; }
/* Subtle header grain/gradient */
.knh-marketplace .drawer-header { position: relative; }
.knh-marketplace .drawer-header::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(135deg, rgba(246,139,30,.05), rgba(37,99,235,.05)); }
.knh-marketplace .drawer-header > * { position: relative; z-index: 1; }

/* Revert to max-height accordion (grid-rows fails with multiple children) */
.knh-marketplace .drawer-sub { display: block !important; max-height: 0 !important; overflow: hidden; transition: max-height .3s cubic-bezier(.22,1,.36,1); }
.knh-marketplace .drawer-sub.expanded { max-height: 2000px !important; }
.knh-marketplace .drawer-sub > * { overflow: visible; min-height: auto; }

/* Detail drawer back link */
.knh-marketplace .drawer-back-link { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 11px 14px; border-top: 1px solid #eef2f7; color: var(--orange); font-weight: 700; font-size: 13.5px; text-decoration: none; }

/* Hero categories: hide extras + Read more */
.knh-marketplace .hero-cat-item.extra { display: none; }
.knh-marketplace .hero-cats.expanded .hero-cat-item.extra { display: flex; }
.knh-marketplace .hero-cats-more { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--orange); border: 1px solid #fed7aa; font-weight: 700; font-family: 'Montserrat', sans-serif; cursor: pointer; }
.knh-marketplace .hero-cats-more:hover { background: #fff7ed; }
