:root {
  --ink: #081321;
  --navy: #07111d;
  --navy-2: #101d2d;
  --gold: #c79a5b;
  --gold-2: #e3c28e;
  --green: #1d8b71;
  --red: #b93b35;
  --muted: #637083;
  --line: #e4e7eb;
  --soft: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(8, 19, 33, 0.12);
  --radius: 8px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
  filter: brightness(1.02) contrast(1.05);
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 238px;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 238px;
  max-width: min(238px, 45vw);
  height: auto;
  filter: none;
  image-rendering: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-logo--footer {
  width: 190px;
  max-width: 100%;
}

.brand--footer {
  min-width: 0;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  opacity: 0.94;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.nav a:not(.btn):hover {
  color: var(--white);
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--gold);
  z-index: -1;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

.nav .btn--dark {
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  place-items: center;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .icon {
  transition: transform 0.22s ease;
}

.btn--dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, #0d2237 100%);
  box-shadow: 0 10px 22px rgba(7, 17, 29, 0.16);
}

.btn--dark::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -36%;
  width: 32%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-140%) skewX(-22deg);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.btn--dark:hover {
  color: var(--white);
  background: linear-gradient(135deg, #10263d 0%, var(--navy) 48%, #9d7540 100%);
  border-color: rgba(227, 194, 142, 0.72);
  box-shadow: 0 16px 30px rgba(7, 17, 29, 0.24), 0 0 0 3px rgba(199, 154, 91, 0.12);
}

.btn--dark:hover::after {
  transform: translateX(520%) skewX(-22deg);
}

.btn--dark:hover .icon {
  transform: translateX(2px) rotate(-5deg);
}

.btn--gold {
  color: var(--ink);
  background: var(--gold-2);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--line {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.btn--white {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.hero {
  min-height: clamp(450px, 55vh, 580px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 12, 22, 0.8) 0%, rgba(7, 17, 29, 0.4) 60%, rgba(7, 17, 29, 0) 100%),
    url("assets/homepage-hero-bg.png") top right / cover no-repeat; /* Resmi yukarıdan hizaladık */
  display: grid;
  align-items: start; /* İçeriği en yukarıya çektik */
  overflow: hidden;
}

.hero__content {
  max-width: 650px;
  padding: 0 0 24px;
  margin-top: -8px; /* 2px padding kaldırıldı, ekstra -8px ile toplam 10px alan daraltıldı */
  transition: padding-top 0.3s ease;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--gold-2);
  display: block;
  font-size: clamp(25px, 3vw, 42px);
  margin-top: 6px;
}

.hero p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero__actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__badges {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 620px;
}

.hero-badge {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-badge:last-child {
  border-right: 0;
}

.hero-badge__icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(227, 194, 142, 0.55);
  border-radius: 6px;
  color: var(--gold-2);
  display: grid;
  place-items: center;
}

.hero-badge strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
}

.hero-badge span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

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

.categories {
  background: var(--soft);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  min-height: 248px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(199, 154, 91, 0.55);
}

.category-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  background: #eef1f5;
}

.category-card__body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 6px;
}

.category-card h3 {
  min-height: 38px;
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
}

.category-card span {
  color: var(--muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.center-action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.vehicle-marquee {
  padding: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.98), rgba(10, 27, 43, 0.98)),
    radial-gradient(circle at 80% 50%, rgba(199, 154, 91, 0.14), transparent 36%);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vehicle-marquee__inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.vehicle-marquee__title {
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.vehicle-marquee__title strong {
  display: block;
  color: var(--white);
  font-size: 24px;
}

.vehicle-marquee__mask {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.vehicle-marquee__track {
  display: flex;
  width: max-content;
  animation: vehicle-marquee 34s linear infinite;
}

.vehicle-marquee:hover .vehicle-marquee__track {
  animation-play-state: paused;
}

.vehicle-marquee__group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
}

.vehicle-logo {
  min-width: 180px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: default;
}

.vehicle-logo:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-2);
  color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 0 15px rgba(199, 154, 91, 0.2);
}

.vehicle-logo__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transition: all 0.3s ease;
}

.vehicle-logo:hover .vehicle-logo__mark {
  border-color: var(--gold-2);
  color: var(--gold-2);
}

.vehicle-logo--audi .vehicle-logo__mark,
.vehicle-logo--fiat .vehicle-logo__mark,
.vehicle-logo--ford .vehicle-logo__mark {
  width: 44px;
  border-radius: 20px;
}

