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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Header tasarımı */
header {
  width: 100%;
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Logo ve navigasyon düzeni */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.logo h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color:transparent;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin: 0;
  line-height: 1.2;
  background-image: url(indir\ \(7\).jpg);
  background-size: contain;
  background-clip: text;
}

/* Hover efekti */
.logo h1:hover {
  transform: scale(1.02);
}

nav {
  background-color: white;
  padding: 15px 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav ul li {
  display: inline-block;
  position: relative;
}

nav ul li a {
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  font-weight: bold;
  color: black;
  text-decoration: none;
  padding: 10px;
  position: relative;
  display: block;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: rgb(0, 0, 0);
}

/* Kullanıcı işlemleri */
.user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Tüm user-actions içindeki linkleri düzelt */
.user-actions a {
  color: #333 !important;
  text-decoration: none !important;
  font-size: 14px;
}

.user-actions a:hover {
  color: #17a18a !important;
}

.user-actions a:focus,
.user-actions a:active,
.user-actions a:visited {
  color: #333 !important;
  text-decoration: none !important;
}

/* Hesabım butonu için özel stiller */
#account-button {
  color: #0f9063 !important;
  text-decoration: none !important;
  font-size: 14px;
  padding: 8px 12px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

#account-button:hover {
  color: #000000 !important;
  text-decoration: none !important;
}

#account-button:focus {
  color: #000000 !important;
  text-decoration: none !important;
  outline: none;
}

#account-button:active {
  color: #149e6b !important;
  text-decoration: none !important;
}

#account-button:visited {
  color: #149e6b !important;
  text-decoration: none !important;
}

.account-menu-wrapper {
  position: relative;
  display: inline-block;
}

.account-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(223, 6, 6, 0.1);
  display: none;
  min-width: 160px;
  z-index: 1001;
}

.account-menu ul {
  list-style: none;
  flex-direction: column;
  gap: 0;
}

.account-menu li + li {
  border-top: 1px solid #eee;
}

.account-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

.account-menu a:hover {
  background-color: #f5f5f5;
}

.account-menu-wrapper.active .account-menu {
  display: block;
}

