/* =========================================================
   MOBILE OVERRIDES (Anti-Highlight & Fast Tap)
========================================================= */
*, *::before, *::after {
    -webkit-tap-highlight-color: transparent !important;
}

html {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* ========================================================= */

.mobile-topbar,
.mobile-overlay {
    display: none;
}

/* ... (kode lama kamu di bawahnya tetap biarkan saja) ... */




@media (min-width: 769px) {
    .btn-detail-produk,
    .product-detail-modal {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body {
        background: #ffffff;
    }

    body.modal-produk-open {
        overflow: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
        box-sizing: border-box;
    }

    .katalog-section {
        padding: 90px 0 34px;
    }

    .katalog-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .katalog-header .sub {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.8px;
        color: #c7a34a;
        margin-bottom: 6px;
    }

    .katalog-header h2 {
        margin: 0 0 10px;
        font-size: 28px;
        line-height: 1.15;
        font-weight: 800;
        color: #123532;
    }

    .line {
        width: 54px;
        height: 3px;
        margin: 0 auto;
        border-radius: 999px;
        background: #c7a34a;
    }

    .btn-back {
        top: 80px;
        left: 14px;
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 999px;
    }

    .produk-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .produk-card {
        background: #ffffff;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid #ece6dd;
        box-shadow: 0 10px 26px rgba(25, 35, 32, 0.07);
    }

    .produk-img-box {
        padding: 0;
        margin: 0;
    }

    .produk-img {
        position: relative;
        width: 100%;
        overflow: hidden;
        background: transparent;
        line-height: 0;
    }

    .produk-img img {
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
        object-fit: contain;
    }

    .badge {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 2;
        padding: 6px 11px;
        border-radius: 999px;
        background: #ff5a5f;
        color: #ffffff;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 8px 18px rgba(255, 90, 95, 0.20);
    }

    .produk-info {
        padding: 12px 12px 13px;
    }

    .produk-info h3 {
        margin: 0 0 8px;
        font-size: 14px;
        line-height: 1.4;
        font-weight: 700;
        color: #173633;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 39px;
    }

    .desc,
    .rating,
    .btn-group {
        display: none !important;
    }

    .price {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 12px;
    }

    .harga-baru {
        font-size: 15px;
        line-height: 1.2;
        font-weight: 800;
        color: #173633;
    }

    .harga-lama {
        font-size: 11px;
        line-height: 1.2;
        color: #b9b0a4;
        text-decoration: line-through;
    }

    .btn-detail-produk {
        width: 100%;
        min-height: 40px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #123532 0%, #184741 100%);
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.2px;
        cursor: pointer;
        box-shadow: 0 10px 20px rgba(18, 53, 50, 0.16);
    }

    .btn-detail-produk:active {
        transform: scale(0.98);
    }

    /* MODAL */
    .product-detail-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .product-detail-modal.show {
        opacity: 1;
        pointer-events: auto;
    }

    .product-detail-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(12, 18, 17, 0.45);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .product-detail-sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 92vh;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border-radius: 28px 28px 0 0;
        overflow: hidden;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.14);
    }

    .product-detail-modal.show .product-detail-sheet {
        transform: translateY(0);
    }

    .product-detail-handle {
        width: 68px;
        height: 5px;
        background: #d9d9d9;
        border-radius: 999px;
        margin: 12px auto 10px;
        flex: 0 0 auto;
    }

    /* BAGIAN ATAS TETAP */
    .product-detail-hero {
        position: relative;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border-bottom: 1px solid #f1ece4;
    }

    .product-detail-hero img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 34vh;
        object-fit: contain;
        background: #ffffff;
        flex: 0 0 auto;
    }

    .product-detail-hero-overlay {
        display: none;
    }

    .product-detail-close {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 4;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        color: #8f8f8f;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
    }

    .product-detail-discount {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 4;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 64px;
        height: 38px;
        padding: 0 14px;
        border-radius: 999px;
        background: linear-gradient(135deg, #f2d16a 0%, #d8b14c 100%);
        color: #173633;
        font-size: 14px;
        font-weight: 800;
        box-shadow: 0 10px 22px rgba(214, 177, 76, 0.22);
    }

    .product-detail-hero-content {
        position: static;
        flex: 0 0 auto;
        padding: 18px 18px 16px;
        background: #ffffff;
    }

    .product-detail-hero-content h3 {
        margin: 0 0 10px;
        font-size: 24px;
        line-height: 1.15;
        font-weight: 800;
        color: #173633;
    }

    .product-detail-price {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .detail-harga-baru {
        color: #173633;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.2;
    }

    .detail-harga-lama {
        color: #b8afa4;
        font-size: 15px;
        font-weight: 700;
        text-decoration: line-through;
        line-height: 1.2;
    }

    /* BAGIAN BAWAH YANG SCROLL */
    .product-detail-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        background: #ffffff;
        padding: 18px 18px 24px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .product-detail-meta {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .meta-badge {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 42px;
        padding: 0 16px;
        border-radius: 999px;
        background: #f5edd0;
        color: #9c7c21;
        font-size: 14px;
        font-weight: 700;
    }

    .meta-badge i {
        color: #d2a72c;
        font-size: 13px;
    }

    .meta-badge-light {
        background: #f3f4f5;
        color: #23403d;
    }

    .product-detail-box {
        background: #fbfbfb;
        border: 1px solid #ececec;
        border-radius: 22px;
        padding: 18px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    }

    .product-detail-box h4 {
        margin: 0 0 12px;
        color: #173633;
        font-size: 17px;
        font-weight: 800;
    }

    .product-detail-box p {
        margin: 0;
        color: #667078;
        font-size: 14px;
        line-height: 1.8;
        word-break: break-word;
    }

    .product-detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 20px;
        padding-bottom: 8px;
    }

    .btn-shop-sheet {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        border-radius: 18px;
        text-decoration: none;
        font-size: 15px;
        font-weight: 800;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .btn-shop-sheet-shopee {
        background: linear-gradient(135deg, #f79b56 0%, #f16a2d 100%);
        color: #ffffff;
    }

    .btn-shop-sheet-tiktok {
        background: linear-gradient(135deg, #1b1b1b 0%, #080808 100%);
        color: #ffffff;
    }

    .btn-shop-sheet.is-disabled {
        pointer-events: none;
        opacity: 0.45;
        filter: grayscale(0.2);
    }
}

@media (max-width: 420px) {
    .product-detail-sheet {
        height: 93vh;
        max-height: 93vh;
    }

    .product-detail-hero img {
        max-height: 30vh;
    }

    .product-detail-hero-content h3 {
        font-size: 21px;
    }

    .detail-harga-baru {
        font-size: 21px;
    }
}

@media (max-width: 380px) {
    .produk-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-actions {
        grid-template-columns: 1fr;
    }

    .product-detail-hero img {
        max-height: 28vh;
    }
}




/* =========================
   MOBILE STYLE
   ========================= */

@media screen and (max-width: 768px){

  body{
    padding-top: 58px !important;
  }

  body.menu-open{
    overflow: hidden;
  }

  nav{
    height: 58px !important;
    padding: 0 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }

  .logo-nav{
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }

  .logo-nav img{
    display: block;
    height: 150px !important;
    width: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
  }

  .desktop-konsultasi,
  .btn-konsultasi{
    display: none !important;
  }

  .menu-toggle{
    width: 34px;
    height: 34px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .menu-toggle span{
    display: block;
    width: 16px;
    height: 2px;
    background: #0F3D3A;
    margin: 0 auto;
    border-radius: 2px;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .menu-toggle.active span:nth-child(1){
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2){
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3){
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links{
    position: absolute;
    top: 58px;
    left: 1px;
    right: 1px;
    margin: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 14px 14px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);

  }

  .nav-links.show{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links li{
    list-style: none;
    width: 100%;
    border-bottom: 1px solid #edf0f2;
    opacity: 0;
    transform: translateY(-4px);
   
  }

  .nav-links.show li{
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.show li:nth-child(1)
  .nav-links.show li:nth-child(2)
  .nav-links.show li:nth-child(3)
  .nav-links.show li:nth-child(4)
  .nav-links.show li:nth-child(5)
  .nav-links.show li:nth-child(6)
  .nav-links.show li:nth-child(7)
  .nav-links.show li:nth-child(8)

  .nav-links li:last-child{
    border-bottom: none;
  }

  .nav-links li a{
    display: block;
    width: 100%;
    padding: 11px 0;
    font-size: 13px;
    font-weight: 500;
    color: #0F172A;
    text-decoration: none;
  }

  .nav-konsultasi-mobile{
    display: block;
    margin-top: 4px;
    border-bottom: none !important;
  }

  .nav-konsultasi-mobile a{
    display: block !important;
    text-align: center !important;
    background: #0F4B43 !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 14px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none !important;
  }
}
.menu-toggle,
.nav-konsultasi-mobile{
  display: none;
}

@media screen and (max-width: 768px){
  .menu-toggle{
    display: flex !important;
  }

  .nav-konsultasi-mobile{
    display: block !important;
  }

  .desktop-konsultasi{
    display: none !important;
  }
}

/* =========================================
   FOOTER MOBILE - FIX ORANGE BAND
   ========================================= */
@media screen and (max-width: 768px){

  /* wrapper luar */
  .sect-footer,
  .site-footer,
  .sect-footer-wrapper,
  footer{
    position: relative;
    padding: 0 !important;
    margin-top: 18px !important;
    background: #0f4b43 !important;
    overflow: hidden;
  }

  /* garis hijau atas */
  .sect-footer::before,
  .site-footer::before,
  .sect-footer-wrapper::before,
  footer::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #0f4b43;
    z-index: 2;
  }

  /* layer emas luar */
  .footer-gold-layer{
    position: relative;
    z-index: 3;
    margin-top: 6px !important;
    padding: 0 !important;
    background: #c9a84c !important;
    border-top-left-radius: 34px;
    border-top-right-radius: 34px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none !important;
  }

  /* panel isi footer */
  .footer-container,
  .container-footer,
  .footer-inner{
    position: relative;
    z-index: 4;
    margin-top: 0 !important;
    padding: 40px 12px 5px !important; /* bawah dibikin mepet */
    background: #cca457 !important;
    border-top-left-radius: 34px;
    border-top-right-radius: 34px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none !important;
  }

  /* layout */
  .footer-grid,
  .footer-content,
  .footer-columns{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* logo */
  .footer-logo-box,
  .footer-brand-card,
  .footer-logo-wrap,
  .logo-box{
    width: 200px;
    height: 200px;
    padding: 8px;
    border-radius: 40px;
    margin-bottom: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-logo-box img,
  .footer-brand-card img,
  .footer-logo-wrap img,
  .logo-box img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.2);
  }

  /* desc */
  .footer-brand p,
  .footer-about p,
  .footer-desc,
  .brand-desc{
    font-size: 10px;
    line-height: 1.45;
    margin-bottom: 10px;
    color: #294238;
  }

  /* social */
  .footer-socials,
  .footer-social-icons,
  .social-footer,
  .social-buttons-box{
    display: flex;
    gap: 8px;
  }

  .footer-socials a,
  .footer-social-icons a,
  .social-footer a,
  .soc-btn{
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
  }

  .footer-socials a img,
  .footer-social-icons a img,
  .social-footer a img,
  .soc-btn img{
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
  }

  /* title */
  .col-title,
  .footer-title,
  .footer-heading{
    font-size: 13px;
    margin-bottom: 8px;
    color: #0f2f23;
  }

  /* list */
  .footer-list li,
  .footer-links li{
    margin-bottom: 6px;
  }

  .footer-list a,
  .footer-links a{
    font-size: 10px;
    gap: 8px;
    color: #294238;
    text-decoration: none;
  }

  .footer-list img,
  .footer-links img{
    width: 14px;
    height: 14px;
    object-fit: contain;
  }

  /* contact */
  .contact-list li,
  .footer-contact li{
    display: grid !important;
    grid-template-columns: 14px 1fr;
    gap: 8px;
    align-items: start;
    font-size: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .contact-list .contact-icon,
  .footer-contact .contact-icon{
    width: 14px;
    height: 14px;
    margin-top: 1px;
    object-fit: contain;
    display: block;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  /* copyright */
  .footer-bottom,
  .footer-copyright,
  .copyright-footer{
    margin-top: 8px !important;
    padding-top: 8px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-top: 1px solid rgba(15,47,35,0.18);
    text-align: center;
  }

  .footer-bottom p,
  .footer-copyright p,
  .copyright-footer p,
  .footer-bottom a,
  .footer-copyright a,
  .copyright-footer a{
    font-size: 9px;
    line-height: 1.4;
    color: rgba(15,47,35,0.62);
    text-decoration: none;
    margin: 0 !important;
  }
}

@media (max-width: 768px) {
    .btn-back {
        display: none !important;
    }
}

/* =========================
   OVERRIDE ANDROID
   tempel paling bawah
   ========================= */

/* Android 360px–389px tetap 2 kolom */
@media (max-width: 389px) {
    .produk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .produk-card {
        border-radius: 18px !important;
    }

    .produk-img {
        width: 100%;
        overflow: hidden;
        background: transparent;
        line-height: 0;
    }

    .produk-img img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .produk-info {
        padding: 10px 10px 12px !important;
    }

    .produk-info h3 {
        font-size: 13px !important;
        line-height: 1.35 !important;
        min-height: 35px !important;
        margin-bottom: 8px !important;
    }

    .price {
        margin-bottom: 10px !important;
    }

    .harga-baru {
        font-size: 14px !important;
    }

    .harga-lama {
        font-size: 10px !important;
    }

    .btn-detail-produk {
        min-height: 36px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }
}

/* cuma HP super kecil yang jadi 1 kolom */
@media (max-width: 340px) {
    .produk-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================
   OVERRIDE TAMPILKAN BINTANG DI CARD
   tempel paling bawah
   ========================= */

@media (max-width: 768px) {
    .rating {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        margin: 0 0 10px !important;
        padding: 8px 12px;
        border-radius: 999px;
        background: #f5edd0;
        color: #9c7c21;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        width: fit-content;
    }

    .rating i {
        color: #d2a72c;
        font-size: 12px;
    }

    /* kalau cuma mau bintang + angka rating saja */
    .rating span {
    display: inline !important;
    color: #9c7c21;
}

    .price {
        margin-bottom: 12px !important;
    }
}


/* =========================
   OVERRIDE DETAIL PRODUK
   - diskon merah
   - tambah badge terjual
   tempel paling bawah
   ========================= */

@media (max-width: 768px) {
    .product-detail-discount {
        background: #ff5a5f !important;
        color: #ffffff !important;
        box-shadow: 0 10px 22px rgba(255, 90, 95, 0.22) !important;
    }

    #detailDiskonInline {
        background: rgba(255, 90, 95, 0.12) !important;
        color: #d93b45 !important;
    }

    .meta-badge .fa-bag-shopping {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .logo-nav {
        margin-left: -33px !important;
    }
}


/* =========================
   IPAD / TABLET - NAVBAR
   tetap model desktop
   ========================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  nav {
    height: 68px !important;
    padding: 0 20px !important;
    gap: 14px !important;
    justify-content: space-between !important;
  }

  .logo-nav {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }

  .logo-nav img {
    height: 118px !important;
    width: auto !important;
  }

  .menu-toggle,
  .nav-konsultasi-mobile {
    display: none !important;
  }

  .desktop-konsultasi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
  }

  .nav-links {
    position: static !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    margin: 0 8px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .nav-links li {
    width: auto !important;
    border-bottom: none !important;
    opacity: 1 !important;
    transform: none !important;
    list-style: none !important;
  }

  .nav-links li a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}