/* Marketplace — scoped .mp-* styles */
:root {
  --mp-navy: #1f2d3d;
  --mp-buyer: #0733A2;
  --mp-supplier: #EC1C2B;
  --mp-green: #18C015;
  --mp-amber: #D9A443;
  --mp-gray: #6c757d;
  --mp-radius: 12px;
  --mp-shadow: 0 2px 12px rgba(0,0,0,.06);
  --mp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.hold-transition,
.mp-home,
.mp-home-legacy,
.site__header,
#mpMegaMenu {
  font-family: var(--mp-font);
  -webkit-font-smoothing: antialiased;
}

.mp-page { min-height: 60vh; }
.mp-text-muted { color: #64748b; }
.mp-page-title { font-weight: 600; font-size: 1.5rem; color: var(--mp-navy); }

/* Hero */
.mp-hero {
  background: linear-gradient(135deg, var(--mp-navy) 0%, #2c3e50 100%);
  color: #fff;
  padding: 3rem 0;
}
.mp-hero--sm { padding: 2rem 0; }
.mp-hero__title { font-weight: 800; font-size: 2rem; margin-bottom: .5rem; }
.mp-hero__sub { opacity: .85; }

/* Cards */
.mp-card {
  background: #fff;
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  padding: 1.25rem;
  border: 1px solid #eee;
}
.mp-card--hover:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.1); transition: .2s; }

/* Stats */
.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 768px) { .mp-stats { grid-template-columns: repeat(2, 1fr); } }
.mp-stat-card {
  background: #fff;
  border-radius: var(--mp-radius);
  padding: 1.25rem;
  box-shadow: var(--mp-shadow);
  border: 1px solid #eee;
}
.mp-stat-card__label { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mp-gray); font-weight: 600; }
.mp-stat-card__value { font-size: 1.75rem; font-weight: 800; line-height: 1.2; margin: .25rem 0; }
.mp-stat-card__sub { font-size: .8rem; }

