/* ═══════════════════════════════════════════════════════════════════════════
   pages.css — Statik sayfalar: SSS, İletişim, Hakkımızda, KVKK, Galeri vb.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Ortak Sayfa Stilleri ────────────────────────────────────────────────── */

.page-section {
  padding: 50px 0 80px;
}

.page-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wd-heading-color);
  margin-bottom: 36px;
  text-align: center;
  letter-spacing: -0.01em;
}

.page-meta {
  text-align: center;
  color: var(--wd-text-light);
  font-size: 13px;
  margin-top: -28px;
  margin-bottom: 30px;
}

.container--narrow {
  max-width: 800px;
}

/* ── SSS ─────────────────────────────────────────────────────────────────── */

.faq-group {
  margin-bottom: 40px;
}

.faq-group__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wd-primary-color);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wd-primary-color);
}

.faq-accordion {
  border: 1px solid var(--wd-border-color-light);
  border-radius: var(--wd-border-radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--wd-border-color-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--wd-heading-color);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1.5;
}

.faq-item__question:hover {
  background: var(--wd-gray-50);
}

.faq-item__question[aria-expanded="true"] {
  background: var(--wd-primary-color);
  color: #fff;
}

.faq-item__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  border: 1px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}

.faq-item__answer {
  overflow: hidden;
}

.faq-item__answer[hidden] {
  display: none;
}

.faq-item__answer-inner {
  padding: 16px 20px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--wd-text-color);
  background: var(--wd-gray-50);
}

.faq-cta {
  margin-top: 48px;
  text-align: center;
  padding: 32px;
  background: var(--wd-gray-50);
  border-radius: var(--wd-border-radius);
  border: 1px solid var(--wd-border-color-light);
}

.faq-cta p {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.faq-cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

/* ── İletişim ─────────────────────────────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info__item svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--wd-primary-color);
}

.contact-info__item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wd-heading-color);
  margin-bottom: 4px;
}

.contact-info__item a,
.contact-info__item address {
  font-size: 14px;
  color: var(--wd-text-color);
  line-height: 1.6;
}

.contact-hours {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--wd-border-color-light);
  font-size: 14px;
}

.contact-hours strong {
  display: block;
  margin-bottom: 6px;
}

.contact-form-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-heading-color);
}

.form-group label span {
  color: #e53e3e;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--wd-border-color);
  background: #fff;
  font-size: 14px;
  color: var(--wd-text-color);
  transition: border-color 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--wd-primary-color);
  box-shadow: 0 0 0 3px rgba(30, 82, 66, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
  flex: 0 0 16px;
  margin-top: 2px;
}

/* ── Uyarı kutuları ──────────────────────────────────────────────────────── */

.alert {
  padding: 14px 18px;
  border-radius: var(--wd-border-radius);
  font-size: 14px;
  margin-bottom: 20px;
  border-left: 4px solid;
}

.alert--success {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #14532d;
}

.alert--error {
  background: #fef2f2;
  border-color: #dc2626;
  color: #7f1d1d;
}

.alert--info {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e3a8a;
}

/* ── Hakkımızda ──────────────────────────────────────────────────────────── */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--wd-border-color-light);
}

.about-hero__text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-hero__text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--wd-text-color);
  margin-bottom: 14px;
}

.about-hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--wd-border-radius);
}

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

.about-feature {
  text-align: center;
}

.about-feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: rgba(30, 82, 66, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature__icon svg {
  width: 24px;
  height: 24px;
  color: var(--wd-primary-color);
}

.about-feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-feature p {
  font-size: 13px;
  color: var(--wd-text-light);
  line-height: 1.6;
}

.about-cta {
  text-align: center;
  padding: 48px;
  background: var(--wd-gray-50);
  border-radius: var(--wd-border-radius);
}

.about-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-cta p {
  color: var(--wd-text-light);
  font-size: 15px;
}

/* ── Hukuki İçerik (KVKK, İade) ─────────────────────────────────────────── */

.legal-content {
  font-size: 14px;
  line-height: 1.9;
  color: var(--wd-text-color);
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--wd-heading-color);
  padding-top: 8px;
  border-top: 1px solid var(--wd-border-color-light);
}

.legal-content h2:first-child {
  border-top: none;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5em;
  margin: 10px 0;
}

