/* Car SA storefront — mobile-first public catalogue only. */
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/tajawal/tajawal-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/tajawal/tajawal-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/tajawal/tajawal-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-800.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/tajawal/tajawal-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-900.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/tajawal/tajawal-latin-900.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --brand-primary: #121212;
  --brand-accent: #c99a49;
  --sf-ink: #101513;
  --sf-muted: #68706c;
  --sf-line: #e4e7e5;
  --sf-soft: #f4f6f4;
  --sf-paper: #fff;
  --sf-success: #15805d;
  --sf-whatsapp: #137c52;
  --sf-radius-sm: 0.8rem;
  --sf-radius: 1.15rem;
  --sf-radius-lg: 1.65rem;
  --sf-shadow: 0 1.3rem 3.5rem rgb(19 31 25 / 8%);
  --sf-width: 84rem;
  --sf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sf-font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  min-width: 20rem;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: #f7f8f7;
  color: var(--sf-ink);
  font-family: var(--sf-font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.storefront-body.has-floating-actions {
  padding-bottom: calc(5.15rem + env(safe-area-inset-bottom));
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

button,
input,
select { color: inherit; font: inherit; }

button,
select,
summary,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

h1,
h2,
h3,
p { margin: 0; }

button,
select,
summary { cursor: pointer; }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline: 3px solid color-mix(in srgb, var(--brand-accent) 65%, #fff);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.storefront-skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 50%;
  z-index: 999;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  background: #000;
  color: #fff;
  font-weight: 700;
  transform: translate(50%, -180%);
}

.storefront-skip-link:focus { transform: translate(50%, 0); }

.storefront-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  padding-block-start: env(safe-area-inset-top);
  border-block-end: 1px solid rgb(18 23 20 / 8%);
  background: rgb(255 255 255 / 91%);
  box-shadow: 0 0.45rem 1.8rem rgb(18 23 20 / 4%);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.storefront-header-inner {
  width: min(100%, var(--sf-width));
  min-height: 4.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-left));
}

