/* ======================================================
   KHO HẢI SẢN — Homepage CSS  (loaded only on front page)
   Prefix: kh-  (Kho Hải San Home)
   ====================================================== */

/* Extra CSS vars for homepage */
:root {
  --cyan:        #17d3e4;
  --honey:       #f5a623;
  --cream:       #fff7e8;
  --ice:         #ecfbff;
  --wood:        #8a4b18;
  --soft-shadow: 0 14px 40px rgba(4,27,49,.08);
}

/* ========================
   UTILITIES
   ======================== */
.kh-section {
  padding: 36px 0;
}
.kh-section--light {
  background: #f7fbfd;
}
/* Danh mục section: ít padding hơn */
.kh-section--cats {
  padding: 12px 0 28px;
}
.kh-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.kh-section-head h2 {
  font-size: 38px;
  font-weight: 900;
  color: var(--deep);
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin: 0;
}
.kh-section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
}
.kh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e4fbff;
  color: #087c91;
  border: 1px solid #bdeef7;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* ========================
   HERO
   ======================== */
.kh-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eafaff 0%, #fff 46%, #fff6e4 100%);
  padding: 64px 0 56px;
}
.kh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(23,211,228,.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(245,166,35,.15), transparent 26%);
  pointer-events: none;
}
.kh-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 28px 36px;
  align-items: center;
}
/* Desktop: copy col-1/row-1, visual col-2/row-1, stats full-width row-2 */
.kh-hero__copy   { grid-column: 1; grid-row: 1; }
.kh-hero__visual { grid-column: 2; grid-row: 1; align-self: stretch; }
.kh-stats        { grid-column: 1 / -1; grid-row: 2; }
.kh-h1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--deep);
  letter-spacing: -2.2px;
}
.kh-h1 span {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kh-lead {
  font-size: 17px;
  line-height: 1.75;
  color: #49687b;
  margin: 0 0 26px;
}
.kh-hero__search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1.2fr .8fr auto;
  gap: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.kh-field {
  background: #f3fbfe;
  border: 1px solid #daeef7;
  border-radius: 18px;
  padding: 12px 15px;
}
.kh-field small {
  display: block;
  color: #6c8ca1;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.kh-field input,
.kh-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
  outline: none;
  padding: 0;
}
.kh-field input::placeholder { color: var(--muted); font-weight: 500; }
.kh-search-btn {
  align-self: stretch;
  border-radius: 18px !important;
  font-size: 15px;
  white-space: nowrap;
}
.kh-quick-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.kh-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s, filter .22s;
  text-decoration: none;
}
.kh-tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  filter: brightness(.94);
}

