.market-store {
  --market-navy: #14213d;
  --market-orange: #ff6b00;
  --market-orange-hover: #e85d00;
  --market-blue: #2563eb;
  --market-success: #168a45;
  --market-background: #f5f6f8;
  --market-surface: #fff;
  --market-text: #20242c;
  --market-muted: #667085;
  --market-border: #e2e5ea;
  background: var(--market-background);
  color: var(--market-text);
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: 16px;
  padding-bottom: 0;
}
.market-store .content-shell { padding-top: 20px; }
.market-store :is(.market-home, .market-catalog) { min-width: 0; }
.market-icon { flex: 0 0 24px; }
.market-store :is(a,button,input,select):focus-visible { outline: 3px solid var(--market-blue); outline-offset: 3px; box-shadow: none; }
.market-header :is(a,button,input):focus-visible, .market-mobile-nav :is(a,button):focus-visible { outline-color: #ffba85; }
.market-skip { position: fixed; left: 16px; top: -100px; z-index: 1100; padding: 12px; background: white; }
.market-skip:focus { top: 8px; }
.market-header { background: var(--market-navy); color: white; }
.market-header-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 24px; align-items: center; min-height: 78px; }
.market-header a { text-decoration: none; color: white; }
.market-brand { display: flex; gap: 8px; align-items: center; font-size: 20px; font-weight: 700; }
.market-brand-mark { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; border-bottom: 3px solid var(--market-orange); padding-bottom: 2px; }
.market-brand-store { font-weight: 500; opacity: .9; }
.market-search { display: grid; grid-template-columns: minmax(0,1fr) 48px; min-width: 0; }
.market-search input { min-width: 0; width: 100%; border: 0; border-radius: 6px 0 0 6px; padding: 10px 12px; min-height: 44px; color: var(--market-text); }
.market-search button { border: 0; border-radius: 0 6px 6px 0; background: var(--market-blue); color: white; min-height: 44px; }
.market-desktop-account { display: flex; align-items: center; gap: 12px; }
.market-desktop-account a { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.market-desktop-account form { margin: 0; }
.market-desktop-account button { color: white; background: transparent; border: 0; min-height: 44px; }
.market-header-cart { position: relative; display: flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; }
.market-count { display: inline-grid; place-items: center; background: var(--market-orange); color: var(--market-navy); min-width: 24px; min-height: 24px; border-radius: 6px; font-size: 13px; font-weight: 800; }
.market-desktop-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 6px; }
.market-desktop-nav :is(a,button) { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; background: none; border: 0; color: white; font-size: 14px; text-decoration: none; }
.market-mobile-nav { display: none; }
.market-drawer { --bs-offcanvas-width: min(340px, calc(100vw - 24px)); }
.market-drawer h2 { font-size: 20px; margin: 0; }
.market-drawer .btn-close { min-width: 44px; min-height: 44px; padding: 0; }
#marketCategories .offcanvas-body { display: flex; flex-direction: column; gap: 4px; }
#marketCategories .offcanvas-body a { min-height: 44px; padding: 10px 8px; color: var(--market-text); border-bottom: 1px solid var(--market-border); text-decoration: none; overflow-wrap: anywhere; }
.market-home h1, .market-catalog h1 { font-size: clamp(22px,2vw,28px); line-height: 1.2; margin: 0 0 20px; font-weight: 750; color: var(--market-navy); overflow-wrap: anywhere; }
.market-section { margin-bottom: 24px; }
.market-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.market-section-heading h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.market-section-heading a { color: var(--market-blue); font-size: 14px; min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.market-categories { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.market-categories a { display: flex; gap: 10px; align-items: center; min-width: 0; min-height: 66px; padding: 8px 12px; background: white; border: 1px solid var(--market-border); border-radius: 8px; color: var(--market-text); text-decoration: none; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.market-category-icon { color: var(--market-blue); display: flex; }
.market-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.market-grid > * { min-width: 0; }
.market-card { background: var(--market-surface); border: 1px solid var(--market-border); border-radius: 8px; display: flex; flex-direction: column; min-width: 0; }
.market-card-media { display: block; width: 100%; aspect-ratio: 1; padding: 12px; background: #fafbfc; border-bottom: 1px solid var(--market-border); border-radius: 8px 8px 0 0; }
.market-card-media img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
.market-card-copy { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; min-width: 0; }
.market-card-category { color: var(--market-muted); font-size: 12px; overflow-wrap: anywhere; }
.market-card h3 { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; min-height: 2.8em; }
.market-card h3 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; color: var(--market-text); text-decoration: none; }
.market-price { font-size: 22px; line-height: 1.2; color: var(--market-navy); overflow-wrap: anywhere; }
.market-stock { color: var(--market-success); font-size: 13px; font-weight: 600; }
.market-stock-empty { color: var(--market-muted); }
.market-buy { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px; margin-top: auto; border: 1px solid var(--market-navy); border-radius: 6px; background: var(--market-navy); color: white; text-decoration: none; font-size: 14px; font-weight: 650; text-align: center; }
.market-buy:hover { background: #22345c; color: white; }
.market-buy-secondary { background: white; color: var(--market-navy); }
.market-buy-secondary:hover { background: var(--market-navy); color: white; }
.market-card-form { margin: auto 0 0; }
.market-card { transition: box-shadow .15s ease; scroll-margin-top: 16px; }
.market-card:hover { box-shadow: 0 6px 20px rgba(20,33,61,.1); }
.market-stock-low { color: #b54708; }
.market-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; margin: 8px 0 24px; padding: 20px; background: white; border: 1px solid var(--market-border); border-radius: 8px; }
.market-benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--market-muted); }
.market-benefits .market-icon { color: var(--market-orange-hover); }
.market-benefits strong { display: block; color: var(--market-navy); }
.market-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; color: var(--market-muted); margin-bottom: 12px; }
.market-store .market-breadcrumb a { color: var(--market-muted); text-decoration: none; }
.market-store .market-breadcrumb a:hover { color: var(--market-blue); text-decoration: underline; }
.market-breadcrumb [aria-current=page] { color: var(--market-navy); font-weight: 600; }
.market-breadcrumb-sep { color: #98a2b3; }
.market-catalog-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.market-catalog-heading h1 { margin: 0; }
.market-catalog-heading > span { color: var(--market-muted); font-size: 14px; }
.market-current-filter { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; overflow-wrap: anywhere; }
.market-current-filter a { color: var(--market-blue); }
.market-toolbar { display: flex; gap: 12px; justify-content: flex-end; margin-bottom: 16px; }
.market-sort { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 14px; }
.market-sort select { min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--market-border); border-radius: 6px; background: white; max-width: 100%; }
.market-filter-toggle { display: none; }
.market-catalog-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 24px; align-items: start; }
.market-filters .offcanvas-body { padding: 0; }
.market-filter-form { width: 100%; display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.market-filter-form fieldset + fieldset { padding-top: 16px; border-top: 1px solid var(--market-border); }
.market-filter-form legend { font-weight: 700; font-size: 15px; color: var(--market-navy); margin-bottom: 8px; }
.market-filter-form label { display: flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.market-filter-form label:hover { background: var(--market-background); }
.market-filter-form label:has(input:checked) { background: #eef3ff; color: var(--market-navy); font-weight: 650; }
.market-filter-form label:has(input:focus-visible) { outline: 3px solid var(--market-blue); outline-offset: 1px; }
.market-filter-form label span { min-width: 0; flex: 1; }
.market-filter-form input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.market-filter-form small { color: var(--market-muted); font-weight: 400; }
.market-filter-apply { width: 100%; margin-top: 12px; border: 1px solid var(--market-border); color: var(--market-navy); background: white; min-height: 44px; border-radius: 6px; font-weight: 600; }
.market-filter-apply:hover { border-color: var(--market-blue); background: #eef3ff; }
@media (min-width: 992px) {
  .market-filters { position: sticky; top: 16px; padding: 16px; background: white; border: 1px solid var(--market-border); border-radius: 8px; }
}
.market-price-range { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.market-filter-form .market-price-range label { display: block; min-height: 0; padding: 0; font-size: 13px; color: var(--market-muted); margin-bottom: 4px; }
.market-filter-form .market-price-range label:hover { background: none; }
.market-price-range input { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--market-border); border-radius: 6px; background: white; }
.market-filter-form > a { color: var(--market-blue); min-height: 44px; }
.market-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 0; font-size: 14px; }
.market-pagination a { color: var(--market-blue); padding: 10px; min-height: 44px; }
.market-empty { background: white; padding: 28px; border: 1px solid var(--market-border); border-radius: 8px; }
.market-empty h2, .market-empty h3 { font-size: 20px; }
.market-empty a { color: var(--market-blue); }
.market-footer { background: white; border-top: 1px solid var(--market-border); padding: 32px 0 16px; margin-top: 16px; }
.market-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.market-footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; }
.market-footer h2 { font-size: 14px; font-weight: 700; color: var(--market-navy); margin: 0 0 8px; }
.market-footer p, .market-footer-payments { font-size: 14px; color: var(--market-muted); }
.market-footer-brand { display: block; font-size: 18px; color: var(--market-navy); margin-bottom: 8px; }
.market-footer-payments { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.market-footer-legal { font-size: 13px; color: var(--market-muted); border-top: 1px solid var(--market-border); margin-top: 24px; padding-top: 16px; }
.market-footer a { color: var(--market-muted); font-size: 14px; padding: 6px 0; text-decoration: none; }
.market-footer a:hover { color: var(--market-navy); text-decoration: underline; }
.market-store .chat-widget { position: fixed; right: 16px; left: auto; bottom: 16px; width: auto; padding: 0; z-index: 1035; align-items: flex-end; background: none; }
.market-store .chat-trigger { box-shadow: 0 4px 14px rgba(20,33,61,.22) !important; border-radius: 6px; min-height: 44px; min-width: 64px; padding: 4px 12px; background: white; color: var(--market-navy); box-shadow: none; border: 1px solid var(--market-border); }
.market-store .chat-trigger-badge { background: transparent; padding: 0; color: inherit; }
.market-store .chat-trigger-copy { display: none; }
.market-store .chat-panel { position: fixed; right: 12px; bottom: 72px; width: min(380px,calc(100vw - 24px)); height: min(480px,calc(100dvh - 130px)); border-radius: 10px; z-index: 1040; }
.market-store .chat-panel[hidden] { display: none; }
.market-store .chat-form { grid-template-columns: minmax(0,1fr) auto; }
.market-store .chat-form textarea { min-width: 0; }
.market-store .chat-form button { min-width: 64px; width: auto; }
.market-store .chat-message p { white-space: pre-line; }
.chat-products { display: grid; gap: 8px; }
.chat-product { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; padding: 8px; background: white; border: 1px solid var(--market-border); border-radius: 8px; }
.chat-product-image img { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 6px; }
.chat-product-copy { display: grid; gap: 2px; min-width: 0; justify-items: start; font-size: 14px; }
.chat-product-name { color: var(--market-navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.chat-product-name:hover { color: var(--market-blue); text-decoration: underline; }
.chat-product-price { color: var(--market-navy); }
.chat-product-button { min-height: 32px; margin-top: 4px; padding: 2px 12px; border: 0; border-radius: 6px; background: var(--market-navy); color: white; font-size: 13px; font-weight: 600; }
.chat-options { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-option { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--market-blue); border-radius: 18px; background: white; color: var(--market-blue); font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.chat-option:hover { background: #eef3ff; color: var(--market-blue); }
.chat-option-link { background: var(--market-blue); color: white; }
.chat-option-link:hover { background: #1d4fc4; color: white; }
.chat-option[aria-disabled=true] { opacity: .5; pointer-events: none; }
.chat-error { padding: 8px 10px; border-radius: 6px; background: #fff0ef; color: #9f2525; font-size: 13px; }
@media (max-width: 991.98px) {
  .market-store .chat-widget { bottom: 76px; }
  .market-store .chat-panel { bottom: 76px; }
  body:has(.journey-buybar:not([hidden])) .chat-widget { bottom: 140px; }
}
html { scroll-padding-bottom: 128px; }
@media (max-width: 1199.98px) {
  .market-header-row { gap: 16px; }
  .market-catalog-layout { grid-template-columns: 210px minmax(0,1fr); gap: 16px; }
  .market-catalog .market-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .market-categories { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 991.98px) {
  .market-store { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .market-header-row { grid-template-columns: auto minmax(0,1fr) 46px; gap: 10px; min-height: 68px; }
  .market-brand-mark { font-size: 22px; }
  .market-brand-store, .market-desktop-account, .market-desktop-nav, .market-cart-label { display: none; }
  .market-header-cart .market-count { position: absolute; top: -2px; right: -2px; min-width: 20px; min-height: 20px; font-size: 11px; }
  .market-header-cart { justify-content: center; }
  .market-header-row .market-search { grid-template-columns: minmax(0,1fr) 44px; }
  .market-mobile-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; z-index: 1030; left: 0; right: 0; bottom: 0; background: white; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--market-border); }
  .market-mobile-nav :is(a,button) { min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--market-muted); background: transparent; border: 0; border-radius: 6px; text-decoration: none; font-size: 12px; overflow-wrap: anywhere; }
  .market-mobile-nav [aria-current=page] { color: var(--market-blue); background: #eef3ff; }
  .market-filter-toggle { display: inline-flex; gap: 6px; align-items: center; justify-content: center; background: white; border: 1px solid var(--market-border); border-radius: 6px; min-height: 44px; padding: 8px 12px; }
  .market-toolbar { justify-content: space-between; }
  .market-catalog-layout { grid-template-columns: minmax(0,1fr); }
  .market-filters .offcanvas-body { padding: 16px; }
  .market-grid, .market-catalog .market-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .market-store .chat-panel { bottom: calc(76px + env(safe-area-inset-bottom)); height: min(480px,calc(100dvh - 100px)); }
}
@media (max-width: 575.98px) {
  .market-store .content-shell { padding-top: 14px; }
  .market-home h1 { font-size: 22px; margin-bottom: 12px; }
  .market-section { margin-bottom: 16px; }
  .market-section-heading { gap: 8px; margin-bottom: 8px; }
  .market-section-heading h2 { font-size: 18px; }
  .market-section-heading a { font-size: 13px; }
  .market-categories { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .market-categories a { flex-direction: column; justify-content: center; padding: 8px 4px; text-align: center; gap: 4px; font-size: 13px; }
  .market-grid, .market-catalog .market-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .market-card-media { padding: 8px; }
  .market-card-copy { padding: 10px; gap: 6px; }
  .market-card h3 { font-size: 14px; }
  .market-price { font-size: 20px; }
  .market-stock { font-size: 12px; }
  .market-buy { font-size: 13px; padding: 6px 4px; }
  .market-sort { gap: 6px; }
  .market-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .market-sort select { width: 158px; }
  .market-catalog h1 { font-size: 23px; }
  .market-empty { padding: 18px; }
}
@media (max-width: 319.98px) {
  .market-grid, .market-catalog .market-grid { grid-template-columns: minmax(0,1fr); }
  .market-toolbar { flex-wrap: wrap; }
}
.market-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center; margin-bottom: 28px; padding: 40px; border-radius: 12px; color: white; background: linear-gradient(120deg,var(--market-navy) 55%,#2a3f6e); }
.market-home .market-hero h1 { color: white; font-size: clamp(26px,3.2vw,40px); margin: 0 0 12px; max-width: 18ch; text-wrap: balance; }
.market-hero p { margin: 0 0 20px; max-width: 52ch; color: #d5dbe8; }
.market-hero-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 24px; border-radius: 6px; background: var(--market-orange); color: var(--market-navy); font-weight: 750; text-decoration: none; }
.market-hero-cta:hover { background: var(--market-orange-hover); color: var(--market-navy); }
.market-hero-showcase { display: flex; gap: 12px; }
.market-hero-showcase a { display: block; width: 120px; padding: 8px; background: white; border-radius: 10px; }
.market-hero-showcase img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.market-toast { position: fixed; z-index: 1050; top: 16px; right: 16px; display: flex; gap: 16px; align-items: center; max-width: min(420px,calc(100vw - 32px)); padding: 12px 16px; border-radius: 8px; background: var(--market-navy); color: white; box-shadow: 0 8px 24px rgba(20,33,61,.3); font-size: 14px; }
.market-toast a { color: #ffba85; font-weight: 700; white-space: nowrap; }
.market-toast-error { background: #b42318; }
@media (max-width: 991.98px) {
  .market-hero { grid-template-columns: minmax(0,1fr); padding: 28px; }
  .market-hero-showcase { display: none; }
  .market-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575.98px) {
  .market-hero { padding: 22px; margin-bottom: 18px; }
  .market-benefits { grid-template-columns: minmax(0,1fr); }
  .market-footer-grid { gap: 20px; }
}
.legal-page h2 { font-size: 20px; margin-top: 24px; }