/* Badges */
.mp-badge { display: inline-block; padding: .25rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.mp-badge--success { background: #d4edda; color: #155724; }
.mp-badge--warning { background: #fff3cd; color: #856404; }
.mp-badge--danger { background: #f8d7da; color: #721c24; }
.mp-badge--info { background: #cce5ff; color: var(--mp-buyer); }
.mp-badge--muted { background: #e9ecef; color: #495057; }
.mp-badge--shipping { background: #cce5ff; color: var(--mp-buyer); }
.mp-badge--nego { background: #fce4ec; color: var(--mp-supplier); }
.mp-badge--done { background: #d4edda; color: #155724; }
.mp-badge--pay { background: #fff3cd; color: #856404; }
.mp-badge--dispute { background: #fff3cd; color: #856404; }

/* Tabs */
.mp-tabs { display: flex; gap: 0; border-bottom: 2px solid #eee; overflow-x: auto; }
.mp-tabs__item {
  padding: .75rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--mp-gray);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.mp-tabs__item.active { color: var(--mp-supplier); border-bottom-color: var(--mp-supplier); }
.mp-tabs__item--buyer.active { color: var(--mp-buyer); border-bottom-color: var(--mp-buyer); }
.mp-tab-pane { display: none; padding-top: 1.5rem; }
.mp-tab-pane.active { display: block; }

/* Product grid */
.mp-product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.mp-product-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .mp-product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .mp-product-grid, .mp-product-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .mp-product-grid, .mp-product-grid--4 { grid-template-columns: repeat(2, 1fr); } }
.mp-product-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px) { .mp-product-grid--3 { grid-template-columns: repeat(2, 1fr); } }

/* Product card — see v2 section below */

/* Sidebar layout */
.mp-dash-layout { display: flex; gap: 1.5rem; }
.mp-sidebar {
  width: 240px; flex-shrink: 0;
  background: #fff;
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  padding: 1rem 0;
  height: fit-content;
}
.mp-sidebar__user { padding: 1rem 1.25rem; border-bottom: 1px solid #eee; }
.mp-sidebar__nav a {
  display: block; padding: .65rem 1.25rem;
  color: #333; text-decoration: none; font-weight: 500;
}
.mp-sidebar__nav a:hover, .mp-sidebar__nav a.active {
  background: #f0f4ff; color: var(--mp-buyer);
  border-left: 3px solid var(--mp-buyer);
}
.mp-sidebar--supplier .mp-sidebar__nav a:hover,
.mp-sidebar--supplier .mp-sidebar__nav a.active {
  background: #fff0f0; color: var(--mp-supplier);
  border-left-color: var(--mp-supplier);
}
.mp-dash-content { flex: 1; min-width: 0; }
@media (max-width: 768px) {
  .mp-dash-layout { flex-direction: column; }
  .mp-sidebar { width: 100%; }
}

/* Store hero */
.mp-store-hero { background: var(--mp-navy); color: #fff; padding: 2rem 0; }
.mp-store-logo {
  width: 72px; height: 72px; border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--mp-supplier);
}
.mp-store-stat { background: rgba(255,255,255,.1); border-radius: 8px; padding: .75rem 1rem; text-align: center; }
.mp-store-stat__val { font-size: 1.25rem; font-weight: 800; }
.mp-store-stat__lbl { font-size: .7rem; opacity: .8; }

/* Filter sidebar */
.mp-filter { width: 220px; flex-shrink: 0; }
.mp-filter__section { margin-bottom: 1.25rem; }
.mp-filter__label { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--mp-gray); margin-bottom: .5rem; }
.mp-filter-pill { display: inline-flex; align-items: center; gap: .35rem; background: var(--mp-supplier); color: #fff; padding: .25rem .6rem; border-radius: 20px; font-size: .8rem; margin: .25rem; }
.mp-filter-pill button { background: none; border: none; color: #fff; cursor: pointer; padding: 0; }

/* Search layout */
.mp-search-layout { display: flex; gap: 1.5rem; }
@media (max-width: 768px) { .mp-search-layout { flex-direction: column; } .mp-filter { width: 100%; } }

/* Detail layout */
.mp-detail-layout { display: flex; gap: 2rem; }
.mp-detail-main { flex: 1; }
.mp-detail-panel {
  width: 320px; flex-shrink: 0;
  position: sticky; top: 1rem; align-self: flex-start;
}
@media (max-width: 992px) {
  .mp-detail-layout { flex-direction: column; }
  .mp-detail-panel { width: 100%; position: static; }
}

/* Gallery */
.mp-gallery__main { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--mp-radius); background: #f0f0f0; }
.mp-gallery__thumbs { display: flex; gap: .5rem; margin-top: .75rem; }
.mp-gallery__thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.mp-gallery__thumb.active { border-color: var(--mp-supplier); }

/* Tier table */
.mp-tier-table { width: 100%; font-size: .85rem; background: #fff5f5; border-radius: 8px; overflow: hidden; }
.mp-tier-table th, .mp-tier-table td { padding: .5rem .75rem; }

/* Progress tracker */
.mp-tracker { display: flex; justify-content: space-between; position: relative; margin: 2rem 0; }
.mp-tracker::before {
  content: ''; position: absolute; top: 16px; left: 10%; right: 10%;
  height: 3px; background: #dee2e6; z-index: 0;
}
.mp-tracker__step { text-align: center; position: relative; z-index: 1; flex: 1; }
.mp-tracker__dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; margin-bottom: .5rem;
  background: #dee2e6; color: #fff;
}
.mp-tracker__dot--done { background: var(--mp-green); }
.mp-tracker__dot--current { background: var(--mp-supplier); }
.mp-tracker__label { font-size: .7rem; font-weight: 600; }

/* Timeline */
.mp-timeline { list-style: none; padding: 0; }
.mp-timeline li { padding: .75rem 0 .75rem 1.5rem; border-left: 2px solid #eee; position: relative; margin-left: .5rem; }
.mp-timeline li::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--mp-buyer); position: absolute; left: -6px; top: 1rem;
}

/* Chat */
.mp-chat { max-height: 400px; overflow-y: auto; padding: 1rem; background: #f8f9fa; border-radius: var(--mp-radius); }
.mp-chat__msg { display: flex; gap: .75rem; margin-bottom: 1rem; }
.mp-chat__msg--supplier { flex-direction: row-reverse; }
.mp-chat__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--mp-buyer); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.mp-chat__msg--supplier .mp-chat__avatar { background: var(--mp-supplier); }
.mp-chat__bubble {
  max-width: 70%; padding: .75rem 1rem; border-radius: 12px;
  background: #e9ecef;
  border-bottom-left-radius: 4px;
}
.mp-chat__msg--supplier .mp-chat__bubble {
  background: #fce4ec; border-bottom-left-radius: 12px; border-bottom-right-radius: 4px;
}
.mp-chat__offer { font-size: 1.25rem; font-weight: 800; color: var(--mp-supplier); }
.mp-chat__time { font-size: .7rem; color: var(--mp-gray); margin-top: .25rem; }

/* Payment cards */
.mp-pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.mp-pay-card {
  border: 2px solid #eee; border-radius: var(--mp-radius);
  padding: 1rem; cursor: pointer; transition: .2s;
}
.mp-pay-card:hover, .mp-pay-card.selected { border-color: var(--mp-buyer); background: #f0f4ff; }
.mp-pay-card input { margin-right: .5rem; }

/* Escrow note */
.mp-escrow {
  background: #e8f5e9; border-radius: 8px; padding: .75rem 1rem;
  font-size: .85rem; color: #2e7d32;
}

/* Category pills */
.mp-cat-scroll { display: flex; gap: .5rem; overflow-x: auto; padding: .5rem 0; scrollbar-width: thin; }

/* Table */
.mp-table { font-size: .9rem; }
.mp-table thead th { font-weight: 700; border-bottom: 2px solid #dee2e6; }
.mp-table tbody tr:hover { background: #f8f9fa; }

/* Form sections */
.mp-form-section { margin-bottom: 2rem; }
.mp-form-section__title { font-weight: 800; font-size: 1rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid #eee; }
.mp-upload-zone {
  border: 2px dashed #ccc; border-radius: var(--mp-radius);
  padding: 2rem; text-align: center; cursor: pointer; color: var(--mp-gray);
}
.mp-upload-zone:hover { border-color: var(--mp-buyer); background: #f8f9fa; }

/* Catalog form layout */
.mp-form-layout { display: flex; gap: 1.5rem; }
.mp-form-main { flex: 1; }
.mp-form-sidebar { width: 280px; flex-shrink: 0; }
@media (max-width: 992px) { .mp-form-layout { flex-direction: column; } .mp-form-sidebar { width: 100%; } }

/* Supplier top nav */
.mp-sup-nav { background: var(--mp-navy); color: #fff; padding: .75rem 0; margin-bottom: 1.5rem; }
.mp-sup-nav__tabs a { color: rgba(255,255,255,.7); text-decoration: none; padding: .5rem 1rem; font-weight: 600; }
.mp-sup-nav__tabs a.active, .mp-sup-nav__tabs a:hover { color: #fff; border-bottom: 2px solid var(--mp-supplier); }

/* Stars */
.mp-stars { color: #ffc107; cursor: pointer; }
.mp-stars .fa-star-o { color: #ddd; }

/* Rating bars */
.mp-rating-bar { display: flex; align-items: center; gap: .5rem; margin: .25rem 0; }
.mp-rating-bar__track { flex: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.mp-rating-bar__fill { height: 100%; background: #ffc107; border-radius: 4px; }

/* Checkout progress */
.mp-checkout-steps { display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; font-size: .9rem; }
.mp-checkout-steps span { color: var(--mp-gray); }
.mp-checkout-steps .active { color: var(--mp-buyer); font-weight: 700; }
.mp-checkout-steps .done { color: var(--mp-green); }

/* Demo banner */
.mp-demo-banner { background: #f0f4ff; border-radius: var(--mp-radius); padding: 1.5rem; border-left: 4px solid var(--mp-buyer); }

/* Empty state */
.mp-empty { text-align: center; padding: 3rem; color: var(--mp-gray); }
.mp-empty__icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }

/* Admin mp overrides in backend */
.mp-admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .mp-admin-stats { grid-template-columns: repeat(2, 1fr); } }

/* Header search */
.mp-header-search .search__body { display: flex; align-items: stretch; background: #f5f7fa; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: none; }
.mp-header-search .search__input {
  flex: 1; border: none !important; background: transparent !important;
  padding: 12px 16px !important; font-size: .9rem; opacity: 1 !important;
  box-shadow: none !important;
}
.mp-header-search .search__input::placeholder { color: #94a3b8; }
.mp-header-search .search__input:focus { outline: none; }
.mp-header-search .search__button {
  opacity: 1 !important; border: none; border-radius: 0 8px 8px 0 !important;
  background: var(--mp-supplier) !important; min-width: 52px; padding: 0 16px;
  transition: background .2s, transform .15s;
}
.mp-header-search .search__button:hover { background: #d41928 !important; }
.mp-header-search .search__button-icon { color: #fff; }

/* Top nav grouping */
.mp-topnav { background: #fff; border-top: 1px solid #eef2f6; }
.mp-topnav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .35rem; padding: .35rem 0; }
.mp-topnav__divider { width: 1px; height: 18px; background: #dde3ea; margin: 0 .5rem; display: none; }
@media (min-width: 992px) { .mp-topnav__divider { display: inline-block; } }
.mp-topnav__group-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 700; margin-right: .25rem; }
.mp-topnav__kategori { font-weight: 700 !important; }
.mp-topnav__marketplace { color: var(--mp-supplier) !important; }
.mp-topnav__cta {
  margin-left: auto !important; padding: .35rem .85rem !important;
  background: #fff !important; border: 1.5px solid var(--mp-supplier) !important;
  color: var(--mp-supplier) !important; border-radius: 6px !important; font-weight: 700 !important;
}
.mp-topnav__cta:hover { background: var(--mp-supplier) !important; color: #fff !important; }

/* ===== Buttons ===== */
.mp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.15rem; border-radius: 8px; font-weight: 600; font-size: .875rem;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: all .2s ease; line-height: 1.2;
}
.mp-btn--primary { background: var(--mp-supplier); color: #fff; border-color: var(--mp-supplier); box-shadow: 0 2px 8px rgba(236,28,43,.25); }
.mp-btn--primary:hover { background: #d41928; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(236,28,43,.3); }
.mp-btn--outline { background: #fff; color: #475569; border-color: #cbd5e1; }
.mp-btn--outline:hover { border-color: var(--mp-buyer); color: var(--mp-buyer); background: #f8fafc; }
.mp-btn--ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.mp-btn--ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.mp-btn--sm { padding: .45rem .75rem; font-size: .8rem; border-radius: 6px; }
.mp-btn--buyer { background: var(--mp-buyer); border-color: var(--mp-buyer); color: #fff; }

/* ===== Homepage strip (slim, not crowded) ===== */
.mp-home-strip { background: #f8fafc; padding: 1.25rem 0 2rem; }
.mp-home-strip__banner {
  border-radius: 16px; overflow: hidden; background-size: cover; background-position: center;
  min-height: 200px; position: relative; margin-bottom: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.mp-home-strip__overlay {
  background: linear-gradient(90deg, rgba(15,23,42,.88) 0%, rgba(15,23,42,.45) 100%);
  padding: 2rem 2.25rem; color: #fff; max-width: 560px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: center;
}
.mp-home-strip__title { font-weight: 800; font-size: 1.5rem; margin: .5rem 0; line-height: 1.3; }
.mp-home-strip__sub { opacity: .85; font-size: .9rem; margin: 0; }
.mp-badge--light { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.mp-home-strip__cats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .65rem; margin-bottom: 1.5rem;
}
@media (max-width: 992px) { .mp-home-strip__cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .mp-home-strip__cats { grid-template-columns: repeat(2, 1fr); } }
.mp-cat-tile {
  background: #fff; border: 1px solid #e8edf2; border-radius: 10px; padding: .75rem;
  text-decoration: none; color: #334155; transition: all .2s; display: block;
}
.mp-cat-tile:hover { border-color: var(--mp-buyer); box-shadow: 0 4px 12px rgba(7,51,162,.1); transform: translateY(-2px); color: var(--mp-buyer); }
.mp-cat-tile--accent { border-color: #fecdd3; background: #fff5f5; }
.mp-cat-tile__name { font-weight: 700; font-size: .8rem; display: block; line-height: 1.3; }
.mp-cat-tile__count { font-size: .7rem; color: #94a3b8; margin-top: .2rem; display: block; }
.mp-section-title { font-weight: 600; font-size: 1.125rem; color: #1e293b; letter-spacing: -.01em; }
.mp-link-arrow { font-weight: 600; font-size: .875rem; color: var(--mp-buyer); text-decoration: none; }
.mp-link-arrow:hover { color: var(--mp-supplier); }

/* Catalog subheader */
.mp-page--catalog { background: #f8fafc; }
.mp-subheader { background: #fff; border-bottom: 1px solid #e8edf2; padding: .75rem 0; }
.mp-subheader__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.mp-subheader__cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.mp-tag {
  display: inline-block; padding: .2rem .55rem; background: #f1f5f9; border-radius: 4px;
  font-size: .75rem; color: #475569; text-decoration: none; border: 1px solid #e2e8f0;
}
.mp-tag:hover { background: #e2e8f0; color: var(--mp-buyer); }
.mp-toolbar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.mp-select { border-radius: 8px; border-color: #e2e8f0; min-width: 180px; font-size: .85rem; }
.mp-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) { .mp-trust-row { grid-template-columns: 1fr; } }
.mp-trust-item {
  display: flex; gap: .75rem; align-items: flex-start; background: #fff;
  padding: 1rem 1.15rem; border-radius: 12px; border: 1px solid #e8edf2;
}
.mp-trust-item i { color: var(--mp-buyer); font-size: 1.25rem; margin-top: .15rem; }
.mp-trust-item strong { display: block; font-size: .85rem; color: #1e293b; }
.mp-trust-item span { font-size: .75rem; color: #64748b; }

/* ===== Product card v2 ===== */
.mp-product-card {
  background: #fff; border-radius: 12px; border: 1px solid #e8edf2;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); overflow: hidden; position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.mp-product-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,23,42,.1);
  border-color: #cbd5e1;
}
.mp-product-card__img-wrap { display: block; overflow: hidden; background: #f1f5f9; }
.mp-product-card__img {
  aspect-ratio: 1; object-fit: cover; width: 100%; display: block;
  transition: transform .35s ease;
}
.mp-product-card:hover .mp-product-card__img { transform: scale(1.04); }
.mp-product-card__verified {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(255,255,255,.95); color: #15803d; font-size: .65rem; font-weight: 700;
  padding: .2rem .45rem; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.mp-product-card__stock-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #fef3c7; color: #92400e; font-size: .65rem; font-weight: 700;
  padding: .2rem .45rem; border-radius: 4px;
}
.mp-product-card__body { padding: .85rem 1rem 1rem; }
.mp-product-card__supplier { margin-bottom: .2rem; }
.mp-product-card__name {
  font-weight: 600; font-size: .875rem; line-height: 1.35; color: #1e293b;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em; margin-bottom: .35rem;
}
.mp-product-card__price-row { display: flex; align-items: baseline; gap: .25rem; flex-wrap: wrap; }
.mp-product-card__price { color: var(--mp-supplier); font-weight: 800; font-size: 1.05rem; }
.mp-product-card__unit { color: #94a3b8; font-size: .78rem; }
.mp-product-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: #64748b; margin: .4rem 0 .65rem; gap: .5rem;
}
.mp-product-card__rating i { color: #f59e0b; }
.mp-product-card__wishlist {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; color: #94a3b8;
  transition: all .2s; box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.mp-product-card__wishlist:hover, .mp-product-card__wishlist.saved { color: var(--mp-supplier); border-color: #fecdd3; }
.mp-product-card__actions { display: flex; gap: .4rem; }
.mp-product-card__remove {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  cursor: pointer; font-size: .9rem;
}

/* Category pills refined */
.mp-cat-pill {
  padding: .4rem .9rem; border-radius: 20px; background: #fff;
  border: 1px solid #e2e8f0; white-space: nowrap; font-weight: 600;
  font-size: .8rem; text-decoration: none; color: #475569;
  transition: all .2s;
}
.mp-cat-pill:hover { border-color: var(--mp-supplier); color: var(--mp-supplier); background: #fff5f5; }
.mp-cat-pill.active { background: var(--mp-supplier); color: #fff; border-color: var(--mp-supplier); box-shadow: 0 2px 8px rgba(236,28,43,.2); }

/* Homepage */
.mp-home { background: #fff; }

/* Hero — full white, no wasted space */
.mp-home__hero {
  padding: 1.25rem 0 0;
  background: #fff;
  border-bottom: 1px solid #f0f4f8;
}

/* Trust strip pinned to bottom of hero */
.mp-home__trust {
  background: #f8fafc;
  border-top: 1px solid #e8edf2;
  padding: .6rem 0;
}
.mp-home__trust-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .25rem 0; justify-content: space-around;
}
.mp-home__trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: #475569; padding: .2rem .75rem;
}
.mp-home__trust-item i { color: var(--mp-buyer); font-size: .9rem; }
.mp-home__trust-item strong { color: #1e293b; font-weight: 600; }
.mp-home__trust-sep { width: 1px; height: 22px; background: #dde3ea; flex-shrink: 0; }
@media (max-width: 768px) {
  .mp-home__trust { display: none; } /* hide on mobile — too cramped */
}

/* Service cards — dark strip */
.mp-home__services {
  background: var(--mp-navy);
  padding: 1.25rem 0;
}

/* Category bar — light gray, clearly separated */
.mp-home__catbar {
  background: #f8fafc;
  padding: .85rem 0 1rem;
  border-top: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
}

/* Product section — clean white */
.mp-home__section {
  background: #fff;
  padding: 2.5rem 0;
}

/* Supplier section — slightly off-white */
.mp-home__section--muted {
  background: #f8fafc;
  border-top: 1px solid #e8edf2;
}

.mp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.fz14 { font-size: 14px; }

/* Hero grid */
.mp-hero-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1rem; }
@media (max-width: 992px) { .mp-hero-grid { grid-template-columns: 1fr; } }
.mp-hero-grid__main {
  display: block; border-radius: 16px; overflow: hidden; min-height: 280px;
  background-size: cover; background-position: center; position: relative; text-decoration: none; color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.mp-hero-grid__main::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,.88) 0%, rgba(15,23,42,.35) 100%);
}
.mp-hero-grid__main-content { position: relative; z-index: 1; padding: 2rem 2.25rem; max-width: 520px; }
.mp-hero-grid__main h1 { font-weight: 600; font-size: 1.375rem; line-height: 1.35; margin: .5rem 0; letter-spacing: -.02em; }
.mp-hero-grid__main p { opacity: .9; font-size: .875rem; margin-bottom: 1rem; font-weight: 400; }
.mp-hero-grid__side { display: flex; flex-direction: column; gap: 1rem; }
.mp-hero-grid__side-card {
  flex: 1; border-radius: 12px; overflow: hidden; min-height: 130px;
  background-size: cover; background-position: center; position: relative;
  display: flex; align-items: flex-end; text-decoration: none; color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.mp-hero-grid__side-card::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, transparent 60%);
}
.mp-hero-grid__side-card span { position: relative; z-index: 1; padding: 1rem; font-weight: 600; font-size: .85rem; }

/* Service cards row */
.mp-service-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
@media (max-width: 992px) { .mp-service-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .mp-service-row { grid-template-columns: 1fr; } }
.mp-service-card {
  display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.25rem;
  background: var(--svc-color, var(--mp-navy)); color: #fff; border-radius: 14px;
  text-decoration: none; transition: transform .18s, box-shadow .18s, opacity .18s;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}
.mp-service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.28); opacity: .9; color: #fff; }
.mp-service-card__icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; color: #fff;
}
.mp-service-card strong { display: block; font-size: .875rem; font-weight: 700; margin-bottom: .15rem; color: #fff; }
.mp-service-card span { font-size: .75rem; font-weight: 400; opacity: .88; line-height: 1.4; display: block; color: #fff; }

/* Category quick bar */
.mp-catbar-slider {
  position: relative; display: flex; align-items: center; gap: .5rem;
}
.mp-catbar-arrow {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #dbe4ee; background: #fff; color: #334155;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .78rem; transition: all .18s;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.mp-catbar-arrow:hover { border-color: var(--mp-buyer); color: var(--mp-buyer); box-shadow: 0 2px 8px rgba(7,51,162,.15); }
.mp-catbar-arrow:disabled { opacity: .35; cursor: default; }
.mp-catbar {
  flex: 1; display: flex; gap: .65rem; overflow-x: auto; padding: .25rem .1rem;
  scrollbar-width: none; scroll-behavior: smooth;
}
.mp-catbar::-webkit-scrollbar { display: none; }
.mp-catbar__item {
  flex: 0 0 auto; display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1rem; background: #fff; border: 1px solid #dbe4ee;
  border-radius: 10px; text-decoration: none; color: #334155;
  font-size: .8rem; transition: all .2s; cursor: pointer;
  min-width: 140px; font-weight: 500;
}
button.mp-catbar__item { font-family: inherit; }
.mp-catbar__item:hover { border-color: var(--mp-buyer); color: var(--mp-buyer); box-shadow: 0 4px 12px rgba(7,51,162,.08); }
.mp-catbar__item--all { border-color: #fecdd3; background: #fff5f5; color: var(--mp-supplier); flex-shrink: 0; }
.mp-catbar__icon {
  width: 36px; height: 36px; border-radius: 8px; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--mp-buyer);
  flex-shrink: 0; overflow: hidden;
}
.mp-catbar__icon--fa { background: #fee2e2; color: var(--mp-supplier); }
.mp-catbar__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.mp-catbar__label { line-height: 1.25; white-space: nowrap; }
.mp-catbar__item.is-active { border-color: var(--mp-buyer); color: var(--mp-buyer); background: #f0f4ff; }

/* Catbar subcategory panel */
.mp-catbar-panel {
  background: #fff; border-top: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.mp-catbar-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0; border-bottom: 1px solid #f1f5f9; margin-bottom: .75rem;
}
.mp-catbar-panel__head strong { font-size: .95rem; font-weight: 700; color: #1e293b; }
.mp-catbar-panel__head a { font-size: .8rem; color: var(--mp-buyer); text-decoration: none; font-weight: 500; }
.mp-catbar-panel__head a:hover { text-decoration: underline; }
.mp-catbar-panel__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem 1rem; padding-bottom: .75rem;
}
@media (max-width: 992px) { .mp-catbar-panel__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .mp-catbar-panel__grid { grid-template-columns: repeat(2, 1fr); } }
.mp-catbar-panel__sub {
  font-size: .82rem; color: #475569; text-decoration: none; padding: .35rem .5rem;
  border-radius: 6px; transition: background .15s, color .15s;
  display: flex; align-items: center; gap: .35rem;
}
.mp-catbar-panel__sub:hover { background: #f0f4ff; color: var(--mp-buyer); }
.mp-catbar-panel__count { font-size: .72rem; color: #94a3b8; }
.mp-catbar-panel__sub--all {
  grid-column: 1/-1; font-weight: 600; color: var(--mp-buyer); font-size: .8rem;
}

/* Supplier row */
.mp-supplier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) { .mp-supplier-row { grid-template-columns: 1fr; } }
.mp-supplier-card {
  display: flex; gap: 1rem; align-items: center; background: #fff;
  border: 1px solid #e8edf2; border-radius: 12px; padding: 1rem;
  text-decoration: none; color: inherit; transition: all .2s;
}
.mp-supplier-card:hover { border-color: var(--mp-buyer); box-shadow: 0 4px 16px rgba(7,51,162,.08); }
.mp-supplier-card__img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mp-supplier-card__body strong { display: block; font-size: .9rem; color: #1e293b; margin-bottom: .2rem; }
.mp-supplier-card__body span { font-size: .78rem; color: #64748b; }

/* Homepage CTA */
.mp-home__cta { background: linear-gradient(135deg, var(--mp-navy) 0%, #2c5282 100%); color: #fff; padding: 3rem 0; }
.mp-home__cta-title { font-weight: 600; font-size: 1.25rem; margin-bottom: .5rem; letter-spacing: -.02em; }
.mp-home__cta-sub { opacity: .85; max-width: 560px; margin: 0 auto; }

/* Event/news feed cards */
.mp-feed-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid #e8edf2; border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.mp-feed-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,.08);
  border-color: #cbd5e1; color: inherit;
}
.mp-feed-card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.mp-feed-card__body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.mp-feed-card__tag { font-size: .75rem; font-weight: 500; color: var(--mp-buyer); }
.mp-feed-card__title {
  font-size: .95rem; font-weight: 600; line-height: 1.4; color: #1e293b;
  margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-feed-card__desc {
  font-size: .8rem; font-weight: 400; color: #64748b; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-feed-card__meta { font-size: .75rem; color: #94a3b8; margin-top: auto; padding-top: .35rem; }
.mp-feed-card__meta i { color: var(--mp-supplier); margin-right: .25rem; }
.mp-feed-card__link { font-size: .75rem; font-weight: 600; color: var(--mp-supplier); margin-top: auto; }

/* Mega menu — dropdown style (not modal/overlay) */
.mp-mega {
  position: fixed; inset: 0; z-index: 10050; pointer-events: none; visibility: hidden;
  transition: visibility .2s;
}
.mp-mega.is-open { pointer-events: auto; visibility: visible; }
.mp-mega.is-open .mp-mega__panel { opacity: 1; transform: translateY(0); }
.mp-mega__backdrop {
  display: none; /* backdrop removed — outside-click handled by document handler */
}
.mp-mega__panel {
  position: fixed; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15,23,42,.13), 0 2px 8px rgba(15,23,42,.06);
  border-top: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  max-height: min(480px, calc(100vh - 140px));
  overflow: hidden;
}
.mp-mega__container { padding-top: 0; padding-bottom: 0; }
.mp-mega__inner {
  display: grid; grid-template-columns: 220px 1fr 200px;
  min-height: 320px; max-height: min(480px, calc(100vh - 140px));
}
@media (max-width: 992px) {
  .mp-mega__inner { grid-template-columns: 1fr; max-height: calc(100vh - 120px); overflow-y: auto; }
  .mp-mega__col--visual { display: none; }
  .mp-mega__col--main { border-right: none; border-bottom: 1px solid #eef2f6; max-height: 200px; }
}
.mp-mega__col { overflow-y: auto; }
.mp-mega__col--main { border-right: 1px solid #eef2f6; background: #fafbfc; }
.mp-mega__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1rem; border-bottom: 1px solid #eef2f6;
  font-size: .8rem; font-weight: 600; color: #334155;
}
.mp-mega__head-right { display: flex; align-items: center; gap: .75rem; }
.mp-mega__head a { font-size: .78rem; font-weight: 500; color: var(--mp-buyer); text-decoration: none; }
.mp-mega__close {
  background: none; border: none; cursor: pointer; padding: .25rem .4rem;
  color: #94a3b8; font-size: .9rem; line-height: 1; border-radius: 4px;
  transition: background .15s, color .15s;
}
.mp-mega__close:hover { background: #f1f5f9; color: #334155; }
.mp-mega__list { list-style: none; margin: 0; padding: .35rem 0; }
.mp-mega__cat {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .55rem 1rem; border: none; background: none; text-align: left;
  font-weight: 500; font-size: .82rem; color: #475569; cursor: pointer;
  transition: background .15s, color .15s; font-family: var(--mp-font);
}
.mp-mega__cat-img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.mp-mega__cat i.fa:first-child { width: 18px; text-align: center; color: var(--mp-buyer); font-size: .85rem; }
.mp-mega__arrow { margin-left: auto; font-size: .6rem; color: #cbd5e1; }
.mp-mega__cat:hover, .mp-mega__cat.active { background: #fff; color: var(--mp-buyer); }
.mp-mega__cat.active { font-weight: 600; border-left: 3px solid var(--mp-supplier); padding-left: calc(1rem - 3px); }
.mp-mega__cat.active i.fa:first-child { color: var(--mp-supplier); }
.mp-mega__subs { display: none; padding: 1rem 1.25rem; }
.mp-mega__subs.active { display: block; }
.mp-mega__subs h4 { font-weight: 600; font-size: .95rem; margin-bottom: .85rem; color: #1e293b; }
.mp-mega__subs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem 1.25rem; }
@media (max-width: 768px) { .mp-mega__subs-grid { grid-template-columns: repeat(2, 1fr); } }
.mp-mega__sub-link {
  font-size: .82rem; font-weight: 400; color: #475569; text-decoration: none; padding: .2rem 0;
}
.mp-mega__sub-link:hover { color: var(--mp-buyer); }
.mp-mega__sub-link--all { grid-column: 1 / -1; font-weight: 600; color: var(--mp-buyer); margin-top: .35rem; font-size: .8rem; }
.mp-mega__visual { display: none; position: relative; background: #f1f5f9; }
.mp-mega__visual.active { display: block; }
.mp-mega__visual-img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.mp-mega__visual-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: .85rem 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
  color: #fff; font-weight: 600; font-size: .85rem;
}
/* mega menu no longer locks body scroll — it's a dropdown, not modal */

/* Topnav */
.mp-topnav__inner { display: flex; align-items: center; height: 44px; gap: 0; }

/* Kategori — filled pill in brand blue */
.mp-topnav__kategori-btn {
  background: var(--mp-buyer); color: #fff !important; border: none; cursor: pointer;
  font-family: var(--mp-font); font-size: .82rem; font-weight: 600 !important;
  padding: .42rem 1rem !important; border-radius: 8px;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .15s; margin-right: .75rem;
}
.mp-topnav__kategori-btn:hover { background: #0a3fcf; color: #fff !important; }
.mp-topnav__kategori-btn.is-active { background: #0a3fcf; color: #fff !important; }

/* Thin divider after Kategori */
.mp-topnav__sep {
  width: 1px; height: 18px; background: #dde3ea; margin: 0 .5rem; flex-shrink: 0;
}

/* Shared nav link base */
.mp-topnav__inner .nav-link:not(.mp-topnav__kategori-btn) {
  font-family: var(--mp-font); font-size: .845rem; font-weight: 500;
  color: #374151 !important; padding: .45rem .75rem !important;
  border-radius: 6px; transition: background .15s, color .15s;
}
.mp-topnav__inner .nav-link:not(.mp-topnav__kategori-btn):hover { color: var(--mp-buyer) !important; background: #f0f4ff; }

/* Marketplace — primary accent */
.mp-topnav__marketplace {
  color: var(--mp-buyer) !important; font-weight: 700 !important;
}
.mp-topnav__marketplace:hover { color: var(--mp-buyer) !important; background: #f0f4ff !important; }

/* RFQ — same weight as Marketplace */
.mp-topnav__rfq {
  color: #374151 !important; font-weight: 600 !important;
}
.mp-topnav__rfq:hover { color: var(--mp-buyer) !important; }

/* Platform / Info — medium gray, same size */
.mp-nav-dropdown__toggle {
  background: none; border: none; cursor: pointer; font-family: var(--mp-font);
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .845rem; font-weight: 500 !important; color: #6b7280 !important;
  padding: .45rem .75rem !important; border-radius: 6px;
  transition: background .15s, color .15s;
}

/* Nav dropdowns */
.mp-nav-dropdown { position: relative; display: inline-block; }
.mp-nav-dropdown__toggle i { font-size: .6rem; transition: transform .2s; }
.mp-nav-dropdown.is-open .mp-nav-dropdown__toggle i { transform: rotate(180deg); }
.mp-nav-dropdown__menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: #fff; border: 1px solid #e8edf2; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.1); padding: .4rem 0; z-index: 1000;
}
.mp-nav-dropdown.is-open .mp-nav-dropdown__menu { display: block; }
.mp-nav-dropdown__menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1.1rem; font-size: .84rem; font-weight: 500;
  color: #475569; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.mp-nav-dropdown__menu a:hover { background: #f0f4ff; color: var(--mp-buyer); }
.mp-dd-icon { width: 1rem; text-align: center; color: var(--mp-buyer); opacity: .7; font-size: .85rem; flex-shrink: 0; }
.mp-nav-dropdown__menu a:hover .mp-dd-icon { opacity: 1; }

/* Legacy homepage sections */
.mp-home-legacy { font-family: var(--mp-font); }

/* Section wrappers */
.ib-section { padding: 3rem 0; }
.ib-section--white { background: #fff; }
.ib-section--light { background: #f8fafc; }
.ib-section--dark { background: #1e293b; color: #fff; }

.ib-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #93c5fd; margin-bottom: .5rem;
}

/* Membership */
.ib-membership { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .ib-membership { grid-template-columns: 1fr; gap: 1.5rem; } }
.ib-membership__title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: .75rem; line-height: 1.3; }
.ib-membership__desc { color: #cbd5e1; font-size: .93rem; line-height: 1.6; margin-bottom: 1.25rem; }

/* Benefit slider */
.ib-benefit-slider { position: relative; }
.ib-benefit-slider__track {
  display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.ib-benefit-slider__track::-webkit-scrollbar { display: none; }
.ib-benefit-slider__nav {
  display: flex; gap: .5rem; justify-content: flex-end; margin-top: .75rem;
}
.ib-slider-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; font-size: .75rem; transition: background .2s;
}
.ib-slider-btn:hover { background: rgba(255,255,255,.25); }

.ib-benefit-card {
  flex: 0 0 calc(50% - .375rem); scroll-snap-align: start;
  display: block; border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  text-decoration: none; transition: transform .2s, background .2s;
}
.ib-benefit-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.ib-benefit-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ib-benefit-card__label {
  padding: .5rem .75rem; font-size: .78rem; font-weight: 600;
  color: #e2e8f0; text-align: center;
}

/* Business Matching — compact strip */
.ib-bm-strip { background: #eff6ff; border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; padding: 1.25rem 0; }
.ib-bm-strip__inner {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.ib-bm-strip__icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--mp-buyer);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.ib-bm-strip__body { flex: 1; min-width: 200px; }
.ib-bm-strip__body strong { display: block; font-size: .95rem; font-weight: 700; color: #1e293b; margin-bottom: .15rem; }
.ib-bm-strip__body span { font-size: .82rem; color: #64748b; }
@media (max-width: 576px) { .ib-bm-strip__inner { flex-direction: column; align-items: flex-start; text-align: left; } }

/* RFQ Layout */
.ib-rfq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
@media (max-width: 768px) { .ib-rfq-layout { grid-template-columns: 1fr; gap: 2rem; } }

.ib-flow-tabs { display: flex; gap: 0; background: #f1f5f9; border-radius: 8px; padding: 3px; width: fit-content; }
.ib-flow-tab {
  padding: .45rem 1.25rem; border-radius: 6px; font-size: .85rem; font-weight: 600;
  color: #64748b; cursor: pointer; transition: all .18s; user-select: none;
}
.btn-check:checked + .ib-flow-tab {
  background: #fff; color: var(--mp-buyer);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.ib-steps { display: flex; flex-direction: column; gap: .85rem; }
.ib-step {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: .85rem 1rem; border-radius: 10px;
  background: #f8fafc; border: 1px solid #e8edf2;
}
.ib-step__num {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--mp-buyer); color: #fff;
  font-size: .75rem; font-weight: 700;
}
.ib-step__num--sup { background: var(--mp-supplier); }
.ib-step strong { display: block; font-size: .875rem; font-weight: 600; color: #1e293b; margin-bottom: .15rem; }
.ib-step p { font-size: .8rem; color: #64748b; margin: 0; line-height: 1.5; }
.ib-step small.ib-step__sub { display: block; font-size: .75rem; color: #94a3b8; margin-bottom: .15rem; }

/* RFQ quick step visual */
.ib-rfq-quick-steps {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.ib-rfq-qstep {
  display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 500; color: #475569;
}
.ib-rfq-qstep__num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--mp-buyer);
  color: #fff; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ib-rfq-qstep__arrow { color: #94a3b8; font-size: .7rem; }

/* RFQ accordion */
.ib-rfq-accordion { border: 1px solid #e8edf2; border-radius: 10px; overflow: hidden; }
.ib-rfq-accordion__toggle {
  width: 100%; background: #f8fafc; border: none; padding: .7rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; font-weight: 600; color: #475569; cursor: pointer;
  text-align: left;
}
.ib-rfq-accordion__toggle i { transition: transform .2s; }
.ib-rfq-accordion__toggle.is-open i { transform: rotate(180deg); }
.ib-rfq-accordion__toggle:hover { background: #f1f5f9; }
.ib-rfq-accordion__body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 1rem;
}
.ib-rfq-accordion__body.is-open { max-height: 600px; padding: 1rem; }

.ib-rfq-list {}

/* RFQ card from API (appended via JS) */
.ib-rfq-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid #e8edf2; background: #fff;
  margin-bottom: .6rem;
}
.ib-rfq-item__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--mp-buyer); }
.ib-rfq-item__name { font-size: .875rem; font-weight: 600; color: #1e293b; }
.ib-rfq-item__meta { font-size: .75rem; color: #94a3b8; }
.ib-rfq-item__badge { font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 20px; background: #eff6ff; color: var(--mp-buyer); }

/* CTA */
.ib-cta {
  background: linear-gradient(135deg, #1e293b 0%, #1e40af 100%);
  padding: 4rem 0; color: #fff;
}
.ib-cta__title { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; letter-spacing: -.01em; }
.ib-cta__sub { color: #cbd5e1; font-size: .95rem; max-width: 480px; margin: 0 auto; }
.ib-cta__outline-btn { color: #fff !important; background: transparent !important; border-color: rgba(255,255,255,.5) !important; }
.ib-cta__outline-btn:hover { background: rgba(255,255,255,.12) !important; border-color: #fff !important; }

/* Legacy hero (other pages) */
.mp-home-hero { background: linear-gradient(135deg, var(--mp-navy) 0%, #2c5282 100%); color: #fff; padding: 2rem 0; margin-bottom: 0; }
.mp-trust-badges { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .85rem; opacity: .9; }
.mp-trust-badges span { display: flex; align-items: center; gap: .35rem; }

/* ============================================================
   HOVER FIX — override global a:hover { color: #cb1818 }
   from template/css/style.css so marketplace elements
   don't bleed red on hover.
   ============================================================ */

/* Top-nav links */
.mp-topnav a.nav-link:hover,
.mp-topnav a.nav-link:focus { text-decoration: none; }
.mp-topnav a.mp-topnav__marketplace:hover { color: var(--mp-buyer) !important; text-decoration: none; }
.mp-topnav a.mp-topnav__rfq:hover { text-decoration: none; }
.mp-nav-dropdown__toggle:hover { color: var(--mp-buyer) !important; background: #f0f4ff; }

/* Nav dropdown toggle (button, not a, but set link children) */
.mp-nav-dropdown__menu a { color: #475569; text-decoration: none; }
.mp-nav-dropdown__menu a:hover { color: var(--mp-buyer) !important; background: #f8fafc; text-decoration: none; }

/* Topnav "Lihat semua" / arrow links */
a.mp-link-arrow:hover { color: var(--mp-supplier); text-decoration: none; }

/* Feed cards — event & news */
a.mp-feed-card:hover { color: #1e293b; text-decoration: none; }
a.mp-feed-card:hover .mp-feed-card__title { color: #1e293b; }
a.mp-feed-card:hover .mp-feed-card__tag  { color: var(--mp-buyer); }
a.mp-feed-card:hover .mp-feed-card__desc { color: #64748b; }
a.mp-feed-card:hover .mp-feed-card__meta { color: #94a3b8; }
a.mp-feed-card:hover .mp-feed-card__link { color: var(--mp-supplier); }

/* Product cards */
a.mp-product-card:hover,
a.mp-product-card:hover .mp-product-card__name { color: #1e293b; text-decoration: none; }
a.mp-product-card__img-wrap:hover { text-decoration: none; }

/* Supplier cards */
a.mp-supplier-card:hover { color: #1e293b; text-decoration: none; }
a.mp-supplier-card:hover strong { color: #1e293b; }
a.mp-supplier-card:hover span  { color: #64748b; }

/* Membership benefit cards (dark section) */
a.ib-benefit-card:hover { color: #e2e8f0; text-decoration: none; }
a.ib-benefit-card:hover .ib-benefit-card__label { color: #e2e8f0; }

/* RFQ list items */
a.ib-rfq-item:hover { color: #1e293b; text-decoration: none; }
a.ib-rfq-item:hover .ib-rfq-item__name { color: #1e293b; }
a.ib-rfq-item:hover .ib-rfq-item__meta { color: #94a3b8; }

/* Service cards */
a.mp-service-card:hover { color: #fff !important; text-decoration: none; }

/* Category bar items */
a.mp-catbar__item:hover { color: var(--mp-buyer); text-decoration: none; }

/* Hero grid cards */
a.mp-hero-grid__main:hover { text-decoration: none; color: #fff; }
a.mp-hero-grid__side-card:hover { text-decoration: none; color: #fff; }

/* Cat tiles */
a.mp-cat-tile:hover { text-decoration: none; color: var(--mp-buyer); }

/* Section / CTA catch-all — reset red, let children decide */
.ib-section a:hover,
.ib-cta a:hover,
.ib-bm-banner a:hover { text-decoration: none; }

/* ============================================================
   DROPDOWN OVERFLOW FIX — prevent clipping
   The .site wrapper has overflow:hidden which can clip dropdowns.
   We restore visibility on the header and its nav children.
   ============================================================ */
.site__header { overflow: visible !important; }
.site__header .block.navigation { overflow: visible !important; }
.mp-topnav { overflow: visible !important; }
.mp-topnav__inner { overflow: visible !important; }
.mp-nav-dropdown { position: relative; overflow: visible; }

/* Dropdown panel z-index bump (well above page content) */
.mp-nav-dropdown__menu { z-index: 1200; }

/* ============================================================
   NAV ACTIVE / HOVER COLOURS
   ============================================================ */
/* Active page marker — use buyer-blue, not red */
.mp-topnav a.nav-link.activepage { color: var(--mp-buyer) !important; font-weight: 600; }
button.mp-topnav__kategori-btn.activepage { color: #fff !important; }

/* Ensure "Jadi Supplier" CTA stays clean on hover */
a.mp-topnav__cta { transition: background .2s, color .2s; }

/* ============================================================
   LEGACY WRAPPER & SECTION TRANSITIONS
   ============================================================ */
.mp-home-legacy { font-family: var(--mp-font); -webkit-font-smoothing: antialiased; }
.mp-home-legacy > section:first-of-type { border-top: none; }

/* Clean up ib-section borders */
.ib-section { border-top: none; }
.ib-section--white { border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }

/* ============================================================
   HOMEPAGE POLISH
   ============================================================ */

/* Hero min-height */
.mp-hero-grid__main { min-height: 320px; }

/* Topnav separator */
.mp-topnav { border-bottom: 1px solid #eef2f6; }

/* Product / supplier card links */
.mp-product-card a.text-dark:hover,
.mp-product-card a.text-dark:hover .mp-product-card__name { color: #1e293b !important; text-decoration: none; }
.mp-product-card a:hover { text-decoration: none; }
.mp-supplier-card__img { width: 72px; height: 72px; }

/* Feed card image zoom */
.mp-feed-card__img { overflow: hidden; }
.mp-feed-card__img img { transition: transform .35s ease; }
.mp-feed-card:hover .mp-feed-card__img img { transform: scale(1.03); }

/* RFQ step rings */
.ib-step__num { box-shadow: 0 0 0 3px rgba(7,51,162,.12); }
.ib-step__num--sup { box-shadow: 0 0 0 3px rgba(236,28,43,.12); }

/* Section head spacing */
.mp-section-head { margin-bottom: 1.5rem; }

/* Consistent CTA button min-width */
.ib-section .mp-btn { min-width: 160px; }

/* RFQ list links */
.ib-rfq-list a { text-decoration: none; }
.ib-rfq-list a:hover { text-decoration: none; }

/* ============================================================
   SKELETON LOADING STATES
   ============================================================ */
.mp-skeleton {
  background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
  background-size: 400% 100%;
  animation: mp-skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 10px;
}
@keyframes mp-skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.mp-skeleton--card { height: 280px; }
.mp-skeleton--row {
  height: 72px;
  border-radius: 10px;
  border: 1px solid #e8edf2;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ib-footer { font-family: var(--mp-font); }
.ib-footer__main {
  background: #0f172a; color: #cbd5e1;
  padding: 3rem 0 2rem;
}
.ib-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
@media (max-width: 992px) { .ib-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 576px) { .ib-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.ib-footer__logo { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; display: block; }
.ib-footer__tagline { font-size: .84rem; color: #94a3b8; line-height: 1.6; margin-bottom: 1rem; max-width: 320px; }

.ib-footer__contact { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.ib-footer__contact a {
  font-size: .82rem; color: #94a3b8; text-decoration: none;
  display: flex; align-items: center; gap: .5rem; transition: color .15s;
}
.ib-footer__contact a:hover { color: #e2e8f0; }
.ib-footer__contact a i { color: var(--mp-buyer); width: 14px; }

.ib-footer__social { display: flex; gap: .6rem; }
.ib-footer__social a {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: .85rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.ib-footer__social a:hover { background: var(--mp-buyer); color: #fff; }

.ib-footer__col-title {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: #e2e8f0; margin-bottom: .85rem;
}
.ib-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ib-footer__col ul li { margin-bottom: .5rem; }
.ib-footer__col ul a {
  font-size: .83rem; color: #94a3b8; text-decoration: none; transition: color .15s;
}
.ib-footer__col ul a:hover { color: #e2e8f0; }

.ib-footer__bottom {
  background: #0a0f1e; padding: 1rem 0;
  font-size: .78rem; color: #475569;
}
.ib-footer__bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .mp-hero-grid { grid-template-columns: 1fr; }
  .mp-hero-grid__main { min-height: 180px; }
  .mp-hero-grid__side { flex-direction: row; }
  .mp-hero-grid__side-card { min-height: 100px; }
  .mp-service-row { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .ib-section { padding: 2rem 0; }
  .ib-membership { grid-template-columns: 1fr; gap: 1.5rem; }
  .ib-rfq-layout { grid-template-columns: 1fr; }
}
