/* Storefront layout overrides live after the shared desktop styles. */
.storefront-page [hidden] { display:none!important; }
.category-page .cat-page-layout { grid-template-columns:220px minmax(0,1fr); }
.category-results { min-width:0; }
.mobile-categories,.mobile-price-filter { display:none; }
#categoryStatus { font-size:11px;color:#999; }
.category-page .product-card,.shop-page .product-card { min-width:0; }
.category-page .product-card-img,.shop-page .product-card-img { background:#fff; }
.category-page .product-card-img img,.shop-page .product-card-img img { object-fit:contain; }
.category-page .pagination { flex-wrap:wrap; }
.category-page #productList[aria-busy="true"],.shop-page #shopProducts[aria-busy="true"] { opacity:.55; }
.shop-main { padding-top:20px;padding-bottom:20px; }
.shop-profile { display:flex;align-items:center;gap:24px;background:#fff;border:1px solid var(--border-light);border-radius:16px;padding:30px;margin-bottom:24px; }
.shop-profile-logo { width:80px;height:80px;border-radius:12px;overflow:hidden;flex:none;background:var(--bg); }
.shop-profile-info { flex:1;min-width:0; }
.shop-profile-title { display:flex;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap; }
.shop-profile-title h2 { line-height:1.5; }
.shop-profile-title .shop-badge,.shop-profile-title a { white-space:nowrap;flex-shrink:0; }
.shop-profile-actions { display:flex;flex-direction:column;gap:8px;flex-shrink:0; }
.shop-more { text-align:center;margin:8px 0 24px; }
.shop-more button { min-width:180px; }
.storefront-page button:focus-visible,.storefront-page select:focus-visible { outline:2px solid var(--primary);outline-offset:3px; }
@media(max-width:1024px) {
 .category-page .cat-page-layout { grid-template-columns:minmax(0,1fr);gap:0;padding-top:8px; }
 .category-page .cat-tree { display:none; }
 .mobile-categories { display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0 0 14px;margin:0;overscroll-behavior-x:contain; }
 .mobile-categories::-webkit-scrollbar { display:none; }
 .mobile-categories button { flex:none;min-height:44px;padding:8px 16px;border:1px solid #e8e4df;border-radius:24px;font-size:13px;white-space:nowrap;background:#fff;color:#777; }
 .mobile-categories button.active { background:#2d2824;border-color:#2d2824;color:#fff; }
 .category-page .filter-bar { gap:8px;padding:10px 12px; }
 .category-page #priceGroup { display:none; }
 .mobile-price-filter { display:flex;align-items:center;gap:10px;margin-left:auto;color:#999;font-size:12px; }
 .mobile-price-filter select { min-height:40px;border-radius:6px;padding-right:12px;background:#fafafa; }
}
@media(max-width:760px) {
 .storefront-page .container { padding-left:16px;padding-right:16px; }
 .storefront-page .top-bar { display:none; }
 .storefront-page .site-header { position:relative;top:auto; }
 .storefront-page .header-main { display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;gap:12px;padding:13px 0; }
 .storefront-page .logo { grid-column:1;grid-row:1;min-width:0; }
 .storefront-page .logo-icon { width:34px!important;height:34px!important; }
 .storefront-page .logo-text { font-size:19px;white-space:nowrap; }
 .storefront-page .header-actions { grid-column:2;grid-row:1;margin-left:0;gap:14px; }
 .storefront-page .header-action-btn { min-height:40px;min-width:40px; }
 .storefront-page .search-box { grid-column:1/-1;grid-row:2;width:100%;max-width:none;min-width:0; }
 .storefront-page .search-box input { height:42px;font-size:16px;min-width:0; }
 .storefront-page .search-btn { width:36px;height:36px; }
 .storefront-page .nav-all-cats { display:none; }
 .storefront-page .nav-links { overflow-x:auto;scrollbar-width:none;min-width:0; }
 .storefront-page .nav-links::-webkit-scrollbar { display:none; }
 .storefront-page .nav-links a { min-height:44px;padding:0 12px;display:flex;align-items:center;flex:none; }
 .storefront-page .breadcrumb { padding:14px 0;font-size:12px;overflow:hidden;white-space:nowrap; }
 .storefront-page .footer-top { padding-top:28px;padding-bottom:24px;gap:20px; }
 .storefront-page .footer-contact .phone { font-size:23px; }
 .storefront-page .footer-bottom { font-size:10px;line-height:1.9;overflow-wrap:anywhere; }
 .home-section-heading { align-items:center;gap:10px; }
 .home-section-heading h1 { font-size:19px; }
 .home-category-picture { width:58px;height:58px; }
 .home-category-tile { min-height:108px;justify-content:center; }
 .home-category-tile strong { white-space:nowrap;font-size:12px; }
 .home-recommend-tabs button { min-height:44px; }
 .home-good-body { padding:10px; }
 .home-good-name { font-size:13px;line-height:1.6;height:42px; }
 .home-good-price strong { font-size:22px; }
 .home-floor-feature { display:flex;flex-direction:column;align-items:flex-start;min-height:112px;padding:16px 110px 16px 16px; }
 .home-floor-feature>strong,.home-floor-feature>span,.home-floor-feature>small { position:relative;z-index:1; }
 .home-floor-feature>small { margin-top:9px;gap:12px;font-size:11px; }
 .home-floor-feature img { width:108px;height:108px;right:0;top:0;opacity:.65; }
 .home-floor-feature>strong { font-size:21px; }
 .home-floor-feature>span { white-space:nowrap;font-size:10px; }
 .home-shop-grid { grid-template-columns:1fr; }
 .home-shop { padding:16px; }
 .home-shop-top { margin-bottom:8px; }
 .home-shop h3 { font-size:15px; }
 .home-shop>p { min-height:0; }
 .home-shop-bottom { margin-top:10px; }
 .category-page .filter-bar { position:sticky;top:0;z-index:35;display:flex;align-items:center;row-gap:10px;padding:10px;margin-bottom:14px;background:rgba(255,255,255,.98); }
 .category-page #sortGroup { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:5px; }
 .category-page .filter-sort-btn { min-height:42px;padding:7px 0;font-size:12px; }
 .category-page .mobile-price-filter { margin-left:0;width:100%;justify-content:space-between; }
 .category-page .mobile-price-filter select { width:65%;max-width:220px;font-size:16px; }
 .category-page #categoryStatus:empty { display:none; }
 .category-page .product-grid,.shop-page .product-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
 .category-page .product-card-body,.shop-page .product-card-body { padding:10px; }
 .category-page .product-card-title,.shop-page .product-card-title { font-size:13px;line-height:1.6;height:42px; }
 .category-page .product-card-price .current,.shop-page .product-card-price .current { font-size:20px; }
 .category-page .product-card-price .original,.shop-page .product-card-price .original { font-size:10px; }
 .category-page .product-card-shop,.shop-page .product-card-shop { max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px; }
 .category-page .product-card-sales,.shop-page .product-card-sales { font-size:10px;color:#aaa; }
 .category-page .pagination { gap:4px; }
 .category-page .page-btn { min-width:32px;min-height:44px;padding:4px; }
 .shop-main { padding-top:4px; }
 .shop-profile { display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;padding:16px;margin-bottom:16px;align-items:start; }
 .shop-profile-logo { width:56px;height:56px;border-radius:10px; }
 .shop-profile-title { gap:6px; }
 .shop-profile-title h2 { font-size:18px!important; }
 .shop-profile-title .shop-badge,.shop-profile-title a { font-size:10px!important;padding:2px 6px!important; }
 .shop-profile-info { overflow-wrap:anywhere; }
 .shop-profile-info>div,.shop-profile-info>p { font-size:12px!important;line-height:1.9; }
 .shop-profile-actions { grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:2px; }
 .shop-profile-actions .btn { min-height:44px; }
 .shop-page .tabs { overflow-x:auto;scrollbar-width:none; }
 .shop-page .tab-item { flex:1 0 auto;padding:14px 10px;white-space:nowrap;font-size:12px; }
 .shop-page .filter-bar { padding:10px; }
 .shop-page #shopSort { width:100%;font-size:16px;min-height:44px; }
 .shop-more button { width:100%;min-height:46px; }
 .product-page #pdQty,.product-page .sku-select { font-size:16px; }
 .product-page .sku-chip { min-height:44px; }
 .product-page .gallery-thumb { min-width:54px; }
 .product-page .purchase-actions { padding-bottom:calc(10px + env(safe-area-inset-bottom)); }
 .product-page { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
 .product-page .service-copy,.product-page .parameters { overflow-wrap:anywhere; }
}
@media(max-width:360px) {
 .storefront-page .container { padding-left:12px;padding-right:12px; }
 .storefront-page .header-actions { gap:8px; }
 .storefront-page .logo-text { font-size:17px; }
 .home-category-grid { gap:6px; }
 .home-category-picture { width:48px;height:48px; }
 .home-category-tile { min-height:98px; }
 .home-category-tile strong { font-size:11px; }
 .home-category-tile small { display:none; }
 .home-section-heading h1 { font-size:17px; }
 .home-more { font-size:10px;gap:4px; }
 .home-good-body { padding:8px; }
 .home-good-price strong { font-size:20px; }
 .home-floor-feature>span { white-space:normal; }
 .product-page .sku-select { min-width:0;width:100%; }
 .product-page .price-label { margin-right:8px; }
 .product-page .price-number { font-size:30px; }
 .product-page .purchase-row { gap:8px; }
}
@media(prefers-reduced-motion:reduce) {
 .storefront-page .product-card,.storefront-page .product-card img { transition:none;transform:none; }
}
.listing-unit { font-size:10px;color:#999;white-space:nowrap; }
.category-page .product-card-price,.shop-page .product-card-price { flex-wrap:wrap;gap:5px; }
@media(max-width:760px) {
 .product-page .gallery-controls>button { width:36px;min-height:54px; }
 .product-page #closeViewer { width:44px;height:44px; }
}
