/*
Theme Name: Aggelakopoulos Car
Theme URI: https://www.aggelakopouloscar.gr/
Author: Codex
Description: Accessible WordPress theme for a used car dealership with vehicle listings and contact forms.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aggelakopoulos-car
*/

:root {
  --color-ink: #111827;
  --color-muted: #536070;
  --color-line: #d9dee6;
  --color-surface: #ffffff;
  --color-soft: #f4f6f8;
  --color-brand: #b91c1c;
  --color-brand-dark: #7f1d1d;
  --color-accent: #f59e0b;
  --shadow-soft: 0 18px 50px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-brand);
}

a:hover {
  color: var(--color-brand-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: var(--color-brand);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
}

.site-branding__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: var(--color-brand);
  border-radius: 50%;
  font-weight: 900;
}

.site-branding__text {
  display: grid;
  line-height: 1.1;
}

.site-branding__sub {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  padding: 0.6rem 0.8rem;
  color: var(--color-ink);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--color-brand);
  background: #fff1f1;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  color: #ffffff;
  background: var(--color-brand);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  color: #ffffff;
  background: var(--color-brand-dark);
}

.button--ghost {
  color: var(--color-ink);
  background: #ffffff;
  border: 1px solid var(--color-line);
}

.button--ghost:hover {
  color: var(--color-brand);
  background: #fff7f7;
}

.hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.34), transparent 28%),
    linear-gradient(120deg, rgba(17, 24, 39, 0.98), rgba(36, 44, 58, 0.9) 48%, rgba(127, 29, 29, 0.88));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
  min-height: 610px;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.35rem 0.65rem;
  color: #ffffff;
  background: rgba(185, 28, 28, 0.88);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.98;
}

.hero p {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero__panel {
  padding: 1.35rem;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero__panel strong {
  display: block;
  font-size: 1.15rem;
}

.hero__panel dl {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.hero__panel div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--color-line);
}

.hero__panel dt,
.hero__panel dd {
  margin: 0;
}

.hero__panel dt {
  color: var(--color-muted);
  font-weight: 700;
}

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section--soft {
  background: var(--color-soft);
}

.section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section__heading h2,
.page-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

.section__heading p {
  max-width: 560px;
  margin: 0;
  color: var(--color-muted);
}

.trust-grid,
.cars-grid,
.details-grid {
  display: grid;
  gap: 1rem;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  padding: 1.1rem;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.trust-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.trust-item p {
  margin: 0;
  color: var(--color-muted);
}

.cars-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.car-card {
  overflow: clip;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}

.car-card__image {
  aspect-ratio: 4 / 3;
  background: #e7ebf0;
}

.car-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-card__body {
  padding: 1rem;
}

.car-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.car-card__price {
  margin: 0.55rem 0;
  color: var(--color-brand);
  font-size: 1.35rem;
  font-weight: 900;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.meta-list li {
  padding: 0.35rem 0.45rem;
  background: var(--color-soft);
  border-radius: 6px;
}

.archive-header {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--color-soft);
}

.car-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.6fr);
  gap: 2rem;
  align-items: start;
}

.car-detail__media {
  overflow: clip;
  background: var(--color-soft);
  border-radius: var(--radius);
}

.car-detail__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.car-detail__panel,
.contact-card {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
}

.details-grid {
  margin: 1rem 0;
}

.details-grid div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--color-line);
}

.details-grid dt,
.details-grid dd {
  margin: 0;
}

.details-grid dt {
  color: var(--color-muted);
  font-weight: 700;
}

