:root {
  --sp-albastru: #0f2744;
  --sp-albastru-light: #1a3a5c;
  --sp-portocaliu: #e87722;
  --sp-portocaliu-dark: #c96312;
  --sp-bg: #f8fafc;
  --sp-card: #ffffff;
  --sp-text: #0f172a;
  --sp-muted: #64748b;
  --sp-border: #e2e8f0;
  --sp-radius: 12px;
  --sp-shadow: 0 2px 12px rgba(15, 39, 68, 0.08);
  --sp-max: 1180px;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--sp-bg);
  color: var(--sp-text);
  line-height: 1.5;
}

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

a {
  color: var(--sp-albastru-light);
  text-decoration: none;
}

a:hover {
  color: var(--sp-portocaliu);
}

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

/* Header */
.site-header {
  background: #0a1628;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.site-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  max-width: min(100%, 280px);
}

.site-logo__icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(232, 119, 34, 0.35);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  line-height: 1.05;
}

.site-logo__name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo__stoc {
  color: #ffffff;
}

.site-logo__piese {
  color: var(--sp-portocaliu);
}

.site-logo__tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .site-logo {
    gap: 0.35rem;
    max-width: 210px;
  }

  .site-logo__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .site-logo__name {
    font-size: 1.02rem;
  }

  .site-logo__text {
    gap: 0.32rem;
  }

  .site-logo__tag {
    font-size: 0.58rem;
  }
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-left: 0.25rem;
}

.site-nav a {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--sp-portocaliu);
}

.header-search {
  display: flex;
  flex: 1 1 220px;
  max-width: 360px;
  margin-left: auto;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: var(--sp-text);
}

.header-search input[type="search"]:focus {
  outline: none;
}

.header-search .btn {
  border-radius: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  position: relative;
  background: #0a1628;
  color: #fff;
  overflow: hidden;
  min-height: 420px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center right;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero__overlay {
  position: relative;
  padding: 3.25rem 0 2.75rem;
  background: linear-gradient(
    100deg,
    rgba(10, 22, 40, 0.94) 0%,
    rgba(10, 22, 40, 0.78) 42%,
    rgba(10, 22, 40, 0.35) 100%
  );
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero__content {
  width: 100%;
  padding-left: clamp(0.75rem, 6vw, 4.5rem);
  padding-right: 1rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 14em;
}

.hero__title-white {
  display: block;
  color: #fff;
}

.hero__title-accent {
  display: block;
  color: var(--sp-portocaliu);
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: #e2e8f0;
  max-width: 42ch;
  font-size: 1.08rem;
}

.search-form--hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem;
  gap: 0.5rem;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem;
  border-radius: 14px;
  max-width: 980px;
}

.search-hero-main {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.search-hero-top {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  min-width: 0;
}

.search-hero-top input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
}

.search-hero-top input[type="search"]:focus {
  outline: none;
  border-color: var(--sp-portocaliu);
}

.search-hero-top .search-parc {
  flex: 0 1 12rem;
  max-width: 14rem;
  width: auto;
}

.search-vehicule {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.search-vehicule label {
  display: block;
  min-width: 0;
}

.search-vehicule select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 0.92rem;
}

.search-vehicule select:focus {
  outline: none;
  border-color: var(--sp-portocaliu);
}

.search-vehicule select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-hero-search {
  align-self: stretch;
  min-height: 100%;
  height: 100%;
  min-width: 7.25rem;
  padding: 0.75rem 1rem;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}

.prose-page {
  max-width: 720px;
}

.prose-page h1 {
  color: var(--sp-albastru);
  margin-top: 0;
}

.prose-page h2 {
  color: var(--sp-albastru);
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

@media (max-width: 900px) {
  .header-search {
    order: 5;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }
}


.search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 760px;
  align-items: stretch;
}

.search-form input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--sp-portocaliu);
}

.search-parc {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  position: relative;
}

@media (min-width: 640px) {
  .search-parc {
    flex: 0 1 220px;
    min-width: 160px;
  }
}

.search-parc__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a3a5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  color: var(--sp-albastru);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 39, 68, 0.06);
}

.search-parc__select:hover,
.search-parc__select:focus {
  outline: none;
  border-color: var(--sp-portocaliu);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--sp-portocaliu);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sp-portocaliu-dark);
  color: #fff;
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: #94a3b8;
}

.stats-bar strong {
  color: #fff;
}

/* Sections */
.section {
  padding: 2rem 0;
}

.section__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--sp-albastru);
}

