/* Header mobile navigation. Catalog content comes from the shared ACF menu. */
.phonehub-mobile-nav-slot:empty,.phonehub-mobile-nav-slot:not(:has(.toanweb-mobile-nav)) { display:none; }
.toanweb-mobile-nav { display:none; }
.toanweb-mobile-categories:not([open]) { display:none; }
html.toanweb-mobile-categories-open { overflow:hidden; }
.toanweb-mobile-categories { position:fixed; inset:var(--wp-admin--admin-bar--height,0px) 0 0; margin:0; padding:0; width:100%; max-width:none; height:calc(100dvh - var(--wp-admin--admin-bar--height,0px)); max-height:none; border:0; background:var(--ph-canvas); color:var(--ph-ink); font-family:inherit; }
.toanweb-mobile-categories[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.toanweb-mobile-categories::backdrop { background:#10151f66; }
.toanweb-mobile-categories :is(a,button,summary) { -webkit-tap-highlight-color:transparent; }
.toanweb-mobile-categories :is(a,button,summary):focus-visible,.toanweb-mobile-nav-item:focus-visible { outline:2px solid var(--ph-brand); outline-offset:3px; }
.toanweb-mobile-categories :is(a,a:visited) { color:var(--ph-ink); text-decoration:none; text-transform:none; }
.toanweb-mobile-categories-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; background:var(--ph-surface); border-bottom:1px solid var(--ph-line); }
.toanweb-mobile-categories-header h2 { margin:0; font-size:19px; line-height:1.4; font-weight:800; text-transform:none; }
.toanweb-mobile-categories-close { display:grid; place-items:center; width:44px; height:44px; flex:none; padding:0; border:1px solid var(--ph-line); border-radius:50%; background:var(--ph-surface); color:var(--ph-ink); cursor:pointer; }
.toanweb-mobile-categories-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:16px; }
.toanweb-mobile-department { margin:0 0 12px; border:1px solid var(--ph-line); border-radius:14px; background:var(--ph-surface); overflow:hidden; }
.toanweb-mobile-department > summary { display:flex; align-items:center; gap:12px; min-height:56px; padding:14px; list-style:none; font-size:15px; font-weight:700; cursor:pointer; }
.toanweb-mobile-department > summary::-webkit-details-marker { display:none; }
.toanweb-mobile-department > summary > span { flex:1; }
.toanweb-mobile-department > summary > .toanweb-ui-icon { object-fit:contain; }
.toanweb-mobile-department > summary > svg:last-child { width:18px; height:18px; color:var(--ph-muted); transition:transform .2s; }
.toanweb-mobile-department[open] > summary { color:var(--ph-brand); background:#fff0f2; }
.toanweb-mobile-department[open] > summary > svg:last-child { transform:rotate(180deg); }
.toanweb-mobile-department-content { padding:4px 14px 16px; }
.toanweb-mobile-department-content p { margin:12px 0 0; color:var(--ph-muted); font-size:13px; line-height:1.7; }
.toanweb-mobile-categories a.toanweb-mobile-view-all { display:flex; align-items:center; min-height:44px; color:var(--ph-brand); font-size:13px; font-weight:700; }
.toanweb-mobile-category-group { margin-top:12px; }
.toanweb-mobile-category-group h3 { margin:0 0 10px; font-size:13px; font-weight:700; line-height:1.5; text-transform:none; }
.toanweb-mobile-category-links { display:flex; flex-wrap:wrap; gap:8px; }
.toanweb-mobile-category-link { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; border:1px solid var(--ph-line); border-radius:8px; font-size:13px; line-height:1.5; }
.toanweb-mobile-category-link img { width:30px; height:24px; object-fit:contain; }
.toanweb-mobile-category-product { display:flex; align-items:center; gap:12px; min-height:64px; padding:10px 0; border-bottom:1px solid var(--ph-line); }
.toanweb-mobile-category-product:last-child { border-bottom:0; }
.toanweb-mobile-category-product > img { width:52px; height:52px; object-fit:contain; flex:none; }
.toanweb-mobile-category-product > span { display:flex; flex-direction:column; gap:4px; min-width:0; }
.toanweb-mobile-category-product strong { font-size:13px; line-height:1.5; }
.toanweb-mobile-category-product > span > span { display:flex; flex-wrap:wrap; gap:4px 8px; color:var(--ph-brand); font-size:13px; font-weight:700; }
.toanweb-mobile-category-product del { color:var(--ph-muted); font-size:11px; font-weight:400; }
.toanweb-mobile-categories-footer { padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--ph-line); background:var(--ph-surface); }
.toanweb-mobile-categories-footer :is(a,a:visited) { display:flex; align-items:center; justify-content:center; min-height:46px; padding:10px 16px; border-radius:10px; background:var(--ph-brand); color:white; font-size:14px; font-weight:700; }
html.is-breakdance-mini-cart-open .toanweb-mobile-nav { visibility:hidden; }
@media(min-width:768px) { .phonehub-mobile-nav-slot { display:none; } }
@media(max-width:767px) {
 .toanweb-mobile-nav { position:fixed; z-index:95; bottom:calc(10px + env(safe-area-inset-bottom,0px)); left:50%; transform:translateX(-50%); display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); width:min(420px,calc(100% - 24px)); height:64px; padding:5px; border:1px solid #ffffffcc; border-radius:34px; background:#ffffffed; backdrop-filter:blur(20px) saturate(160%); box-shadow:0 8px 28px #10151f1f; }
 .breakdance .toanweb-mobile-nav-item { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:4px; padding:4px 0; min-width:0; border:0; border-radius:28px; background:transparent; color:var(--ph-muted); text-decoration:none; text-transform:none; font-size:10px; font-weight:500; line-height:1.2; }
 .toanweb-mobile-nav-item .toanweb-ui-icon { width:22px; height:22px; }
 .breakdance .toanweb-mobile-nav-item:is([aria-current],[aria-expanded="true"]) { color:var(--ph-brand); background:#fff0f2; font-weight:700; }
 .toanweb-mobile-nav-item[aria-disabled="true"] { opacity:.4; }
 body:has(.toanweb-mobile-nav) { padding-bottom:calc(94px + env(safe-area-inset-bottom,0px)); --ph-floating-bottom:100px; }
}
@media(prefers-reduced-motion:reduce) { .toanweb-mobile-department > summary > svg:last-child { transition:none; } }
