body {
  background-color: #f4f6f9;
}

.card {
  border-radius: 12px;
}

.navbar-brand {
  letter-spacing: 0.3px;
}

.form-control,
.form-select {
  border-radius: 8px;
}

.btn {
  border-radius: 8px;
}

.badge {
  text-transform: uppercase;
}

.table img.product-thumb {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.no-image-box {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1px solid #ddd;
}

.detail-image {
  max-width: 250px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.pos-page {
  min-height: calc(100vh - 120px);
}

.pos-card {
  height: 100%;
}

.cart-table-wrap {
  max-height: 430px;
  overflow-y: auto;
}

.product-grid {
  max-height: 560px;
  overflow-y: auto;
}

.product-card {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
  min-height: 170px;
  transition: all 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.product-img-wrap {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.product-img-wrap img {
  max-height: 75px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-no-img {
  height: 75px;
  width: 100%;
  border-radius: 8px;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
}

.product-price {
  font-size: 14px;
  font-weight: 700;
  color: #0d6efd;
}

@media (max-width: 768px) {
  .cart-table-wrap,
  .product-grid {
    max-height: none;
  }

  .product-card {
    min-height: 155px;
  }

  .product-name {
    font-size: 12px;
  }
}

/* =========================
   Tampilan Pembeli / Index Awal
   Tema: Biru Soft + Gradasi Hijau
   ========================= */
.navbar.bg-primary {
  background: linear-gradient(
    135deg,
    #5fb7ff 0%,
    #4cc9c3 48%,
    #7be0a7 100%
  ) !important;
  box-shadow: 0 10px 28px rgba(68, 170, 188, 0.22);
}
.buyer-home {
  max-width: 1420px;
  margin: 0 auto;
  padding-bottom: 70px;
}
.buyer-hero {
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(255, 255, 255, 0.26),
      transparent 28%
    ),
    linear-gradient(135deg, #5fb7ff 0%, #4cc9c3 45%, #7be0a7 100%);
  box-shadow: 0 18px 45px rgba(49, 156, 178, 0.25);
  position: relative;
  overflow: hidden;
}
.buyer-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.18) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}
.buyer-hero > * {
  position: relative;
  z-index: 1;
}
.buyer-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.buyer-tagline {
  opacity: 0.92;
  font-size: 14px;
}
.buyer-search-wrap {
  display: grid;
  grid-template-columns: 58px 1fr 86px 46px;
  gap: 12px;
  align-items: center;
}
.buyer-logo-mini,
.buyer-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #328db7;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(33, 112, 136, 0.13);
}
.buyer-search-box {
  height: 48px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  box-shadow: inset 0 0 0 1px rgba(62, 159, 187, 0.12);
}
.buyer-search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #264653;
}
.buyer-search-icon {
  margin-right: 8px;
}
.buyer-search-btn,
.buyer-cart-btn {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #3c9ee8, #36c58b);
  color: #fff;
  font-weight: 700;
  height: 44px;
  padding: 0 20px;
  box-shadow: 0 8px 18px rgba(53, 171, 158, 0.25);
}
.buyer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.buyer-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.buyer-menu a.active,
.buyer-menu a:hover {
  background: #fff;
  color: #2c93ba;
}
.buyer-mobile-wallet,
.buyer-mobile-shortcut {
  margin-top: 14px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(35, 104, 129, 0.08);
  display: grid;
  gap: 8px;
  padding: 14px;
}
.buyer-mobile-wallet {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.buyer-mobile-wallet small,
.buyer-mobile-shortcut small {
  color: #6c757d;
  font-size: 11px;
}
.buyer-mobile-shortcut {
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.buyer-mobile-shortcut span {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f7ff, #e9fff2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
  font-size: 22px;
}
.buyer-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}
.buyer-panel,
.buyer-info-box,
.buyer-content,
.buyer-footer {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(42, 118, 143, 0.08);
}
.buyer-panel,
.buyer-info-box {
  padding: 18px;
}
.buyer-panel h6,
.buyer-info-box h6 {
  font-weight: 800;
  color: #24556a;
  margin-bottom: 14px;
}
.buyer-category {
  width: 100%;
  text-align: left;
  border: none;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f2fbff;
  color: #315f73;
  font-weight: 700;
}
.buyer-category.active,
.buyer-category:hover {
  background: linear-gradient(135deg, #dff4ff, #ddffea);
  color: #1784b7;
}
.buyer-info-box p {
  font-size: 13px;
  color: #607d8b;
  margin-bottom: 0;
}
.buyer-content {
  padding: 20px;
}
.buyer-section-head,
.buyer-filter-bar,
.buyer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.buyer-section-head h4 {
  color: #22333b;
  font-weight: 800;
}
.buyer-product-count {
  color: #26a786;
  font-size: 13px;
  font-weight: 700;
}
.buyer-filter-bar {
  margin: 15px 0 18px;
}
.buyer-filter-bar input,
.buyer-filter-bar select {
  border: 1px solid #d9edf5;
  border-radius: 14px;
  height: 44px;
  padding: 0 14px;
  outline: none;
}
.buyer-filter-bar input {
  flex: 1;
}
.buyer-filter-bar select {
  width: 210px;
}
.buyer-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.buyer-product-card {
  background: #fff;
  border: 1px solid #e4f1f6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(43, 124, 150, 0.08);
  transition: 0.2s ease;
}
.buyer-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(43, 124, 150, 0.14);
}
.buyer-product-image {
  height: 150px;
  background: linear-gradient(135deg, #eaf8ff, #ecfff3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.buyer-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.buyer-image-placeholder {
  font-size: 52px;
}
.buyer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: #fff;
  color: #2d9bb9;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
}
.buyer-product-body {
  padding: 14px;
}
.buyer-product-body small {
  color: #27a985;
  font-weight: 700;
}
.buyer-product-body h5 {
  color: #22333b;
  font-size: 15px;
  font-weight: 800;
  min-height: 38px;
  margin: 6px 0;
}
.buyer-rating,
.buyer-wholesale {
  font-size: 12px;
  color: #6c757d;
}
.buyer-price {
  color: #1689d2;
  font-size: 18px;
  font-weight: 900;
  margin: 6px 0;
}
.buyer-cart-btn {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 10px;
}
.buyer-empty {
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(135deg, #effaff, #f0fff6);
  border-radius: 18px;
  color: #466675;
}
.buyer-footer {
  padding: 16px 22px;
  color: #4f7180;
  flex-wrap: wrap;
}
.buyer-footer strong {
  color: #198fb9;
}
.buyer-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border-top: 1px solid #dff0f5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -10px 25px rgba(40, 97, 115, 0.08);
}
.buyer-bottom-nav a {
  color: #6f8792;
  text-decoration: none;
  padding: 8px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 18px;
}
.buyer-bottom-nav a.active {
  color: #1e9ad0;
}
.buyer-bottom-nav small {
  font-size: 10px;
}
@media (max-width: 1199px) {
  .buyer-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .buyer-layout {
    grid-template-columns: 1fr;
  }
  .buyer-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  body {
    background: #f6fbfd;
  }
  .buyer-home {
    padding-bottom: 76px;
  }
  .buyer-hero {
    border-radius: 0 0 24px 24px;
    margin: -1rem -12px 0;
    padding: 16px 14px 20px;
  }
  .buyer-brand {
    font-size: 19px;
  }
  .buyer-tagline {
    font-size: 12px;
  }
  .buyer-search-wrap {
    grid-template-columns: 1fr 42px;
    gap: 8px;
  }
  .buyer-logo-mini,
  .buyer-search-btn {
    display: none;
  }
  .buyer-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
  .buyer-search-box {
    height: 42px;
    border-radius: 14px;
  }
  .buyer-menu {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .buyer-menu a {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 12px;
  }
  .buyer-content {
    padding: 14px;
    border-radius: 18px;
  }
  .buyer-section-head {
    align-items: flex-start;
  }
  .buyer-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .buyer-filter-bar select {
    width: 100%;
  }
  .buyer-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .buyer-product-image {
    height: 125px;
  }
  .buyer-product-body {
    padding: 11px;
  }
  .buyer-product-body h5 {
    font-size: 13px;
    min-height: 34px;
  }
  .buyer-price {
    font-size: 15px;
  }
  .buyer-wholesale {
    display: none;
  }
  .buyer-footer {
    display: none;
  }
}
@media (max-width: 420px) {
  .buyer-product-image {
    height: 112px;
  }
  .buyer-product-grid {
    gap: 10px;
  }
}

.buyer-home {
  padding-bottom: 30px;
}

.buyer-hero {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8, #34d399);
  color: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.25);
}

.buyer-content {
  margin-top: 18px;
}

.buyer-side-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.buyer-category-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  margin-bottom: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.buyer-category-link:hover,
.buyer-category-link.active {
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
  color: #0284c7;
  font-weight: 700;
}

.buyer-product-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}

.buyer-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.buyer-product-image {
  height: 150px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buyer-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buyer-no-image {
  width: 100%;
  height: 100%;
  min-height: 150px;
  color: #64748b;
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.buyer-product-title {
  min-height: 42px;
  font-size: 14px;
  line-height: 1.4;
}

.buyer-product-price {
  color: #0284c7;
  font-size: 17px;
  font-weight: 800;
}

.buyer-detail-image {
  width: 100%;
  min-height: 350px;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f5f9;
}

.buyer-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.detail-no-image {
  min-height: 350px;
}

@media (max-width: 768px) {
  .buyer-hero {
    border-radius: 18px;
    padding: 18px;
  }

  .buyer-product-image {
    height: 120px;
  }

  .buyer-product-title {
    font-size: 13px;
    min-height: 38px;
  }

  .buyer-product-price {
    font-size: 15px;
  }

  .buyer-side-card {
    display: none;
  }

  .buyer-detail-image,
  .buyer-detail-image img,
  .detail-no-image {
    min-height: 260px;
  }
}
html {
  scroll-behavior: smooth;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    border-radius: 22px;
    padding: 10px 8px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.18);
    border: 1px solid #dbeafe;
  }

  .mobile-bottom-nav__item {
    flex: 1;
    text-decoration: none;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 2px;
    transition: all 0.2s ease;
  }

  .mobile-bottom-nav__item.active,
  .mobile-bottom-nav__item:hover {
    color: #0284c7;
  }

  .mobile-bottom-nav__icon {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-bottom-nav__label {
    font-size: 11px;
    line-height: 1.2;
  }

  .buyer-home {
    padding-bottom: 95px;
  }

  footer {
    margin-bottom: 85px;
  }
}
/* MARKETPLACE MOBILE BOTTOM NAV */
.mobile-market-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 88px;
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-market-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 99999;
    height: 68px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: visible;
  }

  .mobile-market-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, #7dd3fc, #34d399);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  .mobile-market-nav__item {
    position: relative;
    height: 68px;
    text-decoration: none;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s ease;
  }

  .mobile-market-nav__item:hover,
  .mobile-market-nav__item.active {
    color: #0284c7;
  }

  .mobile-market-nav__icon-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  .mobile-market-nav__item.active .mobile-market-nav__icon-wrap {
    background: linear-gradient(135deg, #e0f2fe, #dcfce7);
    color: #0284c7;
    transform: translateY(-2px);
  }

  .mobile-market-nav__item i {
    font-size: 20px;
    line-height: 1;
  }

  .mobile-market-nav__label {
    font-size: 10.5px;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-market-nav__cart .mobile-market-nav__icon-wrap {
    width: 46px;
    height: 46px;
    margin-top: -20px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #34d399);
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.35);
    border: 3px solid #ffffff;
  }

  .mobile-market-nav__cart i {
    font-size: 23px;
  }

  .mobile-market-nav__cart .mobile-market-nav__label {
    margin-top: -2px;
    color: #0284c7;
    font-weight: 800;
  }

  .mobile-market-nav__badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    font-weight: 800;
    padding: 0 5px;
  }

  .buyer-home,
  .buyer-cart-page,
  .buyer-checkout-page,
  .buyer-detail-page {
    padding-bottom: 90px;
  }

  footer {
    margin-bottom: 82px;
  }
}

