:root {
  --primary: #e4393c; --primary-dark: #c1272d; --primary-light: #fff0f0;
  --secondary: #34a853; --accent: #ea4335;
  --bg: #f5f5f5; --card-bg: #fff;
  --text: #333; --text-light: #666; --text-lighter: #999;
  --border: #eee; --shadow: 0 2px 8px rgba(0,0,0,.08);
  --radius: 6px; --radius-lg: 10px;
  --header-h: 50px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; vertical-align: middle; }
button { border: none; cursor: pointer; font-family: inherit; font-size: inherit; background: none; }
input, textarea { font-family: inherit; font-size: inherit; outline: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; width: 100%; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.btn { display: inline-block; padding: 10px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-align: center; transition: all .2s; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; border: none; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { display: block; width: 100%; }
.btn-cart { background: #ff8c00; color: #fff; }
.btn-buy { background: var(--primary); color: #fff; }
.section-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.section { margin-bottom: 12px; }
.section:last-child { margin-bottom: 0; }
.no-data { text-align: center; padding: 30px; color: var(--text-lighter); font-size: 14px; }
.page-empty { text-align: center; padding: 80px 20px; color: var(--text-lighter); }
.page-empty p { margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-control { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; }
.form-control:focus { border-color: var(--primary); }
.msg { padding: 10px 16px; border-radius: var(--radius); margin-bottom: 12px; font-size: 14px; }
.msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.msg.error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ===== Header ===== */
#app { padding-top: var(--header-h); min-height: 100vh; display: flex; flex-direction: column; }
.shop-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--card-bg); border-bottom: 1px solid var(--border); height: var(--header-h); }
.header-inner { display: flex; align-items: center; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px; padding: 6px; margin-right: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }
.shop-logo { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.shop-logo img { height: 30px; }
.shop-name { font-size: 16px; font-weight: 700; color: var(--primary); }
.shop-nav { display: flex; align-items: center; gap: 2px; }
.shop-nav a { padding: 6px 12px; font-size: 13px; color: var(--text); border-radius: var(--radius); transition: background .2s; position: relative; }
.shop-nav a:hover, .shop-nav a.active { background: var(--primary-light); color: var(--primary); }
.shop-nav .badge { position: absolute; top: 0; right: -2px; background: var(--primary); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.shop-main { flex: 1; padding: 10px; max-width: 1200px; margin: 0 auto; width: 100%; }

/* ===== Footer ===== */
.shop-footer { background: #333; color: #999; padding: 20px; text-align: center; font-size: 12px; margin-top: 20px; }
.shop-footer a { color: #999; }
.shop-footer a:hover { color: #fff; }

/* ===== Home ===== */
.page-home .banner { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-lg); padding: 30px 20px; margin-bottom: 12px; color: #fff; text-align: center; font-size: 18px; }
.page-home .banner img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-lg); }
.banner-placeholder { display: flex; align-items: center; justify-content: center; min-height: 120px; }
.flash-sale-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.flash-item { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; text-align: center; }
.flash-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.flash-price { color: var(--primary); font-size: 16px; font-weight: 700; padding: 4px; }
.flash-original { font-size: 12px; color: var(--text-lighter); text-decoration: line-through; padding-bottom: 6px; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.category-item { background: var(--card-bg); border-radius: var(--radius); padding: 14px 8px; text-align: center; }
.category-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 6px; color: var(--primary); }
.category-name { font-size: 12px; color: var(--text); }
.goods-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.goods-card { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.goods-card-img { width: 100%; aspect-ratio: 1; background: var(--bg); }
.goods-card-img img { width: 100%; height: 100%; object-fit: cover; }
.goods-card-info { padding: 8px 10px 10px; }
.goods-card-name { font-size: 13px; line-height: 1.4; max-height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 4px; color: var(--text); }
.goods-card-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.goods-card-meta { font-size: 11px; color: var(--text-lighter); margin-top: 2px; }
.load-more { text-align: center; padding: 16px; font-size: 14px; }
.load-more a { color: var(--primary); }
.btn-add-cart { position: absolute; bottom: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; line-height: 1; border: none; cursor: pointer; }

/* ===== Category Page ===== */
.category-layout { display: flex; gap: 10px; }
.category-sidebar { width: 88px; flex-shrink: 0; background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; }
.category-sidebar li { border-bottom: 1px solid var(--border); }
.category-sidebar li a { display: block; padding: 12px 8px; text-align: center; font-size: 12px; color: var(--text); }
.category-sidebar li.active a { color: var(--primary); font-weight: 600; background: var(--primary-light); }
.category-main { flex: 1; }

/* ===== Goods List ===== */
.goods-filter-bar { display: flex; gap: 4px; background: var(--card-bg); border-radius: var(--radius); padding: 8px; margin-bottom: 8px; }
.sort-btn { flex: 1; text-align: center; padding: 6px; font-size: 13px; color: var(--text); border-radius: var(--radius); }
.sort-btn.active { background: var(--primary); color: #fff; }
.goods-category-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-tab { padding: 5px 14px; border: 1px solid var(--border); border-radius: 16px; font-size: 12px; color: var(--text); background: var(--card-bg); }
.cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Goods Detail ===== */
.goods-detail-gallery { background: var(--card-bg); margin: -10px -10px 10px; padding: 0; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fafafa; }
.gallery-thumbs { display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; }
.gallery-thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs img.active { border-color: var(--primary); }
.goods-detail-info { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.goods-detail-name { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.goods-detail-sellpoint { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.goods-detail-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.goods-detail-price { font-size: 24px; font-weight: 700; color: var(--primary); }
.goods-detail-line-price { font-size: 14px; color: var(--text-lighter); text-decoration: line-through; }
.goods-detail-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-lighter); }
.goods-detail-specs { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.spec-row { margin-bottom: 10px; }
.spec-label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 6px; color: var(--text-light); }
.spec-values { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-value { padding: 6px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; cursor: pointer; transition: all .2s; }
.spec-value.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.goods-detail-qty { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 16px; }
.qty-label { font-size: 13px; color: var(--text-light); }
.qty-control { display: flex; align-items: center; }
.qty-btn { width: 32px; height: 32px; border: 1px solid var(--border); background: var(--bg); font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-value, .qty-num { width: 48px; height: 32px; text-align: center; border: 1px solid var(--border); border-left: none; border-right: none; padding: 0; font-size: 14px; display: flex; align-items: center; justify-content: center; background: var(--card-bg); }
.goods-detail-actions { display: flex; gap: 10px; padding: 10px 0; }
.goods-detail-actions .btn { flex: 1; padding: 14px; font-size: 16px; font-weight: 600; }
.goods-detail-section { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.rich-text { font-size: 14px; line-height: 1.8; overflow: hidden; }
.rich-text img { max-width: 100%; }
.rich-text p { margin-bottom: 12px; }
.comment-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-user { font-size: 12px; color: var(--text-light); margin-bottom: 2px; }
.comment-time { font-size: 11px; color: var(--text-lighter); margin-bottom: 6px; }
.comment-content { font-size: 13px; }

/* ===== Cart ===== */
.cart-list { margin-bottom: 60px; }
.cart-item { display: flex; align-items: center; background: var(--card-bg); border-radius: var(--radius-lg); padding: 10px 12px; margin-bottom: 8px; gap: 10px; }
.cart-item-check { width: 20px; }
.cart-checkbox { width: 18px; height: 18px; accent-color: var(--primary); }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.cart-item-price { font-size: 15px; font-weight: 600; color: var(--primary); }
.cart-item-qty { display: flex; align-items: center; margin-top: 4px; }
.cart-item-qty .qty-btn { width: 26px; height: 26px; font-size: 14px; }
.cart-item-qty .qty-num { width: 36px; height: 26px; font-size: 12px; }
.cart-footer { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-bg); border-top: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; gap: 12px; z-index: 50; }
.cart-footer .cart-select-all { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.payment-option { display: flex; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.payment-option:hover { border-color: var(--primary); }
.payment-option input[type="radio"] { width: 18px; height: 18px; margin-right: 10px; accent-color: var(--primary); }
.payment-label { font-size: 14px; font-weight: 500; }

/* ===== Checkout ===== */
.checkout-error { background: #ffebee; color: #c62828; padding: 10px 16px; border-radius: var(--radius); margin-bottom: 10px; font-size: 14px; }
.checkout-section { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.checkout-address { padding: 4px 0; }
.checkout-address.empty { color: var(--text-lighter); }
.checkout-address .address-info { font-size: 14px; margin-bottom: 4px; }
.checkout-address .address-detail { font-size: 13px; color: var(--text-light); }
.checkout-goods-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.checkout-goods-item:last-child { border-bottom: none; }
.checkout-goods-item img { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; }
.checkout-goods-info { flex: 1; }
.checkout-goods-name { font-size: 13px; margin-bottom: 4px; }
.checkout-goods-price { font-size: 12px; color: var(--text-light); }
.checkout-summary { margin-bottom: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.summary-row.total { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; font-size: 16px; font-weight: 600; }
.summary-row.total .total-price { color: var(--primary); font-size: 20px; }
.checkout-footer { position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 16px; background: var(--card-bg); border-top: 1px solid var(--border); z-index: 50; }
.checkout-footer .btn-submit-order { width: 100%; padding: 14px; font-size: 16px; font-weight: 600; }
.checkout-footer textarea { margin-bottom: 10px; }

/* ===== Orders ===== */
.order-tabs { display: flex; background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 10px; }
.order-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 13px; color: var(--text-light); }
.order-tab.active { color: var(--primary); font-weight: 600; border-bottom: 2px solid var(--primary); }
.order-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.order-card-header { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.order-status { color: var(--primary); font-weight: 500; }
.order-card-goods { padding-bottom: 8px; }
.order-goods-item { display: flex; gap: 8px; padding: 4px 0; }
.order-goods-item img { width: 52px; height: 52px; border-radius: var(--radius); object-fit: cover; }
.order-goods-info { flex: 1; }
.order-goods-name { font-size: 13px; }
.order-goods-price { font-size: 12px; color: var(--text-light); }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--border); }
.order-total { font-size: 13px; }
.order-actions { display: flex; gap: 6px; }
.order-actions .btn { padding: 5px 12px; font-size: 12px; border: 1px solid var(--border); border-radius: 14px; background: none; color: var(--text); }
.order-actions .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.order-empty { text-align: center; padding: 60px 20px; color: var(--text-lighter); }

/* ===== Order Detail ===== */
.order-detail-status { background: var(--primary); color: #fff; padding: 20px; border-radius: var(--radius-lg); margin-bottom: 10px; text-align: center; }
.order-detail-status .status-text { font-size: 18px; font-weight: 600; }
.order-detail-address { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.order-detail-address .addr-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.order-detail-address .addr-detail { font-size: 13px; color: var(--text-light); }
.detail-section { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.detail-section-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.detail-goods-item { display: flex; gap: 10px; padding: 6px 0; }
.detail-goods-item img { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; }
.detail-goods-name { font-size: 13px; margin-bottom: 2px; }
.detail-goods-price { font-size: 12px; color: var(--text-light); }
.detail-info-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.detail-info-row:last-child { border-bottom: none; }
.detail-info-row.total { font-weight: 600; font-size: 15px; }
.detail-info-row.total .total-price { color: var(--primary); }
.detail-actions { display: flex; gap: 8px; padding: 10px 0; }
.detail-actions .btn { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); }
.detail-actions .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Login ===== */
.page-login { max-width: 360px; margin: 40px auto; }
.login-box { background: var(--card-bg); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; }
.login-box h2 { font-size: 20px; margin-bottom: 20px; }
.login-error { color: var(--accent); font-size: 13px; margin-bottom: 12px; }
.login-box .btn-block { padding: 12px; font-size: 16px; }

/* ===== User Center ===== */
.user-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-lg); padding: 24px; color: #fff; text-align: center; margin-bottom: 12px; }
.user-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 8px; }
.user-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.user-balance { font-size: 14px; opacity: .9; }
.user-menu { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.user-menu-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.user-menu-item:last-child { border-bottom: none; }
.user-menu-item span:last-child { margin-left: auto; color: var(--text-lighter); }
.user-section { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 12px; }

/* ===== Address ===== */
.address-item { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 8px; }
.address-info { font-size: 14px; margin-bottom: 4px; }
.address-info strong { margin-right: 6px; }
.default-badge { display: inline-block; font-size: 11px; background: var(--primary); color: #fff; padding: 1px 8px; border-radius: 8px; margin-left: 6px; }
.address-detail { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.address-actions { display: flex; gap: 8px; }
.address-actions .btn { font-size: 12px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 4px; }
.address-form { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; margin-top: 12px; }
.recent-order a { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
.recent-order a span { margin-right: 10px; }
.recent-order-no { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-order-status { color: var(--primary); }
.recent-order-price { color: var(--text-lighter); }

/* ===== Wallet ===== */
.wallet-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-lg); padding: 30px; text-align: center; color: #fff; margin-bottom: 12px; }
.wallet-balance { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.wallet-label { font-size: 14px; opacity: .9; }
.wallet-logs { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; }
.wallet-log-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.wallet-log-item:last-child { border-bottom: none; }
.log-desc { font-size: 13px; }
.log-time { font-size: 11px; color: var(--text-lighter); margin-top: 2px; }
.log-amount { font-size: 15px; font-weight: 600; }

/* ===== Search ===== */
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-input { flex: 1; padding: 10px 16px; border-radius: 20px; border: 1px solid var(--border); font-size: 14px; }
.search-bar .btn { border-radius: 20px; }
.search-hot { background: var(--card-bg); border-radius: var(--radius-lg); padding: 14px 16px; }
.search-hot h3 { font-size: 14px; margin-bottom: 10px; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-tag { padding: 5px 14px; border: 1px solid var(--border); border-radius: 16px; font-size: 12px; color: var(--text); }
.hot-tag:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.page-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--text); background: var(--card-bg); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .goods-grid { grid-template-columns: repeat(3,1fr); gap: 12px; }
  .flash-sale-grid { grid-template-columns: repeat(6,1fr); }
  .category-grid { grid-template-columns: repeat(6,1fr); }
  .shop-main { padding: 16px; }
  .hamburger { display: none !important; }
  .goods-detail-gallery { max-width: 500px; margin: 0 auto 12px; }
}

@media (max-width: 767px) {
  .shop-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--card-bg); flex-direction: column; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 99; }
  .shop-nav.open { display: flex; }
  .shop-nav a { padding: 10px 16px; width: 100%; }
  .hamburger { display: flex; }
  .category-layout { flex-direction: column; }
  .category-sidebar { width: 100%; display: flex; overflow-x: auto; }
  .category-sidebar li { flex-shrink: 0; }
  .category-sidebar li a { white-space: nowrap; padding: 10px 16px; }
  .cart-footer { padding: 10px 12px; }
}

@media (min-width: 1024px) {
  .goods-grid { grid-template-columns: repeat(4,1fr); }
}
