﻿/* assets/css/main.css */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}



	/* 	ORTAK OLACAK ŞEYLER 	*/
/* button */
button {
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
justify-content: center;
    align-items: center;

  box-shadow:
    0 6px 8px rgba(0, 0, 0, 0.4),                  /* dış gölge - daha hafif */
    inset 0 -4px 6px rgba(0, 0, 0, 0.3),            /* altta koyu gölge */
    inset 0 4px 6px rgba(255, 255, 255, 0.7);       /* üstte parlama */
    
  transition: all 0.15s ease-in-out;
}
button:hover {	/* uzerine geldiginde */
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.5),                  /* biraz daha belirgin dış gölge */
    inset 0 -4px 6px rgba(0, 0, 0, 0.35),            /* altta koyu gölge biraz arttı */
    inset 0 4px 6px rgba(255, 255, 255, 0.8),        /* üstte parlama biraz arttı */
    inset 0 0 0 1000px rgba(0, 0, 0, 0.1);           /* hafif koyulaştırma */

  transform: translateY(-2px);
}
button:active {	/* tiklandiginda */
  box-shadow:
    0 0px 0px rgba(0, 0, 0, 0),                   /* dış gölge silinir */
    inset 0 -4px 6px rgba(0, 0, 0, 0.6),             /* alttaki iç gölge koyulaşır */
    inset 0 4px 6px rgba(0, 0, 0, 0.5);              /* üst iç gölge beyazdan siyaha dönüşür, koyu renk */
  transform: translateY(3px);
  transition: all 0.05s ease-in-out;
}



body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f8ff;
  color: #000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Top Header */
.top-header {
  background-color: #00aeef;
  color: white;
  padding: 10px 0;
}

.top-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  max-width: 100%;
  overflow: hidden;
  margin-right: 50px;
}

.logo {
  width: 250px;
  height: 70px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.search-box {
  width: 300px;
  padding: 5px;
  border: none;
  border-radius: 4px;
}

.top-menu-icons {
  display: flex;
  gap: 50px;
  align-items: center;
}

/* Telefon numaraları column olarak */
.phone-numbers {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  box-shadow: 0 1px 10px rgba(0,0,0,0.2);

	/* arkaplan rengine göre daha beyaz yarı saydam renk */
	background-color: rgba(255, 255, 255, 0.1);
}

.cart{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Sepet linki biraz aşağıya ve sola hizalı */
.cart a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease; /* Hover efekti için geçiş */
}
.cart a:hover{
   background-color: rgba(255, 255, 255, 0.2); /* Hafif beyaz arka plan hoverda */
  color: #fff; /* Renk değişmiyor, ama gerekirse değiştirebilirsin */
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(0,0,0,0.2);
  border-radius: 4px; /* Hafif yuvarlak köşeler */
}

/* Sepet ve tutar birlikte alt alta */
.cart-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* Sepet tutarı küçük ve alt satırda */
.cart-total {
  font-size: 0.9rem;
  margin-top: 2px;
  color: #fff; /* İstersen renk ayarla */
}

/* Kullanıcı adı yan tarafta, ortalanmış ve sepete biraz uzak */
.user-name {
  margin-left: 20px;
  align-self: center;
  font-weight: 600;
  color: white; /* İstersen renk ayarla */
}

/* siparişlerim */
.user-menu a {
  color: white; /* Beyaz renk, top-header ile uyumlu */
  text-decoration: none; /* Alt çizgiyi kaldır */
  font-weight: 600; /* Kullanıcı adı gibi biraz kalın */
  padding: 8px 12px; /* Tıklanabilir alanı büyüt */
  border-radius: 4px; /* Hafif yuvarlak köşeler */
  transition: background-color 0.3s ease, color 0.3s ease; /* Hover efekti için geçiş */
}

.user-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Hafif beyaz arka plan hoverda */
  color: #fff; /* Renk değişmiyor, ama gerekirse değiştirebilirsin */
  cursor: pointer;
}