.content-area {
  padding-block: 3rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

label {
  color: var(--color-ink);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.8rem;
  color: var(--color-ink);
  background: #ffffff;
  border: 1px solid #b8c0cc;
  border-radius: var(--radius);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-message--success {
  color: #14532d;
  background: #dcfce7;
}

.form-message--error {
  color: #7f1d1d;
  background: #fee2e2;
}

.site-footer {
  padding-block: 2rem;
  color: #ffffff;
  background: #111827;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 860px) {
  .site-header__inner,
  .section__heading,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__inner,
  .car-detail,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
  }

  .trust-grid,
  .cars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .primary-nav ul,
  .hero__actions {
    width: 100%;
  }

  .primary-nav a,
  .button {
    width: 100%;
  }

  .trust-grid,
  .cars-grid,
  .meta-list {
    grid-template-columns: 1fr;
  }
}


/* Premium centered showroom direction */
body {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 42%, #ffffff 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.07);
}

.site-header__inner {
  min-height: 86px;
}

.site-branding__mark {
  background:
    linear-gradient(145deg, #ef4444, #7f1d1d 58%, #111827);
  box-shadow: 0 12px 26px rgba(185, 28, 28, 0.28);
}

.primary-nav a {
  position: relative;
  padding-inline: 0.95rem;
}

.primary-nav a::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.35rem;
  left: 0.8rem;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--color-brand), var(--color-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 86px);
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 8%, rgba(245, 158, 11, 0.28), transparent 24rem),
    radial-gradient(circle at 13% 74%, rgba(185, 28, 28, 0.42), transparent 21rem),
    linear-gradient(135deg, #080b12 0%, #161b26 44%, #501719 100%);
}

.hero::before {
  position: absolute;
  inset: 10% -12% auto;
  z-index: -1;
  height: 48%;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.11) 10% 10.2%, transparent 10.2% 26%, rgba(255, 255, 255, 0.08) 26% 26.2%, transparent 26.2%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 62%);
  transform: skewY(-7deg);
}

.hero::after {
  position: absolute;
  right: 8%;
  bottom: 7%;
  z-index: -1;
  width: min(42vw, 560px);
  aspect-ratio: 2.8 / 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid rgba(245, 158, 11, 0.55);
  border-radius: 60% 42% 18% 20% / 70% 65% 30% 30%;
  box-shadow:
    inset 0 -24px 0 rgba(255, 255, 255, 0.07),
    0 48px 90px rgba(0, 0, 0, 0.36);
  opacity: 0.9;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 86px);
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
}

.hero__inner > div:first-child {
  display: grid;
  justify-items: center;
}

.eyebrow {
  padding: 0.48rem 0.78rem;
  color: #fff8e7;
  background: rgba(185, 28, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 980px;
  text-wrap: balance;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 760px;
  text-wrap: pretty;
}

.hero__actions {
  justify-content: center;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  min-height: 50px;
  padding-inline: 1.25rem;
  background: linear-gradient(135deg, #dc2626, #8b1d1d);
  box-shadow: 0 14px 32px rgba(185, 28, 28, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(185, 28, 28, 0.32);
}

.button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.button--ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.hero__panel {
  width: min(100%, 920px);
  padding: 1.1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.hero__panel strong {
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.hero__panel dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.hero__panel div {
  display: grid;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.hero__panel div:first-child {
  border-left: 0;
}

.hero__panel dt {
  color: rgba(255, 255, 255, 0.68);
}

.hero__panel dd,
.hero__panel a {
  color: #ffffff;
  font-weight: 800;
}

.section {
  position: relative;
}

.section__heading {
  justify-content: center;
  text-align: center;
}

.section__heading h2,
.page-title {
  text-wrap: balance;
}

.section__heading p {
  margin-inline: auto;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item,
.car-card,
.contact-card,
.car-detail__panel {
  border-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.09);
}

.trust-item {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
}

.trust-item::before {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 1rem;
  content: "";
  background: linear-gradient(90deg, var(--color-brand), var(--color-accent));
  border-radius: 999px;
}

.cars-grid {
  align-items: stretch;
}

.car-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.14);
}

.car-card__image {
  position: relative;
}

.car-card__image::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.32));
}

.car-card h3 a {
  color: var(--color-ink);
  text-decoration: none;
}

.car-card__price {
  color: #991b1b;
}

.meta-list li {
  background: #f1f5f9;
}

.archive-header {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.24), transparent 22rem),
    linear-gradient(135deg, #f8fafc, #fff1f2);
}

