.st-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-block: clamp(3rem, 8vh, 5rem);
    border-top: 1px solid var(--border-color);
}
.st-footer .custom-logo {
    max-height: 80px; /* Ukuran proporsional untuk footer */
    width: auto;
    height: auto;
    object-fit: contain; /* Memastikan logo tidak terdistorsi */
}
/* Grid Layout 3 Kolom Responsif */
.st-footer-grid {
    display: grid;
    /* Otomatis 1 kolom di mobile, 3 kolom di desktop */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
}

.st-footer-heading {
    margin-top: 0; /* Menghilangkan margin atas bawaan browser */
    margin-bottom: 1.5rem;
    font-size: var(--st-p-size);
    font-weight: 700;
    color: var(--footer-text);
}

.st-footer-desc {
    margin-top: 1rem; /* Tambahkan ini jika terasa terlalu dekat dengan logo */
    line-height: 1.6;
}

/* Kolom 1: Social Media */
.st-social-icons {
    display: flex;
    gap: 15px;
}

.st-social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    border-radius: var(--border-radius);
    transition: var(--st-trans);
}

.st-social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Kolom 2: Navigation */
.st-footer-nav ul {
    list-style: none;
}

.st-footer-nav li {
    margin-bottom: 10px;
}

.st-footer-nav a {
    color: var(--footer-text);
    opacity: 0.8;
    text-decoration: none;
    transition: var(--st-trans);
}

.st-footer-nav a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--accent-color);
}

/* Kolom 3: Contact List */
.st-contact-list {
    list-style: none;
}

.st-contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0.8;
}

.st-contact-list i {
    color: var(--accent-color);
    margin-top: 4px;
}

.st-contact-list a {
    color: inherit;
}

/* Copyright Section */
.st-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Floating WA */
.st-floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

@media (max-width: 768px) {
    .st-footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .st-flex-bottom { flex-direction: column; text-align: center; gap: 10px; }
    .st-floating-wa span { display: none; } /* Hanya icon di mobile */
    .st-floating-wa { width: 50px; height: 50px; padding: 0; justify-content: center; bottom: 85px; /* Biar tidak nabrak sticky CTA PDP */ }
}

/* --- Tambahan untuk Handling Logo Khusus Akila Florist --- */

.st-footer-logo {
    margin-bottom: 0.5rem;
    display: block;
}

.st-footer-logo img {
    max-height: 80px; /* Samakan dengan .custom-logo agar konsisten */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: var(--st-trans); /* Menggunakan variabel transisi Anda */
}

.st-footer-logo img:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Styling Nama Toko jika Logo tidak diupload */
.st-footer-logo .st-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--footer-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.st-footer-logo .st-logo-text span {
    color: var(--accent-color); /* Menggunakan warna aksen tema */
}

/* Penyesuaian Mobile */
@media (max-width: 768px) {
    .st-footer-logo {
        display: flex;
        justify-content: center; /* Tetap center di mobile */
        margin-bottom: 1.5rem;   /* Jarak ke deskripsi */
    }
    
    .st-footer-logo img {
        /* Ganti max-height menjadi max-width */
        max-width: 140px; /* Atur lebar ini sesuai keinginan (biasanya 120px-150px) */
        max-height: none;  /* Mematikan batasan tinggi dari desktop */
        width: 100%;       /* Memastikan gambar responsif */
        height: auto;      /* Menjaga rasio agar tetap asli/tidak gepeng */
    }

    .st-footer {
        /* Kita kecilkan padding atas & bawahnya menjadi lebih rapat */
        padding-block: 2rem; 
        
        /* Jika Anda ingin tetap pakai clamp tapi versi lebih kecil: */
        /* padding-block: clamp(1.5rem, 4vh, 2.5rem); */
    }

    .st-footer-grid {
        /* Kurangi juga jarak antar kolom di mobile agar tidak terlalu renggang */
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .st-footer-bottom {
        /* Kurangi padding di bagian copyright */
        padding-top: 1.5rem;
    }
}

/* --- SEO Friendly Off-Screen Footer --- */

@media (max-width: 768px) {
    /* Targetkan footer yang memiliki class desktop-only */
    footer.st-footer.desktop-only {
        /* Batalkan display: none jika sebelumnya ada di global.css */
        display: block !important; 
        
        /* Pindahkan ke luar viewport secara absolut */
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        
        /* Kecilkan ukurannya agar tidak memakan resource rendering */
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        
        /* Opsional: membuat elemen tidak terlihat oleh mata tapi tetap ada */
        visibility: hidden;
        pointer-events: none;
    }

    /* Pastikan elemen lain seperti Floating WA tetap aman */
    .st-floating-wa.desktop-only {
        display: none !important; /* Untuk elemen UI murni seperti tombol WA, display:none tidak masalah */
    }
}