/* ============================================================
   KPHRI — Blibli-Style Marketplace Stylesheet
   assets/css/marketplace.css
   ============================================================ */

/* ── Reset Body Padding ───────────────────────────────────── */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ── Top Bar Header ───────────────────────────────────────── */
.top-bar {
  background: #4A0E72;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.top-bar-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}
.top-bar-link:hover {
  color: #FFCA28;
}
.top-bar-badge {
  background: rgba(255, 202, 40, 0.2);
  color: #FFCA28;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.6875rem;
  border: 1px solid rgba(255, 202, 40, 0.3);
}

/* ── Main Sticky Header ────────────────────────────────────── */
.mp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #E8E6ED;
}
.mp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 12px 0;
}

.mp-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.mp-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6A1B9A 0%, #FF6F20 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(106, 27, 154, 0.25);
  transition: transform 0.25s ease;
}
.mp-logo:hover .mp-logo-icon {
  transform: scale(1.05) rotate(-3deg);
}
.mp-logo-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #4A0E72;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mp-logo-title span {
  color: #FF6F20;
}
.mp-logo-subtitle {
  font-size: 0.65rem;
  color: #5A5472;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Category Mega Dropdown Trigger */
.category-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #FAF4FD;
  color: #6A1B9A;
  border: 1px solid #E1BEF0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.category-dropdown-btn:hover {
  background: #F3E5F5;
  color: #4A0E72;
  border-color: #BE84CF;
}

/* Category Popup Menu */
.category-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(26, 20, 40, 0.18);
  border: 1px solid #E8E6ED;
  padding: 0.75rem;
  display: none;
  z-index: 1010;
  animation: popoverFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-popover.active {
  display: block;
}
@keyframes popoverFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-popover-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 10px;
  color: #1A1428;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.category-popover-item:hover {
  background: #FFF3EC;
  color: #FF6F20;
  transform: translateX(4px);
}
.category-popover-icon {
  font-size: 20px;
  color: #6A1B9A;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #FAF4FD;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Bar (Blibli Style) */
.mp-search-container {
  flex: 1;
  max-width: 620px;
  position: relative;
}
.mp-search-form {
  display: flex;
  align-items: center;
  background: #F8F7FA;
  border: 2px solid #E8E6ED;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.mp-search-form:focus-within {
  border-color: #FF6F20;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 111, 32, 0.15);
}
.mp-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.6875rem 1rem;
  font-size: 0.875rem;
  color: #1A1428;
  font-family: inherit;
}
.mp-search-input::placeholder {
  color: #9E96B5;
}
.mp-search-btn {
  background: linear-gradient(135deg, #FF6F20 0%, #D95A10 100%);
  color: #FFFFFF;
  border: none;
  padding: 0.6875rem 1.25rem;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.mp-search-btn:hover {
  background: #D95A10;
}

/* Header Right Actions */
.mp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Action Icon Button */
.mp-action-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #E8E6ED;
  background: #FFFFFF;
  color: #4A0E72;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.mp-action-btn:hover {
  background: #FAF4FD;
  border-color: #BE84CF;
  color: #FF6F20;
  transform: translateY(-2px);
}
.mp-action-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #FF6F20;
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  border: 2px solid #FFFFFF;
  line-height: 1;
}

/* Auth Buttons */
.btn-login-outline {
  padding: 0.5625rem 1.125rem;
  border-radius: 12px;
  border: 1.5px solid #6A1B9A;
  background: transparent;
  color: #6A1B9A;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-login-outline:hover {
  background: #FAF4FD;
  color: #4A0E72;
  border-color: #4A0E72;
  transform: translateY(-2px);
}

.btn-register-solid {
  padding: 0.5625rem 1.25rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FF6F20 0%, #E65100 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(255, 111, 32, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-register-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 32, 0.45);
}

/* Sub Header Ribbons / Hot Terms */
.sub-ribbon {
  background: #FAF4FD;
  border-bottom: 1px solid #E1BEF0;
  padding: 6px 0;
  font-size: 0.8125rem;
}
.sub-ribbon-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.sub-ribbon-list::-webkit-scrollbar { display: none; }
.sub-ribbon-tag {
  color: #5A5472;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.15s ease;
}
.sub-ribbon-tag:hover {
  color: #FF6F20;
}
.sub-ribbon-tag.highlight {
  color: #6A1B9A;
  font-weight: 700;
}

