html,body{min-height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
main,.site-main,#content{flex:1 0 auto}

.footer{flex-shrink:0;padding:0!important;overflow:hidden;border-top:1px solid rgba(34,34,34,.07);background:#f5f6f8;color:#222;font-family:Estedad,Vazirmatn,Arial,sans-serif;line-height:1.6}
.footer *{box-sizing:border-box}
.footer-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.footer-main{min-height:174px;padding-top:30px;padding-bottom:28px;display:grid;grid-template-columns:minmax(170px,.8fr) minmax(320px,1.35fr) minmax(250px,1fr);align-items:center;gap:42px}
.footer-brand,.footer-contact{min-width:0}
.footer-logo{display:inline-flex!important;width:148px;margin:0!important;color:inherit!important;text-decoration:none}
.footer-logo img{display:block;width:100%;height:auto}
.footer-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 22px}
.footer-links a,.footer-bottom-nav a{display:inline-flex!important;min-height:38px;align-items:center;margin:0!important;color:#5f626a;font-size:13px!important;text-decoration:none;transition:color .18s ease}
.footer-links a:hover,.footer-links a:focus-visible,.footer-bottom-nav a:hover,.footer-bottom-nav a:focus-visible,.footer-contact-links a:hover b,.footer-contact-links a:focus-visible b{color:#994099}
.footer-links a:focus-visible,.footer-bottom-nav a:focus-visible,.footer-contact-links a:focus-visible,.footer-enamad-link:focus-visible{outline:2px solid #994099;outline-offset:3px}

.footer-contact{display:flex;align-items:center;justify-content:flex-end;gap:20px}
.footer-contact-links{display:grid;gap:4px}
.footer-contact-links a{display:flex!important;min-height:38px;align-items:center;gap:8px;margin:0!important;color:#777a82;font-size:11.5px!important;text-decoration:none}
.footer-contact-links b{color:#303137;font-size:12.5px;font-weight:600;transition:color .18s ease}
.footer-enamad-link{display:inline-flex!important;width:76px;height:76px;flex:0 0 76px;align-items:center;justify-content:center;margin:0!important;color:inherit!important}
.footer-enamad-seal{display:block;width:76px;height:76px;object-fit:contain}

.footer-bottom{padding:0!important;border-top:1px solid rgba(34,34,34,.08)}
.footer-bottom-inner{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.footer-bottom p{margin:0!important;color:#858891;font-size:11px!important}
.footer-bottom-nav{display:flex;align-items:center}
.footer-bottom-nav a{min-height:32px;color:#777a82;font-size:11px!important}

@media(max-width:900px){
  .footer-main{gap:26px;grid-template-columns:minmax(140px,.65fr) minmax(270px,1.2fr) minmax(235px,1fr)}
  .footer-links{column-gap:16px}
}

@media(max-width:768px){
  .footer{padding-bottom:92px!important}
  .footer-main{min-height:0;padding-top:24px;padding-bottom:20px;display:flex;flex-direction:column;gap:12px;text-align:center}
  .footer-logo{width:126px}
  .footer-links{max-width:380px;gap:0 15px}
  .footer-links a{min-height:36px;font-size:12px!important}
  .footer-contact{width:100%;justify-content:center;gap:18px}
  .footer-contact-links{gap:0}
  .footer-contact-links a{min-height:34px;justify-content:center;font-size:11px!important}
  .footer-contact-links b{font-size:12px}
  .footer-enamad-link,.footer-enamad-seal{width:68px;height:68px}
  .footer-enamad-link{flex-basis:68px}
  .footer-bottom-inner{min-height:48px;justify-content:center;gap:12px;text-align:center}
  .footer-bottom p,.footer-bottom-nav a{font-size:10.5px!important}
}

@media(max-width:360px){
  .footer-main{padding-right:10px;padding-left:10px}
  .footer-links{column-gap:11px}
  .footer-contact{gap:12px}
  .footer-bottom-inner{gap:7px}
}

/* Header cart badge — kept here because this stylesheet is loaded with the footer. */
.header-cart{position:relative}
.cart-icon{position:relative!important;display:inline-flex!important;align-items:center;justify-content:center;color:#444;text-decoration:none}
#cart-count{position:absolute!important;top:-8px!important;right:-10px!important;min-width:18px!important;height:18px!important;padding:0 6px!important;display:inline-flex!important;align-items:center;justify-content:center;background:#7f2a7d!important;color:#fff!important;font-size:11px!important;font-weight:600!important;line-height:18px!important;text-align:center!important;border-radius:9px!important;box-shadow:0 1px 3px rgba(0,0,0,.15)!important;transform:scale(1)!important;transition:transform .25s ease!important}
.cart-icon:hover #cart-count{transform:scale(1.08)!important}

/* Fixed mobile navigation */
.spg-mobile-footer{display:none}
@media(max-width:768px){
  .spg-mobile-footer{position:fixed;right:auto;bottom:10px;left:50%;z-index:8000;width:calc(100% - 24px);height:64px;padding:5px 6px calc(5px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:4px;transform:translateX(-50%);border:1px solid rgba(153,64,153,.12);border-radius:23px;background:rgba(255,255,255,.96);box-shadow:0 -12px 32px rgba(17,24,39,.1),0 8px 24px rgba(153,64,153,.08);backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);transition:opacity .28s ease,transform .28s ease}
  .spg-mobile-footer .footer-item{position:relative;z-index:1;height:52px;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;border-radius:18px;color:#73757c;font-size:10.5px;font-weight:750;line-height:1.15;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:color .2s ease,background .2s ease,transform .18s ease}
  .spg-mobile-footer .footer-item i{color:currentColor;font-size:18px;line-height:1;transition:transform .2s ease}
  .spg-mobile-footer .footer-item span{line-height:1.15;white-space:nowrap}
  .spg-mobile-footer .footer-item.active{background:rgba(153,64,153,.09);color:#7f2a7d}
  .spg-mobile-footer .footer-item.active i{transform:translateY(-1px)}
  .spg-mobile-footer .footer-item:focus-visible{outline:2px solid #994099;outline-offset:-2px}
  .spg-mobile-footer .footer-item:active{transform:scale(.95)}
  .spg-mobile-footer a[href="/consult/"]{color:#994099;font-weight:800}
  .spg-mobile-footer a[href="/consult/"].active{background:#994099;color:#fff;box-shadow:0 8px 18px rgba(153,64,153,.2)}
  .cart-footer-btn{position:relative}
  #footer-cart-count{position:absolute;top:2px;right:16px;min-width:15px;height:15px;padding:0 4px;display:flex;align-items:center;justify-content:center;border:1.5px solid #fff;border-radius:999px;background:#7f2a7d;color:#fff;font-size:9px;font-weight:900;line-height:15px;box-shadow:0 4px 10px rgba(153,64,153,.28)}
  #footer-cart-count:empty{display:none}
  body.drawer-open .spg-mobile-footer{opacity:0;visibility:hidden;pointer-events:none}
}

@media(max-width:360px){
  .spg-mobile-footer{width:calc(100% - 16px);gap:1px}
  .spg-mobile-footer .footer-item{font-size:10px}
  #footer-cart-count{right:11px}
}

@media(max-width:768px) and (prefers-reduced-motion:reduce){
  .spg-mobile-footer{transition:none}
  .footer *{transition-duration:.01ms!important}
}

@media(min-width:769px){
  .spg-mobile-footer{display:none!important}
  #footer-cart-count{display:none!important}
}

#footer-cart-count:empty{display:none}