/* Màu sắc riêng từng tag — theo thứ tự trong front-page.php */
.kh-tag:nth-child(1) {
  background: linear-gradient(135deg, #fff4e0, #ffd599);
  color: #7a3a00;
  border: 1.5px solid #ffbc5a;
  box-shadow: 0 4px 14px rgba(255,165,0,.18);
}
.kh-tag:nth-child(2) {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #0d47a1;
  border: 1.5px solid #90caf9;
  box-shadow: 0 4px 14px rgba(13,71,161,.12);
}
.kh-tag:nth-child(3) {
  background: linear-gradient(135deg, #e0f7fa, #9ee8f0);
  color: #00606a;
  border: 1.5px solid #4dd0e1;
  box-shadow: 0 4px 14px rgba(0,188,212,.14);
}
.kh-tag:nth-child(4) {
  background: linear-gradient(135deg, #e8f5e9, #a5d6a7);
  color: #1b5e20;
  border: 1.5px solid #66bb6a;
  box-shadow: 0 4px 14px rgba(56,142,60,.14);
}
.kh-tag:nth-child(5) {
  background: linear-gradient(135deg, #e8fdf5, #9efcda);
  color: #065f46;
  border: 1.5px solid #34d399;
  box-shadow: 0 4px 14px rgba(16,185,129,.16);
}
.kh-tag:nth-child(6) {
  background: linear-gradient(135deg, #fce4ec, #f48fb1);
  color: #880e4f;
  border: 1.5px solid #f06292;
  box-shadow: 0 4px 14px rgba(233,30,99,.14);
}
.kh-tag:nth-child(7) {
  background: linear-gradient(135deg, #ede7f6, #ce93d8);
  color: #4a148c;
  border: 1.5px solid #ab47bc;
  box-shadow: 0 4px 14px rgba(123,31,162,.14);
}

/* Hero visual side */
.kh-hero__visual {
  position: relative;
  min-height: 500px;
  padding-top: 16px;
}
.kh-hero__banner {
  position: absolute;
  right: 0; top: 0;
  width: 96%;
  height: 380px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid #fff;
  background: var(--navy) center/cover no-repeat;
}
.kh-hero__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,32,56,.72), rgba(3,32,56,.18), transparent);
}
.kh-hero__banner-copy {
  position: absolute;
  bottom: 26px; left: 26px;
  color: #fff;
  z-index: 2;
}
.kh-hero__banner-copy b { font-size: 26px; font-weight: 900; display: block; }
.kh-hero__banner-copy p { margin: 8px 0 0; color: #d7fbff; font-size: 14px; }

.kh-hero__market-card {
  position: absolute;
  left: 0; bottom: 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 62%;
  box-shadow: var(--shadow);
  z-index: 3;
}
.kh-hero__market-card img {
  width: 80px; height: 80px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}
.kh-hero__market-card > span { font-size: 36px; flex-shrink: 0; }
.kh-hero__market-card b { display: block; color: var(--deep); font-size: 15px; }
.kh-hero__market-card p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

.kh-hero__trust {
  position: absolute;
  right: 22px; bottom: 18px;
  background: #052f4a;
  color: #fff;
  border-radius: 24px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  z-index: 3;
  text-align: center;
}
.kh-hero__trust b { display: block; font-size: 26px; color: #7cf5c3; font-weight: 900; }
.kh-hero__trust span { font-size: 13px; color: #c9f8ff; }

/* Stats bar — 4 cột trên desktop, 2×2 trên mobile */
.kh-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 0;
  align-self: start;
}
.kh-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--soft-shadow);
}
.kh-stat b {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.5px;
}
.kh-stat p { margin: 5px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }

/* ========================
   ECOSYSTEM
   ======================== */
.kh-ecosystem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.kh-eco {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 30px;
  min-height: 320px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kh-eco::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  pointer-events: none;
}
.kh-eco--dry { background: linear-gradient(135deg, #fff4d7, #af641f); }
.kh-eco--fresh { background: linear-gradient(135deg, #e8fbff, #0877c9); }
.kh-eco__body { position: relative; z-index: 1; }
.kh-eco h3 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.kh-eco--dry h3 { color: #311704; text-shadow: none; }
.kh-eco p { line-height: 1.65; font-weight: 700; color: #e8fbff; }
.kh-eco--dry p { color: #5c3010; }
.kh-eco__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}
.kh-eco__tags span {
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  color: #16354c;
}
.kh-eco__img {
  position: absolute;
  right: 20px; bottom: 20px;
  width: 220px; height: 140px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}
.kh-eco__img img { width: 100%; height: 100%; object-fit: cover; }

/* ========================
   CATEGORIES
   ======================== */
.kh-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Dry seafood (1–5): warm amber tone */
.kh-cat:nth-child(-n+5) {
  --cat-accent: #f5a623;
  --cat-icon-bg: linear-gradient(135deg, #fff8ee, #ffe4b0);
  --cat-border: #ffd580;
  --cat-glow: rgba(245,166,35,.18);
  --cat-text: #7a3a00;
}
/* Fresh seafood (6–10): cool ocean tone */
.kh-cat:nth-child(n+6) {
  --cat-accent: #0877c9;
  --cat-icon-bg: linear-gradient(135deg, #e4f8ff, #b3e8f8);
  --cat-border: #7ed3f4;
  --cat-glow: rgba(8,119,201,.14);
  --cat-text: #044b7f;
}

.kh-cat {
  background: #fff;
  border: 1.5px solid var(--cat-border, var(--line));
  border-radius: 22px;
  padding: 20px 12px 16px;
  text-align: center;
  box-shadow: 0 4px 16px var(--cat-glow, rgba(4,27,49,.06));
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: block;
  position: relative;
  overflow: hidden;
}
/* Colored top stripe */
.kh-cat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-accent, var(--blue));
  border-radius: 22px 22px 0 0;
  opacity: 0;
  transition: opacity .22s;
}
.kh-cat:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px var(--cat-glow, rgba(4,27,49,.1));
  border-color: var(--cat-accent, var(--blue));
}
.kh-cat:hover::before { opacity: 1; }

.kh-cat__icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: var(--cat-icon-bg, var(--ice));
  border: 1.5px solid var(--cat-border, var(--line));
  transition: transform .22s;
}
.kh-cat:hover .kh-cat__icon { transform: scale(1.1) rotate(-4deg); }
.kh-cat__icon img { width: 100%; height: 100%; object-fit: cover; }

.kh-cat b {
  display: block;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.kh-cat span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--cat-text, var(--muted));
  font-weight: 700;
  margin-top: 5px;
  background: var(--cat-icon-bg, var(--ice));
  padding: 3px 8px;
  border-radius: 999px;
}

/* ========================
   PRODUCT TABS
   ======================== */
.kh-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.kh-tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  color: #31556d;
  box-shadow: 0 6px 18px rgba(4,27,49,.05);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.kh-tab:hover { background: var(--ice); }
.kh-tab--active,
.kh-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(8,119,201,.25);
}

/* Products grid */
.kh-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.kh-products[hidden] { display: none !important; }
.kh-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform .22s, box-shadow .22s;
}
.kh-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.kh-product-card__img {
  display: block;
  position: relative;
  height: 190px;
  overflow: hidden;
}
.kh-product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.kh-product-card__no-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--ice);
}

/* Badges */
.kh-badge {
  position: absolute;
  top: 12px; left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  z-index: 1;
}
.kh-badge--green  { background: #12b875; }
.kh-badge--orange { background: var(--orange); }
.kh-badge--blue   { background: var(--blue); }
.kh-badge--red    { background: #ef4444; }

.kh-product-card__body { padding: 16px; }
.kh-product-card__shop {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.kh-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}
.kh-product-card__body h3 {
  font-size: 15px;
  line-height: 1.38;
  margin: 0 0 8px;
  color: var(--deep);
  font-weight: 700;
}
.kh-product-card__body h3 a { color: inherit; }
.kh-product-card__body h3 a:hover { color: var(--blue); }
.kh-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.kh-product-card__meta span {
  background: #eef9fd;
  border: 1px solid #d2ecf5;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  color: #18607f;
}
.kh-product-card__price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.kh-product-card__price b,
.kh-product-card__price .woocommerce-Price-amount {
  font-size: 17px;
  font-weight: 900;
  color: var(--blue);
}
.kh-product-card__price ins { text-decoration: none; }
.kh-product-card__price del { font-size: 12px; color: var(--muted); }
.kh-product-card__price span { font-size: 12px; color: var(--muted); font-weight: 700; }
.kh-empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); }

/* ========================
   LANDING BLOCKS (dry / fresh)
   ======================== */
.kh-landing {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}
.kh-landing--reverse { grid-template-columns: 1.1fr .9fr; }
.kh-landing__card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  min-height: 380px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.kh-landing__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  opacity: .22;
}
.kh-landing__card > * { position: relative; z-index: 1; }
.kh-landing__card--dry {
  background: linear-gradient(135deg, #fff0c9, #8a4b18);
}
.kh-landing__card--fresh {
  background: linear-gradient(135deg, #e4fbff, #0877c9);
}
.kh-landing__card h2 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}
.kh-landing__card--dry h2 { color: #2f1704; }
.kh-landing__card p { color: #dcfbff; line-height: 1.7; font-weight: 700; margin: 0 0 20px; }
.kh-landing__card--dry p { color: #5c3010; }
.kh-landing__highlights {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.kh-landing__highlights span {
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

/* Mini products (right side of landing) */
.kh-mini-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}
.kh-mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.kh-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kh-mini__img {
  display: block;
  height: 110px;
  overflow: hidden;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kh-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.kh-mini__img--empty { font-size: 36px; }
.kh-mini__body { padding: 12px; }
.kh-mini__body b { display: block; color: var(--deep); font-size: 13px; line-height: 1.35; font-weight: 800; }
.kh-mini__body b a { color: inherit; }
.kh-mini__body b a:hover { color: var(--blue); }
.kh-mini__body > span {
  display: block;
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
  margin-top: 6px;
}
/* WooCommerce price inner elements must stay inline */
.kh-mini__body .woocommerce-Price-amount,
.kh-mini__body .woocommerce-Price-currencySymbol,
.kh-mini__body bdi,
.kh-mini__body del,
.kh-mini__body ins {
  display: inline;
  font-size: inherit;
}
.kh-mini__body del { opacity: .6; text-decoration: line-through; margin-right: 4px; }
.kh-mini__body ins { text-decoration: none; }

/* ========================
   SHOPS
   ======================== */
.kh-shops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kh-shop {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(8,119,201,.07), 0 1px 3px rgba(0,0,0,.05);
  border: 1px solid rgba(8,119,201,.07);
  transition: transform .22s, box-shadow .22s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.kh-shop:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(8,119,201,.13);
}

/* ── Cover banner ── */
.kh-shop__cover {
  height: 108px;
  background: linear-gradient(135deg, var(--shop-c1, var(--navy)), var(--shop-c2, var(--blue)));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kh-shop__cover-icon {
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.28));
  user-select: none;
}

/* ── Logo badge ── */
.kh-shop__logo {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  margin: -29px 0 0 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--shop-c1, var(--blue));
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.kh-shop__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }

/* ── Body ── */
.kh-shop__body {
  padding: 10px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.kh-shop__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.kh-shop__badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}
.kh-rating {
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
}
.kh-shop__body h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--deep);
  margin: 2px 0 6px;
  line-height: 1.3;
}
.kh-shop__prov {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 2px;
}
.kh-shop__orders {
  font-size: 12px;
  color: var(--shop-c1, var(--blue));
  font-weight: 700;
  margin: 0 0 10px;
}
.kh-shop__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.kh-shop__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--shop-c1, var(--blue));
  background: rgba(8,119,201,.07);
  border: 1px solid rgba(8,119,201,.15);
  padding: 2px 9px;
  border-radius: 20px;
}
.kh-shop__desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.kh-shop__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--shop-c1, var(--blue));
  margin-top: auto;
  transition: gap .18s;
}
.kh-shop:hover .kh-shop__cta { gap: 8px; }