.vehicle-logo--bmw .vehicle-logo__mark {
  color: var(--white);
  background: conic-gradient(#1c5f9f 0 25%, #f7f7f7 25% 50%, #1c5f9f 50% 75%, #f7f7f7 75% 100%);
  border: none;
}
.vehicle-logo:hover.vehicle-logo--bmw .vehicle-logo__mark {
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.vehicle-logo--volkswagen .vehicle-logo__mark,
.vehicle-logo--renault .vehicle-logo__mark,
.vehicle-logo--toyota .vehicle-logo__mark,
.vehicle-logo--hyundai .vehicle-logo__mark,
.vehicle-logo--opel .vehicle-logo__mark,
.vehicle-logo--nissan .vehicle-logo__mark {
  /* Keep default styling */
}

.vehicle-logo--renault .vehicle-logo__mark {
  border-radius: 6px;
}

@keyframes vehicle-marquee {
  to {
    transform: translateX(-50%);
  }
}

.about {
  padding: 0;
  background: var(--white);
}

.about__wrap {
  min-height: 380px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
}

.about__content {
  padding: 48px 44px 48px 0;
  align-self: center;
}

.about__content h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.08;
}

.about__content p {
  margin: 18px 0 0;
  color: #3e4a5a;
}

.about__image {
  min-height: 380px;
  background:
    url("assets/storefront.png") center / cover no-repeat;
}

.trustbar {
  padding: 24px 0;
  background: #fbfbfc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.trust-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 24px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(199, 154, 91, 0.42);
  border-radius: 6px;
  background: var(--white);
}

.trust-item h3 {
  margin: 0 0 2px;
  font-size: 14px;
  text-transform: uppercase;
}

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

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}

.service-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
}

.contact {
  background:
    linear-gradient(135deg, rgba(7, 17, 29, 0.75), rgba(13, 30, 48, 0.75)),
    url("assets/hero-parts.png") center / cover no-repeat;
  color: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}

.contact h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.08;
}

.contact p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.contact-list a,
.contact-list div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
}

.contact-list .icon-box,
.form-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  border: 1px solid rgba(227, 194, 142, 0.36);
  border-radius: 6px;
}

.contact-list strong {
  display: block;
  color: var(--white);
  font-size: 15px;
}

.contact-list span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.quote-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
}

.quote-form__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.quote-form__head h3 {
  margin: 0;
  font-size: 24px;
}

.quote-form__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  color: #2b3544;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #fbfcfe;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

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

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 154, 91, 0.16);
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  background: #06101b;
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 22px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.footer h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
}

.footer p {
  margin: 12px 0 0;
}

.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer a:hover {
  color: var(--gold-2);
}

.footer-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.footer-map img {
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
}

.footer-map a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.copyright {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  text-align: center;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.floating-contact a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 14px 28px rgba(8, 19, 33, 0.24);
}

.floating-contact a:first-child {
  background: var(--green);
}

.floating-contact a:last-child {
  background: var(--red);
}

@media (max-width: 1050px) {
  .header__inner {
    min-height: 76px;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 44px;
    margin-left: auto;
    background: #f5f7fa;
    border-color: #c7ced8;
    color: var(--ink);
    position: relative;
    z-index: 2;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav .btn {
    margin-top: 10px;
  }

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

  .about__wrap,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__content {
    padding-right: 0;
  }

  .about__image {
    min-height: 320px;
  }

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

  .vehicle-marquee__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
  }

  .vehicle-marquee__title {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 196px;
    max-width: 58vw;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(5, 12, 22, 0.8) 0%, rgba(7, 17, 29, 0.4) 100%),
      url("assets/homepage-hero-bg.png") center bottom / cover no-repeat;
  }

  .hero__content {
    padding: 12px 0 48px; /* Mobil görünümde başlangıç mesafesi optimize edildi */
  }

  .hero p {
    font-size: 16px;
  }

  .hero__actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn,
  .center-action .btn {
    width: 100%;
  }

  .hero__badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-badge {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  section {
    padding: 46px 0;
  }

  .category-grid,
  .trust-grid,
  .service-grid,
  .footer__grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 0;
  }

  .category-card h3 {
    min-height: 0;
  }

  .vehicle-marquee__inner {
    min-height: 122px;
  }

  .vehicle-marquee__title strong {
    font-size: 22px;
  }

  .vehicle-marquee__mask {
    width: calc(100% + 32px);
    margin-left: -16px;
  }

  .vehicle-marquee__track {
    animation-duration: 28s;
  }

  .vehicle-logo {
    min-width: 146px;
    height: 46px;
    grid-template-columns: 36px max-content;
    padding-right: 12px;
    font-size: 12px;
  }

  .vehicle-logo__mark {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .quote-form {
    padding: 20px;
  }

  .floating-contact {
    right: 12px;
    bottom: 12px;
  }

  .floating-contact a {
    width: 48px;
    height: 48px;
  }
}

