/* Renk değişkenleri */
:root {
  --yesil: #28a745;
  --yesil-hover: #218838;
  --turuncu: #eeb365;
  --gri: #acaaa5;
}

/* Genel Stil Ayarları */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gri);
}

/* Header */
header {
  background: var(--turuncu);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 1.5em;
}

.menu {
  display: flex;
  gap: 10px;
}

.tab, .uyelik-btn {
  background: none;
  border: none;
  color: rgb(22, 22, 22);
  padding: 10px 18px;
  font-weight: bold;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tab:hover::after {
  width: 100%;
}

.uyelik-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.03);
}

/* Üyelik Dropdown */
.uyelik-container {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.uyelik-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 10;
  overflow: hidden;
  padding: 5px 0;
}

.uyelik-dropdown a {
  color: #222;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background 0.2s ease;
}

.uyelik-dropdown a:hover {
  background-color: #f0f0f0;
}

.uyelik-container:hover .uyelik-dropdown {
  display: block;
}

/* Sepet */
.actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.sepet-btn {
  background: none;
  color: rgb(218, 230, 227);
  font-weight: bold;
  font-size: 16px;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
  text-shadow: 2px 2px 5px gray;
}

.sepet-btn:hover {
  color: #0f6;
}

.sepet-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: #0b8;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.sepet-btn:hover::after {
  width: 100%;
}

.sepet-islemler {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sepet-islemler button {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  background-color: var(--yesil);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.sepet-islemler button:hover {
  background-color: var(--yesil-hover);
}

/* Ana Sayfa */
main {
  padding: 20px;
}

.urunler {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.urun {
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 8px #ddd;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.urun:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.urun img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.urun:hover img {
  transform: scale(1.1);
}

.urun button {
  margin-top: 8px;
  background: var(--yesil);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.urun button:hover {
  background: var(--yesil-hover);
}

/* Giriş / Ödeme Ortak Stil */
.kutu-genel {
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.kutu-genel h2 {
  font-size: 24px;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  text-align: left;
  font-size: 14px;
  color: #555;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: var(--turuncu);
  outline: none;
}

textarea {
  resize: vertical;
}

.kutu-genel button {
  padding: 12px;
  background-color: var(--yesil);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.kutu-genel button:hover {
  background-color: var(--yesil-hover);
}

.kutu-genel p {
  font-size: 14px;
  color: #555;
}

.kutu-genel p a {
  color: var(--yesil);
  text-decoration: none;
}

.kutu-genel p a:hover {
  text-decoration: underline;
}

/* Mobil Menü */
.hamburger {
  font-size: 1.5em;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

.mobil-menu {
  display: none;
  flex-direction: column;
  padding: 10px;
  opacity: 0;
  max-height: 0;
  transition: all 0.4s ease;
}

.mobil-menu.active {
  display: flex;
  opacity: 1;
  max-height: 500px;
}

.mobil-menu .tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e3d2bd;
  color: rgb(14, 14, 14);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--gri);
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.mobil-menu .tab:hover {
  background-color: #f4d4d4;
  transform: scale(1.02);
}

/* Geçiş Animasyonu */
@keyframes slideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.transition-container {
  animation: slideIn 1s ease-out;
}



