@layer design {
  @media(max-width:700px) {
    :root { --mobile-panel-inset:12px; --mobile-panel-height:66px; --mobile-header-height:74px; --mobile-panel-radius:20px; }
    :root[data-mobile-nav='home'] { --mobile-nav-index:0; }
    :root[data-mobile-nav='catalog'] { --mobile-nav-index:1; }
    :root[data-mobile-nav='favorites'] { --mobile-nav-index:2; }
    :root[data-mobile-nav='account'] { --mobile-nav-index:3; }
    html { scroll-padding-top:98px; }
    body { padding-top:calc(var(--mobile-panel-inset) + var(--mobile-header-height)); padding-bottom:calc(102px + env(safe-area-inset-bottom)); }
    .site-header,.mobile-store-nav { width:calc(100% - 2 * var(--mobile-panel-inset)); max-width:none; min-height:var(--mobile-panel-height); border:1px solid color-mix(in srgb,var(--accent) 16%,var(--line)); border-radius:var(--mobile-panel-radius); background:linear-gradient(120deg,color-mix(in srgb,var(--primary) 7%,transparent),transparent 70%),color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter:blur(18px); box-shadow:0 8px 26px #00000020; }
    .site-header { margin:0 auto; top:var(--mobile-panel-inset); min-height:var(--mobile-header-height); }
    .site-header .container { width:100%; }
    .site-header .header-inner { grid-template-columns:auto minmax(44px,1fr) auto; height:calc(var(--mobile-header-height) - 2px); min-height:0; padding:13px 14px; gap:10px; }
    .header-inner>.brand { font-size:20px; gap:8px; }
    .header-inner>.brand img { width:36px; height:36px; }
    .header-inner .header-catalog,.header-inner .header-actions { display:none; }
    .header-inner .header-preferences { grid-column:3; grid-row:1; gap:4px; border-left:0; margin-left:0; padding-left:0; }
    .header-inner .header-wallet { min-width:0; height:44px; padding:0 10px; gap:7px; border-radius:11px; font-size:13px; }
    .header-inner .header-wallet>svg { display:block; flex:none; width:17px; height:17px; }
    .header-inner .language-button { min-width:40px; height:44px; gap:3px; padding:4px; font-size:12px; }
    .site-header .header-inner .menu-toggle,.site-header .main-nav.container { display:none; }
    .site-header .header-inner .global-search-form { display:flex; grid-column:2; grid-row:1; width:100%; min-width:0; height:44px; min-height:44px; padding:0 10px; gap:8px; border-radius:11px; background:var(--surface); }
    .header-inner .global-search-form>span { display:flex; }
    .header-inner .global-search-form>span svg { width:18px; height:18px; }
    .header-inner .global-search-form input { width:100%; min-width:0; height:42px; padding:0; font-size:16px; }
    .header-inner .global-search-form input::placeholder { font-size:14px; }
    .header-inner .search-suggestions { position:fixed; left:12px; right:12px; top:calc(var(--mobile-header-height) + 8px); width:auto; max-height:calc(100dvh - 175px); overflow:hidden; }
    .store-home { padding-top:18px; }

    .mobile-store-nav { left:var(--mobile-panel-inset); right:auto; bottom:calc(var(--mobile-panel-inset) + env(safe-area-inset-bottom)); height:var(--mobile-panel-height); padding:6px; gap:4px; }
    .mobile-store-nav a { z-index:1; min-width:0; justify-content:center; min-height:52px; padding:4px 2px; gap:3px; border:1px solid transparent; border-radius:14px; font-size:10px; font-weight:500; line-height:1.3; transition:background .18s,color .18s,border-color .18s; }
    .mobile-store-nav a>span:first-child { display:grid; place-items:center; width:28px; height:24px; }
    .mobile-nav-indicator { position:absolute; left:6px; top:6px; width:calc((100% - 24px) / 4); height:52px; pointer-events:none; border:1px solid color-mix(in srgb,var(--accent) 24%,transparent); border-radius:14px; background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 23%,transparent),color-mix(in srgb,var(--primary) 10%,transparent)); box-shadow:inset 0 1px color-mix(in srgb,var(--accent) 10%,transparent); transform:translateX(calc(var(--mobile-nav-index,0) * (100% + 4px))); }
    :root:not([data-mobile-nav]) .mobile-nav-indicator,:root[data-mobile-nav=''] .mobile-nav-indicator { display:none; }
    .mobile-store-nav a[data-active] { color:var(--accent); background:none; border-color:transparent; }
    .mobile-store-nav a:active { color:var(--ink); background:var(--soft); }
    .mobile-store-nav a:focus-visible { outline-offset:-2px; }
    .mobile-store-nav svg { width:22px; height:22px; stroke-width:1.7; }
    .mobile-store-nav a[data-active] svg { stroke-width:1.9; }
    .mobile-store-nav b { top:2px; right:calc(50% - 22px); box-shadow:0 0 0 2px var(--surface); font-weight:500; }
    .is-checkout .mobile-store-nav { display:grid; }
    .is-checkout { padding-bottom:calc(102px + env(safe-area-inset-bottom)); }
    .toast { bottom:calc(99px + env(safe-area-inset-bottom)); }

    .store-sidebar>.filter-header,.store-sidebar>.price-filters { display:none; }
    .store-sidebar { margin-bottom:14px; }
    .subcategory-chips { scrollbar-width:none; overscroll-behavior-inline:contain; }
    .subcategory-chips::-webkit-scrollbar { display:none; }
    .mobile-filter-button,.store-toolbar .sort-label .select-trigger { min-height:43px; font-size:13px; }
    .mobile-filter-button b { display:grid; place-items:center; min-width:19px; height:19px; padding:0 5px; border-radius:6px; background:var(--soft); color:var(--accent); font-size:11px; font-weight:500; }
    body:has(.catalog-filter-dialog[open]) { overflow:hidden; }
    .catalog-filter-dialog { width:calc(100% - 24px); max-width:480px; max-height:calc(100dvh - 32px); margin:auto; padding:22px; overflow:auto; border:1px solid var(--line-hover); border-radius:22px; background:var(--surface); color:var(--ink); box-shadow:0 18px 60px #0004; }
    .catalog-filter-dialog::backdrop { background:#06081170; backdrop-filter:blur(4px); }
    .catalog-filter-dialog>header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
    .catalog-filter-dialog h2 { margin:0; font-size:23px; line-height:1.3; letter-spacing:-.03em; }
    .catalog-filter-dialog>header .icon-button { width:34px; height:34px; padding:8px; border:1px solid var(--line); border-radius:10px; }
    .catalog-filter-dialog .price-filters { display:block; margin:0; padding:0; border:0; }
    .catalog-filter-dialog .price-filters>summary { display:none; }
    .catalog-filter-dialog .price-range { margin:0; gap:12px; }
    .catalog-filter-dialog .price-range label,.catalog-filter-dialog .format-label { font-size:13px; }
    .catalog-filter-dialog .price-range input { height:44px; font-size:16px; padding:10px 12px; background:var(--surface-2); }
    .catalog-filter-dialog .select-trigger { min-height:44px; font-size:14px; }
    .catalog-filter-dialog .select-options { width:100%; max-width:none; }
    .catalog-filter-dialog .select-options button { font-size:14px; }
    .catalog-filter-dialog .check-label { min-height:33px; margin-top:11px; font-size:14px; }
    .catalog-filter-dialog .check-label input { width:18px; height:18px; }
    .catalog-filter-dialog>footer { display:flex; align-items:center; gap:18px; margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
    .catalog-filter-dialog>footer .text-button { font-size:14px; }
    .catalog-filter-dialog>footer .button { flex:1; min-height:46px; border-radius:12px; font-size:14px; }

    .services-section .service-tiles { display:grid; grid-auto-flow:column; grid-auto-columns:84px; grid-template-columns:none; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scroll-padding-inline:16px; scrollbar-width:none; margin:-9px -16px -4px; padding:12px 16px; }
    .services-section .service-tiles::-webkit-scrollbar { display:none; }
    .services-section .service-tile { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:10px; padding:0; min-height:118px; background:none; border:0; border-radius:12px; scroll-snap-align:start; text-align:center; transform:none; box-shadow:none; }
    .services-section .service-tile:focus-visible { outline-offset:-2px; }
    .services-section .service-tile-icon { display:grid; place-items:center; width:64px; height:64px; flex:none; border:1px solid var(--line); border-radius:19px; background:var(--surface); box-shadow:0 4px 15px #0000000d; }
    .services-section .service-tile:has(img[src$='chatgpt.svg']) .service-tile-icon { background:color-mix(in srgb,#459d8b 12%,var(--surface)); }
    .services-section .service-tile:has(img[src$='gemini.svg']) .service-tile-icon { background:color-mix(in srgb,#6d6ed2 15%,var(--surface)); }
    .services-section .service-tile:has(img[src$='claude.svg']) .service-tile-icon { background:color-mix(in srgb,#ce8a69 11%,var(--surface)); }
    .services-section .service-tile:has(img[src$='spotify.svg']) .service-tile-icon { background:color-mix(in srgb,#30a968 11%,var(--surface)); }
    .services-section .service-tile .service-logo,.services-section .service-tile-icon>svg { width:34px; height:34px; }
    .services-section .service-tile .service-monogram { font-size:31px; }
    .services-section .service-tile>span:nth-child(2) { width:100%; flex-basis:auto; }
    .services-section .service-tile b { display:block; font-size:13px; line-height:1.35; font-weight:500; letter-spacing:-.02em; }
    .services-section .service-tile small { font-size:12px; line-height:1.4; margin-top:4px; }
    .services-section .service-tile>svg { display:none; }
    .services-section .service-tile:active .service-tile-icon { transform:scale(.94); border-color:var(--service-glow); box-shadow:none; }
  }
  @media(max-width:500px) {
    .site-header .header-inner { grid-template-columns:minmax(0,1fr) 44px auto; padding-inline:10px; gap:5px; }
    .header-inner>.brand { font-size:16px; gap:6px; }
    .header-inner>.brand img { width:30px; height:30px; }
    .header-inner .header-wallet { padding-inline:8px; gap:6px; }
    .header-inner .header-preferences { gap:2px; }
    .header-inner .language-button { min-width:32px; padding:2px; gap:1px; }
    .site-header .header-inner .global-search-form:not(:focus-within) { justify-content:center; padding:0; gap:0; }
    .header-inner .global-search-form:not(:focus-within)>span { pointer-events:none; }
    .header-inner .global-search-form:not(:focus-within) input { position:absolute; inset:0; width:100%; height:100%; color:transparent; caret-color:transparent; }
    .header-inner .global-search-form:not(:focus-within) input::placeholder { color:transparent; }
    .header-inner .global-search-form input::-webkit-search-decoration,.header-inner .global-search-form input::-webkit-search-cancel-button { display:none; }
    .site-header .header-inner .global-search-form:focus-within { position:absolute; left:10px; right:10px; top:14px; width:auto; z-index:2; padding-inline:12px; background:var(--surface); box-shadow:0 0 0 5px var(--surface); }
  }
  @media(min-width:441px) and (max-width:500px) { .header-inner>.brand { font-size:18px; }.header-inner>.brand img { width:34px; height:34px; } }
  @media(max-width:389px) { .header-inner:has(.header-wallet:not([hidden]))>.brand .brand-name { display:none; } }
  @media(max-width:370px) { .mobile-store-nav a { font-size:9.5px; } }
  @media(max-width:700px) and (prefers-reduced-motion:no-preference) { .catalog-filter-dialog[open] { animation:nm-filter-in .22s cubic-bezier(.22,1,.36,1); } @keyframes nm-filter-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } } }
  @media(max-width:700px) and (prefers-reduced-motion:no-preference) {
    :root[data-mobile-nav-animate='true'] .mobile-nav-indicator { animation:nm-mobile-nav-slide .26s cubic-bezier(.22,1,.36,1) both; }
    @keyframes nm-mobile-nav-slide { from { transform:translateX(calc(var(--mobile-nav-from,var(--mobile-nav-index,0)) * (100% + 4px))); } to { transform:translateX(calc(var(--mobile-nav-index,0) * (100% + 4px))); } }
  }
  @media(prefers-reduced-motion:reduce) { .mobile-store-nav a { transition:none; } .mobile-nav-indicator { animation:none; } }
}