/* ── Hero Carousel Banner Section ──────────────────────────── */
.hero-marketplace {
  padding: 1.5rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Main Slider */
.hero-slider-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  background: #6A1B9A;
  color: #FFFFFF;
  box-shadow: 0 8px 30px rgba(74, 14, 114, 0.25);
  padding: 0;
}
.hero-slider-slide {
  display: none;
  position: absolute;
  inset: 0;
  padding: 2.5rem 3rem;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease forwards;
  background: #6A1B9A;
}
.hero-slider-slide.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 202, 40, 0.2);
  border: 1px solid #FFCA28;
  color: #FFCA28;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.hero-slide-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.hero-slide-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 540px;
  line-height: 1.5;
}
.hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.75rem;
  background: #FFCA28;
  color: #1A1428;
  font-weight: 900;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9375rem;
  box-shadow: 0 4px 16px rgba(255, 202, 40, 0.35);
  transition: all 0.2s ease;
}
.hero-slide-cta:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 3rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  width: 28px;
  background: #FFCA28;
}

/* Side Highlights Cards */
.hero-side-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.side-card {
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  flex: 1;
}
.side-card-1 {
  background: linear-gradient(135deg, #FF6F20 0%, #E65100 100%);
}
.side-card-2 {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
}
.side-card-icon {
  font-size: 32px;
  margin-bottom: 0.75rem;
  color: #FFCA28;
}
.side-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.375rem;
  line-height: 1.25;
}
.side-card-subtitle {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}
.side-card-link {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.8125rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.side-card-link:hover { text-decoration: underline; }

/* ── Category Quick Tiles Bar ──────────────────────────────── */
.quick-categories {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}
.quick-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  background: #FFFFFF;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(26, 20, 40, 0.05);
  border: 1px solid #E8E6ED;
}
.quick-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 0.625rem;
  padding: 0.5rem;
  border-radius: 14px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.quick-cat-item:hover {
  transform: translateY(-4px);
}
.quick-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #FAF4FD;
  color: #6A1B9A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(106, 27, 154, 0.08);
}
.quick-cat-item:hover .quick-cat-icon {
  background: #FF6F20;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(255, 111, 32, 0.3);
}
.quick-cat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1A1428;
  line-height: 1.25;
}

/* ── Flash Sale Section (Blibli Red/Gradient Box) ──────────── */
.flash-sale-box {
  background: #6A1B9A;
  border-radius: 24px;
  padding: 1.75rem;
  margin-bottom: 3rem;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
  position: relative;
  overflow: hidden;
}
.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.flash-sale-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.flash-sale-badge {
  background: #FFCA28;
  color: #1A1428;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(255, 202, 40, 0.4);
}
.countdown-box {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 12px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.countdown-unit {
  background: #FFFFFF;
  color: #1A1428;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.countdown-colon {
  color: #FFFFFF;
  font-weight: 900;
}

/* Flash Products Carousel Grid */
.flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.flash-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1rem;
  color: #1A1428;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.flash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.flash-card-disc {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #EF4444;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 8px;
  z-index: 2;
}
.flash-card-img-wrap {
  height: 140px;
  background: #F8F7FA;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #6A1B9A;
  margin-bottom: 0.75rem;
}
.flash-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1A1428;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}
.flash-card-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: #FF6F20;
}
.flash-card-orig {
  font-size: 0.75rem;
  color: #9E96B5;
  text-decoration: line-through;
  margin-bottom: 0.625rem;
}
.flash-stock-bar {
  height: 8px;
  background: #EEEDF2;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
}
.flash-stock-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6F20, #EF4444);
  border-radius: 99px;
}
.flash-stock-text {
  font-size: 0.6875rem;
  color: #5A5472;
  font-weight: 700;
}

/* ── Section Title & Filter Tabs ────────────────────────────── */
.section-header-mp {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.mp-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1A1428;
  letter-spacing: -0.01em;
}
.mp-title span {
  color: #FF6F20;
}
.mp-tabs {
  display: flex;
  gap: 0.5rem;
  background: #EEEDF2;
  padding: 4px;
  border-radius: 12px;
  overflow-x: auto;
}
.mp-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #5A5472;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.mp-tab-btn.active {
  background: #FFFFFF;
  color: #6A1B9A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── Product Card Component (Blibli Style) ─────────────────── */