/* --- Product Page Additions --- */
.breadcrumb {
  padding: 16px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  font-size: 16px;
  line-height: 1;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.shop-layout {
  display: block;
  gap: 32px;
  margin-top: 32px;
}

.filter-sidebar h4 {
  margin: 0 0 16px;
  font-size: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.filter-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
  color: var(--muted);
}

.product-card__brand {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
}

.product-card__price {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  margin-top: 8px;
}

@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Product Search Hero Styles --- */
.product-search-hero {
  background: var(--navy);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.product-search-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url("assets/hero-parts.png") center/cover;
  opacity: 0.15;
  pointer-events: none;
}

.search-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.search-container h1 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 42px);
  margin: 10px 0 40px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.search-container h1 span {
  color: var(--gold);
}

.search-card {
  background: var(--white);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45);
  max-width: 1050px;
  margin: 0 auto;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.search-item {
  padding: 14px 16px;
  text-align: left;
  border-right: 1px solid var(--line);
  transition: background 0.2s ease;
  border-radius: 10px;
}

.search-item:hover {
  background: var(--soft);
}

.search-item:nth-last-child(2) {
  border-right: none;
}

.search-item label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.search-item select, 
.search-item input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  outline: none;
  cursor: pointer;
}

.search-grid .btn--dark {
  border-radius: 10px;
  padding: 0 40px;
}

@media (max-width: 960px) {
  .search-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .search-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .search-grid .btn--dark {
    margin-top: 10px;
    min-height: 54px;
  }
}

/* --- Admin Panel Styles --- */
.admin-body {
  background: #f0f2f5;
  display: flex;
  min-height: 100vh;
}

#admin-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar__logo {
  padding: 30px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav {
  padding: 20px 0;
  flex: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.05);
  color: var(--gold);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--white);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.admin-content {
  padding: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.stat-card h4 {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0;
  color: var(--navy);
}

.data-table-container {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.admin-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--soft);
  font-size: 13px;
  color: var(--muted);
}

.admin-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--soft);
  font-size: 14px;
}

.badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge--success { background: #e6f4ea; color: #1e7e34; }

/* --- Admin Panel Utilities & Component Styles --- */
.admin-sidebar__logo img { width: 150px; }
.admin-header__title h2 { margin: 0; font-size: 18px; }
.admin-header__user span { font-weight: 700; font-size: 14px; }
.stat-card__trend--up { color: var(--green); font-size: 12px; display: block; margin-top: 4px; }
.stat-card__trend--warn { color: var(--gold); font-size: 12px; display: block; margin-top: 4px; }

.data-table-header { display: flex; justify-content: space-between; align-items: center; }
.data-table-header h3 { margin: 0; }
.btn--sm { min-height: 36px; padding: 0 16px; }

.admin-filters { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.admin-filter-input { flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; }
.admin-filter-select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; min-width: 150px; }

.year-range-group { display: flex; gap: 8px; align-items: center; }
.year-range-group select { flex: 1; }
.year-range-separator { color: var(--muted); font-weight: bold; }

.image-preview { max-width: 120px; margin-top: 10px; display: none; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.admin-table img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.action-edit { color: var(--gold); font-weight: 700; margin-right: 12px; }
.action-delete { color: var(--red); font-weight: 700; }

.badge--warn { background: #fff3cd; color: #856404; }
.badge--danger { background: #f8d7da; color: #721c24; }

/* --- Modal Styles --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 33, 0.65);
  backdrop-filter: blur(4px);
  display: none; /* JS ile açılacak */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-content {
  background: var(--white);
  width: 100%;
  max-width: 650px;
  max-height: 90vh; /* Ekranın %90'ından fazla yer kaplamasın */
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex; /* İçerik düzeni için flex yapısı */
  flex-direction: column;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 20px 24px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-shrink: 0; /* Başlığın küçülmesini engeller */
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--navy);
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.modal-body {
  padding: 24px;
  overflow-y: auto; /* İçerik uzarsa sadece bu alan kaydırılsın */
  flex: 1; /* Kalan boşluğu doldursun */
}

/* Formun modal içindeki akışını düzeltir */
#add-product-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--soft);
  border-top: 1px solid var(--line);
  display: flex;
  flex-shrink: 0; /* Butonların kaybolmasını engeller */
  justify-content: flex-end;
  gap: 12px;
}

/* --- Pagination Styles --- */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px;
}

.pagination-btn {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: var(--soft);
}

.pagination-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination-btn:disabled {
  background: var(--soft);
  color: var(--muted);
  cursor: not-allowed;
}

/* --- Admin Login Overlay Styles --- */
#admin-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--soft);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-box {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.admin-login-logo {
  height: 40px;
  margin-bottom: 20px;
}

.admin-login-box h3 {
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 800;
}

.admin-login-box p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}

#admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#admin-login-form input {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

#admin-login-form input:focus {
  border-color: var(--navy);
}
