:root {
  --bg-main: #07131d; --bg-secondary: #0b1b27; --bg-deep: #061019;
  --panel: #0b2236; --primary: #1688ff; --primary-secondary: #0d82ff;
  --text: #fff; --text-muted: #a8b3bd; --border: rgba(255,255,255,.10); --light: #f6f8fb;
  --bg: var(--bg-main); --muted: var(--text-muted); --blue: var(--primary);
  --line: var(--border); --container: min(1320px, calc(100% - 64px));
}
body { background: var(--bg-main); letter-spacing: 0; }
body::before, body::after { display: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid #5bb4ff; outline-offset: 4px; }
html { scroll-padding-top: 90px; }
.float-actions { display: none !important; }
.site-header.shop-header { display: block; width: 100%; max-width: none; min-height: 0; padding: 0; margin: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: #06131e; box-shadow: none; backdrop-filter: none; position: sticky; top: 0; z-index: 50; }
.shop-header-inner { width: var(--container); margin: auto; height: 76px; display: flex; align-items: center; gap: 28px; }
.shop-logo { display: block; width: 194px; flex-shrink: 0; }
.shop-logo img { width: 100%; height: auto; object-fit: contain; }
.shop-desktop-nav { display: flex; align-items: center; gap: 26px; margin: 0 auto; white-space: nowrap; }
.shop-desktop-nav a, .shop-desktop-nav button { color: #e9eef4; background: none; padding: 10px 0; border: 0; font-size: 13px; }
.shop-desktop-nav a:hover, .shop-desktop-nav button:hover, .shop-desktop-nav [aria-current] { color: var(--primary); }
.shop-header-actions { display: flex; align-items: center; gap: 10px; }
.shop-icon-button, .shop-profile-button, .shop-order-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; border: 0; background: none; color: var(--text); border-radius: 6px; }
.shop-icon-button img, .shop-profile-button img, .shop-bottom-nav img, .shop-search-field img, .shop-footer-contact img { filter: invert(1); }
.shop-icon-button:hover, .shop-profile-button:hover { background: var(--panel); }
.shop-order-button { padding: 0 15px; border: 1px solid #173448; background: #091f2e; font-size: 12px; }
.shop-profile-button { font-size: 12px; padding: 0 6px; }
.shop-menu-button, .shop-bottom-nav { display: none; }
.storefront { width: var(--container); margin: auto; }
.shop-hero { position: relative; isolation: isolate; min-height: 380px; padding: 42px 14px 28px; border-bottom: 1px solid var(--border); overflow: hidden; background: #03121e; }
.hero-automotive { position: absolute; z-index: -1; inset: 0 0 0 38%; background: url('/assets/favorit_zap_exact_assets/hero/hero-car-side.png') right top / auto 162% no-repeat; }
.hero-automotive::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #03121e, transparent 45%), linear-gradient(0deg, #03121e, transparent 30%); }
.shop-hero-copy { max-width: 720px; }
.shop-hero h1 { font-size: 48px; line-height: 1.12; font-weight: 800; margin: 0 0 15px; letter-spacing: 0; }
.shop-hero h1 span { color: var(--primary); }
.shop-hero-copy > p { font-size: 16px; line-height: 1.55; color: #dae2ec; margin: 0 0 22px; }
.shop-search { max-width: 680px; }
.shop-search-tabs { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 510px; margin-bottom: 8px; background: #071f30; border-radius: 6px; }
.shop-search-tabs button { min-height: 40px; padding: 8px 12px; color: #dbe4ef; border: 0; border-radius: 6px; background: transparent; font-size: 13px; }
.shop-search-tabs [aria-selected='true'] { background: var(--primary-secondary); color: white; }
#shop-search-form { display: flex; height: 50px; }
.shop-search-field { display: flex; align-items: center; gap: 10px; border: 1px solid #2c4a5e; border-radius: 6px 0 0 6px; background: #071b28; padding: 0 14px; flex: 1; min-width: 0; }
.shop-search-field input { border: 0; background: none; box-shadow: none; color: white; width: 100%; padding: 0; min-width: 0; outline: none; height: 100%; font-size: 14px; }
.shop-search-field:focus-within { border-color: var(--primary); outline: 1px solid var(--primary); }
.shop-search-field input::placeholder { color: #91a1b0; }
.shop-primary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; background: var(--primary-secondary); color: #fff; border: 1px solid var(--primary); border-radius: 6px; padding: 11px 24px; font-size: 13px; font-weight: 700; }
.shop-primary:hover { background: #0676e8; }
#shop-search-form > button { min-width: 126px; border-radius: 0 6px 6px 0; }
#shop-search-form > button img { display: none; filter: invert(1); }
.vin-help { border: 0; padding: 10px 0 0; background: none; color: #24acff; font-size: 12px; min-height: 32px; }
.vehicle-select-link { display: flex; justify-content: space-between; align-items: center; height: 50px; border: 1px solid #2c4a5e; border-radius: 6px; background: #071b28; padding: 0 18px; color: white; }
.vehicle-select-link span { color: var(--primary); }
.shop-content { display: flex; flex-direction: column; gap: 26px; padding: 24px 0; }
.shop-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.shop-section-head h2 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: 0; }
.shop-section-head > a { flex-shrink: 0; color: #20acff; font-size: 12px; }
.shop-section-head > a span { font-size: 20px; margin-left: 5px; }
.shop-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.shop-category { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #18405a; border-radius: 7px; background: #041521; color: white; text-align: left; transition: border-color .15s, transform .15s; }
.shop-category:hover { border-color: var(--primary); transform: translateY(-2px); }
.category-art { display: block; overflow: hidden; aspect-ratio: 1.78; width: 100%; }
.category-art img { width: calc(100% + 4px); max-width: none; height: auto; transform: translate(-2px, -2px); }
.category-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 58px; padding: 10px 12px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.category-arrow { display: grid; place-items: center; height: 26px; width: 26px; flex: 0 0 26px; color: #19a8ff; background: #052438; border-radius: 50%; font-size: 20px; }
.shop-brand-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.shop-brand-grid a { display: grid; place-items: center; overflow: hidden; background: transparent; border: 0; border-radius: 7px; height: 76px; }
.shop-brand-grid a:hover { background: #0b2236; }
.shop-brand-grid img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.shop-services { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); gap: 14px; }
.tech-banner, .delivery-banner { min-height: 120px; position: relative; isolation: isolate; border: 1px solid #18405a; border-radius: 7px; overflow: hidden; padding: 20px 24px; }
.tech-banner { display: flex; align-items: center; gap: 26px; background: #031421; }
.tech-banner::before { content: ''; position: absolute; z-index: -1; width: 36%; inset: 0 0 0 auto; background: url('/assets/favorit_zap_exact_assets/banners/favorit-tech.png') right center / auto 100% no-repeat; }
.tech-banner::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #031421 40%, transparent 90%); }
.tech-banner h2, .delivery-banner h2 { font-size: 17px; line-height: 1.35; margin: 0; }
.tech-banner strong { display: block; color: #00b8ff; font-size: 21px; }
.tech-banner p, .delivery-banner p { font-size: 12px; color: #b8cbd9; margin: 6px 0 0; }
.shop-outline { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; padding: 10px 16px; border: 1px solid #1688ff; border-radius: 5px; color: white; background: #06345b; font-size: 12px; font-weight: 700; }
.delivery-banner { background: #051c2a; padding: 24px 18px; }
.delivery-banner h2 { font-size: 15px; }
.delivery-art { position: absolute; z-index: -1; right: 0; top: 18px; width: 33%; height: 85px; background: url('/assets/favorit_zap_exact_assets/banners/delivery.png') right center / auto 105px no-repeat; }
.delivery-banner h2, .delivery-banner p { max-width: 70%; }
.footer.shop-footer { display: block; width: 100%; max-width: none; margin: 0; padding: 0; background: #05111b; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.shop-footer-inner { width: var(--container); margin: auto; padding: 24px 0; display: grid; grid-template-columns: 1.5fr .75fr 1fr 1.45fr; gap: 28px; }
.shop-footer .shop-logo { width: 185px; }
.shop-footer p { color: var(--text-muted); font-size: 12px; line-height: 1.5; margin: 8px 0; }
.shop-footer nav { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 7px; }
.shop-footer nav a, .shop-footer nav button { border: 0; padding: 0; background: none; text-align: left; color: #b3c4d2; font-size: 12px; }
.shop-footer nav a:hover, .shop-footer nav button:hover { color: white; }
.shop-footer-contact { padding-top: 7px; }
.footer-phone-link { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.shop-socials { display: flex; gap: 16px; color: #9fb6c9; font-size: 12px; margin: 14px 0; }
.shop-footer small { color: #7890a2; font-size: 11px; }
.shop-dialog { color: white; background: #0b1b27; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 60px); padding: 30px; border: 1px solid #28506b; border-radius: 8px; box-shadow: 0 20px 70px #0008; }
.shop-dialog::backdrop { background: #020912bb; }
.shop-dialog h2 { margin: 0 36px 16px 0; font-size: 24px; line-height: 1.3; }
.shop-dialog p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.shop-dialog-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; background: transparent; border: 0; color: white; font-size: 28px; }
.shop-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; font-size: 14px; }
.shop-text-link { color: #38acff; font-size: 14px; }
.shop-menu-links { display: flex; flex-direction: column; }
.shop-menu-links a, .shop-menu-links button { border: 0; border-bottom: 1px solid var(--border); padding: 15px 0; color: white; font-size: 16px; background: none; text-align: left; }
/* Shared catalog skin: keep the viewer coordinates and all catalog actions intact. */
.catalog-shell, .parts-shell { width: var(--container); margin: 28px auto 40px; padding: 0; }
.catalog-intro { padding: 0 0 22px; gap: 20px; min-height: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.catalog-intro h1 { font-size: 32px; line-height: 1.25; max-width: 900px; letter-spacing: 0; }
.catalog-intro p { font-size: 14px; }
.catalog-source { font-size: 12px; }
.catalog-search-panel { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.catalog-tabs { border-color: var(--border); }
.catalog-tabs button { min-height: 44px; font-size: 14px; }
.catalog-search input, .catalog-search select, .parts-search input { background: var(--bg-deep); border: 1px solid #294051; color: white; border-radius: 5px; min-height: 46px; }
.btn.primary { background: var(--primary-secondary); box-shadow: none; border-radius: 6px; }
.btn.secondary { background: #0a2234; border-radius: 6px; }
.catalog-workspace { border-radius: 8px; background: var(--bg-deep); border-color: var(--border); }
.catalog-empty { padding: 48px 24px; }
.catalog-empty h2 { font-size: 25px; }
.catalog-empty p { font-size: 14px; }
.garage-workspace, .garage-sidebar, .garage-main, .garage-layout, .vehicle-summary, .unit-card, .group-card, .oem-viewer, .parts-list { background-color: var(--bg-secondary); border-color: var(--border); box-shadow: none; }
.garage-group-grid .group-card { min-height: 220px; border-radius: 7px; }
.garage-group-grid .group-card h3 { font-size: 18px; }
.workspace-head h2, .garage-main h2 { font-size: 28px; letter-spacing: 0; }
.workspace-head p { font-size: 14px; }
.shop-make-hint { color: #7ac1ff; font-size: 14px; margin: 0 0 16px; }
.catalog-intro p:not(.eyebrow) { font-size: 14px; }
.vehicle-card, .catalog-browser, .catalog-empty, .oem-viewer { background: var(--bg-secondary); box-shadow: none; }
.garage-group-grid { gap: 10px; }
.garage-group-card { min-width: 0; min-height: 180px; grid-template-rows: auto minmax(60px, 1fr) auto; border: 1px solid var(--border); border-radius: 6px; text-align: left; }
.garage-group-card b { font-size: 16px; overflow-wrap: anywhere; }
.garage-group-preview { min-height: 60px; }
.garage-subtabs { gap: 12px; white-space: normal; }
.garage-subtabs button { min-width: 0; font-size: 12px; }
.garage-tree-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.viewer-title { flex-wrap: wrap; }
.viewer-title > div:first-child { flex: 1 1 350px; min-width: 0; }
.viewer-title h2 { font-size: 28px; overflow-wrap: anywhere; }
.viewer-title p { font-size: 14px; }
.positions { background: var(--bg-deep); }
.position-card { overflow-wrap: anywhere; }
.catalog-toast { bottom: 24px; }
@media (max-width: 1180px) {
  .shop-header-inner { gap: 20px; }
  .shop-desktop-nav { gap: 16px; }
  .shop-profile-button span, .header-search { display: none; }
  .shop-logo { width: 175px; }
  .shop-hero h1 { font-size: 44px; }
  .category-caption { padding: 8px; font-size: 11px; }
  .tech-banner { gap: 18px; padding: 18px; }
  .shop-services { grid-template-columns: 2.3fr 1fr; }
}
@media (max-width: 900px) {
  :root { --container: calc(100% - 40px); }
  .shop-desktop-nav { gap: 12px; }
  .shop-desktop-nav a, .shop-desktop-nav button { font-size: 12px; }
  .shop-order-button, .shop-profile-button { display: none; }
  .shop-header-inner { gap: 12px; }
  .shop-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-art { aspect-ratio: 2; }
  .category-caption { font-size: 13px; }
  .shop-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tech-cta { max-width: 150px; }
  .shop-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --container: calc(100% - 32px); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .shop-header-inner { height: 66px; justify-content: space-between; }
  .shop-logo { width: 174px; }
  .shop-desktop-nav { display: none; }
  .shop-menu-button { display: inline-flex; }
  .shop-header-actions { gap: 4px; }
  .shop-hero { min-height: 0; padding: 26px 0 20px; }
  .shop-hero h1 { font-size: 30px; line-height: 1.15; margin-bottom: 14px; }
  .shop-hero-copy > p { font-size: 13px; line-height: 1.5; max-width: 350px; margin-bottom: 22px; }
  .hero-automotive { left: 22%; opacity: .55; background-size: auto 180%; background-position: right top; height: 185px; }
  .hero-automotive::after { background: linear-gradient(90deg, #03121e, transparent 70%), linear-gradient(0deg, #03121e 10%, transparent 70%); }
  .shop-search { max-width: none; }
  .shop-search-tabs { max-width: none; margin-bottom: 6px; }
  .shop-search-tabs button { font-size: 12px; min-height: 40px; padding: 8px 4px; }
  #shop-search-form { height: 48px; }
  #shop-search-form > button { min-width: 52px; padding: 10px; }
  #shop-search-form > button span { display: none; }
  #shop-search-form > button img { display: block; }
  #shop-search-form > button::after { content: none; }
  .shop-search-field { padding: 0 10px; gap: 6px; }
  .shop-search-field input { font-size: 16px; }
  .shop-search-field input::placeholder { font-size: 12px; }
  .vin-help { padding-top: 10px; min-height: 38px; }
  .shop-content { gap: 24px; padding-top: 22px; }
  .shop-section-head { margin-bottom: 12px; gap: 8px; }
  .shop-section-head h2 { font-size: 21px; }
  .shop-section-head > a { font-size: 11px; }
  .shop-section-head > a span { margin: 0; }
  .shop-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-art { aspect-ratio: 1.85; }
  .category-caption { min-height: 48px; padding: 6px 10px 10px; font-size: 12px; }
  .category-arrow { width: 22px; height: 22px; flex-basis: 22px; font-size: 17px; }
  .shop-services { order: 2; grid-template-columns: 1fr; gap: 12px; }
  .shop-brands { order: 3; }
  .tech-banner { min-height: 96px; padding: 15px; gap: 10px; justify-content: space-between; }
  .tech-banner h2 { font-size: 15px; }
  .tech-banner strong { font-size: 19px; }
  .tech-banner p { max-width: 200px; font-size: 11px; }
  .tech-cta { font-size: 11px; padding: 8px 10px; max-width: 112px; line-height: 1.4; }
  .tech-banner::before { width: 55%; }
  .delivery-banner { min-height: 82px; padding: 14px 16px; }
  .delivery-art { height: 70px; top: 4px; }
  .delivery-banner h2 { font-size: 14px; }
  .delivery-banner h2 br { display: none; }
  .delivery-banner h2, .delivery-banner p { max-width: 75%; }
  .shop-brand-grid { gap: 8px; }
  .shop-brand-grid a { height: 60px; }
  .shop-footer-inner { gap: 22px 18px; padding: 20px 0; }
  .footer-brand, .shop-footer-contact { grid-column: 1 / -1; }
  .shop-footer .shop-logo { width: 170px; }
  .shop-footer nav { gap: 0; padding: 0; }
  .shop-footer nav a, .shop-footer nav button { min-height: 38px; display: flex; align-items: center; }
  .shop-bottom-nav { position: fixed; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); bottom: 0; left: 0; right: 0; padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #1d3a50; background: #061622; }
  .shop-bottom-nav a, .shop-bottom-nav button { border: 0; padding: 2px 0; background: none; color: #aebfce; display: flex; gap: 4px; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; font-size: 10px; }
  .shop-bottom-nav [aria-current] { color: #1fa4ff; }
  .shop-bottom-nav [aria-current] img { filter: invert(46%) sepia(91%) saturate(1733%) hue-rotate(180deg) brightness(104%); }
  .shop-dialog { padding: 24px; max-height: calc(100dvh - 110px); }
  .catalog-shell, .parts-shell { margin-top: 20px; }
  .catalog-intro { display: block; padding-bottom: 16px; }
  .catalog-intro h1 { font-size: 25px; }
  .catalog-intro p { font-size: 13px; }
  .catalog-source { display: inline-block; margin-top: 12px; }
  .catalog-search-panel { padding: 14px; }
  .catalog-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-tabs button { font-size: 12px; padding: 8px 3px; min-width: 0; }
  .catalog-search.is-active, .catalog-search.vehicle-select-form.is-active { grid-template-columns: minmax(0, 1fr); }
  .catalog-search input, .catalog-search select { min-width: 0; width: 100%; font-size: 16px; }
  .garage-tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .garage-tabs button { flex-shrink: 0; min-height: 44px; font-size: 12px; }
  .garage-layout, .maintenance-layout { grid-template-columns: minmax(0, 1fr); }
  .garage-sidebar { min-width: 0; width: 100%; }
  .garage-main { padding: 16px; min-width: 0; }
  .garage-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garage-group-card { min-height: 165px; padding: 12px; }
  .garage-group-card b { font-size: 14px; }
  .garage-group-card small { font-size: 11px; }
  .viewer-title { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; }
  .viewer-title h2 { font-size: 24px; }
  .viewer-title .diagram-mode { justify-self: start; }
  .viewer-title .catalog-ghost { justify-self: start; font-size: 12px; }
  .vehicle-card { padding: 14px; gap: 12px; }
  .vehicle-card h2 { font-size: 21px; }
  .vehicle-card p { font-size: 12px; overflow-wrap: anywhere; }
  .oem-canvas { padding: 10px; }
  .viewport { min-height: 350px; height: 440px; }
  .garage-group-grid .group-card { min-height: 160px; padding: 12px; }
  .garage-group-grid .group-card h3 { font-size: 14px; overflow-wrap: anywhere; }
  .workspace-head { flex-wrap: wrap; gap: 12px; }
  .workspace-head h2, .garage-main h2 { font-size: 24px; }
  .oem-viewer { grid-template-columns: minmax(0, 1fr); }
  .catalog-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 32px); }
  .catalog-empty { padding: 30px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