/* ========================
   SELLER CTA
   ======================== */
.kh-seller {
  border-radius: 38px;
  background: linear-gradient(135deg, #041b31, #0877c9 58%, #17d3e4);
  padding: 50px;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.kh-seller::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  right: -160px; top: -170px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  pointer-events: none;
}
.kh-seller__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.kh-seller__copy h2 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -.8px;
}
.kh-seller__copy p { color: #d7fbff; line-height: 1.75; margin: 0; }
.kh-seller__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.kh-seller__benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.kh-benefit {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 18px;
}
.kh-benefit b { display: block; font-weight: 800; margin-bottom: 7px; }
.kh-benefit span { font-size: 13px; color: #d7fbff; line-height: 1.55; }

/* ========================
   PROCESS
   ======================== */
.kh-process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.kh-process-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(8,119,201,.07), 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid rgba(8,119,201,.08);
}

/* ── Card header ── */
.kh-process-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
}
.kh-process-card--buyer .kh-process-card__head {
  background: linear-gradient(135deg, #0c75b8 0%, #19c6d1 100%);
}
.kh-process-card--seller .kh-process-card__head {
  background: linear-gradient(135deg, #e8620a 0%, #f5a623 100%);
}
.kh-process-card__icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
}
.kh-process-card__tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,.75);
  margin-bottom: 3px;
}
.kh-process-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* ── Steps list ── */
.kh-steps {
  display: grid;
  gap: 0;
  padding: 22px 26px 26px;
}
.kh-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}
.kh-step + .kh-step { margin-top: 18px; }

