* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e5e7eb;
  color: #111827;
  padding: 24px 12px 40px;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 1100px;
}

.card {
  background: linear-gradient(135deg,#ffffff,#f9fafb);
  border-radius: 18px;
  border: 1px solid #d1d5db;
  box-shadow: 0 18px 40px rgba(15,23,42,0.15);
  padding: 20px 18px;
}

@media (min-width: 768px) {
  .card {
    padding: 24px 26px;
  }
}

.top-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.logo-wrap {
  flex-shrink: 0;
}

.logo-wrap img {
  height: 42px;
  width: auto;
  display: block;
}

.header {
  margin-bottom: 6px;
  flex: 1;
  min-width: 200px;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111827;
}

.header-sub {
  font-size: 13px;
  color: #4b5563;
}

/* MÜŞTERİ PANELİ */
.client-panel {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3f4ff;
  border: 1px solid #c7d2fe;
}

.client-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #312e81;
  margin-bottom: 6px;
}

.client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.client-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.client-field label {
  color: #4b5563;
  font-weight: 600;
}

.client-field input {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
}

.client-field input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(129,140,248,0.6);
}

/* FİLTRE PANELİ */
.filters-panel {
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #60a5fa;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.08);
}

.filters-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 6px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-highlight {
  border-radius: 14px;
  border: 1px solid #60a5fa;
  background: #dbeafe;
  padding: 8px 10px;
}

.label {
  font-size: 12px;
  color: #1d4ed8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.label span.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #bfdbfe;
  color: #1e3a8a;
}

select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  outline: none;
  transition: all 0.12s ease;
}

select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.5);
}

.hint {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
}

/* KULLANIM KUTUSU */
.usage-box {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fefce8;
  border: 1px solid #facc15;
  font-size: 11px;
  color: #4b5563;
}

.usage-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #92400e;
}

.usage-box ol {
  margin: 0 0 0 18px;
  padding: 0;
}

.usage-box li {
  margin-bottom: 2px;
}

/* SONUÇLAR */
.results {
  margin-top: 6px;
}

.results-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

.no-results {
  font-size: 13px;
  color: #6b7280;
  padding: 8px 0;
}

.group-block {
  margin-bottom: 14px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.group-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: .02em;
  margin-bottom: 6px;
  border-bottom: 1px dashed #d1d5db;
  padding-bottom: 3px;
  color: #111827;
}

.items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

@media (min-width: 800px) {
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 12px;
}

.item-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.cb-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
}

.cb-row input {
  margin: 0;
}

.item-dimension {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.item-title {
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
}

.item-right {
  text-align: right;
  font-size: 12px;
  flex-shrink: 0;
}

.price {
  font-weight: 800;
  font-size: 15px;
  color: #1d4ed8;
  white-space: nowrap;
}

/* EK SEÇİLEBİLİR ÜRÜNLER */
.extras-section {
  margin-top: 12px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
}

.extras-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.extras-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.extras-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-small {
  border-radius: 999px;
  border: 1px solid #9ca3af;
  background: #ffffff;
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
}

.btn-small:hover {
  background: #e5e7eb;
}

.extras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

@media (min-width: 640px) {
  .extras-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.extra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.extra-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.extra-price {
  font-weight: 600;
  color: #1f2937;
  font-size: 11px;
}

/* ÖZELLİKLER BLOĞU (SPOTLAR) */
.features {
  margin-top: 14px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0f172a;
  border: 1px solid #bae6fd;
}

.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(59,130,246,0.25);
  overflow: hidden;
}

.feature-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-title {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.feature-desc {
  font-size: 11px;
  color: #374151;
}

/* TOPLAM ALANI (EKRAN) */
.totals {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid #4b5563;
  background: #111827;
  color: #f9fafb;
  font-size: 14px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.total-row span.label {
  font-size: 13px;
  color: #e5e7eb;
}

.total-row span.value {
  font-weight: 700;
  color: #f9fafb;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.total-row.main {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #9ca3af;
  font-size: 16px;
}

.total-row.main span.value {
  font-size: 24px;
  font-weight: 900;
  color: #facc15;
}

.total-row .muted {
  font-size: 11px;
  color: #9ca3af;
  margin-left: 6px;
  font-weight: 400;
}

.discount-input {
  width: 60px;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 12px;
  text-align: right;
  outline: none;
  color: #111827;
}

.discount-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.5);
}

.actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg,#3b82f6,#6366f1);
  color: #f9fafb;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(59,130,246,0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 35px rgba(59,130,246,0.55);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  border-radius: 999px;
  border: 1px solid #9ca3af;
  background: #ffffff;
  font-size: 12px;
  padding: 7px 14px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* GALERİ BLOĞU (EKRAN) */
.gallery-block {
  margin-bottom: 12px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}

.gallery-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111827;
}

