/* FOOTER GLOBAL (includes/footer.php)
   Dipindah dari file PHP pada 7 Okt 2026 agar tersimpan di cache browser. Isi TIDAK diubah. */
/* ===============================================================
   FOOTER — semua warna memakai variabel --sol-* (ikut Solarized Dark & Light)
   Hover kini murni CSS (sebelumnya onmouseover/onmouseout di setiap tautan).
=============================================================== */
.site-footer {
    position: relative; overflow: hidden; isolation: isolate;
    background-color: var(--sol-bg-card);
    border-top: 1px solid var(--sol-border-soft);
    transition: background-color 0.35s ease, border-color 0.35s ease;
}
/* Garis aksen mengalir di tepi atas footer */
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 1;
    background: linear-gradient(90deg, transparent, var(--sol-accent), var(--sol-accent-hover), transparent);
    background-size: 200% 100%;
    animation: footerEdge 6s linear infinite;
    opacity: 0.8;
}
@keyframes footerEdge { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* Grid tipis + cahaya lembut di latar */
.site-footer::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        radial-gradient(600px circle at 10% 0%, var(--sol-accent-soft), transparent 60%),
        linear-gradient(var(--sol-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--sol-grid-line) 1px, transparent 1px);
    background-size: auto, 40px 40px, 40px 40px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.site-footer.is-offscreen::before { animation-play-state: paused; }

.footer-brand { color: var(--sol-accent); font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.footer-brand img { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.footer-desc { color: var(--sol-text-muted); font-size: 0.85rem; line-height: 1.6; max-width: 350px; }
.footer-title {
    color: var(--sol-text-bright) !important;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 1rem; position: relative; padding-bottom: 0.5rem;
}
.footer-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 3px; border-radius: 3px;
    background: var(--sol-accent);
}

/* Sosial media — tombol bulat */
.footer-social {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--sol-text-main);
    background: var(--sol-bg-main);
    border: 1px solid var(--sol-border-soft);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.3s ease;
}
.footer-social:active { transform: scale(0.92); }

/* Tautan navigasi & kontak */
.footer-links { font-size: 0.9rem; }
.footer-link {
    color: var(--sol-text-muted); text-decoration: none;
    display: inline-flex; align-items: center;
    padding: 0.2rem 0; min-height: 32px;
    transition: color 0.2s ease;
}
.footer-link .chev {
    display: inline-block; width: 0; opacity: 0; overflow: hidden; color: var(--sol-accent);
    transition: width 0.25s ease, opacity 0.25s ease;
}
.footer-link.is-active { color: var(--sol-accent); font-weight: 700; }
.footer-link.is-active .chev { width: 0.9em; opacity: 1; }
.footer-contact li { color: var(--sol-text-muted); font-size: 0.875rem; line-height: 1.5; }
.footer-contact .ico {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sol-accent-soft); font-size: 0.9rem; color: var(--sol-accent); /* DIUBAH: warna ikon SVG */
}