/* vertical connector line */
.kh-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(to bottom, #d8eaf6 60%, transparent);
}
.kh-process-card--seller .kh-step:not(:last-child)::after {
  background: linear-gradient(to bottom, #fde3c4 60%, transparent);
}

/* step number badge */
.kh-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 3px 10px rgba(8,119,201,.22);
}
.kh-process-card--seller .kh-num {
  background: linear-gradient(135deg, #e8620a, #f5a623);
  box-shadow: 0 3px 10px rgba(232,98,10,.22);
}

/* step text */
.kh-step-body { padding-top: 5px; }
.kh-step-body b {
  display: block;
  color: var(--deep);
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 3px;
}
.kh-step-body p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }

/* ========================
   ADVANTAGES
   ======================== */
.kh-advantages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.kh-adv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 18px;
  box-shadow: var(--soft-shadow);
  text-align: center;
  transition: transform .22s, box-shadow .22s;
}
.kh-adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kh-adv-icon { font-size: 36px; margin-bottom: 14px; }
.kh-adv-card b { display: block; color: var(--deep); font-weight: 800; margin-bottom: 8px; }
.kh-adv-card p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ========================
   BLOG
   ======================== */
.kh-blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.kh-blog-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform .22s, box-shadow .22s;
}
.kh-blog-post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kh-blog-post__img {
  display: block;
  height: 180px;
  overflow: hidden;
}
.kh-blog-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.kh-blog-post:hover .kh-blog-post__img img { transform: scale(1.05); }
.kh-blog-post__body { padding: 20px; }
.kh-blog-post__body small { font-weight: 800; color: var(--blue); font-size: 12px; }
.kh-blog-post__body h3 {
  margin: 8px 0 10px;
  font-size: 17px;
  line-height: 1.38;
  color: var(--deep);
  font-weight: 700;
}
.kh-blog-post__body h3 a { color: inherit; }
.kh-blog-post__body h3 a:hover { color: var(--blue); }
.kh-blog-post__body p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ========================
   BUTTON OVERRIDES (shop-specific)
   ======================== */
