/* ========== GENEL AYARLAR ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

body {
  background-color: #f4f5f9;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0b1a3d;
  padding: 15px 40px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navbar .logo a {
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #66a3ff;
}

.user-actions a {
  color: white;
  background-color: #1b3fa8;
  padding: 6px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.user-actions a:hover {
  background-color: #2b57cc;
}

/* ========== SLIDER ========== */
.slider {
  position: relative;
  width: 90%;
  height: 400px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  background-color: #1E90FF;
}

/* ========== ANA SAYFA TANITIM ALANI ========== */
.hero {
  text-align: center;
  background: #fff;
  color: #0b1a3d;
  padding: 60px 20px;
  border-radius: 12px;
  width: fit-content;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

/* ========== ÜRÜN KARTLARI ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 40px auto;
}

.product-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-card h3 {
  color: #0b1a3d;
  font-size: 1.1rem;
}

.product-card p {
  color: #1E90FF;
  font-weight: 600;
}

/* ========== GİRİŞ & KAYIT SAYFASI ========== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85vh;
  background: linear-gradient(135deg, #0A1D37, #1E90FF);
}

.auth-box, .login-box {
  background-color: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  width: 380px;
  text-align: center;
}

.auth-box h2, .login-box h2 {
  color: #0A1D37;
  margin-bottom: 20px;
}

.auth-box input, .login-box input, .login-box select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

.auth-box button, .login-box button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #1E90FF;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.auth-box button:hover, .login-box button:hover {
  background-color: #0A1D37;
}

.register-link {
  margin-top: 15px;
  font-size: 14px;
}

.register-link a {
  color: #1E90FF;
  text-decoration: none;
  font-weight: 600;
}

/* ========== FOOTER ========== */
.site-footer {
  background-color: #0b1a3d;
  color: white;
  padding: 40px 0 20px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.footer-content h4, .footer-content h3 {
  margin-bottom: 10px;
  color: #1E90FF;
}

.footer-content a {
  color: #c7d6ff;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-content a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #334;
  padding-top: 15px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #ddd;
}

/* ========== YASAL SAYFALAR (KVKK / Gizlilik) ========== */
.legal-page {
  max-width: 900px;
  margin: 60px auto;
  background: #fff;
  color: #222;
  padding: 40px 60px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  line-height: 1.7;
}

.legal-page h1 {
  font-size: 2.2rem;
  color: #0a2e5c;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #0a2e5c;
  padding-bottom: 10px;
}

.legal-page h3 {
  color: #0a2e5c;
  margin-top: 25px;
  font-size: 1.3rem;
}

.legal-page p {
  margin: 10px 0;
  color: #444;
}

.legal-page a {
  color: #007bff;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ========== MOBİL DOSTU TASARIM ========== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-card img {
    height: 200px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    width: 90%;
  }
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
}

.product-image img {
  width: 350px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-info {
  max-width: 500px;
}

.add-to-cart {
  margin-top: 1rem;
}

.comments-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
}

.comment-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.account-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  font-family: "Poppins", sans-serif;
}

h2 {
  color: #071a33;
  margin-bottom: 15px;
}

.user-info {
  background: #f8f9fb;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

.user-info p {
  margin: 6px 0;
}

.btn-logout {
  display: inline-block;
  background: #071a33;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-logout:hover {
  background: #0c2a5c;
}

.msg {
  padding: 10px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  margin-bottom: 15px;
}

.address-section {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.address-list, .address-form {
  flex: 1;
  min-width: 320px;
}

.address-card {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-group {
  margin-top: 8px;
}

.btn-edit, .btn-delete {
  display: inline-block;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 4px;
  margin-right: 5px;
}

.btn-edit {
  background: #0d6efd;
  color: #fff;
}

.btn-delete {
  background: #dc3545;
  color: #fff;
}

.btn-save {
  background: #071a33;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-save:hover {
  background: #0c2a5c;
}

form input, form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

label {
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .address-section {
    flex-direction: column;
  }
}


.slider {
  position: relative;
  width: 90%;
  margin: 20px auto;
  border-radius: 20px;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 350px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: 1s;
}

.slide.active {
  opacity: 1;
}

.prev, .next {
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  background:white;
  border:none;
  padding:10px;
  cursor:pointer;
  border-radius:50%;
}

.prev { left:20px; }
.next { right:20px; }




