/* ============================================================
   GENEL DEĞİŞKENLER & RESET
   ============================================================ */
:root {
  --primary:     #f37020;   /* Turuncu */
  --primary-dk:  #d45e0a;
  --dark:        #222222;
  --dark2:       #333333;
  --gray:        #777777;
  --light-bg:    #f8f9f9;
  --border:      #e9e9e9;
  --white:       #ffffff;
  --font-head:   'Oswald', sans-serif;
  --font-body:   'Lato', sans-serif;
  --header-h:    90px;
  --transition:  0.3s ease;
  --radius:      4px;
  --shadow:      0 4px 20px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray);
  background: var(--white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   YARDIMCI
   ============================================================ */
.btn {
  display: inline-block;
  padding: 10px 26px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn:hover { background: var(--primary-dk); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.heading-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 14px;
}
.section-header p {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: background var(--transition), box-shadow var(--transition);
}

#masthead.scrolled {
  background: rgba(255,255,255,1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}

.header-inner { padding: 0 20px; }

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  position: relative;
}

/* Logo */
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.logo a {
  display: flex;
  align-items: center;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark2);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.logo-text em {
  color: var(--primary);
  font-style: normal;
}
.logo img {
  height: 52px;
  width: auto;
}

/* Sağ alan */
.header-right {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  min-height: 72px;
  padding-top: 0;
  padding-right: 0;
  position: relative;
  gap: 0;
}

.header-top-bar {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 6px 0;
  border-bottom: none;
  margin-bottom: 0;
  min-height: 56px;
  margin-left: 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  color: var(--primary);
  font-size: 13px;
  border: 1px solid var(--primary);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.header-label {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-right: 4px;
}
.phone-number {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* Nav menü */
#main-nav {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: color var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--primary-dk);
}
.nav-menu > li > a .fa-home { font-size: 15px; color: var(--dark2); }

/* Dropdown */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 210px;
  border-top: 3px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 999;
  border-radius: 0 0 var(--radius) var(--radius);
}
.has-sub:hover .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark2);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover {
  background: var(--light-bg);
  color: var(--primary);
  padding-left: 24px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--primary);
  cursor: pointer;
  padding: 6px;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  margin-top: var(--header-h);
  background: #000;
}

.hero-video {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
  background: #000;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; }

/* Fotoğraf yokken gradient arka plan */
.slide:not([style*="url("]),
.slide[style*="url('')"],
.slide[style*='url("")'] {
  background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.25) 60%,
    rgba(0,0,0,0.05) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 720px;
  animation: slideIn 0.8s ease forwards;
}
@keyframes slideIn {
  from { transform: translateX(-40px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.slide-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.slide-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 30px;
  line-height: 1.6;
}
.btn-hero {
  display: inline-block;
  padding: 13px 32px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-hero:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243,112,32,0.4);
}

/* Slider okları */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: var(--white);
  border: none;
  width: 36px; height: 110px;
  font-size: 15px;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition);
}
.slider-btn:hover { background: rgba(243,112,32,0.8); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* Slider noktaları */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition);
}
.dot.active { background: var(--primary); border-color: var(--primary); }

/* ============================================================
   ÜRÜN KATEGORİLERİ BAR
   ============================================================ */
.product-bar {
  background: var(--white);
  box-shadow: 0 6px 30px rgba(0,0,0,0.10);
  position: relative;
  z-index: 10;
  margin-top: 0;
}

.product-bar-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.product-item {
  flex: 1 1 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 12px;
  text-align: center;
  color: var(--dark2);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
  border-right: 1px solid var(--border);
  transition: all var(--transition);
  line-height: 1.3;
}
.product-item:last-child { border-right: none; }
.product-item:hover {
  background: var(--primary);
  color: var(--white);
}

.product-icon {
  width: 52px; height: 52px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  transition: all var(--transition);
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.product-item:hover .product-icon {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* ============================================================
   HİZMET KUTULARI
   ============================================================ */
.services-section {
  padding: 80px 0 70px;
  background: var(--light-bg);
}

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

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--border);
}
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img img { transform: scale(1.06); }