.menu-buttons a {
  margin-left: 20px;
  cursor: pointer;
  padding-right: 30px;
  color: inherit; /* mevcut yazı rengiyle uyumlu kalır */
  text-decoration: none; /* alt çizgiyi kaldırır */
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu-buttons a:hover {
  color: #007bbf; /* hover rengi aynı kalsın */
}

/* Bottom Header */
.bottom-header {
  background-color: #003366;
  position: sticky;
  top: 0;
  z-index: 999;
}

.categories-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.categories-menu > li {
  position: relative;
  padding: 15px;
  color: white;
  cursor: pointer;
}

/* Hover: kategori menüsü öğeleri */
.categories-menu > li:hover {
  background-color: #002244; /* koyu arka plan */
  color: #aad4ff; /* açık mavi yazı */
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #206090;
  list-style: none;
  padding: 10px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(255,255,255,0.5);
}

.dropdown li {
  padding: 5px 10px;
  color: white;
  white-space: nowrap;
  cursor: pointer;
}

/* Hover: dropdown menü öğeleri */
.dropdown li:hover {
  background-color: #145a96; /* biraz daha koyu mavi */
  color: #e0eafc; /* açık yazı */
}

.menu-toggle {
  display: none;
}

/* Hero */
#hero-background {
  background: url('/assets/img/heroBg.webp') center/cover no-repeat;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.hero-content h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 18px;
}

.hero-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #ffcc00;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover: hero butonu */
.hero-content button:hover {
  background-color: #e6b800;
}

/* Main Content */
#main-content {
  padding: 40px 15px;
}

.slideshow h2,
.location h2,
.about h2,
.info-blocks h3 {
  color: #001f3f;
}

.slideshow-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* Tüm satırın ortalanmasını sağlar */
  gap: 20px;
  padding: 40px 15px;
}

.slideshow {
  max-width: 400px;
  width: 100%;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;       /* İçerikleri ortalar */
}

.slider-container {
  width: 100%;
  height: 450px;
  overflow: hidden;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.slider {
  display: flex;
  align-items: center; /* Dikey ortalama */
  transition: transform 0.5s ease-in-out;
}

.slider img {
  width: 100%;       /* container genişliği kadar */
  height: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Slider butonları */
.slider-button {
  position: absolute;
  top: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.slider-button.prev {
  left: 5px;
}

.slider-button.next {
  right: 5px;
}


.location {
  text-align: center; /* Başlık ve iframe'i yatayda ortalar */
  margin: 2rem 0;    
}

.location iframe {
  width: 60%;          /* Kapsayıcının tamamını kaplar */
  aspect-ratio: 16 / 9; /* Genişlik-yukseklik oranı */
  border: 0;
  display: inline-block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
  border-radius: 8px;
}

.about {
  margin: 50px;
}

.about-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.about-container img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
}

.info-blocks {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.info {
  flex: 1;
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

/* Footer */
.site-footer {
  background-color: #001f3f;
  color: white;
  padding: 40px 20px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 200px;
  margin: 10px;
}

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 5px;
}

/* Hover: footer linkleri */
.footer-section ul li a:hover {
  color: #aaddff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  font-size: 14px;
}

/* Kapsayıcı (container) */
#scrollToTopContainer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 168px;    /* Buton genişliği (padding+font boyutu ile uyumlu) */
  height: 24px;   /* Butonun yarısı kadar (border-radius yarısı) */
  overflow: hidden; /* Alt yarının görünmesini engeller */
  z-index: 99;
}

/* Buton */
#scrollToTopBtn {
  display: none; /* Baslangicta gorunmesin */
  position: relative; /* Kapsayıcıya göre konumlanacak */
  bottom: 0; /* Butonun alt kısmı kapsayıcıya yapışık */
  font-size: 20px;
  border: none;
  outline: none;
  background-color: #555;
  color: white;
  cursor: pointer;
  border-radius: 150px;
  opacity: 0.5;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-start;     
  justify-content: center;   /* Yatay ortalama */
  width: 160px;    /* Kapsayıcı genişliğine uyumlu */
  height: 100px;   /* Buton tam yükseklik */
}

#scrollToTopBtn:hover {
  opacity: 1;
}