.product-grid-mp {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.mp-product-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E8E6ED;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(26, 20, 40, 0.04);
}
.mp-product-card:hover {
  border-color: #BE84CF;
  box-shadow: 0 10px 30px rgba(106, 27, 154, 0.12);
  transform: translateY(-4px);
}

.mp-product-img-container {
  height: 180px;
  background: #F8F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #6A1B9A;
  position: relative;
  overflow: hidden;
}
.mp-product-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.03) 100%);
}

.mp-vendor-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #4A0E72;
  border: 1px solid rgba(106, 27, 154, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.mp-disc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF6F20;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 8px;
  z-index: 2;
}

.mp-product-body {
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mp-product-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9E96B5;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

.mp-product-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1A1428;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.mp-product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #5A5472;
  margin-bottom: 0.75rem;
}
.mp-star {
  color: #F9A825;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
}

.mp-product-price-box {
  margin-top: auto;
  margin-bottom: 0.875rem;
}
.mp-price-main {
  font-size: 1.125rem;
  font-weight: 900;
  color: #FF6F20;
}
.mp-price-unit {
  font-size: 0.75rem;
  color: #5A5472;
  font-weight: 500;
}
.mp-price-orig {
  font-size: 0.75rem;
  color: #9E96B5;
  text-decoration: line-through;
  margin-left: 0.375rem;
}

.mp-product-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-quick-detail {
  flex: 1;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid #E8E6ED;
  background: #F8F7FA;
  color: #4A0E72;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-quick-detail:hover {
  background: #FAF4FD;
  border-color: #BE84CF;
}

.btn-add-cart {
  width: 40px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: #6A1B9A;
  color: #FFFFFF;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-add-cart:hover {
  background: #FF6F20;
  transform: scale(1.05);
}

/* ── Why KPHRI Section ─────────────────────────────────────── */
.why-kphri-section {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #E8E6ED;
  margin-bottom: 3rem;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #FFF3EC;
  color: #FF6F20;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #1A1428;
  margin-bottom: 0.25rem;
}
.why-text p {
  font-size: 0.8125rem;
  color: #5A5472;
  line-height: 1.45;
}

/* Dual Banner CTA */
.cta-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .cta-dual-grid { grid-template-columns: 1fr; }
}

.cta-box-card {
  border-radius: 20px;
  padding: 2.25rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.cta-box-member {
  background: #4A0E72;
}
.cta-box-vendor {
  background: #FF6F20;
}
.cta-box-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.cta-box-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
  max-width: 400px;
  line-height: 1.5;
}

