/* ============================================
   TISPACK - Responsive Stil Dosyası
   ============================================ */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
  :root {
    --font-3xl: 2rem;
    --font-2xl: 1.75rem;
    --font-xl: 1.25rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  /* Grid Adjustments */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Header */
  .nav-menu {
    gap: var(--spacing-md);
  }

  .nav-menu li a {
    padding: 0.5rem;
    font-size: var(--font-small);
  }

  /* Hero Section */
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: var(--font-base);
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  :root {
    --font-3xl: 1.75rem;
    --font-2xl: 1.5rem;
    --font-xl: 1.125rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Grid Adjustments */
  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .col,
  .col-2,
  .col-3,
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Header */
  .header-top {
    display: none;
  }

  .header-main .container {
    flex-wrap: wrap;
  }

  .logo {
    height: 40px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
  }

  .hamburger {
    display: flex;
  }

  /* Hero Section */
  .hero-section {
    padding: var(--spacing-xl) 0;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section p {
    font-size: var(--font-small);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Services Section */
  .services-section {
    padding: var(--spacing-xl) 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .service-card {
    padding: var(--spacing-lg);
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  /* Products Section */
  .products-section {
    padding: var(--spacing-xl) 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .product-card-img {
    height: 200px;
  }

  /* Contact Section */
  .contact-section {
    padding: var(--spacing-xl) 0;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .contact-form,
  .contact-info {
    padding: var(--spacing-md);
  }

  /* Footer */
  .footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Buttons */
  .btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  /* Cards */
  .card {
    padding: var(--spacing-md);
  }

  /* Modal */
  .modal-content {
    max-width: 95%;
    margin: var(--spacing-sm);
    padding: var(--spacing-lg);
  }

  /* Forms */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Section Spacing */
  section {
    padding: var(--spacing-xl) 0;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
  :root {
    --font-3xl: 1.5rem;
    --font-2xl: 1.25rem;
    --font-xl: 1rem;
  }

  .container {
    padding: 0 var(--spacing-xs);
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.65rem 1rem;
    font-size: var(--font-small);
  }

  .product-card-img {
    height: 180px;
  }

  .modal-content {
    padding: var(--spacing-md);
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    padding: var(--spacing-md) 0;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .nav-menu {
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Print Styles */
@media print {
  .header-top,
  .hamburger,
  .btn,
  footer {
    display: none;
  }

  .container {
    max-width: 100%;
  }

  .hero-section {
    background: none;
    color: var(--dark-gray);
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .product-card-img,
  .card-img,
  .service-icon {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Touch Device Adjustments */
@media (hover: none) and (pointer: coarse) {
  /* Daha büyük touch hedefler */
  .btn {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
  }

  .nav-menu li a {
    min-height: 48px;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .form-control {
    min-height: 48px;
  }

  /* Hover efektlerini devre dışı bırak */
  .card:hover,
  .product-card:hover,
  .service-card:hover {
    transform: none;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Dark mode stilleri gerekirse buraya eklenebilir */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   iOS / Android Polish — kullanım kolaylığı
   ============================================ */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a, button, .btn, .lang-btn, .hamburger,
.product-card, .service-card, .category-filter,
.social-float, .modal-close {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

img {
  max-width: 100%;
  height: auto;
}

/* iPhone notch / home indicator için güvenli alan */
header {
  padding-top: env(safe-area-inset-top);
}

footer {
  padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
}

/* ============================================
   Mobil Üst Bilgi (header) — sıkışık görünümü düzelt
   ============================================ */
@media (max-width: 767px) {
  .header-main {
    padding: var(--spacing-sm) 0;
  }

  .header-main .container {
    gap: var(--spacing-xs);
  }

  .lang-switcher {
    margin-left: auto;
    margin-right: var(--spacing-xs);
    gap: 4px;
  }

  .lang-btn {
    padding: 6px 9px;
    font-size: 11px;
    min-height: 36px;
  }

  .hamburger {
    padding: 8px;
  }

  /* İletişim bölümündeki inline font-size override'ları */
  .contact-item div[style*="font-size"],
  .contact-item strong[style*="font-size"],
  .contact-item a[style*="font-size"] {
    font-size: 0.95rem !important;
  }

  .contact-item-icon[style*="font-size"] {
    font-size: 1.5rem !important;
  }

  /* Footer header iletişim bilgisi paragraf */
  footer p {
    font-size: var(--font-small);
    line-height: 1.7;
  }

  /* Hero buttons biraz daha kompakt */
  .hero-buttons .btn {
    font-size: var(--font-base);
  }
}

/* ============================================
   Floating sosyal butonlar — mobilde rahat kullanım
   ============================================ */
@media (max-width: 767px) {
  .social-float-container {
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: calc(14px + env(safe-area-inset-left));
    gap: 10px;
  }

  .social-float {
    width: 50px;
    height: 50px;
  }

  .social-float svg {
    width: 26px;
    height: 26px;
  }

  /* İçeriğin float butonların altında kalmaması için body'e tampon */
  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 479px) {
  .social-float {
    width: 46px;
    height: 46px;
  }

  .social-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   Modal — küçük ekranlarda tam kullanılabilir
   ============================================ */
@media (max-width: 767px) {
  .modal-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-modal-img {
    max-height: 280px;
    object-fit: cover;
  }

  .product-gallery-thumb {
    width: 60px;
    height: 60px;
  }
}

/* ============================================
   Ürünler sayfası kategori menüsü — mobil
   ============================================ */
@media (max-width: 767px) {
  .products-sidebar {
    padding: var(--spacing-md);
  }

  .category-list {
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
  }

  .category-list li a {
    font-size: 0.8rem;
    padding: 8px 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}

/* ============================================
   Yumuşak görünüm — gölgeler & geçişler
   ============================================ */
@media (max-width: 767px) {
  .product-card,
  .service-card,
  .card {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
  }

  .product-card:active,
  .service-card:active {
    transform: scale(0.98);
    transition: transform 0.15s ease;
  }
}

/* ============================================
   KOMPAKT MOBİL — masaüstü hissi, küçük boyut
   ============================================ */
@media (max-width: 767px) {
  /* Genel font ölçeği — hepsi küçülsün */
  :root {
    --font-small: 0.75rem;
    --font-base: 0.875rem;
    --font-large: 0.95rem;
    --font-xl: 1.05rem;
    --font-2xl: 1.2rem;
    --font-3xl: 1.4rem;
    --spacing-xs: 0.35rem;
    --spacing-sm: 0.65rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.4rem;
    --spacing-xl: 1.8rem;
    --spacing-2xl: 2.2rem;
  }

  body {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Başlıklar */
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  h4 { font-size: 0.9rem; }

  /* Header / Logo kompakt */
  .logo {
    height: 34px;
  }

  .header-main {
    padding: 0.4rem 0;
  }

  /* Hero — yüksek olmasın */
  .hero-section {
    padding: 1.5rem 0;
  }

  .hero-section h1 {
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem;
  }

  .hero-section p {
    font-size: 0.8rem !important;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 0.5rem;
  }

  .hero-buttons .btn {
    width: auto;
    flex: 1;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-height: 38px;
  }

  /* About — sıkışık */
  .about-section {
    padding: 1.5rem 0;
  }

  .about-text h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .about-text p {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
  }

  /* Services — kart resmi küçük */
  .services-section {
    padding: 1.5rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .service-card {
    padding: 0.6rem;
    border-radius: 10px;
  }

  .service-card img,
  .service-card .service-icon {
    height: 100px !important;
    width: 100% !important;
    object-fit: cover;
  }

  .service-card h3 {
    font-size: 0.85rem;
    margin: 0.4rem 0 0.25rem;
  }

  .service-card p {
    font-size: 0.72rem;
    line-height: 1.45;
    margin: 0;
  }

  /* Section title */
  .section-title h2 {
    font-size: 1.2rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  /* Butonlar genel */
  .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    min-height: 38px;
    width: auto;
  }

  .btn-large {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Ürünler sayfası */
  .products-header {
    padding: 1.2rem 0 !important;
  }

  .products-header h1 {
    font-size: 1.3rem;
  }

  .products-header p {
    font-size: 0.8rem;
  }

  .products-page {
    padding: 1rem 0 !important;
  }

  .products-main {
    padding: 0.8rem !important;
  }

  .products-toolbar {
    gap: 0.5rem;
    margin-bottom: 0.8rem !important;
  }

  .search-box input,
  .sort-box select {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.85rem !important;
  }

  /* Ürün gridi — 2 sütun mobilde */
  .products-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }

  .product-card {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .product-card-img {
    height: 110px !important;
    width: 100%;
    object-fit: cover;
  }

  .product-card-body {
    padding: 0.5rem !important;
  }

  .product-card h3 {
    font-size: 0.8rem;
    margin: 0.25rem 0;
    line-height: 1.25;
  }

  .product-card p {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card .btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
    min-height: 32px;
  }

  .category-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  /* Sidebar kategori — daha küçük */
  .products-sidebar {
    padding: 0.7rem !important;
  }

  .products-sidebar h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
  }

  .category-list {
    gap: 3px 6px !important;
  }

  .category-list li a {
    font-size: 0.7rem !important;
    padding: 5px 7px !important;
    min-height: 30px !important;
  }

  /* Modal — mobilde de kompakt */
  .product-modal-img {
    max-height: 200px !important;
  }

  .product-modal-info h2 {
    font-size: 1.1rem;
  }

  .product-modal-info p {
    font-size: 0.8rem;
  }

  .product-features li {
    font-size: 0.78rem;
    padding: 0.3rem 0;
  }

  .product-gallery-thumb {
    width: 50px !important;
    height: 50px !important;
  }

  /* Contact section — kompakt */
  .contact-section {
    padding: 1.5rem 0;
  }

  .contact-content {
    gap: 0.8rem !important;
  }

  .contact-form,
  .contact-info {
    padding: 0.8rem !important;
  }

  .contact-form h3 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem !important;
  }

  .contact-info h3 {
    font-size: 1rem !important;
    margin-bottom: 0.6rem !important;
  }

  .form-group {
    margin-bottom: 0.6rem !important;
  }

  .form-label {
    font-size: 0.78rem !important;
  }

  .form-control {
    padding: 0.5rem 0.7rem !important;
    font-size: 16px !important; /* iOS zoom */
  }

  .contact-item {
    margin-bottom: 0.7rem !important;
    gap: 0.5rem !important;
  }

  .contact-item-icon,
  .contact-item span[style*="font-size"] {
    font-size: 1.1rem !important;
  }

  .contact-item div[style*="font-size"],
  .contact-item strong[style*="font-size"],
  .contact-item a[style*="font-size"] {
    font-size: 0.8rem !important;
  }

  /* Header üst telefon/email satırı */
  .header-contact span[style*="font-size"] {
    font-size: 0.8rem !important;
  }

  /* Footer kompakt */
  footer {
    padding: 1.2rem 0 0.6rem;
  }

  .footer-content {
    gap: 1rem !important;
  }

  .footer-section h3 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .footer-section p,
  .footer-section a,
  .footer-links li {
    font-size: 0.75rem !important;
    line-height: 1.55;
  }

  .footer-logo {
    height: 36px;
    margin-bottom: 0.5rem;
  }

  .footer-bottom {
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    font-size: 0.7rem;
  }

  /* About sayfası — varsa misyon/vizyon kartları */
  .about-content {
    gap: 0.8rem !important;
  }

  /* Section'lar arası boşluk azalt */
  section {
    padding: 1.5rem 0;
  }
}

/* === Çok küçük telefonlar (≤ 479px) — daha da agresif === */
@media (max-width: 479px) {
  body {
    font-size: 12.5px;
  }

  .hero-section h1 {
    font-size: 1.1rem !important;
  }

  .product-card-img {
    height: 95px !important;
  }

  .service-card img,
  .service-card .service-icon {
    height: 85px !important;
  }

  .product-card h3 {
    font-size: 0.75rem;
  }

  .product-card p {
    font-size: 0.65rem;
  }

  .product-card .btn {
    font-size: 0.65rem;
    min-height: 28px;
  }

  .category-list li a {
    font-size: 0.65rem !important;
    padding: 4px 5px !important;
  }

  .lang-btn {
    padding: 4px 7px;
    font-size: 10px;
    min-height: 30px;
  }

  .logo {
    height: 30px;
  }
}

/* ============================================
   MASAÜSTÜ HİSSİ — çok sütunlu yerleşim mobilde
   ============================================ */
@media (max-width: 767px) {
  /* Footer 3 sütun (masaüstü gibi) */
  .footer-content {
    grid-template-columns: 1.2fr 1fr 0.8fr !important;
    gap: 0.6rem !important;
    margin-bottom: 0.8rem !important;
  }

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

  .footer-section p,
  .footer-section a,
  .footer-links li {
    font-size: 0.65rem !important;
    line-height: 1.4 !important;
    word-break: break-word;
  }

  .footer-section h3 {
    font-size: 0.78rem !important;
    margin-bottom: 0.3rem !important;
  }

  .footer-logo {
    height: 30px !important;
    margin-bottom: 0.35rem !important;
  }

  .footer-links li {
    margin-bottom: 0.2rem;
  }

  /* About — mobilde tek sütun ortalı */
  .about-content {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
    max-width: 480px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .about-content .about-text {
    text-align: center !important;
  }

  .about-content .about-text h3 {
    text-align: center !important;
  }

  .about-content .about-text p {
    text-align: center !important;
  }

  /* İletişim sayfası — form + info yan yana */
  .contact-content {
    grid-template-columns: 1.4fr 1fr !important;
    gap: 0.7rem !important;
  }

  /* index.html iletişim bölümü */
  .contact-section .contact-content {
    grid-template-columns: 1.3fr 1fr !important;
  }

  /* İletişim item'ları daha kompakt — yatay düzeni koru */
  .contact-item {
    margin-bottom: 0.5rem !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
  }

  .contact-item-icon,
  .contact-item span:first-child {
    flex-shrink: 0;
  }

  /* Hero daha minimalize */
  .hero-section {
    padding: 1rem 0 !important;
    min-height: auto !important;
  }

  .hero-section h1 {
    font-size: 1.15rem !important;
    margin-bottom: 0.4rem !important;
  }

  .hero-section p {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.6rem !important;
  }

  .hero-buttons .btn {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.72rem !important;
    min-height: 34px !important;
  }

  /* About bölümü kompakt */
  .about-section {
    padding: 1rem 0 !important;
  }

  .about-text {
    padding: 0.5rem !important;
  }

  .about-text h3 {
    font-size: 0.85rem !important;
    margin-bottom: 0.3rem !important;
  }

  .about-text p {
    font-size: 0.7rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.35rem !important;
  }

  /* Section title kompakt */
  .section-title {
    margin-bottom: 0.6rem !important;
  }

  .section-title h2 {
    font-size: 1.05rem !important;
    margin-bottom: 0.25rem !important;
  }

  .section-subtitle {
    font-size: 0.72rem !important;
  }

  /* Section'lar arası boşluk minimal */
  section {
    padding: 1rem 0 !important;
  }

  /* Çalışma saatleri (contact.html) */
  .contact-item span[data-i18n^="contact_hours"] {
    font-size: 0.72rem !important;
  }

  /* Form inputs küçük */
  textarea.form-control {
    min-height: 70px !important;
  }

  /* Footer bottom telif satırı */
  .footer-bottom p {
    font-size: 0.62rem !important;
  }

  /* Hizmet kartlarında "Tümünü Gör" butonu */
  .text-center.mt-5 {
    margin-top: 0.7rem !important;
  }
}

/* ============================================
   MOBİL NAVİGASYON — hamburger yerine buton-menü
   (masaüstü görünümü etkilenmez)
   ============================================ */
@media (max-width: 767px) {
  /* Hamburger gizle */
  .hamburger {
    display: none !important;
  }

  /* Header'da logo + dil butonları üstte ortalı, menü altta */
  .header-main .container {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    row-gap: 0.4rem;
  }

  .header-main .container > a:first-child {
    order: 1;
  }

  .header-main .container > nav {
    order: 3;
    width: 100%;
    margin-top: 0.3rem;
  }

  .header-main .container > .lang-switcher {
    order: 2;
    margin-left: 0;
  }

  /* Nav menüsünü her zaman görünür yatay buton şeridi yap */
  .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-menu li {
    width: auto !important;
  }

  .nav-menu li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 12px !important;
    border: 1px solid var(--medium-gray) !important;
    border-radius: 999px !important;
    background: var(--white) !important;
    color: var(--text-color) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    min-height: 32px !important;
    border-bottom: 1px solid var(--medium-gray) !important;
    transition: all 0.2s ease;
  }

  .nav-menu li a.active,
  .nav-menu li a:active {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    border-color: var(--primary-green) !important;
  }
}

/* ============================================
   İLETİŞİM BİLGİLERİNİ ORTALA — mobil
   ============================================ */
@media (max-width: 767px) {
  .contact-info,
  .contact-section .contact-info {
    text-align: center !important;
  }

  .contact-info h3 {
    text-align: center !important;
  }

  .contact-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.3rem !important;
    margin-bottom: 0.7rem !important;
  }

  .contact-item > div,
  .contact-item > span {
    text-align: center !important;
    width: 100%;
  }

  .contact-item-icon,
  .contact-item span:first-child {
    margin: 0 auto !important;
  }

  /* contact.html sayfası */
  .contact-section {
    text-align: center;
  }

  /* index.html iletişim bölümünde form da mobilde tek sütun ve ortalı dursun */
  .contact-section .contact-content {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .contact-content {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   FOOTER ORTALI — mobil
   ============================================ */
@media (max-width: 767px) {
  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  .footer-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-section h3 {
    text-align: center !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.4rem !important;
  }

  .footer-section p,
  .footer-section a {
    text-align: center !important;
    font-size: 0.75rem !important;
    line-height: 1.55 !important;
  }

  .footer-logo {
    display: block !important;
    margin: 0 auto 0.5rem !important;
    height: 40px !important;
  }

  .footer-links {
    list-style: none !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100%;
  }

  .footer-links li {
    text-align: center !important;
    margin-bottom: 0.25rem !important;
  }

  .footer-bottom {
    text-align: center !important;
  }

  .footer-bottom p {
    text-align: center !important;
    font-size: 0.7rem !important;
  }
}

/* ============================================
   SERVICES — mobilde tek sütun, ortalı
   ============================================ */
@media (max-width: 767px) {
  .services-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.8rem !important;
    grid-template-columns: 1fr !important;
  }

  .services-grid .service-card {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 380px !important;
    text-align: center !important;
  }

  .services-grid .service-card img,
  .services-grid .service-card .service-icon {
    height: 180px !important;
    width: 100% !important;
    object-fit: cover;
  }

  .services-grid .service-card h3,
  .services-grid .service-card p {
    text-align: center !important;
  }

  .services-grid .service-card h3 {
    font-size: 1rem !important;
    margin: 0.5rem 0 0.3rem !important;
  }

  .services-grid .service-card p {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }
}

/* === Çok küçük telefonlarda (≤ 479px) === */
@media (max-width: 479px) {
  .nav-menu li a {
    padding: 5px 9px !important;
    font-size: 0.66rem !important;
    min-height: 28px !important;
  }

  .services-grid .service-card {
    flex: 0 0 calc(50% - 0.25rem) !important;
    max-width: calc(50% - 0.25rem);
  }
}

/* ============================================
   ÜRÜNLER SAYFASI MOBİL — sidebar toggle + tek sütun
   ============================================ */
@media (max-width: 767px) {
  /* Sidebar — varsayılan kapalı, sadece başlık görünür */
  .products-container {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .products-sidebar {
    padding: 0 !important;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white) !important;
  }

  .products-sidebar > h3 {
    cursor: pointer;
    margin: 0 !important;
    padding: 0.7rem 0.9rem !important;
    font-size: 0.95rem !important;
    color: var(--primary-green) !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .products-sidebar > h3::after {
    content: "▼";
    font-size: 0.7rem;
    transition: transform 0.25s ease;
    color: var(--primary-green);
  }

  .products-sidebar.open > h3::after {
    transform: rotate(180deg);
  }

  /* JS arrow span'i varsa onun yerine ::after kullansın diye gizle */
  .sidebar-toggle-arrow {
    display: none !important;
  }

  .sidebar-toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
    color: var(--primary-green);
  }

  .products-sidebar.open .sidebar-toggle-arrow {
    transform: rotate(180deg);
  }

  /* Kategori listesi varsayılan kapalı */
  .products-sidebar .category-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 0.7rem !important;
  }

  .products-sidebar.open .category-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.4rem 0.7rem 0.8rem !important;
  }

  /* Ürünler tek sütun, ortalı, büyük görselli */
  .products-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px;
    margin: 0 auto !important;
    gap: 0.9rem !important;
  }

  .product-card {
    padding: 0 !important;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .product-card-img {
    height: 240px !important;
    width: 100% !important;
    object-fit: contain !important;
    background: var(--light-gray);
    padding: 0.5rem;
  }

  .product-card-body {
    padding: 0.8rem !important;
    text-align: center;
  }

  .product-card h3 {
    font-size: 0.95rem !important;
    margin: 0.3rem 0 !important;
    line-height: 1.3;
  }

  .product-card p {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.6rem !important;
    -webkit-line-clamp: 3;
  }

  .product-card .btn,
  .product-card .btn.btn-primary {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.8rem !important;
    min-height: 38px !important;
    width: 100%;
  }

  .product-card .category-badge {
    font-size: 0.7rem;
    padding: 3px 9px;
  }
}

@media (max-width: 479px) {
  .product-card-img {
    height: 220px !important;
  }

  .products-grid {
    max-width: 100%;
  }
}

/* ============================================
   NEFES ALDIRMA — section'lar arası boşluk + başlık büyüt
   ============================================ */
@media (max-width: 767px) {
  /* Genel section padding artır */
  section {
    padding: 2.2rem 0 !important;
  }

  /* Bölümler arası ekstra ayırıcı boşluk */
  section + section {
    border-top: 1px solid transparent;
  }

  /* Hero — büyük ve havadar */
  .hero-section {
    padding: 3.2rem 0 !important;
    min-height: auto !important;
  }

  .hero-section .hero-content {
    padding: 0.5rem 0;
  }

  .hero-section h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 1rem !important;
  }

  .hero-section p {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.4rem !important;
  }

  .hero-buttons {
    gap: 0.6rem !important;
    margin-top: 0.5rem;
  }

  .hero-buttons .btn {
    padding: 0.7rem 1rem !important;
    font-size: 0.9rem !important;
    min-height: 44px !important;
  }

  /* Products header banner da hero gibi davranır */
  .products-header {
    padding: 2.6rem 0 !important;
  }

  .products-header h1 {
    font-size: 1.85rem !important;
  }

  .products-header p {
    font-size: 0.95rem !important;
    margin-top: 0.5rem !important;
  }
}

/* === Çok küçük telefonlarda hero küçülmesin === */
@media (max-width: 479px) {
  .hero-section {
    padding: 2.6rem 0 !important;
  }

  .hero-section h1 {
    font-size: 1.6rem !important;
  }

  .hero-section p {
    font-size: 0.88rem !important;
  }

  .hero-buttons .btn {
    font-size: 0.85rem !important;
    padding: 0.65rem 0.85rem !important;
  }

  .products-header h1 {
    font-size: 1.6rem !important;
  }
}

/* placeholder — section sonunu kapatmak için boş kural */
@media (max-width: 767px) {
  .hero-section .hero-content > * + * {
    margin-top: 0;
  }

  /* About */
  .about-section {
    padding: 2.2rem 0 !important;
  }

  /* Services */
  .services-section {
    padding: 2.2rem 0 !important;
  }

  /* Contact */
  .contact-section {
    padding: 2.2rem 0 !important;
  }

  /* Section başlıkları biraz daha büyük & rahat */
  .section-title {
    margin-bottom: 1.2rem !important;
  }

  .section-title h2 {
    font-size: 1.4rem !important;
    margin-bottom: 0.4rem !important;
  }

  .section-subtitle {
    font-size: 0.9rem !important;
  }

  /* Products header (üst banner) */
  .products-header {
    padding: 2rem 0 !important;
  }

  .products-header h1 {
    font-size: 1.55rem !important;
  }

  .products-header p {
    font-size: 0.9rem !important;
    margin-top: 0.4rem !important;
  }

  /* Products page biraz nefes alsın */
  .products-page {
    padding: 1.8rem 0 !important;
  }

  /* Service cards biraz daha hava */
  .services-grid {
    gap: 1rem !important;
  }

  .services-grid .service-card {
    padding: 1rem !important;
  }

  .services-grid .service-card h3 {
    font-size: 1.05rem !important;
    margin: 0.7rem 0 0.4rem !important;
  }

  /* About cards biraz daha hava */
  .about-content {
    gap: 1rem !important;
  }

  .about-content .about-text {
    padding: 0.9rem !important;
  }

  .about-content .about-text h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Contact form & info biraz daha hava */
  .contact-content {
    gap: 1.2rem !important;
  }

  .contact-form,
  .contact-info {
    padding: 1.1rem !important;
  }

  .contact-info h3,
  .contact-form h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
  }

  .contact-item {
    margin-bottom: 1rem !important;
  }

  /* Ürün kartları arası biraz hava */
  .products-grid {
    gap: 1.1rem !important;
  }

  .product-card-body {
    padding: 1rem !important;
  }

  .product-card h3 {
    font-size: 1rem !important;
  }

  /* Footer biraz hava */
  footer {
    padding: 1.8rem 0 0.9rem !important;
  }

  .footer-content {
    gap: 1.4rem !important;
    margin-bottom: 1rem !important;
  }

  .footer-section h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.6rem !important;
  }

  /* Header biraz daha rahat */
  .header-main {
    padding: 0.6rem 0 !important;
  }
}

/* ============================================
   MODAL — büyük görsel + sosyal butonları gizle
   ============================================ */
body.modal-open .social-float-container {
  display: none !important;
}

/* ============================================
   LOGO — mobilde büyük ve ortalı
   LANG-SWITCHER — sağ üst köşede sabit
   ============================================ */
@media (max-width: 767px) {
  .header-main {
    position: relative;
  }

  .header-main .container {
    position: relative;
    padding-top: 0.4rem !important;
  }

  .header-main .container > a:first-child {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.3rem;
  }

  .logo {
    height: 64px !important;
    width: auto !important;
  }

  /* Dil butonları sağ üst köşede */
  .header-main .container > .lang-switcher {
    position: absolute !important;
    top: 6px;
    right: 8px;
    margin: 0 !important;
    z-index: 5;
  }

  .header-main .container > nav {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 479px) {
  .logo {
    height: 56px !important;
  }

  .header-main .container > .lang-switcher {
    top: 4px;
    right: 6px;
  }
}

@media (max-width: 479px) {
  .logo {
    height: 56px !important;
  }
}

@media (max-width: 767px) {
  .modal-content {
    padding: var(--spacing-md) !important;
  }

  .product-modal-body {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .product-modal-img {
    width: 100% !important;
    max-height: 360px !important;
    height: auto !important;
    object-fit: contain !important;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 0.5rem;
  }

  .product-gallery-thumbs {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .product-gallery-thumb {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
    background: var(--light-gray);
  }

  .product-modal-info h2 {
    font-size: 1.15rem !important;
    text-align: center;
  }

  .product-modal-info > .category-badge {
    display: block;
    text-align: center;
    margin-bottom: 0.4rem;
  }

  .product-modal-info p {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    text-align: center;
  }
}
