/* PPN Market Next Generation | Scope strictly to the public Market UI. */
.mk-page.mk-next,
.mk-page.mk-next-secondary {
  --mk-primary: #087c86;
  --mk-primary-light: #119aa3;
  --mk-primary-dark: #076975;
  --mk-secondary: #153a54;
  --mk-secondary-light: #285a79;
  --mk-accent: #ffbd67;
  --mk-bg: #f6f8fb;
  --mk-border: #e6edf2;
  --mk-shadow-sm: 0 2px 10px rgba(17,44,67,.035);
  --mk-shadow-md: 0 12px 34px rgba(17,44,67,.065);
  --mk-shadow-lg: 0 20px 50px rgba(17,44,67,.10);
  background: var(--mk-bg);
  color: #1b3041;
  font-family: 'Noto Sans Thai', Tahoma, Arial, sans-serif;
}
.mk-page.mk-next *, .mk-page.mk-next-secondary * { box-sizing: border-box; }
.mk-page.mk-next a, .mk-page.mk-next-secondary a { -webkit-tap-highlight-color: transparent; }
.mk-page.mk-next :focus-visible, .mk-page.mk-next-secondary :focus-visible { outline: 3px solid #fdac52; outline-offset: 3px; }
.mk-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mk-skip-link { position: fixed; left: 15px; top: -120px; z-index: 999; background: white; color: #12344b; padding: 12px 16px; border-radius: 12px; }
.mk-skip-link:focus { top: 12px; }
.mk-page.mk-next .mk-container, .mk-page.mk-next-secondary .mk-container { max-width: 1200px; padding-inline: 24px; }
.mk-next-header { height: 76px; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid #e6eef3; padding: 10px max(22px,calc((100vw - 1232px)/2)); gap: 12px; }
.mk-next-header .mk-topbar-brand { font-family: 'Outfit','Noto Sans Thai', sans-serif; color: #10324b; font-size: 18px; gap: 10px; flex-shrink: 0; }
.mk-next-header .mk-topbar-brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 13px; }
.mk-next-header .mk-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.mk-next-header .mk-wordmark strong { letter-spacing: -.4px; white-space: nowrap; }
.mk-next-header .mk-wordmark strong span { color: #087c86; }
.mk-next-header .mk-wordmark small { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: #8a9ca8; margin-top: 5px; }
.mk-next-header .mk-topbar-nav { margin: auto; gap: 3px; }
.mk-next-header .mk-topbar-nav a { font-size: 13px; font-weight: 600; color: #476275; padding: 10px 12px; border-radius: 10px; white-space: nowrap; }
.mk-next-header .mk-topbar-nav a:is(:hover,.active,[aria-current="page"]) { background: #e9f5f5; color: #087c86; }
.mk-next-header #topRight a { border-radius: 10px; text-decoration: none; white-space: nowrap; }
.mk-signin-link { padding: 10px 16px; background: #0d364c; color: #fff!important; font-size: 13px; font-weight: 700; }
.mk-page.mk-next .mk-btn-primary, .mk-page.mk-next-secondary .mk-btn-primary { background: #087c86; color: #fff; }
.mk-page.mk-next .mk-btn-primary:hover, .mk-page.mk-next-secondary .mk-btn-primary:hover { background: #076975; }
/* Hero */
.mk-next-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 77% 23%,#1f6072 0,#102f48 40%,#102b40 76%); color: #fff; }
.mk-next-hero::before { content: ''; position: absolute; width: 560px; height: 560px; right: -110px; top: -290px; border-radius: 100%; border: 90px solid rgba(110,214,203,.06); }
.mk-next-hero-inner { max-width: 1200px; min-height: 490px; margin: auto; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 14px; align-items: center; padding: 48px 24px 56px; }
.mk-next-hero-copy { max-width: 670px; position: relative; z-index: 1; }
.mk-next-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 99px; letter-spacing: 1.6px; font: 700 10px 'Outfit','Noto Sans Thai',sans-serif; color: #bbf0e8; }
.mk-next-spark { height: 7px; width: 7px; background: #f7b05a; border-radius: 100%; box-shadow: 0 0 0 4px rgba(247,176,90,.15); }
.mk-next-hero h1 { font-size: clamp(28px,4vw,53px); line-height: 1.30; letter-spacing: -.7px; max-width: 710px; margin: 24px 0 14px; font-weight: 800; color: #fff; }
.mk-next-lead { max-width: 600px; font-size: 15px; color: #d0e5eb; line-height: 1.9; margin-bottom: 25px; }
.mk-next-search { display: flex; align-items: center; gap: 11px; height: 60px; width: 100%; max-width: 590px; border-radius: 16px; padding: 6px 6px 6px 17px; background: #fff; box-shadow: 0 16px 45px rgba(0,0,0,.15); }
.mk-next-search svg { width: 22px; height: 22px; flex-shrink: 0; color: #8fa2b0; }
.mk-next-search input { min-width: 0; width: 100%; flex: 1; border: 0; padding: 0; background: transparent; color: #18344a; font: 500 14px 'Noto Sans Thai',Tahoma,sans-serif; outline: 0; }
.mk-next-search input::placeholder { color: #8598a7; }
.mk-next-search button { align-self: stretch; padding: 0 28px; border: 0; background: #0d8993; color: #fff; border-radius: 12px; font: 700 14px 'Noto Sans Thai',Tahoma,sans-serif; cursor: pointer; }
.mk-next-search button:hover { background: #086b75; }
.mk-next-hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 22px 0 24px; }
.mk-next-hero-link, .mk-next-open-link { color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.mk-next-hero-link { padding-bottom: 4px; border-bottom: 1px solid #5cbebd; }
.mk-next-open-link { color: #bfe0e4; }
.mk-next-trust { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 8px; font-size: 11px; color: #b4d3da; }
.mk-next-trust span::before { content: '✓'; color: #7ee0c3; margin-right: 7px; font-weight: 800; }
.mk-next-hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.mk-next-hero-art img { display: block; width: 100%; max-height: 390px; object-fit: contain; z-index: 1; filter: drop-shadow(0 28px 40px rgba(0,0,0,.18)); }
.mk-next-art-glow { background: radial-gradient(closest-side,rgba(51,190,179,.30),transparent); position: absolute; inset: -25%; }
.mk-next-art-label { position: absolute; bottom: -12px; z-index: 2; color: #d2f4eb; border: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.09); border-radius: 99px; padding: 10px 22px; font: 700 10px 'Outfit',sans-serif; letter-spacing: 2px; }
/* Type cards */
.mk-next-type-section { position: relative; margin-top: -23px!important; z-index: 3; }
.mk-next-type-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.mk-next-type-card { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; color: #17354a; background: #fff; border: 1px solid #e6edf2; box-shadow: 0 12px 40px rgba(12,44,65,.075); border-radius: 20px; padding: 19px 20px; transition: transform .18s,box-shadow .18s; }
.mk-next-type-card:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(12,44,65,.12); }
.mk-next-type-card[aria-current=page] { border-color: #75c9c8; box-shadow: 0 8px 27px rgba(8,124,134,.11); }
.mk-next-type-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 17px; display: flex; justify-content: center; align-items: center; }
.mk-next-type-icon svg { width: 29px; height: 29px; }
.mk-next-icon-product { background: #eaf2ff; color: #3471bd; }
.mk-next-icon-food { background: #fff2e7; color: #d98738; }
.mk-next-icon-service { background: #e4f8f5; color: #0d9288; }
.mk-next-type-card strong { display: block; font-size: 15px; margin-bottom: 5px; }
.mk-next-type-card small { color: #6b8293; font-size: 11px; line-height: 1.5; }
.mk-next-type-arrow { margin-left: auto; color: #8eabba; font-size: 20px; }
/* Seller banner */
.mk-next-discovery { padding-top: 30px!important; }
.mk-next-discovery-banner { border: 1px solid #dcebed; background: linear-gradient(108deg,#e7f4f5,#f0f9f7 60%,#e1edf5); border-radius: 22px; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mk-next-label,.mk-next-section-kicker { display: block; letter-spacing: 2px; font: 700 10px 'Outfit','Noto Sans Thai',sans-serif; color: #12878c; }
.mk-next-discovery h2 { font-size: 20px; color: #173a4e; margin: 6px 0; }
.mk-next-discovery p { font-size: 12px; color: #587284; margin: 0; }
.mk-next-discovery-cta { flex-shrink: 0; display: inline-flex; gap: 13px; background: #103d54; color: #fff; padding: 12px 20px; border-radius: 12px; text-decoration: none; font-size: 12px; font-weight: 700; }
/* Category chips and listing */
.mk-page.mk-next .mk-feat-section { max-width: 1200px; margin: 22px auto; padding: 20px 24px; }
.mk-page.mk-next .mk-feat-title { color: #173a4e; font-size: 21px; }
.mk-page.mk-next .mk-cats-section { margin-top: 25px; border-block: 1px solid #edf0f5; background: rgba(255,255,255,.85); }
.mk-page.mk-next .mk-cats-header strong { font-size: 13px; color: #344e61; }
.mk-page.mk-next .mk-cat-chip { background: #f3f7f9; color: #557082; border: 1px solid #dfebef; }
.mk-page.mk-next .mk-cat-chip.active, .mk-page.mk-next .mk-cat-chip:hover { background: #e6f5f2; color: #077c86; border-color: #afe0d9; }
.mk-next-results { padding-top: 48px!important; padding-bottom: 48px!important; }
.mk-next-results-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.mk-next-results-head h2 { font-size: clamp(21px,2.6vw,28px); line-height: 1.4; margin: 7px 0 4px; color: #14344a; }
.mk-next-count, .mk-search-result { margin: 0; color: #688294; font-size: 13px; }
.mk-next-sort { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.mk-next-sort label { color: #698192; font-size: 12px; }
.mk-next-sort select { width: auto; background: #fff; border: 1px solid #dce5ea; border-radius: 11px; font-size: 12px; }
.mk-next-filter-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mk-next-filter-links a { text-decoration: none; color: #506a7b; padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid #e0e8ed; font-size: 12px; font-weight: 700; }
.mk-next-filter-links a[aria-current=page], .mk-next-filter-links a:hover { background: #103d54; border-color: #103d54; color: #fff; }
.mk-page.mk-next .mk-grid, .mk-page.mk-next-secondary .mk-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.mk-page.mk-next .mk-card, .mk-page.mk-next-secondary .mk-card { display: block; border: 1px solid #e5edf2; background: #fff; border-radius: 17px; overflow: hidden; box-shadow: 0 5px 18px rgba(21,54,75,.035); text-decoration: none; transition: transform .18s,box-shadow .18s; min-width: 0; }
.mk-page.mk-next .mk-card:hover, .mk-page.mk-next-secondary .mk-card:hover { transform: translateY(-4px); box-shadow: 0 17px 32px rgba(21,54,75,.12); }
.mk-next-card-media { position: relative; background: #e8f1f2; aspect-ratio: 1.12; overflow: hidden; }
.mk-next-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-next-placeholder { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; min-height: 190px; background: linear-gradient(135deg,#d4e8e8,#e9eff4); color: #6fa5ae; font: 700 28px 'Outfit',sans-serif; }
.mk-next-type { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: #267282; border-radius: 8px; padding: 5px 9px; font-size: 10px; font-weight: 700; }
.mk-page.mk-next .mk-card-body, .mk-page.mk-next-secondary .mk-card-body { padding: 15px 15px 18px; }
.mk-page.mk-next .mk-card-name, .mk-page.mk-next-secondary .mk-card-name { margin: 0 0 8px; font-size: 14px; line-height: 1.65; font-weight: 700; color: #203f53; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-page.mk-next .mk-card-shop, .mk-page.mk-next-secondary .mk-card-shop { font-size: 11px; color: #6b8293; }
.mk-page.mk-next .price-now, .mk-page.mk-next-secondary .price-now { font: 800 18px 'Outfit','Noto Sans Thai',sans-serif; color: #087c86; }
.mk-page.mk-next .mk-card-price, .mk-page.mk-next-secondary .mk-card-price { margin-top: 10px; }
.mk-next-load-more { text-align: center; padding: 25px 0; }
/* Explanations + FAQ */
.mk-next-explain { padding-block: 54px 70px!important; }
.mk-next-explain-head { max-width: 720px; margin-bottom: 27px; }
.mk-next-explain-head h2 { color: #16374b; font-size: clamp(22px,2.8vw,30px); line-height: 1.5; margin: 9px 0; }
.mk-next-explain-head p { color: #687f8e; font-size: 14px; line-height: 1.9; }
.mk-next-how-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.mk-next-how-grid article { background: #fff; border: 1px solid #e6edf1; border-radius: 20px; padding: 26px; }
.mk-next-how-grid article>span { color: #0e8991; font: 700 14px 'Outfit',sans-serif; letter-spacing: 1px; }
.mk-next-how-grid h3 { font-size: 16px; margin: 14px 0 9px; color: #183a4e; }
.mk-next-how-grid p { font-size: 12px; line-height: 1.9; color: #688294; margin: 0; }
.mk-next-faq { padding-block: 20px 75px!important; max-width: 980px!important; }
.mk-next-faq-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 19px; }
.mk-next-faq-heading h2 { font-size: 24px; color: #193c51; margin: 0; }
.mk-next-faq-heading a { font-size: 12px; color: #13808c; text-decoration: none; }
.mk-next-faq details { border-radius: 13px; background: #fff; border: 1px solid #e5edf2; margin-bottom: 9px; padding: 16px 19px; }
.mk-next-faq summary { cursor: pointer; font-size: 14px; color: #2c495d; font-weight: 700; }
.mk-next-faq details p { color: #637c8d; font-size: 12px; line-height: 1.9; margin: 11px 0 0; }
/* Secondary listing/detail pages */
.mk-page.mk-next-secondary .mk-hero { padding: 45px 24px; background: linear-gradient(110deg,#15394f,#0b797e); }
.mk-page.mk-next-secondary .mk-hero h1 { font: 800 clamp(23px,3vw,33px) 'Noto Sans Thai',Tahoma,sans-serif; }
.mk-page.mk-next-secondary .mk-hero .mk-hero-inner { max-width: 780px; }
.mk-page.mk-next-secondary .mk-hero .mk-search-input { border: 1px solid #d4e2e6; }
.mk-page.mk-next-secondary .mk-search-btn { background: #ffbd67; color: #183b4e; }
.mk-page.mk-next-secondary .mk-detail-wrap { padding-block: 28px; }
.mk-next-ssr-detail { font-size: 13px; color: #506c7c; }
.mk-next-ssr-detail h1 { font-size: clamp(22px,3vw,30px); color: #18394e; line-height: 1.45; margin: 10px 0; }
.mk-next-price { font-size: 25px; color: #087c86; font-weight: 800; }
.mk-next-kicker { color: #087c86; font-size: 12px; font-weight: 700; }
.mk-next-description { color: #587183; font-size: 13px; margin-top: 18px; line-height: 1.9; }
.mk-next-js-note { font-size: 11px; color: #8195a2; margin-top: 20px; }
.mk-next-unavailable { border: 1px solid #f0dbb1; background: #fff8e8; border-radius: 11px; padding: 10px 13px; color: #835c1e; font-weight: 700; }
.mk-page.mk-next-secondary .shop-header { background: linear-gradient(110deg,#15394f,#087c86); }
.mk-page.mk-next-secondary .shop-header h1 { color: #fff; margin: 0; font-size: 27px; }
.mk-page.mk-next-secondary .shop-header p { color: #d7edf1; line-height: 1.9; margin: 0; }
.mk-page.mk-next-secondary .shops-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.mk-next-shop { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid #e6edf2; border-radius: 17px; padding: 20px; text-decoration: none; color: #15364c; }
.mk-next-shop-logo img { width: 70px; height: 70px; border-radius: 15px; object-fit: cover; }
.mk-shop-letter { display: flex; align-items: center; justify-content: center; background: #e4f2f2; color: #087c86; border-radius: 15px; font-size: 26px; width: 70px; height: 70px; }
.mk-next-shop h2 { font-size: 15px; margin: 0 0 4px; }
.mk-next-shop p { font-size: 11px; color: #768c9b; margin: 0 0 8px; line-height: 1.6; }
.mk-next-shop span { font-size: 11px; color: #087c86; }
@media(max-width:1020px) {
  .mk-next-header .mk-topbar-nav { gap: 0; }
  .mk-next-header .mk-topbar-nav a { padding: 9px 8px; font-size: 12px; }
  .mk-next-hero-inner { min-height: 430px; }
  .mk-page.mk-next .mk-grid, .mk-page.mk-next-secondary .mk-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:780px) {
  .mk-next-header { height: auto; min-height: 70px; flex-wrap: wrap; justify-content: space-between; padding: 11px 16px 0; }
  .mk-next-header .mk-topbar-nav { width: 100%; order: 3; margin: 0; overflow-x: auto; scrollbar-width: none; padding: 5px 0 8px; }
  .mk-next-header .mk-topbar-nav::-webkit-scrollbar { display: none; }
  .mk-next-hero-inner { display: block; padding: 40px 22px 54px; min-height: unset; }
  .mk-next-hero h1 { font-size: clamp(28px,6.7vw,43px); }
  .mk-next-hero-art { display: none; }
  .mk-next-type-grid { grid-template-columns: 1fr; }
  .mk-next-type-section { margin-top: -16px!important; }
  .mk-next-type-card { padding: 15px 17px; }
  .mk-next-discovery-banner { align-items: flex-start; }
  .mk-page.mk-next .mk-grid, .mk-page.mk-next-secondary .mk-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mk-next-how-grid { grid-template-columns: 1fr; }
  .mk-page.mk-next-secondary .shops-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) {
  .mk-page.mk-next .mk-container, .mk-page.mk-next-secondary .mk-container { padding-inline: 15px; }
  .mk-next-header { padding-inline: 13px; }
  .mk-next-header .mk-wordmark strong { font-size: 15px; }
  .mk-next-header .mk-topbar-brand img { width: 37px; height: 37px; }
  .mk-next-hero-inner { padding: 35px 17px 43px; }
  .mk-next-eyebrow { font-size: 9px; }
  .mk-next-hero h1 { font-size: 29px; margin-top: 18px; }
  .mk-next-lead { font-size: 13px; line-height: 1.85; }
  .mk-next-search { height: 54px; padding-left: 12px; border-radius: 12px; }
  .mk-next-search input { font-size: 12px; }
  .mk-next-search button { font-size: 12px; padding-inline: 16px; border-radius: 9px; }
  .mk-next-trust { column-gap: 12px; }
  .mk-next-type-section { padding-inline: 13px!important; }
  .mk-next-type-icon { width: 49px; height: 49px; border-radius: 14px; }
  .mk-next-type-card strong { font-size: 14px; }
  .mk-next-discovery { padding-top: 21px!important; }
  .mk-next-discovery-banner { padding: 20px; flex-direction: column; gap: 15px; }
  .mk-next-discovery h2 { font-size: 18px; }
  .mk-next-results { padding-top: 34px!important; }
  .mk-next-results-head { align-items: flex-start; flex-direction: column; }
  .mk-next-sort { width: 100%; justify-content: space-between; }
  .mk-page.mk-next .mk-grid, .mk-page.mk-next-secondary .mk-grid { gap: 10px; }
  .mk-page.mk-next .mk-card-name, .mk-page.mk-next-secondary .mk-card-name { font-size: 12px; }
  .mk-page.mk-next .mk-card-body, .mk-page.mk-next-secondary .mk-card-body { padding: 12px; }
  .mk-page.mk-next .price-now, .mk-page.mk-next-secondary .price-now { font-size: 16px; }
  .mk-page.mk-next-secondary .shops-grid { grid-template-columns: 1fr; }
  .mk-next-faq-heading h2 { font-size: 20px; }
  .mk-next-explain { padding-block: 40px!important; }
}
@media(prefers-reduced-motion:reduce) {
  .mk-next-type-card,.mk-page.mk-next .mk-card,.mk-page.mk-next-secondary .mk-card { transition: none; }
}
.mk-next-pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 30px 0 4px; color: #687f91; font-size: 12px; }
.mk-next-pager a { padding: 9px 15px; border: 1px solid #d5e4e8; border-radius: 10px; background: #fff; color: #0d7681; text-decoration: none; font-weight: 700; }
.mk-next-pager a:hover { background: #e8f6f4; }

.mk-next-card-sub { font-size: 11px; color: #8194a0; margin-top: 8px; line-height: 1.5; }
.mk-next-card-sub:first-letter { color: #cb984d; }