.gallery-text {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.gallery-grid img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gallery-grid img:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15,23,42,0.25);
}

/* KARŞILAŞTIRMA TABLOSU */
.compare-section {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #d1d5db;
}

.compare-section h2 {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #111827;
}

.compare-table-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: #ffffff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: center;
}

.compare-table th,
.compare-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #e5e7eb;
}

.compare-table thead th {
  background: #f3f4f6;
  font-size: 12px;
}

.compare-head-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.compare-head-flex img {
  width: 260px;
  height: 136px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* FOOTER */
.footer {
  margin-top: 16px;
  font-size: 11px;
  color: #4b5563;
  border-top: 1px dashed #d1d5db;
  padding-top: 8px;
}

.footer strong {
  display: block;
  margin-bottom: 2px;
}

.footer-ref {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #f97316;
  font-size: 11px;
  color: #7c2d12;
}

.footer-ref-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-ref a {
  color: #b45309;
  font-weight: 600;
  text-decoration: none;
}

.footer-ref a:hover {
  text-decoration: underline;
}

/* WHATSAPP FAB */
.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(34,197,94,0.6);
  text-decoration: none;
  color: #ffffff;
  z-index: 9000;
}

.whatsapp-fab:hover {
  filter: brightness(1.05);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* MOBİL HEMEN ARA BUTONU */
.call-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #16a34a;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(22,163,74,0.6);
  text-decoration: none;
  color: #ffffff;
  z-index: 9000;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 640px) {
  .call-fab {
    display: flex;
  }
}

/* IMAGE POPUP / LIGHTBOX */
.image-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.image-modal-backdrop.show {
  display: flex;
}

.image-modal-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.85);
  background: #020617;
}

.image-modal-dialog img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #020617;
  cursor: pointer;
}

.image-modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: rgba(15,23,42,0.8);
  color: #e5e7eb;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 999px;
}

.image-modal-close:hover {
  background: rgba(30,64,175,0.9);
  color: #f9fafb;
}

/* PRINT ALANI */
#printArea {
  display: none;
}

.print-wrapper {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  color: #111827;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 10px 0;
  font-size: 10px;
}

.print-table th,
.print-table td {
  border: 1px solid #d1d5db;
  padding: 4px 4px;
  text-align: left;
}

.print-table th {
  background: #f3f4f6;
  font-weight: 600;
}

.print-totals {
  margin-top: 10px;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  font-size: 13px;
  border: 2px solid #111827;
  border-radius: 10px;
  padding: 8px 10px;
}

.print-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.print-totals-row:last-child {
  margin-bottom: 0;
}

.print-totals-label {
  font-weight: 600;
}

.print-totals-value {
  font-weight: 700;
}

.print-totals-grand {
  font-size: 18px;
  font-weight: 900;
}

.print-gallery {
  margin-top: 12px;
}

.print-gallery-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 11px;
}

.print-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.print-gallery-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

@media print {
  body {
    background: #ffffff;
    padding: 0;
  }
  .page,
  .whatsapp-fab,
  .call-fab {
    display: none !important;
  }
  #printArea {
    display: block;
    padding: 16px 18px;
  }
}
/* ============================
   HEADER YENİ DÜZEN (EK BLOK)
   ============================ */

/* Sol ana blok: logo + başlık */
.top-bar-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Sağ taraf: metin + 2 buton */
.top-bar-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Küçük üst şerit yazı */
.header-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sağ üstteki kısa açıklama */
.header-meta {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}

/* Butonları yan yana tutan alan */
.header-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Primary buton ekstra ayar */
.header-cta {
  text-decoration: none;
  font-size: 12px;
  padding: 6px 14px;
}

