/* === GENEL AYARLAR === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  padding: 20px;
}

a {
  text-decoration: none;
  color: #0073e6;
}

h1, h2 {
  margin-bottom: 1rem;
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

img {
  max-width: 100%;
  border-radius: 8px;
}

/* === NAVBAR === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 1rem 2rem;
  color: white;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: white;
  font-weight: bold;
}

.nav a.active,
.nav a:hover {
  color: #00cc99;
}

#toggleTheme {
  background: #222;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* === FORM === */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  background: #00cc99;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #009973;
}

/* === FOOTER === */
footer {
  text-align: center;
  margin-top: 3rem;
  color: #888;
}

/* === DARK MODE === */
body.dark {
  background: #1c1c1c;
  color: #f5f5f5;
}

body.dark .container {
  background: #2b2b2b;
}

body.dark nav {
  background: #000;
}

body.dark .nav a.active,
body.dark .nav a:hover {
  color: #00e699;
}

body.dark input,
body.dark textarea {
  background: #333;
  color: white;
  border-color: #555;
}

body.dark button {
  background: #00e699;
  color: #000;
}

body.dark footer {
  color: #aaa;
}

/* === ADMIN PANEL === */
.admin-container {
  max-width: 1080px;
  margin: auto;
  padding: 2rem;
}

#loginBox {
  max-width: 360px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

body.dark #loginBox {
  background: #2b2b2b;
}

.form-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

body.dark .form-card {
  background: #2b2b2b;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.admin-card {
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.04);
  gap: 10px;
  align-items: center;
}

body.dark .admin-card {
  background: #292929;
  border-color: #444;
}

.admin-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-card button {
  margin-right: 6px;
  margin-top: 6px;
}
.hero {
  background: linear-gradient(120deg, #00cc99, #0073e6);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  background: #fff;
  color: #0073e6;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s;
}

.cta-button:hover {
  background: #f0f0f0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filters input,
.filters select {
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  min-width: 200px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* === ÜRÜN KARTLARI === */
.card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: fill; /* stretch gibi davranır */
  background-color: #eee;
  border-radius: 10px;
  display: block;
}

.card:hover img {
  transform: scale(1.03);
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

.card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.6rem;
  flex-grow: 1;
}

.card a {
  display: inline-block;
  text-align: center;
  background: #0073e6;
  color: white;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.card a:hover {
  background: #005bb5;
}

/* === DARK MODE CARD === */
body.dark .card {
  background: #2a2a2a;
}

body.dark .card h3 {
  color: white;
}

body.dark .card p {
  color: #bbb;
}

body.dark .card a {
  background: #00cc99;
  color: black;
}

body.dark .card a:hover {
  background: #00b388;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .card img {
    aspect-ratio: 4 / 3;
  }

  .card h3 {
    font-size: 0.95rem;
  }

  .card p {
    font-size: 0.85rem;
  }

  .card a {
    font-size: 0.85rem;
  }
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}


.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover; /* işte bu! */
  border-radius: 10px;
  margin-bottom: 1rem;
}

.product-card-content {
  width: 100%;
}

.product-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-card-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.product-card-content a {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  background: #0073e6;
  color: white;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}

body.dark .product-card {
  background: #2b2b2b;
  color: white;
}

body.dark .product-card-content p {
  color: #ccc;
}

body.dark .product-card-content a {
  background: #00cc99;
  color: black;
}
