/* Footer tipe 2 (menyala bersama Navbar tipe 2). Markup: Pages/Shared/_FooterType2.cshtml. Hanya dimuat bila tipe 2; semua aturan di bawah .foot2.
   Warna dari tema: --brand (judul, ikon, bar bawah), --ink (teks), --bg (latar). */

.foot2 {
    margin-top: 3rem;
    color: var(--ink, #212529);
    background: var(--bg, #fff);
    font-size: .9375rem;
    --foot2-wrap: 1140px;
}

.foot2 .foot2-wrap {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: var(--foot2-wrap);
    margin: 0 auto;
    padding: 0 .875rem;
}

/* ---------- Bagian utama ---------- */
.foot2 .foot2-main {
    padding: 3.5rem 0 3rem;
    border-top: 1px solid var(--line, #e3e7ec);
}

.foot2 .foot2-brand { flex: 0 0 33.333%; max-width: 33.333%; padding-right: 1.5rem; }

.foot2 .foot2-logo { display: inline-block; max-width: 100%; }
.foot2 .foot2-logo img { width: min(20.75rem, 100%); max-width: 100%; height: auto; max-height: none; }

.foot2 .foot2-address { position: relative; margin-top: 1.5rem; padding: 0 0 1.5rem .75rem; }
/* Garis pendek abu-abu di bawah alamat (seperti situs lama). */
.foot2 .foot2-address::after { content: ""; position: absolute; left: 0; bottom: 0; width: 11.75rem; max-width: 100%; border-bottom: 2px solid var(--line, #d8d8d8); }

.foot2 .foot2-addr p { margin: 0 0 .35rem; line-height: 1.5; }
.foot2 .foot2-addr strong { display: block; margin-bottom: .15rem; }
.foot2 .foot2-address a { color: inherit; text-decoration: none; }
.foot2 .foot2-address a:hover { color: var(--brand); }

/* Kanan: tiga kolom sama lebar (populer · menu footer · kontak); kolom yang kosong tidak dicetak. */
.foot2 .foot2-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 1 0;
    gap: 1.5rem;
}

/* Posisi tetap seperti situs lama: populer di sepertiga pertama (bisa kosong), menu footer ke-2, kontak ke-3. */
.foot2 .foot2-popular { grid-column: 1; }
.foot2 .foot2-nav { grid-column: 2; }
.foot2 .foot2-contact { grid-column: 3; }

.foot2 .foot2-title {
    margin: 0 0 1.5rem;
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.foot2 .foot2-title + .foot2-links + .foot2-title { margin-top: 2rem; }

.foot2 .foot2-links { margin: 0; padding: 0; list-style: none; }
.foot2 .foot2-links li { margin: 0 0 .65rem; }
.foot2 .foot2-links a,
.foot2 .foot2-line a { color: inherit; text-decoration: none; }
.foot2 .foot2-links a:hover,
.foot2 .foot2-line a:hover { color: var(--brand); text-decoration: underline; }

.foot2 .foot2-line { margin: 0 0 .35rem; }

/* Tombol WhatsApp + ikon sosial */
.foot2 .foot2-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: 1.1rem 0 1rem;
    padding: .45rem .875rem;
    color: #fff;
    background: #00d96b;
    border-radius: .2rem;
    font-weight: 500;
    text-decoration: none;
}

.foot2 .foot2-wa:hover,
.foot2 .foot2-wa:focus-visible { color: #fff; filter: brightness(.92); }

.foot2 .foot2-social { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1rem; }

.foot2 .foot2-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    color: var(--brand);
    background: color-mix(in srgb, var(--ink, #000) 15%, var(--bg, #fff));
    border-radius: .15rem;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}

.foot2 .foot2-social a:hover,
.foot2 .foot2-social a:focus-visible { color: var(--brand-contrast, #fff); background: var(--brand); }

/* Pesan online & marketplace (hanya bila diisi) */
.foot2 .foot2-stores { display: flex; flex-direction: column; gap: .45rem; margin-top: 1.25rem; font-size: .875rem; }
.foot2 .foot2-stores strong { margin-bottom: .1rem; }
.foot2 .foot2-stores a { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
.foot2 .foot2-stores a:hover { color: var(--brand); }

/* ---------- Bar bawah ---------- */
.foot2 .foot2-bottom { color: var(--brand-contrast, #fff); background: var(--brand); font-size: .8125rem; }
.foot2 .foot2-bottom .foot2-wrap { align-items: center; min-height: 3.4rem; }
.foot2 .foot2-bottom a { color: inherit; text-decoration: underline; }

/* ---------- Responsif ---------- */
@media (min-width: 1600px) {
    .foot2 { --foot2-wrap: 1300px; }
}

@media (max-width: 991.98px) {
    .foot2 .foot2-main { padding: 2.25rem 0 1.5rem; }
    .foot2 .foot2-wrap { flex-direction: column; }
    .foot2 .foot2-brand { flex: none; max-width: 100%; padding: 0 0 2rem; }
    .foot2 .foot2-cols { display: flex; flex-direction: column; width: 100%; gap: 2rem; }
    .foot2 .foot2-popular, .foot2 .foot2-nav, .foot2 .foot2-contact { grid-column: auto; }
    .foot2 .foot2-bottom .foot2-wrap { justify-content: center; }
    .foot2 .foot2-title { margin-bottom: 1rem; font-size: 1.3rem; }
    .foot2 .foot2-links li { margin-bottom: .5rem; }
}