.section__hint {
  margin: 0 0 1.25rem;
  color: var(--sp-muted);
  font-size: 0.95rem;
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.cat-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--sp-shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.cat-card:hover {
  border-color: var(--sp-portocaliu);
  transform: translateY(-2px);
}

.cat-card__name {
  font-weight: 600;
  color: var(--sp-albastru);
  font-size: 0.92rem;
  line-height: 1.3;
}

.cat-card__count {
  color: var(--sp-portocaliu);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Product grid */
.piese-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.piesa-card__img-wrap {
  aspect-ratio: 4 / 3;
  background: #eef2f7;
  overflow: hidden;
}

.piesa-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.piesa-card__img-wrap img.piesa-card__img--placeholder {
  object-fit: cover;
  padding: 0;
  background: #0a1628;
}

.piesa-card__ph-link {
  display: block;
  width: 100%;
  height: 100%;
}

.piesa-card__ph-link img {
  width: 100%;
  height: 100%;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.load-more-btn {
  min-width: 7rem;
}

@media (max-width: 700px) {
  .piese-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .piesa-card__body {
    padding: 0.55rem 0.55rem 0.65rem;
    gap: 0.2rem;
  }

  .piesa-card__title {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .piesa-card__meta,
  .piesa-card__oem,
  .piesa-card__hub {
    font-size: 0.7rem;
  }

  .piesa-card__pret {
    font-size: 0.92rem;
  }

  .badge-vanzator {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
  }

  .piesa-card__hub {
    display: none;
  }
}


.piesa-card {
  background: var(--sp-card);
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-border);
  box-shadow: var(--sp-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.piesa-card__body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.piesa-card__title {
  margin: 0;
  font-size: 1rem;
  color: var(--sp-albastru);
  line-height: 1.3;
}

.piesa-card__title a {
  color: inherit;
  text-decoration: none;
}

.piesa-card__title a:hover {
  color: var(--sp-portocaliu);
}

.piesa-card__meta {
  color: var(--sp-muted);
  font-size: 0.88rem;
}

.piesa-card__oem {
  font-size: 0.85rem;
  color: var(--sp-text);
}

.piesa-card__oem code {
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.82rem;
}

.piesa-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.piesa-card__pret {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sp-portocaliu);
}

.piesa-card__pret small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sp-muted);
}

.badge-vanzator {
  display: inline-block;
  background: #eef2f7;
  color: var(--sp-albastru);
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  background: var(--sp-card);
  border: 1px dashed var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 2rem;
  text-align: center;
  color: var(--sp-muted);
}

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.why-card {
  background: var(--sp-card);
  border-radius: var(--sp-radius);
  padding: 1.1rem 1.15rem;
  border-left: 4px solid var(--sp-portocaliu);
  box-shadow: var(--sp-shadow);
}

.why-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--sp-albastru);
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sp-muted);
}

.trust-img {
  margin-top: 1.5rem;
  border-radius: var(--sp-radius);
  max-height: 80px;
  width: auto;
}

/* Footer */
.site-footer {
  background: var(--sp-albastru);
  color: #94a3b8;
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.filter-tag {
  display: inline-block;
  background: #fff3e8;
  color: var(--sp-portocaliu-dark);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .hero__overlay {
    padding: 1.75rem 0 1.5rem;
  }
}

/* Promo AutoDez Hub */
.hub-promo {
  font-size: 0.92rem;
}

.hub-promo--top {
  background: linear-gradient(90deg, #0f2744 0%, #1a3a5c 55%, #0f2744 100%);
  color: #cbd5e1;
  border-bottom: 2px solid var(--sp-portocaliu);
  font-size: 0.78rem;
}

.hub-promo--top .hub-promo__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.45rem 0;
  text-align: center;
}

.hub-promo--top .hub-promo__text {
  margin: 0;
  flex: 0 1 auto;
  max-width: 52rem;
  line-height: 1.4;
  font-size: 0.78rem;
  font-weight: 400;
  text-align: center;
}

.hub-promo--top .hub-promo__text strong {
  font-weight: 600;
}

.hub-promo--top .hub-promo__text a {
  color: #fdba74;
  font-weight: 600;
  text-decoration: underline;
}

.hub-promo--top .hub-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-portocaliu);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  min-height: 0;
  height: auto;
}

.hub-promo--top .hub-promo__cta:hover {
  background: var(--sp-portocaliu-dark);
  color: #fff !important;
}

/* layout generic (footer / alte zone) */
.hub-promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
}

.hub-promo__text {
  margin: 0;
  flex: 1 1 280px;
  line-height: 1.45;
}

