:root {
  --about-gap: 16px;
  --about-thumb-h: 170px;
  --project-thumb-h: 220px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Page header (internal pages) */
.page-header {
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
}
.page-header h1 {
  font-weight: 700;
}

/* Home hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero h1 {
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hero .lead {
  max-width: 520px;
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1.4rem;
}

.service-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

/* Home about image stack */
.about-stack {
  gap: var(--about-gap);
}
.about-thumb {
  width: 100%;
  object-fit: cover;
  height: var(--about-thumb-h);
}
.about-thumb--tall {
  height: calc(var(--about-thumb-h) * 2 + var(--about-gap));
}

/* Project cards */
.project-card img {
  height: var(--project-thumb-h);
  object-fit: cover;
}
.home-projects .card-img-top {
  height: var(--project-thumb-h);
  object-fit: cover;
}

/* Referans galeri */
.gallery-tile {
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}
.gallery-thumb {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery-modal-img {
  max-height: min(78vh, 900px);
  width: auto;
  object-fit: contain;
}
.gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 0.65rem;
  border-radius: 50%;
}
.gallery-nav--prev {
  left: 0.5rem;
}
.gallery-nav--next {
  right: 0.5rem;
}
@media (max-width: 991.98px) {
  .gallery-nav--prev {
    left: 0.25rem;
  }
  .gallery-nav--next {
    right: 0.25rem;
  }
}

footer {
  background: #051427;
  color: rgba(255, 255, 255, 0.7);
}
footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}

/* Bölge sayfası hero */
.bolge-hero {
  color: #fff;
}
.bolge-hero__inner {
  padding-top: 48px;
  padding-bottom: 48px;
}
.bolge-hero__title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.25;
  max-width: 700px;
}
.bolge-hero__desc {
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  max-width: 580px;
  line-height: 1.6;
}
@media (max-width: 575.98px) {
  .bolge-hero__inner {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .bolge-hero__inner .btn {
    width: 100%;
  }
}

/* location-content tipografisi (mobil uyumlu) */
.location-content {
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  line-height: 1.75;
}
.location-content p  { margin-bottom: .85rem; }
.location-content strong { color: #1a2535; }
.location-content em { font-style: italic; }

/* Blog kartları */
.blog-card {
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1) !important;
}
.blog-content h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2rem; margin-bottom: .75rem; }
.blog-content h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: .5rem; }
.blog-content p  { margin-bottom: 1rem; }
.blog-content ul, .blog-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: .4rem; }
.blog-content a  { color: #0d6efd; }
.blog-content strong { color: #1a2535; }

/* İlçe/lokasyon kartları */
.location-card {
  border: 1px solid #e5eaf0;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.location-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 4px 16px rgba(13,110,253,.12);
  transform: translateY(-2px);
}

/* text-white-75 yardımcısı */
.text-white-75 { color: rgba(255,255,255,.75); }

/* ── Havuz kimyasalları kataloğu ── */
.page-header--compact {
  padding: 72px 0 36px;
}
.page-header__lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}
.chem-breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}
.chem-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.chem-breadcrumb a:hover {
  color: #fff;
}
.chem-breadcrumb .active {
  color: #fff;
}

.chem-catalog {
  padding: 1.25rem 0 3rem;
  background: #f6f8fb;
}
@media (min-width: 768px) {
  .chem-catalog {
    padding: 2rem 0 4rem;
  }
}
html {
  scroll-behavior: smooth;
}

.chem-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  font-size: 0.85rem;
  color: #5c6570;
  line-height: 1.5;
}
.chem-notice__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #0d6efd;
  margin-top: 0.1rem;
}
.chem-notice__text strong {
  color: #212529;
  font-weight: 600;
}

