/* Mini Shop: a calm, product-first storefront with reusable interaction surfaces. */
:root {
  --ink: #182b37;
  --muted: #63717c;
  --line: #dfe5e9;
  --paper: #f7f8fa;
  --soft: #edf2f5;
  --primary: #245a70;
  --primary-strong: #163d50;
  --primary-soft: #e9f2f5;
  --accent-2: #245a70;
  --shadow: 0 16px 50px rgba(24, 43, 55, .11);
  --shadow-soft: 0 8px 24px rgba(24, 43, 55, .06);
  --steel-gradient: linear-gradient(135deg, #163d50, #245a70);
}
[hidden] { display: none !important; }
body.storefront-v2 { background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.dialog-open { overflow: hidden; }
.ui-icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 10px; font-weight: 700; }
.btn-dark { background: var(--primary-strong); color: #fff; box-shadow: none; border-color: var(--primary-strong); }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-outline-dark { border-color: #a9b6be; background: transparent; color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 36px; }
.site-main { padding-top: 28px; }
.site-nav { background: rgba(255, 255, 255, .97); backdrop-filter: none; }
.site-nav > .site-nav__inner { display: grid; }
.site-nav__inner { grid-template-columns: 190px minmax(0, 1fr) auto; gap: 8px 24px; padding-top: 12px; padding-bottom: 8px; }
.site-brand { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.site-brand img { box-shadow: none; }
.search-shell { position: relative; min-width: 0; width: 100%; }
.site-search { width: 100%; box-shadow: none; border-radius: 10px; background: #f7f9fa; grid-template-columns: minmax(84px, 105px) 1fr 44px; }
.site-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 90, 112, .1); }
.site-search input:focus-visible, .site-search select:focus-visible { outline-offset: -3px; }
.site-search select { max-width: 105px; font-size: 13px; }
.icon-btn--accent { background: var(--primary-strong); color: white; border: 0; border-radius: 8px; }
.site-menu { grid-column: 1 / -1; }
.site-menu .offcanvas-body { display: flex; justify-content: space-between; padding: 5px 0 0; gap: 12px; border-top: 1px solid #edf0f2; }
.nav-links { flex: 1; gap: 2px; }
.nav-pill { min-height: 34px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.nav-pill.is-active { color: var(--primary-strong) !important; background: var(--primary-soft); }
.nav-pill:hover { transform: none; }
.nav-badge { font-size: 12px; min-height: 30px; padding: 0 9px; }
.nav-user { font-size: 12px; max-width: 150px; }
.language-switcher select { height: 32px; font-size: 12px; border-radius: 8px; }
.site-actions { gap: 7px; }
.site-actions .icon-btn, .site-actions .nav-icon-link { border-color: transparent; background: transparent; border-radius: 10px; }
.site-actions .icon-btn:hover, .site-actions .nav-icon-link:hover { background: var(--soft); }
.saved-count { position: absolute; top: 0; right: 0; padding: 0 5px; min-width: 17px; height: 17px; line-height: 17px; border-radius: 50%; background: var(--primary-strong); color: #fff; font-size: 10px; }
.guest-banner { margin-bottom: 24px; background: transparent; border: 0; border-radius: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.edit-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); min-height: 300px; margin: 0 0 42px; border-radius: 20px; overflow: hidden; background: #e8edf0; }
.edit-hero__copy { align-self: center; padding: 32px clamp(22px, 4vw, 52px); }
.edit-hero h1 { margin: 12px 0 18px; max-width: 560px; font-size: clamp(34px, 4vw, 52px); font-weight: 750; letter-spacing: -.04em; line-height: 1.13; }
.edit-hero__copy > p:not(.eyebrow) { max-width: 460px; color: #4c6170; line-height: 1.8; font-size: 15px; margin-bottom: 20px; }
.edit-hero__note { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; font-size: 11px; color: #516b79; }
.edit-hero__feature { position: relative; display: grid; grid-template-columns: 1fr; background: #fff; margin: 20px; border-radius: 12px; min-height: 250px; text-decoration: none; overflow: hidden; }
.edit-hero__feature > img, .edit-hero__feature > picture { width: 100%; height: 250px; object-fit: contain; padding: 12px; }
.edit-hero__feature > div { display: grid; gap: 4px; padding: 15px 18px; border-top: 1px solid #edf0f2; background: #fff; }
.edit-hero__feature span { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.edit-hero__feature strong { font-size: 16px; }
.edit-hero__feature em { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-style: normal; }
.catalog-head { margin: 0 0 18px; align-items: center; scroll-margin-top: 140px; }
.catalog-head h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; line-height: 1.25; }
.catalog-lead { color: var(--muted); font-size: 13px; margin: 9px 0 0; }
.catalog-count { font-size: 12px; white-space: nowrap; }
.eyebrow { font-size: 10px; letter-spacing: .15em; }
.category-strip { padding-bottom: 18px; margin-bottom: 0; }
.category-strip a { display: flex; gap: 8px; align-items: center; min-height: 40px; font-size: 13px; padding: 8px 13px; background: #fff; border-radius: 8px; font-weight: 650; }
.category-strip a span { font-size: 10px; opacity: .65; font-weight: 500; }
.category-strip a.active { background: var(--primary-strong); }
.category-strip a.active:hover { color: #fff; }
.collection-controls { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0 20px; border-top: 1px solid var(--line); }
.filter-panel { position: relative; min-width: 90px; }
.filter-panel summary { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 650; list-style: none; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel[open] summary { border-color: var(--primary); background: var(--primary-soft); }
.filter-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.price-filter-form { display: flex; gap: 12px; align-items: end; margin-top: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.price-filter-form fieldset { border: 0; padding: 0; margin: 0; }
.price-filter-form legend { float: none; width: auto; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.price-inputs { display: flex; gap: 8px; align-items: end; }
.price-inputs > span { align-self: center; margin-top: 16px; color: var(--muted); }
.price-inputs label { display: block; margin-bottom: 4px; font-size: 11px; color: var(--muted); }
.price-inputs input { width: 125px; height: 44px; font-size: 13px; }
.sort-form label { font-size: 12px; }
.sort-form .form-select { min-width: 165px; font-size: 13px; }
.applied-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.applied-filters a { display: inline-flex; align-items: center; gap: 7px; background: var(--primary-soft); border-radius: 6px; padding: 6px 10px; color: var(--primary-strong); font-size: 12px; text-decoration: none; }
.applied-filters .ui-icon { width: 13px; height: 13px; flex-basis: 13px; }
.applied-filters .reset-link { background: transparent; text-decoration: underline; }
.product-grid { gap: 22px; }
.product-card { position: relative; border: 1px solid #e5e9ec; border-radius: 14px; box-shadow: none; transition: box-shadow .2s, border-color .2s; }
.product-card:hover { transform: none; box-shadow: var(--shadow-soft); }
.product-card__media { position: relative; }
.sample-image-note { position: absolute; top: 12px; left: 12px; padding: 4px 7px; border-radius: 5px; background: rgba(255, 255, 255, .95); color: var(--muted); font-size: 10px; pointer-events: none; }
.product-card__image { aspect-ratio: 1 / 1; background: #f0f3f5; }
.product-card__image img { object-fit: contain; padding: 10px; background: #f9fafb; }
.responsive-product-media { display: block; width: 100%; height: 100%; min-width: 0; }
.responsive-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-card:hover .product-card__image img { transform: none; }
.product-detail__gallery > .responsive-product-media { position: absolute; inset: 0; padding: 14px; }
.related-card img, .cart-item img, .admin-image-preview img, .admin-table-card img,
.admin-order-item img, .order-thumb img, .thumb-xs img { object-fit: contain !important; background: #fff; }
.related-card > picture { aspect-ratio: 1; height: auto; }
.related-card img { aspect-ratio: 1; height: 100%; }
.cart-item__image { width: 120px; aspect-ratio: 1; }
.cart-item img { aspect-ratio: 1; height: 100%; max-width: 100%; }
.product-card__body { gap: 7px; padding: 16px; min-height: 224px; }
.product-card__category { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.product-card h3 { font-size: 16px; line-height: 1.5; font-weight: 750; }
.product-card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card p.product-card__description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.65; color: var(--muted); min-height: 40px; }
.save-button { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e4e8eb; border-radius: 50%; background: rgba(255, 255, 255, .97); color: var(--ink); }
.save-button:hover { color: #a44b47; }
.is-saved .ui-icon { fill: #f8e8e7; stroke: #aa4944; }
.in-bag-marker { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 3px; align-items: center; padding: 4px 7px; border-radius: 5px; background: var(--primary-strong); color: #fff; font-size: 10px; }
.in-bag-marker .ui-icon { width: 12px; height: 12px; flex-basis: 12px; }
.card-rating { display: flex; gap: 5px; align-items: center; min-height: 20px; font-size: 11px; color: var(--muted); }
.card-rating strong { color: var(--ink); }
.rating-star { color: #b17b24; }
.product-card__foot { gap: 5px; margin-top: 10px; }
.product-card__foot > strong { font-size: 19px; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.product-card__foot form { margin: 0; }
.card-add { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--primary-strong); font-size: 11px; font-weight: 700; }
.card-add:hover { background: var(--primary-strong); color: #fff; border-color: var(--primary-strong); }
.card-add[aria-busy="true"] { opacity: .5; }
.compare-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; margin-top: 6px; padding: 4px 0 0; border: 0; border-top: 1px solid #edf0f2; background: transparent; color: var(--muted); font-size: 11px; }
.compare-button[aria-pressed="true"] { color: var(--primary); font-weight: 750; }
.compare-button .ui-icon { width: 14px; height: 14px; flex-basis: 14px; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; }
.catalog-pagination .pagination { margin: 0; }
.catalog-pagination > span { color: var(--muted); font-size: 11px; }
.pagination .page-link { padding: 9px 13px; font-size: 12px; }
.search-suggestions { position: absolute; top: calc(100% + 9px); left: 0; right: 0; z-index: 1100; overflow: hidden; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.search-suggestions > p { margin: 1px 5px 10px; color: var(--muted); font-size: 11px; }
.search-option { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 9px 7px; border-radius: 7px; cursor: pointer; }
.search-option[aria-selected="true"], .search-option:hover { background: var(--primary-soft); }
.search-option > div:not(.search-option__image) { display: grid; gap: 2px; }
.search-option strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-option span { color: var(--muted); font-size: 11px; }
.search-option em { font-style: normal; font-size: 12px; }
.search-option__image { width: 40px; height: 40px; overflow: hidden; border-radius: 5px; background: var(--soft); }
.search-option__image img { width: 100%; height: 100%; object-fit: contain; }
.search-all { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-top: 1px solid var(--line); background: #fff; color: var(--primary); font-size: 12px; font-weight: 700; }
.image-placeholder { display: grid; place-items: center; min-height: 80px; width: 100%; height: 100%; background: #edf1f4; color: var(--muted); font-size: 12px; }
dialog { padding: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(14, 27, 34, .45); backdrop-filter: blur(2px); }
.side-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
.side-dialog[open] { display: flex; flex-direction: column; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-shrink: 0; padding: 24px 24px 14px; }
.dialog-head h2 { margin: 0; font-size: 25px; font-weight: 750; letter-spacing: -.04em; }
.dialog-head h2 > span { color: var(--muted); font-size: 15px; font-weight: 500; }
.dialog-head .icon-btn { width: 38px; height: 38px; flex-shrink: 0; }
.dialog-intro { margin: 0; padding: 0 24px 18px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.bag-status { margin: 0; padding: 0 24px; color: var(--muted); font-size: 12px; }
.bag-items, .saved-items { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 24px; }
.bag-item { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mini-product-image { width: 74px; height: 86px; overflow: hidden; background: var(--soft); border-radius: 7px; }
.mini-product-image img { width: 100%; height: 100%; object-fit: contain; }
.bag-item__body { display: grid; gap: 6px; min-width: 0; }
.bag-item__title { text-decoration: none; font-size: 13px; font-weight: 750; line-height: 1.5; }
.bag-item__price { font-size: 11px; color: var(--muted); }
.bag-item__total { font-size: 13px; white-space: nowrap; }
.bag-item__controls { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.quantity-stepper--compact { width: 114px; grid-template-columns: 34px 44px 34px; }
.bag-quantity { display: grid; place-items: center; font-size: 13px; }
.text-button { padding: 2px 0; border: 0; background: transparent; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; cursor: pointer; }
.bag-footer { flex-shrink: 0; padding: 12px 24px max(20px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.bag-footer .summary-total { border-top: 0; padding: 0; font-size: 13px; }
.bag-footer .summary-total strong { color: var(--ink); font-size: 24px; }
.bag-footer > p { margin: 8px 0 14px; color: var(--muted); font-size: 11px; }
.bag-footer > .text-button { display: block; margin: 11px auto 0; text-align: center; }
.drawer-empty { display: grid; place-items: center; gap: 12px; padding: 60px 14px; text-align: center; }
.drawer-empty h3 { font-size: 22px; letter-spacing: -.03em; margin: 0; }
.drawer-empty p { color: var(--muted); font-size: 13px; margin: 0 0 7px; }
.drawer-loading, .request-error { padding: 18px 0; font-size: 13px; color: var(--muted); }
.collection-card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.collection-card__link { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; }
.collection-card__link > div:last-child { display: grid; gap: 5px; }
.collection-card__category { color: var(--muted); font-size: 10px; }
.collection-card strong { font-size: 14px; }
.collection-card em { font-style: normal; font-size: 13px; }
.collection-card__actions { display: flex; gap: 16px; align-items: center; padding-left: 88px; margin-top: 10px; }
.compare-tray { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(900px, calc(100vw - 32px)); padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 1020; }
.compare-tray > div { display: flex; align-items: center; gap: 12px; }
.compare-tray strong { font-size: 13px; white-space: nowrap; }
.compare-tray__hint { color: var(--muted); font-size: 11px; }
body.has-compare-tray { padding-bottom: 90px; }
.compare-dialog { width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 36px); border-radius: 16px; }
.compare-table-scroll { overflow: auto; max-height: calc(100dvh - 170px); padding: 0 24px 20px; }
.compare-table { border-collapse: collapse; width: 100%; table-layout: fixed; min-width: 630px; }
.compare-table th:first-child { width: 125px; }
.compare-table th, .compare-table td { padding: 18px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; font-size: 13px; line-height: 1.65; }
.compare-table th { font-weight: 700; color: var(--muted); background: #f9fafb; }
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }
.compare-table thead th { color: var(--ink); background: #fff; }
.compare-table .mini-product-image { width: 100%; height: 130px; margin-bottom: 12px; }
.compare-product { color: var(--ink); text-decoration: none; }
.compare-remove { display: block; margin-top: 8px; }
.toast-region { position: fixed; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 24px); z-index: 3000; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 24px; padding: 13px 19px; background: var(--ink); color: #fff; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s; font-size: 13px; }
.toast-region.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-region .text-button { color: #bfe4f4; font-weight: 750; white-space: nowrap; }
body.has-compare-tray .toast-region { bottom: 108px; }
.product-detail h1 { font-size: clamp(29px, 3.3vw, 44px); line-height: 1.2; letter-spacing: -.03em; }
.product-detail__info { padding: 8px 0; }
.product-detail--marketplace { grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr) 270px; }
.product-detail__gallery, .purchase-card, .order-summary { border-radius: 14px; }
.product-detail__gallery { position: relative; }
.purchase-card, .order-summary { top: 136px; box-shadow: none; }
.rating-line { justify-content: start; gap: 14px; margin-top: 15px; flex-wrap: wrap; font-size: 12px; }
.stars { color: #a27327; }
.product-secondary-actions { display: flex; gap: 8px; margin-top: 17px; flex-wrap: wrap; }
.product-secondary-actions .btn { min-height: 38px; font-size: 11px; }
.market-price-panel { padding: 0; border: 0; background: transparent; }
.market-price-panel strong { font-size: 32px; color: var(--ink); }
.market-price-panel em { font-size: 11px; }
.product-detail__desc { font-size: 14px; line-height: 1.85; }
.commerce-promises > div { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 12px 0 0; font-size: 12px; }
.commerce-promises span { font-size: 11px; }
.image-zoom { position: absolute; bottom: 12px; right: 12px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); }
.image-dialog { width: min(900px, calc(100vw - 24px)); height: min(760px, calc(100dvh - 32px)); border-radius: 14px; }
.image-dialog img { width: 100%; height: 100%; padding: 25px; object-fit: contain; }
.image-dialog .icon-btn { position: absolute; right: 14px; top: 14px; z-index: 1; }
.recent-section { margin-top: 44px; }
.recent-section h2, .related-section h2, .reviews-section h2, .product-info-grid h2 { font-size: 23px; letter-spacing: -.025em; }
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recent-grid .collection-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mobile-buy-strip { display: none; }
.cart-item img { object-fit: contain; }
.cart-item { box-shadow: none; background: #fff; }
.cart-item__controls { width: 114px; }
.cart-save-status { min-height: 18px; font-size: 12px; color: var(--muted); margin: 0; }
.cart-save-status.is-error { color: var(--danger); }
.cart-manual-save { min-height: 38px; }
.payment-demo-note { padding: 12px; border-radius: 8px; background: #fff7e6; color: #725011; font-size: 12px; }
.payment-demo-note p { margin: 4px 0 0; font-size: 11px; line-height: 1.6; }
.password-field { position: relative; }
.password-field input { padding-right: 95px; }
.password-field .text-button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.flash-stack { top: 142px; }
button:disabled { cursor: wait; opacity: .55; }
.btn[aria-disabled="true"] { opacity: .6; cursor: wait; }
.site-footer { margin-top: 20px; font-size: 12px; }
.dialog-toast { position: static !important; transform: none !important; flex-shrink: 0; align-self: center; width: calc(100% - 36px) !important; max-width: none; margin: 0 18px 18px; display: none; }
.dialog-toast.is-visible { display: flex; }
#reviews, #product-details { scroll-margin-top: 150px; }
@media (max-width: 1199.98px) {
  .site-nav__inner { grid-template-columns: 155px minmax(0, 1fr) auto; gap: 8px 16px; }
  .product-detail--marketplace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .purchase-card { grid-column: 2; position: static; }
  .product-detail__gallery { grid-row: 1 / span 2; }
  .price-filter-form { flex-direction: column; align-items: stretch; }
  .price-inputs input { width: 130px; }
}
@media (max-width: 991.98px) {
  .site-nav__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding-top: 9px; padding-bottom: 9px; }
  .site-menu { grid-column: auto; }
  .site-menu .offcanvas-body { display: flex; flex-direction: column; justify-content: flex-start; padding: 16px 20px 28px; align-items: stretch; border: 0; }
  .search-shell { order: 3; grid-column: 1 / -1; }
  .site-search { width: 100%; }
  .site-menu.offcanvas { --bs-offcanvas-width: min(400px, 100vw); width: min(400px, 100vw) !important; background: #f7f9fa; }
  .site-menu .offcanvas-body > * { flex-shrink: 0; }
  .site-menu .nav-links { flex: none; }
  .site-menu .nav-pill--primary { background: var(--primary-strong); color: #fff !important; }
  .nav-pill { min-height: 54px; font-size: 14px; }
  .nav-user { max-width: none; }
  .language-switcher select { height: 44px; }
  .site-actions .icon-btn, .site-actions .nav-icon-link, .site-actions .navbar-toggler { width: 44px; height: 44px; min-width: 44px; }
  .catalog-head { scroll-margin-top: 130px; }
  .product-grid { gap: 18px; }
  .product-detail__gallery { grid-row: auto; }
  .purchase-card { grid-column: auto; }
  .product-detail--marketplace { grid-template-columns: 1fr; }
  .purchase-card, .order-summary { position: static; }
  .product-detail__gallery { max-height: 520px; }
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-tray__hint { display: none; }
}
@media (max-width: 640px) {
  .site-main { padding-top: 18px; }
  .site-brand { font-size: 17px; }
  .site-brand span { max-width: 110px; }
  .site-actions { gap: 2px; }
  .site-brand img { width: 27px; height: 27px; }
  .guest-banner { font-size: 11px; gap: 10px; margin-bottom: 16px; }
  .edit-hero { grid-template-columns: 1.2fr .8fr; min-height: 235px; margin-bottom: 30px; border-radius: 12px; }
  .edit-hero__copy { padding: 20px; }
  .edit-hero h1 { font-size: 29px; margin: 10px 0 12px; }
  .edit-hero__copy > p:not(.eyebrow) { font-size: 12px; line-height: 1.6; }
  .edit-hero__copy .eyebrow { font-size: 8px; line-height: 1.6; }
  .edit-hero__copy .btn { min-height: 38px; padding: 7px 10px; font-size: 11px; }
  .edit-hero__note { margin-top: 14px; gap: 5px; flex-direction: column; font-size: 9px; }
  .edit-hero__feature { margin: 12px 12px 12px 0; min-height: 160px; }
  .edit-hero__feature > img, .edit-hero__feature > picture { height: 160px; padding: 7px; }
  .edit-hero__feature > div { padding: 10px; }
  .edit-hero__feature strong { font-size: 12px; }
  .edit-hero__feature em { font-size: 11px; }
  .edit-hero__feature span { font-size: 8px; }
  .catalog-head { gap: 10px; margin-bottom: 17px; }
  .catalog-head h2 { font-size: 26px; }
  .catalog-count { font-size: 11px; }
  .catalog-lead { font-size: 12px; }
  .collection-controls { gap: 10px; flex-wrap: wrap; }
  .collection-controls > .sort-form { width: auto; flex: 1; justify-content: flex-end; }
  .collection-controls .sort-form label { display: none; }
  .collection-controls .sort-form .form-select { flex: 0 0 170px; width: 170px; min-width: 0; max-width: 185px; }
  .filter-panel { width: auto; }
  .filter-panel[open] { width: 100%; }
  .price-filter-form { flex-direction: row; flex-wrap: wrap; align-items: end; padding: 14px; }
  .price-filter-form fieldset { flex: 1; }
  .price-inputs > div { flex: 1; min-width: 0; }
  .price-inputs input { width: 100%; }
  .price-filter-form > .btn { flex: 1 0 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 10px; }
  .product-card__body { padding: 12px; min-height: 221px; gap: 6px; }
  .product-card h3 { font-size: 14px; }
  .product-card p.product-card__description { font-size: 11px; min-height: 37px; }
  .product-card__foot > strong { font-size: 16px; }
  .card-add { min-height: 44px; width: 44px; padding: 0; }
  .card-add span { display: none; }
  .card-add .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
  .save-button { top: 7px; right: 7px; width: 44px; height: 44px; }
  .compare-button { font-size: 10px; min-height: 44px; }
  .catalog-pagination { gap: 0; flex-direction: column; margin-top: 24px; }
  .catalog-pagination > span { margin-top: 12px; }
  .pagination .page-link { font-size: 11px; padding: 9px 10px; }
  .dialog-head { padding: 20px 18px 12px; }
  .dialog-intro { padding: 0 18px 15px; }
  .bag-items, .saved-items { padding: 4px 18px; }
  .bag-footer { padding-left: 18px; padding-right: 18px; }
  .bag-item { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; }
  .bag-item .mini-product-image { width: 62px; height: 80px; }
  .bag-item__total { font-size: 12px; }
  .compare-tray { padding: 10px 12px; gap: 10px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .compare-tray > div { gap: 8px; }
  .compare-tray strong { font-size: 11px; }
  .compare-tray > div > .ui-icon { display: none; }
  .compare-tray .text-button { font-size: 10px; }
  .compare-tray .btn { padding: 6px 9px; min-height: 38px; font-size: 11px; }
  .compare-dialog .dialog-head h2 { font-size: 21px; }
  .compare-table-scroll { padding: 0 10px 14px; }
  .compare-table { min-width: 575px; }
  .compare-table th:first-child { width: 100px; }
  .compare-table th, .compare-table td { padding: 15px 10px; font-size: 12px; }
  .toast-region { width: calc(100vw - 32px); justify-content: space-between; font-size: 12px; gap: 10px; }
  .product-secondary-actions .btn { font-size: 12px; }
  .mobile-buy-strip { display: flex; position: fixed; bottom: 0; left: 0; right: 0; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -4px 20px rgba(24, 43, 55, .05); z-index: 1010; }
  .mobile-buy-strip > div { display: grid; gap: 2px; }
  .mobile-buy-strip strong { font-size: 19px; }
  .mobile-buy-strip span { font-size: 10px; color: var(--muted); }
  .mobile-buy-strip .btn { font-size: 12px; }
  body:has(.mobile-buy-strip) { padding-bottom: 82px; }
  body:has(.mobile-buy-strip) .toast-region { bottom: 95px; }
  body.has-compare-tray:has(.mobile-buy-strip) { padding-bottom: 155px; }
  body.has-compare-tray:has(.mobile-buy-strip) .compare-tray { bottom: 88px; }
  body.has-compare-tray:has(.mobile-buy-strip) .toast-region { bottom: 170px; }
  .recent-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-card { font-size: 13px; }
  .flash-stack { top: 128px; }
}
@media (max-width: 370px) {
  .site-brand { gap: 6px; }
  .site-brand span { max-width: 91px; font-size: 15px; }
  .edit-hero { grid-template-columns: 1fr; }
  .edit-hero__feature { display: none; }
  .price-filter-form { width: 100%; }
  .product-card__body { padding: 10px; }
  .product-card__foot > strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast-region, .product-card, .product-card__image img { transition: none; }
}