.hub-promo__text a {
  color: #fdba74;
  font-weight: 600;
  text-decoration: underline;
}

.hub-promo__cta {
  display: inline-block;
  background: var(--sp-portocaliu);
  color: #fff !important;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.hub-promo__cta:hover {
  background: var(--sp-portocaliu-dark);
  color: #fff !important;
}

.hub-promo--footer {
  background: #fff3e8;
  border-top: 1px solid #fed7aa;
  border-bottom: 1px solid #fed7aa;
  padding: 1.75rem 0;
  margin-top: 0;
}

.hub-promo--footer .hub-promo__title {
  margin: 0 0 0.5rem;
  color: var(--sp-albastru);
  font-size: 1.2rem;
}

.hub-promo--footer .hub-promo__lead {
  margin: 0 0 1rem;
  color: var(--sp-text);
  max-width: 62ch;
  line-height: 1.55;
}

.hub-promo--footer a {
  color: var(--sp-portocaliu-dark);
  font-weight: 600;
}

.hub-promo--footer a.hub-promo__cta-footer,
.hub-promo--footer .hub-promo__cta-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-albastru);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.25);
  border: 2px solid #0f2744;
}

.hub-promo--footer a.hub-promo__cta-footer:hover {
  background: #0f2744;
  color: #fff !important;
}

.piesa-card__hub {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--sp-muted);
}

.piesa-card__hub a {
  color: var(--sp-portocaliu-dark);
  font-weight: 600;
}

/* Paginare, breadcrumb, sortare */
.section--top {
  padding-top: 2rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--sp-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--sp-albastru-light);
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 0.35rem;
}

.section__more {
  margin-top: 1.25rem;
  font-weight: 600;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.92rem;
}

.sort-form select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  background: #fff;
}

.cat-grid--all {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination__info {
  color: var(--sp-muted);
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
}

.pagination__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.pagination__btn,
.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--sp-border);
  background: #fff;
  font-size: 0.9rem;
}

.pagination__num--active {
  background: var(--sp-albastru);
  color: #fff;
  border-color: var(--sp-albastru);
  font-weight: 700;
}

.pagination__btn--disabled {
  opacity: 0.45;
  cursor: default;
}

.pagination__ellipsis {
  padding: 0 0.25rem;
  color: var(--sp-muted);
}

/* Pagină OEM multi-vânzător */
.oem-hero {
  background: linear-gradient(180deg, #fff 0%, var(--sp-bg) 100%);
}

.oem-code {
  background: #eef2f7;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--sp-albastru);
}

.oem-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
}

.oem-stat {
  font-size: 0.92rem;
  color: var(--sp-text);
}

.oem-stat strong {
  color: var(--sp-albastru);
}

.oem-offers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oem-offers-table-wrap {
  margin-top: 0.5rem;
}

.oem-offers-table td .muted {
  color: #64748b;
  font-size: 0.88rem;
}

.oem-offers-table .btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.oem-hero__grid {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.oem-hero__media {
  border-radius: var(--sp-radius);
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid var(--sp-border);
}

.oem-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.oem-hero__img--placeholder {
  object-fit: cover;
  background: #0a1628;
}

.oem-offer-thumb {
  display: block;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--sp-border);
  background: #eef2f7;
}

.oem-offer-thumb--placeholder {
  background: #0a1628;
}

.oem-offers-table__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  min-width: 11rem;
}

.btn-donor-gallery {
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.contact-parc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  margin: 0.25rem 0 0.5rem;
}

.contact-parc__item {
  color: var(--sp-albastru);
  word-break: break-word;
}

a.contact-parc__tel {
  font-weight: 700;
  color: var(--sp-portocaliu);
  text-decoration: none;
}

a.contact-parc__wa {
  font-weight: 600;
  color: #128c7e;
  text-decoration: none;
}

a.contact-parc__wa:hover {
  text-decoration: underline;
}

.contact-parc__adr {
  color: var(--sp-muted);
}

.vanzator-contact-wrap,
.piesa-detail__contact {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
}

.vanzator-contact-title,
.piesa-detail__contact-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--sp-albastru);
}

.oem-offer-contact .contact-parc {
  margin-bottom: 0.35rem;
}

@media (max-width: 760px) {
  .oem-offers-table__actions {
    margin-top: 0.35rem;
  }
  .oem-offers-table__actions .btn-donor-gallery {
    order: 3;
  }
  .oem-offers-table__actions .btn-primary {
    order: 2;
  }
  .oem-offers-table__actions .oem-offer-contact {
    order: 1;
  }
}

.donor-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.donor-lightbox[hidden] {
  display: none !important;
}