/* Kategori gezinme */
.chem-nav {
  margin-bottom: 1.75rem;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.chem-nav__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #868e96;
  margin: 0 0 0.55rem;
}
.chem-nav__scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chem-nav__icon {
  font-size: 0.9rem;
  opacity: 0.85;
}
.chem-nav__text {
  line-height: 1.2;
}
@media (min-width: 768px) {
  .chem-nav {
    position: sticky;
    top: 70px;
    z-index: 50;
    margin-bottom: 2rem;
  }
  .chem-nav__scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .chem-nav__scroll::-webkit-scrollbar {
    display: none;
  }
}
.chem-nav__pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #343a40;
  background: #f6f8fb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .chem-nav__pill {
    font-size: 0.8rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
  }
}
.chem-nav__pill:hover,
.chem-nav__pill:focus-visible {
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.3);
  background: rgba(13, 110, 253, 0.06);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
}
.chem-nav__pill[data-cat="dezenfektan"] .chem-nav__icon { color: #0d6efd; }
.chem-nav__pill[data-cat="ph"] .chem-nav__icon { color: #6f42c1; }
.chem-nav__pill[data-cat="bakim"] .chem-nav__icon { color: #198754; }
.chem-nav__pill[data-cat="sivi"] .chem-nav__icon { color: #0dcaf0; }
.chem-nav__count {
  font-size: 0.68rem;
  font-weight: 600;
  color: #868e96;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  line-height: 1.3;
}
.chem-nav__pill:hover .chem-nav__count,
.chem-nav__pill:focus-visible .chem-nav__count {
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
}

/* Kategori bölümü */
.chem-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 6.5rem;
}
@media (min-width: 768px) {
  .chem-section {
    scroll-margin-top: 9rem;
    margin-bottom: 3rem;
  }
}
.chem-section__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border-left-width: 4px;
  border-left-style: solid;
}
.chem-section--dezenfektan .chem-section__head { border-left-color: #0d6efd; }
.chem-section--ph .chem-section__head { border-left-color: #6f42c1; }
.chem-section--bakim .chem-section__head { border-left-color: #198754; }
.chem-section--sivi .chem-section__head { border-left-color: #0dcaf0; }
.chem-section__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.15rem;
}
.chem-section--dezenfektan .chem-section__icon {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}
.chem-section--ph .chem-section__icon {
  background: rgba(111, 66, 193, 0.1);
  color: #6f42c1;
}
.chem-section--bakim .chem-section__icon {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}
.chem-section--sivi .chem-section__icon {
  background: rgba(13, 202, 240, 0.12);
  color: #0aa2c0;
}
.chem-section__info {
  flex: 1;
  min-width: 0;
}
.chem-section__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #212529;
}
@media (min-width: 576px) {
  .chem-section__title {
    font-size: 1.15rem;
  }
}
.chem-section__desc {
  font-size: 0.78rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}
@media (min-width: 576px) {
  .chem-section__desc {
    font-size: 0.82rem;
  }
}
.chem-section__badge {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  color: #495057;
  background: #f1f3f5;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .chem-section__head {
    flex-wrap: wrap;
    padding: 0.8rem 0.85rem;
  }
  .chem-section__badge {
    width: 100%;
    text-align: center;
    margin-top: 0.15rem;
  }
}

/* Ürün kartı */
.chem-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
@media (min-width: 576px) {
  .chem-card {
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  .chem-card:hover {
    border-color: rgba(13, 110, 253, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
  }
}
.chem-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  padding: 0.75rem;
  text-decoration: none;
}
.chem-card__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.chem-card:hover .chem-card__img {
  transform: scale(1.04);
}
.chem-card__tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
}
.chem-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem 0.85rem 0.85rem;
}
@media (min-width: 768px) {
  .chem-card__body {
    padding: 0.85rem 1rem 1rem;
  }
}
.chem-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}
@media (min-width: 768px) {
  .chem-card__title {
    font-size: 0.88rem;
  }
}
.chem-card__title a {
  color: #212529;
  text-decoration: none;
}
.chem-card__title a:hover {
  color: #0d6efd;
}
.chem-card__summary {
  font-size: 0.72rem;
  color: #868e96;
  line-height: 1.45;
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .chem-card__summary {
    font-size: 0.76rem;
  }
}
.chem-card__packs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}
.chem-card__packs li {
  font-size: 0.68rem;
  font-weight: 600;
  color: #495057;
  background: #f1f3f5;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.chem-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.chem-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.chem-card__link:hover {
  color: #0a58ca;
}
.chem-card__link .bi {
  font-size: 1.15rem;
  margin-left: -0.15rem;
}
.chem-card__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.15s, transform 0.15s;
}
.chem-card__wa:hover {
  background: #1ebe57;
  color: #fff;
  transform: scale(1.06);
}