/* =========================================================
   Qois Farm Mobile Marketplace UI - Update 2026
   Header logo, cart/user/search icons, compact slideshow,
   modern 3D search panel for smartphone view.
   ========================================================= */
.site-navbar {
  min-height: 68px;
  padding: 10px 18px;
}

.site-logo-img {
  display: block;
  width: 180px;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(4, 91, 120, 0.28));
}

.public-header-actions {
  position: relative;
  z-index: 3;
}

.public-header-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.33),
    rgba(255, 255, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 12px 24px rgba(2, 132, 199, 0.25),
    inset 0 2px 7px rgba(255, 255, 255, 0.45),
    inset 0 -4px 10px rgba(15, 118, 110, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.public-header-icon:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 16px 30px rgba(2, 132, 199, 0.32),
    inset 0 2px 8px rgba(255, 255, 255, 0.5);
}

.public-header-icon i {
  font-size: 21px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.public-cart-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.buyer-mobile-home {
  padding: 24px;
}

.buyer-promo-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(2, 132, 199, 0.25);
}

.buyer-promo-slider .carousel-inner {
  border-radius: 24px;
}

.buyer-slide {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(
      circle at 78% 26%,
      rgba(255, 255, 255, 0.46),
      transparent 28%
    ),
    linear-gradient(135deg, #0b73de 0%, #16b5e9 52%, #28c76f 100%);
}

.buyer-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 77, 157, 0.38),
    rgba(255, 255, 255, 0) 64%
  );
  pointer-events: none;
}

