/* Phone sidebar (markup: em-public/includes/header.php #mobileSidebar, category-nav-mobile.php). Loaded after header.css, so it wins over the older sidebar rules. */
.mobile-sidebar { width: min(86vw, var(--sidebar-width, 280px)); border-radius: 0 18px 18px 0; background: #F6F7F9; display: flex; flex-direction: column; overflow: hidden; }
.sb2-top { position: relative; flex: none; padding: 14px 14px 16px; color: #fff; background: linear-gradient(155deg, var(--primary, #E97C43), var(--primary-dark, #C45A2A)); border-radius: 0; }
.sb2-top .sidebar-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; }
.sb2-who { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.sb2-top .sb-avatar { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 16px; background: #fff; color: var(--primary-dark, #C45A2A); font-size: 20px; font-weight: 800; }
.sb2-txt b { display: block; font-size: 1.05rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.sb2-txt small { display: block; margin-top: 2px; font-size: .78rem; opacity: .9; line-height: 1.3; }
.sb2-login { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--primary-dark, #C45A2A); font-weight: 800; font-size: .92rem; text-decoration: none; }
.sb2-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 10px 20px; -webkit-overflow-scrolling: touch; }
.sb2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sb2-tile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 4px 11px; border-radius: 16px; background: #fff; color: #1F2937; font-size: .78rem; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.sb2-tile i { font-size: 18px; color: var(--primary, #E97C43); }
.sb2-tile b { position: absolute; top: 6px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; background: var(--primary, #E97C43); color: #fff; font-size: 11px; }
.sb2-sec { margin: 20px 4px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6B7280; }
.sb2-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.sb2-cat { display: grid; justify-items: center; gap: 5px; text-decoration: none; color: #1F2937; }
.sb2-cat span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: #fff; color: var(--primary, #E97C43); font-size: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.sb2-cat img { width: 100%; height: 100%; object-fit: cover; }
.sb2-cat em { max-width: 100%; font-style: normal; font-size: .66rem; font-weight: 600; text-align: center; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sb2-allcats { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 0; border-radius: 14px; background: #111827; color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; }
.sb2-allcats span { flex: 1; text-align: left; }
.sb2-list { margin: 0; padding: 4px 0; list-style: none; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.sb2-list a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: #1F2937; font-size: .9rem; font-weight: 600; text-decoration: none; }
.sb2-list li + li a { border-top: 1px solid #F1F2F5; }
.sb2-list a i:first-child { width: 20px; text-align: center; color: #6B7280; }
.sb2-list a span { flex: 1; }
.sb2-list a i:last-child { font-size: 11px; color: #B6BBC6; }
.sb2-sell { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; border: 1.5px dashed var(--primary, #E97C43); color: var(--primary-dark, #C45A2A); font-weight: 700; font-size: .9rem; text-decoration: none; }
.sb2-sell span { flex: 1; }
.sb2-sell i:last-child { font-size: 11px; }
.mobile-sidebar .sidebar-footer { flex: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #ECECF0; }
.sb2-grid.is-4 { grid-template-columns: repeat(4, 1fr); }
.sb2-grid.is-4 .sb2-tile { padding: 12px 2px 9px; font-size: .72rem; }