.legal-content li {
  margin-bottom: 6px;
}

/* ── Galeri ──────────────────────────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item__link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery-item__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item__link:hover img {
  transform: scale(1.05);
}

.gallery-item__product {
  display: block;
  padding: 8px 0 0;
  font-size: 12px;
  color: var(--wd-text-light);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item__product:hover {
  color: var(--wd-primary-color);
}

/* ── Referanslar ─────────────────────────────────────────────────────────── */

.references-group {
  margin-bottom: 48px;
}

.references-group__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wd-primary-color);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wd-primary-color);
}

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

.reference-card {
  border: 1px solid var(--wd-border-color-light);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow 0.2s ease;
}

.reference-card:hover {
  box-shadow: var(--wd-shadow);
}

.reference-card__logo img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.reference-card:hover .reference-card__logo img {
  filter: none;
  opacity: 1;
}

.reference-card__name-only {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wd-heading-color);
}

.reference-card__desc {
  font-size: 12px;
  color: var(--wd-text-light);
  line-height: 1.5;
}

/* ── Auth Sayfaları (Bayi Giriş, Şifre Sıfırla) ─────────────────────────── */

.auth-section {
  min-height: calc(100vh - var(--wd-header-total-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background: var(--wd-gray-50);
}

.auth-card {
  background: #fff;
  border: 1px solid var(--wd-border-color-light);
  border-radius: var(--wd-border-radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--wd-shadow);
}

.auth-card__header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card__header img {
  display: block;
  margin: 0 auto 16px;
}

.auth-card__header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-card__header p {
  font-size: 13px;
  color: var(--wd-text-light);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card__footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--wd-text-light);
}

.auth-card__footer a {
  color: var(--wd-primary-color);
  text-decoration: underline;
}

/* ── Bayi Hesap Sayfası ──────────────────────────────────────────────────── */

.dealer-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.dealer-sidebar {
  position: sticky;
  top: calc(var(--wd-header-total-height) + 20px);
}

.dealer-profile-card {
  padding: 20px;
  background: var(--wd-primary-color);
  color: #fff;
  border-radius: var(--wd-border-radius);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dealer-profile-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex: 0 0 48px;
}

.dealer-profile-card__info h2 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.dealer-profile-card__info p {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.5;
}

.dealer-discount-badge {
  text-align: center;
  padding: 12px;
  background: rgba(30, 82, 66, 0.08);
  border: 1px solid rgba(30, 82, 66, 0.2);
  border-radius: var(--wd-border-radius);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dealer-discount-badge span {
  font-size: 11px;
  color: var(--wd-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dealer-discount-badge strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wd-primary-color);
}

.dealer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dealer-nav__link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--wd-text-color);
  border-radius: var(--wd-border-radius);
  transition: background 0.15s ease, color 0.15s ease;
}

.dealer-nav__link:hover,
.dealer-nav__link.active {
  background: var(--wd-gray-100);
  color: var(--wd-primary-color);
  font-weight: 600;
}

.dealer-nav__link--danger {
  color: #dc2626;
}

.dealer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.dealer-stat {
  padding: 16px;
  background: var(--wd-gray-50);
  border: 1px solid var(--wd-border-color-light);
  border-radius: var(--wd-border-radius);
  text-align: center;
}

.dealer-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wd-heading-color);
}

.dealer-stat__label {
  display: block;
  font-size: 12px;
  color: var(--wd-text-light);
  margin-top: 4px;
}

.orders-table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.orders-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--wd-gray-50);
  font-weight: 600;
  color: var(--wd-heading-color);
  border-bottom: 2px solid var(--wd-border-color);
  white-space: nowrap;
}

.orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--wd-border-color-light);
  color: var(--wd-text-color);
}

.order-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-status--pending_payment  { background:#fef3c7;color:#92400e; }
.order-status--payment_received { background:#d1fae5;color:#065f46; }
.order-status--processing       { background:#dbeafe;color:#1e40af; }
.order-status--shipped          { background:#ede9fe;color:#4c1d95; }
.order-status--delivered        { background:#d1fae5;color:#064e3b; }
.order-status--cancelled        { background:#fee2e2;color:#991b1b; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .page-heading {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .page-section {
    padding: 30px 0 60px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-cta {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .references-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}
