/* ================================================================
   MOBILE APP THEME — Blue Ocean, Rounded & Soft
   ================================================================ */

:root{
  --ma-ocean-1:      #0EA5E9;
  --ma-ocean-2:      #2563EB;
  --ma-ocean-3:      #0369A1;
  --ma-ocean-light:  #E8F4FD;
  --ma-ocean-mist:   #F4F9FF;
  --ma-gradient:     linear-gradient(135deg, #22B8F0 0%, #2563EB 60%, #1D4ED8 100%);
  --ma-gradient-soft:linear-gradient(135deg, #E8F4FD 0%, #F4F9FF 100%);

  --ma-text:         #0F2438;
  --ma-text-muted:   #6B85A3;
  --ma-white:        #FFFFFF;

  --ma-radius-xl:    26px;
  --ma-radius-lg:    20px;
  --ma-radius-md:    14px;
  --ma-radius-sm:    10px;
  --ma-radius-pill:  999px;

  --ma-shadow-soft:  0 10px 28px -8px rgba(14, 84, 148, 0.16);
  --ma-shadow-card:  0 6px 16px -6px rgba(14, 84, 148, 0.14);
  --ma-shadow-press: 0 2px 8px -2px rgba(14, 84, 148, 0.18);

  --ma-safe-bottom:  env(safe-area-inset-bottom, 0px);
  --ma-safe-top:     env(safe-area-inset-top, 0px);

  --ma-bottomnav-h:  64px;
}

/* Bottom Tab Bar disembunyikan secara default (desktop/tablet besar);
   hanya dimunculkan lagi di dalam @media (max-width: 768px) di bawah,
   supaya tidak tampil sebagai list link polos di layar besar. */
.mobile-bottom-nav{
  display: none;
}

@media (max-width: 768px){

  /* ============================================================
     GLOBAL APP SHELL
     ============================================================ */
  html{ -webkit-tap-highlight-color: transparent; scroll-padding-top: 90px; }

  body{
    background: var(--ma-ocean-mist) !important;
    color: var(--ma-text);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--ma-bottomnav-h) + var(--ma-safe-bottom));
  }

  a, button{ -webkit-tap-highlight-color: transparent; }
  ::selection{ background: var(--ma-ocean-1); color: #fff; }

  /* ============================================================
     NAVBAR — Logo tanpa background, hilangkan search
     ============================================================ */
  #mainNavbar{
    top: calc(8px + var(--ma-safe-top));
    left: 12px;
    right: 12px;
    width: auto;
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(146, 221, 240, 0.6);
    border-radius: var(--ma-radius-xl);
    box-shadow: var(--ma-shadow-soft);
    padding: 0.45rem 0.7rem !important;
  }

  #mainNavbar .container{
    padding-left: 4px;
    padding-right: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-header-actions{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  /* LOGO TANPA BACKGROUND */
  .brand-logo-frame{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    padding: 0;
  }

  .brand-logo{
    height: 100% !important;
    width: 100% !important;
    object-fit: contain;
    filter: none !important;
  }

  .brand-text-wrap{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-slogan{ font-size: 0.55rem !important; }
  .brand-name{ font-size: 0.88rem !important; color: var(--ma-ocean-3); }

  /* TOMBOL SEARCH — SEMBUNYIKAN */
  .mobile-search-btn{
    display: none !important;
  }

  /* Tombol keranjang (cart) */
  .mobile-cart-btn{
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ma-radius-pill);
    background: var(--ma-ocean-light);
    border: none;
    color: var(--ma-ocean-3);
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  .mobile-cart-btn:active{ transform: scale(0.9); }

  .mobile-cart-badge{
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: var(--ma-radius-pill);
    background: #F97316;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1.5px solid #fff;
  }

  .navbar-toggler{ display: none !important; }
  .navbar-collapse{ display: none !important; }

  /* ============================================================
     HERO — dihapus
     ============================================================ */
  .hero-slider{ display: none !important; }

  /* ============================================================
     SECTION TITLES
     ============================================================ */
  .section-title{ font-size: 1.35rem !important; text-align: left; padding-left: 4px; }
  .section-title span{ color: var(--ma-ocean-1); }
  .section-desc, .section-subtitle{
    text-align: left !important;
    padding-left: 4px;
    font-size: 0.85rem !important;
  }
  .services-section, .products-section, .realisasi-section{
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .services-section:first-of-type,
  .services-section{
    margin-top: 92px;
  }

  /* ============================================================
     LAYANAN / PROJECT CARDS — 3 kolom
     ============================================================ */
  #projects-grid{
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    row-gap: 10px !important;
  }

  #projects-grid > div{
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
  }

  /* SEMUA kartu extra: default disembunyikan total */
  .project-card-extra{
    display: none !important;
  }

  /* Saat tombol aktif, tampilkan semua kartu extra */
  #projects-grid.show-all .project-card-extra{
    display: block !important;
    animation: fadeSlideUp 0.5s ease forwards;
  }

  /* Animasi staggered untuk kartu extra */
  #projects-grid.show-all .project-card-extra:nth-child(7) { animation-delay: 0.05s; }
  #projects-grid.show-all .project-card-extra:nth-child(8) { animation-delay: 0.10s; }
  #projects-grid.show-all .project-card-extra:nth-child(9) { animation-delay: 0.15s; }
  #projects-grid.show-all .project-card-extra:nth-child(10) { animation-delay: 0.20s; }
  #projects-grid.show-all .project-card-extra:nth-child(11) { animation-delay: 0.25s; }
  #projects-grid.show-all .project-card-extra:nth-child(12) { animation-delay: 0.30s; }

  @keyframes fadeSlideUp{
    0%{
      opacity: 0;
      transform: translateY(20px) scale(0.95);
    }
    100%{
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .project-card{
    margin-top: 0 !important;
    padding: 0.9rem 0.6rem 0.85rem !important;
    border-radius: var(--ma-radius-lg) !important;
    border-bottom: none !important;
    box-shadow: var(--ma-shadow-card) !important;
    text-align: center;
    align-items: center;
    min-height: 130px;
    justify-content: flex-start;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: #fff !important;
  }

  .project-card:active{
    transform: scale(0.96);
    box-shadow: var(--ma-shadow-press) !important;
  }

  .project-icon{
    width: 100%;
    height: 34px;
    margin-bottom: 0.55rem !important;
  }

  .project-icon i{
    font-size: 1.45rem !important;
    color: var(--ma-ocean-3) !important;
  }

  .project-icon img{
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .project-title, .project-card h4{
    font-size: 0.72rem !important;
    line-height: 1.25;
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
    color: var(--ma-text) !important;
    margin-bottom: 4px !important;
  }

  .project-desc{
    display: none !important;
  }

  .project-link{
    position: static !important;
    transform: none !important;
    margin-top: 2px;
    font-size: 0.62rem !important;
    color: var(--ma-ocean-2) !important;
    justify-content: center;
  }

  .project-link i{
    font-size: 0.55rem !important;
  }

  /* ============================================================
     TOMBOL LIHAT SELENGKAPNYA
     ============================================================ */
  .btn-show-more-projects{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--ma-gradient) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--ma-radius-pill) !important;
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    box-shadow: var(--ma-shadow-card) !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
    position: relative;
    min-height: 52px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #projects .row.mt-4.pt-2 .col-12.text-center{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .btn-show-more-projects:active{
    transform: scale(0.95);
    box-shadow: var(--ma-shadow-press) !important;
  }

  .btn-show-more-projects .btn-main-text{
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .btn-show-more-projects .btn-label{
    font-size: 0.85rem;
    letter-spacing: 0.3px;
  }

  .btn-show-more-projects .btn-icon-circle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.25s ease;
  }

  .btn-show-more-projects .btn-arrow-icon{
    font-size: 0.7rem;
    transition: transform 0.3s ease;
  }

  /* Saat tombol aktif */
  .btn-show-more-projects.active{
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 60%, #a93226 100%) !important;
  }

  .btn-show-more-projects.active .btn-icon-circle{
    transform: rotate(180deg);
    background: rgba(255,255,255,0.35);
  }

  .btn-show-more-projects.active .btn-arrow-icon{
    transform: rotate(180deg);
  }

  /* Hint text di bawah tombol */
  .btn-hint-text{
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--ma-text-muted);
    opacity: 0.85;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .btn-hint-text.hidden{
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
  }

  .btn-hint-text i{
    color: var(--ma-ocean-2);
    font-size: 0.7rem;
  }

  /* ============================================================
     PRODUK
     ============================================================ */
  .products-section{
    background: linear-gradient(160deg, #cccecf 0%, #f1f1f1 100%) !important;
    border-radius: var(--ma-radius-xl);
    margin: 0 12px;
    padding: 28px 14px 30px !important;
  }

  .products-section .section-title{ color: #0B1220 !important; }
  .products-section .section-title span{ color: #F97316 !important; }
  .products-section .section-desc,
  .products-section .section-subtitle{ color: rgba(255,255,255,0.85) !important; }

  .category-header{
    padding-left: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .category-title{ font-size: 1rem !important; color: #fff !important; }
  .category-title i{
    background: #fff;
    color: var(--ma-ocean-2);
    width: 24px; height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
  }
  .category-count{ background: rgba(255,255,255,0.18) !important; color: #fff !important; }

  .btn-view-all{
    display: inline-flex !important;
    align-items: center;
    background: #fff !important;
    color: var(--ma-ocean-2) !important;
    border-radius: var(--ma-radius-pill) !important;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25) !important;
    font-size: 0.78rem;
    padding: 8px 16px !important;
    white-space: nowrap;
    margin-left: auto !important;
  }
  .btn-view-all i{ color: var(--ma-ocean-2) !important; }
  .btn-view-all:active{ transform: scale(0.96); }

  #products .row.g-4{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin-bottom: 24px !important;
  }
  #products .row.g-4 > div{
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .category-header:not(:first-of-type){
    margin-top: 6px !important;
  }

  #products .row.g-4 > div:nth-child(n+3){
    display: none !important;
  }

  .product-card-modern{
    background: #3ed8f3 !important;
    border-radius: var(--ma-radius-lg) !important;
    border: none !important;
    box-shadow: 0 10px 24px -10px rgba(0,0,0,0.28) !important;
    padding: 10px 10px 14px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .product-card-modern:active{
    transform: scale(0.97);
  }

  .product-image-modern{
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 140px;
    margin-bottom: 10px;
    border-radius: var(--ma-radius-md);
    overflow: hidden;
    background: var(--ma-ocean-mist) !important;
  }

  .product-image-modern img{
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    object-fit: contain !important;
    object-position: center;
    padding: 6px;
    box-sizing: border-box;
    display: block;
  }

  .product-hover-overlay{
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
    padding: 10px 2px 10px !important;
    flex: 0 0 auto !important;
  }

  .product-body-modern{
    padding: 0 2px !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
  }

  .product-title-modern{
    font-size: 0.82rem !important;
    text-align: left;
    color: var(--ma-text) !important;
  }

  .product-hover-overlay{
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
    padding: 8px 2px 0 !important;
  }

  .product-hover-title{ display: none; }

  .product-hover-link{
    width: 100%;
    justify-content: center;
    background: var(--ma-gradient) !important;
    border-radius: var(--ma-radius-pill) !important;
    padding: 8px 8px !important;
    font-size: 0.72rem !important;
  }

  /* ============================================================
     TESTIMONIALS - FIXED CENTERING & CLIPPING
     ============================================================ */

  .testimonials-section { 
    padding: 70px 0 90px; 
    background: #fafbfc; 
    overflow: hidden; 
    position: relative;
  }

  .testi-badge-row { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 16px; 
    margin-bottom: 18px; 
  }
  .testi-badge-row .line { 
    flex: 1; 
    max-width: 220px; 
    height: 1px; 
    background: #e2e8f0; 
  }
  .testi-badge {
    background: #3b82f6; 
    color: #fff; 
    font-size: .78rem; 
    font-weight: 700;
    padding: 7px 20px; 
    border-radius: 999px; 
    white-space: nowrap;
  }

  .testi-heading {
    text-align: center; 
    font-size: 2.1rem; 
    font-weight: 800; 
    color: #0f172a;
    margin-bottom: 46px; 
    letter-spacing: -.01em;
  }

  .testi-viewport { 
    position: relative; 
    overflow: hidden; 
    padding: 10px 20px 50px;
    margin: 0 -8px;
  }

  .testi-track {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: transform .5s cubic-bezier(.22,.9,.32,1);
    padding: 10px 0 50px;
    will-change: transform;
  }

  .testi-card {
    flex: 0 0 320px; 
    min-width: 280px;
    max-width: 340px;
    background: #fff; 
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,.06); 
    border: 1px solid #f1f5f9;
    padding: 32px 26px 46px; 
    text-align: center; 
    position: relative;
    transition: opacity .5s, filter .5s, transform .5s, margin .5s;
    flex-shrink: 0;
  }

  .testi-card:not(.is-active) { 
    opacity: .5; 
    filter: blur(0.5px); 
    transform: scale(.92);
  }

  .testi-card.is-active { 
    opacity: 1; 
    filter: blur(0); 
    transform: scale(1);
  }

  .testi-text {
    color: #334155; 
    font-size: .95rem; 
    line-height: 1.75; 
    margin-bottom: 20px; 
    min-height: 92px;
  }

  .testi-person { 
    display: flex; 
    align-items: baseline; 
    justify-content: center; 
    gap: 6px; 
    flex-wrap: wrap; 
  }
  .testi-name { 
    font-weight: 800; 
    color: #3b82f6; 
    font-size: .92rem; 
  }
  .testi-role { 
    color: #94a3b8; 
    font-size: .85rem; 
  }

  .testi-avatar-wrap {
    position: absolute; 
    left: 50%; 
    bottom: -30px; 
    transform: translateX(-50%);
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    overflow: hidden;
    border: 4px solid #fff; 
    box-shadow: 0 6px 16px rgba(15,23,42,.12);
  }
  .testi-avatar-wrap img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
  }
  .testi-avatar-fallback {
    width: 100%; 
    height: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 2.1rem;
  }

  .testi-nav { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 14px; 
    margin-top: 10px; 
  }
  .testi-arrow {
    width: 46px; 
    height: 46px; 
    border-radius: 50%; 
    border: none; 
    cursor: pointer;
    background: #6366f1; 
    color: #fff; 
    font-size: 1rem;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: background .2s, transform .15s;
    flex-shrink: 0;
  }
  .testi-arrow:hover:not(:disabled) { 
    background: #4f46e5; 
  }
  .testi-arrow:disabled { 
    opacity: .35; 
    cursor: default; 
  }
  .testi-arrow.pulse { 
    animation: testiPulse .35s ease; 
  }
  @keyframes testiPulse { 
    0% { transform: scale(1); } 
    50% { transform: scale(.8); } 
    100% { transform: scale(1); } 
  }

  @media (max-width: 992px) {
    .testi-card { 
      flex: 0 0 280px;
      min-width: 240px;
      max-width: 300px;
    }
    .testi-viewport::before, .testi-viewport::after { 
      width: 40px; 
    }
  }

  @media (max-width: 768px) {
    .testi-card { 
      flex: 0 0 70vw;
      min-width: 200px;
      max-width: 90vw;
    }
  }

  @media (max-width: 576px) {
    .testi-heading { 
      font-size: 1.5rem; 
    }
    .testi-card { 
      flex: 0 0 78vw; 
      min-width: 200px;
      padding: 26px 20px 42px; 
    }
    .testi-viewport { 
      padding: 10px 10px 50px;
    }
  }

  /* ============================================================
     REALISASI PROYEK — Header & Title Redesign
     ============================================================ */
  .realisasi-section .text-center.mb-2{
    padding: 0 16px;
    margin-bottom: 26px !important;
  }

  .realisasi-section .section-title{
    font-size: 1.25rem !important;
    text-align: center !important;
    padding-left: 0 !important;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .realisasi-section .section-title span{
    color: var(--ma-ocean-1);
  }

  .realisasi-section p.text-muted{
    text-align: center !important;
    padding-left: 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.65;
    color: var(--ma-text-muted) !important;
    max-width: 300px;
    margin: 10px auto 0 !important;
  }

  .realisasi-slide-main-title{
    font-size: 0.95rem !important;
    font-weight: 700;
    color: var(--ma-text);
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 2px !important;
  }

  .realisasi-slide-main-title .text-primary{
    display: inline-flex;
    align-items: center;
    background: var(--ma-ocean-light) !important;
    color: var(--ma-ocean-3) !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--ma-radius-pill);
    letter-spacing: 0.01em;
    margin: 0 !important;
  }

  /* ============================================================
     FOOTER
     ============================================================ */
  .footer{
    background: var(--ma-white) !important;
    border-top-left-radius: var(--ma-radius-xl);
    border-top-right-radius: var(--ma-radius-xl);
    box-shadow: 0 -8px 30px -12px rgba(14, 84, 148, 0.18);
    margin-top: 20px;
    padding-top: 6px;
  }

  .footer-nav-col{ display: none; }

  .footer-logo-only{
    width: 54px; height: 54px;
    border-radius: var(--ma-radius-md);
    background: transparent !important;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .footer-logo-only img{
    width: 100% !important;
    height: 100% !important;
    top: 0 !important; left: 0 !important;
    filter: none !important;
    object-fit: contain;
  }

  .footer-main{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 1.4rem 0 !important;
  }

  .footer-logo-col,
  .footer-company-col{ grid-column: 1 / -1; }

  .footer-contact-col{ grid-column: 1; }
  .footer-form-col{ grid-column: 2; }

  .footer-contact-col .footer-col-title,
  .footer-form-col .footer-col-title{
    text-align: left !important;
    font-size: 0.82rem !important;
  }
  .footer-contact-col .footer-col-title::after,
  .footer-form-col .footer-col-title::after{
    left: 0 !important;
    transform: none !important;
    background: var(--ma-ocean-1) !important;
  }

  .footer-contact-list{ align-items: flex-start !important; gap: 0.55rem !important; }
  .footer-contact-item{
    justify-content: flex-start !important;
    font-size: 0.7rem !important;
    align-items: flex-start;
  }
  .footer-contact-item i{ color: var(--ma-ocean-2) !important; margin-top: 2px; }

  .footer-form-desc{ text-align: left !important; font-size: 0.7rem !important; }

  .footer-form input,
  .footer-form textarea{
    background: var(--ma-ocean-mist) !important;
    border: 1.5px solid #E1EDFB !important;
    border-radius: var(--ma-radius-md) !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 0.75rem !important;
  }
  .footer-form input:focus,
  .footer-form textarea:focus{
    outline: none;
    border-color: var(--ma-ocean-1) !important;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
  }

  .footer-form button{
    background: var(--ma-gradient) !important;
    border: none !important;
    border-radius: var(--ma-radius-pill) !important;
    padding: 0.65rem !important;
    font-size: 0.78rem !important;
    box-shadow: var(--ma-shadow-card);
  }
  .footer-form button:active{ transform: scale(0.97); }

  .footer-security{ justify-content: flex-start !important; grid-column: 1 / -1; }
  .footer-bottom-full{ display: none !important; }

  /* ============================================================
     BOTTOM TAB BAR
     ============================================================ */
  .mobile-bottom-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-top: 1px solid #E7EFFA;
    box-shadow: 0 -6px 24px -8px rgba(14, 84, 148, 0.16);
    padding: 6px 4px calc(6px + var(--ma-safe-bottom));
    height: calc(var(--ma-bottomnav-h) + var(--ma-safe-bottom));
  }

  .mnav-item{
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--ma-text-muted);
    padding: 4px 2px;
    border-radius: var(--ma-radius-sm);
    transition: color 0.2s ease, transform 0.15s ease;
  }

  .mnav-item i{ font-size: 1.05rem; line-height: 1; }

  .mnav-item span{
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .mnav-item:active{ transform: scale(0.9); }

  .mnav-item.active{ color: var(--ma-ocean-2); }

  .mnav-item.active i{
    color: var(--ma-ocean-2);
    transform: translateY(-1px);
  }

  /* ============================================================
     MISC
     ============================================================ */
  .project-card,
  .product-card-modern,
  .testi-card,
  .btn-view-all,
  .btn-show-more-projects,
  .footer-form button{
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  /* ============================================================
     RESPONSIVE EKSTRA
     ============================================================ */
  @media (max-width: 380px){
    .mnav-item span{ font-size: 0.52rem; }
    .mnav-item i{ font-size: 0.95rem; }
    #projects-grid{
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 8px !important;
    }
    .project-card{
      min-height: 110px;
      padding: 0.7rem 0.4rem 0.65rem !important;
    }
    .project-title, .project-card h4{
      font-size: 0.65rem !important;
    }
    .project-icon{
      height: 28px;
    }
    .project-icon i{
      font-size: 1.2rem !important;
    }
    .btn-show-more-projects{
      padding: 10px 20px !important;
      font-size: 0.8rem !important;
      min-height: 44px;
      gap: 8px;
    }
    .btn-show-more-projects .btn-icon-circle{
      width: 24px;
      height: 24px;
    }
  }

  /* ============================================================
   PRODUCT CARD MOBILE FIX — V13 (FINAL)
   ============================================================ */

  /* ============================================================
     PRODUK DI INDEX.PHP — Perbaiki card produk
     ============================================================ */
  
  /* Container pembatas */
  .products-section .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* Grid produk di index.php — 2 kolom */
  .products-section .row.g-4 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .products-section .row.g-4 > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* ============================================================
     PRODUCT CARD MODERN — Bisa diklik seluruh area
     ============================================================ */
  
  .product-card-modern {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    border: 1px solid #eef2f6 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    min-height: 240px !important;
    width: 100% !important;
    max-width: 100% !important;
    transition: none !important;
    cursor: pointer !important;
    position: relative !important;
  }

  .product-card-modern:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
  }

  /* ============================================================
     PRODUCT IMAGE — Dengan zoom icon
     ============================================================ */
  
  .product-image-modern {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f7fa !important;
    overflow: hidden !important;
    padding: 6px !important;
    margin: 0 !important;
    position: relative !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }

  .product-image-modern img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 4px !important;
    max-width: 100% !important;
  }

  /* ZOOM ICON di mobile */
  .product-zoom-icon-mobile {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(0,0,0,0.5) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 0.7rem !important;
    z-index: 2 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    pointer-events: none !important;
  }

  .product-zoom-icon-mobile i {
    font-size: 0.7rem !important;
  }

  /* Sembunyikan hover overlay di mobile */
  .product-hover-overlay {
    display: none !important;
  }

  /* ============================================================
     PRODUCT BODY — Teks full tanpa potongan
     ============================================================ */
  
  .product-body-modern {
    padding: 10px 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 4px !important;
    background: #ffffff !important;
    min-height: 70px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-title-modern {
    font-size: 0.78rem !important;
    text-align: left !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
    min-height: auto !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .product-price-modern {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #2563EB !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* ============================================================
     BUTTON LIHAT SEMUA — Dengan chevron kanan
     ============================================================ */
  
  .btn-view-all {
    font-size: 0.7rem !important;
    padding: 6px 16px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #2563EB !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border: none !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
  }

  .btn-view-all .icon-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    background: #2563EB !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 0.6rem !important;
  }

  .btn-view-all .icon-circle i {
    font-size: 0.6rem !important;
    color: #ffffff !important;
  }

  .btn-view-all:active {
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
  }

  /* ============================================================
     CATEGORY HEADER — Perbaiki
     ============================================================ */
  
  .category-header {
    padding: 0 2px !important;
    margin-bottom: 10px !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }

  .category-title {
    font-size: 0.85rem !important;
    gap: 6px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: #ffffff !important;
  }

  .category-title i {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.55rem !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    color: #2563EB !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .category-count {
    font-size: 0.55rem !important;
    padding: 1px 8px !important;
    flex-shrink: 0 !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
  }

  /* ============================================================
     RESPONSIVE EKSTRA
     ============================================================ */
  
  @media (max-width: 400px){
    .products-section .row.g-4 {
      gap: 10px !important;
    }
    
    .product-title-modern {
      font-size: 0.7rem !important;
    }
    
    .product-price-modern {
      font-size: 0.7rem !important;
    }
    
    .product-body-modern {
      padding: 8px 10px 12px !important;
      min-height: 60px !important;
      gap: 2px !important;
    }

    .product-card-modern {
      min-height: 200px !important;
    }

    .product-image-modern {
      padding: 4px !important;
    }

    .btn-view-all {
      font-size: 0.6rem !important;
      padding: 4px 12px !important;
    }

    .btn-view-all .icon-circle {
      width: 16px !important;
      height: 16px !important;
      font-size: 0.5rem !important;
    }

    .btn-view-all .icon-circle i {
      font-size: 0.5rem !important;
    }

    .category-title {
      font-size: 0.75rem !important;
    }

    .category-title i {
      width: 18px !important;
      height: 18px !important;
      font-size: 0.45rem !important;
    }

    .product-zoom-icon-mobile {
      width: 26px !important;
      height: 26px !important;
      font-size: 0.55rem !important;
      top: 6px !important;
      right: 6px !important;
    }

    .product-zoom-icon-mobile i {
      font-size: 0.55rem !important;
    }
  }

  /* ============================================================
     FIX — Hilangkan gap berlebih dan overflow
     ============================================================ */
  
  .products-section .row.g-4 {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
  }

  .products-section {
    overflow: hidden !important;
  }

}

/* ============================================================
   HILANGKAN NAVIGASI FOOTER & SEARCH DI DESKTOP
   ============================================================ */

@media screen and (min-width: 769px) {
    .footer-bottom-nav,
    .footer-bottom-inner .footer-bottom-nav,
    .footer .footer-bottom-nav,
    .footer-bottom-inner a:not(.footer-copy a):not(.footer-bottom-links a) {
        display: none !important;
    }

    .mobile-search-btn,
    .search-trigger,
    .nav-search-btn,
    .search-icon {
        display: none !important;
    }

    .navbar .search-input,
    .navbar .search-box {
        display: none !important;
    }
}

/* ============================================================
   SEMBUNYIKAN BOTTOM TAB BAR (MOBILE NAV) DI DESKTOP
   ============================================================ */
@media screen and (min-width: 769px) {
    #mobileBottomNav.mobile-bottom-nav {
        display: none !important;
    }
}

/* ================================================================
   HALAMAN KATALOG PRODUK (product.php) — GRID GALERI MOBILE
   ================================================================ */
@media (max-width: 768px){

  /* ---------- Hero / banner slide dihilangkan di mobile ---------- */
  html body .products-hero{
    display: none !important;
  }

  /* Kompensasi jarak karena hero disembunyikan, supaya tidak
     tertutup navbar fixed di atas */
  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___){
    padding-top: calc(78px + var(--ma-safe-top)) !important;
    padding-bottom: 20px !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) > .container{
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100% !important;
  }

  /* ---------- Layout: sidebar tampil di atas, full width ---------- */
  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .row.g-4:not(.product-grid){
    display: block !important;
    margin: 0 !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .col-lg-3,
  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .col-lg-9{
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
  }

  /* ---------- Kategori: pill horizontal, bisa digeser ke samping ---------- */
  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .category-sidebar{
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    display: block !important;
    width: 100% !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .category-sidebar h4{
    display: none !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .category-sidebar ul.category-list{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding: 2px 12px 6px !important;
    margin: 0 -12px !important;
    list-style: none !important;
    width: auto !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .category-sidebar ul.category-list::-webkit-scrollbar{
    display: none !important;
    height: 0 !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .category-sidebar ul.category-list li{
    flex: 0 0 auto !important;
    width: auto !important;
    display: block !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .category-sidebar ul.category-list li a{
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    padding: 9px 16px !important;
    border-radius: var(--ma-radius-pill) !important;
    background: #fff !important;
    color: var(--ma-text-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border: 1px solid #E7EFFA !important;
    box-shadow: var(--ma-shadow-card) !important;
    width: auto !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .category-sidebar ul.category-list li a i{
    font-size: 0.75rem !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .category-sidebar ul.category-list li a.active{
    background: var(--ma-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .category-sidebar ul.category-list li a:active{
    transform: scale(0.95);
  }

  /* ---------- Judul & search bar ---------- */
  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .section-header{
    padding: 0 2px !important;
    margin-bottom: 14px !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .section-header h2{
    font-size: 1.15rem !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .section-header p{
    font-size: 0.8rem !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .search-container{
    margin-bottom: 16px !important;
  }

  /* ---------- Grid produk: 2 kolom rapi ---------- */
  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-grid{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-grid > div{
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card{
    background: #fff !important;
    border-radius: var(--ma-radius-lg) !important;
    overflow: hidden !important;
    border: 1px solid #EEF2F6 !important;
    box-shadow: var(--ma-shadow-card) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    transition: transform 0.15s ease;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card:active{
    transform: scale(0.97);
  }

  /* Kotak gambar: sudut ROUNDED mengikuti bentuk card (radius sama
     dengan card, mengikuti lengkungan atas card), gambar TIDAK
     TERPOTONG karena object-fit: contain + background lembut */
  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card .product-image{
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background: var(--ma-ocean-mist) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    border-radius: var(--ma-radius-lg) var(--ma-radius-lg) 0 0 !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card .product-image img{
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: var(--ma-radius-md) !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card .product-image .zoom-icon{
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(15,36,56,0.55) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 0.62rem !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card .product-body{
    padding: 10px 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: 4px !important;
    text-align: left !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card .product-title{
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--ma-text) !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card .product-description{
    display: none !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card .btn-detail{
    margin-top: 8px !important;
    width: 100% !important;
    text-align: center !important;
    background: var(--ma-gradient) !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    padding: 8px 10px !important;
    border-radius: var(--ma-radius-pill) !important;
  }

  html body .product-catalog-section:not(#___zz___):not(#___zz___):not(#___zz___) .product-card .btn-detail:active{
    transform: scale(0.96);
  }
}