/* ATURAN TOMBOL: warna lewat --bs-btn-* untuk SEMUA state (tidak pernah transparan) */
.btn-footer-account {
    --bs-btn-color: var(--sol-accent); --bs-btn-bg: rgba(38, 139, 210, 0.1); --bs-btn-border-color: var(--sol-accent);
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: var(--sol-accent); --bs-btn-hover-border-color: var(--sol-accent);
    --bs-btn-active-color: #ffffff; --bs-btn-active-bg: var(--sol-accent-hover); --bs-btn-active-border-color: var(--sol-accent-hover);
    color: var(--sol-accent); background-color: rgba(38, 139, 210, 0.1); border: 1px solid var(--sol-accent);
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 38px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
}
.btn.btn-footer-account:hover, .btn.btn-footer-account:focus-visible { color: #ffffff; background-color: var(--sol-accent); border-color: var(--sol-accent); }
.btn.btn-footer-account:active, .btn.btn-footer-account:first-child:active { color: #ffffff; background-color: var(--sol-accent-hover); border-color: var(--sol-accent-hover); transform: scale(0.96); }
.btn-footer-account .arrow { display: inline-block; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Bar bawah */
.footer-bottom { font-size: 0.8rem; color: var(--sol-text-muted); }
.footer-divider { border-color: var(--sol-border-soft) !important; opacity: 1; }
.footer-legal a {
    color: var(--sol-text-muted); text-decoration: none;
    padding: 0.25rem 0.6rem; border-radius: 50px; border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.footer-legal a.is-active { color: var(--sol-accent); border-color: var(--sol-accent); background: var(--sol-accent-soft); }

.site-footer a:focus-visible { outline: 2px solid var(--sol-accent); outline-offset: 3px; border-radius: 6px; }

/* BARU: baris "Belanja aman" */
.footer-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-top: 2rem; }
.footer-trust-item {
    display: flex; align-items: center; gap: 0.65rem; min-width: 0; padding: 0.7rem 0.8rem;
    border: 1px solid var(--sol-border-soft); border-radius: 12px; background: var(--sol-bg-main);
    color: var(--sol-text-main); text-decoration: none; text-align: left;
    transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-trust-item .t-ico { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sol-accent-soft); color: var(--sol-accent); }
.footer-trust-item b { display: block; font-size: 0.82rem; color: var(--sol-text-bright); line-height: 1.25; }
.footer-trust-item small { display: block; font-size: 0.72rem; color: var(--sol-text-muted); line-height: 1.3; }
a.footer-trust-item:active { transform: scale(0.97); }
/* BARU: layanan pengaduan konsumen (PP 80/2019 tentang Perdagangan Melalui Sistem Elektronik) */
.footer-complaint { font-size: 0.74rem; color: var(--sol-text-muted); line-height: 1.6; text-align: center; margin: 0.4rem auto 0; max-width: 900px; }
.footer-complaint a { color: var(--sol-text-main); text-decoration: none; border-bottom: 1px dashed var(--sol-border-soft); }
/* BARU: pemberitahuan cookie (sekali tampil, disimpan di browser) */
.pw-cookie {
    position: fixed; z-index: 1085; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: 430px; display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 0.95rem;
    background: var(--sol-bg-card); color: var(--sol-text-main); border: 1px solid var(--sol-border-soft); border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); font-size: 0.82rem; line-height: 1.45;
    transform: translate3d(0, 140%, 0); opacity: 0; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.pw-cookie.is-in { transform: none; opacity: 1; }
.pw-cookie a { color: var(--sol-accent); font-weight: 700; }
.pw-cookie button {
    flex: 0 0 auto; min-height: 40px; padding: 0 1rem; border-radius: 50px; border: 0; font-weight: 700; font-size: 0.82rem;
    background: var(--sol-accent); color: #ffffff; cursor: pointer;
}
.pw-cookie button:active { transform: scale(0.96); }
@media (max-width: 575.98px) { .pw-cookie { left: 12px; right: 12px; max-width: none; } }

/* Efek hover hanya untuk perangkat bermouse (tidak "menempel" di HP) */
@media (hover: hover) and (pointer: fine) {
    .footer-brand:hover img { transform: rotate(-6deg) scale(1.06); }
    .footer-social:hover { color: #ffffff; background: var(--sol-accent); border-color: var(--sol-accent); transform: translateY(-4px); box-shadow: 0 8px 18px rgba(38, 139, 210, 0.35); }
    .footer-link:hover { color: var(--sol-text-bright); }
    .footer-link:hover .chev { width: 0.9em; opacity: 1; }
    .footer-contact a.footer-link:hover { color: var(--sol-text-bright); }
    .btn-footer-account:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(38, 139, 210, 0.3); }
    .btn-footer-account:hover .arrow { transform: translateX(4px); }
    .footer-legal a:not(.is-active):hover { color: var(--sol-text-main); border-color: var(--sol-border-soft); }
    a.footer-trust-item:hover { border-color: var(--sol-accent); transform: translateY(-2px); }
    .footer-complaint a:hover { color: var(--sol-accent); border-bottom-color: var(--sol-accent); }
}
.footer-link:active { color: var(--sol-accent); }

/* Kolom muncul bergantian saat footer terlihat (hanya bila JS aktif) */
.pw-js .footer-reveal { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.pw-js .site-footer.is-visible .footer-reveal { opacity: 1; transform: none; }
.site-footer.is-visible .footer-reveal:nth-child(2) { transition-delay: 0.08s; }
.site-footer.is-visible .footer-reveal:nth-child(3) { transition-delay: 0.16s; }

/* ===============================================================
   MOBILE
   Tombol WA & kembali-ke-atas (dari header) melayang di kanan bawah. Saat footer terlihat,
   keduanya turun ke pojok dan BERJAJAR MENYAMPING (DIUBAH 7 Okt 2026), sehingga ruang kosong di bawah
   footer cukup setinggi satu tombol (sebelumnya 8.5rem untuk dua tombol bertumpuk).
=============================================================== */
@media (max-width: 991.98px) {
    .site-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)) !important; }
    .floating-action-container { transition: bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
    .floating-action-container.at-footer { bottom: calc(15px + env(safe-area-inset-bottom, 0px)); flex-direction: row; align-items: center; }
}
@media (max-width: 991.98px) { .footer-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .footer-trust-item { padding: 0.6rem; gap: 0.5rem; }
    .footer-trust-item .t-ico { flex-basis: 30px; height: 30px; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-links .footer-link { justify-content: center; }
    .footer-link { min-height: 40px; } /* target sentuh nyaman */
}

@media (prefers-reduced-motion: reduce) {
    .site-footer::before { animation: none; }
    .pw-cookie { transition: none; }
    .pw-js .footer-reveal { opacity: 1 !important; transform: none !important; }
}
