/* 5.4.0 - Local Vazirmatn enforcement + mobile footer polish.
   Safe CSS only: no layout mutation, no checkout/product changes. */

:root{--usg-mobile-footer-card:rgba(255,255,255,.82);--usg-mobile-footer-border:rgba(15,23,42,.08)}
html[data-usg-theme="dark"]{--usg-mobile-footer-card:rgba(16,28,47,.88);--usg-mobile-footer-border:rgba(226,232,240,.14)}
html,body,body.usg-theme,body.usg-theme *{font-family:'USC Vazirmatn'!important}
body.usg-theme .woocommerce,body.usg-theme .woocommerce *,body.usg-theme .elementor,body.usg-theme .elementor *,body.usg-theme input,body.usg-theme button,body.usg-theme select,body.usg-theme textarea{font-family:'USC Vazirmatn'!important}

/* Keep the real site footer, but make the mobile area above the bottom nav clean and usable. */
@media(max-width:768px){
  body.usg-theme .site-footer,
  body.usg-theme .footer-widgets,
  body.usg-theme footer.site-info,
  body.usg-theme .site-info{
    position:relative!important;
    z-index:1!important;
    background:linear-gradient(180deg,rgba(248,250,252,.96),rgba(255,255,255,.98))!important;
    border-top:1px solid var(--usg-mobile-footer-border)!important;
  }
  html[data-usg-theme="dark"] body.usg-theme .site-footer,
  html[data-usg-theme="dark"] body.usg-theme .footer-widgets,
  html[data-usg-theme="dark"] body.usg-theme footer.site-info,
  html[data-usg-theme="dark"] body.usg-theme .site-info{
    background:linear-gradient(180deg,rgba(7,17,31,.96),rgba(16,28,47,.98))!important;
  }
  body.usg-theme .footer-widgets,
  body.usg-theme .inside-footer-widgets,
  body.usg-theme .inside-site-info{
    width:min(100% - 24px,560px)!important;
    margin-inline:auto!important;
    padding-inline:0!important;
  }
  body.usg-theme .footer-widgets,
  body.usg-theme .site-info{
    padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
  }
  body.usg-theme .footer-widgets .widget,
  body.usg-theme .footer-widget,
  body.usg-theme .inside-site-info,
  body.usg-theme .site-info .inside-site-info{
    background:var(--usg-mobile-footer-card)!important;
    border:1px solid var(--usg-mobile-footer-border)!important;
    border-radius:22px!important;
    box-shadow:0 14px 38px rgba(15,23,42,.07)!important;
    padding:18px!important;
    margin:12px auto!important;
    text-align:right!important;
  }
  body.usg-theme .footer-widgets h2,
  body.usg-theme .footer-widgets h3,
  body.usg-theme .footer-widgets .widget-title{
    font-size:16px!important;
    line-height:1.7!important;
    margin:0 0 10px!important;
    color:var(--usg-text)!important;
  }
  body.usg-theme .footer-widgets a,
  body.usg-theme .site-info a{
    display:inline-flex!important;
    align-items:center!important;
    min-height:34px!important;
    border-radius:12px!important;
    color:var(--usg-muted)!important;
  }
  body.usg-theme .footer-widgets ul,
  body.usg-theme .footer-widgets ol{margin:0!important;padding:0!important;list-style:none!important;display:grid!important;gap:6px!important}
  body.usg-theme .footer-widgets p,
  body.usg-theme .site-info{font-size:13px!important;line-height:1.9!important;color:var(--usg-muted)!important}
}