.btn-shop {
  background: linear-gradient(135deg, var(--orange), #f5a623);
  color: #321800 !important;
  box-shadow: 0 12px 28px rgba(255,138,0,.22);
}
.btn-shop:hover { box-shadow: 0 18px 36px rgba(255,138,0,.3); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1100px) {
  .kh-h1 { font-size: 44px; }
  .kh-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .kh-products { grid-template-columns: repeat(2, 1fr); }
  .kh-advantages { grid-template-columns: repeat(3, 1fr); }
  .kh-hero__search { grid-template-columns: 1fr; }
  /* min-width:0 prevents the 1fr grid cell from expanding beyond container */
  .kh-hero__grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .kh-hero__copy { min-width: 0; }
  /* reset desktop explicit placement → DOM order: copy → stats → visual */
  .kh-hero__copy   { grid-column: auto; grid-row: auto; }
  .kh-hero__visual { grid-column: auto; grid-row: auto; min-height: 440px; }
  .kh-stats        { grid-column: auto; grid-row: auto; grid-template-columns: repeat(2, 1fr); }
  .kh-eyebrow { max-width: 100%; white-space: normal; }
  .kh-ecosystem { grid-template-columns: 1fr; }
  .kh-shops { grid-template-columns: repeat(2, 1fr); }
  .kh-landing { grid-template-columns: 1fr; }
  .kh-landing--reverse { grid-template-columns: 1fr; direction: ltr; }
  .kh-seller__grid { grid-template-columns: 1fr; }
  .kh-process { grid-template-columns: 1fr; }
  .kh-section-head { flex-direction: column; align-items: flex-start; }
  .kh-section-head h2 { font-size: 30px; }
}
@media (max-width: 768px) {
  .kh-section { padding: 32px 0; }
  .kh-hero { padding: 32px 0 20px; }
  .kh-h1 { font-size: 32px; letter-spacing: -1px; overflow-wrap: break-word; }
  .kh-lead { font-size: 15px; }
  .kh-eyebrow { font-size: 11px; padding: 7px 12px; }
  .kh-stats { grid-template-columns: repeat(2, 1fr); }
  .kh-hero__visual { min-height: 340px; }
  .kh-hero__banner { width: 100%; height: 260px; }
  .kh-hero__market-card { width: 90%; bottom: 16px; }
  .kh-hero__trust { display: none; }
  .kh-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .kh-blog { grid-template-columns: repeat(2, 1fr); }
  .kh-mini-products { grid-template-columns: 1fr; }
  .kh-seller { padding: 28px; border-radius: 26px; }
  .kh-seller__copy h2 { font-size: 26px; }
  .kh-seller__benefits { grid-template-columns: 1fr; }
  .kh-advantages { grid-template-columns: repeat(2, 1fr); }

  /* Filter tabs — cuộn ngang, không xuống dòng lộn xộn */
  .kh-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 4px;
  }
  .kh-tabs::-webkit-scrollbar { display: none; }
  .kh-tab { flex-shrink: 0; padding: 10px 16px; font-size: 13px; }

  /* Quick tags — 2 cột đều nhau */
  .kh-quick-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .kh-tag {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 540px) {
  .kh-h1 { font-size: 28px; }
  .kh-stats { grid-template-columns: repeat(2, 1fr); }
  .kh-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .kh-products { grid-template-columns: 1fr; }
  .kh-shops { grid-template-columns: 1fr; }
  .kh-blog { grid-template-columns: 1fr; }
  .kh-advantages { grid-template-columns: 1fr; }
  .kh-landing__card { min-height: 320px; padding: 24px; }
  .kh-landing__card h2 { font-size: 26px; }
  .kh-process-card h3 { font-size: 15px; }
  .kh-process-card__head { padding: 18px 20px; gap: 12px; }
  .kh-process-card__icon { font-size: 26px; }
  .kh-steps { padding: 18px 20px 22px; }
  .kh-eco__img { display: none; }
  .kh-hero__market-card { display: none; }
}