/* ---------------------------------------------------------------------- */
/* login/register page */
  .login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f8ff; /* main.css body background ile uyumlu */
    padding: 15px;
  }

  .login-box {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
  }

  .login-box h2 {
    margin-bottom: 25px;
    font-weight: 600;
    color: #003366;
    text-align: center;
  }

  .login-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #001f3f;
  }

  .login-box input{
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1.5px solid #007bbf;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
  }

  .login-box input:focus {
    outline: none;
    border-color: #00aeef;
  }

  .login-box button[type="submit"] {
    width: 100%;
    background-color: #00aeef;
    color: white;
    font-size: 18px;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }

  .login-box button[type="submit"]:hover {
    background-color: #007bbf;
  }


  /* Google Login Button */
  .google-login-btn {
    margin-top: 20px;
    width: 100%;
    background-color: #4285f4;
    color: white;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    gap: 10px;

  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
justify-content: center;
    align-items: center;

  box-shadow:
    0 6px 8px rgba(0, 0, 0, 0.4),                  /* dış gölge - daha hafif */
    inset 0 -4px 6px rgba(0, 0, 0, 0.3),            /* altta koyu gölge */
    inset 0 4px 6px rgba(255, 255, 255, 0.7);       /* üstte parlama */
    
  transition: all 0.15s ease-in-out;
  }



  .google-login-btn:hover {	/* uzerine geldiginde */
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.5),                  /* biraz daha belirgin dış gölge */
    inset 0 -4px 6px rgba(0, 0, 0, 0.35),            /* altta koyu gölge biraz arttı */
    inset 0 4px 6px rgba(255, 255, 255, 0.8),        /* üstte parlama biraz arttı */
    inset 0 0 0 1000px rgba(0, 0, 0, 0.1);           /* hafif koyulaştırma */

  transform: translateY(-2px);
}
  .google-login-btn:active {	/* tiklandiginda */
  box-shadow:
    0 0px 0px rgba(0, 0, 0, 0),                   /* dış gölge silinir */
    inset 0 -4px 6px rgba(0, 0, 0, 0.6),             /* alttaki iç gölge koyulaşır */
    inset 0 4px 6px rgba(0, 0, 0, 0.5);              /* üst iç gölge beyazdan siyaha dönüşür, koyu renk */
  transform: translateY(3px);
  transition: all 0.05s ease-in-out;
}




  .google-login-btn img {
    width: 20px;
    height: 20px;
  }

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #001f3f;
}

.auth-footer a {
  color: #007bbf;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #00aeef;
  text-decoration: underline;
}




/* ---------------------------------------------------------------------- */
/* products page */
.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.product-card {
  background-color: #e5e5e5;
  border-radius: 12px;
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.3),
    inset 0 -6px 12px rgba(255, 255, 255, 0.5),
    inset 0 6px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: black;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.45),
    inset 0 -8px 16px rgba(255, 255, 255, 0.7),
    inset 0 8px 16px rgba(0, 0, 0, 0.25);
}

.product-card h2 {
  font-size: 20px;
  margin: 20px 0 0;
  text-align: center;

text-shadow:
  -1px -1px 2px rgba(255, 255, 255, 1),
  1px 1px 3px rgba(0, 0, 0, 0.4);

}

.product-card p {
  font-size: 14px;
  color: #555;
  margin: 5px 0;
  text-align: center;

text-shadow:
  -1px -1px 2px rgba(255, 255, 255, 1),
  1px 1px 3px rgba(0, 0, 0, 0.4);
}

.product-card p:last-child {
  font-weight: bold;
  color: #007bbf;
  margin-top: 15px;
}

/* Ürün listeleme - görsel kutusu */
.product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1; /* Kare kutu */
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


