:root {
  --navy: #081e36;
  --navy-2: #102d4b;
  --red: #e52b38;
  --blue: #2767ba;
  --ink: #142235;
  --muted: #6d7886;
  --line: #dfe5eb;
  --paper: #f4f6f8;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  align-items: center;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(8,30,54,.1);
  display: flex;
  height: 78px;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1220px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand { align-items: center; display: inline-flex; font-size: 24px; font-weight: 790; letter-spacing: -.055em; gap: 11px; }
.brand > span:last-child > span { color: var(--red); }
.brand-mark { border: 1px solid #d5dce4; border-radius: 8px; display: grid; grid-template-rows: repeat(3, 1fr); height: 32px; overflow: hidden; padding: 5px; width: 34px; gap: 0; background: #fff; }
.brand-mark i { display: block; }
.brand-mark i:first-child { background: #fff; border-radius: 2px 2px 0 0; }
.brand-mark i:nth-child(2) { background: #00966e; }
.brand-mark i:last-child { background: #d62612; border-radius: 0 0 2px 2px; }

nav { display: flex; gap: 36px; }
nav a { color: #415064; font-size: 14px; font-weight: 650; }
nav a:hover { color: var(--red); }
.cart-button { align-items: center; background: var(--navy); border: 0; border-radius: 999px; color: #fff; cursor: pointer; display: flex; font-size: 13px; font-weight: 700; gap: 10px; padding: 9px 10px 9px 18px; }
.cart-button b { align-items: center; background: var(--red); border-radius: 50%; display: flex; height: 27px; justify-content: center; min-width: 27px; }

.hero { background: var(--navy); color: #fff; display: grid; gap: 74px; grid-template-columns: 1.25fr .75fr; min-height: 620px; overflow: hidden; padding: 92px max(28px, calc((100vw - 1220px) / 2)) 84px; position: relative; }
.hero::before { background: radial-gradient(circle, rgba(39,103,186,.34), transparent 64%); content: ""; height: 620px; position: absolute; right: -170px; top: -200px; width: 620px; }
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow { color: #7ea6d5; display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .16em; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: clamp(50px, 6vw, 78px); letter-spacing: -.065em; line-height: .98; margin: 0; max-width: 780px; }
.hero h1 em { color: #79a7dc; font-style: normal; font-weight: 580; }
.hero-copy > p { color: #bbc8d5; font-size: 18px; line-height: 1.65; margin: 28px 0 34px; max-width: 650px; }

.search-panel { background: #fff; border-radius: 18px; box-shadow: 0 18px 52px rgba(0,0,0,.23); color: var(--ink); padding: 15px; max-width: 740px; }
.search-panel label { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.search-panel > div { display: flex; gap: 8px; }
.search-panel input { border: 0; border-radius: 11px; color: var(--ink); flex: 1; min-width: 0; outline: 0; padding: 17px 18px; }
.search-panel input:focus { box-shadow: inset 0 0 0 2px #80a9d8; }
.search-panel button { background: var(--red); border: 0; border-radius: 11px; color: #fff; cursor: pointer; font-weight: 760; padding: 0 24px; }
.search-panel small { color: #718093; display: block; font-size: 12px; padding: 8px 18px 0; }

.hero-card { align-self: center; background: linear-gradient(145deg, #173a5e, #0d2844); border: 1px solid rgba(255,255,255,.13); border-radius: 30px; box-shadow: 0 32px 80px rgba(0,0,0,.25); min-height: 410px; overflow: hidden; padding: 30px; }
.part-visual { align-items: center; display: flex; height: 245px; justify-content: center; position: relative; }
.visual-ring { border: 18px solid #314e68; border-radius: 50%; position: absolute; }
.ring-one { box-shadow: inset 0 0 0 8px #91a3b3, 0 16px 40px rgba(0,0,0,.25); height: 176px; width: 176px; }
.ring-two { border-color: #172d43; border-width: 10px; height: 110px; width: 110px; }
.visual-core { align-items: center; background: #eef3f7; border: 12px solid #aebbc6; border-radius: 50%; color: var(--navy); display: flex; font-family: var(--font-geist-mono); font-size: 14px; font-weight: 800; height: 69px; justify-content: center; letter-spacing: .06em; width: 69px; z-index: 2; }
.hero-card-copy > span { color: #83a9d4; font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hero-card-copy strong { display: block; font-size: 25px; margin: 7px 0; }
.hero-card-copy p { color: #b8c5d1; line-height: 1.5; margin: 0; }

.trust-strip { background: #fff; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 max(28px, calc((100vw - 1220px) / 2)); }
.trust-strip div { align-items: center; border-right: 1px solid var(--line); display: flex; gap: 13px; min-height: 88px; padding: 0 28px; }
.trust-strip div:first-child { border-left: 1px solid var(--line); }
.trust-strip strong { color: var(--red); font-size: 18px; }
.trust-strip span { color: var(--muted); font-size: 13px; }

.catalog-section, .how-section { margin: 0 auto; max-width: 1276px; padding: 92px 28px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 34px; }
.section-heading .eyebrow { color: var(--blue); margin-bottom: 9px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 47px); letter-spacing: -.05em; margin: 0; }
.section-heading > p { color: var(--muted); margin: 0 0 6px; }
.results-count { background: #e7ecf1; border-radius: 999px; color: #647182; font-size: 12px; font-weight: 700; padding: 8px 13px; }
.product-grid { display: grid; gap: 19px; grid-template-columns: repeat(3, 1fr); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.product-card:hover { box-shadow: 0 20px 50px rgba(20,34,53,.1); transform: translateY(-4px); }
.product-image { align-items: center; background: linear-gradient(135deg, #edf1f5, #dfe6ed); display: flex; height: 205px; justify-content: center; overflow: hidden; position: relative; }
.product-image.has-image { background: #fff; }
.product-image img { height: 100%; object-fit: contain; padding: 16px; width: 100%; }
.fallback-ring { background: #ffffff; border: 16px solid #5f7180; border-radius: 50%; box-shadow: 0 13px 30px rgba(20,34,53,.2), inset 0 0 0 12px #bdc7cf; height: 110px; width: 110px; }
.product-image > b { align-items: center; background: var(--navy); border-radius: 50%; color: #fff; display: flex; font-family: var(--font-geist-mono); font-size: 10px; height: 42px; justify-content: center; position: absolute; width: 42px; }
.product-body { padding: 21px; }
.product-meta { align-items: center; display: flex; justify-content: space-between; }
.product-meta > span:first-child { color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.stock, .order { align-items: center; color: #368153; display: flex; font-size: 11px; font-weight: 700; gap: 6px; }
.stock::before, .order::before { background: #39a562; border-radius: 50%; content: ""; height: 7px; width: 7px; }
.order { color: #a6712c; }
.order::before { background: #d69a47; }
.oem { color: #7d8997; font-family: var(--font-geist-mono); font-size: 11px; margin: 18px 0 8px; }
.product-card h3 { font-size: 19px; letter-spacing: -.02em; margin: 0; }
.compatibility { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 10px 0 25px; min-height: 39px; }
.product-actions { align-items: center; border-top: 1px solid #e7ebef; display: flex; justify-content: space-between; padding-top: 17px; }
.product-actions strong { font-size: 21px; }
.product-actions button, .empty-state button { background: var(--navy); border: 0; border-radius: 9px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 750; padding: 11px 17px; }
.product-actions button:hover, .empty-state button:hover { background: var(--red); }
.empty-state { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 46px; text-align: center; }
.empty-state strong { font-size: 22px; }
.empty-state p { color: var(--muted); }
.loading-grid { display: grid; gap: 19px; grid-template-columns: repeat(3, 1fr); }
.loading-grid i { animation: pulse 1.3s infinite ease-in-out; background: linear-gradient(110deg, #e8edf2 8%, #f7f9fa 18%, #e8edf2 33%); background-size: 200% 100%; border-radius: 19px; height: 430px; }
.load-more { background: transparent; border: 1px solid #bcc7d2; border-radius: 999px; color: var(--navy); cursor: pointer; display: block; font-weight: 750; margin: 34px auto 0; padding: 13px 25px; }
.load-more:hover { border-color: var(--navy); }
@keyframes pulse { to { background-position-x: -200%; } }

.how-section { padding-top: 35px; }
.steps { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.steps article { background: var(--navy); border-radius: 19px; color: #fff; min-height: 230px; padding: 29px; }
.steps span { color: #6996c7; font-family: var(--font-geist-mono); font-size: 13px; }
.steps h3 { font-size: 21px; margin: 50px 0 10px; }
.steps p { color: #b9c6d2; line-height: 1.55; margin: 0; }

footer { align-items: center; background: #fff; border-top: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 1fr 1fr 1fr; padding: 44px max(28px, calc((100vw - 1220px) / 2)); }
.footer-brand { font-size: 21px; }
footer p { color: var(--muted); font-size: 13px; text-align: center; }
footer > div:last-child { display: flex; flex-direction: column; font-size: 13px; gap: 6px; text-align: right; }
footer > div:last-child a:first-child { font-weight: 750; }

.cart-overlay { background: rgba(5,18,31,.58); inset: 0; position: fixed; z-index: 50; backdrop-filter: blur(5px); }
.cart-drawer { background: #fff; box-shadow: -20px 0 70px rgba(0,0,0,.22); height: 100%; margin-left: auto; max-width: 590px; overflow-y: auto; padding: 28px 30px 44px; width: min(100%, 590px); }
.cart-head { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 22px; }
.cart-head span { color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.cart-head h2 { font-size: 32px; letter-spacing: -.04em; margin: 3px 0 0; }
.cart-head > button { background: #edf1f4; border: 0; border-radius: 50%; color: var(--navy); cursor: pointer; font-size: 26px; height: 42px; line-height: 1; width: 42px; }
.cart-lines article { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; padding: 22px 0; }
.cart-lines article > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.cart-lines article span { color: #7b8794; font-family: var(--font-geist-mono); font-size: 10px; }
.cart-lines article strong { font-size: 15px; }
.cart-lines article small { color: var(--red); font-weight: 750; }
.quantity { align-items: center; background: #f0f3f6; border-radius: 999px; display: flex; flex: 0 0 auto; gap: 12px; padding: 5px; }
.quantity button { align-items: center; background: #fff; border: 0; border-radius: 50%; color: var(--navy); cursor: pointer; display: flex; font-size: 18px; height: 29px; justify-content: center; width: 29px; }
.quantity b { font-size: 13px; min-width: 13px; text-align: center; }
.cart-total { background: var(--navy); border-radius: 15px; color: #fff; display: grid; grid-template-columns: 1fr auto; margin: 24px 0; padding: 19px; }
.cart-total span { color: #b7c6d5; font-size: 12px; }
.cart-total strong { font-size: 20px; }
.cart-total small { color: #93a8bc; font-size: 10px; grid-column: 1 / -1; margin-top: 7px; }
.order-form h3 { font-size: 19px; margin: 0 0 17px; }
.order-form label { color: #556476; display: flex; flex-direction: column; font-size: 11px; font-weight: 700; gap: 7px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.order-form > label { margin-bottom: 14px; }
.order-form input:not([type="radio"]), .order-form textarea, .order-form select { background: #f8f9fa; border: 1px solid #d9e0e6; border-radius: 9px; color: var(--ink); outline: 0; padding: 12px; resize: vertical; width: 100%; }
.order-form input:not([type="radio"]):focus, .order-form textarea:focus, .order-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,103,186,.1); }
.delivery-section { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); margin: 23px 0; padding: 22px 0; }
.delivery-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
.delivery-heading h3 { margin: 0; }
.delivery-heading > span { background: #e6f5eb; border-radius: 999px; color: #2e7b49; font-size: 10px; font-weight: 800; padding: 7px 10px; text-transform: uppercase; }
.courier-options { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.order-form .courier-option { align-items: center; background: #f7f9fa; border: 1px solid #d9e0e6; border-radius: 11px; cursor: pointer; flex-direction: row; gap: 11px; padding: 12px; }
.courier-option:has(input:checked) { background: #edf4fc; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(39,103,186,.08); }
.courier-option input { accent-color: var(--blue); flex: 0 0 auto; height: 17px; margin: 0; width: 17px; }
.courier-option > span { display: flex; flex-direction: column; gap: 3px; }
.courier-option strong { color: var(--navy); font-size: 13px; }
.courier-option small { color: var(--muted); font-size: 9px; font-weight: 500; }
.delivery-note { background: #fff7e8; border-radius: 9px; color: #805f2d; font-size: 10px; line-height: 1.55; margin: 13px 0 0; padding: 11px; }
.submit-order, .cart-empty button, .order-success button { background: var(--red); border: 0; border-radius: 11px; color: #fff; cursor: pointer; font-weight: 780; padding: 15px 20px; width: 100%; }
.submit-order:disabled { cursor: wait; opacity: .65; }
.order-error { background: #fff0f1; border-radius: 8px; color: #ad2530; font-size: 12px; padding: 11px; }
.cart-empty, .order-success { align-items: center; display: flex; flex-direction: column; padding: 90px 16px; text-align: center; }
.cart-empty strong, .order-success h3 { font-size: 24px; margin: 0; }
.cart-empty p, .order-success p { color: var(--muted); line-height: 1.6; }
.cart-empty button, .order-success button { margin-top: 12px; max-width: 250px; }
.order-success i { align-items: center; background: #ddf4e5; border-radius: 50%; color: #2f8a4f; display: flex; font-size: 28px; font-style: normal; height: 64px; justify-content: center; margin-bottom: 20px; width: 64px; }

.admin-shell { background: #f2f5f7; min-height: 100vh; }
.admin-login { align-items: center; background: radial-gradient(circle at 20% 10%, #183f67, var(--navy) 58%); display: flex; justify-content: center; min-height: 100vh; padding: 28px; }
.login-card { background: #fff; border-radius: 22px; box-shadow: 0 28px 80px rgba(0,0,0,.28); display: flex; flex-direction: column; padding: 34px; width: min(100%, 440px); }
.login-card > .brand { margin-bottom: 38px; }
.login-card > .eyebrow { color: var(--blue); }
.login-card h1 { font-size: 38px; letter-spacing: -.045em; margin: 8px 0 7px; }
.login-card > p { color: var(--muted); line-height: 1.55; margin: 0 0 25px; }
.login-card label { color: #536274; display: flex; flex-direction: column; font-size: 12px; font-weight: 700; gap: 8px; margin-top: 14px; }
.login-card input { background: #f7f9fa; border: 1px solid #d6dee6; border-radius: 10px; outline: 0; padding: 13px; }
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,103,186,.1); }
.login-card > button, #logout { background: var(--red); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-weight: 760; padding: 13px 18px; }
.login-card > button { margin-top: 22px; }
.login-card > button:disabled { cursor: wait; opacity: .65; }
.login-error { background: #fff0f1; border-radius: 8px; color: #ad2530 !important; font-size: 12px; margin: 15px 0 0 !important; padding: 10px; }
.admin-header { align-items: center; background: #fff; border-bottom: 1px solid var(--line); display: flex; height: 78px; justify-content: space-between; padding: 0 max(28px, calc((100vw - 1220px) / 2)); }
.admin-header > div { align-items: center; display: grid; font-size: 11px; gap: 3px 14px; grid-template-columns: auto auto; text-align: right; }
.admin-header > div span { color: var(--muted); text-transform: uppercase; }
.admin-header > div strong { color: var(--navy); }
.admin-header #logout { grid-column: 2; grid-row: 1 / span 2; padding: 9px 14px; }
.admin-intro { background: var(--navy); color: #fff; padding: 66px max(28px, calc((100vw - 1220px) / 2)); }
.admin-intro .eyebrow { margin-bottom: 12px; }
.admin-intro h1 { font-size: clamp(40px, 5vw, 62px); letter-spacing: -.055em; margin: 0; }
.admin-intro p { color: #b7c6d5; line-height: 1.6; margin: 17px 0 0; max-width: 690px; }
.import-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 330px; margin: 0 auto; max-width: 1276px; padding: 46px 28px 90px; }
.import-main { display: flex; flex-direction: column; gap: 18px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.upload-card { align-items: center; display: grid; gap: 18px; grid-template-columns: auto 1fr auto; }
.card-number { align-items: center; background: #e7eef7; border-radius: 50%; color: var(--blue); display: flex; font-family: var(--font-geist-mono); font-size: 11px; font-weight: 800; height: 42px; justify-content: center; width: 42px; }
.admin-card h2 { font-size: 19px; margin: 0; }
.admin-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
.file-button { background: var(--red); border-radius: 10px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 750; max-width: 220px; overflow: hidden; padding: 13px 17px; text-overflow: ellipsis; white-space: nowrap; }
.file-button input { display: none; }
.upload-result { background: #eef7f1; border-radius: 8px; color: #337049; font-size: 11px; grid-column: 2 / -1; line-height: 1.5; padding: 10px 12px; }
.mapping-card, .preview-card { display: grid; gap: 18px; grid-template-columns: auto 1fr; }
.card-title { min-width: 0; }
.mapping-grid, .table-wrap { grid-column: 2; }
.mapping-grid { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
.mapping-grid label { color: #586779; display: flex; flex-direction: column; font-size: 11px; font-weight: 700; gap: 7px; }
.mapping-grid select { background: #f8f9fb; border: 1px solid #d9e0e6; border-radius: 9px; color: var(--ink); outline: 0; padding: 11px; width: 100%; }
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; font-size: 11px; min-width: 700px; width: 100%; }
.table-wrap th { background: #f0f3f6; color: #647284; font-weight: 750; padding: 10px; text-align: left; }
.table-wrap td { border-bottom: 1px solid #e8ecef; max-width: 220px; overflow: hidden; padding: 11px 10px; text-overflow: ellipsis; white-space: nowrap; }
.import-summary { background: var(--navy); border-radius: 18px; color: #fff; padding: 25px; position: sticky; top: 24px; }
.import-summary > span { color: #7fa5ce; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.import-summary > strong { display: block; font-size: 16px; margin: 7px 0 22px; overflow-wrap: anywhere; }
.import-summary dl { border-bottom: 1px solid rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.12); margin: 0 0 22px; padding: 12px 0; }
.import-summary dl div { display: flex; justify-content: space-between; padding: 8px 0; }
.import-summary dt { color: #9fb3c6; font-size: 11px; }
.import-summary dd { font-size: 11px; font-weight: 700; margin: 0; }
.import-summary > button { background: var(--red); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 780; padding: 14px; width: 100%; }
.import-summary > button:disabled { background: #516579; cursor: not-allowed; }
.import-summary > small { color: #8fa5ba; display: block; font-size: 10px; line-height: 1.5; margin-top: 14px; }
.progress { background: rgba(255,255,255,.12); border-radius: 999px; height: 8px; margin-bottom: 18px; overflow: hidden; position: relative; }
.progress i { background: #70a5dd; display: block; height: 100%; transition: width .2s; }
.progress span { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.import-message { border-radius: 8px; font-size: 11px; line-height: 1.5; padding: 11px; }
.import-message.done { background: rgba(66,174,104,.17); color: #9fe0b5; }
.import-message.error { background: rgba(229,43,56,.15); color: #ff9da4; }
.admin-gate { align-items: center; background: var(--navy); color: #fff; display: flex; justify-content: center; min-height: 100vh; padding: 28px; text-align: center; }
.admin-gate span { color: #7ea6d5; font-weight: 800; }
.admin-gate h1 { font-size: 48px; letter-spacing: -.05em; margin: 20px 0 10px; }
.admin-gate p { color: #b7c6d5; }
.admin-gate a { background: var(--red); border-radius: 10px; display: inline-block; font-weight: 750; margin-top: 14px; padding: 13px 20px; }
.orders-admin { margin: 0 auto; max-width: 1276px; padding: 0 28px 90px; }
.orders-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 24px; }
.orders-heading .eyebrow { color: var(--blue); margin-bottom: 8px; }
.orders-heading h2 { font-size: 35px; letter-spacing: -.045em; margin: 0; }
.orders-heading p { color: var(--muted); font-size: 12px; margin: 9px 0 0; max-width: 650px; }
.orders-heading > button { background: #fff; border: 1px solid #cad3dc; border-radius: 9px; color: var(--navy); cursor: pointer; font-size: 12px; font-weight: 750; padding: 11px 17px; }
.orders-table { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.orders-table table { border-collapse: collapse; font-size: 11px; min-width: 1120px; width: 100%; }
.orders-table th { background: #eef2f5; color: #687687; padding: 12px 15px; text-align: left; }
.orders-table td { border-top: 1px solid #e6ebef; padding: 15px; vertical-align: top; }
.orders-table td > strong, .orders-table td > span, .orders-table td > a, .orders-table td > small { display: block; }
.orders-table td > span, .orders-table td > a { color: #647385; line-height: 1.5; }
.orders-table td > a:hover { color: var(--red); }
.orders-table td > small { background: #fff7e8; border-radius: 6px; color: #8a652c; margin-top: 7px; padding: 6px; }
.orders-table select { background: #f5f7f8; border: 1px solid #d5dde4; border-radius: 8px; color: var(--ink); font-size: 11px; padding: 8px; }
.orders-state { background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); padding: 38px; text-align: center; }
.orders-state.error { color: #b02b36; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { gap: 42px; grid-template-columns: 1fr; padding-top: 66px; }
  .hero-card { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip div:nth-child(3) { border-left: 1px solid var(--line); }
  .product-grid, .steps, .loading-grid { grid-template-columns: 1fr 1fr; }
  .section-heading { align-items: flex-start; gap: 18px; }
  .section-heading > p { display: none; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer > div, footer > div:last-child { justify-content: center; text-align: center; }
  .import-layout { grid-template-columns: 1fr; }
  .import-summary { position: static; }
  .orders-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
}

@media (max-width: 620px) {
  .site-header { height: 68px; padding: 0 18px; }
  .brand { font-size: 21px; }
  .cart-button span { display: none; }
  .cart-button { padding: 6px; }
  .hero { min-height: auto; padding: 58px 18px 62px; }
  .hero-copy > p { font-size: 16px; }
  .search-panel > div { flex-direction: column; }
  .search-panel button { padding: 15px; }
  .trust-strip { padding: 0; }
  .trust-strip div { border-left: 0 !important; min-height: 75px; padding: 0 16px; }
  .trust-strip div:nth-child(even) { border-right: 0; }
  .catalog-section, .how-section { padding: 66px 18px; }
  .product-grid, .steps, .loading-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .steps article { min-height: 200px; }
  .steps h3 { margin-top: 34px; }
  footer { padding: 38px 18px; }
  .cart-drawer { padding: 22px 18px 38px; }
  .form-row { grid-template-columns: 1fr; }
  .courier-options { grid-template-columns: 1fr; }
  .admin-header { padding: 0 18px; }
  .admin-header > div { display: none; }
  .admin-intro { padding: 54px 18px; }
  .import-layout { padding: 28px 18px 70px; }
  .orders-admin { padding: 0 18px 70px; }
  .upload-card { align-items: flex-start; grid-template-columns: auto 1fr; }
  .file-button { grid-column: 1 / -1; max-width: none; text-align: center; }
  .mapping-card, .preview-card { grid-template-columns: auto 1fr; padding: 18px; }
  .mapping-grid { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .table-wrap { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card { transition: none; }
}

/* Автомобили за части */
.cars-section { background: #e9eef3; padding: 92px max(28px, calc((100vw - 1220px) / 2)); }
.cars-heading { margin-left: auto; margin-right: auto; max-width: 1220px; }
.cars-heading .section-heading p, .cars-heading p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 10px 0 0; max-width: 680px; }
.vehicle-search { align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr auto auto; margin: 0 auto 28px; max-width: 1220px; padding: 18px; }
.vehicle-search label { color: #59697b; display: flex; flex-direction: column; font-size: 11px; font-weight: 750; gap: 7px; }
.vehicle-search select { background: #f7f9fa; border: 1px solid #d8e0e7; border-radius: 10px; color: var(--ink); min-height: 45px; outline: 0; padding: 0 12px; }
.vehicle-search select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,103,186,.1); }
.vehicle-search button { background: var(--red); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 780; min-height: 45px; padding: 0 18px; }
.vehicle-search .secondary { background: #eef2f5; color: var(--navy); }
.vehicle-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin: 0 auto; max-width: 1220px; }
.cars-loading { margin: 0 auto; max-width: 1220px; }
.vehicle-card { background: #fff; border: 1px solid #dbe2e8; border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.vehicle-card:hover { box-shadow: 0 20px 50px rgba(20,34,53,.11); transform: translateY(-4px); }
.vehicle-image { align-items: center; background: linear-gradient(135deg, #dfe6ed, #cbd6e0); display: flex; height: 245px; justify-content: center; overflow: hidden; position: relative; }
.vehicle-image.has-image { background: #e8edf1; }
.vehicle-image img { height: 100%; object-fit: cover; width: 100%; }
.vehicle-gallery-open { background: rgba(8,30,54,.86); border: 0; border-radius: 999px; bottom: 13px; color: #fff; cursor: pointer; font-size: 10px; font-weight: 750; padding: 7px 10px; position: absolute; right: 13px; z-index: 2; }
.vehicle-gallery-open:hover { background: var(--red); }
.vehicle-badge { background: #e4f5e9; border-radius: 999px; color: #2b7847; font-size: 10px; font-weight: 800; left: 13px; padding: 7px 10px; position: absolute; text-transform: uppercase; top: 13px; }
.car-fallback { align-items: center; background: var(--navy); border-radius: 50%; color: #fff; display: flex; font-size: 12px; font-weight: 800; height: 96px; justify-content: center; letter-spacing: .13em; width: 96px; }
.vehicle-body { padding: 22px; }
.vehicle-make { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.vehicle-body h3 { font-size: 24px; letter-spacing: -.035em; margin: 5px 0 8px; }
.vehicle-body h3 em { color: #718093; font-size: 16px; font-style: normal; font-weight: 650; }
.vehicle-body > p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 0 18px; }
.vehicle-specs { border-bottom: 1px solid #e8edf1; border-top: 1px solid #e8edf1; display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); margin-bottom: 17px; padding: 13px 0; }
.vehicle-specs span { color: var(--ink); font-size: 11px; min-width: 0; }
.vehicle-specs b { color: #83909e; display: block; font-size: 8px; letter-spacing: .08em; margin-bottom: 4px; text-transform: uppercase; }
.vehicle-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.vehicle-actions { display: grid; gap: 9px; grid-template-columns: 1fr auto; }
.vehicle-actions button { border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 780; min-height: 44px; padding: 12px 16px; }
.vehicle-inquiry-button { background: var(--navy); border: 0; color: #fff; }
.vehicle-inquiry-button:hover { background: var(--red); }
.vehicle-share-button { background: #fff; border: 1px solid #ccd6df; color: var(--navy); min-width: 104px; }
.vehicle-share-button:hover { background: #eef3f7; border-color: #b7c4cf; }
.vehicle-share-button.copied { background: #e8f6ed; border-color: #a9d9b8; color: #287445; }
.vehicle-card-shared { box-shadow: 0 0 0 3px rgba(214,42,52,.18), 0 20px 50px rgba(20,34,53,.11); }
.cars-section > .empty-state { margin: 0 auto; max-width: 1220px; }

/* Модал за запитване */
.inquiry-overlay { align-items: center; background: rgba(5,18,31,.66); display: flex; inset: 0; justify-content: center; padding: 26px; position: fixed; z-index: 70; backdrop-filter: blur(6px); }
.inquiry-modal { background: #fff; border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.3); max-height: calc(100vh - 52px); max-width: 940px; overflow-y: auto; position: relative; width: 100%; }
.modal-close { align-items: center; background: rgba(255,255,255,.92); border: 1px solid #dce3e9; border-radius: 50%; color: var(--navy); cursor: pointer; display: flex; font-size: 24px; height: 40px; justify-content: center; position: absolute; right: 16px; top: 16px; width: 40px; z-index: 2; }
.inquiry-layout { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 560px; }
.inquiry-vehicle { background: var(--navy); color: #fff; overflow: hidden; padding: 0 28px 34px; }
.inquiry-photo-wrap { margin: 0 -28px 28px; position: relative; }
.inquiry-photo-wrap img { display: block; height: 290px; object-fit: cover; width: 100%; }
.inquiry-gallery-open { background: rgba(8,30,54,.88); border: 0; border-radius: 999px; bottom: 14px; color: #fff; cursor: pointer; font-size: 10px; font-weight: 750; padding: 8px 11px; position: absolute; right: 14px; }
.inquiry-gallery-open:hover { background: var(--red); }
.inquiry-vehicle .car-fallback { margin: 90px auto 120px; }
.inquiry-vehicle > span { color: #7da5d1; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.inquiry-vehicle h3 { font-size: 27px; letter-spacing: -.035em; margin: 8px 0 9px; }
.inquiry-vehicle p { color: #b8c6d3; font-size: 12px; line-height: 1.6; margin: 0; }
.inquiry-form { padding: 46px 42px 36px; }
.inquiry-form .eyebrow { color: var(--blue); margin-bottom: 8px; }
.inquiry-form h2 { font-size: 32px; letter-spacing: -.045em; margin: 0 0 26px; }
.inquiry-form label { color: #556476; display: flex; flex-direction: column; font-size: 11px; font-weight: 700; gap: 7px; margin-bottom: 13px; }
.inquiry-form input, .inquiry-form textarea { background: #f8f9fa; border: 1px solid #d9e0e6; border-radius: 9px; color: var(--ink); outline: 0; padding: 12px; resize: vertical; width: 100%; }
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,103,186,.1); }
.privacy-note { color: #8a96a3; display: block; font-size: 9px; line-height: 1.5; margin-top: 9px; text-align: center; }
.inquiry-success { align-items: center; display: flex; flex-direction: column; min-height: 500px; justify-content: center; padding: 50px; text-align: center; }
.inquiry-success i { align-items: center; background: #ddf4e5; border-radius: 50%; color: #2f8a4f; display: flex; font-size: 28px; font-style: normal; height: 68px; justify-content: center; margin-bottom: 18px; width: 68px; }
.inquiry-success h2 { font-size: 32px; letter-spacing: -.04em; margin: 0; }
.inquiry-success p { color: var(--muted); line-height: 1.6; max-width: 500px; }
.inquiry-success button { background: var(--red); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-weight: 780; margin-top: 10px; padding: 13px 30px; }

/* Галерия за автомобилите */
.gallery-overlay { align-items: center; background: rgba(3,10,18,.9); display: flex; inset: 0; justify-content: center; padding: 18px; position: fixed; z-index: 90; backdrop-filter: blur(8px); }
.gallery-modal { max-width: 1180px; position: relative; width: 100%; }
.gallery-stage { align-items: center; display: flex; height: min(72vh, 760px); justify-content: center; overflow: hidden; }
.gallery-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.gallery-close { align-items: center; background: rgba(255,255,255,.94); border: 0; border-radius: 50%; color: var(--navy); cursor: pointer; display: flex; font-size: 28px; height: 44px; justify-content: center; position: absolute; right: 0; top: 0; width: 44px; z-index: 3; }
.gallery-arrow { align-items: center; background: rgba(255,255,255,.92); border: 0; border-radius: 50%; color: var(--navy); cursor: pointer; display: flex; font-size: 36px; height: 52px; justify-content: center; position: absolute; top: 42%; transform: translateY(-50%); width: 52px; z-index: 3; }
.gallery-prev { left: 0; }
.gallery-next { right: 0; }
.gallery-info { align-items: center; color: #fff; display: flex; gap: 18px; justify-content: space-between; margin: 14px auto 10px; max-width: 920px; }
.gallery-info strong { font-size: 15px; }
.gallery-info span { color: #c7d2dc; font-size: 12px; }
.gallery-thumbs { display: flex; gap: 8px; justify-content: center; margin: 0 auto; max-width: 920px; overflow-x: auto; padding: 4px 2px 8px; }
.gallery-thumbs button { background: transparent; border: 2px solid transparent; border-radius: 8px; cursor: pointer; flex: 0 0 auto; height: 58px; overflow: hidden; padding: 0; width: 82px; }
.gallery-thumbs button.active { border-color: #fff; }
.gallery-thumbs img { height: 100%; object-fit: cover; width: 100%; }

/* Админ – автомобили и запитвания */
.admin-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.admin-nav a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #dbe6f0; font-size: 11px; font-weight: 750; padding: 9px 13px; }
.admin-nav a:hover { background: #fff; color: var(--navy); }
.vehicle-admin, .inquiries-admin { margin: 0 auto; max-width: 1276px; padding: 50px 28px 80px; }
.vehicle-admin-layout { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); }
.vehicle-editor { padding: 26px; }
.editor-title { align-items: start; display: flex; justify-content: space-between; margin-bottom: 24px; }
.editor-title .eyebrow { color: var(--blue); margin-bottom: 6px; }
.editor-title h2 { font-size: 27px; letter-spacing: -.035em; }
.secondary-button { background: #eef2f5; border: 1px solid #d5dde4; border-radius: 9px; color: var(--navy); cursor: pointer; font-size: 11px; font-weight: 750; padding: 9px 13px; }
.vehicle-fields { display: grid; gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vehicle-fields label { color: #586779; display: flex; flex-direction: column; font-size: 11px; font-weight: 700; gap: 7px; }
.vehicle-fields input, .vehicle-fields select, .vehicle-fields textarea { background: #f8f9fb; border: 1px solid #d9e0e6; border-radius: 9px; color: var(--ink); outline: 0; padding: 11px; resize: vertical; width: 100%; }
.vehicle-fields input:focus, .vehicle-fields select:focus, .vehicle-fields textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,103,186,.1); }
.vehicle-fields .wide-field { grid-column: 1 / -1; }
.vehicle-photo-picker { background: #f4f7f9; border: 1px dashed #c9d4de; border-radius: 11px; padding: 14px; }
.vehicle-photo-picker small { color: var(--muted); font-size: 9px; font-weight: 500; }
.primary-admin-button { background: var(--red); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 780; margin-top: 18px; padding: 14px 18px; width: 100%; }
.primary-admin-button:disabled { cursor: wait; opacity: .6; }
.existing-images { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.existing-images > strong { display: block; font-size: 12px; margin-bottom: 10px; }
.existing-images > div { display: flex; flex-wrap: wrap; gap: 9px; }
.existing-images figure { border-radius: 9px; height: 80px; margin: 0; overflow: hidden; position: relative; width: 105px; }
.existing-images img { height: 100%; object-fit: cover; width: 100%; }
.existing-images button { background: rgba(8,30,54,.86); border: 0; border-radius: 50%; color: #fff; cursor: pointer; font-size: 17px; height: 25px; position: absolute; right: 5px; top: 5px; width: 25px; }
.vehicle-list-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.vehicle-list-head { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 18px; }
.vehicle-list-head strong { font-size: 14px; }
.vehicle-list-head button, .admin-vehicle-item > button { background: #eef2f5; border: 1px solid #d3dce4; border-radius: 8px; color: var(--navy); cursor: pointer; font-size: 10px; font-weight: 750; padding: 8px 10px; }
.admin-vehicle-list { max-height: 780px; overflow-y: auto; }
.admin-vehicle-item { align-items: center; border-top: 1px solid #e8edf1; display: grid; gap: 12px; grid-template-columns: 74px 1fr auto; padding: 13px; }
.admin-vehicle-item:first-child { border-top: 0; }
.admin-vehicle-thumb { align-items: center; background: #e7edf2; border-radius: 8px; color: #758596; display: flex; font-size: 9px; font-weight: 800; height: 58px; justify-content: center; overflow: hidden; width: 74px; }
.admin-vehicle-thumb img { height: 100%; object-fit: cover; width: 100%; }
.admin-vehicle-item > div:nth-child(2) { min-width: 0; }
.admin-vehicle-item span { color: var(--blue); display: block; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-vehicle-item strong { display: block; font-size: 12px; margin: 3px 0; }
.admin-vehicle-item small { color: var(--muted); display: block; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.inquiries-admin { padding-top: 0; }
.inquiries-table table { min-width: 1200px; }
.mail-ok, .mail-fail { border-radius: 999px; display: inline-block !important; font-size: 9px; font-weight: 800; margin-top: 6px; padding: 5px 8px; }
.mail-ok { background: #e2f4e8; color: #2b7847 !important; }
.mail-fail { background: #fff0f1; color: #ad2530 !important; }
.admin-section-title { margin: 0 auto; max-width: 1276px; padding: 10px 28px 0; }
.admin-section-title .eyebrow { color: var(--blue); margin-bottom: 8px; }
.admin-section-title h2 { font-size: 35px; letter-spacing: -.045em; margin: 0; }
.admin-section-title p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 9px 0 0; max-width: 690px; }

@media (max-width: 900px) {
  .vehicle-grid { grid-template-columns: 1fr 1fr; }
  .vehicle-search { grid-template-columns: 1fr 1fr; }
  .vehicle-search button { min-height: 43px; }
  .inquiry-layout { grid-template-columns: 1fr; }
  .inquiry-vehicle { display: none; }
  .vehicle-admin-layout { grid-template-columns: 1fr; }
  .vehicle-list-panel { order: -1; }
}

@media (max-width: 620px) {
  .cars-section { padding: 66px 18px; }
  .vehicle-grid, .vehicle-search { grid-template-columns: 1fr; }
  .vehicle-image { height: 220px; }
  .inquiry-overlay { padding: 10px; }
  .inquiry-modal { max-height: calc(100vh - 20px); }
  .inquiry-form { padding: 52px 20px 28px; }
  .inquiry-form h2 { font-size: 27px; }
  .vehicle-admin, .inquiries-admin { padding-left: 18px; padding-right: 18px; }
  .vehicle-fields { grid-template-columns: 1fr; }
  .vehicle-fields .wide-field { grid-column: auto; }
  .admin-vehicle-item { grid-template-columns: 64px 1fr; }
  .admin-vehicle-thumb { width: 64px; }
  .admin-vehicle-item > button { grid-column: 1 / -1; }
  .admin-nav { gap: 6px; }
}

@media (max-width: 640px) {
  .gallery-overlay { padding: 8px; }
  .gallery-stage { height: 68vh; }
  .gallery-arrow { height: 44px; width: 44px; }
  .gallery-prev { left: 6px; }
  .gallery-next { right: 6px; }
  .gallery-close { right: 6px; top: 6px; }
  .gallery-info { padding: 0 8px; }
  .gallery-thumbs { justify-content: flex-start; padding-left: 8px; padding-right: 8px; }
}

/* Отговори на клиентски запитвания от админ панела */
.inquiry-reply-button { background: var(--navy); border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: block; font-size: 10px; font-weight: 800; margin-top: 8px; padding: 8px 11px; white-space: nowrap; }
.inquiry-reply-button:hover { background: var(--blue); }
.inquiry-reply-button:disabled { background: #d7dde3; color: #7c8794; cursor: not-allowed; }
.reply-meta { color: #6d7b8a !important; display: block !important; margin-top: 7px; }
.admin-reply-overlay { align-items: center; background: rgba(5,18,31,.68); display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 110; backdrop-filter: blur(6px); }
.admin-reply-modal { background: #fff; border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.3); display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); max-height: calc(100vh - 48px); max-width: 1080px; overflow: hidden; position: relative; width: 100%; }
.admin-reply-main { overflow-y: auto; padding: 42px; }
.admin-reply-main h2 { font-size: 31px; letter-spacing: -.04em; margin: 6px 0 18px; }
.reply-context { background: #f3f6f8; border-radius: 12px; display: grid; gap: 4px; margin-bottom: 22px; padding: 14px 16px; }
.reply-context strong { color: var(--navy); font-size: 13px; }
.reply-context span { color: var(--muted); font-size: 11px; }
.admin-reply-main form label { color: #556476; display: flex; flex-direction: column; font-size: 11px; font-weight: 750; gap: 7px; margin-bottom: 14px; }
.admin-reply-main form input, .admin-reply-main form textarea { background: #f8f9fa; border: 1px solid #d9e0e6; border-radius: 9px; color: var(--ink); font: inherit; outline: 0; padding: 12px; resize: vertical; width: 100%; }
.admin-reply-main form input:focus, .admin-reply-main form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,103,186,.1); }
.reply-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.reply-history-panel { background: #f4f6f8; border-left: 1px solid #e0e5ea; overflow-y: auto; padding: 42px 28px; }
.reply-history-panel h3 { color: var(--navy); font-size: 20px; margin: 6px 0 18px; }
.reply-history { display: grid; gap: 12px; }
.reply-history-empty { color: var(--muted); font-size: 12px; }
.reply-history-item { background: #fff; border: 1px solid #dde4e9; border-radius: 12px; padding: 14px; }
.reply-history-item.failed { border-color: #efc2c6; }
.reply-history-item > div { display: flex; flex-direction: column; gap: 3px; }
.reply-history-item strong { color: var(--navy); font-size: 12px; }
.reply-history-item span, .reply-history-item small { color: #73808d; font-size: 9px; }
.reply-history-item p { color: #465565; font-size: 11px; line-height: 1.55; margin: 10px 0; }
.reply-history-item small { color: #2b7847; font-weight: 750; }
.reply-history-item.failed small { color: #ad2530; }
@media (max-width: 820px) {
  .admin-reply-overlay { padding: 10px; }
  .admin-reply-modal { display: block; max-height: calc(100vh - 20px); overflow-y: auto; }
  .admin-reply-main { overflow: visible; padding: 48px 20px 28px; }
  .reply-history-panel { border-left: 0; border-top: 1px solid #e0e5ea; overflow: visible; padding: 26px 20px; }
}


/* Продадени части от автомобили */
.vehicle-sold-parts { background: #fff6f6; border: 1px solid #f0d5d8; border-radius: 12px; margin: 4px 0 16px; padding: 12px; }
.sold-parts-title { align-items: center; display: flex; justify-content: space-between; margin-bottom: 8px; }
.sold-parts-title strong { color: #84212a; font-size: 11px; letter-spacing: .02em; }
.sold-parts-title > span { align-items: center; background: #a82f39; border-radius: 999px; color: #fff; display: inline-flex; font-size: 9px; font-weight: 800; height: 22px; justify-content: center; min-width: 22px; padding: 0 7px; }
.vehicle-sold-parts ul { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.vehicle-sold-parts li { align-items: center; display: flex; gap: 8px; min-width: 0; }
.vehicle-sold-parts li b { background: #a82f39; border-radius: 5px; color: #fff; flex: 0 0 auto; font-size: 7px; letter-spacing: .05em; padding: 4px 6px; }
.vehicle-sold-parts li span { color: #4b3336; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.vehicle-sold-parts small { color: #8b6a6d; display: block; font-size: 8.5px; line-height: 1.45; margin-top: 9px; }
.vehicle-sold-parts details { border-top: 1px dashed #e3c3c6; margin-top: 8px; padding-top: 7px; }
.vehicle-sold-parts summary { color: #8f2831; cursor: pointer; font-size: 9px; font-weight: 750; margin-bottom: 7px; }
.inquiry-vehicle .vehicle-sold-parts { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); margin-top: 18px; }
.inquiry-vehicle .sold-parts-title strong, .inquiry-vehicle .vehicle-sold-parts li span { color: #fff; }
.inquiry-vehicle .vehicle-sold-parts small, .inquiry-vehicle .vehicle-sold-parts summary { color: #d8b9bc; }
.inquiry-vehicle .vehicle-sold-parts details { border-top-color: rgba(255,255,255,.16); }

.sold-parts-editor { background: #fff7f7; border: 1px solid #efd6d8; border-radius: 12px; margin-top: 20px; padding: 16px; }
.sold-parts-editor-head { align-items: end; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
.sold-parts-editor-head .eyebrow { color: #aa303a; display: block; margin-bottom: 4px; }
.sold-parts-editor-head strong { color: var(--navy); display: block; font-size: 14px; }
.sold-parts-editor-head small { color: var(--muted); font-size: 9px; }
.sold-part-add { display: grid; gap: 8px; grid-template-columns: 1fr auto; }
.sold-part-add input { background: #fff; border: 1px solid #dcc7c9; border-radius: 9px; outline: 0; padding: 10px 11px; }
.sold-part-add input:focus { border-color: #aa303a; box-shadow: 0 0 0 3px rgba(170,48,58,.08); }
.sold-part-add button { background: #a82f39; border: 0; border-radius: 9px; color: #fff; cursor: pointer; font-size: 10px; font-weight: 800; padding: 0 14px; }
.sold-parts-admin-list { display: grid; gap: 7px; margin-top: 12px; }
.sold-part-admin-row { align-items: center; background: #fff; border: 1px solid #ecdadd; border-radius: 9px; display: flex; justify-content: space-between; padding: 8px 9px; }
.sold-part-admin-row span { align-items: center; color: #49383a; display: flex; font-size: 10px; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.sold-part-admin-row b { background: #a82f39; border-radius: 5px; color: #fff; flex: 0 0 auto; font-size: 7px; letter-spacing: .05em; padding: 4px 6px; }
.sold-part-admin-row button { background: #f3e5e7; border: 0; border-radius: 50%; color: #9b2832; cursor: pointer; font-size: 17px; height: 25px; width: 25px; }
.sold-parts-empty { color: #8d7476; font-size: 10px; margin: 0; }
.sold-count-admin { color: #a82f39 !important; font-weight: 750; }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inquiry-actions .inquiry-reply-button { margin-top: 0; }
.inquiry-sold-button { background: #a82f39; border: 0; border-radius: 8px; color: #fff; cursor: pointer; font-size: 9px; font-weight: 800; padding: 8px 10px; white-space: nowrap; }
.inquiry-sold-button:hover { background: #851f28; }
.inquiry-sold-button.done { background: #e9edef; color: #65717d; cursor: default; }
@media (max-width: 620px) { .sold-parts-editor-head { align-items: start; flex-direction: column; } .sold-part-add { grid-template-columns: 1fr; } .sold-part-add button { min-height: 40px; } }

@media (max-width: 520px) { .vehicle-actions { grid-template-columns: 1fr; } .vehicle-share-button { width: 100%; } }

/* Изтриване и почистване на клиентски запитвания */
.inquiry-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.danger-admin-button { background: #fff0f1 !important; border: 1px solid #e7b6ba !important; color: #9b2731 !important; }
.danger-admin-button:hover { background: #a82f39 !important; border-color: #a82f39 !important; color: #fff !important; }
.danger-admin-button:disabled { background: #f2f4f5 !important; border-color: #dde2e6 !important; color: #8c969f !important; cursor: not-allowed; }
.inquiry-delete-button { background: #fff; border: 1px solid #e1aeb3; border-radius: 8px; color: #9b2731; cursor: pointer; font-size: 9px; font-weight: 800; padding: 7px 10px; white-space: nowrap; }
.inquiry-delete-button:hover { background: #a82f39; border-color: #a82f39; color: #fff; }
@media (max-width: 620px) { .inquiry-toolbar { justify-content: flex-start; margin-top: 10px; } }
