/* ============================================================
   ApeMart.lk — Shared Footer V32
   Clean, premium marketplace footer with responsive mobile nav.
============================================================ */
.footer{width:100%;margin-top:auto;background:#101722;color:#dce4ed;padding:0 0 24px}.footer-container{width:min(1240px,calc(100% - 48px));margin:auto;padding:58px 0 46px;display:grid;grid-template-columns:1.55fr 1fr 1fr 1fr;gap:48px}.footer-brand{display:flex;flex-direction:column;align-items:center;gap:15px;text-align:center}.footer-brand-link{display:inline-flex;align-items:center;gap:11px;color:#fff;text-decoration:none}.footer-logo-wrap{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.12)}.footer-logo{width:40px;height:40px;object-fit:contain}.footer-brand-link strong{display:block;font-size:20px;letter-spacing:-.02em}.footer-brand-link small{display:block;margin-top:5px;color:#8f9cad;font-size:8px;letter-spacing:.10em;font-weight:800;text-transform:uppercase}.footer-brand>p{max-width:325px;margin:0;color:#9aa8b9;font-size:12px;line-height:1.8}.footer-sell-prompt{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:325px;margin:8px auto 0;text-align:center}.footer-sell-link{margin-top:2px}.footer-sell-prompt strong{color:#fff;font-size:13px;line-height:1.35;font-weight:900}.footer-sell-prompt span{color:#9aa8b9;font-size:11px;line-height:1.6}.footer-sell-link{align-self:center;display:inline-flex;align-items:center;gap:7px;color:#fff;background:#ff6b00;text-decoration:none;padding:10px 14px;border-radius:9px;font-size:11px;font-weight:900;transition:.2s}.footer-sell-link:hover{background:#e96100;transform:translateY(-1px)}.footer-box{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.footer-box h3{margin:1px 0 8px;color:#fff;font-size:13px}.footer-box a{color:#98a6b6;text-decoration:none;font-size:11px;line-height:1.5;transition:.2s}.footer-box a:hover{color:#ff9a59;transform:translateX(3px)}.footer-bottom{width:min(1240px,calc(100% - 48px));margin:auto;padding-top:19px;border-top:1px solid rgba(148,163,184,.15);display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-bottom p{margin:0;color:#778597;font-size:10px}.social-links{display:flex;align-items:center;gap:7px}.social-links a{width:33px;height:33px;display:grid;place-items:center;border-radius:9px;color:#aebac8;background:#192332;border:1px solid #293646;text-decoration:none;font-size:12px;transition:.2s}.social-links a:hover{color:#fff;background:#ff6b00;border-color:#ff6b00;transform:translateY(-1px)}.social-links .admin-link{margin-left:6px;color:#7f8da0}.mobile-bottom-nav{display:none}
@media(max-width:900px){.footer-container{grid-template-columns:1.5fr 1fr 1fr;gap:30px}.footer-box:last-child{grid-column:2 / 4}}
@media(max-width:768px){.footer{padding-bottom:92px}.footer-container{width:calc(100% - 28px);padding:42px 0 34px;grid-template-columns:1fr 1fr;gap:30px 22px}.footer-brand{grid-column:1 / -1}.footer-brand>p{max-width:390px}.footer-box:last-child{grid-column:auto}.footer-bottom{width:calc(100% - 28px);align-items:flex-start;flex-direction:column-reverse;gap:13px}.social-links{width:100%}.social-links a{width:31px;height:31px}.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:10000;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;min-height:76px;padding:7px 6px calc(7px + env(safe-area-inset-bottom));gap:2px;background:rgba(255,255,255,.97);border-top:1px solid #e8edf2;box-shadow:0 -10px 30px rgba(15,23,42,.10);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.mobile-nav-item{position:relative;min-width:0;height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:3px 2px;border-radius:14px;color:#697586;text-decoration:none;font-size:9.5px;line-height:1.1;font-weight:800;white-space:nowrap}.mobile-nav-item>i{width:31px;height:31px;display:grid;place-items:center;font-size:18px}.mobile-nav-item>span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis}.mobile-nav-item.active{color:#ed6a16;background:#fff4e9}.mobile-nav-item.active::after{content:"";position:absolute;bottom:2px;left:50%;width:5px;height:5px;border-radius:50%;background:#ff6b00;transform:translateX(-50%)}.mobile-nav-post{height:67px;margin-top:-12px;background:transparent!important}.mobile-nav-post-icon{width:49px!important;height:49px!important;flex:0 0 49px;display:grid!important;place-items:center;border-radius:16px;background:#18b957;color:#fff;border:3px solid #fff;box-shadow:0 7px 20px rgba(24,185,87,.25)}.mobile-nav-post-icon i{font-size:23px}}
@media(max-width:390px){.footer-container,.footer-bottom{width:calc(100% - 24px)}.mobile-bottom-nav{padding-left:4px;padding-right:4px}}

/* Copyright + secure administrator entry stay together on the bottom line. */
.footer-copyright{display:flex;align-items:center;gap:10px;min-width:0}
.footer-copyright p{margin:0}
.footer-copyright .admin-link{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:#8b98a8;background:#192332;border:1px solid #293646;text-decoration:none;font-size:10px;transition:.2s}
.footer-copyright .admin-link:hover{color:#fff;background:#ff6b00;border-color:#ff6b00;transform:translateY(-1px)}
@media(max-width:768px){.footer-copyright{gap:8px}}


/* Mobile: keep the shared footer at the bottom when page content is shorter than the viewport. */
@media (max-width: 768px) {
  body > [data-apemart-component="footer"] { margin-top: auto; }
}