/* ── Modals Style ──────────────────────────────────────────── */
.modal-overlay-mp {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 40, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.modal-overlay-mp.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-mp {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.modal-overlay-mp.active .modal-content-mp {
  transform: translateY(0) scale(1);
}

.modal-header-mp {
  padding: 1.5rem 2rem;
  background: #4A0E72;
  color: #FFFFFF;
  position: relative;
}
.modal-title-mp {
  font-size: 1.25rem;
  font-weight: 800;
}
.modal-subtitle-mp {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}
.modal-close-mp {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-close-mp:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body-mp {
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* Modal Role Switcher */
.role-tabs-mp {
  display: flex;
  gap: 0.5rem;
  background: #EEEDF2;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}
.role-tab-btn-mp {
  flex: 1;
  padding: 0.625rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #5A5472;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}
.role-tab-btn-mp.active {
  background: #FFFFFF;
  color: #6A1B9A;
  box-shadow: 0 4px 12px rgba(106, 27, 154, 0.12);
}

/* Quick Fill Demo Credentials Box */
.demo-quick-box {
  background: #FAF4FD;
  border: 1px solid #E1BEF0;
  border-radius: 14px;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.demo-quick-info {
  font-size: 0.8125rem;
  color: #4A0E72;
  font-weight: 600;
}
.btn-fill-demo {
  background: #6A1B9A;
  color: #FFFFFF;
  border: none;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-fill-demo:hover { background: #FF6F20; }

/* Form Field Styling */
.mp-form-group {
  margin-bottom: 1.25rem;
}
.mp-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1A1428;
  margin-bottom: 0.375rem;
}
.mp-form-input {
  width: 100%;
  padding: 0.6875rem 1rem;
  border-radius: 12px;
  border: 1.5px solid #E8E6ED;
  background: #F8F7FA;
  font-size: 0.875rem;
  color: #1A1428;
  font-family: inherit;
  transition: all 0.2s ease;
}
.mp-form-input:focus {
  outline: none;
  border-color: #6A1B9A;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.12);
}

/* ── Footer ────────────────────────────────────────────────── */
.mp-footer {
  background: #1A1428;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
  border-top: 4px solid #FF6F20;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: #FFCA28;
}

.payment-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.pay-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   KPHRI Marketplace Mobile & Tablet Responsive Design
   ============================================================ */

/* ─── Mobile Bottom Navigation (Visible on Mobile <= 768px) ── */
.mp-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: #FFFFFF;
  border-top: 1px solid #E8E6ED;
  box-shadow: 0 -4px 16px rgba(26,20,40,0.08);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}
.mp-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #5A5472;
  font-size: 0.6875rem;
  font-weight: 700;
  text-decoration: none;
  flex: 1;
  height: 100%;
  transition: color 0.15s ease;
  cursor: pointer;
}
.mp-mobile-nav-item i {
  font-size: 22px;
}
.mp-mobile-nav-item.active,
.mp-mobile-nav-item:hover {
  color: #FF6F20;
}

/* ─── Tablet Breakpoints (768px - 1024px) ────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-side-cards {
    flex-direction: row;
  }
  .product-grid-mp {
    grid-template-columns: repeat(3, 1fr);
  }
  .flash-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Mobile & Small Tablets Breakpoints (<= 768px) ──────── */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* Space for fixed bottom nav */
  }

  .mp-mobile-nav {
    display: flex;
  }

  /* Header Reorganization for Mobile Smartphones */
  .top-bar-left .top-bar-link, 
  .top-bar-left span {
    display: none;
  }
  .top-bar-left .top-bar-badge {
    display: inline-flex;
  }

  .mp-header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 8px 0;
  }

  .mp-logo-title {
    font-size: 1.1rem;
  }
  .mp-logo-subtitle {
    display: none;
  }

  .category-dropdown-btn span {
    display: none;
  }
  .category-dropdown-btn {
    padding: 0.5rem 0.75rem;
  }

  .mp-search-container {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  .mp-search-input {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
  .mp-search-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .mp-header-actions .btn-login-outline,
  .mp-header-actions .btn-register-solid {
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
  }

  /* Hero Section Mobile */
  .hero-slider-card {
    padding: 1.75rem 1.25rem;
    min-height: 250px;
    border-radius: 16px;
  }
  .hero-slide-title {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
  }
  .hero-slide-desc {
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slide-cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  .hero-side-cards {
    flex-direction: column;
    gap: 0.75rem;
  }
  .side-card {
    padding: 1rem 1.25rem;
  }

  /* Quick Category Circles Horizontal Swiper on Mobile */
  .quick-categories {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }
  .quick-cat-grid {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 1rem;
    gap: 0.875rem;
    border-radius: 16px;
  }
  .quick-cat-grid::-webkit-scrollbar { display: none; }
  .quick-cat-item {
    flex: 0 0 76px;
    padding: 0;
  }
  .quick-cat-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 14px;
  }
  .quick-cat-label {
    font-size: 0.6875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  /* Flash Sale Section Mobile */
  .flash-sale-box {
    padding: 1.25rem 1rem;
    border-radius: 18px;
    margin-bottom: 2rem;
  }
  .flash-sale-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .flash-sale-title-group {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .flash-sale-badge {
    font-size: 0.8125rem;
    padding: 4px 10px;
  }
  .countdown-box {
    padding: 3px 8px;
    font-size: 0.75rem;
  }

  .flash-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .flash-card {
    padding: 0.75rem;
    border-radius: 14px;
  }
  .flash-card-img-wrap {
    height: 110px;
    font-size: 36px;
  }
  .flash-card-title {
    font-size: 0.8125rem;
    height: 2.5em;
  }
  .flash-card-price {
    font-size: 0.9375rem;
  }

  /* Main Product Grid Mobile (2 Columns) */
  .section-header-mp {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .mp-title {
    font-size: 1.25rem;
  }
  .mp-tabs {
    width: 100%;
    padding: 3px;
  }
  .mp-tab-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .product-grid-mp {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .mp-product-card {
    border-radius: 14px;
  }
  .mp-product-img-container {
    height: 125px;
    font-size: 42px;
  }
  .mp-vendor-badge {
    font-size: 0.625rem;
    padding: 2px 6px;
    max-width: 85%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .mp-product-body {
    padding: 0.75rem;
  }
  .mp-product-name {
    font-size: 0.8125rem;
    height: 2.5em;
    margin-bottom: 0.375rem;
  }
  .mp-product-meta {
    font-size: 0.6875rem;
    margin-bottom: 0.5rem;
  }
  .mp-price-main {
    font-size: 0.9375rem;
  }
  .mp-price-orig {
    display: block;
    margin-left: 0;
    font-size: 0.6875rem;
  }
  .mp-product-actions {
    gap: 0.375rem;
  }
  .btn-quick-detail {
    padding: 0.375rem;
    font-size: 0.75rem;
  }
  .btn-add-cart {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  /* Why KPHRI & CTA Section Mobile */
  .why-kphri-section {
    padding: 1.75rem 1rem;
    border-radius: 18px;
    margin-bottom: 2rem;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cta-dual-grid {
    margin-bottom: 2rem;
  }
  .cta-box-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }
  .cta-box-card h3 {
    font-size: 1.25rem;
  }

  /* Footer Mobile */
  .mp-footer {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
  }

  /* Modals Mobile */
  .modal-overlay-mp {
    padding: 0.75rem;
  }
  .modal-content-mp {
    border-radius: 18px;
  }
  .modal-header-mp {
    padding: 1.25rem 1.25rem;
  }
  .modal-body-mp {
    padding: 1.25rem;
    max-height: 75vh;
  }
}

/* ─── Extra Small Devices (Phones <= 480px) ──────────────── */
@media (max-width: 480px) {
  .mp-product-img-container {
    height: 110px;
    font-size: 36px;
  }
  .mp-product-body {
    padding: 0.625rem;
  }
  .mp-price-main {
    font-size: 0.875rem;
  }
  .slider-dots {
    left: 1.25rem;
    bottom: 0.75rem;
  }
}

/* ─── 5 Enterprise Landing Page Sections CSS ───────────────────────────── */

/* 1. Live Stats Bar */
.mp-stats-bar {
  background: #1A1428;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(26, 20, 40, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.stat-box-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-box-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: #FFCA28;
  letter-spacing: -0.02em;
}
.stat-box-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
  font-weight: 500;
}

/* 2. SHU Savings Calculator */
.shu-calc-section {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 2.25rem;
  margin-bottom: 3rem;
  border: 1.5px solid #E8E6ED;
  box-shadow: 0 12px 36px rgba(106, 27, 154, 0.06);
}
.shu-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.shu-slider-container {
  background: #FAF4FD;
  border: 1px solid #E1BEF0;
  border-radius: 18px;
  padding: 1.75rem;
}
.shu-calc-output {
  background: #6A1B9A;
  border-radius: 20px;
  padding: 1.75rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.shu-out-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
}
.shu-out-val {
  font-weight: 800;
  color: #FFFFFF;
}
.shu-out-total {
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* 3. Official Brands Showcase */
.brands-section {
  margin-bottom: 3rem;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.brand-card-item {
  background: #FFFFFF;
  border: 1.5px solid #E8E6ED;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.brand-card-item:hover {
  border-color: #6A1B9A;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(106, 27, 154, 0.12);
}
.brand-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #FAF4FD;
  color: #6A1B9A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 0.75rem;
}
.brand-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #1A1428;
}
.brand-desc {
  font-size: 0.75rem;
  color: #5A5472;
  margin-top: 2px;
}

/* 4. Testimonials Section */
.testimonials-section {
  margin-bottom: 3rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testi-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid #E8E6ED;
  box-shadow: 0 4px 16px rgba(26, 20, 40, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-stars {
  color: #FFCA28;
  font-size: 16px;
  margin-bottom: 0.75rem;
}
.testi-text {
  font-size: 0.875rem;
  color: #5A5472;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #4A0E72;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

/* 5. B2B Services Section */
.b2b-services-section {
  background: #FFF3EC;
  border-radius: 24px;
  padding: 2.25rem;
  margin-bottom: 3rem;
  border: 1px solid #FFD0B8;
}
.b2b-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.b2b-service-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 111, 32, 0.15);
  box-shadow: 0 4px 14px rgba(255, 111, 32, 0.06);
}
.b2b-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FFF3EC;
  color: #FF6F20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .shu-calc-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .b2b-services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}


