/* PinDoDo v58 — production UI refinement */
:root{--pdd58-radius:20px;--pdd58-shadow:0 14px 42px rgba(24,18,40,.09)}
html{scroll-behavior:smooth}
button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb,var(--accent,#7c3aed) 35%,transparent);outline-offset:3px}
img{max-width:100%}
.telegram-auth-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;margin:4px 0 12px;min-height:44px}
#telegramLoginWidget{display:flex;justify-content:center;min-height:44px;width:100%}
#telegramLoginWidget iframe{max-width:100%}
#telegramAuthError{font-size:12px;line-height:1.45;color:var(--del,#c24135);text-align:center;padding:9px 12px;border-radius:12px;background:var(--del-wash,#fff0ed);width:100%}
@media(min-width:900px){.card{max-width:430px}}
@media(max-width:600px){.telegram-auth-wrap{margin-bottom:8px}.vh{font-size:clamp(24px,7vw,29px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Shared storefront polish — intentionally avoids overriding page-specific layouts */
:where(.product-card,.p-card,.cat-card,.order-card,.wallet-card,.profile-card){
  border:1px solid var(--line)!important;
  box-shadow:0 8px 26px rgba(22,18,35,.055);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
@media(hover:hover){
  :where(.product-card,.p-card,.cat-card,.order-card):hover{
    transform:translateY(-2px);
    box-shadow:0 16px 38px rgba(22,18,35,.10);
    border-color:rgba(124,58,237,.24)!important;
  }
}
:where(input,select,textarea){max-width:100%}
:where(input,select,textarea):focus-visible{border-color:var(--accent,#7c3aed)}
:where(.bottom-nav,.bottom-navigation){padding-bottom:env(safe-area-inset-bottom,0px)}
:where(.scr,.screen,.page-content){overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
:where(.sbtn,.primary-btn,.btn-primary){font-weight:700;letter-spacing:-.01em;transition:filter .16s ease,transform .16s ease,box-shadow .16s ease}
:where(.sbtn,.primary-btn,.btn-primary):not(:disabled):active{transform:translateY(1px) scale(.99)}
:where(.sbtn,.primary-btn,.btn-primary):disabled{cursor:not-allowed;opacity:.55}
@media(max-width:600px){
  :where(.product-card,.p-card,.cat-card){min-width:0}
  :where(.product-card img,.p-card img){max-width:100%}
}
