/* DeltaSpares V173 - phone "app" layout (Home / Categories / Quote list / My RFQs, tab bar). Shown only on phones (max-width 640px); desktop is untouched. */
.mapp-add-card, .mapp-logo-ico, .mapp-head-r, .mapp-scan, .mapp-home, .mapp-scanbtn, .mapp-tabs { display: none; }
.mapp-page .mapp-wrap { max-width: 760px; margin: 0 auto; padding: 22px 16px 40px; }
.mapp-h1 { font-size: 1.8rem; margin: 0 0 14px; color: #0A2540; }
.mapp-sbox { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #D5DAE0; border-radius: 12px; padding: 0 14px; height: 50px; color: #4A5A6E; margin-bottom: 14px; }
.mapp-sbox input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; min-width: 0; }
.mapp-allcard { display: flex; align-items: center; gap: 14px; background: #0A2540; color: #fff !important; border-radius: 12px; padding: 16px; text-decoration: none; margin-bottom: 14px; }
.mapp-allcard span { flex: 1; display: flex; flex-direction: column; } .mapp-allcard small { opacity: .8; font-size: .8rem; margin-top: 2px; }
.mapp-catlist { display: flex; flex-direction: column; gap: 12px; }
.mapp-catrow { display: flex; background: #fff; border: 1px solid #E3E6EA; border-radius: 10px; overflow: hidden; text-decoration: none; color: #0A2540; min-height: 84px; }
.mapp-catrow-pic { width: 84px; flex: none; background: #E9EDF1; } .mapp-catrow-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mapp-catrow-t { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.mapp-catrow-t b { font-size: 1.02rem; } .mapp-catrow-t small { color: #4A5A6E; margin-top: 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mapp-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-weight: 700; font-size: 1.6rem; color: #0A2540; background: #E9EDF1; }
.mapp-rfqlist { display: flex; flex-direction: column; gap: 12px; }
.mapp-rfqrow { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #E3E6EA; border-radius: 10px; padding: 14px; text-decoration: none; color: #0A2540; }
.mapp-rfqrow-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .85rem; }
.mapp-rfqrow-top i { font-style: normal; font-family: inherit; font-weight: 600; border-radius: 999px; padding: 3px 10px; font-size: .75rem; }
.mapp-rfqrow-t { font-weight: 600; } .mapp-rfqrow small { color: #4A5A6E; }
.mapp-empty { background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; padding: 24px 18px; text-align: center; color: #4A5A6E; }
.mapp-empty p { margin: 0 0 10px; } .mapp-small { font-size: .85rem; }
.mapp-solid { display: inline-flex; align-items: center; justify-content: center; background: #C44B12; color: #fff !important; border-radius: 10px; padding: 13px 22px; font-weight: 700; text-decoration: none; }
.mapp-flash { outline: 3px solid #C44B12; outline-offset: 3px; border-radius: 10px; animation: mappf 1.6s ease 2; }
@keyframes mappf { 50% { outline-color: transparent; } }
@media (min-width: 641px) { .mapp-page .mapp-wrap { padding-top: 32px; } }

@media (max-width: 640px) {
  body.mapp { background: #F3F4F6; font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  /* ---- header ---- */
  .mp-header { background: #F3F4F6 !important; padding: 14px 16px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 0; box-shadow: none; }
  .mp-logo { order: 1; flex: 1 1 0 !important; min-width: 0; width: auto !important; display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; min-width: 0; }
  .mapp-logo-ico { display: block; width: 36px !important; height: 36px !important; border-radius: 9px; flex: none; }
  .mapp-logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
  .mp-logo-mark, .mp-logo-mark span { color: #0A2540 !important; font-weight: 700; font-size: 1.15rem; }
  .mp-logo-tag { display: block !important; font: 500 .56rem/1.2 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .06em; color: #4A5A6E !important; }
  .mapp-head-r { order: 2; margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .mapp-chip { font: 500 .72rem 'IBM Plex Mono', ui-monospace, monospace; color: #4A5A6E !important; background: #fff; border: 1px solid #D5DAE0; border-radius: 8px; padding: 6px 10px; text-decoration: none; }
  .mapp-acct { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; color: #0A2540 !important; background: #fff; border: 1px solid #D5DAE0; border-radius: 50%; }
  .mp-search { order: 3; flex: 1 0 100%; display: flex; align-items: center; height: 52px; background: #fff !important; border: 1px solid #D5DAE0 !important; border-radius: 12px !important; padding: 0 8px 0 14px; position: relative; margin: 0; }
  .mp-search select, .mp-search button[type=submit] { display: none !important; }
  .mp-search::before { content: ""; width: 18px; height: 18px; margin-right: 10px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5A6E' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E"); }
  .mp-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; font-size: 1rem; color: #0A2540; height: 100%; }
  .mapp-scan { display: inline-flex; align-items: center; gap: 5px; background: #EEF0F2; color: #0A2540 !important; border-radius: 8px; padding: 8px 10px; font: 600 .72rem 'IBM Plex Mono', ui-monospace, monospace; text-decoration: none; letter-spacing: .04em; flex: none; }
  .mp-header-actions { display: none !important; }
  .mp-navbar, .mp-megamenu, .mp-megamenu-backdrop { display: none !important; }
  /* ---- tab bar ---- */
  .mapp-tabs { display: flex !important; background: #fff; border-top: 1px solid #E3E6EA; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mapp-tabs a { flex: 1; min-height: 0; gap: 3px; padding: 2px 2px; color: #4A5A6E !important; font-size: .72rem; font-weight: 500; }
  .mapp-tabs a.active { color: #0A2540 !important; font-weight: 700; }
  .mapp-tabs a.active::before { display: none; }
  .mapp-pill { display: flex; align-items: center; justify-content: center; width: 58px; height: 32px; border-radius: 16px; }
  .mapp-tabs a.active .mapp-pill { background: #FCE6DA; }
  .mapp-tabs a.active .mapp-i { fill: currentColor; fill-opacity: .15; }
  .mapp-badge { position: absolute; top: 0; right: calc(50% - 30px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C44B12; color: #fff; font: 700 .68rem/18px 'IBM Plex Sans', sans-serif; text-align: center; box-sizing: border-box; }
  .mapp-badge[hidden] { display: none; }
  /* ---- home ---- */
  body.mapp-is-home .mp-hero-pair, body.mapp-is-home .mp-cat-strip, body.mapp-is-home .mp-tiles, body.mapp-is-home .mp-featured { display: none !important; }
  .mapp-home { display: block; padding: 6px 16px 8px; }
  .mapp-rfqcard { background: #0A2540; color: #fff; border-radius: 16px; padding: 20px 18px 14px; margin: 8px 0 24px; }
  .mapp-eyebrow { font: 500 .68rem 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .12em; color: #9FB3C8; margin-bottom: 10px; }
  .mapp-rfqcard h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; margin: 0 0 16px; color: #fff; }
  .mapp-rfq-btns { display: flex; gap: 10px; }
  .mapp-btn-o, .mapp-btn-g { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; color: #fff !important; }
  .mapp-btn-o { background: #C44B12; } .mapp-btn-g { background: #16365A; border: 1px solid #2B4D73; }
  .mapp-wa { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #22456b; color: #fff !important; text-decoration: none; font-size: .85rem; }
  .mapp-wa span { display: inline-flex; align-items: center; gap: 8px; } .mapp-wa b { font: 500 .85rem 'IBM Plex Mono', ui-monospace, monospace; }
  .mapp-sec { margin-bottom: 26px; }
  .mapp-sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
  .mapp-sec-h h2 { font-size: 1.15rem; margin: 0; color: #0A2540; } .mapp-sec-h a { color: #C44B12 !important; font-weight: 600; font-size: .9rem; text-decoration: none; }
  .mapp-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .mapp-cat { text-decoration: none; color: #0A2540 !important; font-size: .82rem; font-weight: 500; line-height: 1.25; min-width: 0; }
  .mapp-cat-pic { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #E9EDF1; margin-bottom: 6px; }
  .mapp-cat-pic img, .mapp-cat-pic .mapp-noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mapp-cat-name { display: block; }
  .mapp-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mapp-brand { display: flex; align-items: center; justify-content: center; height: 52px; background: #fff; border: 1px solid #E3E6EA; border-radius: 10px; padding: 8px; text-decoration: none; color: #0A2540; font-size: .7rem; font-weight: 600; text-align: center; overflow: hidden; }
  .mapp-brand img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .mapp-plist { display: flex; flex-direction: column; gap: 10px; }
  .mapp-prow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E3E6EA; border-radius: 10px; padding: 10px; }
  .mapp-prow-link { display: flex; flex: 1; gap: 12px; min-width: 0; text-decoration: none; color: #0A2540 !important; }
  .mapp-pthumb { width: 64px; height: 64px; flex: none; border-radius: 8px; background: #F3F4F6; display: flex; align-items: center; justify-content: center; overflow: hidden; font: .62rem 'IBM Plex Mono', monospace; color: #8793A3; }
  .mapp-pthumb img { width: 100%; height: 100%; object-fit: contain; }
  .mapp-pinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .mapp-pmeta { font: 500 .66rem 'IBM Plex Mono', monospace; color: #4A5A6E; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mapp-pname { font-weight: 600; font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mapp-pstock { font-size: .74rem; color: #1F7A4D; display: flex; align-items: center; gap: 5px; } .mapp-pstock i { width: 6px; height: 6px; border-radius: 50%; background: #1F7A4D; }
  .mapp-add { flex: none; background: #fff; color: #C44B12; border: 1.5px solid #C44B12; border-radius: 8px; padding: 9px 11px; font-weight: 700; font-size: .82rem; font-family: inherit; }
  .mapp-add[data-in="1"], .mapp-add.is-in { background: #DDF2E6; color: #1F6B44; border-color: #1F6B44; }
  .mapp-scanbtn { display: inline-flex; margin-top: 10px; background: #C44B12; color: #fff; border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 700; font-family: inherit; }
  /* ---- shared page tidy-up ---- */
  .mp-breadcrumb { font-size: .78rem; } .mp-breadcrumb, .pc-breadcrumb { padding-left: 16px; padding-right: 16px; }
  .pc-hero-right, .pc-hero-copy p, .pc-hero-copy .mp-hero-badges { display: none !important; }
  .pc-hero { min-height: 0 !important; border-radius: 14px; margin: 8px 12px 0; overflow: hidden; }
  .pc-product-grid, .mp-product-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; padding: 0 12px; }
  .mp-pcard, .pc-product-grid > * { border: 1px solid #E3E6EA; border-radius: 10px; box-shadow: none; }
  .mp-pcard-btn { border-radius: 8px; }
  .pd-wa-bar { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .pd-spec-table { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .8rem; }
  html, body { overflow-x: hidden; }
  .ds-fab-hub { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  /* ---- dark ---- */
  html[data-theme="dark"] body.mapp { background: #0e1721; }
  html[data-theme="dark"] .mp-header { background: #0e1721 !important; }
  html[data-theme="dark"] .mp-logo-mark, html[data-theme="dark"] .mp-logo-mark span, html[data-theme="dark"] .mapp-sec-h h2, html[data-theme="dark"] .mapp-h1 { color: #e8eef5 !important; }
  html[data-theme="dark"] .mp-logo-tag, html[data-theme="dark"] .mapp-chip { color: #93a4b7 !important; }
  html[data-theme="dark"] .mapp-chip, html[data-theme="dark"] .mapp-acct, html[data-theme="dark"] .mp-search, html[data-theme="dark"] .mapp-sbox, html[data-theme="dark"] .mapp-catrow, html[data-theme="dark"] .mapp-rfqrow, html[data-theme="dark"] .mapp-prow, html[data-theme="dark"] .mapp-brand, html[data-theme="dark"] .mapp-empty { background: #141f2b !important; border-color: #26364a !important; color: #e8eef5; }
  html[data-theme="dark"] .mp-search input, html[data-theme="dark"] .mapp-sbox input { color: #e8eef5; }
  html[data-theme="dark"] .mapp-acct, html[data-theme="dark"] .mapp-catrow, html[data-theme="dark"] .mapp-prow-link, html[data-theme="dark"] .mapp-cat, html[data-theme="dark"] .mapp-rfqrow, html[data-theme="dark"] .mapp-catrow-t b { color: #e8eef5 !important; }
  html[data-theme="dark"] .mapp-scan { background: #1a2836; color: #e8eef5 !important; }
  html[data-theme="dark"] .mapp-tabs { background: #141f2b; border-color: #26364a; }
  html[data-theme="dark"] .mapp-tabs a { color: #93a4b7 !important; } html[data-theme="dark"] .mapp-tabs a.active { color: #fff !important; }
  html[data-theme="dark"] .mapp-tabs a.active .mapp-pill { background: #3a2417; }
  html[data-theme="dark"] .mapp-rfqcard { background: #0b2a48; border: 1px solid #26364a; }
  html[data-theme="dark"] .mapp-add { background: transparent; }
}

@media (max-width: 640px) {
  /* ---- category / all-products: list rows with "+ Quote" ---- */
  .pc-page { padding-left: 0 !important; padding-right: 0 !important; }
  .pc-main { padding: 0 12px; min-width: 0; }
  .pc-heading-row { display: block; margin: 8px 4px 10px; }
  .pc-heading-row h2 { font-size: 1.7rem; margin: 0 0 4px; color: #0A2540; }
  .pc-heading-row p { color: #4A5A6E; font-size: .9rem; margin: 0 0 8px; }
  .pc-results-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #4A5A6E; font-size: .85rem; }
  .pc-sort-form select { border: 1px solid #D5DAE0; border-radius: 999px; background: #fff; padding: 8px 12px; font: inherit; color: #0A2540; }
  [data-open-filters] { border: 1px solid #D5DAE0 !important; border-radius: 999px !important; background: #fff !important; color: #0A2540 !important; font-weight: 600; padding: 9px 16px !important; margin: 8px 4px; }
  .pc-product-grid { display: flex !important; flex-direction: column; gap: 0 !important; padding: 0 !important; background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; overflow: hidden; }
  .pc-product-card { flex-direction: row !important; align-items: center; gap: 12px; border: 0 !important; border-bottom: 1px solid #EEF0F2 !important; border-radius: 0 !important; padding: 12px; position: relative; transform: none !important; box-shadow: none !important; }
  .pc-product-card:last-child { border-bottom: 0 !important; }
  .pc-product-image { width: 72px !important; height: 72px !important; flex: none; margin: 0 !important; border-radius: 8px; background: #F3F4F6 !important; overflow: hidden; }
  .pc-product-body { flex: 1 1 auto; min-width: 0; padding: 0 84px 0 0 !important; }
  .pc-product-brand { min-height: 0; margin-bottom: 2px; } .pc-product-brand img { max-height: 13px !important; }
  .pc-product-sku { font: 500 .68rem 'IBM Plex Mono', ui-monospace, monospace !important; color: #4A5A6E !important; margin: 0 !important; }
  .pc-product-name { font-size: .95rem !important; line-height: 1.25 !important; font-weight: 600 !important; color: #0A2540 !important; min-height: 0 !important; margin: 2px 0 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pc-stock { font-size: .75rem !important; margin: 0 !important; }
  .pc-product-specs, .pc-rating, .pc-price, .pc-card-action, .pc-product-body .btn-cmp { display: none !important; }
  .mapp-add-card { display: inline-block; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
  /* ---- product page: sticky "Add to quote list" bar ---- */
  body.mapp-is-product { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.mapp-is-product .mapp-tabs { display: none !important; }
  body.mapp-is-product .pd-buybox .btn-ql { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; border: 0; border-radius: 0; height: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: #C44B12; color: #fff; font-weight: 700; font-size: 1.05rem; font-family: inherit; box-shadow: 0 -6px 18px rgba(10,37,64,.12); }
  body.mapp-is-product .pd-buybox .btn-ql.is-in { background: #1F6B44; }
  body.mapp-is-product .ds-fab-hub { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .pd-title2 { font-size: 1.45rem; line-height: 1.2; color: #0A2540; }
  .pd-buybox { background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; padding: 14px; }
  .pd-tabs { overflow-x: auto; white-space: nowrap; scrollbar-width: none; } .pd-tabs::-webkit-scrollbar { display: none; }
  /* ---- forms ---- */
  input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea { font-size: 16px; border-radius: 10px; }
  .rfq-upload-drop { border-radius: 12px; border: 1.5px dashed #9FB3C8; background: #fff; }
  html[data-theme="dark"] .pc-product-grid, html[data-theme="dark"] .pd-buybox { background: #141f2b; border-color: #26364a; }
  html[data-theme="dark"] .pc-product-card { border-color: #26364a !important; background: transparent !important; }
  html[data-theme="dark"] .pc-heading-row h2, html[data-theme="dark"] .pc-product-name, html[data-theme="dark"] .pd-title2 { color: #e8eef5 !important; }
  html[data-theme="dark"] .pc-product-image { background: #fff !important; }
  html[data-theme="dark"] .pc-sort-form select, html[data-theme="dark"] [data-open-filters] { background: #141f2b !important; color: #e8eef5 !important; border-color: #26364a !important; }
}

@media (max-width: 640px) {
  .pc-hero-inner { padding: 18px 16px !important; min-height: 0 !important; }
  .pc-hero-copy h1, .pc-hero-copy h2 { font-size: 1.25rem !important; line-height: 1.2; }
  .pc-hero-copy small, .pc-hero-copy ul, .pc-hero-copy .pc-hero-points { display: none !important; }
  .pc-sort-form label { display: flex; align-items: center; gap: 8px; border: 0 !important; background: transparent !important; padding: 0 !important; }
  .pc-sort-form select { width: auto; }
  .pc-results-tools strong { color: #0A2540; }
}
@media (max-width: 640px) {
  .pc-trust-row { display: none !important; }
  .pc-hero { min-height: 0 !important; margin-bottom: 4px; }
  .pc-hero-copy p { display: none !important; }
  .pc-hero-copy h1 { margin: 0; }
}
