.logo {
    position: relative;
    display: inline-block;
}

.logo-img {
    height: 40px;
    transition: opacity 0.3s ease;
}

/* default tampil */
.logo-top {
    opacity: 1;
    position: relative;
}

/* hidden awal */
.logo-scroll {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
}

/* saat scroll */
.scrolled .logo-top {
    opacity: 0;
}

.scrolled .logo-scroll {
    opacity: 1;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.img-detail-artikel{
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    text-decoration: none;
}

.wa-text {
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.wa-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.wa-float:hover .wa-text {
    transform: translateX(-5px);
    transition: 0.2s;
}


/* Testimoni Pelanggan (Figma: TestimoniSection) */
.testimonial-box{
    background:#eef8fd;
    border:1px solid rgba(224,242,254,.7);
    border-radius:24px;
    padding:49px;
}
.testimonialSwiper{
    padding-top:32px;
}
.testimonialSwiper .swiper-slide{
    height:auto;
}
.testimonial-card{
    display:flex;
    gap:12px;
    height:339px;
    padding:17px;
    background:#fff;
    border:1px solid #f1f5f9;
    border-radius:24px;
    filter:drop-shadow(0 1px 1px rgba(0,0,0,.05));
}
.testimonial-image{
    width:140px;
    flex-shrink:0;
    border-radius:16px;
    overflow:hidden;
}
.testimonial-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.testimonial-content{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:12px 8px 12px 0;
    overflow:hidden;
}
.testimonial-quote{
    display:block;
    height:22px;
    font-size:40px;
    font-weight:700;
    line-height:32px;
    color:#0ea5e9;
}
.testimonial-text{
    margin:0;
    padding-bottom:16px;
    font-size:14px;
    font-style:italic;
    line-height:20px;
    color:#475569;
}
.testimonial-stars{
    display:flex;
    gap:4px;
    margin-bottom:12px;
}
.testimonial-name{
    margin:0 0 4px;
    font-size:16px;
    font-weight:700;
    line-height:16px;
    color:#0f172a;
}
.testimonial-city{
    display:block;
    font-size:13px;
    line-height:16.5px;
    color:#94a3b8;
}
.testimonialSwiper .swiper-pagination{
    position:relative;
    inset:auto;
    display:flex;
    justify-content:center;
    gap:8px;
    padding-top:24px;
}
.testimonialSwiper .swiper-pagination-bullet{
    width:8px;
    height:8px;
    margin:0 !important;
    background:#cbd5e1;
    opacity:1;
}
.testimonialSwiper .swiper-pagination-bullet-active{
    background:#0ea5e9;
}
/* semua testimoni muat dalam satu layar: titik pagination tidak perlu */
.testimonialSwiper .swiper-pagination-lock{
    display:none;
}
@media(max-width:575px){
    .testimonial-box{
        padding:32px 16px;
        border-radius:20px;
    }
}

/* Coway: foto unit (PNG transparan) tampil utuh di kartu produk, tidak terpotong */
.card-product .img-box {
    background: #EEF6FB;
}
.card-product .img-box img {
    object-fit: contain;
    padding: 18px;
}

/* Coway: logo footer SVG tidak punya ukuran tetap */
footer img[src*="uploads/footer/"] {
    max-width: 200px;
    height: auto;
}

/* Coway: kartu e-katalog (gambar sudah berdesain lengkap) tampil penuh tanpa bingkai */
.card-product .img-box img[src*="cw-katalog-"] {
    padding: 0;
    object-fit: cover;
}

/* ===== Coway: halaman detail produk ===== */
.produk-detail { padding-top: 48px; padding-bottom: 72px; }
.produk-breadcrumb { font-size: 14px; color: #6b7280; display: flex; flex-wrap: wrap; gap: 8px; }
.produk-breadcrumb a { color: #6b7280; }
.produk-breadcrumb a:hover { text-decoration: underline; }
.produk-breadcrumb strong { color: #171412; font-weight: 600; }

.produk-galeri { position: sticky; top: 110px; }
.produk-foto-utama { display: block; background: #EEF6FB; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; }
.produk-foto-utama img { width: 100%; height: 100%; object-fit: contain; display: block; }
.produk-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.produk-thumb { width: 72px; height: 72px; padding: 4px; border: 2px solid transparent; border-radius: 12px; background: #EEF6FB; cursor: pointer; transition: border-color .2s; }
.produk-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.produk-thumb:hover { border-color: #b6d7ea; }
.produk-thumb.aktif { border-color: #0077B6; }

.produk-badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.produk-nama { font-size: 38px; line-height: 1.15; font-weight: 700; color: #171412; margin-bottom: 6px; }
.produk-model { font-size: 15px; color: #6b7280; letter-spacing: .3px; }
.produk-harga-mulai { font-size: 24px; font-weight: 700; margin: 18px 0; }
.produk-intro { font-size: 16px; line-height: 1.7; color: #374151; }
.produk-intro p { margin-bottom: 10px; }

.produk-paket { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.paket-item { border: 1px solid #e5e7eb; border-radius: 16px; padding: 14px 16px; background: #fff; }
.paket-item.paket-tunai { background: #f8fafc; }
.paket-label { font-size: 13px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; }
.paket-nilai { font-size: 22px; font-weight: 700; color: #171412; margin-top: 4px; }
.paket-nilai small { font-size: 13px; font-weight: 500; color: #6b7280; margin-left: 2px; }
.paket-ket { font-size: 12px; line-height: 1.5; color: #6b7280; margin-top: 6px; }
.produk-catatan { font-size: 13px; color: #6b7280; font-style: italic; margin-top: 10px; }
.produk-btn-wa { background: #25D366; border: 1px solid #25D366; color: #fff; }
.produk-btn-wa:hover { background: #1ebe5b; color: #fff; }

.produk-kotak { border: 1px solid #e5e7eb; border-radius: 24px; padding: 28px; height: 100%; background: #fff; }
.produk-judul { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.produk-desk { font-size: 15px; line-height: 1.75; color: #374151; }
.produk-desk p { margin-bottom: 14px; }
.produk-desk strong { color: #171412; }
.produk-desk ul { padding-left: 20px; margin-bottom: 16px; }
.produk-desk li { margin-bottom: 8px; }
.produk-spek { width: 100%; font-size: 14px; border-collapse: collapse; }
.produk-spek th, .produk-spek td { padding: 11px 0; border-bottom: 1px solid #eef0f3; vertical-align: top; text-align: left; }
.produk-spek th { width: 42%; font-weight: 600; color: #6b7280; padding-right: 14px; }
.produk-spek td { color: #171412; }
.produk-spek tr:last-child th, .produk-spek tr:last-child td { border-bottom: 0; }

@media (max-width: 991px) {
    .produk-galeri { position: static; }
    .produk-nama { font-size: 30px; }
}
@media (max-width: 575px) {
    .produk-paket { grid-template-columns: 1fr; }
    .produk-kotak { padding: 20px; }
}

/* ===== Coway: galeri bertab ===== */
.galeri-item { height: 100%; }
.galeri-foto { display: block; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #EEF6FB; }
.galeri-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.galeri-foto:hover img { transform: scale(1.04); }
.galeri-info { padding: 12px 4px 0; text-align: center; }
.galeri-judul { font-size: 15px; font-weight: 600; color: #171412; line-height: 1.35; }
.galeri-link { display: inline-block; font-size: 14px; font-weight: 600; margin-top: 4px; }
.galeri-link:hover { text-decoration: underline; }
@media (max-width: 575px) {
    .galeri-foto { border-radius: 14px; }
    .galeri-judul { font-size: 13px; }
}

/* Coway: kartu galeri kotak, gambar tampil utuh */
.galeri-item { border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; padding: 10px; display: flex; flex-direction: column; }
.galeri-foto { border-radius: 4px; }
.galeri-foto img { object-fit: contain; }
.galeri-foto:hover img { transform: scale(1.02); }
.galeri-info { padding: 10px 2px 2px; }
@media (max-width: 575px) { .galeri-foto { border-radius: 4px; } .galeri-item { padding: 6px; } }
@media (max-width: 575px) { .galeri-item { padding: 4px; } .galeri-judul { font-size: 11px; } .galeri-link { font-size: 11px; } }

/* Coway: banner lebar (e-brochure, user manual) tampil proporsional */
.galeri-foto.galeri-foto-lebar { aspect-ratio: auto; background: transparent; }
.galeri-foto.galeri-foto-lebar img { height: auto; object-fit: contain; display: block; }


/* Coway: di HP jarak kolom gx-5 (3rem) lebih lebar dari padding container -> halaman bisa geser ke samping (garis putih kanan) */
@media (max-width: 767.98px) {
    .gx-5, .gx-lg-5 { --bs-gutter-x: 1.5rem; }
}

/* ===== Coway: menu mobile dari kanan ===== */
.menu-mobile {
    left: auto !important;
    right: 0;
    width: min(86vw, 340px);
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
    border-radius: 20px 0 0 20px;
}
.menu-mobile.show { transform: translateX(0); }
.menu-overlay { background: rgba(10, 25, 40, .45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
body.mm-terbuka { overflow: hidden; }

.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eef0f3; }
.mm-logo img { height: 28px; width: auto; }
.mm-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 26px; line-height: 1; color: #334155; display: flex; align-items: center; justify-content: center; padding-bottom: 3px; }
.mm-close:hover { background: #e2e8f0; }

.mm-nav { list-style: none; margin: 0; padding: 8px 12px; flex: 1; overflow-y: auto; }
.mm-nav > li { border-bottom: 1px solid #f1f5f9; }
.mm-nav > li:last-child { border-bottom: 0; }
.mm-link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 15px 10px; font-size: 16px; font-weight: 500; color: #171412; background: none; border: 0; text-align: left; }
.mm-link:hover { color: #0077B6; }
.mm-link.aktif { font-weight: 700; }
.mm-chevron { transition: transform .25s ease; color: #64748b; }
.mm-group.buka .mm-chevron { transform: rotate(180deg); }
.mm-sub { list-style: none; margin: 0; padding: 0 0 0 10px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mm-group.buka .mm-sub { max-height: 520px; padding-bottom: 10px; }
.mm-sub a { display: block; padding: 10px 12px; font-size: 15px; color: #475569; border-left: 2px solid #e2e8f0; }
.mm-sub a:hover, .mm-sub a.aktif { border-left-color: currentColor; }

.mm-foot { padding: 16px 20px 24px; border-top: 1px solid #eef0f3; display: grid; gap: 10px; }
.mm-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.mm-btn-wa { background: #25D366; border-color: #25D366; color: #fff; }
.mm-btn-wa:hover { background: #1ebe5b; color: #fff; }

/* Coway: tombol WA melayang di HP = ikon bulat saja, selalu di atas konten (di bawah panel menu) */
.wa-float { z-index: 9990; }
@media (max-width: 767.98px) {
    .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .wa-float .wa-text { display: none; }
    .wa-float .wa-icon { width: 56px; height: 56px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
}

/* ===== Halaman Tentang Coway (Figma: Tentang Kami - Tentang Coway) ===== */
.tentang-coway{
    padding-top:126px;
    padding-bottom:126px;
}
.tc-intro{
    display:flex;
    align-items:center;
    gap:40px;
}
.tc-intro-img{
    flex:0 0 550px;
    max-width:550px;
}
.tc-intro-img img{
    display:block;
    width:100%;
    height:366px;
    object-fit:cover;
}
.tc-intro-text{
    flex:1;
    min-width:0;
}
.tc-intro-text .title{
    margin-bottom:8px;
}
.tc-intro-text p{
    margin:0;
    font-size:14px;
    line-height:23px;
    color:#000;
}
.tc-pilar{
    display:flex;
    gap:32px;
    margin-top:60px;
    padding:33px;
    background:#eef8fd;
    border:1px solid #d6eaf8;
    border-radius:16px;
}
.tc-pilar-item{
    flex:1;
    min-width:0;
    display:flex;
    align-items:flex-start;
    gap:16px;
    padding-right:16px;
}
.tc-pilar-item + .tc-pilar-item{
    padding-left:17px;
    border-left:1px solid rgba(191,219,254,.6);
}
.tc-pilar-item img{
    flex-shrink:0;
}
.tc-pilar-item h4{
    margin:0 0 4px;
    font-size:14px;
    font-weight:700;
    line-height:20px;
    color:#0f172a;
}
.tc-pilar-item p{
    margin:0;
    font-size:12px;
    line-height:19.5px;
    color:#475569;
}
.tc-sales-head{
    margin-top:60px;
}
.tc-sales{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:40px;
    margin-top:60px;
}
.tc-sales-foto{
    flex:0 0 330px;
    height:423px;
    background:#cbe3f5;
    overflow:hidden;
    box-shadow:0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}
.tc-sales-foto img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.tc-sales-bio{
    flex:0 1 658px;
    min-width:0;
}
.tc-sales-nama{
    margin:0 0 8px;
    font-size:30px;
    font-weight:800;
    line-height:36px;
    color:#0f172a;
}
.tc-sales-jabatan{
    display:inline-block;
    padding:4px 12px;
    background:#eef8fd;
    border-radius:9999px;
    font-size:12px;
    font-weight:600;
    line-height:16px;
    color:#0077b6;
}
.tc-sales-intro{
    margin:19px 0;
    font-size:14px;
    line-height:23px;
    color:#000;
}
.tc-layanan{
    display:grid;
    grid-template-columns:repeat(2, 284px);
    gap:20px;
}
.tc-layanan-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
}
.tc-layanan-icon{
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    margin-top:2px;
    background:#eef8fd;
    border-radius:9999px;
}
.tc-layanan-item h5{
    margin:0;
    font-size:12px;
    font-weight:700;
    line-height:16px;
    color:#0f172a;
}
.tc-layanan-item p{
    margin:0;
    font-size:11px;
    line-height:16.5px;
    color:#64748b;
}
.tc-sales-wa{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-top:32px;
    padding:12px 24px;
    border-radius:9999px;
    font-size:14px;
    font-weight:600;
    line-height:20px;
    color:#fff;
    text-decoration:none;
    box-shadow:0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    transition:filter .2s;
}
.tc-sales-wa:hover{
    color:#fff;
    filter:brightness(1.1);
}
@media(max-width:991px){
    .tentang-coway{
        padding-top:60px;
        padding-bottom:60px;
    }
    .tc-intro,
    .tc-sales{
        flex-direction:column;
        align-items:stretch;
        gap:24px;
    }
    .tc-intro-img{
        flex-basis:auto;
        max-width:none;
    }
    .tc-intro-img img{
        height:auto;
        aspect-ratio:550/366;
    }
    .tc-pilar{
        display:grid;
        grid-template-columns:repeat(2, 1fr);
        gap:24px;
        padding:24px;
    }
    .tc-pilar-item,
    .tc-pilar-item + .tc-pilar-item{
        padding:0;
        border-left:0;
    }
    .tc-sales-foto{
        flex-basis:auto;
        width:100%;
        max-width:330px;
        margin:0 auto;
    }
    .tc-sales-bio{
        flex-basis:auto;
    }
}
@media(max-width:575px){
    .tc-pilar,
    .tc-layanan{
        grid-template-columns:1fr;
    }
    .tc-sales-nama{
        font-size:24px;
        line-height:30px;
    }
}
