﻿/* Inventory 639 uses the existing Fortune Motors card identity. */
body.page-id-639 { --fortune-red: #932129; --fortune-ink: #232628; --fortune-line: #e5e5e5; }
body.page-id-639 > .container, body.page-id-639 #main > .container { width: 100%; max-width: none; padding-right: 32px; padding-left: 32px; }
body.page-id-639 .entry-header, body.page-id-639 .entry-header.small { display: none; }
.elementor-639 > .elementor-section { width: 100%; left: auto !important; }
.elementor-639 .elementor-element-47bd3ff > .elementor-container { max-width: none; width: 100%; display: flex; align-items: flex-start; gap: 28px; }
.elementor-639 .elementor-element-bef69d0 { width: clamp(240px, 21vw, 300px); flex: 0 0 clamp(240px, 21vw, 300px); }
.elementor-639 .elementor-element-3b1c04e { width: auto; flex: 1; min-width: 0; }
.elementor-639 .elementor-element-bef69d0 > .elementor-widget-wrap,
.elementor-639 .elementor-element-3b1c04e > .elementor-widget-wrap { padding: 0; min-width: 0; }
.elementor-639 .elementor-element-4b0b010 { padding-top: 0; }
.elementor-639 .filter-sidebar { background: #fff; color: var(--fortune-ink); border: 1px solid var(--fortune-line); box-shadow: none; }
.elementor-639 .filter-sidebar::after { display: none; }
.elementor-639 .sidebar-entry-header { background: #932129 !important; padding: 18px 20px; }
.elementor-639 .sidebar-entry-header .h4, .elementor-639 .sidebar-entry-header i { color: #fff; }
.elementor-639 .filter-sidebar > .row { margin: 0; padding: 18px 18px 4px; }
.elementor-639 .filter-sidebar > .row > div { padding-left: 0; padding-right: 0; width: 100%; }
.elementor-639 .filter-sidebar .form-group { margin-bottom: 16px; }
.elementor-639 .fortune-field-label { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--fortune-ink); margin-bottom: 7px; }
.elementor-639 .select2-container { max-width: 100%; }
.elementor-639 .select2-container--default .select2-selection--single { min-height: 46px; background: #f6f6f6; border: 1px solid #d9d9d9; border-radius: 2px; }
.elementor-639 .sidebar-action-units { padding: 0 18px 18px; }
.elementor-639 .sidebar-action-units .button { display: block; text-align: center; background: #932129 !important; color: #fff !important; border: 0; box-shadow: none; padding: 13px 16px; }
.elementor-639 .sidebar-action-units .button:hover { background: #932129 !important; }
.elementor-639 .stm-sort-by-options { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.elementor-639 .stm-sort-by-options > span { white-space: nowrap; }
.elementor-639 .stm-sort-by-options .stm-select-sorting { min-width: 190px; }
.fortune-inventory-count { margin: 6px 0 12px; font-size: 14px; color: #626262; }
.fortune-inventory-cards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; height: auto !important; }
.fortune-inventory-card { position: static !important; transform: none !important; float: none; width: auto !important; min-width: 0; margin: 0; padding: 0; background: #fff; }
.fortune-card-media { position: relative; aspect-ratio: 1.72; overflow: hidden; background: #f3f3f3; touch-action: pan-y; }
.fortune-card-photo { display: block; width: 100%; height: 100%; position: relative; }
.fortune-gallery-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; }
.fortune-gallery-image.is-active { opacity: 1; visibility: visible; }
.fortune-image-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: #666; }
.fortune-gallery-controls { position: absolute; inset: auto 8px 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.fortune-gallery-controls button { pointer-events: auto; cursor: pointer; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 30px; line-height: 1; box-shadow: none; }
.fortune-gallery-controls button:hover { background: #932129; }
.fortune-gallery-counter { background: rgba(0,0,0,.65); color: #fff; border-radius: 20px; padding: 4px 10px; font-size: 12px; }
.fortune-gallery-indicators { position: absolute; inset: auto 8px 5px; display: flex; gap: 4px; pointer-events: none; }
.fortune-gallery-indicators span { flex: 1; height: 3px; background: rgba(255,255,255,.5); }
.fortune-gallery-indicators .is-active { background: #fff; }
.fortune-card-price { display: flex; justify-content: center; gap: 10px; align-items: center; padding: 8px 10px; min-height: 40px; background: #932129; color: #fff !important; font-size: 20px; line-height: 1.2; font-weight: 600; text-decoration: none !important; }
.fortune-card-price:hover { background: #751a21; }
.fortune-card-price del { font-size: 13px; opacity: .8; font-weight: 400; }
.fortune-card-details { padding: 12px 4px; }
.fortune-card-title { margin: 0 !important; font-size: 18px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.fortune-card-title a { color: #232628; text-decoration: none; }
.fortune-card-title a:hover { color: #932129; }
.fortune-card-specs { margin: 6px 0 0; color: #111; font-size: 16px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.fortune-inventory-cards[data-view="list"] { grid-template-columns: minmax(0,1fr); }
.fortune-inventory-cards[data-view="list"] .fortune-inventory-card { display: grid; grid-template-columns: minmax(260px,40%) minmax(0,1fr); gap: 24px; border-bottom: 1px solid #e5e5e5; padding-bottom: 24px; }
.fortune-inventory-cards[data-view="list"] .fortune-card-content { min-width: 0; }
.fortune-inventory-cards[data-view="list"] .fortune-card-price { justify-content: flex-start; padding-left: 16px; }
.fortune-inventory-empty { border: 1px solid #e5e5e5; padding: 40px 24px; text-align: center; }
.fortune-inventory-empty h3 { font-size: 20px; margin-top: 0; }
.fortune-inventory-error { padding: 12px; margin-bottom: 16px; background: #fff2f2; color: #751a21; border: 1px solid #e3babc; }
.elementor-639 a:focus-visible, .elementor-639 button:focus-visible, .elementor-639 .select2-selection:focus-visible { outline: 3px solid #932129; outline-offset: 3px; }
@media(min-width:1600px) { .fortune-inventory-cards { gap: 36px 28px; } }
@media(max-width:1200px) { .fortune-inventory-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:1024px) {
    body.page-id-639 > .container, body.page-id-639 #main > .container { padding-left: 24px; padding-right: 24px; }
    .elementor-639 .elementor-element-47bd3ff > .elementor-container { gap: 20px; }
    .elementor-639 .elementor-element-bef69d0 { width: 230px; flex-basis: 230px; }
}
@media(max-width:767px) {
    body.page-id-639 > .container, body.page-id-639 #main > .container { padding-left: 16px; padding-right: 16px; }
    .elementor-639 .elementor-element-47bd3ff > .elementor-container { display: block; }
    .elementor-639 .elementor-element-bef69d0, .elementor-639 .elementor-element-3b1c04e { width: 100%; }
    .elementor-639 .elementor-element-bef69d0 { margin-bottom: 24px; }
    .fortune-inventory-cards { grid-template-columns: minmax(0,1fr); gap: 26px; }
    .fortune-inventory-cards[data-view="list"] .fortune-inventory-card { display: block; }
    .fortune-inventory-cards[data-view="list"] .fortune-card-price { justify-content: center; }
    .fortune-card-title { font-size: 18px; }
    .elementor-639 .stm-sort-by-options { gap: 6px; }
    .elementor-639 .stm-sort-by-options .stm-select-sorting { min-width: 160px; }
}
@media(prefers-reduced-motion:reduce) { .fortune-inventory-card *, .elementor-639 .select2-container * { transition: none !important; } }

