* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
}

.navbar {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: white;
  border-bottom: 1px solid #eee;
}

.navbar ul li a:hover {
  color: #4169e1;
}

.logo {
  max-height: 53px;
  display: flex;
  align-items: center;
}

/* LOGO IMAGE */
.logo img {
  max-height: 53px;
  width: auto;
  object-fit: contain;
  display: block;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu li a {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  z-index: 1100;
  margin-top: 1px;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  display: none;
  flex-direction: column;
  text-decoration: none;
  min-width: 180px;
}

.dropdown-menu li {
  padding: 10px;
  list-style: none;
}

.dropdown-menu li a {
  font-weight: 600;
  text-decoration: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile */
.mobile-right {
  display: none;
  align-items: center;
  gap: 16px;
}

.hamburger {
  cursor: pointer;
  font-size: 22px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px;
  background: white;
  border-top: 1px solid #eee;
  align-items: flex-start;
  text-align: left;
}

.mobile-menu li a,
.mobile-menu li span {
  width: 100%;
  display: block;
  text-align: left;
}

.mobile-menu li {
  width: 100%;
  padding: 12px 0;
  display: block;
  border-radius: 10px;
}

.mobile-dropdown-menu {
  display: none;
  list-style: none;
  flex-direction: column;
  background-color: rgb(248, 248, 248);
  padding-left: 16px;
}

.mobile-dropdown {
  color: rgb(0, 132, 88);
}

.mobile-dropdown:hover {
  color: rgb(40, 146, 146);
}

/*Dropdown elements*/
.mobile-dropdown-menu li {
  padding: 20px;
}

.mobile-dropdown span {
  font-weight: 600;
  cursor: pointer;
}

/*Top banner area*/

.top-banner {
  width: 100%;
  height: 40px;
  background-color: #0a2540;
  color: #ffffff;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 150px;

  font-size: 14px;
}

.top-banner-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.top-banner-item i {
  font-size: 16px;
}
.top-banner-item a {
  text-decoration: none;
  color: white;
}

.top-banner-item a:hover {
  color: #87ceeb;
}

/* Search Banner area */
.search-banner {
  width: 100%;
  background-color: #fff;
  padding: 5px 5px;
  display: flex;
  justify-content: center;
  border-bottom: 0.1px solid #f5f7fa;
}

/*Search Form */
.search-form {
  width: 100%;
  max-width: 900px;
  display: flex;
  gap: 40px;
}

/*Search Input */
.search-input {
  flex: 1;
  padding: 7px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/*Search Button */
.search-button {
  padding: 7px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #0a2540;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

/* search button Hover */
.search-button:hover {
  background-color: #333;
}

/*Footer area*/

.site-footer {
  margin-bottom: 0;
  background-color: #0a2540;
  color: #e5e5e5;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #ffffff;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list i {
  color: white;
  font-size: 16px;
}

.footer-section p {
  color: #bdbdbd;
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  text-align: center;
  padding: 15px 10px;
  font-size: 13px;
  color: #9e9e9e;
}

/*Footer için. Bozulma olursa burası
sorunlu*/
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
}

/*Banner slider area*/

.banner-slider {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.slide-content {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  max-width: 380px;
  z-index: 2;
}

.slide-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 8px;
}

.slide-content span {
  font-size: 14px;
  opacity: 0.9;
}

.slide-content a {
  padding: 10px;
  text-decoration: none;
  color: white;
  background-color: #0a2540;
  border-radius: 15px;
}

.slide-content a:hover {
  background-color: #2f54c9;
}

/*Footer için ^^^^^*/

/*Product Kart area*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 35px;
  margin-top: 14px;
  margin-left: 14px;
  margin-right: 14px;
}

.product-info h3 {
  color: #0a2540;
  margin-bottom: 15px;
}

.product-card {
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.image-slider {
  /*For mobile image slider 
  position:relative; can be deleted
  */
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 14px;
}

.add-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #0a2540;

  color: #fff;
  float: right;
}

.code {
  color: gray;
  font-size: small;
}
.description-area {
  color: gray;
  font-size: small;
}

/*Image slider for mobile*/
.slider-hint {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  pointer-events: none;
}

.slider-hint span {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.85);
  user-select: none;
}

/*More product button area*/
.more-products-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}

.more-products-btn {
  padding: 14px 32px;
  border-radius: 30px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.more-products-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}

