/** Google Fonts **/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Borel&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
  height: 100%;
  margin: 0;}

body {
  background: url('../img/background2.png') center/cover;
  font-family: "Roboto", sans-serif;
  color: #eee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;}

.page-overlay,
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: -10;}

.hero, .about, .categories, .cta, .product-grid, footer {
  position: relative;
  z-index: 1;}

/*** Header ***/

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 10px 30px;
  position: relative;
  z-index: 10;}

.logo img {
  width: 140px;
  height: auto;
  padding: 0;}

.baslik {
  color: #eee;}

.baslik:hover {
  color: #146551 !important;
  cursor: pointer;
  transition: all 0.3s ease;}

.nav-links {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;}

.nav-links li {
  position: relative;}

.nav-links li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 8px 12px;
  color: #eee;
  font-size: 17px;
  transition: color 0.3s ease;}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #eee;
  transition: width 0.3s ease;}

.nav-links li a:hover::after,
.nav-links li a:focus::after {
  width: 100%;}

.dropdown-menu li a::after {
  content: none !important;}

.flags img.flag {
  width: 25px;
  height: 17px;
  margin: auto 4px auto 4px;
  cursor: pointer;}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #222;
  border-radius: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 20;}

.dropdown-menu li a {
  padding: 10px 20px;
  font-size: 15px;
  color: #ddd;}

.nav-links li:hover > .dropdown-menu {
  display: block;}

.dropdown-menu .dropdown-menu {
  left: 100%;
  top: 0;}

@media (max-width: 1000px) {
  .nav-links li a::after {
    display: none;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;}

.hamburger span {
  width: 22px;
  height: 3px;
  background: #eee;
  margin-bottom: 4px;
  border-radius: 2px;}

@media (max-width: 1000px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #222;
    flex-direction: column;
    width: 180px;
    padding: 10px 0;
    border-radius: 5px;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .dropdown-menu {
    position: static;
  }

  .dropdown-menu .dropdown-menu {
    left: 0;
  }
}

/*** Footer ***/

footer {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  background: #222;
  color: #eee;
  margin-top: auto;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;}

/*** Whatsapp ***/

#whatsapp-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;}

#whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;}

#whatsapp-btn:hover {
  transform: scale(1.2);}

/*** Index ***/

.hero {
  background: rgba(34,34,34,0.85);
  text-align: center;
  z-index: 100;
  padding: 70px 20px 80px 20px;}

.hero h1 {
  font-size: 3rem;
  z-index: 100;
  margin-bottom: 20px;}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 50px;}

/* Hakkımızda */
.about {
  background: #222;
  text-align: center;
  padding: 20px 50px 50px 50px;
  border-radius: 10px;
  margin: 30px;}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;}

.about p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.6;}

.about .btn {
  background-color: #007566;
  color: #eee;
  padding: 10px 25px;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.3s ease;}

.about .btn:hover {
  background-color: #146551;
  transform: translargb(10, 84, 133);}

/** Kategori / Rastgele Ürün Önizleme **/
.categories {
  color: #eee;
  padding: 0 50px 0 50px;}

.categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;}

.category-block {
  margin-bottom: 50px;}

.category-block h3 {
  margin-bottom: 0.2rem;
  font-weight: bold;
  color: #eee;
  font-size: 2.2rem;}

/* CTA */
.cta {
  background: #222;
  text-align: center;
  padding: 10px 20px 50px 20px;
  border-radius: 10px;
  margin: 30px;}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;}

.cta .btn {
  background-color: #25d366;
  color: #222;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;}

.cta .btn:hover {
  background-color: #1ebe57;
  transform: translateY(-3px);}

/* --- Responsive --- */
@media (max-width: 770px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .about h2, .categories h2, .cta h2 { font-size: 1.5rem; }
  .category-block h3 { font-size: 1.3rem; }}

/*** Product ***/

.div1 {
  background-color: #222;
  margin: 20px 20px auto 20px;
  border-radius: 10px;
  text-align: center;
  padding: 20px;}

.div1 h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 30px;
  color: #eee;}

@media (max-width: 770px) {
  .div1 h1 {
    font-size: 25px;}}

/** Product Grid **/
.product-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));}

.product-card {
  background: #222;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  text-align: center;
  transition: all 0.2s ease;}

.product-card:hover {
  transform: scale(1.05);}

.product-card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 5px;}

.product-card h3 {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: #eee;
  margin: 10px 0;}

.product-card p {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: #ccc;
  margin: 0 10px 10px;}

/** Responsive Product Grid **/
@media (max-width: 500px) {
  .product-grid {
    grid-template-columns: 1fr;}
  .product-card p {
    font-size: 0.8rem;
    margin: 0 20px 20px;}}
  
@media (min-width: 501px) and (max-width: 800px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);}}

@media (min-width: 801px) and (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);}}

@media (min-width: 1101px) and (max-width: 1800px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);}}

@media (min-width: 1801px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);}}

/*** Contact ***/

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px;}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;}

.contact-map {
  width: 100%;
  min-height: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);}

.contact-info, .whatsapp-box {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  color: #eee;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: relative;
  z-index: 5;}

a {
  text-decoration: none;}

.hero, .about, .categories, .cta, .product-grid, .contact-section, footer {
  position: relative;
  z-index: 1;}

@media (min-width: 701px) {
  .contact-left {
    width: 35%;}
  .contact-map {
    width: 60%;}}

@media (max-width: 700px) {
  .contact-section {
    flex-direction: column;}
  .contact-map {
    order: 1;
    width: 100%;
    min-height: 400px;}
  .contact-left {
    order: 2;
    width: 100%;}}

@media (max-width: 500px) {
  .contact-map {
    min-height: 300px;}
  .contact-info h2 {
    font-size: 1.5rem;}
  .contact-info p {
    font-size: 0.9rem;}
  .whatsapp-btn {
    padding: 12px 0;
    font-size: 0.9rem}}

/*** About ***/

.about-section {
    padding: 50px 20px;
    background: rgba(34,34,34,0.85);
    color: #eee;}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;}

.about-container h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;}

.about-container h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 15px;}

.about-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #ccc;}

.about-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;}

.about-images img {
    max-width: 45%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 1s;}

.about-images img:hover {
    transform: scale(1.05);}

/* Responsive */
@media (max-width: 770px) {
    .about-container h1 {
        font-size: 2rem;}
    .about-container h2 {
        font-size: 1.5rem;}
    .about-container p {
        font-size: 1rem;}
    .about-images img {
        max-width: 100%;}}

/*** Product Detail ***/

.product-detail-container {
    display: flex;
    gap: 60px;
    padding: 60px 40px;
    flex-wrap: wrap;
    color: #eee;
    max-width: 1400px;       /* masaüstünde genişlik sınırı */
    margin: 0 auto;           /* ortalama */
}

.product-detail-image {
    flex: 1;
    min-width: 350px;
}

.product-detail-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.product-detail-image img:hover {
    transform: scale(1.05);
}

.product-detail-info {
    flex: 1;
    min-width: 350px;
}

.product-detail-info h2 {
    font-size: 2rem;
    margin-top: 20px;
    color: #fff;
}

.product-detail-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #ccc;
}

.product-detail-info .whatsapp-btn {
    display: inline-block;
    background-color: #25d366;
    color: #222;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-detail-info .whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
}

/* Benzer ürünler */
.related-products {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 40px;
}

.related-products h2 {
    color: #eee;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.related-products .product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive */
@media (max-width: 900px) {
    .product-detail-container {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }
    .product-detail-image, .product-detail-info {
        min-width: 100%;
    }
    .related-products {
        padding: 0 20px;
    }
}
