/* Mobile-first refinements; desktop catalog density stays unchanged. */
#mobile-bottom,.mobile-product-head,#mobile-size-trigger,.mobile-sort{display:none}
.category-directory{max-width:760px}.directory-back{display:inline-block;margin:20px 0;min-height:44px;align-content:center}
.category-rows a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;border-bottom:1px solid var(--line);font-size:16px}
#choice-sheet{padding:0;max-height:75dvh;overflow:auto}
.choice-head{position:sticky;top:0;background:white;padding:16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);z-index:1;gap:16px}
.choice-head h2{font-size:18px;margin:0}.choice-head button{border:0;min-width:44px;min-height:44px;font-size:28px}
.choice-row{width:100%;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;border:0;border-bottom:1px solid var(--line);padding:16px 20px;white-space:normal;overflow-wrap:anywhere;font-size:16px}
.choice-row[aria-pressed=true]{font-weight:600;background:var(--quiet)}.choice-help{font-size:13px;color:var(--muted);padding:14px 20px;margin:0}
.sizes{display:flex;flex-wrap:wrap;gap:8px}
.sizes button{min-width:44px;min-height:44px;padding:10px 12px;overflow-wrap:anywhere}
.size-dropdown{display:grid;gap:8px;width:100%;font-size:13px}
.size-dropdown select,.account-switch select{width:100%;max-width:100%;min-height:48px;background:white;border:1px solid #999;border-radius:0;padding:10px 36px 10px 12px;font-size:16px}
.gallery-stage{min-width:0;position:relative}
.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;border:0;padding:0;height:590px;cursor:zoom-in}
.gallery-slide:active{transform:none}
.gallery-slide img{width:100%;height:100%;object-fit:contain}
.gallery-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:8px;font-size:12px}
.gallery-controls button{width:44px;height:44px;border:0}
.account-switch{display:none}
.account-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;margin-top:24px}
.account-shortcuts a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;border-bottom:1px solid var(--line);font-size:14px}
.order-next{font-size:14px;color:var(--muted);margin:18px 0 22px}
dialog .button{margin:6px 8px 6px 0}
.buy{gap:12px}.product-copy>.selection-label{gap:16px;flex-wrap:wrap}
.product-copy>.selection-label button{min-height:44px}
.account[data-tab=overview] .notice{background:none;padding:0;font-size:12px;color:var(--muted);margin:8px 0 20px}
@media(max-width:1000px){.gallery-slide{height:490px}}
@media(max-width:700px){
  body{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
  .preview{display:none}
  #mobile-bottom{display:flex;position:fixed;left:0;right:0;bottom:0;background:white;border-top:1px solid var(--line);z-index:25;padding:6px 8px calc(6px + env(safe-area-inset-bottom));justify-content:space-around}
  #mobile-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:54px;min-height:48px;font-size:10px;color:var(--muted)}
  #mobile-bottom a[aria-current=page]{color:var(--ink);font-weight:600}
  #mobile-bottom svg,.mobile-product-head svg,.mobile-sort svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5}
  body[data-page=catalog] #main>.wrap>.crumbs,body[data-page=catalog] .page-head{display:none}
  body[data-page=catalog] .catalog-top{margin-top:8px;display:flex;flex-wrap:nowrap;gap:0;padding:6px 0}
  body[data-page=catalog] .filter-bar{display:flex;flex:1;min-width:0;gap:0;justify-content:space-between}
  body[data-page=catalog] .filter>summary{border:0;padding:6px;font-size:12px}
  body[data-page=catalog] .filter>summary:after{margin-left:4px}
  body[data-page=catalog] #sort{display:none}
  .mobile-sort{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:0;padding:10px}
  body[data-page=catalog] #products{margin:0 -16px;column-gap:2px;row-gap:16px}
  body[data-page=catalog] .card-info{padding:8px 10px 0}
  body[data-page=product] #header .wrap{display:none}
  body[data-page=product] #header{position:sticky;top:0;z-index:20;background:white}
  .mobile-product-head{display:flex;align-items:center;border-bottom:1px solid var(--line);min-height:56px;padding:4px 8px;gap:4px}
  .mobile-product-head>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:600}
  .mobile-product-head>a,.mobile-product-head>button{display:grid;place-items:center;flex:0 0 40px;min-height:44px;border:0;background:white;font-size:24px}
  .mobile-product-head [aria-pressed=true] svg{fill:var(--accent);stroke:var(--accent)}
  body[data-page=product] .pdp-back{display:none!important}
  body[data-page=product] .gallery-slide{height:calc(100dvh - 130px - env(safe-area-inset-bottom));max-height:135vw;min-height:300px}
  body[data-page=product] #product-sizes{display:none}
  #mobile-size-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;padding:12px 16px;border:1px solid var(--ink);font-size:16px;text-align:left;white-space:normal;overflow-wrap:anywhere}
  #mobile-size-trigger:after{content:'⌄';margin-left:16px}
  #choice-sheet{width:100%;max-width:100%;margin:0;top:auto;bottom:0;max-height:80dvh;border-radius:14px 14px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  #toast{bottom:calc(78px + env(safe-area-inset-bottom))}
  .wrap{padding-left:16px;padding-right:16px}
  .preview{font-size:10px;padding:5px 12px}.preview a{display:none}
  .masthead{min-height:62px}.tools{gap:2px}.tools .icon-btn{min-width:40px;min-height:44px;justify-content:center}
  .departments{gap:22px}.departments a{padding:9px 0}.nav-row{min-height:44px}
  .crumbs{margin:12px 0}.page-head{margin-bottom:16px}.page-head h1{font-size:25px}
  body[data-page=catalog] .page-head p{display:none}
  .grid,.catalog-grid{gap:20px 10px}.photo{aspect-ratio:4/5}
  .card-info{padding-top:8px;font-size:13px;line-height:1.3}.card-info b{font-size:12px;margin-bottom:3px}
  .card-info .title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:5px;line-height:1.3}
  .card-info .price{font-size:14px}.card-info .pending{font-size:11px;line-height:1.25}
  .heart{top:2px;right:2px;width:44px;height:44px;display:grid;place-items:center;padding:0}
  .filter>summary{min-height:44px;display:flex;align-items:center}.filter-panel label{min-height:44px}
  .filter-panel{left:12px;right:12px;top:auto;bottom:calc(78px + env(safe-area-inset-bottom));max-height:65dvh;padding:16px}
  .filter-head{position:sticky;top:-16px;background:white;z-index:1;margin-top:-4px;margin-bottom:8px}
  .results-meta{padding:10px 0}.sort{min-height:44px}
  body[data-page=product] #main>.wrap>.crumbs{display:none}
  .pdp-back{margin:10px 0!important;min-height:36px;align-content:center}
  .pdp{gap:16px}.gallery{margin:0 -16px;width:calc(100% + 32px);display:block;min-width:0}
  .gallery .thumbs{display:none}.gallery-slide{height:min(113vw,56dvh);min-height:300px}
  .gallery-controls{position:absolute;left:12px;right:12px;bottom:6px;justify-content:space-between;margin:0;pointer-events:none}
  .gallery-controls>*{pointer-events:auto;background:#fff}.gallery-counter{padding:5px 10px;border-radius:20px}
  .gallery-controls button{border:1px solid var(--line)}
  .product-copy .brand-link{font-size:17px}.product-copy h1{font-size:22px;margin:6px 0 12px}
  .product-copy .hint{margin-bottom:16px}.product-colors{margin:8px 0 16px}
  .selection-label{margin:12px 0 8px}.buy{margin-top:14px}
  .buy .button{min-height:48px}.buy .icon-btn{min-width:48px;padding:10px}
  #size-error:empty{display:none}.delivery-note{padding:16px 0}
  .shelf{padding:24px 0}.shelf .section-head h2{font-size:20px}.shelf-arrows button{width:44px;height:44px}
  .account-nav{display:none}.account-switch{display:grid;gap:6px;font-size:12px;margin:4px 0 20px}
  body[data-page=account] .departments,body[data-page=account] .nav-row{display:none}
  body[data-page=account] .masthead{border-bottom:1px solid var(--line)}
  .account[data-tab=overview] .account-switch{display:none}
  .account h1{font-size:25px;margin-bottom:12px}.account-shortcuts{grid-template-columns:1fr;margin-top:16px}
  .order{padding:16px}.order h3{font-size:17px;margin-bottom:4px}.order .section-head{margin-bottom:0;flex-wrap:wrap;gap:12px}
  .order .button{min-height:44px}.order-next{margin:14px 0 18px;font-size:13px}
  .order-product{margin:16px 0;gap:14px}.order-product img{width:56px;height:72px}
  .account[data-tab=orders] .timeline{grid-template-columns:1fr;gap:14px}
  .form-grid .button{width:100%;justify-self:stretch;min-height:48px}
  dialog{padding:20px}dialog .button{width:100%;margin:6px 0;min-height:48px}
  .dialog-head button{min-width:44px;min-height:44px}.search-form{gap:8px}.search-form input{min-width:0}
  .footer{margin-top:36px;padding-top:24px}
}
.card-track{display:none}
.order-metadata{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.order-metadata dt{font-weight:600}.order-metadata dd{margin:4px 0 0}
.order-item-heading{grid-column:1/-1}.order-item-heading .item-status{display:inline-block;padding:5px 10px;font-size:16px;margin:0 0 8px;background:#edf2f6;color:#243f52}.order-item-heading .processing{background:#f3f3f3;color:#333}.order-item-heading .cancelled{background:#f9eded;color:#922c2c}.order-item-heading .item-next{font-size:14px;line-height:1.45;margin:0;max-width:60ch}.item-amount{font-size:14px}.order-totals{border-top:1px solid var(--line);padding-top:24px;margin-top:8px}.order-totals dl>div{display:flex;justify-content:space-between;gap:16px;margin:12px 0}.order-totals dd{margin:0;text-align:right}.order-totals h3{margin-top:24px}
.category-picker{display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid var(--line);white-space:nowrap}
.multi-order h2{font-size:20px;margin:0}.multi-order .order-head p{margin:4px 0}
.order-line{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;padding:24px 0;border-top:1px solid var(--line)}
.order-line img{width:88px;height:112px;object-fit:contain}.order-line b,.order-line .item-status{display:block}.item-status{margin-bottom:8px;font-size:15px}.order-line p{margin:6px 0}.item-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline}.item-actions{display:flex;flex-wrap:wrap;gap:8px 20px}.item-actions>*{min-height:44px;display:inline-flex;align-items:center}.order-line>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){
 .card[data-swipe-ready] .photo:has(+.card-track){display:none}
 .card-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;aspect-ratio:4/5;overscroll-behavior-x:contain}
 .card-track::-webkit-scrollbar{display:none}.card-track>a{flex:0 0 100%;min-width:0;scroll-snap-align:start}.card-track img{width:100%;height:100%;object-fit:contain;display:block}
 .category-picker{font-size:12px;padding:8px}.order-line{grid-template-columns:72px minmax(0,1fr);gap:12px}.order-line img{width:72px;height:94px}.multi-order{padding:0;border:0}.order-line:last-child{padding-bottom:8px}
}