.load-more-btn {
  padding: 14px 32px;
  border-radius: 30px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/*Sepet sayfası için*/

.cart-container {
  width: 100%;
  max-width: 1600px;
  margin: 30px auto;
  padding: 0 12px;
}

.cart-title {
  background-image: url("images/0.png"); /* kendi resim yolun */
  background-size: cover; /* responsive ölçekleme */
  background-position: center; /* yatay + dikey merkez */
  background-repeat: no-repeat;

  min-height: 180px; /* banner yüksekliği */
  display: flex;
  align-items: center; /* dikey ortala */
  justify-content: center; /* yatay ortala */

  color: #fff;
  font-size: clamp(22px, 4vw, 36px); /* responsive yazı boyutu */
  font-weight: 700;

  border-radius: 12px;
  margin-bottom: 20px;

  /* readability */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* tg grid */
.cart-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* KÜÇÜK KART */
.cart-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

/* little image */
.cart-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 6px;
}

.cart-card h4 {
  margin: 6px 0 4px;
  font-size: 14px;
}

.cart-card p {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

/* control */
.cart-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 6px;
}

.cart-quantity button {
  width: 26px;
  height: 26px;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.cart-quantity span {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
}

/* remove */
.cart-remove {
  margin-top: 6px;
  padding: 6px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* empty */
.cart-empty {
  display: none;
  text-align: center;
  color: #777;
  margin-top: 40px;
}

.wishlist-action {
  display: flex;
  justify-content: flex-end; /* sağa yasla */
  margin-top: 24px;
  margin-bottom: 24px;
  margin-right: 24px;
}

.wishlist-btn {
  width: 30%;
  min-width: 220px; /* çok küçülmesini engeller */
  padding: 14px 20px;
  background: #4169e1;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover effect */
.wishlist-btn:hover {
  background: #2f54c9;
  transform: translateY(-2px);
}

/*cart form area*/
.contact-section {
  max-width: 900px;
  margin: 0;
  padding: 0 20px;
  overflow: hidden;

  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
}

.contact-section.active {
  max-height: 1200px;
  opacity: 1;
  margin-top: 40px;
}

.contact-section h2 {
  margin-bottom: 16px;
  text-align: center;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.contact-form textarea[readonly] {
  background: #f4f4f4;
  font-size: 13px;
}

.contact-form .form-row {
  display: flex;
  gap: 12px;
}

.captcha {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-form button {
  background: #4169e1;
  color: #fff;
  border: none;
  cursor: pointer;
}

.contact-form button:hover {
  background: #3455c9;
}

/*Products banner*/
.products-banner {
  width: 100%;
  height: 300px; /* desktop için */
  background-image: url("images/products-banner.jpg"); /* kendi görselin */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center; /* dikey ortalama */
  justify-content: center; /* yatay ortalama */

  position: relative;
}

/* Koyu overlay (yazı daha net olsun diye) */
.products-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.products-banner h1 {
  position: relative; /* overlay üstünde kalması için */
  color: #fff;
  font-size: clamp(28px, 5vw, 56px); /* responsive font */
  font-weight: 700;
  letter-spacing: 2px;
}

/*Catalog banner*/

.category-banner {
  width: 100%;
  height: 220px; /* masaüstü */
  background-image: url("images/catalog-banner.jpg"); /* kendi görsel yolun */
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

/* yazıyı okunur yapmak için hafif karartma */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner-overlay h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  padding: 0 16px;
}

.category-type ul {
  padding: 20px;
  display: flex;

  overflow-x: auto;
  white-space: nowrap;
}

.category-type ul li {
  flex: 0 0 auto;
  margin: auto;
  list-style: none;
}
.category-type ul li a {
  padding: 15px;
  text-decoration: none;
  color: #0a2540;
  font-weight: bold;
  border-bottom: 1px solid gray;
}

/*Aşağıdaki .toast stilinden sonra gelen stiller
çalışmıyor*/
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1f2937; /* koyu ama soft */
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive (min-tablet)*/
@media (max-width: 768px) {
  .logo {
    max-height: 48px;
  }

  .logo img {
    max-height: 48px;
  }

  .category-banner {
    height: 180px;
  }

  .banner-overlay h2 {
    font-size: 1.8rem;
  }

  .products-banner {
    height: 200px;
  }

  .form-row {
    flex-direction: column;
  }

  .wishlist-btn {
    width: 100%; /* mobilde tam genişlik */
    font-size: 15px;
  }

  .banner-slider {
    height: 340px;
  }

  .slide-content h2 {
    font-size: 28px;
  }

  .footer-container {
    flex-direction: column;
    gap: 30px;
  }

  .search-form {
    max-width: 100%;
  }

  .search-input {
    font-size: 0.95rem;
    padding: 12px 14px;
  }

  .search-button {
    padding: 5px 20px;
    font-size: 0.95rem;
  }

  .desktop-menu {
    display: none;
  }

  .mobile-right {
    display: flex;
  }
  .mobile-right a {
    text-decoration: none;
    font-weight: 600;
    font-size: medium;
    color: black;
  }

  .top-banner {
    gap: 70px;
    font-size: 13px;
  }

  .top-banner-item i {
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .logo {
    max-height: 40px;
  }
  .logo img {
    max-height: 40px;
  }

  .category-banner {
    height: 140px;
  }

  .banner-overlay h2 {
    font-size: 1.4rem;
  }

  .cart-title {
    min-height: 120px;
    border-radius: 8px;
  }

  .cart-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-card img {
    height: 100px;
  }

  .product-image {
    height: 260px;
  }

  .banner-slider {
    height: 260px;
  }

  .slide-content {
    right: 5%;
    left: 5%;
    text-align: center;
  }

  .slide-content h2 {
    font-size: 22px;
  }

  .slide-content p {
    font-size: 14px;
  }
  .slide-content span {
    font-weight: bold;
  }

  .search-form {
    gap: 8px;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .search-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .top-banner {
    gap: 24px;
    font-size: 12px;
    padding: 0 8px;
  }

  .mobile-right a {
    font-size: small;
  }

  .top-banner-item i {
    font-size: 14px;
  }

  .toast {
    right: 50%;
    transform: translate(50%, 30px);
  }

  .toast.show {
    transform: translate(50%, 0);
  }
}

@media (max-width: 420px) {
  .logo {
    max-height: 35px;
  }

  .logo img {
    max-height: 35px;
  }
}

@media (max-width: 380px) {
  .logo {
    max-height: 29px;
  }

  .logo img {
    max-height: 29px;
  }

  .cart-items {
    grid-template-columns: 1fr;
  }
}

/*Mobile image slider display*/
@media (hover: hover) {
}