.storefront-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.storefront-brand img {
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.storefront-brand.has-image img {
  width: clamp(8.4rem, 38vw, 11.5rem);
  height: 3.05rem;
  object-position: right center;
}

.storefront-nav { display: none; }

.storefront-header-contact {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  flex: 0 0 auto;
  padding: 0.58rem 0.76rem;
  border-radius: 999px;
  background: var(--sf-ink);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.storefront-header-contact svg { width: 1rem; height: 1rem; fill: currentColor; }

.storefront-main {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  padding-block: 0.75rem 2rem;
}

.storefront-main > * { min-width: 0; max-width: 100%; }

.storefront-hero,
.catalog-shell,
.featured-plates,
.success-partners {
  width: min(calc(100% - 1rem), var(--sf-width));
  margin-inline: auto;
}

.storefront-hero {
  position: relative;
  min-height: 21rem;
  display: grid;
  align-items: flex-start;
  overflow: hidden;
  padding: 1.25rem 1.2rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1.35rem;
  background-color: #101311;
  background:
    radial-gradient(circle at 7% 16%, color-mix(in srgb, var(--brand-accent) 45%, transparent) 0, transparent 23rem),
    radial-gradient(circle at 84% 102%, rgb(255 255 255 / 11%) 0, transparent 20rem),
    linear-gradient(145deg, #090b0a 0%, color-mix(in srgb, var(--brand-primary) 70%, #171c19) 57%, #202622 100%);
  box-shadow: 0 1.35rem 3.4rem rgb(8 14 11 / 14%);
  color: #fff;
  isolation: isolate;
}

.storefront-hero::before,
.storefront-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.storefront-hero::before {
  width: 17rem;
  height: 17rem;
  inset: -6rem auto auto -7rem;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  box-shadow: 0 0 0 3.6rem rgb(255 255 255 / 2.5%), 0 0 0 7rem rgb(255 255 255 / 2%);
}

.storefront-hero::after {
  width: 100%;
  height: 1px;
  inset-inline: 0;
  inset-block-end: 5.65rem;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 14%), transparent);
}

.storefront-hero-copy { position: relative; z-index: 2; max-width: 43rem; }

.storefront-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: color-mix(in srgb, var(--brand-primary) 76%, #174a3b);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.storefront-eyebrow i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 0.24rem rgb(255 255 255 / 8%);
}

.storefront-hero .storefront-eyebrow,
.storefront-eyebrow.is-light { color: rgb(255 255 255 / 72%); }

.storefront-hero h1 {
  display: grid;
  row-gap: 0.16em;
  margin-block-start: 0.55rem;
  color: #fff;
  font-size: clamp(2.2rem, 10.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.storefront-hero h1 > span,
.storefront-hero h1 > em { display: block; }

.storefront-hero h1 em {
  color: color-mix(in srgb, var(--brand-accent) 82%, #fff);
  font-style: normal;
}

.storefront-hero-copy > p {
  max-width: 36rem;
  margin-block-start: 0.7rem;
  color: rgb(255 255 255 / 69%);
  font-size: 0.82rem;
  line-height: 1.75;
}

.storefront-trust-row {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-block-start: 1rem;
  padding-block-start: 0.85rem;
  border-block-start: 1px solid rgb(255 255 255 / 13%);
}

.storefront-trust-row > span { min-width: 0; display: grid; gap: 0.05rem; }

.storefront-trust-row b {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(0.88rem, 3.8vw, 1.15rem);
  line-height: 1.4;
}

.storefront-trust-row small {
  overflow-wrap: anywhere;
  color: rgb(255 255 255 / 51%);
  font-size: 0.61rem;
  line-height: 1.45;
}

.storefront-hero-mark {
  position: absolute;
  inset-block-start: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: -1;
  display: grid;
  justify-items: end;
  opacity: 0.17;
}

.storefront-hero-mark b {
  color: #fff;
  font-family: "Tajawal", sans-serif;
  font-size: clamp(4.2rem, 22vw, 7rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.13em;
}

.storefront-hero-mark small { margin-block-start: 0.65rem; font: 700 0.52rem/1 "Tajawal", sans-serif; letter-spacing: 0.18em; }

.hero-mark-line { width: 4rem; height: 0.25rem; margin-block-end: 1.2rem; background: var(--brand-accent); }

.catalog-shell {
  padding: 1.25rem 0.55rem 1.75rem;
  scroll-margin-top: 5rem;
}

.catalog-intro {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: space-between;
  gap: 0.65rem;
  padding-inline: 0.2rem;
}

.catalog-intro > div { min-width: 0; width: 100%; }

#catalog-title { white-space: nowrap; }

.catalog-intro h2,
.featured-plates h2,
.success-partners h2 {
  margin-block-start: 0.18rem;
  color: var(--sf-ink);
  font-size: clamp(1.62rem, 7vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.catalog-intro p,
.partners-heading p {
  margin-block-start: 0.28rem;
  color: var(--sf-muted);
  font-size: 0.78rem;
}

.catalog-count {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-inline: 0.75rem;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  background: var(--sf-paper);
  color: var(--sf-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.catalog-count i {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sf-success);
  box-shadow: 0 0 0 0.22rem rgb(21 128 93 / 10%);
}

.catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-block-start: 1rem;
  padding: 0.38rem;
  border: 1px solid #dfe4e1;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.8rem 2.2rem rgb(23 35 29 / 5%);
}

.catalog-search-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-inline: 0.72rem;
}

.catalog-search-field svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: #7b847f; }

.catalog-search-field input {
  min-width: 0;
  width: 100%;
  height: 3rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}

.catalog-search-field input::placeholder { color: #929a96; }

.catalog-search > button,
.catalog-filter-actions > button {
  min-width: 4.8rem;
  min-height: 3rem;
  padding-inline: 1rem;
  border: 0;
  border-radius: 0.72rem;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}

.manufacturer-chips {
  display: flex;
  gap: 0.48rem;
  margin-block: 0.78rem;
  padding: 0.12rem 0.05rem 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.manufacturer-chips::-webkit-scrollbar { display: none; }

.manufacturer-chips a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-inline: 0.92rem;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  background: #fff;
  color: #59625d;
  font-size: 0.76rem;
  font-weight: 600;
  scroll-snap-align: start;
}

.manufacturer-chips a.is-active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.catalog-filters {
  margin-block: 0.4rem 1rem;
  border: 1px solid var(--sf-line);
  border-radius: 1rem;
  background: #fff;
}

.catalog-filters summary {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 0.85rem;
  list-style: none;
  color: #303a35;
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-filters summary::-webkit-details-marker { display: none; }

.catalog-filters summary > span { display: inline-flex; align-items: center; gap: 0.45rem; }
.catalog-filters summary svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.catalog-filters summary b { min-width: 1.65rem; min-height: 1.65rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand-primary); color: #fff; font-size: 0.68rem; }
.catalog-filters[open] summary { border-block-end: 1px solid var(--sf-line); }

.catalog-filter-grid {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
}

.catalog-filter-field { min-width: 0; display: grid; gap: 0.28rem; }

.catalog-filter-field label {
  color: #58625d;
  font-size: 0.68rem;
  font-weight: 700;
}

.catalog-filter-field input,
.catalog-filter-field select {
  min-width: 0;
  width: 100%;
  height: 3.05rem;
  padding-inline: 0.72rem;
  border: 1px solid #dce2df;
  border-radius: 0.72rem;
  outline: 0;
  background: #fafbfa;
  font-size: 1rem;
}

.catalog-filter-field input:focus,
.catalog-filter-field select:focus { border-color: color-mix(in srgb, var(--brand-primary) 55%, #dce2df); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 13%, transparent); }

.catalog-filter-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; }
.catalog-filter-actions > button { width: 100%; }
.catalog-filter-actions > a { padding-inline: 0.35rem; color: #6b746f; font-size: 0.72rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.25rem; }

.vehicle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.vehicle-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e5e2;
  border-radius: 1.12rem;
  background: #fff;
  box-shadow: 0 0.55rem 1.8rem rgb(25 37 31 / 4.5%);
  contain: layout paint;
}

.vehicle-card-link { min-width: 0; display: block; }

.vehicle-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ecefed;
}

.vehicle-card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgb(0 0 0 / 34%));
  content: "";
  pointer-events: none;
}

.vehicle-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--sf-ease);
}

.vehicle-availability {
  position: absolute;
  z-index: 2;
}

.vehicle-availability {
  inset-block-start: 0.7rem;
  inset-inline-start: 0.7rem;
  min-height: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 0.58rem;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 999px;
  background: rgb(10 28 21 / 77%);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.vehicle-availability i { width: 0.38rem; height: 0.38rem; border-radius: 50%; background: #64dda6; }

.vehicle-card-content { min-width: 0; padding: 0.95rem 0.95rem 0.9rem; }

.vehicle-card-maker {
  display: block;
  overflow: hidden;
  color: #24513e;
  color: color-mix(in srgb, var(--brand-primary) 72%, #24513e);
  font-size: 0.66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-card h3 {
  display: -webkit-box;
  min-height: 3.15rem;
  margin-block-start: 0.18rem;
  overflow: hidden;
  color: var(--sf-ink);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.018em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vehicle-card-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.72rem 0 0;
  padding: 0.68rem 0;
  border-block: 1px solid #eef0ef;
}

.vehicle-card-facts > div { min-width: 0; padding-inline: 0.48rem; border-inline-start: 1px solid #eef0ef; }
.vehicle-card-facts > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.vehicle-card-facts > div:last-child { padding-inline-end: 0; }
.vehicle-card-facts dt { color: #89908c; font-size: 0.64rem; line-height: 1.45; }
.vehicle-card-facts dd { margin: 0.12rem 0 0; overflow: hidden; color: #3c4541; font-size: 0.78rem; font-weight: 700; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }

.vehicle-card-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-block-start: 0.66rem;
}

.vehicle-card-highlights > span {
  min-height: 1.72rem;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.52rem;
  border: 1px solid #e2e8e4;
  border-radius: 999px;
  background: #f6f8f6;
  color: #52605a;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.35;
}

.vehicle-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  margin-block-start: 0.82rem;
  padding-block-start: 0.78rem;
  border-block-start: 1px solid #edf0ee;
}

.vehicle-card-footer.without-price { grid-template-columns: minmax(0, 1fr); }

.vehicle-card-price { min-width: 0; display: grid; gap: 0.03rem; }
.vehicle-card-price small { color: #848c88; font-size: 0.62rem; font-weight: 600; }
.vehicle-card-price strong { overflow-wrap: anywhere; color: #0b6f50; font-size: 1.08rem; line-height: 1.35; }

.vehicle-card-cta {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding-inline: 0.78rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(151 102 34 / 18%);
  background: #c99a49;
  background: linear-gradient(135deg, #dfc07d, #bd873b);
  box-shadow: 0 0.45rem 1.2rem rgb(139 92 25 / 18%);
  color: #101513;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.without-price .vehicle-card-cta {
  width: 100%;
  min-height: 2.75rem;
  justify-content: center;
  padding-inline: 0.9rem;
}

.vehicle-card-cta svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.catalog-empty {
  display: grid;
  justify-items: center;
  padding: 3rem 1rem;
  border: 1px dashed #ccd4d0;
  border-radius: 1.2rem;
  background: #fff;
  text-align: center;
}

.catalog-empty > span { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: 50%; background: #f0f3f1; color: #75807a; font-size: 1.7rem; }
.catalog-empty h3 { margin-block-start: 0.8rem; font-size: 1.1rem; }
.catalog-empty p { max-width: 25rem; margin-block-start: 0.3rem; color: var(--sf-muted); font-size: 0.8rem; }
.catalog-empty a { margin-block-start: 1rem; color: var(--brand-primary); font-size: 0.78rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.25rem; }

.catalog-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  margin-block-start: 1.35rem;
}

.catalog-pagination > div { display: flex; justify-content: center; gap: 0.35rem; }
.catalog-pagination a { min-width: 2.35rem; min-height: 2.35rem; display: inline-grid; place-items: center; border: 1px solid var(--sf-line); border-radius: 0.65rem; background: #fff; color: #5b6560; font-size: 0.72rem; font-weight: 700; }
.catalog-pagination a.is-current { border-color: var(--brand-primary); background: var(--brand-primary); color: #fff; }
.catalog-pagination .pagination-direction { padding-inline: 0.75rem; justify-self: start; }
.catalog-pagination .pagination-direction:last-child { justify-self: end; }

.featured-plates {
  position: relative;
  display: grid;
  gap: 1.6rem;
  overflow: hidden;
  padding: clamp(1.3rem, 6vw, 3.5rem);
  border-radius: 1.45rem;
  background-color: #101311;
  background:
    radial-gradient(circle at 10% 0, color-mix(in srgb, var(--brand-accent) 35%, transparent), transparent 19rem),
    #101311;
  color: #fff;
  scroll-margin-top: 5rem;
}

.featured-plates::after {
  position: absolute;
  width: 12rem;
  height: 12rem;
  inset: auto -6rem -6rem auto;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgb(255 255 255 / 2%), 0 0 0 6rem rgb(255 255 255 / 1.5%);
  content: "";
}

.featured-plates-copy { position: relative; z-index: 1; }
.featured-plates h2 { color: #fff; }
.featured-plates-copy p { max-width: 34rem; margin-block-start: 0.65rem; color: rgb(255 255 255 / 63%); font-size: 0.82rem; line-height: 1.85; }
.featured-plates-copy > a { min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.45rem; margin-block-start: 1rem; padding-inline: 0.95rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: 999px; background: #fff; color: #111; font-size: 0.74rem; font-weight: 700; }
.featured-plates-copy > a svg { width: 1rem; height: 1rem; fill: #147a53; }

.plate-preview {
  position: relative;
  z-index: 1;
  width: min(100%, 25rem);
  justify-self: center;
  padding: 0.7rem;
  border: 0.38rem solid #e5e6e5;
  border-radius: 0.75rem;
  background: #fbfbf9;
  box-shadow: 0 1.2rem 3.5rem rgb(0 0 0 / 32%);
  color: #111;
  transform: rotate(-1.25deg);
}

.plate-preview::before {
  position: absolute;
  inset: 0.24rem;
  border: 1px solid #2c302e;
  border-radius: 0.35rem;
  content: "";
  pointer-events: none;
}

.plate-preview-top { position: relative; display: flex; justify-content: space-between; padding: 0.25rem 0.4rem 0.4rem; border-block-end: 2px solid #242624; font-size: 0.58rem; }
.plate-preview-top b { font: 700 0.48rem/1 "Tajawal", sans-serif; letter-spacing: 0.05em; }
.plate-preview-numbers { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.55rem; padding: 0.65rem 0.4rem 0.45rem; }
.plate-preview-numbers span,
.plate-preview-numbers strong { text-align: center; font-size: clamp(1.55rem, 9vw, 2.6rem); font-weight: 700; letter-spacing: 0.15em; line-height: 1.2; }
.plate-preview-numbers i { width: 1px; height: 2.4rem; background: #777; }
.plate-preview > small { position: relative; display: block; padding-block: 0.3rem 0.05rem; border-block-start: 1px solid #aaa; color: #666; font-size: 0.52rem; text-align: center; }

.success-partners {
  padding: 2rem 0.55rem 1rem;
  scroll-margin-top: 5rem;
}

.partners-heading { text-align: center; }

.partner-strip {
  display: grid;
  grid-auto-columns: 8.75rem;
  grid-auto-flow: column;
  gap: 0.65rem;
  margin-block-start: 1.15rem;
  padding-block-end: 0.55rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.partner-strip::-webkit-scrollbar { display: none; }

.partner-mark {
  min-width: 0;
  height: 6.35rem;
  display: grid;
  grid-template-rows: 3.25rem auto;
  place-items: center;
  align-content: center;
  gap: 0.42rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid #e1e6e3;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff, #f7f9f7);
  box-shadow: 0 0.55rem 1.5rem rgb(20 31 26 / 5%);
  scroll-snap-align: start;
}

.partner-logo-frame { width: 100%; height: 3.25rem; display: grid; place-items: center; }
.partner-logo-frame img { width: min(7rem, 100%); height: 3.15rem; object-fit: contain; opacity: 0.96; }
.partner-mark > strong { color: #303934; font-size: 0.7rem; font-weight: 700; line-height: 1.35; text-align: center; }

.storefront-footer {
  position: relative;
  overflow: hidden;
  margin-block-start: 1rem;
  padding: 2.35rem 1rem calc(1.8rem + env(safe-area-inset-bottom));
  border-block-start: 1px solid rgb(255 255 255 / 8%);
  background:
    radial-gradient(circle at 50% -6rem, color-mix(in srgb, var(--brand-accent) 22%, transparent), transparent 18rem),
    #101411;
  color: #fff;
}

.storefront-footer-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  margin-inline: auto;
  text-align: center;
}

.storefront-footer-brand { display: grid; justify-items: center; }
.storefront-footer-brand img { width: min(11rem, 52vw); height: auto; max-height: 4.2rem; padding: 0.55rem 0.8rem; border-radius: 0.9rem; background: #fff; object-fit: contain; object-position: center; }
.storefront-footer-brand strong { color: #fff; font-size: 1.05rem; }
.storefront-footer-brand p { max-width: 32ch; margin: 0.55rem auto 0; color: rgb(255 255 255 / 60%); font-size: 0.74rem; }

.storefront-footer-contact {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  padding: 1.1rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1.15rem;
  background: rgb(255 255 255 / 5%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.storefront-footer-contact > span { color: color-mix(in srgb, var(--brand-accent) 72%, #fff); font-size: 0.65rem; font-weight: 700; }
.storefront-footer-contact > h2 { color: #fff; font-size: 1.25rem; line-height: 1.35; }
.storefront-footer-contact > p { max-width: 36ch; color: rgb(255 255 255 / 58%); font-size: 0.72rem; line-height: 1.7; }

.storefront-footer-contact-links {
  width: 100%;
  display: grid;
  gap: 0.5rem;
  margin-block-start: 0.65rem;
}

.storefront-footer-contact-links > a {
  min-width: 0;
  min-height: 3.65rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.72rem;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 7%);
  text-align: start;
}

.storefront-footer-contact-links svg,
.storefront-footer-contact-links i {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0.47rem;
  border-radius: 0.68rem;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  fill: currentColor;
  font-size: 0.8rem;
  font-style: normal;
}

.storefront-footer-contact-links > a > span { min-width: 0; display: grid; }
.storefront-footer-contact-links small { color: rgb(255 255 255 / 48%); font-size: 0.62rem; }
.storefront-footer-contact-links strong { overflow-wrap: anywhere; color: #fff; font-size: 0.77rem; line-height: 1.4; }
.storefront-footer-contact-links .is-whatsapp svg { background: #147a53; }

.storefront-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.storefront-social a { min-height: 2.55rem; display: inline-flex; align-items: center; gap: 0.4rem; padding-inline: 0.78rem; border: 1px solid rgb(255 255 255 / 11%); border-radius: 999px; background: rgb(255 255 255 / 5%); color: rgb(255 255 255 / 72%); font-size: 0.67rem; font-weight: 700; }
.storefront-social svg { width: 1rem; height: 1rem; fill: currentColor; }
.storefront-footer-bottom { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.55rem; padding-block-start: 0.9rem; border-block-start: 1px solid rgb(255 255 255 / 8%); color: rgb(255 255 255 / 40%); font-size: 0.66rem; }

.storefront-floating-actions {
  position: fixed;
  right: auto;
  left: 50%;
  inset-block-end: max(0.7rem, env(safe-area-inset-bottom));
  z-index: 90;
  width: min(17rem, calc(100% - 1.5rem));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.38rem;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 1rem 3rem rgb(15 25 20 / 18%);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.storefront-floating-actions a {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.72rem;
  background: var(--sf-ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.storefront-floating-actions a.is-whatsapp { background: var(--sf-whatsapp); }
.storefront-floating-actions svg { width: 1.12rem; height: 1.12rem; fill: currentColor; }
.storefront-floating-actions.is-single { grid-template-columns: minmax(0, 1fr); }

@media (hover: hover) {
  .vehicle-card { transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--sf-ease); }
  .vehicle-card:hover { border-color: color-mix(in srgb, var(--brand-primary) 25%, #e1e5e2); box-shadow: var(--sf-shadow); transform: translateY(-4px); }
  .vehicle-card:hover .vehicle-card-media img { transform: scale(1.035); }
  .manufacturer-chips a:hover { border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--sf-line)); }
}

@media (min-width: 35rem) {
  .storefront-main { gap: 1.6rem; padding-block-start: 1rem; }
  .storefront-hero,
  .catalog-shell,
  .featured-plates,
  .success-partners { width: min(calc(100% - 2rem), var(--sf-width)); }
  .storefront-hero { min-height: 25rem; padding: 2rem 2.25rem; }
  .storefront-hero h1 { font-size: clamp(3rem, 9vw, 4.45rem); }
  .catalog-shell { padding-inline: 0; }
  .catalog-intro { flex-direction: row; align-items: end; gap: 1rem; }
  .catalog-intro > div { width: auto; }
  .catalog-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filter-actions { grid-column: 1 / -1; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .partner-strip { grid-auto-columns: minmax(8.75rem, 28%); }
  .storefront-footer-contact-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .storefront-floating-actions { width: min(17rem, calc(100% - 1.5rem)); }
}

@media (min-width: 52rem) {
  .storefront-body.has-floating-actions { padding-bottom: 0; }
  .storefront-header-inner { min-height: 4.75rem; padding-inline: 1.5rem; }
  .storefront-nav { display: flex; align-items: center; gap: 1.6rem; margin-inline-start: auto; }
  .storefront-nav a { color: #56605b; font-size: 0.76rem; font-weight: 600; }
  .storefront-header-contact { padding-inline: 1rem; }
  .storefront-hero { min-height: 29rem; grid-template-columns: minmax(0, 1fr) 17rem; align-items: center; padding-inline: 4rem; }
  .storefront-hero::after { inset-block-end: 7.25rem; }
  .storefront-hero-mark { position: relative; inset: auto; z-index: 0; justify-self: end; opacity: 0.29; }
  .storefront-hero-mark b { font-size: clamp(8rem, 16vw, 12rem); }
  .storefront-trust-row { margin-block-start: 2.2rem; }
  .catalog-shell { padding-block: 2rem 2.6rem; }
  .catalog-intro { align-items: center; }
  .catalog-search { max-width: 48rem; margin-block-start: 1.35rem; }
  .catalog-filters summary { min-height: 3.5rem; }
  .catalog-filter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
  .catalog-filter-actions { grid-column: auto; display: grid; grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .featured-plates { grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.8fr); align-items: center; padding: 3.5rem 4rem; }
  .plate-preview { justify-self: end; }
  .partner-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row; overflow: visible; }
  .storefront-floating-actions { width: auto; right: auto; left: 1.2rem; transform: none; grid-template-columns: 3.15rem 3.15rem; padding: 0.32rem; border-radius: 999px; }
  .storefront-floating-actions a { width: 3.15rem; padding: 0; border-radius: 50%; }
  .storefront-floating-actions a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .storefront-floating-actions svg { width: 1.25rem; height: 1.25rem; }
}

@media (min-width: 75rem) {
  .vehicle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 22rem) {
  .storefront-header-inner { padding-inline: 0.7rem; }
  .storefront-brand.has-image img { width: 7.5rem; }
  .storefront-header-contact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .storefront-header-contact { width: 2.65rem; padding: 0; }
  .storefront-hero { min-height: 20.25rem; padding-inline: 1rem; }
  .storefront-trust-row { gap: 0.25rem; }
  .catalog-intro { align-items: flex-start; flex-direction: column; gap: 0.55rem; }
  .catalog-count { padding-inline: 0.55rem; }
  .catalog-search > button { min-width: 4.2rem; padding-inline: 0.7rem; }
  .vehicle-card-facts dd { font-size: 0.67rem; }
  .plate-preview-numbers span,
  .plate-preview-numbers strong { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .storefront-header,
  .storefront-floating-actions,
  .catalog-search,
  .manufacturer-chips,
  .catalog-filters,
  .catalog-pagination { display: none !important; }
  body { padding: 0; background: #fff; }
  .storefront-hero { min-height: auto; color: #000; background: #fff; box-shadow: none; }
  .storefront-hero h1,
  .storefront-hero h1 em { color: #000; }
  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Compact iPhone/Android landscape mode: keep the opening message within one
   viewport instead of inheriting the tall desktop hero at 800px+ widths. */
@media (orientation: landscape) and (max-height: 32rem) and (min-width: 48rem) and (max-width: 64rem) {
  .storefront-main { gap: 1.2rem; padding-block-start: 0.5rem; }
  .storefront-hero {
    min-height: 18.5rem;
    grid-template-columns: minmax(0, 1fr) 9rem;
    padding: 1.35rem 2.25rem;
  }
  .storefront-hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1.05; }
  .storefront-hero-copy > p { max-width: 35rem; margin-block-start: 0.7rem; font-size: 0.85rem; }
  .storefront-trust-row { margin-block-start: 1rem; padding-block-start: 0.8rem; }
  .storefront-hero-mark b { font-size: 7rem; }
}