.buyer-slide-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.buyer-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(5, 57, 127, 0.7);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: inset 0 1px 5px rgba(255, 255, 255, 0.18);
}

.buyer-slide h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.8px;
  text-shadow: 0 8px 18px rgba(2, 31, 82, 0.22);
}

.buyer-slide h2 span {
  color: #fff15d;
}

.buyer-slide p {
  max-width: 470px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.98;
}

.buyer-slide-features {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.buyer-slide-features div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 72px;
  text-align: center;
}

.buyer-slide-features i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(145deg, #5ee0a8, #08a35d);
  box-shadow:
    0 10px 18px rgba(0, 111, 78, 0.25),
    inset 0 2px 5px rgba(255, 255, 255, 0.35);
  font-size: 18px;
}

.buyer-slide-features small {
  color: #ffffff;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
}

.buyer-slide-image {
  position: relative;
  z-index: 2;
  min-height: 230px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.08)),
    url("../../uploads/products/product_20260502103139_e571cfe129d30ed6.png")
      center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.buyer-slide-image-2 {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.08)),
    url("../../uploads/products/product_20260502102934_2b30bf5cede48ef1.png")
      center/cover no-repeat;
}

.buyer-slide-image-3 {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.08)),
    url("../../uploads/products/product_20260502103023_53bb6464259fe781.png")
      center/cover no-repeat;
}

