@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Libre+Baskerville:wght@400;700&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

/*Fontlar
    .cinzel-<uniquifier> {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;

    .libre-baskerville-regular {
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    font-style: normal;
    } (Başlıklarda kullanılacak font)

    .libre-baskerville-bold {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-style: normal;
    }

    .playfair-display-<uniquifier> {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    }

    .mulish-<uniquifier> {
    font-family: "Mulish", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    }

    .raleway-<uniquifier> {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    }(Metinlerde kullanılacak olan font)
}

*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
}

body {
  font-family: "Libre Baskerville", serif;
  background-color: var(--background-cream);
}

button {
  border: none;
  padding: 10px;
  cursor: pointer;
}

h2 {
  font-family: "Libre Baskerville", serif;
  font-size: 30px;
  font-weight: 700;
}

p {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 500;
}

/* HEADER */
.main-header {
  background: url("../assets/spa-composition-with-aromatherapy-body-care-items.jpg")
    center/cover; /* opsiyonel arka plan */
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-logo img {
  width: 130px;
  height: auto;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.menu-item a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.menu-item a:hover {
  color: var(--text-dbrown); /* Spa temalı ton */
}

.navbar-icons {
  display: flex;
  gap: 15px;
}

.navbar-icons a {
  color: var(--text-dark);
  font-size: 20px;
  transition: color 0.3s;
}

.navbar-icons a:hover {
  color: var(--text-dbrown);
}

/* HEADER BUTON */
.page-header {
  background-color: var(--background-light);
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

.trending-products {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--background-light);
  font-family: "Helvetica Neue", sans-serif;
}

.trending-products h2 {
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--text-dbrown);
  text-transform: uppercase;
}

.trending-products p {
  font-size: 20px;
  color: var(--text-dark);
  margin: 10px 0 40px;
  line-height: 1.5;
}

.filter-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5rem;
  padding: 3rem 0;
}

.filter-section ul {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-section ul li {
  padding: 15px;
  color: var(--text-dark);
  background: var(--background-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border-radius: 15px;
  font-size: 17px;
}

.filter-section ul li.active {
  color: #fff;
  background: var(--button-dgreen);
}
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center; /* Merkezde hizala */
  align-items: flex-start;
  max-width: 1700px;
  margin: 0 auto;
}

.product-card {
  width: 400px;
  position: relative;
  border: 1px solid var(--background-cream);
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.product-card.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute; /* Yer kaplamasın */
}

.product-card.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-card a {
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.product-card h3 {
  margin: 10px;
  font-size: 16px;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  animation: zoom 0.3s ease-in-out;
}
.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--background-light);
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: var(--background-light);
  cursor: pointer;
  padding: 20px;
  user-select: none;
}

.left-arrow {
  left: 10px;
}
.right-arrow {
  right: 10px;
}

/*favorite-button*/
.favorite-button {
  position: absolute;
  top: -40px;
  right: 10px;
  background-color: white;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease;
  cursor: pointer;
}

.favorite-button .iconbox {
  color: #cccccc;
  transition: color 0.3s ease;
}

.favorite-button i.added {
  color: #194f3c;
  cursor: default;
}

.favorite-button i {
  color: #84161a;
  font-size: 20px;
}

.product-card:hover .buy-button {
  bottom: 0;
}

.buy-button.added {
  background-color: #194f3c;
  cursor: default;
}

.product-card:hover .favorite-button {
  top: 10px;
}

/* Footer Style */
.footer {
  background-color: var(--background-dbrown);
  color: var(--text-cream);
  padding: 50px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin: 20px;
}

.footer-section h3 {
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-grid img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
}

.footer-section button {
  padding: 15px;
  margin: 15px 0;
  border: none;
  border-radius: 20px;
  background-color: var(--button-cream);
  color: var(--text-dbrown);
  cursor: pointer;
  font-size: 15px;
}

.footer-section button:hover {
  background-color: var(--button-cream-hover);
  cursor: pointer;
  font-size: 15px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  border-top: 1px solid var(--text-cream);
  padding-top: 20px;
}

.footer-bottom p {
  color: var(--text-cream);
}

/* RESPONSIVE DESIGN */

/* Tablet Görünüm (max-width: 1024px) */
@media (max-width: 1024px) {
  .navbar {
    padding: 15px 30px;
    flex-wrap: wrap;
  }

  .menu {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-card {
    width: 45%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    margin: 10px 0;
    text-align: center;
  }
}

/* Mobil Görünüm (max-width: 768px) */
@media (max-width: 768px) {
  h2 {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }

  .navbar {
    flex-direction: column;
    padding: 15px 20px;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
  }

  .navbar-icons {
    margin-top: 10px;
  }

  .filter-section ul {
    flex-direction: column;
    gap: 1rem;
  }

  .product-grid {
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    width: 90%;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 70vh;
  }

  .footer-section {
    width: 100%;
    text-align: center;
  }

  .photo-grid {
    justify-content: center;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

/* Çok küçük cihazlar için (max-width: 480px) */
@media (max-width: 480px) {
  .navbar-logo img {
    width: 100px;
  }

  .filter-section ul li {
    font-size: 15px;
    padding: 10px;
  }

  .trending-products p {
    font-size: 16px;
  }

  .favorite-button {
    padding: 3px;
  }

  .favorite-button i {
    font-size: 18px;
  }

  .close {
    font-size: 30px;
  }

  .lightbox-arrow {
    font-size: 30px;
  }
}
