/* Genel Ayarlar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

body {
  font-family: 'Playfair Display', serif;
  background-color: #f8f1e4;
  color: #2e2e2e;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: #3e2c23;
  color: #f5f5f5;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: #f5f5f5;
}

/* Menü Düzeni */
.menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

nav {
  margin: 0 auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  display: inline-block;
}

.nav-menu > li > a:hover {
  color: #d2b48c;
}

/* Dropdown */
.dropdown-content {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #4a362b;
  min-width: 180px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 1000;
  border-radius: 4px;
}

.dropdown-content li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown-content li a:hover {
  background-color: #5a4033;
  color: #d2b48c;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* Sağ Menü */
.right-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.right-menu a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 1rem;
}

.right-menu a:hover {
  color: #d2b48c;
}

/* Sepet Adedi Stili */
.cart {
  position: relative;
  text-decoration: none;
  color: #f5f5f5;
  display: inline-block;
}

.cart::after {
  content: attr(data-count);
  position: absolute;
  top: -10px;
  right: -10px;
  background: #d2b48c;
  color: #3e2c23;
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

/* Ürünler Bölümü */
.product-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1 0 auto;
}

.product-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Ürün Kartı Düzeni - 4'erli sütunlar */
.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 sabit sütun */
  gap: 2rem;
  padding: 0;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
  transition: transform 0.2s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #eee;
  border-bottom: 1px solid #ddd;
  padding: 8px;
  box-sizing: border-box;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
  color: #333;
}

.product-card p {
  font-weight: bold;
  color: #5a4033;
  margin-bottom: 0.5rem;
}

/* Responsive Menü */
@media (max-width: 768px) {
  .menu-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .dropdown-content {
    position: static;
  }

  .right-menu {
    margin-top: 1rem;
  }
}

/* Responsive Ürün Düzeni */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: repeat(3, 1fr); /* 1200px altı 3 sütun */
  }
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: repeat(2, 1fr); /* 900px altı 2 sütun */
  }
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr; /* 600px altı 1 sütun */
  }
}

/* Ürün Detay */
.product-detail-section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.product-full {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.product-image {
  flex: 1 1 45%;
}

.product-image img {
  width: 100%;
  border-radius: 8px;
  background-color: #eee;
  object-fit: cover;
  max-height: 450px;
}

.product-info {
  flex: 1 1 50%;
}

.product-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #3e2c23;
}

.product-info .price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #5a4033;
  margin-bottom: 1.5rem;
}

.options {
  margin-bottom: 2rem;
}

.option-group {
  margin-bottom: 1.25rem;
}

.option-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
  color: #3e2c23;
}

.color-options {
  display: flex;
  gap: 0.5rem;
}

.color-btn {
  width: 30px;
  height: 30px;
  border: 2px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  transition: border 0.2s;
}

.color-btn:hover,
.color-btn.selected {
  border: 2px solid #3e2c23;
}

select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.product-info button {
  padding: 0.6rem 1.25rem;
  background-color: #3e2c23;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-info button:hover {
  background-color: #5a4033;
}

@media (max-width: 768px) {
  .product-full {
    flex-direction: column;
  }

  .product-image,
  .product-info {
    flex: 1 1 100%;
  }
}

/* Hakkımızda Sayfası */
.about-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom, #f8f1e4, #f0e6d6);
  color: #3e2c23;
  font-size: 1.15rem;
  line-height: 1.9;
  font-family: 'Playfair Display', serif;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
  border-top: 1px solid #ddd;
}

.about-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #3a2820;
  position: relative;
}

.about-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #5a4033;
  margin: 1rem auto 0;
  border-radius: 10px;
}

.about-section .container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.about-section p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.about-section strong {
  color: #5a4033;
}

/* Footer - Sabit En Alta Yerleştirme */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #3e2c23;
  color: #f5f5f5;
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 100%;
}

/* İçeriğin Footer Üstünde Kalması İçin */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.product-section {
  flex: 1 0 auto;
}

.contact-section {
  padding: 4rem 1rem;
  background-color: #f8f1e4;
  color: #3e2c23;
  font-size: 1.1rem;
}

.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  width: fit-content;
  padding: 0.6rem 1.5rem;
  background-color: #3e2c23;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #5a4033;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #5a4033;
}