/* Görsel yoksa icon fallback */
.service-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f37020 0%, #d45e0a 100%);
  font-size: 3rem;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-img.no-img .service-img-placeholder,
.service-img img[src=""] ~ .service-img-placeholder {
  opacity: 1;
}

.service-body {
  padding: 22px 20px 24px;
}
.service-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--dark2);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.service-body p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 16px;
}
.service-link {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .4px;
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.service-link:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   KATEGORI URUN KARTLARI
   ============================================================ */
.category-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-product-image {
  display: block;
  position: relative;
  height: 190px;
  background: var(--light-bg);
  overflow: hidden;
}

.category-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--white);
  padding: 8px;
  transition: transform 0.45s ease;
}

.category-product-card:hover .category-product-image img {
  transform: scale(1.02);
}

.category-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f37020 0%, #d45e0a 100%);
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
}

.category-product-body {
  padding: 16px;
}

.category-product-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--dark2);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.category-product-model {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 12px;
  margin-bottom: 8px;
}

.category-product-desc {
  color: #666;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ============================================================
   İSTATİSTİKLER
   ============================================================ */
.stats-section {
  background: var(--dark2);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  display: inline;
}
.stat-plus {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  margin-left: 2px;
}
.stat-item p {
  font-family: var(--font-head);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-top: 8px;
}

/* ============================================================
   ŞUBELER / HARİTA
   ============================================================ */
.branches-section {
  padding: 80px 0;
  background: var(--white);
}

.branches-map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--light-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  overflow: hidden;
}
/* Gerçek harita iframe için: */
.branches-map-placeholder iframe {
  width: 100%; height: 100%;
  border: none;
}
.map-overlay-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray);
}

.map-overlay-text span {
  display: block;
  width: 100%;
}

.map-overlay-text iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}
.map-overlay-text i {
  font-size: 3rem;
  color: var(--border);
}

