/* ANASAYFA CHECKOUT KISMINDAKI EKRAN DUZENINI SAGLAMAK ICIN OLUSTURULDU*/ 


/* Genel reset */
* {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* ====================== ARKA PLAN (Fotoğraftan blur gelecek) ====================== */
body {
  background-color: rgb(247, 247, 247);
    color: #3f3f3f;
    overflow-x: hidden;
}
/* Navbar  stick ile navbar ekranda kilitli olur*/
.navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #ffffff;
  border-bottom: 1px solif #eee;
  color: #0b6325

}

.logo {
    font-weight: 600;
    font-size: 20px;
}


.hero p {
    color: #f0f0f0;
}

/* Products */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 60px 80px;
}

.product-card {
  height: 400px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);     /* Blur için yarı şeffaf yaptım */
  backdrop-filter: blur(20px);               /* Ana blur efekti */
  -webkit-backdrop-filter: blur(20px);       /* Safari için */
  border-radius: 18px;                       /* Daha yumuşak Apple tarzı */
  border: 1px solid rgba(0, 0, 0, 0.08);     /* Hafif kenar çizgisi */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover efekti de blur ile uyumlu olsun */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.96);     /* Hover'da biraz daha opak olsun */
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.product-image {
    width: 300%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-card h3 {
    margin-bottom: 8px;
    font-weight: 500;
}

.availability {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 20px;
}
/* add to cart buton rengi */
.product-card button {
    padding: 10px 20px;
    border: none;
    border-radius: 9px;
    background: #e5e5e5;
    color: rgb(0, 0, 0);
    cursor: pointer;
    font-weight: bold;
}

.product-card button:hover {
    opacity: 3;
    background-color: #0f396d;
    color: white;
}


/* --- Top right links --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-link, .logo {
  text-decoration: none;
  color: #1d1d1f;
}


/* --- Tracking box --- */
.track-box { display: flex; gap: 10px; align-items: center;}
.track-input {
  width: 160px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #e5e5e5;
  background: white;
}


/* =====   NAV BUTTONS ===== */

.track-btn,
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid #d2d2d7;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

/* Hover */
.track-btn:hover,
.cart-link:hover {
  background: #044b6f;
  color: #ffffff;
  border-color: #6f6f6f;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid #d2d2d7;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.admin-link:hover {
  background: #2a24d1;
  color: white;
}


/* ===== CART BADGE (Bold STYLE) ===== */

.cart-link {
  position: relative;
  gap: 6px;
}

/* kartin ustundeki sayı */
.cart-link span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #db0909; /* light red */
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}



/* --- Product qty row --- */
.qty-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.qty-label { color: #6e6e73; font-size: 13px; }
.qty-input {
  width: 90px;
  padding: 8px 3px;
  border-radius: 9px;
  border: 1px solid #e5e5e5;
}

/* --- Checkout ekrani --- */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  padding: 40px 80px;
}
.checkout-title { font-size: 28px; margin-bottom: 16px; }

.summary-card, .form-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.summary-title { font-weight: 600; }
/* --- Checkout ekrani --- */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  padding: 40px 80px;
}
.checkout-title { font-size: 28px; margin-bottom: 16px; }

.summary-card, .form-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.summary-title { font-weight: 600; }

/* --- Cart rows (Checkout 2nd) --- */
.cart-row{
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
}

.cart-thumb{
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
}

.cart-name{
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}