/* Kullanıcı işlemleri */
.user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-actions a {
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

/* Arama, hesap ve sepet ikonları */
.user-actions svg {
  width: 20px;
  height: 20px;
}

.user-actions :hover {
  color: #2a0edc;
}

/* Hero Bölümü */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 7.5rem 1rem 2rem;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

.hero-image {
  width: min(1180px, 78vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  z-index: 1;
  border-radius: 0;
  box-shadow: none;
}

.hero h2,
.hero p {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 9rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 3.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Ürünler Bölümü */
.products {
  padding: 3rem 2rem;
  background-color: #fff;
}

.products h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #000;
}

/* Ürün Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
}

/* Ürün Kartı */
.product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  will-change: transform;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Favori ikonu - Geliştirilmiş */
.favorite-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  font-size: 16px;
  color: #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.favorite-icon:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Aktif favori ikonu - Dolu kalp */
.favorite-icon.active {
  color: #e74c3c;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.favorite-icon.active:hover {
  color: #c0392b;
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Font Awesome icon stilleri */
.favorite-icon i {
  font-size: 16px;
  transition: all 0.2s ease;
}

.favorite-icon:hover i {
  transform: scale(1.05);
}

.favorite-icon.active i {
  color: #e74c3c;
  filter: drop-shadow(0 1px 2px rgba(231, 76, 60, 0.3));
}

/* Ürün resim carousel */
.product-image-carousel {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.product-image-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Ürün Bilgileri */
.product-info {
  padding: 1rem;
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #000000;
}

/* Ürün Linki Stilini Düzenleme */
.product-info a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-info a:hover {
  text-decoration: none;
  color: inherit;
}

/* Ürün Fiyatı - Belirginleştirme */
.price {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #000000;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
  padding: 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 1rem;
}

.footer-content > div {
  margin: 1rem;
}

.footer-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-content p,
.footer-content a {
  font-size: 1rem;
  color: #ccc;
  text-decoration: none;
}

.footer-content a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

.social-media a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Instagram */
.social-media a[href*="instagram"]:hover svg {
  fill: #E1306C;
  transform: scale(1.2);
}

/* Pinterest */
.social-media a[href*="pinterest"]:hover svg {
  fill: #BD081C;
  transform: scale(1.2);
}

/* Twitter (X) */
.social-media a[href*="x.com"]:hover svg {
  fill: #ffffff;
  transform: scale(1.2);
}

/* TikTok */
.social-media a[href*="tiktok"]:hover svg {
  fill: #4cb7bf;
  transform: scale(1.2);
}

/* İndirim Badge Stilleri */
.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #722F37;
  color: #EFDFBB;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(114, 47, 55, 0.3);
  z-index: 10;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 2px 8px rgba(114, 47, 55, 0.3);
  }
  100% {
    box-shadow: 0 4px 16px rgba(114, 47, 55, 0.5);
  }
}

/* İndirimli Ürün Kartı */
.discounted-product {
  position: relative;
  border: 1px solid #000000;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discounted-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Fiyat Container Stilleri */
.price-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

/* Orijinal Fiyat (Üstü Çizili) */
.original-price {
  font-size: 0.85rem;
  color: #666;
  text-decoration: line-through;
  font-weight: 400;
}

/* İndirimli Fiyat */
.discounted-price {
  font-size: 1.1rem;
  color: #722F37;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(114, 47, 55, 0.1);
}

/* İndirim Yüzdesi */
.discount-percent {
  font-size: 0.8rem;
  color: #722F37;
  font-weight: 500;
  font-style: italic;
}

/* Normal Fiyat (İndirimli Olmayan) */
.price {
  font-size: 1.05rem;
  color: #000000;
  font-weight: 600;
}

/* Loading ve Message Styles */
#loading {
  display: none;
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
}

#error-message,
#success-message {
  display: none;
  padding: 1rem;
  margin: 1rem;
  border-radius: 4px;
  text-align: center;
}

#error-message {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

#success-message {
  background-color: #efe;
  color: #363;
  border: 1px solid #cfc;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  
  .discount-badge {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  .discounted-price {
    font-size: 1rem;
  }
  
  .original-price {
    font-size: 0.8rem;
  }
  
  .hero h2 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: 1.5rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  /* Mobilde favori ikonu daha küçük */
  .favorite-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    top: 8px;
    left: 8px;
  }
  
  .favorite-icon i {
    font-size: 14px;
  }
}

/* Hover Efektleri */
.product-card:hover .discount-badge {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.product-card:hover .favorite-icon {
  transform: scale(1.05);
}

.product-card:hover .favorite-icon.active {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Alternatif Minimalist Stil */
.discount-badge.minimal {
  background: #EFDFBB;
  color: #722F37;
  border: 1px solid #722F37;
  border-radius: 4px;
  font-size: 0.7rem;
  padding: 4px 8px;
  animation: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Favori buton animasyonları */
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

.favorite-icon.active:active {
  animation: heartBeat 0.6s ease-in-out;
}

/* Favori ekleme/çıkarma sırasında geçiş efekti */
.favorite-icon i {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.favorite-icon.adding i {
  transform: scale(0);
}

.favorite-icon.removing i {
  transform: scale(0) rotate(180deg);
}
/* ==== Mobil Hamburger Menü ==== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1100;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #000;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==== Mobil Görünüm (<=768px) ==== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .top-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-right: 70px;
  }

  nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 16px;
    width: min(280px, calc(100vw - 32px));
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px 16px;
  }

  nav.open {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 18px;
    width: 100%;
    padding: 10px 12px;
  }

  .user-actions {
    gap: 14px;
  }
}

/* ==== Kucuk Telefonlar (<=480px) ==== */
@media (max-width: 480px) {
  .top-bar {
    padding: 12px 16px;
    padding-right: 60px;
  }

  .logo h1 {
    font-size: 26px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

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

  .products {
    padding: 2rem 1rem;
  }

  .footer-content {
    text-align: center;
  }
}