.branches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.branch-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--dark2);
  cursor: pointer;
  transition: all var(--transition);
}
.branch-tag i { color: var(--primary); }
.branch-tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.branch-tag:hover i { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: #1a1a1a;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

/* Sosyal şerit */
.footer-social-bar {
  background: #111;
  padding: 14px 0;
  border-bottom: 2px solid var(--primary);
}
.footer-social-flex {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-social-flex > span {
  font-family: var(--font-head);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-socials a:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

/* Footer widget'ları */
.footer-widgets {
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-col p {
  line-height: 1.7;
  margin-bottom: 14px;
}
.footer-more-link {
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.footer-more-link:hover { color: var(--primary-dk); }

.footer-links li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  display: block;
  padding: 2px 0;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact li i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}
.footer-contact a {
  color: rgba(255,255,255,0.6);
}
.footer-contact a:hover { color: var(--primary); }

.footer-support-note {
  padding: 10px 14px;
  background: rgba(243,112,32,0.12);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.working-hours { display: flex; flex-direction: column; gap: 8px; }
.working-hours li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}
.working-hours li span {
  color: var(--primary);
  font-weight: 600;
}

/* Footer alt çizgi */
.footer-bottom {
  background: #111;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--primary); }

.footer-bottom-nav {
  display: flex;
  gap: 0;
}
.footer-bottom-nav li a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.footer-bottom-nav li:last-child a { border-right: none; }
.footer-bottom-nav a:hover { color: var(--primary); }

/* ============================================================
   İLETİŞİM SAYFASI
   ============================================================ */
body.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.category-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.category-page main {
  flex: 1;
}

.contact-page-main {
  flex: 1;
  padding-top: calc(var(--header-h) + 38px);
  background: var(--light-bg);
}

.contact-section {
  padding: 30px 0 24px;
}

.contact-info-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.contact-info-card h3,
.contact-map-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--dark2);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact-info-card p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: var(--gray);
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

.contact-info-card a {
  color: var(--primary);
}

.contact-map-section {
  padding: 12px 0 70px;
}

.contact-map-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-map-frame {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ============================================================
   YUKARIYA ÇIK
   ============================================================ */
#backToTop {
  position: fixed;
  bottom: 120px;
  right: 18px;
  width: 42px; height: 42px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(243,112,32,0.4);
}
#backToTop:hover { background: var(--primary-dk); transform: translateY(-2px); }
#backToTop.show { display: flex; }

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 55px;
  right: 18px;
  width: 54px; height: 54px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  animation: pulse 2.5s infinite;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--white); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  /* index: 3 kartlı grid — tek sınıf kuralından daha spesifik olmalı */
  .services-grid.services-grid--three { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(4, 1fr); }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); }
  .contact-info-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .container { padding: 0 14px; }

  .header-top-bar { display: none; }
  .header-flex    { height: var(--header-h); }
  .header-right {
    min-height: auto;
    flex: 0 0 auto;
    padding-top: 0;
    padding-right: 0;
  }
  .logo {
    position: static;
    transform: none;
  }
  .logo img { height: 44px; }
  #main-nav {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }

  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
  }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.open .sub-menu {
    display: block;
    position: static;
    border-top: none;
    box-shadow: none;
    background: var(--light-bg);
  }

  .hero-slider {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .slide-content { padding: 0 32px; }

  .product-bar { margin-top: 0; }
  .product-bar-grid { flex-wrap: wrap; }
  .product-item {
    flex: 1 1 calc(33.333% - 1px);
    min-width: 80px;
    padding: 14px 8px;
  }
  .product-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item     { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(2), .stat-item:nth-child(4) { border-right: none; }
  .contact-page-main { padding-top: calc(var(--header-h) + 22px); }
  .contact-map-card { padding: 16px; }
  .map-overlay-text iframe { height: 420px; }
}

@media (max-width: 600px) {
  .hero-slider {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid.services-grid--three { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .contact-info-row { grid-template-columns: 1fr; }
  .category-products-grid { grid-template-columns: 1fr; }

  .product-item  { flex: 1 1 calc(50% - 1px); }
  .product-item span { font-size: 11px; }
  .slide-content h1 { font-size: 1.7rem; }
  .map-overlay-text iframe { height: min(42vh, 320px); min-height: 240px; }

  .footer-bottom-flex { flex-direction: column; text-align: center; }
  .footer-bottom-nav  { flex-wrap: wrap; justify-content: center; }
}

/* Çok dar ekranlarda istatistik rakamları taşmasın */
@media (max-width: 420px) {
  .stat-number { font-size: 2.25rem; }
  .stat-plus { font-size: 1.5rem; }
  .stat-item { padding: 14px 10px; }
  .stat-item p { font-size: 12px; letter-spacing: 0.35px; }
}

/* ============================================================
   MOBIL HOTFIX (IPHONE 14 PRO MAX VE BENZERI)
   Masaustu gorunume dokunmadan sadece mobilde override eder.
   ============================================================ */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  body,
  .container,
  #heroSlider,
  .product-bar-grid,
  .product-item {
    box-sizing: border-box;
  }

  .services-section {
    padding: 48px 0 44px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

  .branches-section {
    padding: 48px 0 56px;
  }

  .footer-contact li span {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-contact a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  #backToTop {
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    right: calc(18px + env(safe-area-inset-right, 0px));
  }

  .whatsapp-float {
    bottom: calc(55px + env(safe-area-inset-bottom, 0px));
    right: calc(18px + env(safe-area-inset-right, 0px));
  }

  .header-inner {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  /* Slider mobilde tasma ve buyukluk duzeltmesi */
  .hero-slider {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    position: relative;
    margin-top: var(--header-h);
    background: #000;
  }

  .slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 34px;
    height: 70px;
    font-size: 13px;
  }

  .slider-btn.prev { left: 0; }
  .slider-btn.next { right: 0; }

  .slider-dots {
    bottom: 10px;
    z-index: 21;
  }

  /* Urun kategori gridi mobilde 2 kolon */
  .product-bar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .product-item {
    width: 100%;
    min-width: 0;
    padding: 14px 8px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .product-item:nth-child(2n) {
    border-right: none;
  }

  .product-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(240px, calc(100% - 24px));
    border-right: 1px solid var(--border);
  }
}