/* sayfalama için */
.pagination {
    margin: 30px 0;
    text-align: center;
    font-family: Arial, sans-serif;
    user-select: none;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-list li {
    display: inline-block;
}

.pagination-list a,
.pagination-list span {
    padding: 8px 14px;
    text-decoration: none;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.pagination-list a:hover:not(.disabled) {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-list .pagination-current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: 700;
    cursor: default;
}

.pagination-list .disabled span {
    color: #999;
    cursor: default;
}

.pagination-list .dots {
    padding: 8px 14px;
    color: #777;
    border: none;
    cursor: default;
    user-select: none;
}

/* ---------------------------------------------------------------------- */
/* product page */
.product-detail {
  max-width: 1000px;
  margin: 50px auto;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Ürün detay - görsel kutusu */
.product-image {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background-color: #f5f5f5;
  border-radius: 10px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-info {
  flex: 1;
  min-width: 250px;
}

.product-info h1 {
  margin-top: 0;
  font-size: 28px;
  color: #333;
}

.product-info p {
  font-size: 16px;
  color: #444;
  margin: 10px 0;
}

.product-info strong {
  color: #111;
}

#add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  max-width: 300px;
}

#add-to-cart-form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.custom-number-input {
  display: flex;
  align-items: center;
  gap: 5px;
}

.custom-number-input input {
  width: 50px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 0;
  background-color: #fff;
}

.custom-number-input button {
  font-size: 18px;
  padding: 6px 12px;
  background-color: #007bff;
  color: white;
  user-select: none;
}

#add-to-cart-form button {
  padding: 10px;
  font-size: 15px;
  color: white;
  background-color: #28a745;
  border: none;
}


/* ---------------------------------------------------------------------- */
/* ai konuşma */
/* Yardım butonu */
#helpBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%; /* yuvarlak yapma */
  background-color: #007bff;
  color: white;
  font-size: 28px;
  z-index: 100;
}

/* Chat kutusu */
#chatBox {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  z-index: 99;
  overflow: hidden;
display: none;

}

/* Başlık */
.chat-header {
  background-color: #007bff;
  color: white;
  padding: 10px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Mesajlar bölümü */
#chatMessages {
  padding: 10px;
  flex: 1;
  height: 250px;
  overflow-y: auto;
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mesaj baloncukları */
.message {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 16px;
  clear: both;
  display: inline-block;
}

/* Kullanıcı mesajı - tek satır, taşarsa ... */
.user-message {
  background-color: #dcf8c6;
  align-self: flex-end;
  float: right;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 80%;
}

/* Bot mesajı - çok satırlı, satır kaydırma aktif */
.bot-message {
  background-color: #e4e6eb;
  align-self: flex-start;
  float: left;
  white-space: pre-wrap;  /* Satır kır */
  word-wrap: break-word;  /* Uzun kelime kır */
}

/* Giriş alanı */
.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

.chat-input button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 14px;
}


/* ---------------------------------------------------------------------- */
/* edit profil */


.profile-edit-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid #dce7f3;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.profile-edit-container h3 {
  margin-bottom: 16px;
  font-size: 20px;
  color: #1d3b5a;
  border-bottom: 1px solid #e0eaf4;
  padding-bottom: 6px;
}

.profile-edit-container label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
  color: #2c3e50;
}

.profile-edit-container input[type="text"],
.profile-edit-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #bcd4e9;
  border-radius: 6px;
  background-color: #f9fcff;
  transition: border-color 0.3s;
}

.profile-edit-container input:focus {
  border-color: #5faee3;
  outline: none;
  background-color: #ffffff;
}

.profile-edit-container button {
  margin-top: 24px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  background-color: #3498db;
  color: #fff;
}

.profile-edit-container .message {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
}




