.tokyo-mobile-categories { display: none; }
@media (max-width: 767px) {
    .tokyo-page .tokyo-catalog-panel { min-width: 0; max-width: 100%; overflow: hidden; }
    .tokyo-page .tokyo-mobile-filter-trigger { display: none; }
    .tokyo-mobile-categories { display: block; min-width: 0; padding: 16px 16px 12px; border-bottom: 1px solid var(--tokyo-border-strong); }
    .tokyo-mobile-category-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--tokyo-text); }
    .tokyo-mobile-category-caption > span { font-size: 11px; color: var(--tokyo-muted); }
    .tokyo-mobile-category-row { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 2px 0 7px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
    .tokyo-mobile-category-chip { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; min-height: 44px; max-width: 240px; padding: 8px 13px; border: 1px solid var(--tokyo-border-strong); border-radius: 999px; background: var(--tokyo-bg); color: var(--tokyo-text); font: inherit; font-size: 13px; white-space: nowrap; }
    .tokyo-mobile-category-chip > img { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; }
    .tokyo-mobile-category-chip > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
    .tokyo-mobile-category-chip.is-active { border-color: #181818; background: #181818; color: #fff; }
    .tokyo-mobile-category-chip:focus-visible { outline: 2px solid #087e8b; outline-offset: 2px; }
    .tokyo-mobile-subcategories { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--tokyo-border-strong); }
}

@media (max-width: 767px) {
    .tokyo-mobile-category-expand { display: block; width: 100%; min-height: 40px; margin-top: 8px; border: 1px solid var(--tokyo-border-strong); border-radius: 12px; background: var(--tokyo-bg); color: var(--tokyo-text); font: inherit; font-size: 13px; }
    .tokyo-mobile-categories[data-layout="1"] > .tokyo-mobile-category-row,
    .tokyo-mobile-categories[data-layout="2"] > .tokyo-mobile-category-row,
    .tokyo-mobile-categories[data-layout="5"] > .tokyo-mobile-category-row,
    .tokyo-mobile-categories[data-layout="4"].is-expanded > .tokyo-mobile-category-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; padding-bottom: 0; }
    .tokyo-mobile-categories[data-layout="1"] .tokyo-mobile-category-chip,
    .tokyo-mobile-categories[data-layout="2"] .tokyo-mobile-category-chip,
    .tokyo-mobile-categories[data-layout="4"].is-expanded .tokyo-mobile-category-chip { min-width: 0; max-width: none; padding: 8px 5px; border-radius: 12px; gap: 5px; font-size: 12px; }
    .tokyo-mobile-categories[data-layout="2"]:not(.is-expanded) > .tokyo-mobile-category-row:not(.tokyo-mobile-subcategories) > button:nth-child(n+7) { display: none; }
    .tokyo-mobile-categories .tokyo-mobile-subcategories { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .tokyo-mobile-subcategories .tokyo-mobile-category-chip { max-width: none; min-width: 0; white-space: normal; border-radius: 10px; padding: 8px; font-size: 12px; }
    .tokyo-mobile-categories[data-layout="5"] > .tokyo-mobile-category-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .tokyo-mobile-categories[data-layout="5"] .tokyo-mobile-category-chip { max-width: none; min-width: 0; min-height: 76px; flex-direction: column; padding: 9px 3px; border-radius: 12px; font-size: 11px; gap: 6px; }
    .tokyo-mobile-categories[data-layout="5"] .tokyo-mobile-category-chip > img { width: 28px; height: 28px; }
    .tokyo-page[data-category-layout="3"] .tokyo-catalog-panel { display: grid; grid-template-columns: 100px minmax(0,1fr); align-items: start; }
    .tokyo-page[data-category-layout="3"] .tokyo-mobile-categories { grid-row: 1 / 3; padding: 12px 6px; border-right: 1px solid var(--tokyo-border-strong); border-bottom: 0; }
    .tokyo-mobile-categories[data-layout="3"] .tokyo-mobile-category-row { display: flex; flex-direction: column; overflow: visible; gap: 7px; }
    .tokyo-mobile-categories[data-layout="3"] .tokyo-mobile-category-chip { min-width: 0; max-width: 100%; flex-direction: column; white-space: normal; border-radius: 10px; padding: 8px 3px; font-size: 11px; gap: 4px; }
    .tokyo-mobile-categories[data-layout="3"] .tokyo-mobile-category-caption { justify-content: center; }
    .tokyo-page[data-category-layout="3"] .tokyo-catalog-heading,
    .tokyo-page[data-category-layout="3"] .tokyo-catalog-body { min-width: 0; padding: 12px 8px; }
    .tokyo-page[data-category-layout="3"] .tokyo-commodity-name { font-size: 12px; }
}

@media(max-width:767px){.tokyo-mobile-categories[data-layout="5"] .tokyo-mobile-category-chip > span:first-of-type{width:100%;max-width:100%;white-space:nowrap;text-align:center}}
