/* Mahdafzar custom storefront adapter. Isolated from Woodmart product/cart styles. */
/* Replace ONLY the theme's existing sticky bottom toolbar, not the header or mini cart. */
body .wd-toolbar{display:none!important}

/* Fixed, site-wide adaptation of Panel Pro's pp-bottom-nav. */
.mdz-global-toolbar.pp-bottom-nav{
  --mdz-ink:#14213b;--mdz-blue:#2857dc;--mdz-muted:#8290a8;
  direction:rtl;box-sizing:border-box;display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;
  gap:3px;position:fixed;inset-inline:0;bottom:0;
  width:min(600px,calc(100vw - 28px));max-width:100%;
  margin-inline:auto;padding:9px 9px max(10px,env(safe-area-inset-bottom));
  min-height:76px;background:rgba(255,255,255,.97);border:1px solid #e4eafa;
  border-bottom:0;border-radius:20px 20px 0 0;
  box-shadow:0 -6px 35px rgba(18,37,78,.11),0 -1px 2px rgba(18,37,78,.025);
  z-index:10005;isolation:isolate;font-family:inherit;line-height:1.25;
  -webkit-tap-highlight-color:transparent;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
.mdz-global-toolbar *{box-sizing:border-box}
.mdz-global-toolbar .mdz-toolbar-item{
  position:relative;display:flex;min-width:0;min-height:56px;
  flex-direction:column;justify-content:center;align-items:center;gap:6px;
  padding:6px 3px;color:#6c7891;text-decoration:none!important;
  border-radius:14px;transition:color .18s ease,background-color .18s ease,transform .18s ease
}
.mdz-global-toolbar .mdz-toolbar-item:hover,
.mdz-global-toolbar .mdz-toolbar-item:focus-visible{color:#2857dc;background:#eef3ff}
.mdz-global-toolbar .mdz-toolbar-item:focus-visible{outline:2px solid #2857dc;outline-offset:-2px}
.mdz-global-toolbar .mdz-toolbar-item.is-current{color:#2857dc;background:#edf2ff;font-weight:750}
.mdz-global-toolbar .mdz-icon-wrap{display:inline-flex;position:relative;align-items:center;justify-content:center;width:27px;height:27px;flex:none}
.mdz-global-toolbar .mdz-toolbar-icon{display:block;width:23px;height:23px;overflow:visible;flex:none}
.mdz-global-toolbar .mdz-toolbar-label{
  display:block;width:100%;text-align:center;font-size:10.5px;font-weight:650;
  line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.mdz-global-toolbar .mdz-toolbar-count{
  position:absolute;top:-6px;inset-inline-start:-10px;display:flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:1px 4px;color:#fff;background:#ef4f5f;
  border-radius:99px;border:2px solid #fff;
  font-size:10px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums
}
.mdz-global-toolbar .mdz-toolbar-cart .mdz-toolbar-count{background:#2857dc}
body.mdz-toolbar-mounted{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
body.admin-bar .mdz-global-toolbar{z-index:10004}

/* Account shell: preserve the original Panel Pro forms, Ajax, tickets and Woo integration. */
.pp-host .pp-root.mdz-account{
  --pp-primary:#2857dc;--pp-info:#2857dc;--pp-secondary:#4c679a;
  --pp-background:#f6f8fd;--pp-border:#e6eaf4;--pp-text:#18233b;
  --pp-muted:#6c7891;--pp-radius:16px;
  width:100%;max-width:1320px;margin:0 auto;border:1px solid #e9edf7;
  border-radius:22px;box-shadow:0 14px 55px rgba(24,42,85,.055);
  background:var(--pp-background);overflow:hidden
}
.pp-host .pp-root.mdz-account .pp-shell{grid-template-columns:258px minmax(0,1fr)}
.pp-host .pp-root.mdz-account .pp-sidebar{
  background:#fff;gap:18px;border-inline-end:1px solid #e6eaf4;
  padding:24px 14px 22px
}
.pp-host .pp-root.mdz-account .pp-sidebar-brand{padding:8px 10px 13px}
.pp-host .pp-root.mdz-account .pp-sidebar-brand .pp-brand-mark{
  border:none;background:#14264d;color:#fff;width:44px;height:44px;border-radius:14px
}
.pp-host .pp-root.mdz-account .pp-sidebar-brand strong{font-size:20px;line-height:1.4;letter-spacing:-.4px;color:#17213b}
.pp-host .pp-root.mdz-account .pp-sidebar-brand small{font-size:10px;color:#8994a8}
.pp-host .pp-root.mdz-account .pp-identity{
  margin:0 6px;padding:15px 10px;border:1px solid #e8edfa;border-radius:15px;
  background:linear-gradient(130deg,#f6f9ff 0%,#f1f5fd 100%);gap:11px
}
.pp-host .pp-root.mdz-account .pp-identity .pp-avatar{flex:none}
.pp-host .pp-root.mdz-account .pp-identity strong{font-size:12.5px}
.pp-host .pp-root.mdz-account .pp-nav{gap:5px}
.pp-host .pp-root.mdz-account .pp-nav-item{
  min-height:45px;padding:10px 13px;border:0;border-radius:11px;
  color:#62718a;font-size:12px;transition:background-color .18s,color .18s
}
.pp-host .pp-root.mdz-account .pp-nav-item:hover{color:#2857dc;background:#f4f7fe}
.pp-host .pp-root.mdz-account .pp-nav-item.is-active{
  color:#234fc7;background:#eaf0ff;font-weight:800;box-shadow:inset -3px 0 #2857dc
}
.pp-host .pp-root.mdz-account .pp-nav-item .pp-icon{width:19px;height:19px}
.pp-host .pp-root.mdz-account .pp-sidebar-bottom{padding-top:18px;margin-top:16px;border-top:1px solid #eef1f8}
.pp-host .pp-root.mdz-account .pp-header{
  height:auto;min-height:93px;padding:21px 30px;background:#fff;
  border-bottom:1px solid #e9edf7;gap:15px
}
.pp-host .pp-root.mdz-account .pp-header-title{gap:13px}
.pp-host .pp-root.mdz-account .pp-header-title h2{font-size:20px;font-weight:800;line-height:1.6}
.pp-host .pp-root.mdz-account .pp-header-title .pp-eyebrow{font-size:10px;color:#8a96ab}
.pp-host .pp-root.mdz-account .mdz-back{
  display:inline-flex;align-items:center;gap:4px;color:#506993;font-size:10px;
  padding:4px 8px;border:1px solid #e5ebf6;border-radius:8px;text-decoration:none;
  white-space:nowrap;margin-inline-start:8px
}
.pp-host .pp-root.mdz-account .mdz-back:hover{color:#2857dc;border-color:#c7d6fb}
.pp-host .pp-root.mdz-account .mdz-back .pp-icon{width:13px;height:13px}
.pp-host .pp-root.mdz-account .pp-main{padding:30px;min-width:0}
.pp-host .pp-root.mdz-account .pp-welcome{
  border-radius:19px;padding:22px 23px;margin:0 0 17px;
  background:#16264b;color:#fff;min-height:122px;border:1px solid #142447;
}
.pp-host .pp-root.mdz-account .pp-welcome .pp-eyebrow{color:#b2c8ff}
.pp-host .pp-root.mdz-account .pp-welcome h1{color:#fff;font-size:23px;font-weight:800;line-height:1.6}
.pp-host .pp-root.mdz-account .pp-welcome p{color:#c4cfdf;font-size:11px}
.pp-host .pp-root.mdz-account .pp-welcome-art{
  background:#243e78;color:#dbe7ff;border:1px solid #4162a3;
  border-radius:23px;transform:none;width:75px;height:75px
}
.pp-host .pp-root.mdz-account .pp-card{
  border-radius:16px;border-color:#e7ebf5;background:#fff;
  box-shadow:0 4px 16px rgba(22,37,74,.026)
}
.pp-host .pp-root.mdz-account .pp-stats{gap:12px}
.pp-host .pp-root.mdz-account .pp-stat{border-radius:13px;border:1px solid #e7edf9;background:#fff}
.pp-host .pp-root.mdz-account .pp-btn:not(.pp-btn-ghost){border-radius:11px}
.pp-host .pp-root.mdz-account .pp-panel-footer{color:#929daf}
.pp-host .pp-root.mdz-account .pp-auth.pp-auth-compact{max-width:100%}
.pp-host .pp-root.mdz-account .pp-login-brand .pp-brand-mark{background:#2857dc}
.pp-host .pp-root.mdz-account :is(input,select,textarea,button){font-family:inherit}

/* Only the new quick links; everything else is Panel Pro's existing markup. */
.pp-host .pp-root.mdz-account .mdz-dashboard-shortcuts{
  display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:0 0 22px
}
.pp-host .pp-root.mdz-account .mdz-dashboard-link{
  display:flex;align-items:center;gap:11px;padding:15px 13px;min-height:76px;
  background:#fff;border:1px solid #e7ecf7;border-radius:13px;
  text-decoration:none;color:#1d2c4a;transition:color .18s,transform .18s,border-color .18s
}
.pp-host .pp-root.mdz-account .mdz-dashboard-link:hover{color:#2857dc;border-color:#b8cafa;transform:translateY(-2px)}
.pp-host .pp-root.mdz-account .mdz-dash-icon{
  display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;
  color:#2f57c6;background:#eaf0ff;border-radius:12px
}
.pp-host .pp-root.mdz-account .mdz-dash-icon .pp-icon{width:21px;height:21px}
.pp-host .pp-root.mdz-account .mdz-dash-text{display:flex;flex-direction:column;min-width:0;flex:1}
.pp-host .pp-root.mdz-account .mdz-dash-text strong{font-size:12px;line-height:1.7}
.pp-host .pp-root.mdz-account .mdz-dash-text small{font-size:10px;color:#8b96a8;line-height:1.6}
.pp-host .pp-root.mdz-account .mdz-dashboard-link>.pp-icon{width:14px;height:14px;color:#9baac3}

@media (max-width:767px){
  .mdz-global-toolbar.pp-bottom-nav{width:100%;border-radius:19px 19px 0 0;padding:8px 8px max(8px,env(safe-area-inset-bottom));min-height:71px}
  .mdz-global-toolbar .mdz-toolbar-item{min-height:53px;gap:4px}
  .mdz-global-toolbar .mdz-toolbar-label{font-size:10px}
  .pp-host .pp-root.mdz-account .pp-shell{display:block;min-height:0}
  .pp-host .pp-root.mdz-account{border-radius:16px}
  .pp-host .pp-root.mdz-account .pp-header{padding:15px 15px;min-height:80px}
  .pp-host .pp-root.mdz-account .pp-header-title h2{font-size:16px}
  .pp-host .pp-root.mdz-account .mdz-back{margin-inline-start:0;padding:4px 6px;font-size:9px}
  .pp-host .pp-root.mdz-account .pp-main{padding:15px 12px 20px}
  .pp-host .pp-root.mdz-account .pp-welcome{padding:17px 15px;border-radius:15px;margin-bottom:12px;min-height:115px}
  .pp-host .pp-root.mdz-account .pp-welcome h1{font-size:18px}
  .pp-host .pp-root.mdz-account .pp-welcome p{font-size:10px}
  .pp-host .pp-root.mdz-account .pp-welcome-art{width:52px;height:52px;border-radius:16px}
  .pp-host .pp-root.mdz-account .mdz-dashboard-shortcuts{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}
  .pp-host .pp-root.mdz-account .mdz-dashboard-link{padding:11px 10px;min-height:72px;gap:7px}
  .pp-host .pp-root.mdz-account .mdz-dash-icon{width:32px;height:32px;border-radius:9px}
  .pp-host .pp-root.mdz-account .mdz-dash-icon .pp-icon{width:17px;height:17px}
  .pp-host .pp-root.mdz-account .mdz-dash-text strong{font-size:10px}
  .pp-host .pp-root.mdz-account .mdz-dash-text small{font-size:9px}
  .pp-host .pp-root.mdz-account .mdz-dashboard-link>.pp-icon{display:none}
}
@media(max-width:360px){
  .mdz-global-toolbar .mdz-toolbar-label{font-size:9px}
  .mdz-global-toolbar .mdz-toolbar-item{padding-inline:1px}
  .pp-host .pp-root.mdz-account .mdz-dashboard-shortcuts{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
 .mdz-global-toolbar .mdz-toolbar-item,.pp-host .pp-root.mdz-account .mdz-dashboard-link{transition:none;transform:none}
}
@media print{
 body .mdz-global-toolbar.pp-bottom-nav{display:none!important}
 body.mdz-toolbar-mounted{padding-bottom:0!important}
}