.donor-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.82);
}

.donor-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  max-height: 90vh;
  background: #0a1628;
  border-radius: var(--sp-radius);
  padding: 2.5rem 1rem 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.donor-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  object-fit: contain;
}

.donor-lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--sp-portocaliu);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.donor-lightbox__close:hover {
  background: var(--sp-portocaliu-dark);
}

.donor-lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.donor-lightbox__counter {
  color: #e2e8f0;
  font-size: 0.9rem;
  min-width: 3.5rem;
  text-align: center;
}

body.donor-lightbox-open {
  overflow: hidden;
}

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

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

.oem-offer {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--sp-shadow);
}

.oem-offer__img {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f7;
}

.oem-offer__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oem-offer__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--sp-albastru);
}

.oem-offer__meta,
.oem-offer__cod {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sp-muted);
}

.oem-offer__cod code {
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.82rem;
}

.oem-offer__side {
  text-align: right;
  min-width: 140px;
}

.oem-offer__pret {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sp-portocaliu);
  margin-bottom: 0.35rem;
}

.oem-offer__pret small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sp-muted);
}

.oem-offer__vendor {
  max-width: 160px;
}

.piesa-card__oem a code {
  color: inherit;
}

.piesa-card__oem a:hover code {
  color: var(--sp-portocaliu);
}

@media (max-width: 640px) {
  .oem-offer {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }

  .oem-offer__img {
    width: 80px;
    height: 60px;
  }

  .oem-offer__side {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    min-width: 0;
  }

  .oem-offer__pret {
    margin-bottom: 0;
  }
}

/* Pagină vânzător + recenzii */
.vanzator-hero {
  background: linear-gradient(180deg, #fff 0%, var(--sp-bg) 100%);
}

.vanzator-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
}

.vanzator-stat {
  font-size: 0.92rem;
}

.vanzator-stat strong {
  color: var(--sp-albastru);
}

.badge-vanzator a {
  color: inherit;
  font-weight: inherit;
}

.badge-vanzator a:hover {
  color: var(--sp-portocaliu-dark);
}

.recenzii-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 640px;
}

.recenzie-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1rem 1.1rem;
}

.recenzie-card__stars {
  color: #cbd5e1;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.recenzie-star--on {
  color: var(--sp-portocaliu);
}

.recenzie-card__text {
  margin: 0 0 0.35rem;
  line-height: 1.5;
}

.recenzie-card__data {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sp-muted);
}

.recenzie-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.recenzie-form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.section--form-recenzie {
  background: #fff;
  border-top: 1px solid var(--sp-border);
}

.alert-banner {
  padding: 0.85rem 1rem;
  border-radius: var(--sp-radius);
  font-size: 0.95rem;
  line-height: 1.45;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Pagină detaliu piesă */
.piesa-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.piesa-detail__main-img {
  background: #eef2f7;
  border-radius: var(--sp-radius);
  overflow: hidden;
  border: 1px solid var(--sp-border);
}

.piesa-detail__main-img img {
  width: 100%;
  height: auto;
  display: block;
}

.piesa-detail__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.piesa-detail__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  width: 72px;
  height: 54px;
}

.piesa-detail__thumb--active {
  border-color: var(--sp-portocaliu);
}

.piesa-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.piesa-detail__info h1 {
  margin: 0 0 0.35rem;
  color: var(--sp-albastru);
  font-size: 1.65rem;
  line-height: 1.25;
}

.piesa-detail__meta {
  color: var(--sp-muted);
  margin: 0 0 1rem;
}

.piesa-detail__pret {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sp-portocaliu);
  margin-bottom: 1.25rem;
}

.piesa-detail__pret small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sp-muted);
}

.piesa-detail__specs {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.piesa-detail__specs div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.piesa-detail__specs dt {
  color: var(--sp-muted);
  margin: 0;
}

.piesa-detail__specs dd {
  margin: 0;
}

.piesa-detail__specs code {
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88rem;
}

.piesa-detail__obs h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--sp-albastru);
}

.piesa-detail__obs p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.piesa-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-secondary {
  background: #fff;
  color: var(--sp-albastru);
  border: 1px solid var(--sp-border);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--sp-portocaliu);
  color: var(--sp-portocaliu-dark);
}

@media (max-width: 860px) {
  .piesa-detail__grid {
    grid-template-columns: 1fr;
  }

  .piesa-detail__specs div {
    grid-template-columns: 1fr;
  }
}

/* Banner cookie + pagină legală */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid var(--sp-portocaliu);
  box-shadow: 0 -4px 24px rgba(15, 39, 68, 0.12);
  padding: 1rem 0;
}

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

