/* ================================================================
   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:  70px;
}

/* 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 — Section wrapper (mobile)
     Catatan: sengaja TIDAK diberi background/card khusus supaya
     menyatu dengan latar section lain (mist blue), bukan kotak
     abu-abu terpisah. Semua styling kartu/grid ada di blok
     "PRODUCT CARD MOBILE" di bawah agar tidak ada aturan ganda.
     ============================================================ */
  .products-section{
    background: transparent !important;
    padding: 28px 14px 24px !important;
  }

  .products-section .section-title{ color: var(--ma-text) !important; }
  .products-section .section-title span{ color: #F97316 !important; }

  .category-header:not(:first-of-type){
    margin-top: 4px !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: flex-start;
    gap: 2px;
    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));
    min-height: calc(var(--ma-bottomnav-h) + var(--ma-safe-bottom));
    max-height: calc(var(--ma-bottomnav-h) + var(--ma-safe-bottom));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Kunci posisi supaya tidak ikut mengecil/geser saat address bar
       browser mobile muncul-hilang ketika di-scroll */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style;
  }

  .mobile-bottom-nav::-webkit-scrollbar{ display: none; }

  .mnav-item{
    flex: 0 0 auto;
    /* lebar tiap item dihitung supaya cuma sekitar 5 menu yang kelihatan,
       sisanya digeser (scroll) oleh user */
    width: 20%;
    min-width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--ma-text-muted);
    padding: 2px 2px;
    border-radius: var(--ma-radius-sm);
    scroll-snap-align: start;
    transition: color 0.2s ease, transform 0.15s ease;
  }

  /* Lingkaran wadah icon (kosong = state non-aktif) */
  .mnav-icon-wrap{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.25s ease, transform 0.2s ease;
  }

  .mnav-icon{
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* icon selalu tampil dengan warna asli PNG-nya, aktif maupun tidak */
    transition: transform 0.2s ease;
  }

  .mnav-item span{
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .mnav-item:active .mnav-icon-wrap{ transform: scale(0.88); }

  .mnav-item.active{ color: var(--ma-ocean-2); }

  /* State aktif: lingkaran biru muda lembut di belakang icon (icon tetap warna asli) */
  .mnav-item.active .mnav-icon-wrap{
    background: var(--ma-ocean-light);
  }

  .mnav-item.active .mnav-icon{
    transform: scale(1.08);
  }

  /* ============================================================
     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.55rem; }
    .mnav-icon{ width: 21px; height: 21px; }
    .mnav-icon-wrap{ width: 34px; height: 34px; }
    #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;
    }
  }

  /* ============================================================
     PRODUK — Rak Geser & Kartu Produk (mobile) — Konsep A
     Kartu produk cuma punya SATU sumber styling (dipakai baik di
     rak geser maupun kartu "spotlight" 1-produk); yang berubah
     cuma layout kontainernya. Tidak ada duplikasi/konflik
     !important seperti versi lama.
     ============================================================ */

  .products-section .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  .products-section .section-head,
  .products-section .category-header {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Rak geser horizontal — jumlah produk berapa pun tetap rapi,
     tidak pernah ada sisa kartu yang nanggung sendirian */
  .products-section .row.g-4 {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 2px 14px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .products-section .row.g-4::-webkit-scrollbar { display: none !important; }

  .products-section .row.g-4 > div {
    flex: 0 0 auto !important;
    width: 132px !important;
    max-width: 132px !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Wrapper <a> pembungkus kartu (fix: sebelumnya di mobile kartu
     TIDAK BISA DIKLIK sama sekali karena satu-satunya link ada di
     dalam overlay hover yang disembunyikan) */
  .product-card-link {
    display: block !important;
    height: 100% !important;
  }

  /* Kartu produk */
  .product-card-modern {
    border-radius: 18px !important;
    box-shadow: 0 4px 14px -6px rgba(15, 36, 56, 0.14) !important;
    border: 1px solid #EEF2F7 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    cursor: pointer !important;
    position: relative !important;
  }

  .product-card-modern:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 8px -4px rgba(15, 36, 56, 0.16) !important;
  }

  /* Gambar — TIDAK PERNAH terpotong (object-fit: contain + padding
     + latar lembut, bukan cover) */
  .product-image-modern {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--ma-ocean-mist) !important;
    overflow: hidden !important;
    padding: 10px !important;
    margin: 0 !important;
    position: relative !important;
    flex: 0 0 auto !important;
  }

  .product-image-modern img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Ikon kaca pembesar di pojok gambar */
  .product-zoom-icon-mobile {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 30px !important;
    height: 30px !important;
    background: rgba(15, 36, 56, 0.45) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 0.68rem !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.68rem !important; }

  /* Overlay hover (khusus desktop) disembunyikan di mobile —
     KECUALI untuk kartu "spotlight" 1-produk di bawah */
  .product-hover-overlay { display: none !important; }

  /* Keterangan produk */
  .product-body-modern {
    padding: 10px 12px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 3px !important;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-title-modern {
    font-size: 0.8rem !important;
    text-align: left !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: var(--ma-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .product-price-modern {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--ma-ocean-2) !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* Eyebrow kategori & tombol "Lihat Detail" statis — hidden by default,
     hanya dipakai & ditampilkan oleh kartu spotlight 1-produk di bawah. */
  .product-eyebrow-modern { display: none; }
  .product-detail-btn-modern { display: none; }

  /* ============================================================
     KARTU PENUTUP RAK — "Lihat X Produk Lainnya"
     ============================================================ */
  .col-shelf-more { display: block !important; }

  .shelf-more-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    height: 100% !important;
    width: 100% !important;
    min-height: 100% !important;
    border-radius: 18px !important;
    border: 1.5px dashed #BFDBFE !important;
    background: var(--ma-ocean-light) !important;
    color: var(--ma-ocean-2) !important;
    text-decoration: none !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: transform 0.15s ease !important;
  }
  .shelf-more-card:active { transform: scale(0.96) !important; }

  .shelf-more-circle {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: var(--ma-gradient) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.5) !important;
    flex-shrink: 0 !important;
  }

  .shelf-more-text {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }

  /* ============================================================
     KATEGORI DENGAN 1 PRODUK — otomatis jadi kartu "spotlight"
     selebar layar (dideteksi lewat :only-child, tanpa markup PHP
     tambahan: kalau row cuma punya 1 anak = 1 produk saja).
     Konsep A — Banner: gambar persegi bersih di kiri, teks +
     tombol "Lihat Detail" rapi di kanan (bukan melayang di
     antara gambar & teks seperti versi sebelumnya).
     ============================================================ */
  .products-section .row.g-4 > div:only-child {
    width: 100% !important;
    max-width: 100% !important;
  }

  .row.g-4 > div:only-child .product-card-modern {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  /* Gambar persegi (1:1), bersih, tidak terlalu tinggi/aneh */
  .row.g-4 > div:only-child .product-image-modern {
    width: 34% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 12px 0 12px 12px !important;
    border-radius: 12px !important;
  }

  /* Overlay hover desktop TIDAK dipakai lagi di kartu spotlight
     mobile ini (sumber bug "tombol melayang" sebelumnya) — CTA
     sekarang berupa elemen terpisah, .product-detail-btn-modern,
     yang letaknya di body, bukan di dalam kolom gambar. */
  .row.g-4 > div:only-child .product-hover-overlay { display: none !important; }

  .row.g-4 > div:only-child .product-body-modern {
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 12px 14px 12px 12px !important;
  }

  /* Eyebrow kategori — label kecil huruf besar warna biru,
     persis di atas judul, seperti "MAINTENANCE MESIN" pada Konsep A */
  .row.g-4 > div:only-child .product-eyebrow-modern {
    display: block !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    color: var(--ma-ocean-2) !important;
    margin: 0 0 2px 0 !important;
  }

  .row.g-4 > div:only-child .product-title-modern {
    font-size: 0.9rem !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
  }

  .row.g-4 > div:only-child .product-price-modern {
    font-size: 0.82rem !important;
  }

  /* Tombol "Lihat Detail" — statis, rapi di bawah judul (dan
     harga bila ada), tidak lagi melayang di antara gambar & teks */
  .row.g-4 > div:only-child .product-detail-btn-modern {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 8px !important;
    width: fit-content !important;
    background: var(--ma-gradient) !important;
    color: #ffffff !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    padding: 7px 12px 7px 14px !important;
    border-radius: var(--ma-radius-pill) !important;
    box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.5) !important;
  }
  .row.g-4 > div:only-child .product-detail-btn-modern i {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.56rem !important;
  }

  /* ============================================================
     HEADER KATEGORI — ikon, judul, jumlah produk
     Tombol "Lihat Semua" disembunyikan di mobile: fungsinya sudah
     digantikan kartu "Lihat X Produk Lainnya" di ujung rak.
     ============================================================ */

  .category-header {
    padding: 0 !important;
    margin-bottom: 12px !important;
    gap: 8px !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.92rem !important;
    gap: 8px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: var(--ma-text) !important;
  }

  .category-title i {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.6rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    background: var(--ma-ocean-light) !important;
    color: var(--ma-ocean-2) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .category-count {
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    padding: 2px 9px !important;
    flex-shrink: 0 !important;
    background: var(--ma-ocean-light) !important;
    border-radius: 12px !important;
    color: var(--ma-ocean-3) !important;
  }

  .products-section .category-header .btn-view-all { display: none !important; }

  /* ============================================================
     RESPONSIVE EKSTRA — layar sangat kecil
     ============================================================ */

  @media (max-width: 400px){
    .products-section .row.g-4 { gap: 10px !important; }
    .products-section .row.g-4 > div { width: 118px !important; max-width: 118px !important; }

    .product-title-modern { font-size: 0.74rem !important; }
    .product-price-modern { font-size: 0.74rem !important; }

    .product-body-modern {
      padding: 8px 10px 10px !important;
      gap: 2px !important;
    }

    .category-title { font-size: 0.82rem !important; }

    .category-title i {
      width: 20px !important;
      height: 20px !important;
      font-size: 0.52rem !important;
    }

    .shelf-more-circle {
      width: 30px !important;
      height: 30px !important;
      font-size: 0.7rem !important;
    }

    .shelf-more-text { font-size: 0.64rem !important; }

    .product-zoom-icon-mobile {
      width: 26px !important;
      height: 26px !important;
      font-size: 0.58rem !important;
      top: 6px !important;
      right: 6px !important;
    }

    .product-zoom-icon-mobile i { font-size: 0.58rem !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);
  }
}