/* Shared by every app screen and included in navigation fragments. */
.ah-wrap .pk-shared-header{position:sticky;top:0;z-index:50;background:#fafafe;color:#222338;backdrop-filter:blur(12px)}
.ah-wrap .pk-shared-header *{box-sizing:border-box}
.ah-wrap .pk-shared-header .ah-header{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;direction:ltr;align-items:center;gap:8px;padding:14px 16px 12px;min-height:78px}
.ah-wrap .pk-shared-header .ah-cart-btn,.ah-wrap .pk-shared-header .ah-support-btn{display:flex;align-items:center;justify-content:center;position:relative;width:42px;height:44px;padding:0;border:0;border-radius:12px;background:transparent;text-decoration:none;color:#6855f5}
.ah-wrap .pk-shared-header .ah-cart-btn{color:#222338}
.ah-wrap .pk-shared-header .ah-cart-btn>svg{width:27px;height:27px}
.ah-wrap .pk-shared-header .ah-support-ic{display:flex;align-items:center;justify-content:center;width:42px;height:42px;background:#eeebff;border:0;border-radius:13px;box-shadow:none}
.ah-wrap .pk-shared-header .ah-support-ic svg{width:23px;height:23px}
.ah-wrap .pk-shared-header .ah-cart-badge{right:-2px;left:auto;top:0;background:#ff6b18;color:#fff;border:2px solid #fafafe}
.ah-wrap .pk-shared-header .ah-address-wrap{display:flex;justify-content:center;min-width:0;direction:rtl;width:100%}
.ah-wrap .pk-shared-header .ah-address-block{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;max-width:100%;min-width:0;min-height:48px;padding:0 19px;border:0;border-radius:0;background:none;text-align:center;color:#222338;font-family:inherit}
.ah-wrap .pk-shared-header .pk-address-pin{display:none}
.ah-wrap .pk-shared-header .ah-address-title-bold{display:block;font-size:14px;font-weight:700;line-height:1.8;color:#222338;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ah-wrap .pk-shared-header .ah-address-title-bold:before{content:'ارسال به: '}
.ah-wrap .pk-shared-header .ah-address-full-inline{display:block;font-size:11px;font-weight:400;line-height:1.8;color:#797a89;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ah-wrap .pk-shared-header .ah-address-block>svg{position:absolute;left:0;top:calc(50% - 8px);width:15px;height:15px;color:#6855f5}
.ah-wrap .pk-shared-header .ah-address-dropdown{min-width:200px;left:50%;right:auto;transform:translateX(-50%);width:100%;text-align:right}
.ah-wrap .pk-shared-header a:focus-visible,.ah-wrap .pk-shared-header button:focus-visible{outline:3px solid #b4a7ff;outline-offset:2px}
@media(max-width:360px){.ah-wrap .pk-shared-header .ah-header{padding-right:10px;padding-left:10px;gap:5px}.ah-wrap .pk-shared-header .ah-address-title-bold{font-size:13px}}
/* Visible immediately while the authoritative next page is loading. */
/* ۲.۳.۱۰: نوار پیشرفت که از لحظه‌ی لمس شروع به پر شدن می‌کند (سریع در ابتدا، آهسته نزدیک پایان). */
html.pk-navigating::before{content:"";position:fixed;top:0;right:0;left:0;height:3px;background:linear-gradient(90deg,#a594ff,#6855f5);box-shadow:0 0 10px rgba(104,85,245,.55);z-index:99999;pointer-events:none;transform-origin:100% 50%;animation:pk-nav-grow 6s cubic-bezier(.08,.82,.17,1) forwards}
@keyframes pk-nav-grow{0%{transform:scaleX(.06)}12%{transform:scaleX(.55)}40%{transform:scaleX(.8)}100%{transform:scaleX(.94)}}
html.pk-navigating .ah-wrap[aria-busy="true"]{opacity:.62;transition:opacity .18s ease .14s;pointer-events:none}
@media(prefers-reduced-motion:reduce){html.pk-navigating::before{animation:none;transform:scaleX(.7)}html.pk-navigating .ah-wrap[aria-busy="true"]{transition:none}}
/* ۲.۴.۳۳ — اسکلتِ صفحه (Shimmer) وقتی صفحه‌ی بعد هنوز نرسیده؛ نوار پایین دیده می‌ماند. */
html.pk-skeleton body::after{display:none!important;content:"";position:fixed;top:0;right:0;left:0;bottom:calc(66px + env(safe-area-inset-bottom,0px));max-width:520px;margin:0 auto;z-index:19;pointer-events:none;background:linear-gradient(100deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.8) 50%,rgba(255,255,255,0) 70%) -150% 0/60% 100% no-repeat,linear-gradient(#eeedf5,#eeedf5) 16px 18px/calc(100% - 32px) 44px no-repeat,linear-gradient(#eeedf5,#eeedf5) 16px 78px/calc(100% - 32px) 150px no-repeat,linear-gradient(#eeedf5,#eeedf5) 16px 244px/55% 16px no-repeat,linear-gradient(#f2f1f7,#f2f1f7) 16px 270px/35% 12px no-repeat,linear-gradient(#eeedf5,#eeedf5) 16px 302px/calc(100% - 32px) 96px no-repeat,linear-gradient(#eeedf5,#eeedf5) 16px 410px/calc(100% - 32px) 96px no-repeat,linear-gradient(#eeedf5,#eeedf5) 16px 518px/calc(100% - 32px) 96px no-repeat,#fbfbfe;border-radius:0;opacity:0;animation:pk-skel-in .16s ease forwards,pk-shimmer 1.15s linear infinite}
@keyframes pk-skel-in{to{opacity:1}}
@keyframes pk-shimmer{to{background-position:260% 0,16px 18px,16px 78px,16px 244px,16px 270px,16px 302px,16px 410px,16px 518px,0 0}}
@media(prefers-reduced-motion:reduce){html.pk-skeleton body::after{animation:pk-skel-in .16s ease forwards}}
/* ۲.۴.۳۳ — بازخوردِ فوریِ لمس روی کارت‌ها و دکمه‌ها (حسِ اپلیکیشنِ بومی). */
.ah-wrap a,.ah-wrap button,.ah-bottom-nav a{-webkit-tap-highlight-color:transparent}
.ah-wrap a[class*="card"],.ah-wrap .fc-add-btn,.ah-wrap .fc-step-btn,.ah-wrap .cart-step-btn,.ah-wrap .ah-cat-tile,.ah-wrap .dc-mini-card{transition:transform .12s ease}
.ah-wrap a[class*="card"]:active,.ah-wrap .ah-cat-tile:active,.ah-wrap .dc-mini-card:active{transform:scale(.975)}
.ah-wrap .fc-add-btn:active,.ah-wrap .fc-step-btn:active,.ah-wrap .cart-step-btn:active{transform:scale(.9)}
html{scroll-behavior:auto}
@media(prefers-reduced-motion:reduce){.ah-wrap a[class*="card"]:active,.ah-wrap .fc-add-btn:active,.ah-wrap .fc-step-btn:active{transform:none}}
.pk-guest-login{text-decoration:none!important;color:inherit}.pk-guest-login .ah-address-title-bold:before{content:none!important}.pk-guest-login .ah-address-title-bold{color:#5a46e0}