.cookie-banner__text {
  flex: 1 1 280px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-banner__text p {
  margin: 0 0 0.35rem;
}

.cookie-banner__text p:last-child {
  margin-bottom: 0;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legal-page {
  max-width: 720px;
}

.legal-page h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--sp-albastru);
}

.legal-page p {
  line-height: 1.6;
}

/* ——— Mobil: lățime telefon, fără scroll orizontal ——— */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100vw;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

code,
.oem-code,
.piesa-card__cod,
.filter-tag {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.filter-tag {
  white-space: normal;
  max-width: 100%;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.25rem, var(--sp-max));
  }

  .filter-tag {
    display: block;
    border-radius: 10px;
  }
  .site-header__inner {
    gap: 0.65rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
    margin-left: 0;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .header-search {
    width: 100%;
    max-width: none;
    margin-left: 0;
    flex: 1 1 100%;
  }

  .search-form--hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }

  .search-hero-top {
    flex-direction: column;
  }

  .search-hero-top .search-parc {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .search-form--hero .search-form,
  .search-form {
    flex-direction: column;
    max-width: none;
    width: 100%;
  }

  .search-form input[type="search"],
  .search-parc,
  .search-form .btn,
  .btn-hero-search {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
  }

  .btn-hero-search {
    order: 3;
    height: auto;
    margin-top: 0.15rem;
  }

  .search-vehicule {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .piese-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cat-grid,
  .cat-grid--all {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hub-promo--top .hub-promo__text {
    max-width: 100%;
    font-size: 0.72rem;
  }

  .hub-promo--top .hub-promo__cta {
    white-space: normal;
    width: 100%;
    max-width: 16rem;
  }

  /* Tabel OEM → carduri pe telefon (cauza principală a scroll-ului orizontal) */
  .oem-offers-table-wrap,
  .table-wrap {
    overflow-x: visible;
    margin-inline: 0;
  }

  .oem-offers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }

  .oem-offers-table thead {
    display: none;
  }

  .oem-offers-table,
  .oem-offers-table tbody,
  .oem-offers-table tr,
  .oem-offers-table td {
    display: block;
    width: 100%;
  }

  .oem-offers-table tr {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 0.75rem 0.85rem;
    box-shadow: var(--sp-shadow);
  }

  .oem-offers-table td {
    border: 0;
    padding: 0.35rem 0;
    min-width: 0 !important;
  }

  .oem-offers-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--sp-muted);
    margin-bottom: 0.15rem;
  }

  .oem-offers-table__photo {
    text-align: left;
  }

  .oem-offer-thumb {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .oem-offers-table__actions {
    min-width: 0;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--sp-border);
  }

  .oem-offers-table__actions .btn,
  .oem-offers-table__actions .btn-sm {
    width: 100%;
    justify-content: center;
  }

  .oem-hero h1,
  .vanzator-hero h1,
  .piesa-detail__info h1,
  .section__title {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  .vanzator-stats,
  .oem-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .vanzator-stat,
  .oem-stat {
    width: 100%;
  }

  .paginare,
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
  }

  .sort-form {
    flex-wrap: wrap;
    width: 100%;
  }

  .sort-form select {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .cat-grid,
  .cat-grid--all {
    grid-template-columns: 1fr;
  }

  .site-logo__tag {
    white-space: normal;
  }
}

/* Cont client / coș */
.nav-cont--accent {
  color: var(--sp-portocaliu) !important;
  font-weight: 700;
}
.flash-wrap { margin: 0.75rem auto 0; max-width: 1100px; padding: 0 1rem; }
.flash { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 0.5rem; }
.flash-ok { background: #14532d; color: #dcfce7; }
.flash-error { background: #7f1d1d; color: #fee2e2; }
.cont-box { max-width: 480px; }
.cont-form { display: flex; flex-direction: column; gap: 0.75rem; }
.cont-form input,
.cont-form textarea,
.cont-form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
.cont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card-soft { background: #f8fafc; border-radius: 12px; padding: 1.25rem; }
.data-mini { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-mini th,
.data-mini td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid #e2e8f0;
}
.piesa-card__cos { margin-top: 0.65rem; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.88rem; }
@media (max-width: 800px) {
  .cont-grid { grid-template-columns: 1fr; }
}

.masina-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.92rem;
}
.masina-toggle--hint { background: transparent; padding: 0; }
.masina-toggle__form { display: inline; margin: 0; }
.masina-toggle__link { color: var(--sp-portocaliu); font-weight: 600; }