.contact-layout {
  align-items: stretch;
}

.contact-card {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(185, 28, 28, 0.38), rgba(245, 158, 11, 0.32)) border-box;
  border: 1px solid transparent;
}

@media (max-width: 860px) {
  .hero__panel dl,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__panel div:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
  }

  .hero::after {
    width: 82vw;
    right: 9vw;
    bottom: 2rem;
    opacity: 0.36;
  }

  .hero__inner {
    min-height: auto;
    padding-block: 4rem;
  }

  .hero__panel dl,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero__panel div {
    border-left: 0;
  }
}

/* Vehicle details modal */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.modal-open {
  overflow: hidden;
}

.car-card__trigger,
.car-card__title-button {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

.car-card__trigger:hover,
.car-card__title-button:hover {
  color: inherit;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.car-card__title-button {
  color: var(--color-ink);
  font-weight: 900;
}

.car-card__title-button:hover {
  color: var(--color-brand);
}

.car-modal[hidden] {
  display: none;
}

.car-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.car-modal__backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  background: rgba(8, 11, 18, 0.74);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.car-modal__backdrop:hover {
  background: rgba(8, 11, 18, 0.78);
  box-shadow: none;
  transform: none;
}

.car-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
  width: min(100%, 980px);
  max-height: min(86vh, 780px);
  overflow: auto;
  color: var(--color-ink);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
}

.car-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 42px;
  min-height: 42px;
  padding: 0;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}

.car-modal__media {
  min-height: 100%;
  background:
    radial-gradient(circle at 24% 18%, rgba(245, 158, 11, 0.3), transparent 30%),
    linear-gradient(135deg, #111827, #334155 54%, #7f1d1d);
}

.car-modal__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.car-modal__content {
  padding: clamp(1.35rem, 4vw, 2.4rem);
}

.car-modal__content .eyebrow {
  color: #7f1d1d;
  background: #fff1f2;
  border-color: #fecdd3;
  box-shadow: none;
}

.car-modal__content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.car-modal__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.car-modal__details div {
  padding: 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.car-modal__details dt,
.car-modal__details dd {
  margin: 0;
}

.car-modal__details dt {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.car-modal__details dd {
  margin-top: 0.15rem;
  font-weight: 900;
}

.car-modal__description {
  color: var(--color-muted);
}

.car-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 760px) {
  .car-modal__dialog {
    grid-template-columns: 1fr;
  }

  .car-modal__media img {
    min-height: 260px;
  }

  .car-modal__details {
    grid-template-columns: 1fr;
  }
}

.car-card:has(.car-modal:not([hidden])) {
  overflow: visible;
  transform: none;
}

/* Inventory sorting page */
.inventory-hero p {
  max-width: 760px;
  margin-inline: auto;
}

.inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(185, 28, 28, 0.34), rgba(245, 158, 11, 0.28)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.inventory-toolbar > div {
  display: grid;
  gap: 0.1rem;
}

.inventory-toolbar strong {
  font-size: 1.08rem;
}

.inventory-toolbar span {
  color: var(--color-muted);
}

.inventory-toolbar form {
  display: flex;
  align-items: end;
  gap: 0.6rem;
}

.inventory-toolbar label {
  min-width: max-content;
}

.inventory-toolbar select {
  min-width: 230px;
}

@media (max-width: 700px) {
  .inventory-toolbar,
  .inventory-toolbar form {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-toolbar select,
  .inventory-toolbar button {
    width: 100%;
  }
}

/* Stable vehicle image frames */
.car-card__image,
.car-card__trigger {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
}

.car-card__image img,
.car-card__trigger img,
.car-card__image .preview-car-art,
.car-card__trigger .preview-car-art {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.car-modal__media {
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
}

.car-modal__media img,
.car-modal__media .preview-car-art {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.car-detail__media {
  aspect-ratio: 16 / 10;
}

.car-detail__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

