/* Phone menu — parts/site-menu.php in a drawer from the right (drawer.css). Made of the site's own pieces, no cards:
   the account dropdown's user row (in the foot, beside «خروج»), category photos on the category cards' orange circle (three per row), then the
   account dropdown's icon rows (grey icon, label, grey hint or badge) in groups split by thin lines. */
.site-menu__body { display: flex; flex-direction: column; height: 100%; }
.site-menu__logo { display: block; }
.site-menu__logo img { display: block; width: auto; height: 36px; }
.site-menu__scroll { display: grid; align-content: start; flex: 1; min-height: 0; padding: var(--sp-8) var(--sp-24) var(--sp-24); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.site-menu .site-menu__scroll > * + * { margin-top: var(--sp-24); padding-top: var(--sp-16); border-top: 1px solid var(--n-95); }

/* Categories: a plain dark label, then the category card's photo on an orange circle, name under it */
.site-menu__cats { display: grid; gap: var(--sp-12); }
.site-menu__tag { margin: 0; color: var(--n-10); font-size: var(--fs-body-m); font-weight: 700; }
.site-menu__cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16) var(--sp-8); margin: 0; padding: 0; list-style: none; }
.site-menu__cat-grid a { display: grid; justify-items: center; gap: 4px; color: var(--n-20); font-size: var(--fs-body-s); font-weight: 600; line-height: 1.4; text-align: center; transition: color .15s; }
.site-menu__cat-grid a:hover, .site-menu__cat-grid a:active { color: var(--blue); }
.site-menu__cat-img { display: grid; place-items: center; width: 64px; height: 64px; object-fit: contain; background: radial-gradient(circle at 50% 55%, var(--orange) 0 25px, transparent 26px); transition: translate .2s; }
.site-menu__cat-grid a:hover .site-menu__cat-img { translate: 0 -2px; }
.site-menu__cat-img.icon { color: var(--n-100); font-size: 24px; line-height: 1; background-position: 0 0; background-image: radial-gradient(circle, var(--orange) 0 25px, transparent 26px); } /* no photo: icon dead centre on the circle */

/* Icon rows (same look as the account dropdown's links) */
.site-menu__rows, .site-menu__pages__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-menu__rows a, .site-menu__pages__list a { display: flex; align-items: center; gap: var(--sp-12); padding: 10px var(--sp-8); border-radius: var(--r-12); color: var(--n-30); font-size: var(--fs-body-m); font-weight: 600; transition: color .15s, background-color .15s; }
.site-menu__rows .icon, .site-menu__pages__list .icon { flex: none; color: var(--n-50); font-size: 20px; }
.site-menu__rows a:hover, .site-menu__pages__list a:hover { color: var(--n-10); background: var(--n-97); }
.site-menu__rows small { margin-inline-start: auto; color: var(--n-50); font-size: var(--fs-body-s); font-weight: 500; }
.site-menu__rows .account-menu__badge { margin-inline-start: auto; }
.site-menu__pages__list .is-current > a, .site-menu__pages__list .is-current > a .icon { color: var(--blue); }
.site-menu__pages__list .sub-menu { display: none; }

.site-menu__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); padding: var(--sp-12) var(--sp-24) calc(var(--sp-12) + env(safe-area-inset-bottom)); border-top: 1px solid var(--n-95); }
/* Logged in: user row | «خروج» on one line (the name shortens with …); guests: the same row as «ورود | ثبت‌نام» */
.site-menu__user { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 var(--sp-8); padding: 4px; border-radius: var(--r-12); }
.site-menu__user .account-menu__avatar { grid-row: 1 / 3; width: 36px; height: 36px; font-size: var(--fs-body-m); }
.site-menu__user strong { overflow: hidden; color: var(--n-10); font-size: var(--fs-body-s); font-weight: 800; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
/* Guests: the row on a light blue band (blue log-in icon, arrow) so signing in stands out without being a button */
.site-menu__user--guest { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--sp-8) var(--sp-12); background: var(--blue-light); transition: background-color .15s; }
.site-menu__user--guest:hover, .site-menu__user--guest:active { background: var(--blue-light-active); }
.site-menu__user--guest .account-menu__avatar { display: grid; place-items: center; width: 28px; color: var(--blue); background: none; font-size: 26px; } /* just the blue icon, no circle */
.site-menu__user--guest strong { color: var(--blue-dark); font-size: var(--fs-body-m); }

.site-menu__user-go { grid-column: 3; grid-row: 1 / 3; color: var(--blue); font-size: 20px; transition: translate .2s; }
.site-menu__user--guest:hover .site-menu__user-go { translate: -2px 0; }
.site-menu__user strong + span { color: var(--n-50); font-size: var(--fs-label-m); line-height: 1.4; }
.site-menu__foot .social-links { flex: none; gap: 4px; }
.site-menu__foot .social-links__link { width: 36px; height: 36px; }
.site-menu__foot .social-links__link .icon { font-size: 18px; }
.site-menu__logout { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: var(--sp-8); border-radius: var(--r-12); color: var(--c-danger); font-size: var(--fs-body-s); font-weight: 700; }
.site-menu__logout .icon { font-size: 18px; }
.site-menu__logout:hover { color: var(--c-danger); background: color-mix(in srgb, var(--c-danger) 8%, transparent); }

@media (max-width: 769px) {
	.site-menu__scroll { padding-inline: var(--sp-16); }
	.site-menu__foot { padding-inline: var(--sp-16); }
}