/* Secondary buton ekstra ayar */
.header-cta-secondary {
  text-decoration: none;
  font-size: 12px;
  padding: 6px 14px;
}

/* ========== MOBİL DÜZEN ========== */
@media (max-width: 640px) {
  /* Top bar dikey hizalansın */
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Logo üstte, yazılar altında – yan yana değil */
  .top-bar-main {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .logo-wrap img {
    height: 40px;
  }

  .header {
    margin-top: 6px;
    width: 100%;
  }

  /* Sağ blok da alta insin, tam genişlikte olsun */
  .top-bar-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    align-items: flex-start;
  }

  .header-buttons {
    justify-content: flex-start;
  }

  /* Metni kır, çok taşmasın */
  .header-meta {
    white-space: normal;
    font-size: 10px;
    margin-bottom: 4px;
  }

  /* Başlık hafif küçülüp satır içi düzgün dursun */
  .header-title {
    font-size: 18px;
    line-height: 1.2;
    text-align: left;
  }

  .header-cta,
  .header-cta-secondary {
    font-size: 11px;
    padding: 6px 10px;
  }
}
/* İki butonu tamamen aynı yap (secondary stil) */
.header-cta,
.header-cta-secondary {
  border-radius: 999px;
  border: 1px solid #9ca3af;
  background: #ffffff;
  font-size: 12px;
  padding: 7px 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  color: #111827;
}

.header-cta:hover,
.header-cta-secondary:hover {
  background: #e5e7eb;
}
/* HEADER BUTONLARINDA GÖLGE OLMASIN */
.header-cta,
.header-cta-secondary {
  box-shadow: none !important;
}

.header-cta:hover,
.header-cta-secondary:hover {
  box-shadow: none !important;
}

/* ===========================
   TIR KANTARI FOTO GALERİSİ
   =========================== */

.tir-gallery-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #d1d5db;
}

.tir-gallery-heading {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #111827;
}

.tir-gallery-intro {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.tir-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 640px) {
  .tir-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .tir-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tir-gallery-item {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  font-size: 11px;
  display: flex;
  flex-direction: column;
}

.tir-gallery-link {
  display: block;
  line-height: 0;
}

.tir-gallery-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.tir-gallery-link:hover .tir-gallery-thumb {
  transform: scale(1.03);
  opacity: 0.95;
}

.tir-gallery-caption {
  padding: 6px 7px 7px;
  color: #374151;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .tir-gallery-thumb {
    height: 110px;
  }
}

/* Lightbox – tıklayınca büyüsün */
.tir-gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.tir-gallery-lightbox.show {
  display: flex;
}

.tir-gallery-lightbox-dialog {
  position: relative;
  max-width: 96vw;
  max-height: 96vh;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
}

.tir-gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 96vh;
  object-fit: contain;
}

.tir-gallery-lightbox-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  color: #e5e7eb;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.tir-gallery-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 999px;
}

.tir-gallery-lightbox-close:hover {
  background: rgba(37, 99, 235, 0.9);
}
/* TIR GALERİ – Daha sıkı yerleşim */
.tir-gallery-section {
  padding: 10px 0 8px;          /* Üst/alt boşluk azalsın */
}

.tir-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 4px;                     /* Kartlar arası boşluk az */
}

/* Her bir kart daha kompakt olsun */
.tir-gallery-item {
  padding: 2px;                 /* İç boşluk minimum */
  margin: 0;                    /* Fazla marjin olmasın */
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* Fotoğraf tam karta otursun */
.tir-gallery-thumb {
  display: block;
  width: 100%;
  height: 95px;                 /* Daha alçak kutu */
  object-fit: cover;
  border-radius: 4px;
}

/* Alt yazı da sıkı dursun */
.tir-gallery-caption {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
}
/* Lightbox okları */
.tir-lightbox-prev,
.tir-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 28px;
  width: 40px;
  height: 50px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tir-lightbox-prev { left: 10px; }
.tir-lightbox-next { right: 10px; }

.tir-lightbox-prev:hover,
.tir-lightbox-next:hover {
  background: rgba(0,0,0,0.7);
}
.header-buttons a svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.header-buttons a span {
  vertical-align: middle;
}
html {
  scroll-behavior: smooth;
}