/* ============================================================
   GLOBAL RESET
============================================================ */
* { box-sizing: border-box; }

:root {
    --theme-color: #10b981;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    color: #1f2933;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    width: 100%; max-width: 1200px;
    margin: 0 auto; padding: 0 16px;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15,23,42,0.06);
    position: sticky; top: 0; z-index: 100;
}

.header-inner {
    display: flex; justify-content: space-between;
    align-items: center; padding: 12px 0;
}

.logo-wrap { display:flex; align-items:center; gap:12px; }

.logo-img {
    height:48px; width:48px; border-radius:12px;
    object-fit:cover;
}

.logo-text .logo-icon {
    height:48px; width:48px; border-radius:14px;
    background:linear-gradient(135deg,#00b894,#00cec9);
    display:inline-flex; align-items:center;
    justify-content:center; color:#fff;
    font-weight:700;
}

.logo-name h1 {
    margin:0; font-size:20px; font-weight:600; color:#064e3b;
}

.logo-name p { margin:0; font-size:12px; color:#6b7280; }

.main-nav a {
    margin-left:18px; font-size:14px; padding:6px 12px;
    border-radius:999px; color:#374151;
    transition:.2s;
}

.main-nav a:hover {
    background:rgba(5,150,105,0.08); color:#047857;
}

/* ============================================================
   HEADER – WA Numbers
============================================================ */
.header-wa-nums {
    display:flex; gap:10px; align-items:center;
    font-size:11px; font-weight:500; margin-right:10px;
}

.wa-number-link {
    display:inline-flex; gap:5px; align-items:center;
    padding:4px 8px; border-radius:6px;
    font-weight:600; transition:.2s;
}

.wa-separator { color:#6b7280; font-weight:bold; }

.wa-number-link.wa-green { color:#15803d; }
.wa-number-link.wa-green:hover { background:rgba(16,185,129,0.15); }

.wa-number-link.wa-blue { color:#2563eb; }
.wa-number-link.wa-blue:hover { background:rgba(37,99,235,0.15); }

.wa-number-link.wa-red { color:#dc2626; }
.wa-number-link.wa-red:hover { background:rgba(220,38,38,0.15); }

/* ============================================================
   HERO TEXT
============================================================ */
.hero {
    border-radius: 24px;
    padding: 28px 20px;
    color: #ecfdf5;
    margin-bottom: 24px;
}

.hero-text h2 { margin:0 0 8px; font-size:26px; }
.hero-text p { margin:0 0 16px; font-size:14px; }

.hero-badge {
    display:inline-flex; gap:6px; align-items:center;
    padding:4px 10px; border-radius:999px;
    background:rgba(16,185,129,0.20);
    font-size:11px; margin-bottom:10px;
}

.hero-badge span {
    display:inline-flex; height:18px; width:18px;
    justify-content:center; align-items:center;
    border-radius:999px; background:#ecfdf5;
    color:#059669; font-weight:600; font-size:12px;
}

/* ============================================================
   CTA BUTTONS
============================================================ */
.hero-cta {
    display:flex; flex-wrap:wrap; gap:10px;
}

.btn-primary {
    background:#065f46;
    border-radius:999px;
    padding:10px 18px;
    font-size:14px;
    color:#ecfdf5;
    cursor:pointer;
    border:none;
}

.btn-outline {
    border:1px solid rgba(209,250,229,0.6);
    border-radius:999px;
    padding:9px 18px;
    font-size:14px;
    background:transparent;
    color:#ecfdf5;
}

/* ============================================================
   PRODUCT GRID
============================================================ */
.product-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
    gap:16px;
}

.product-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: 0.16s;
}

.product-card:hover {
    transform:translateY(-4px);
    box-shadow:0 10px 24px rgba(15,23,42,0.08);
}

.product-thumb {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

.product-thumb img {
    width:100%; height:100%; object-fit:contain;
}

.product-name {
    font-size: 13px; font-weight: 600;
}

.product-category {
    font-size: 11px; color: #6b7280;
}

.product-price {
    font-size: 13px; font-weight: 700; color:#065f46;
}

.product-meta {
    font-size: 11px; color:#6b7280;
}

.detail-link {
    font-size:14px; 
    color:#065f46; 
    font-weight:600;
}
.detail-link:hover { color:#047857; }

/* ============================================================
   HERO SLIDER BASE
============================================================ */
.hero-slider {
    position:relative;
    width:100%;
    height:300px;
    border-radius:22px;
    overflow:hidden;
    margin-bottom:24px;
}

.slider-wrapper {
    position:relative;
    width:100%;
    height:100%;
}

.slide-item {
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity .7s ease-in-out;
}

.slide-item.active {
    opacity:1;
}

/* PANAH */
.slider-btn {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.55);
    color:#fff;
    font-size:32px;
    padding:14px 18px;
    border-radius:50%;
    cursor:pointer;
    opacity:0;
    transition:.3s;
    z-index:99;
}

.hero-slider:hover .slider-btn {
    opacity:1;
}

.slider-btn.prev { left:20px; }
.slider-btn.next { right:20px; }

/* DOTS */
.slider-dots {
    position:absolute;
    bottom:14px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:7px;
    z-index:99;
}

.slider-dots span {
    width:10px; height:10px;
    border-radius:50%;
    background:#ffffff77;
    cursor:pointer;
}

.slider-dots .active {
    background:#fff;
}
/* ============================================================
   SLIDER EFFECTS — FINAL FULL VERSION
============================================================ */

/* Default fade */
.fade .slide-item {
    opacity: 0;
    transition: opacity .8s ease-in-out;
}
.fade .slide-item.active {
    opacity: 1;
}

/* Slide dari kanan → kiri */
.slide-left .slide-item {
    opacity: 0;
    transform: translateX(100%);
}
.slide-left .slide-item.active {
    opacity: 1;
    transform: translateX(0);
    transition: all .8s ease;
}

/* Slide dari kiri → kanan */
.slide-right .slide-item {
    opacity: 0;
    transform: translateX(-100%);
}
.slide-right .slide-item.active {
    opacity: 1;
    transform: translateX(0);
    transition: all .8s ease;
}

/* Zoom in */
.zoom .slide-item {
    opacity: 0;
    transform: scale(1.2);
}
.zoom .slide-item.active {
    opacity: 1;
    transform: scale(1);
    transition: all .9s ease;
}

/* Zoom out */
.zoom-out .slide-item {
    opacity: 0;
    transform: scale(.8);
}
.zoom-out .slide-item.active {
    opacity: 1;
    transform: scale(1);
    transition: all .9s ease;
}

/* Blur fade */
.blur-fade .slide-item {
    opacity: 0;
    filter: blur(8px);
}
.blur-fade .slide-item.active {
    opacity: 1;
    filter: blur(0);
    transition: all 1s ease;
}

/* Parallax */
.parallax .slide-item {
    opacity: 0;
    transform: scale(1.15);
}
.parallax .slide-item.active {
    opacity: 1;
    transform: scale(1);
    transition: all 1.2s ease-out;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        gap: 8px;
    }

    .main-nav {
        width: 100%;
        display: flex;
        gap: 4px;
        overflow-x: auto;
    }

    .main-nav a {
        margin-left: 0;
        white-space: nowrap;
    }

    .hero-slider {
        height: 200px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .product-thumb {
        height: 120px;
    }

    .product-name { font-size: 12px; }
    .product-price { font-size: 12px; }
}
.site-footer {
    background: #f7f7f7;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 14px;
    color: #333;
    border-top: 1px solid #ddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 Kolom */
    align-items: start;
    gap: 20px;
}

.footer-col {
    line-height: 1.5;
}

.footer-col.middle {
    text-align: center;
}

.footer-col.right {
    text-align: right;
}

/* RESPONSIVE — HP jadi 1 kolom */
@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col.right {
        text-align: center;
    }
}
/* Ukuran default kecil */
.wa-multi-bottom .wa-detail-link {
    font-size: 11px;
    padding: 2px 4px;
    transition: 0.2s ease-in-out;
}

/* Pembatas | */
.wa-multi-bottom .wa-divider {
    font-size: 11px;
    transition: 0.2s ease-in-out;
}

/* Saat hover → jadi lebih besar */
.wa-multi-bottom .wa-detail-link:hover {
    font-size: 14px;          /* ubah sesuai keinginan */
    font-weight: bold;
}

.wa-multi-bottom .wa-divider:hover {
    font-size: 14px;
}
/* --- WhatsApp 1 / WhatsApp 2 di halaman produk list --- */

/* Ukuran default kecil */
.wa-multi .wa-inline {
    font-size: 11px;
    padding: 2px 4px;
    transition: all 0.2s ease-in-out;
}

/* Pembatas "|" */
.wa-multi .wa-divider {
    font-size: 11px;
    margin: 0 4px;
    transition: all 0.2s ease-in-out;
}

/* Hover efek membesar + bold */
.wa-multi .wa-inline:hover {
    font-size: 14px;
    font-weight: bold;
    color: #059669;        /* hijau elegan (opsional) */
}

/* Hover pembatas juga membesar */
.wa-multi .wa-divider:hover {
    font-size: 14px;
}
/* ---- WHATSAPP BAGIAN ATAS ---- */
.detail-wa-top .wa-detail-link {
    font-size: 12px;
    padding: 3px 6px;
    color: #333;
    transition: 0.2s ease-in-out;
}

/* Hover warna hijau */
.detail-wa-top .wa-detail-link:hover {
    color: #014119 !important;     /* hijau WhatsApp */
    font-weight: bold;
    font-size: 13px;
    text-shadow: 0 0 3px #b5f3cb;  /* efek halus */
}

/* Pembatas "|" bagian atas */
.detail-wa-top .wa-divider {
    font-size: 12px;
    transition: 0.2s;
}

.detail-wa-top .wa-divider:hover {
    color: #25D366;
    font-size: 13px;
}
/* ===========================
   FLOATING WA BUTTONS
   (WA1 kuning – WA2 hijau)
=========================== */

.wa-float-container {
    position: fixed;
    bottom: 90px;  /* aman dari bottom-nav */
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.wa-btn {
    padding: 12px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: 0.2s;
}

/* WA1 = warna kuning */
.wa-btn.wa1 {
    background: #FDE047;      /* kuning */
    color: #7C2D12;           /* coklat */
}

/* WA2 = warna hijau */
.wa-btn.wa2 {
    background: #86EFAC;      /* hijau muda */
    color: #064E3B;           /* hijau tua */
}

.wa-btn:hover {
    transform: scale(1.07);
}
/* ===========================
   FLOATING WA INSIDE PRODUCT CARD
=========================== */

.wa-inside-container {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.product-detail {
    position: relative; /* WAJIB supaya WA bisa melayang di dalam card */
}

.wa-inside-btn {
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: .2s;
}

/* WA1 kuning */
.wa-inside-btn.wa1 {
    background: #FDE047;
    color: #7C2D12;
}

/* WA2 hijau */
.wa-inside-btn.wa2 {
    background: #86EFAC;
    color: #064E3B;
}

.wa-inside-btn:hover {
    transform: scale(1.05);
}
/* ==========================================================
   FIX FLOATING WA FOR MOBILE + FIX DARK MODE COLOR
   (Tambahan FINAL)
========================================================== */

/* WA tetap berwarna meskipun HP menggunakan mode gelap */
@media (prefers-color-scheme: dark) {
    .wa1 {
        background: #FDE047 !important;   /* kuning */
        color: #7C2D12 !important;         /* coklat */
    }
    .wa2 {
        background: #86EFAC !important;   /* hijau */
        color: #064E3B !important;         /* hijau tua */
    }
}

/* Pastikan WA melayang juga di HP */
@media (max-width: 600px) {
    .wa-inside-container {
        position: absolute !important;
        bottom: 12px !important;
        right: 12px !important;
        z-index: 9999 !important;
        flex-direction: column;
        gap: 10px;
    }
}

/* Sedikit perbaikan agar tombol tidak tertutup konten */
.wa-inside-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.20);
    transition: .2s;
}

.wa-inside-btn:hover {
    transform: scale(1.05);
}
