/* style.css */

:root {
  --primary-color: #800080; /* User requested color */
  --primary-hover: #a16e9a; /* Darker shade for hover */
  --secondary-color: #4a148c; /* Deep Purple */
  --background-color: #f9f8f7;
  --card-bg: #fff;
  --text-color: #333;
  --light-text-color: #757575;
  --nav-height: 70px;
}

/* Temel Ayarlar ve Yumuşak Kaydırma */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height); /* Sabit menü için boşluk */
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  line-height: 1.6;
  color: var(--text-color);
}

/* Scroll Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in Section Styles */
.fade-in-section {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-play-state: paused;
}

.fade-in-section.is-visible {
  animation-play-state: running;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ana Navigasyon Menüsü */
.main-nav {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #eee;
  height: var(--nav-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: "Great Vibes", cursive;
  font-size: 2.8em;
  font-weight: normal;
  color: var(--primary-color);
  text-decoration: none;
}

/* Hamburger Menü Butonu */
.menu-toggle {
  display: none; /* Varsayılan olarak gizli */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Menünün üzerinde olması için */
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  padding: 5px 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-bottom-color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Bölüm Başlıkları ve Genel Stil */
section {
  padding: 80px 0;
}

section:first-of-type {
  padding-top: calc(
    var(--nav-height) + 80px
  ); /* İlk bölüme menü boşluğu ekle */
}

section h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 15px; /* Adjusted margin */
  color: var(--text-color);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .decorative-line {
  width: 80px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 0 auto 20px auto;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 3em; /* Adjusted size for the new font */
  font-weight: 600; /* A good weight for Playfair Display */
  color: var(--text-color); /* More readable than primary color */
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.1em;
  color: var(--light-text-color);
  max-width: 600px;
  margin: 0 auto;
}

/* Arama Çubuğu */
.search-container {
  max-width: 500px;
  margin: 0 auto 40px auto;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 15px;
  color: #aaa;
  font-size: 1.1em;
}

#search-input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 14px 45px 14px 45px; /* top/bottom, right, left */
  font-size: 1em;
  outline: none;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

#search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(128, 0, 128, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8em;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.clear-search-btn:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.clear-search-btn.hidden {
  display: none;
}

.search-results-info {
  text-align: center;
  font-size: 0.9em;
  color: var(--light-text-color);
  margin-top: 10px;
  font-style: italic;
}

.search-results-info.hidden {
  display: none;
}

/* Banner Bölümü */
.hero-banner {
  background: linear-gradient(135deg, #800080 0%, #4a148c 100%);
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
  animation: bannerFadeIn 0.8s ease-out;
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-banner h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -1px;
}

.hero-banner p {
  font-size: 1.3em;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.cta-button {
  background-color: #fff;
  color: var(--primary-color);
  padding: 14px 35px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}

.cta-button:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Ürünler Bölümü */
.products-section {
  background-color: var(--background-color);
}

.filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Küçük ekranlarda butonların alt satıra geçmesini sağlar */
  gap: 10px; /* Butonlar arasında boşluk */
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 12px 22px; /* Increased padding for better touch target */
  cursor: pointer;
  font-size: 16px;
  color: var(--secondary-color);
  border-radius: 25px; /* Daha yuvarlak butonlar */
  transition: all 0.3s ease;
  min-width: 120px; /* Butonların minimum genişliği */
}

.filter-btn:hover {
  background-color: #f0f0f0;
  border-color: var(--primary-color);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Her zaman 3 sütun */
  gap: 30px;
}

.load-more-container {
  text-align: center;
  margin-top: 50px;
}

.btn-load-more {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  display: none; /* Initially hidden */
}

.btn-load-more:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-load-more:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid #e0e0e0;
  border-radius: 12px; /* Daha yuvarlak köşeler */
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Daha belirgin gölge */
}

.product-card:hover {
  transform: translateY(-10px); /* Hafif yukarı kalkma efekti */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Hover'da daha güçlü gölge */
}

.product-card img {
  width: 100%;
  object-fit: cover; /* Use cover for product grid */
  border-bottom: 1px solid #eee; /* Görsel altında ince çizgi */
}

.product-info {
  padding: 25px; /* Daha fazla iç boşluk */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h3 {
  font-size: 1.4em; /* Daha büyük başlık */
  margin-bottom: 8px;
  color: var(--secondary-color);
  font-weight: 600; /* Daha kalın font */
}

.product-info p {
  font-size: 1em; /* Daha okunaklı font boyutu */
  color: #666;
  margin-bottom: 15px;
}

/* Skeleton Loader */
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.skeleton-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
  border-bottom: 1px solid #eee;
}

.skeleton-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skeleton-title {
  height: 20px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-category {
  height: 16px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
  border-radius: 4px;
  margin-bottom: 15px;
  width: 70%;
}

.skeleton-colors {
  height: 18px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-button {
  height: 40px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
  border-radius: 25px;
  margin-top: auto;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Yükleniyor ve Sonuç Yok Mesajları */
.loading,
.no-results,
.error-message {
  grid-column: 1 / -1; /* Tüm grid alanını kapla */
  text-align: center;
  padding: 50px 0;
  font-size: 1.2em;
  color: var(--light-text-color, #777);
}

.loading {
  color: var(--primary-color);
  font-weight: bold;
}

.error-message {
  color: var(--error-color, #f44336);
}

/* Hakkımızda Bölümü */
.about-section {
  background-color: var(--card-bg);
}

.about-section p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1em;
}

/* İletişim Bölümü */
.contact-section {
  background-color: var(--card-bg);
}

.contact-section > .container > p.contact-main-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px; /* Increased margin */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 480px) {
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
}

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

/* (removed .contact-card wrapper - reverted to previous layout) */

/* Contact form responsive helpers */
.contact-form {
  max-width: 720px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* İki kolon — daha simetrik hizalama */
  gap: 10px; /* Küçük yatay boşluk */
}

.form-row .form-group {
  min-width: 0; /* grid taşmasını önler */
  margin-bottom: 12px; /* inputlar arasındaki dikey boşluk */
}

.contact-form .form-group {
  margin-bottom: 12px; /* ekstra kesinlik: tüm form-gruplar daha sıkışık */
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

/* Küçük ekranlarda form ve info alt alta gelsin, padding küçülsün */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form-container {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-actions {
    align-items: stretch;
  }

  .btn-submit {
    width: 100%;
  }
}

.contact-form-container {
  background: var(--card-bg);
  max-width: 560px; /* Daha dengeli kart genişliği */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  height: 44px; /* input yüksekliğini sabitle */
}

.form-group textarea {
  height: 140px; /* textarea için dengeli yükseklik */
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(128, 0, 128, 0.1);
}

.btn-submit {
  width: 100%;
  max-width: 420px; /* Masaüstünde butonu sınırlı tut */
  margin: 0 auto; /* Ortala */
  padding: 12px 18px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.15s;
  display: block;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
}

.form-feedback {
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
}

.form-feedback.success {
  color: #28a745;
}

.form-feedback.error {
  color: #dc3545;
}

.contact-info-container {
  padding-top: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column; /* Change to column */
  gap: 30px;
  text-align: left; /* Align text to left */
  justify-content: center; /* Dikeyde ortala — sağ sütunu merkezle */
}

.contact-item {
  display: flex; /* Use flexbox for alignment */
  align-items: flex-start;
  gap: 20px;
}

.contact-item i {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 5px;
}

.contact-item h3 {
  font-size: 1.4em;
  margin-bottom: 5px;
  color: var(--text-color);
}

.contact-item p {
  margin: 0;
  color: var(--light-text-color);
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: text-decoration 0.3s;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* WhatsApp Contact Button */
.whatsapp-btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white !important;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-contact i {
  font-size: 1.3em;
  color: white;
  margin-top: 0;
}

.whatsapp-btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  text-decoration: none !important;
}

/* Instagram Contact Button */
.instagram-btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
    color: white !important;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
}

.instagram-btn-contact i {
    font-size: 1.3em;
    color: white;
    margin-top: 0;
}

.instagram-btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
    text-decoration: none !important;
}

/* Footer */
.main-footer {
  background: #1a1a1a; /* Darker background */
  color: #ccc;
  padding: 60px 0 20px 0; /* More padding at the top */
  margin-top: 40px;
  position: relative; /* Ensure footer sits above accidental overlays */
  z-index: 1050;
}

.footer-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3,
.footer-column h4 {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column .logo-font {
  font-family: "Great Vibes", cursive;
  font-size: 2.5em;
  font-weight: normal;
  color: var(--primary-color);
}

.footer-column p {
  color: #aaa;
  line-height: 1.7;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-column ul a:hover {
  color: #fff;
  padding-left: 5px;
}

/* Newsletter Form */
.footer-newsletter {
  display: flex;
  flex-direction: column;
}

.newsletter-desc {
  font-size: 0.95em;
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 14px 15px;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px; /* 16px minimum prevents iOS auto-zoom */
  transition: border-color 0.3s, background-color 0.3s;
}

.newsletter-form input::placeholder {
  color: #999;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-size: 0.95em;
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.newsletter-feedback {
  font-size: 0.85em;
  margin-top: 8px;
  text-align: center;
}

.newsletter-feedback.success {
  color: #4ade80;
}

.newsletter-feedback.error {
  color: #f87171;
}

.footer-bottom-bar {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  color: #aaa;
}

.social-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 1.5em;
  margin-left: 20px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Animation for Fade-in on Scroll */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.8s ease-out forwards;
}

/* Back to Top Button */
#back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  font-size: 1.2em;
  line-height: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
  z-index: 1000;
}

#back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top-btn:hover {
  background-color: var(--primary-hover);
}

/* Ürün Detay Bölümü */
.product-detail-section {
  padding-top: calc(var(--nav-height) + 40px);
  background-color: #fff;
}

.hidden {
  display: none;
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 25px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: #999;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95em;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.breadcrumb li.active {
  color: #666;
  font-weight: 500;
  font-size: 0.95em;
}

.back-to-products-btn {
  display: inline-block;
  background: none;
  border: 1px solid #ccc;
  padding: 12px 22px; /* Increased padding for better touch target */
  cursor: pointer;
  font-size: 16px;
  color: var(--secondary-color);
  border-radius: 25px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.back-to-products-btn:hover {
  background-color: #f0f0f0;
  border-color: var(--primary-color);
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Make image column even narrower */
  gap: 50px;
  align-items: flex-start;
}

.product-detail-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-detail-info h2 {
  text-align: left;
  font-size: 2.8em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.product-detail-info .category {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 5px 15px;
  border-radius: 15px;
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--primary-color);
}

.product-detail-info .description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
}

.product-detail-info .features {
  margin-top: 20px;
}

.product-detail-info .features h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.product-detail-info .features ul {
  list-style: none;
  padding-left: 0;
}

.product-detail-info .features li {
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23800080" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')
    no-repeat left center;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05em;
}

/* Responsive Ayarlamalar */
@media (max-width: 992px) {
  .hero-banner h1 {
    font-size: 2.8em;
  }

  .hero-banner p {
    font-size: 1.1em;
  }

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

  .product-detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 380px;
  }

  .hero-banner h1 {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .hero-banner p {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: 0.95em;
  }

  .hero-banner::before {
    width: 250px;
    height: 250px;
  }

  .hero-banner::after {
    width: 200px;
    height: 200px;
  }
  .menu-toggle {
    display: block; /* Mobil cihazlarda göster */
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: rgba(255, 255, 255, 0.98); /* Hafif şeffaf arka plan */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%); /* Başlangıçta ekran dışına taşı */
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateX(0); /* Aktif olduğunda içeri kaydır */
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links a {
    font-size: 1.5em;
    padding: 10px 20px;
  }

  /* Touch-friendly buttons (44px minimum - iOS recommendation) */
  .btn-load-more,
  .details-btn,
  .filter-btn,
  button[type="submit"],
  .cta-button {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    font-size: 1em;
  }

  .menu-toggle {
    min-height: 48px;
    min-width: 48px;
    padding: 12px;
  }

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

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

/* Language Selector */
.language-selector {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-option {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  color: var(--secondary-color);
  font-weight: 500;
}

.lang-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.lang-option.active {
  background-color: transparent; /* Arka plan rengini şeffaf yap */
  color: var(--primary-color); /* Sadece metin rengini değiştir */
}

.flag-icon {
  width: 24px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid #eee;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Yeni Eklenen Stiller */
.product-image-container,
.product-detail-image-container {
  position: relative;
  width: 100%; /* Let it fill the grid column */
  aspect-ratio: 2 / 3; /* Set aspect ratio to 2:3 */
  overflow: hidden;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.lightbox-trigger {
  position: relative;
  overflow: hidden;
}

.lightbox-trigger::before {
  content: "\f002"; /* Font Awesome büyüteç ikonu */
  font-family: "Font Awesome 5 Free"; /* Font Awesome stilini kullan */
  font-weight: 900; /* Solid ikonlar için */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5; /* İkonun diğer elementlerin üzerinde olması için */
  pointer-events: none; /* İkonun tıklama olaylarını engellememesi için */
}

.lightbox-trigger::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.lightbox-trigger:hover::before,
.lightbox-trigger:hover::after {
  opacity: 1;
}

.product-image-container img,
.product-detail-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Use contain to show the full image */
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px 14px; /* Increased padding */
  cursor: pointer;
  font-size: 1.5em; /* Increased font size */
  border-radius: 5px;
  transition: background-color 0.3s;
  z-index: 10;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.details-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 20px; /* Increased padding */
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  width: 80%; /* Butonun genişliğini ayarla */
  align-self: center; /* Ortalamak için */
}

/* Inquiry button style mirrors details button for consistent look */
.inquiry-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inquiry-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(128, 0, 128, 0.3);
}

.details-btn:hover {
  background-color: var(--primary-hover);
}

/* Ürün Detay Bölümündeki Görsel Kapsayıcısı */
.product-detail-image-container {
  border: none; /* Detay sayfasında alt çizgiye gerek yok */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.product-detail-image-container img {
  border-radius: 12px;
}

/* Görsel Sayısı Noktaları */
.image-dots {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  justify-content: center; /* Ürün kartının ortasına hizalamak için */
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--light-text-color);
  border-radius: 50%;
  display: inline-block;
}

.dot.active {
  background-color: var(--primary-color); /* Aktif noktanın rengi */
}

.image-dots.product-detail-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11; /* Slider butonlarının üzerinde olması için */
}

/* Image Modal (Lightbox) Styles */
.modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  max-width: 95%;
  max-height: 95%;
  min-width: unset; /* relax minimums for small screens */
  min-height: unset; /* relax minimums for small screens */
  width: auto; /* Allow content to dictate width up to max-width */
  height: auto; /* Allow content to dictate height up to max-height */
  display: flex; /* Use flexbox to center the image */
  justify-content: center;
  align-items: center;
  margin: auto;
  animation: zoomIn 0.3s ease;
  background-color: rgba(
    0,
    0,
    0,
    0.2
  ); /* Add a subtle background to see the container */
}

#modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensure the image fits within the container */
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

/* Modal Slider Buttons */
.modal .slider-btn {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em; /* Make buttons larger in modal */
  padding: 15px 20px;
  background-color: rgba(
    0,
    0,
    0,
    0.4
  ); /* Slightly less aggressive background */
}

.modal .prev-btn {
  left: 20px;
}

.modal .next-btn {
  right: 20px;
}

.product-colors {
  display: flex;
  flex-direction: column; /* Renkleri alt alta sırala */
  align-items: flex-start; /* Sola hizala */
  gap: 8px;
  margin-top: 15px; /* Üst boşluğu artır */
  margin-bottom: 15px;
  padding-left: 25px; /* Kartın solundan boşluk bırak */
}

.color-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.color-name {
  font-size: 0.9em;
  color: var(--light-text-color);
  transition: color 0.3s;
}

.color-swatch:hover .color-name {
  color: var(--primary-color);
}

.color-dot {
  width: 18px; /* Biraz küçültüldü */
  height: 18px;
  border-radius: 50%;
  border: 1px solid #eee;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-dot:hover {
  transform: scale(1.1);
}

/* ===== Enhanced Filter Navigation (Category Buttons) ===== */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  padding: 30px 0;
  border-top: 1px solid rgba(128, 0, 128, 0.1);
  border-bottom: 1px solid rgba(128, 0, 128, 0.1);
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(128, 0, 128, 0.3);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 6px 20px rgba(128, 0, 128, 0.4);
}

.filter-btn.active::after {
  content: "✓";
  margin-left: 8px;
}

/* ===== Section Separator ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(128, 0, 128, 0.3),
    transparent
  );
  margin: 60px 0;
}

/* ===== Product Card Enhanced Shadows ===== */
.product-card {
  position: relative;
  box-shadow: 0 4px 12px rgba(128, 0, 128, 0.08),
    0 0 0 1px rgba(128, 0, 128, 0.05);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: 12px;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  box-shadow: 0 12px 30px rgba(128, 0, 128, 0.15),
    0 0 0 1px rgba(128, 0, 128, 0.1);
}

/* ===== Improved Product Info Typography ===== */
.product-info h3 {
  letter-spacing: 0.5px;
  font-weight: 600;
}

.product-info p {
  font-size: 0.9em;
  color: var(--light-text-color);
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

/* ===== Details Button Enhanced ===== */
.details-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 15px;
  position: relative;
  overflow: hidden;
}

.details-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s;
}

.details-btn:hover::before {
  left: 100%;
}

.details-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(128, 0, 128, 0.3);
}

.details-btn:active {
  transform: translateY(-1px);
}

/* ===== Responsive Filter Navigation ===== */
@media (max-width: 768px) {
  .filter-nav {
    gap: 10px;
    padding: 20px 0;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.85em;
  }
}

/* ===== Accessibility Enhancements ===== */
/* Focus visible states for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* WCAG AA Color Contrast - Light text on dark backgrounds */
.footer-newsletter .newsletter-feedback.success {
  color: #4ade80; /* Green, sufficient contrast on dark */
}

.footer-newsletter .newsletter-feedback.error {
  color: #f87171; /* Red, sufficient contrast on dark */
}

/* Form validation feedback */
.form-feedback {
  font-size: 0.9em;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  display: none;
}

.form-feedback.success {
  background-color: #ecfdf5;
  color: #065f46;
  border-left: 4px solid #10b981;
  display: block;
}

.form-feedback.error {
  background-color: #fef2f2;
  color: #7f1d1d;
  border-left: 4px solid #ef4444;
  display: block;
}

/* Improved placeholder contrast */
::placeholder {
  color: #999;
  opacity: 1;
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* Improved product image alt text loading */
.product-image-container img {
  background-color: #f0f0f0;
  min-height: 250px;
  /* Placeholder while loading */
}

/* Ensure sufficient color contrast in all text */
body {
  color: #333; /* AA standard for normal text on light background */
}

a {
  color: var(--primary-color);
  text-decoration: underline;
}

a:visited {
  color: #6b21a8; /* Darker purple for visited links */
}

/* Improve readability */
.light-text-color {
  color: #555; /* Darker than original #757575 for better contrast */
}

/* Error states with clear visual feedback */
.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
  background-color: #fef2f2;
}

/* Success states */
.form-group.success input,
.form-group.success textarea {
  border-color: #10b981;
  background-color: #ecfdf5;
}

/* Extra mobile polish for narrow devices */
@media (max-width: 480px) {
  .hero-banner {
    min-height: 260px;
    padding: 40px 0;
  }

  .hero-banner h1 {
    font-size: 1.6rem;
    line-height: 1.1;
  }

  .hero-banner p {
    font-size: 0.95rem;
  }

  .product-grid {
    gap: 18px;
    grid-template-columns: 1fr; /* single column for narrow screens */
  }

  .product-card {
    padding: 0; /* reduce inner padding for compactness */
    border-radius: 10px;
  }

  .product-info {
    padding: 18px;
  }

  .product-image-container,
  .product-detail-image-container {
    aspect-ratio: 4 / 3; /* slightly wider images on mobile */
  }

  .details-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
  }

  /* Make modal fullscreen on small devices for better viewing */
  .modal {
    align-items: flex-start;
    padding-top: 20px;
  }

  .modal-content {
    width: 100%;
    height: calc(100vh - 40px);
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    font-size: 36px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
  }

  .modal .slider-btn {
    top: 50%;
    transform: translateY(-50%);
    padding: 14px 16px;
  }

  /* Make filter nav scrollable horizontally rather than wrapping too much */
  .filter-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 12px 6px;
    border-top: none;
    border-bottom: none;
  }

  .filter-btn {
    flex: 0 0 auto; /* prevent shrinking */
    min-width: 100px;
  }

  /* Increase tappable area for nav icons and menu */
  .menu-toggle {
    padding: 10px;
    margin-right: 6px;
  }

  .nav-links a {
    padding: 12px 18px;
  }

  .search-container {
    padding: 0 10px;
  }
}