/* ---------------------------------------------------------------------- */
/* sepetteki ürünler */
.cart-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.cart-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.empty-cart {
    font-size: 1.2rem;
    color: #777;
    text-align: center;
    margin-top: 30px;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-table-wrapper {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}

.cart-table thead tr {
    background-color: #007bff;
    color: #fff;
}

.cart-table th,
.cart-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.cart-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-table td .quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cart-table td .quantity-control button {
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #ccc;
    background-color: white;
}

.cart-table td .quantity-control span {
    min-width: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.total-row td {
    background-color: #e9ecef;
    font-weight: 700;
    font-size: 1.1rem;
}

.remove-btn {
  background-color: #e74c3c;
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
}


.cartConfirmShopping {
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
}

.continueShoppingButton{
  background-color: #4CAF50; /* Yeşil zemin */
  color: white;             /* Yazı rengi beyaz */
  padding: 12px 24px;       /* İç boşluk */
  border: none;             /* Kenarlık yok */
  font-size: 16px;          /* Yazı büyüklüğü */
  margin-top: 20px;
  margin-left: 20px;
}

.cartClearButton{
  background-color:  #e53935; /* Canlı kırmızı */
  color: white;             /* Yazı rengi beyaz */
  padding: 12px 24px;       /* İç boşluk */
  font-size: 16px;          /* Yazı büyüklüğü */
}



/* ---------------------------------------------------------------------- */
/* sipariş son adım */
/* === Checkout Başlığı === */
.checkout-title {
  font-size: 28px;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ccc;
  color: #222;
}

/* === Bilgi kutuları === */
.checkout-error,
.checkout-success {
  max-width: 800px;
  margin: 20px auto;
  padding: 15px 20px;
  border-left: 6px solid;
  border-radius: 6px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout-error {
  background-color: #fdeaea;
  border-left-color: #e74c3c;
  color: #a94442;
}

.checkout-success {
  background-color: #e6f7ed;
  border-left-color: #2ecc71;
  color: #2d6832;
}

/* === Sepet tablosu === */
.checkout-table {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.checkout-table th {
  background-color: #eef2f5;
  padding: 12px;
  text-align: left;
  font-weight: bold;
  color: #333;
  font-size: 15px;
  border-bottom: 1px solid #ddd;
}

.checkout-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  color: #222;
  background-color: #fff;
}

/* Zebra stili */
.checkout-table tr:nth-child(even) td {
  background-color: #fafbfd;
}

.checkout-total-row td {
  font-weight: bold;
  background-color: #f1f5f9;
  color: #000;
}

/* === Alt başlıklar === */
.checkout-subtitle {
  font-size: 20px;
  margin: 40px auto 15px;
  max-width: 900px;
  color: #222;
  padding: 8px 12px;
  background-color: #e3eaf1;
  border-left: 5px solid #007acc;
  border-radius: 4px;
}

/* === Form === */
.checkout-form {
  max-width: 900px;
  margin: 20px auto;
  padding: 25px 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* === Seçim kutuları ve textarea === */
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background-color: #fbfbfc;
  margin-top: 6px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.checkout-form label {
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.checkout-form button {
  background-color: #007acc;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
}

/* === Bağlantı (adres düzenleme) === */
.checkout-form a {
  display: inline-block;
  margin-top: 10px;
  color: #007acc;
  text-decoration: underline;
  font-size: 14px;
}

/* === Boş sepet metni === */
.checkout-empty {
  max-width: 800px;
  margin: 30px auto;
  font-size: 18px;
  color: #666;
  text-align: center;
}

.checkout-address-link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #007acc;
  background-color: #e6f0f9;
  border: 1px solid #b3d4ef;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 8px;
}


/* hata mesajları */
.checkout-button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.checkout-button:hover {
    background-color: #0056b3;
}





/* ---------------------------------------------------------------------- */
/* eski siparisleri gorme */
.orders-title {
  font-size: 28px;
  color: #1d3b5a;
  margin: 40px auto 24px;
  max-width: 800px;
  text-align: center;
  font-weight: 700;
  font-family: Arial, sans-serif;
}

.orders-empty-message {
  text-align: center;
  color: #666666;
  font-size: 18px;
  margin-top: 40px;
  font-family: Arial, sans-serif;
}

.orders-table-container {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #dce7f3;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.orders-table thead tr {
  background-color: #f1f8ff;
}

.orders-table thead th {
  padding: 12px 16px;
  color: #1d3b5a;
  font-weight: 600;
  border-bottom: 2px solid #b0c9e8;
  text-align: left;
}

.orders-table tbody tr:hover {
  background-color: #f9fbff;
}

.orders-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e1e8f4;
  color: #34495e;
  font-size: 15px;
}