/* =========================
   Footer layout
========================= */
.site-footer {
    padding-bottom: 90px;
}

.site-footer.admin-footer {
    padding-bottom: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.06));
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 10px;
    color: var(--text, #1f1f1f);
}

.footer-grid p {
    margin: 0 0 8px;
    color: #666;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-dark, #3f9443);
}

.footer-bottom {
    padding: 18px 0 8px;
    text-align: center;
    color: var(--muted, #7b7b7b);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* =========================
   Mobile bottom navigation
========================= */
.mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(100% - 18px, 480px);
    padding: 10px 8px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.mobile-bottom-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 16px;
    color: #707070;
    font-size: 0.76rem;
    text-decoration: none;
    text-align: center;
    transition: 0.2s ease;
}

.mobile-bottom-nav a.active {
    color: var(--primary-dark, #3f9443);
    font-weight: 700;
}

.mobile-bottom-nav a:hover {
    background: rgba(76, 175, 80, 0.08);
}

.mobile-bottom-nav a i {
    font-size: 1.15rem;
    line-height: 1;
}

.bottom-cart-badge {
    position: absolute;
    top: 2px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary, #4caf50);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

/* =========================
   Responsive
========================= */
@media (max-width: 767px) {
    .site-footer:not(.admin-footer) .footer-grid,
    .site-footer:not(.admin-footer) .footer-bottom {
        display: none;
    }
}

@media (min-width: 768px) {
    .site-footer {
        padding-bottom: 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-bottom-nav {
        display: none;
    }
}