.cart-controls{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* - and + buttons */
.mini-btn{
  width: 45px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #d6d6d6;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 0;
}

/* + button hover (increase) */
.mini-btn[data-act="inc"]:hover {
  background: #e8f5e9;   /* hafif yeşil */
  color: #2e7d32;
  border-color: #81c784;
}

/* - button hover (decrease) */
.mini-btn[data-act="dec"]:hover {
  background: #fdecea;   /* hafif kırmızı */
  color: #c62828;
  border-color: #087575;
}

.mini-btn:hover{
  border-color: #bdbdbd;
}

/* checkout quantity number */
.cart-qty{
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}



/* Remove button */
.mini-btn.danger{
  color: #c62828;
  border-color: #e0e0e0;
  transition: all 0.2s ease;
  width: auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 8px rgb(255, 255, 255) #ffffff;
  background: #fff;
  font-weight: 600;
}

.mini-btn.danger:hover{
  background: red;
  color: white;
}

/* checkout siparis toplami rakami */
.summary-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
}
/* checkout form kismi */
.form-title { margin-bottom: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { color: #6e6e73; font-size: 13px; }

.field input, .field textarea {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #e5e5e5;
}
@media (max-width:768px) {
  .row2{
    grid-template-columns: 1fr;
    gap: 12px;
  }

}
/* submit request butonu */
.primary-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #e71b1b;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.primary-btn:hover{
  background: #0b4c05;
    color: white;
}

/* submit sonucu*/
.submit-result { margin-top: 14px; }
.msg {
  border-radius: 16px;
  padding: 12px 14px;
}
.msg.ok { border: 1px solid #e8e8e8; background: #e9fde9; }
.msg.bad { border: 1px solid #ffd2d2; background: #fff6f6; }
.code { margin-top: 6px; }

.muted { color: #575757; font-size: 20px; font-weight:bold; margin-top: 6px; }
.link { color: #1d1d1f; text-decoration: none; }
.empty { color: #6e6e73; padding: 10px 0; }

@media (max-width: 768px) {
  .checkout-wrap { grid-template-columns: 1fr; padding: 20px; }
  .products { padding: 20px; }
  .track-result-wrap { padding: 0 20px 10px; }
}

/* foto ayarlari */

.product-image {
  width: 100%;
  height: 320px;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: zoom-in;
}

.product-image img {
  height: 180px;
  object-fit: contain;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
}

/* available yazisi*/

.product-sub {
  padding: 6px 10px;

  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  

  border-radius: 9px;
  background: #f4faf4;
  color: #1d1d1f;

  gap: 6px;

  margin: 8px auto 14px;
  padding: 6px 14px;

}


/* IMAGE MODAL  Fotografa tiklayinca fotograf buyutme*/
.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal.open {
  display: flex;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
}

.image-modal-img {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  background: transparent;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;              /* logo ile yazı arası */
  font-weight: 500;
}

.logo img {
  height: 55px;           /* küçük */
  width: auto;
  opacity: 0.9;           /* bağırmasın */
  border-radius: 14px;
}

/* Checkout - Back to home hint */
.back-home {
  cursor: pointer;
}

.back-home:hover {
  text-decoration: underline;
}

/*-*-*-*-*-*-*-*-*-*-*-*-* in your cart yazisi icin *-*-*-*-*-*-*-*-*-*-*-*-*-* */
.product-cart-info{

min-width:22px;
height:22px;

background:#f8f8f8;
color:rgb(0, 0, 0);

border-radius:32%;
border: solid 0.5px; color: #000000;

font-size:12px;
font-weight:700;

display:flex;
align-items:center;
justify-content:center;

flex-shrink: 0;
}
/* ==================== TRACKING MODAL (Güncellenmiş + Scroll Sorunu Çözüldü) ==================== */

.tracking-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
}

.tracking-modal.hidden {
  display: none;
}

/* Ana Kart - Scroll burada aktif ve sınırlı */
.tracking-card {
  background: #fefefe96;
  color: black;
  border-radius: 18px;                    /* daha premium görünüm */
  width: 90%;
  max-width: 520px;
  max-height: 88vh;                       /* ← EN ÖNEMLİ: Scroll'u garanti eder */
  overflow-y: auto;                       /* ← Scroll buradan çalışıyor */
  padding: 32px 28px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  position: relative;
  
  
  /* Açılma animasyonu */
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: 
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease;
}

.tracking-modal:not(.hidden) .tracking-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Güzel ince scrollbar (Chrome, Edge, Safari) */
.tracking-card::-webkit-scrollbar {
  width: 6px;
}
.tracking-card::-webkit-scrollbar-track {
  background: transparent;
}
.tracking-card::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}
.tracking-card::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Firefox için scrollbar */
.tracking-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.25) transparent;
}

/* Close butonu */
.tracking-close {
  position: absolute;
  top: 15px;
  right: 22px;
  font-size: 26px;
  border: 1px solid;
  border-radius: 15px;
  background: none;
  cursor: pointer;
  color: #444;
  z-index: 10;
}

.tracking-close:hover {
  background: red;
  color: white;
}

/* İçerik stilleri (senin mevcut kodların korunuyor) */
.track-row {
  justify-content: space-between;
  padding: 6px 0;
  font-size: 15px;
}

.track-row-status {
  font-weight: bold;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.track-item:last-child {
  border-bottom: none;
}

.track-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f2f200;
}

.track-item-info {
  display: flex;
  flex-direction: column;
}

.track-item-name {
  font-size: 14px;
  font-weight: 500;
}

.track-item-qty {
  font-size: 13px;
  color: #6e6e73;
}

.track-label {
  color: #0000a4;
  font-size: 13px;
  margin-right: 8px;
  font-weight: 400;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(10px);
}

/* Status renkleri */
.status-pending  { background: rgba(255, 193, 7, 0.15); color: #b47b00; }
.status-approved { background: rgba(52, 199, 89, 0.15); color: #1c7c3c; }
.status-rejected { background: rgba(255, 59, 48, 0.15); color: #a10f0f; }
.status-returned { background: rgba(175, 82, 222, 0.15); color: #6b2fa0; }

.track-reject-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.08);
  color: #b00020;
  font-size: 14px;
}

.track-reject-box strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

/* ==================== TRACKING MODAL SON ==================== */



/* ====================== siparis submit BAŞARI MODALI ====================== */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.success-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
}

.success-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  border-radius: 28px;
  width: 90%;
  max-width: 460px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.3);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.success-modal:not(.hidden) .success-card {
  transform: scale(1);
}

.success-icon {
  font-size: 58px;
  margin-bottom: 16px;
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1d1d1f;
}

.success-text {
  font-size: 19px;
  color: #29292b;
  margin-bottom: 28px;
  line-height: 1.4;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

.tracking-box {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 16px;
  margin: 24px 0;
}

.tracking-label {
  font-size: 13px;
  font-weight: 600;
  color: #0071e3;
  margin-bottom: 4px;
}

.tracking-code {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #1d1d1f;
}

.success-small {
  font-size: 15px;
  color: #8e8e93;
  margin-bottom: 32px;
}

.continue-btn {
  background: #0071e3;
  color: white;
  border: none;
  width: 100%;
  height: 56px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.continue-btn:hover {
  background: #0066cc;
}


/* REJECTED REASON KISMI MODAL ICINDE */

.reject-card{
  margin-top:12px;
  background:#fff5f5;
  border:1px solid #f5c2c2;
  border-radius:12px;
  padding:12px;
}

.reject-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}

.reject-title{
  font-weight:600;
  color:#b91c1c;
}

.reject-text{
  color:#7f1d1d;
  font-size:14px;
}

/* mobil navbar uyumu */
@media (max-width: 768px) {

  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* NAVBAR */
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .logo {
    justify-content: flex-start;
  }

  .nav-right {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .track-box {
    width: 100%;
  }

  .track-input,
  .track-btn {
    width: 100%;
  }

  .cart-link,
  .admin-link {
    width: 100%;
    justify-content: center;
  }

  /* CARD SYSTEM (EN KRİTİK SENDEKİ PROBLEM) */
  .card,
  .product-card {
    width: 100%;
    padding: 15px;
  }

  .card img,
  .product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
  }

  /* BUTTON + QTY SATIRI */
  .card-actions {
    flex-direction: column;
    gap: 10px;
  }

  .card-actions input,
  .card-actions button {
    width: 100%;
  }

}


/* HERO SECTION */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('/images/outfactory.jpg') no-repeat center center;
  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: center;
}
/* karartma efekti */
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  top: 0;
  left: 0;
}

.hero-content {
  position: relative;
  text-align: center;
  color: rgb(213, 213, 213);
  /*max-width: 800px;*/
  padding: 20px;
}

.hero-title {
  font-size: 55px;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
.hero-title::after {
  content: "|";
  margin-left: 5px;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 0.7; }
  25%, 75% { opacity: 0; }
}

.hero-subtitle {
  display: inline-block;
  padding: 8px 16px;

  background: rgba(131, 131, 131, 0.197);
  backdrop-filter: blur(1px);

  border-radius: 10px;

  color: #acacac;
  font-size: 25px;
  font-weight: bold;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.hero-btn {
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  color: white;
  font-weight: bold;

  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);

  box-shadow: 0 0 0 rgba(255,255,255,0);

  transition: all 0.3s ease;
}

/* PRIMARY */
.hero-btn.primary:hover {
  border-color: rgb(40, 111, 2);
  box-shadow: 0 0 18px rgba(223, 219, 4, 0.822);
  background: rgba(182, 7, 7, 0.853);
}

/* SECONDARY */
.hero-btn.secondary:hover {
  border-color: rgba(215, 184, 6, 0.866);
  box-shadow: 0 0 18px rgba(230, 3, 3, 0.83);
  background: rgba(246, 201, 2, 0.793);
}

body.lock-scroll {
  overflow: hidden;
  height: 100vh;
}

html.lock-scroll {
  overflow: hidden;
}

.hero {
  position: relative;
}

/* alt fade */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 200px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 40%,
    #ffffff 100%
  );

  pointer-events: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top: 2px solid #000;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transition: all 0.2s ease;
}
.selected-text {
  background: #0068cf;
  color: rgb(255, 255, 255);
  padding: 2px 6px;
  border-radius: 4px;
}