.buyer-stock-badge {
  position: absolute;
  right: 14px;
  bottom: 16px;
  padding: 12px 13px;
  min-width: 88px;
  border-radius: 18px;
  text-align: center;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(145deg, #2f8b2e, #115c1c);
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.22),
    inset 0 2px 6px rgba(255, 255, 255, 0.25);
}

.buyer-slide-dots {
  bottom: 6px;
  margin-bottom: 0;
}

.buyer-slide-dots [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  opacity: 0.55;
}

.buyer-slide-dots .active {
  width: 24px;
  opacity: 1;
}

.buyer-search-modern {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 20px 36px rgba(14, 165, 233, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.buyer-search-field {
  position: relative;
  min-height: 56px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: #64748b;
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow:
    0 10px 19px rgba(15, 23, 42, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.92),
    inset 0 -2px 5px rgba(2, 132, 199, 0.08);
}

.buyer-search-field i {
  font-size: 21px;
  color: #64748b;
}

.buyer-search-field input,
.buyer-search-field select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #0f172a;
}

.buyer-search-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.buyer-select-chevron {
  position: absolute;
  right: 17px;
  pointer-events: none;
  font-size: 17px !important;
}

.buyer-search-submit {
  min-height: 58px;
  border: 0;
  border-radius: 17px;
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0c8cf0, #2dd68f);
  box-shadow:
    0 14px 25px rgba(20, 184, 166, 0.28),
    inset 0 2px 8px rgba(255, 255, 255, 0.32),
    inset 0 -4px 10px rgba(15, 118, 110, 0.25);
}

.buyer-products-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.buyer-product-card {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.buyer-product-card .btn-outline-primary {
  border-radius: 10px;
  font-weight: 700;
}

.buyer-product-card .btn-primary {
  border-radius: 10px;
  background: #0d6efd;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(13, 110, 253, 0.2);
}

@media (max-width: 768px) {
  body {
    background: linear-gradient(
      180deg,
      #eefaff,
      #ffffff 42%,
      #effbf6
    ) !important;
  }

  .site-navbar {
    margin: 0 auto;
    max-width: 430px;
    min-height: 66px;
    border-radius: 0 0 22px 22px;
    padding: 9px 14px;
  }

  main.container-fluid {
    max-width: 430px;
    padding: 12px 10px 96px !important;
  }

  .site-logo-img {
    width: 152px;
    max-height: 48px;
  }

  .public-header-actions {
    gap: 8px !important;
  }

  .public-header-icon {
    width: 38px;
    height: 38px;
  }

  .public-header-icon i {
    font-size: 19px;
  }

  .buyer-home {
    padding-bottom: 88px;
  }

  .buyer-mobile-home {
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 14px !important;
  }

  .buyer-promo-slider {
    border-radius: 18px;
  }

  .buyer-promo-slider .carousel-inner {
    border-radius: 18px;
  }

  .buyer-slide {
    min-height: 176px;
    border-radius: 18px;
    padding: 14px 14px;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8px;
  }

  .buyer-slide-badge {
    font-size: 9px;
    padding: 4px 9px;
    margin-bottom: 6px;
  }

  .buyer-slide h2 {
    font-size: 21px;
    line-height: 1.06;
    margin-bottom: 6px;
  }

  .buyer-slide p {
    font-size: 10.5px;
    line-height: 1.35;
    margin-bottom: 9px;
  }

  .buyer-slide-features {
    gap: 8px;
  }

  .buyer-slide-features div {
    min-width: 42px;
    gap: 4px;
  }

  .buyer-slide-features i {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .buyer-slide-features small {
    font-size: 7.8px;
    line-height: 1.06;
  }

  .buyer-slide-image {
    min-height: 142px;
    border-radius: 15px;
  }

  .buyer-stock-badge {
    right: 6px;
    bottom: 7px;
    min-width: 56px;
    padding: 7px 8px;
    font-size: 11px;
    border-radius: 12px;
  }

  .buyer-slide-dots {
    bottom: 3px;
  }

  .buyer-slide-dots [data-bs-target] {
    width: 8px;
    height: 8px;
  }

  .buyer-slide-dots .active {
    width: 18px;
  }

  .buyer-search-modern {
    margin-top: 12px !important;
    padding: 12px;
    border-radius: 18px;
    gap: 10px;
  }

  .buyer-search-field {
    min-height: 46px;
    border-radius: 13px;
    padding: 0 12px;
    gap: 10px;
  }

  .buyer-search-field input,
  .buyer-search-field select {
    font-size: 13px;
  }

  .buyer-search-field i {
    font-size: 17px;
  }

  .buyer-search-submit {
    min-height: 46px;
    border-radius: 13px;
    font-size: 14px;
  }

  .buyer-products-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .buyer-product-image {
    height: 124px;
  }

  .buyer-product-title {
    font-size: 12px;
    min-height: 35px;
  }

  .buyer-product-price {
    font-size: 14px;
  }

  .buyer-product-card .p-3 {
    padding: 10px !important;
  }

  .buyer-product-card .btn-sm {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* ==============================
   PUBLIC HEADER QOIS FARM
============================== */

.public-site-navbar {
  background: linear-gradient(135deg, #38bdf8, #34d399);
  min-height: 78px;
  padding: 0;
  border-radius: 0 0 22px 22px;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-navbar-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 22px;
  padding-right: 22px;
}

.site-brand-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 66px;
  padding: 0;
  margin: 0;
  line-height: 1;
  max-width: 210px;
}

.site-logo-img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 7px 10px rgba(15, 23, 42, 0.28));
}

.public-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.public-header-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.38),
    rgba(255, 255, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 8px 16px rgba(15, 23, 42, 0.22),
    inset 0 2px 4px rgba(255, 255, 255, 0.48),
    inset 0 -3px 6px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.public-header-icon:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.public-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Mobile presisi */
@media (max-width: 430px) {
  .public-site-navbar {
    min-height: 72px;
  }

  .site-navbar-container {
    min-height: 72px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-brand-logo {
    height: 58px;
    max-width: 158px;
  }

  .site-logo-img {
    height: 45px;
    max-width: 150px;
  }

  .public-header-actions {
    gap: 8px;
  }

  .public-header-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .site-logo-img {
    height: 40px;
    max-width: 135px;
  }

  .public-header-icon {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .public-header-actions {
    gap: 6px;
  }
}
.promo-slide-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #0284c7;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.promo-slide-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}
/* ==============================
   FIX UKURAN GAMBAR SLIDER HOME
============================== */

.mobile-promo-slider {
  border-radius: 22px;
  overflow: hidden;
}

.promo-slide-card {
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.promo-slide-text {
  width: 50%;
  height: 100%;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.promo-slide-text h4 {
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.promo-slide-text p {
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.promo-slide-btn {
  padding: 6px 12px;
  font-size: 12px;
}

.promo-slide-image {
  width: 50%;
  height: 100%;
  max-height: 150px;
  overflow: hidden;
  border-radius: 16px;
}

.promo-slide-image img {
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
}
/*versi hp */
@media (max-width: 768px) {
  .promo-slide-card {
    height: 165px;
    min-height: 165px;
    max-height: 165px;
    padding: 14px;
  }

  .promo-slide-text {
    width: 52%;
  }

  .promo-slide-image {
    width: 48%;
    height: 135px;
    max-height: 135px;
  }

  .promo-slide-image img {
    height: 135px;
    max-height: 135px;
    object-fit: cover;
    object-position: center;
  }

  .promo-slide-text h4 {
    font-size: 18px;
  }

  .promo-slide-text p {
    font-size: 11px;
  }
}

.info-map {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  background: #ffffff;
}

.info-map iframe {
  width: 100% !important;
  height: 300px !important;
  border: 0;
  display: block;
  border-radius: 18px;
}

@media (max-width: 768px) {
  .info-map iframe {
    height: 240px !important;
  }
}
/* ==============================
   FIX BUTTON LIHAT PRODUK SLIDER MOBILE
============================== */

.promo-slide-card {
  position: relative;
}

.promo-slide-btn {
  position: relative;
  z-index: 10;
}

/* Khusus HP */
@media (max-width: 768px) {
  .promo-slide-card {
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    padding: 14px;
    position: relative;
    overflow: hidden;
  }

  .promo-slide-text {
    width: 56%;
    height: 100%;
    padding-bottom: 38px;
    overflow: hidden;
    z-index: 3;
  }

  .promo-slide-text h4 {
    font-size: 17px;
    line-height: 1.1;
    margin-bottom: 5px;
  }

  .promo-slide-text p {
    font-size: 10.5px;
    line-height: 1.25;
    margin-bottom: 0;
    max-height: 42px;
    overflow: hidden;
  }

  .promo-slide-image {
    width: 44%;
    height: 125px;
    max-height: 125px;
    border-radius: 16px;
    overflow: hidden;
    z-index: 2;
  }

  .promo-slide-image img {
    width: 100%;
    height: 125px;
    max-height: 125px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
  }

  .promo-slide-btn {
    position: absolute;
    left: 14px;
    bottom: 18px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #0284c7;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow:
      0 8px 18px rgba(15, 23, 42, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.9);
  }

  .promo-slide-btn:hover,
  .promo-slide-btn:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
  }

  .mobile-promo-slider .carousel-indicators {
    bottom: 4px;
    left: auto;
    right: 14px;
    margin: 0;
    width: auto;
    justify-content: flex-end;
  }

  .mobile-promo-slider .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
  }
}
/* ==============================
   ADMIN HEADER LOGO QOIS FARM
============================== */

.admin-site-navbar {
  background: linear-gradient(135deg, #38bdf8, #34d399);
  min-height: 82px;
  padding: 8px 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.admin-site-navbar .site-navbar-container {
  min-height: 68px;
  display: flex;
  align-items: center;
}

.admin-brand-logo {
  height: 64px;
  max-width: 240px;
  display: flex;
  align-items: center;
  margin-right: 18px;
  padding: 0;
  overflow: visible;
}

.admin-logo-img {
  width: auto;
  height: 58px;
  max-width: 230px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.28));
}

.admin-site-navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  padding-left: 10px;
  padding-right: 10px;
}

.admin-site-navbar .navbar-nav .nav-link:hover,
.admin-site-navbar .navbar-nav .nav-link:focus {
  color: #ffffff;
}

.admin-site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.55);
}

.admin-site-navbar .badge {
  text-transform: none;
}

/* Tablet */
@media (max-width: 991px) {
  .admin-site-navbar {
    min-height: 76px;
  }

  .admin-brand-logo {
    max-width: 210px;
    height: 58px;
  }

  .admin-logo-img {
    height: 52px;
    max-width: 200px;
  }

  .admin-site-navbar .navbar-collapse {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
  }
}

/* Smartphone */
@media (max-width: 576px) {
  .admin-site-navbar {
    min-height: 70px;
    padding: 6px 12px;
  }

  .admin-brand-logo {
    height: 54px;
    max-width: 175px;
    margin-right: 8px;
  }

  .admin-logo-img {
    height: 46px;
    max-width: 170px;
  }

  .admin-site-navbar .site-navbar-container {
    min-height: 58px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* HP kecil */
@media (max-width: 380px) {
  .admin-brand-logo {
    max-width: 150px;
  }

  .admin-logo-img {
    height: 40px;
    max-width: 145px;
  }
}

/* ==============================
   PRODUCT DETAIL UPGRADE
============================== */
.product-detail-card,
.product-detail-section {
  border-radius: 22px;
  overflow: hidden;
}

.product-gallery-main {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.product-gallery-thumb {
  border: 2px solid transparent;
  background: #ffffff;
  border-radius: 14px;
  padding: 5px;
  height: 76px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
  border-color: #0d6efd;
  transform: translateY(-2px);
}

.product-detail-info {
  height: 100%;
}

.product-detail-table th {
  background: #f8fafc;
  color: #334155;
}

.product-description-text {
  color: #334155;
  line-height: 1.8;
  font-size: 1rem;
  white-space: normal;
}

.product-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.product-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.admin-product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.admin-product-gallery-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.admin-product-gallery-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .product-detail-card .card-body,
  .product-detail-section .card-body {
    padding: 18px !important;
  }

  .product-gallery-main {
    min-height: 260px;
  }

  .product-gallery-main img {
    max-height: 310px;
  }

  .product-gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 8px;
  }

  .product-gallery-thumb {
    height: 66px;
    border-radius: 12px;
  }

  .detail-buy-box .btn,
  .detail-buy-box .form-control {
    min-height: 48px;
  }

  .product-description-text {
    font-size: 0.95rem;
  }
}
/* ==============================
   DETAIL PRODUK PEMBELI - RAPIKAN INFO & TOMBOL
============================== */

.product-detail-category-line {
  font-size: 15px;
  color: #475569;
  margin-top: 4px;
}

.detail-buy-inline {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.detail-qty-box {
  width: 130px;
  flex-shrink: 0;
}

.detail-qty-input {
  height: 54px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.detail-add-box {
  flex: 1;
}

.detail-add-btn {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
}

/* Smartphone */
@media (max-width: 576px) {
  .detail-buy-inline {
    gap: 8px;
  }

  .detail-qty-box {
    width: 105px;
  }

  .detail-qty-input {
    height: 50px;
    font-size: 17px;
  }

  .detail-add-btn {
    height: 50px;
    font-size: 17px;
  }

  .product-detail-category-line {
    font-size: 14px;
  }
}
