/* PAPA marketplace. Separate styles preserve the existing homepage. */
.market-page { margin: 0; background: #171717; color: #f5f3ef; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.market-page *, .papa-home .home-parts * { box-sizing: border-box; }
.market-page h1, .market-page h2, .market-page h3, .market-page p { margin: 0; }
.market-page a { color: inherit; text-decoration: none; }
.market-page button, .market-page input, .market-page select { font: inherit; }
.market-page button, .market-page select { cursor: pointer; }
.market-page [hidden], .papa-home [hidden] { display: none !important; }
.market-page :focus-visible, .home-parts :focus-visible { outline: 2px solid #ffb577; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.market-skip { position: fixed; top: -100px; left: 16px; z-index: 100; background: #cc5800; padding: 15px; }
.market-skip:focus { top: 16px; }
.market-header { position: sticky; top: 0; z-index: 20; background: #101010f5; border-bottom: 1px solid #ffffff14; backdrop-filter: blur(14px); }
.market-header-inner { max-width: 1320px; margin: auto; padding: 22px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.market-brand { font-size: 30px; letter-spacing: 1px; font-weight: 900; line-height: 1; }
.market-brand span { display: block; font-size: 8px; font-weight: 600; letter-spacing: 1.6px; color: #9b9790; margin-top: 9px; }
.market-header nav { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 600; }
.market-header nav a { padding: 8px 0; color: #b2ada6; }
.market-header nav a:hover, .market-header nav a[aria-current] { color: #f3a05c; }
.market-header nav .market-sell-link { border: 1px solid #80411a; border-radius: 8px; padding: 11px 18px; color: #f4f0eb; }
.market-sell-link span { margin-left: 16px; }
.market-main { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.catalog-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding: 65px 0 40px; }
.market-eyebrow { color: #f2a065; font-size: 10px; font-weight: 750; letter-spacing: 2px; line-height: 1.6; }
.catalog-intro h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -3px; margin: 20px 0 24px; font-weight: 800; }
.catalog-intro h1 span { color: #eda065; }
.catalog-intro > div > p:last-child { color: #aaa7a3; line-height: 1.75; font-size: 15px; }
.catalog-stamp { min-width: 210px; padding: 24px 0 7px 32px; border-left: 1px solid #ffffff1c; font-size: 9px; letter-spacing: 1.5px; color: #b7afa7; }
.catalog-stamp strong { display: block; font-size: 90px; font-weight: 300; letter-spacing: -7px; line-height: 1.15; color: #f3eee7; }
.catalog-stamp > span:last-child { display: block; letter-spacing: 0; font-size: 12px; margin-top: 10px; }
.demo-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ee9854; margin-right: 7px; vertical-align: middle; }
.catalog-demo-note { color: #b9aea2; font-size: 12px; margin-bottom: 26px; padding: 12px 16px; background: #a8540d0c; border-left: 2px solid #ab5a22; }
.catalog-search { display: flex; align-items: center; gap: 20px; padding: 9px 10px 9px 22px; background: #242424; border: 1px solid #44403c; border-radius: 12px; }
.search-glyph { font-size: 32px; color: #aa9f95; line-height: 1; }
.catalog-search input { background: none; border: 0; color: #fff; min-width: 0; flex: 1; padding: 15px 0; font-size: 15px; }
.catalog-search input::placeholder { color: #97918b; }
.market-button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; border: 1px solid #df7327; border-radius: 8px; padding: 15px 22px; min-height: 50px; background: #cc5800; color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .18s ease; }
.market-button:hover { background: #b54c00; }
.market-button > span { font-size: 19px; line-height: 1; }
.catalog-tools { padding: 26px 0; border-bottom: 1px solid #ffffff15; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 9px; }
.category-tabs button { background: transparent; color: #bcb6af; border: 1px solid #45413d; border-radius: 30px; padding: 10px 17px; font-size: 12px; }
.category-tabs button:hover { color: white; border-color: #bc773f; }
.category-tabs button[aria-pressed="true"] { background: #f1ede5; border-color: #f1ede5; color: #1c1917; }
.catalog-selects { display: flex; gap: 24px; margin-top: 24px; }
.catalog-selects label { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #a9a29a; }
.catalog-selects select { background: #222; color: #eee7de; padding: 8px 28px 8px 10px; border: 1px solid #45413d; border-radius: 5px; font-size: 12px; max-width: 100%; color-scheme: dark; }
.results-line { display: flex; align-items: center; gap: 20px; margin: 24px 0 18px; font-size: 12px; color: #b7b0a7; }
.results-line > span { margin-left: auto; font-size: 9px; letter-spacing: 1.5px; color: #918a81; }
.text-button { border: 0; background: none; color: #f2a065; padding: 5px 0; text-decoration: underline; font-size: 12px; }
.parts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.part-card { display: block; min-width: 0; text-decoration: none; color: #f5f3ef; border: 1px solid #ffffff17; background: #202020; border-radius: 14px; overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.part-card:hover { border-color: #bd6e36; transform: translateY(-4px); }
.part-card-photo { position: relative; aspect-ratio: 4 / 3; background: #111; overflow: hidden; }
.part-card-photo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.condition-tag { position: absolute; left: 14px; top: 14px; background: #151515e8; color: #f3ede6; border: 1px solid #ffffff2a; padding: 6px 9px; border-radius: 5px; font-size: 10px; }
.part-card-body { padding: 22px 22px 0; }
.part-brand { font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: 1.1px; color: #e79a60; }
.part-brand span { color: #98928b; font-weight: 400; letter-spacing: .4px; }
.part-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 10px 0 !important; letter-spacing: -.4px; }
.part-short { font-size: 12px; color: #aaa49c; line-height: 1.6; min-height: 39px; }
.part-card-bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 17px; }
.part-card-bottom strong { font-size: 25px; letter-spacing: -.5px; }
.part-card-bottom strong small { color: #918980; font-size: 9px; font-weight: 500; letter-spacing: .6px; margin-left: 7px; }
.part-card-bottom > span { color: #afa89e; font-size: 11px; }
.part-card-link { display: flex; justify-content: space-between; border-top: 1px solid #ffffff12; padding: 14px 0; color: #d5c7b8; font-size: 11px; }
.part-card-link > span { color: #e99555; font-size: 16px; }
.empty-results { text-align: center; border: 1px dashed #5d5046; border-radius: 14px; padding: 50px 20px; }
.empty-results > span { font-size: 40px; color: #e99555; }
.empty-results h2 { margin: 15px 0; }
.empty-results p { color: #aaa49c; margin-bottom: 25px; line-height: 1.6; }
.catalog-seller { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 40px; margin: 60px 0 70px; border: 1px solid #68462c; border-radius: 14px; background: linear-gradient(110deg,#2c2118,#1c1c1c); }
.catalog-seller h2 { font-size: clamp(22px, 3vw, 32px); margin-top: 12px; line-height: 1.2; letter-spacing: -.7px; }
.catalog-seller .market-button { flex-shrink: 0; }
.market-footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 36px max(40px, calc((100% - 1240px)/2)); border-top: 1px solid #ffffff15; background: #111; }
.footer-wordmark { font-size: 25px; font-weight: 850; letter-spacing: 1px; }
.footer-wordmark span { display: block; font-size: 11px; font-weight: 400; color: #a49c93; letter-spacing: 0; margin-top: 8px; }
.market-footer p { color: #8e867c; font-size: 11px; line-height: 1.75; }
.market-footer > a:last-child { font-size: 12px; color: #ddb99d; }
.breadcrumbs { display: flex; gap: 12px; align-items: center; margin: 30px 0; font-size: 11px; color: #a79c90; }
.breadcrumbs a:hover { color: #f2a065; }
.breadcrumbs > span:last-child { color: #e8ddd1; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 56px; align-items: start; }
.detail-photo { position: relative; display: grid; place-items: center; background: #101010; border-radius: 16px; border: 1px solid #ffffff15; overflow: hidden; aspect-ratio: 1 / 1; }
.detail-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-count { position: absolute; bottom: 18px; right: 18px; padding: 8px 12px; border: 1px solid #ffffff25; border-radius: 20px; background: #111e; font-size: 9px; letter-spacing: 1px; }
.photo-caption { color: #8f8981; font-size: 10px; margin-top: 12px !important; line-height: 1.6; }
.photo-detail-strip { display: flex; justify-content: space-between; gap: 15px; padding: 20px 0; margin-top: 6px; border-bottom: 1px solid #ffffff15; font-size: 11px; color: #b6ac9f; }
.detail-summary { padding-top: 8px; }
.detail-make { margin-top: 24px !important; font-size: 12px; color: #a7a096; }
.detail-summary h1 { font-size: clamp(32px,3.2vw,46px); line-height: 1.08; letter-spacing: -1.7px; margin: 10px 0 18px; }
.detail-location { color: #b7aea3; font-size: 12px; }
.detail-location > span { color: #ed9e61; margin-right: 5px; }
.detail-price { display: flex; align-items: center; gap: 16px; font-size: 48px; font-weight: 750; letter-spacing: -2px; padding: 26px 0 18px; }
.detail-price > span { color: #d1c2b2; font-size: 11px; letter-spacing: .5px; font-weight: 500; }
.detail-price small { display: block; font-size: 10px; margin-top: 7px; color: #968c80; letter-spacing: 0; }
.detail-lead { color: #b7afa5; font-size: 14px; line-height: 1.7; }
.quick-specs { margin: 24px 0; border-top: 1px solid #ffffff18; border-bottom: 1px solid #ffffff18; padding: 12px 0; }
.quick-specs > div, .full-specs > div, .purchase-totals > div { display: flex; justify-content: space-between; gap: 25px; padding: 9px 0; font-size: 12px; line-height: 1.6; }
.quick-specs dt, .full-specs dt, .purchase-totals dt { color: #a69b8d; }
.quick-specs dd, .full-specs dd, .purchase-totals dd { margin: 0; text-align: right; color: #eee4d8; }
.quick-specs small { color: #a69b8d; }
.buy-button { width: 100%; justify-content: space-between; min-height: 55px; font-size: 14px; }
.purchase-note { font-size: 10px; text-align: center; color: #9f9589; margin-top: 12px !important; line-height: 1.6; }
.seller-profile { display: flex; align-items: center; gap: 15px; padding: 23px 0 0; margin-top: 24px; border-top: 1px solid #ffffff18; }
.seller-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 1px solid #775032; background: #35261a; color: #edb48a; font-size: 13px; }
.seller-profile p { font-size: 10px; color: #948a7f; }
.seller-profile h2 { font-size: 14px; margin: 4px 0; }
.seller-profile div > span { font-size: 10px; color: #b2a494; }
.detail-info { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 56px; margin: 64px 0 72px; border-top: 1px solid #ffffff18; padding-top: 40px; align-items: start; }
.detail-info h2 { font-size: 25px; letter-spacing: -.6px; margin: 12px 0 18px; }
.detail-info section > p:not(.market-eyebrow), .fitment-note p { color: #b3a99d; font-size: 13px; line-height: 1.9; }
.full-specs { margin-top: 26px; }
.full-specs > div { border-top: 1px solid #ffffff13; padding: 14px 0; }
.full-specs dt { flex: 0 0 100px; }
.fitment-note { border: 1px solid #67452c; border-radius: 12px; background: #261e17; padding: 30px; }
.fitment-symbol { font-size: 27px; color: #e89c60; }
.fitment-note h2 { font-size: 22px; }
.fitment-note p + p { margin-top: 14px; }
.fitment-note small { display: block; margin-top: 20px; border-top: 1px solid #70523466; padding-top: 18px; color: #aa9580; font-size: 10px; line-height: 1.7; }
.market-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.market-section-heading h2 { font-size: 30px; font-weight: 750; letter-spacing: -.8px; margin-top: 9px; }
.market-section-heading > a { font-size: 12px; color: #f0b185; text-decoration: none; padding-bottom: 4px; }
.related-section { margin-bottom: 70px; }
.purchase-dialog { box-sizing: border-box; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; background: #201c18; color: #fff; border: 1px solid #8a5730; border-radius: 18px; padding: 38px; box-shadow: 0 25px 120px #000b; }
.purchase-dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 12px; top: 10px; border: 0; background: none; color: #c6b6a6; font-size: 28px !important; width: 36px; height: 36px; }
.purchase-dialog h2 { font-size: 32px; letter-spacing: -1px; line-height: 1.13; margin: 16px 0 26px; }
.purchase-product { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-block: 1px solid #ffffff1a; }
.purchase-product img { width: 80px; height: 80px; object-fit: contain; background: #111; border-radius: 8px; }
.purchase-product h3 { font-size: 14px; line-height: 1.5; }
.purchase-product p { font-size: 10px; line-height: 1.6; color: #b09e8c; margin-top: 6px; }
.purchase-totals { margin: 20px 0; }
.checkout-note { color: #c6b29e; line-height: 1.8; font-size: 12px; margin-bottom: 24px !important; }
.purchase-dialog > .market-button { width: 100%; }
.home-parts { margin-top: 40px; }
.home-demo-note { color: #a79b8e; font-size: 12px; line-height: 1.7; margin: -7px 0 25px; }
@media (max-width: 1000px) {
    .parts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail-layout, .detail-info { gap: 30px; }
    .detail-summary h1 { font-size: 33px; }
    .related-section .part-card:last-child { display: none; }
}
@media (max-width: 700px) {
    .market-header-inner { padding: 18px 20px; gap: 18px; }
    .market-brand { font-size: 24px; }
    .market-brand span { display: none; }
    .market-header nav { gap: 15px; font-size: 11px; }
    .market-header nav a:first-child { display: none; }
    .market-header nav .market-sell-link { padding: 8px 10px; }
    .market-sell-link span { margin-left: 5px; }
    .market-main { width: calc(100% - 40px); }
    .catalog-intro { padding: 38px 0 30px; }
    .catalog-intro h1 { letter-spacing: -2px; }
    .catalog-stamp { display: none; }
    .catalog-intro > div > p:last-child { font-size: 13px; }
    .desktop-break { display: none; }
    .catalog-search { gap: 8px; padding-left: 12px; }
    .catalog-search input { font-size: 12px; }
    .catalog-search .market-button { font-size: 11px; padding: 13px 12px; min-height: 44px; }
    .catalog-search .market-button > span, .search-glyph { display: none; }
    .category-tabs { gap: 7px; }
    .category-tabs button { font-size: 11px; padding: 8px 12px; }
    .catalog-selects { gap: 15px; }
    .catalog-selects label { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 7px; }
    .catalog-selects select { width: 100%; }
    .results-line > span { display: none; }
    .parts-grid { gap: 16px; }
    .part-card-body { padding: 17px 17px 0; }
    .part-card h3 { font-size: 18px; }
    .catalog-seller { padding: 26px; margin: 40px 0; flex-direction: column; align-items: flex-start; }
    .market-footer { padding: 28px 20px; flex-wrap: wrap; gap: 24px; }
    .market-footer p { flex-basis: 100%; order: 2; }
    .detail-layout, .detail-info { grid-template-columns: 1fr; gap: 24px; }
    .breadcrumbs { margin: 22px 0; }
    .detail-summary { padding-top: 0; }
    .detail-summary h1 { font-size: 38px; }
    .detail-info { margin: 40px 0; padding-top: 28px; }
    .fitment-note { padding: 24px; }
    .market-section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .market-section-heading h2 { font-size: 26px; }
    .related-section { margin-bottom: 45px; }
    .purchase-dialog { padding: 30px 24px; }
    .purchase-dialog h2 { font-size: 28px; }
}
@media (max-width: 520px) {
    .parts-grid { grid-template-columns: 1fr; }
    .part-card-photo { aspect-ratio: 4 / 3; }
    .part-short { min-height: 0; }
    .related-section .part-card:last-child { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .part-card, .market-button { transition: none; }
    .part-card:hover { transform: none; }
}