/* Mobil: yatay liste kartı */
@media (max-width: 575.98px) {
  .chem-card {
    flex-direction: row;
    align-items: stretch;
    border-radius: 12px;
  }
  .chem-card__media {
    width: 108px;
    min-width: 108px;
    aspect-ratio: auto;
    align-self: stretch;
    padding: 0.6rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }
  .chem-card__img {
    max-height: 88px;
  }
  .chem-card__body {
    padding: 0.65rem 0.75rem 0.7rem;
    min-width: 0;
  }
  .chem-card__title {
    font-size: 0.84rem;
    margin-bottom: 0.2rem;
  }
  .chem-card__summary {
    -webkit-line-clamp: 2;
    margin-bottom: 0.4rem;
    font-size: 0.74rem;
  }
  .chem-card__packs {
    margin-bottom: 0.45rem;
  }
  .chem-card__actions {
    padding-top: 0.35rem;
  }
  .chem-card__tag {
    font-size: 0.58rem;
    top: 0.35rem;
    left: 0.35rem;
    max-width: 5.5rem;
    line-height: 1.2;
  }
  .chem-grid {
    --bs-gutter-y: 0.65rem;
  }
}

/* Alt CTA */
.chem-cta {
  text-align: center;
  padding: 2rem 1.25rem;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
}
.chem-cta__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.chem-cta__text {
  font-size: 0.85rem;
  color: #868e96;
  max-width: 28rem;
  margin: 0 auto 1rem;
  line-height: 1.5;
}
.chem-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Kimyasal ürün detay */
.chem-detail {
  padding: 1.5rem 0 3.5rem;
  background: #f6f8fb;
}
@media (min-width: 992px) {
  .chem-detail {
    padding: 2rem 0 4rem;
  }
}
.chem-detail__gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.chem-detail__img {
  max-width: 100%;
  max-height: min(320px, 50vw);
  width: auto;
  height: auto;
  object-fit: contain;
}
.chem-detail__content {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}
@media (min-width: 768px) {
  .chem-detail__content {
    padding: 1.5rem 1.75rem;
  }
}
.chem-detail__content p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #5c6570;
}
.chem-detail__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}
.chem-detail__badge--info {
  background: #f1f3f5;
  color: #495057;
}
.chem-detail__badge--multi {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
}

.chem-sidebar {
  position: sticky;
  top: 88px;
}
.chem-sidebar__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
}
.chem-sidebar__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.chem-sidebar__sub {
  font-size: 0.8rem;
  color: #868e96;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.chem-pack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.chem-pack-row:last-of-type {
  border-bottom: none;
}
.chem-pack-row__size {
  font-size: 0.9rem;
  font-weight: 600;
}
.chem-pack-row__actions {
  display: flex;
  gap: 0.35rem;
}
.chem-pack-row__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.chem-pack-row__btn--wa {
  background: #25d366;
  color: #fff;
}
.chem-pack-row__btn--wa:hover {
  background: #1ebe57;
  color: #fff;
}
.chem-pack-row__btn--tel {
  background: #f1f3f5;
  color: #0d6efd;
}
.chem-pack-row__btn--tel:hover {
  background: rgba(13, 110, 253, 0.12);
  color: #0a58ca;
}
.chem-sidebar__primary {
  margin-top: 0.75rem;
}
.chem-related {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1rem 1.15rem;
}
.chem-related__title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #868e96;
  margin: 0 0 0.65rem;
}
.chem-related__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  text-decoration: none;
  color: #212529;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.82rem;
  line-height: 1.3;
}
.chem-related__item:last-child {
  border-bottom: none;
}
.chem-related__item:hover {
  color: #0d6efd;
}
.chem-related__thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
  flex-shrink: 0;
}
.chem-related__more {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.65rem;
  text-decoration: none;
}

/* Eski sınıf uyumluluğu (admin vb.) */
.chemical-detail__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 1.5rem;
}
.chemical-detail__img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
}


