* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-tap-highlight-color: transparent; /* Mobilde dokunulan butonda çıkan mavi vurguyu kaldırır */
}

/* Dokunma / tıklama sonrası butonda kalan mavi çerçeveyi kaldırır (klavyeyle gezinirken görünmeye devam eder) */
button:focus:not(:focus-visible) {
  outline: none;
}

body {
  background-color: #fdfbf7;
  color: #333;
  padding: 20px;
  padding-bottom: 70px;
}

/*  Header  */
.brand-header {
  background-color: #FCD24A;
  padding: 12px 20px;
  border-bottom: 2px solid #e5b92e;
  margin: -20px -20px 20px -20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: calc(100% + 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  overflow:hidden;
}

/* Sol ve Sağ Kanatlar */
.header-spacer,
.header-action {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
}


.header-spacer {
  justify-content: flex-start;
}

.header-action {
  justify-content: flex-end;
}

/* Orta Başlık Alanı */
.brand-container {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 0;
  padding: 0 4px;
}

.brand-title {
  display: block !important;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(14px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: clamp(0.5px, 0.5vw, 2px);
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.brand-subtitle {
  display: block !important;
  font-size: clamp(7px, 1.8vw, 11px);
  font-weight: 600;
  letter-spacing: clamp(1px, 0.4vw, 2px);
  word-spacing: 3px;
  color: #333333;
  margin-top: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

/*  SOL MENÜ BUTONU */
.menu-header-btn {
  background-color: #fcd24a;
  color: #1a1a1a;
  border: none !important;
  height: 35px;
  width: 38px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: all 0.2s ease;
  line-height: 1;
}

.menu-header-btn:hover {
  background-color: #f9f9f9;
}

/* SAĞ SEPET BUTONU */
.cart-header-btn {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  height: 35px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cart-header-btn:hover {
  background-color: #f9f9f9;
}

.cart-badge {
  background-color: #FCD24A;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
}

.controls {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/*  Masaüstü Kategori Filtresi */
.filter-section {
  width: 100%;
  position: relative;
  padding-bottom: 0px;
  border-bottom: none;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 10px;
  width: 100%;
  position: relative;
}

.category-filters::after {
  content: '';
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #e8e8e8;
  pointer-events: none;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  color: #555;
  border-radius: 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #f4f6f9;
  border-color: #ccc;
}

.filter-btn.active {
  background-color: #f9d74f !important;
  color: #1a1a1a !important;
  border-color: #8fbfa9 !important;
  font-weight: 600;
}

/*  Arama Kutusu ve Sıralama Butonu  */
.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: -18px !important;     
  margin-bottom: 12px !important; 
  padding-bottom: 12px !important;              
  border-bottom: 1px solid #e0e0e0 !important;   
  margin-bottom: 0px !important;
  padding-left: 4px !important;   
  padding-right: 24px !important;
}

.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 15px;
  font-size: 16px;
  color: #888;
  pointer-events: none;
  user-select: none;
}

#searchInput {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
  outline: none;
  background-color: #F4F4F5 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#searchInput:focus {
  border-color: #F4F4F5;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Custom Dropdown */
.sort-box {
  position: relative;
  display: inline-block;
}

.sort-btn {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0 !important;
  white-space: nowrap;
}

.sort-btn:hover {
  border-color: #1a1a1a;
  background-color: #f9f9f9;
}

.sort-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 115%;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  min-width: 160px;
  z-index: 1000;
  overflow: hidden;
  padding: 6px 0;
}

.sort-menu.show {
  display: block;
}

.sort-option {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.sort-option:hover {
  background-color: #f4f6f9;
}

.sort-option.active {
  font-weight: 700;
  color: #4a6b5d;
  background-color: #eaf3ee;
}

/* Ürün Izgarası  */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

/* Sepete + ile ürün eklenince kartın kısa basma animasyonu */
.product-card.card-press {
  animation: cardPress 0.32s ease-out;
}

@keyframes cardPress {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.96); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
  70%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .product-card.card-press { animation: none; }
}

.product-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-card img:hover {
  transform: scale(1.02);
}

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 700 !important;
  font-family: 'Times New Roman', Georgia, serif;
  font-style: italic;
  min-height: 28px;
}

.card-body .desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/*  Varyant Stilleri */
.variant-price-header {
  margin-bottom: 8px;
}

.variant-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 6px;
  border-top: 1px solid #f0f0f0;
}

.variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.variant-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.variant-name {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.price {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: #1a1a1a;
  display: inline-flex;
  align-items: flex-start;
}

.price sup {
  font-size: 12px;
  font-style: normal;
  margin-left: 2px;
  margin-top: 2px;
  font-family: sans-serif;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

/*  Sayı Giriş Kutusu */
.qty-input {
  width: 44px;
  height: 32px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  border: 1.5px solid #d4d8d6;
  border-radius: 8px;
  background-color: #ffffff;
  outline: none;
  padding: 0 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qty-input:focus {
  border-color: #8dae9e;
  box-shadow: 0 0 0 2px rgba(141, 174, 158, 0.2);
}


.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input {
  -moz-appearance: textfield; 
}

.minus-btn {
  background-color: #e0e0e0;
  color: #333;
}

.minus-btn:hover {
  background-color: #d0d0d0;
}

.plus-btn {
  background-color: #f9d74f;
  color: #1a1a1a;
}

.plus-btn:hover {
  background-color: #f0d465;
}

.qty-count {
  font-size: 15px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.disabled-btn {
  background-color: #ccc;
  color: #666;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: not-allowed;
  text-align: center;
}

.out-of-stock {
  opacity: 0.6;
}

.no-results {
  text-align: center;
  color: #777;
  margin-top: 40px;
}

/*  Alt Sepet Şeridi  */
.bottom-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #b4b4b4;
  color: #1a1a1a;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.bottom-cart-badge {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.bottom-cart-total {
  font-size: 18px;
  font-weight: 700;
}

/*  Sepet Modalı  */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Mobilde adres çubuğu açılıp kapandığında ekran boyunu dinamik eşitler */
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-modal.active {
  opacity: 1;
  visibility: visible;
}

.cart-content {
  background: #ffffff;
  width: 100%;               
  max-width: 100%;         
  max-height: 88vh;        
  max-height: 88dvh; /* Tarayıcı çubukları varken dahi içeriği tam ekranda tutar */
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 20px 20px calc(35px + env(safe-area-inset-bottom, 15px)) 20px; /* iPhone alt bar payı ve buton boşluğu */
  position: relative;
  
  /* Dikey kaydırmayı zorunlu kıl ve akıcı dokunmatik desteği ver */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* Sepet kaydırılırken arkadaki sayfanın oynamasını engeller */
  
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.cart-modal.active .cart-content {
  transform: translateY(0);
}

/* Mobilde ve Masaüstünde Tutma Çizgisi */
.cart-drag-handle {
  width: 44px;
  height: 4px;
  background-color: #d8d8d8;
  border-radius: 10px;
  margin: 0 auto 12px auto;
  flex-shrink: 0;
}

.close-cart {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #777;
  transition: color 0.2s;
  z-index: 10;
}

.close-cart:hover {
  color: #111;
}

.cart-header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: #f9d74f; /* Altınay Concept için altın/sarı tonu */
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Siparişi Gönder butonunun dikey sıkışmada ezilmesini önler */
.cart-content .send-order-btn,
.cart-content button[type="submit"] {
  flex-shrink: 0;
  margin-top: 15px;
  margin-bottom: 8px;
}

/*  Sepet İçi Ürün Listesi  */
.cart-items-list {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 15px 0;
  margin-bottom: 20px;
  max-height: 380px;       
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-cart-msg {
  text-align: center;
  color: #888;
  padding: 25px 0;
  font-size: 14px;
}

/* Sepet Satırı */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f7f7f7;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  background-color: #f8f8f8;
  flex-shrink: 0;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price-calc {
  font-size: 13px;
  color: #444;
  font-weight: 500;
}

/* Sepet İçi + / - Buton Kontrolleri */
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* --- EKSİ (-) BUTONU RENKLERİ --- */
.cart-minus-btn {
  background-color: #e0e0e0; 
  color: #333333;           
}

.cart-minus-btn:hover {
  background-color: #d0d0d0; 
}

/* --- ARTI (+) BUTONU RENKLERİ --- */
.cart-plus-btn {
  background-color: #FCD24A; 
  color: #1a1a1a;           
}

.cart-plus-btn:hover {
  background-color: #e5b92e; 
}
.cart-qty-btn:active {
  transform: scale(0.92);
}

.cart-item-qty {
  font-size: 14px;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
}

/* Sağdaki Kırmızı Çarpı Butonu (Ürünü Tamamen Silme) */
.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: #e53935;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.cart-item-remove-btn:hover {
  transform: scale(1.25);
  opacity: 0.85;
}

.cart-item-remove-btn:active {
  transform: scale(1.05);
}

/* Sepet Toplam Satırı */
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #edf1ef;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.cart-total-row strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: #1a1a1a;
}

/* Sipariş Formu */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-form label {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.5px;
}

.order-form input, 
.order-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e5e4;
  border-radius: 10px;
  background-color: #f5f7f6;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.order-form input:focus, 
.order-form textarea:focus {
  border-color: #8dae9e;
  background-color: #ffffff;
}

.phone-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-code {
  background: #e2e5e4;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.send-order-btn {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s ease;
}

.send-order-btn:hover {
  background-color: #fcd24a;
}

/* --- Resim Büyütme Modalı & Sağ-Sol Geçiş Butonları --- */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin: auto;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10001;
}

.close-modal:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: none;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}

.modal-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* --- SİPARİŞ TAKİP ÇEKMECESİ (SOLDAN SAĞA KAYAN PANEL) --- */
.trackOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.trackOverlay.show {
  opacity: 1;
  visibility: visible;
}

.trackPanel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 90%;
  max-width: 380px;
  background: #ffffff;
  z-index: 9999;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%); 
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.trackPanel.show {
  transform: translateX(0); 
}

.trackPanelHead {
  background: #FCD24A; 
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e5b92e;
}

.trackPanelTitle {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
}

.trackPanelClose {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #1a1a1a;
  font-weight: bold;
  padding: 4px 8px;
}

.trackPanelBody {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.trackInputGroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

#trackCodeInput {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

#trackCodeInput:focus {
  border-color: #FCD24A;
  box-shadow: 0 0 0 2px rgba(252, 210, 74, 0.3);
}

.trackSearchBtn {
  background: #FCD24A;
  color: #1a1a1a;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.trackSearchBtn:active {
  opacity: 0.8;
}

.trackListTitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.trackEmpty {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  padding: 30px 10px;
}

/* SİPARİŞ KARTI VE ÜRÜN LİSTESİ */
.trackCard {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.trackCardHead {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.trackNo {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.trackStatus {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.trackItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.trackItem img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.trackItemInfo {
  flex: 1;
  min-width: 0;
}

.trackItemName {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trackItemMeta {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.trackStatusRow {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  text-align: right;
}

/* --- 1. ve 2. Satır Kategori Stilleri (Optimize Edilmiş Hali) --- */
.category-filters.main-categories {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px !important;    
  border-bottom: 1px solid #e0e0e0 !important; 
  margin-bottom: 6px !important;      
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-filters.main-categories::-webkit-scrollbar {
  display: none;
}

.category-filters.sub-categories {
  display: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding-top: 0px !important;        
  border-top: none !important;      
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e0e0e0 !important;
  margin-bottom: 12px !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-filters.sub-categories::-webkit-scrollbar {
  display: none;
}

.sub-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 18px;                 
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-filter-btn.active {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border-color: #1a1a1a !important;
}

.category-filters::after {
  display: none !important;
  content: none !important;
}

.category-filters.main-categories {
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e0e0e0 !important;
  margin-bottom: 15px !important;
}

.category-filters.sub-categories {
  border-top: none !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e0e0e0 !important;
  margin-bottom: 15px !important;
}


/* TÜM ÜST ALANI TEK BLOK OLARAK YÖNETEN SABİT KAPSAYICI */
#stickyHeaderWrap {
  position: fixed;
  left: 10;
  width: 100%;
  z-index: 1000;
  background-color: #fdfbf7;
  transition: transform 0.3s ease-in-out;
}

/* Aşağı kaydırınca ekranın üstünden dışarı fırlar */
#stickyHeaderWrap.nav-hidden {
  transform: translateY(-100%) !important;
}

/* Yukarı kaydırınca veya en tepedeyken ekrana geri oturur */
#stickyHeaderWrap.nav-visible {
  transform: translateY(0) !important;
}


main {
  padding-top: 170px !important; 
}



/* --- SADECE MASAÜSTÜ / BİLGİSAYAR İÇİN --- */
@media (min-width: 768px) {
  /* Masaüstünde Ekranı En Soldan En Sağa Yay */
  .container, main, .controls, .filter-section {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  /* Kategorileri tek sıra halinde kaydır */
  .category-filters.main-categories {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }
  .category-filters.main-categories::-webkit-scrollbar {
    display: none !important;
  }

  .filter-btn, .sub-filter-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Arama çubuğu tam genişlik */
  .search-container, .search-box-wrapper, .controls .search-bar {
    width: 100% !important;
    max-width: 100% !important;
  }

 /* Masaüstü ürün ızgarası & Alt Alta Fiyat-Çizgi-Adet Düzeni */
#productGrid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 15px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px 20px 80px 20px !important;
  box-sizing: border-box !important;
}

.product-card {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-card img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

/* Fiyatı yukarı, miktarı aşağı alan ve araya çizgi çeken kısım */
.card-footer {
  display: flex !important;
  flex-direction: column !important; /* Yan yana değil, alt alta diz */
  align-items: stretch !important;
  gap: 10px !important;
  margin-top: 0px !important;
  padding-top: 10px !important;
}


.card-footer .price {
  margin-bottom: 2px !important;
}

.card-footer .qty-controls {
  display: flex !important;
  justify-content: flex-end !important; /* Miktar butonlarını sağa yaslar */
  align-items: center !important;
  padding-top: 10px !important;
  border-top: 1px solid #f0f0f0 !important; /* Fiyat ile miktar arasındaki çizgi */
  width: 100% !important;
}
}

/* TÜM CİHAZLARDA (MOBİL + MASAÜSTÜ): FİYAT ÜSTTE, ÇİZGİ VE ADET BUTONLARI ALTTA */
.card-footer {
  display: flex !important;
  flex-direction: column !important; /* Yan yana değil, alt alta dizilim */
  align-items: stretch !important;
  gap: 8px !important;
  margin-top: 0px !important;
  padding-top: 10px !important;
}
.variant-list {
  margin-top: 6px !important;
}

.card-footer .price {
  margin-bottom: 2px !important;
}

.card-footer .qty-controls {
  display: flex !important;
  justify-content: flex-start !important; /* Adet butonlarını şık bir şekilde sağa yaslar */
  align-items: center !important;
  padding-top: 8px !important;
  border-top: 1px solid #f0f0f0 !important; /* Fiyat ile adet arasındaki ince çizgi */
  width: 100% !important;
}

.cart-header-btn {
    margin-right: 40px !important; /* İsteğe göre 30px - 60px arası ayarlayabilirsin */
  }


/* --- Mobil Ekran Uyumları --- */
@media (max-width: 600px) {
  body {
    padding: 10px;
    padding-bottom: 60px;
  }

  /* 1. Header Şeridi */
  .brand-header {
    padding: 8px 10px !important;
    margin: -10px -10px 15px -10px !important;
    width: calc(100% + 20px) !important;
    min-height: 52px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  /* 2. Sol ve Sağ Kanatlar (65px'e daraltılarak başlığa nefes alma alanı açılır) */
  .header-spacer,
  .header-action {
    flex: 0 0 65px !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-spacer {
    justify-content: flex-start !important;
  }

  .header-action {
    justify-content: flex-end !important;
  }

  /* 3. Sol Menü Butonu */
  .menu-header-btn {
    background-color: #fcd24a;
    color: #1a1a1a;
    border: none !important;
    height: 32px !important;
    width: 34px !important;
    border-radius: 8px;
    font-size: 16px !important;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    line-height: 1;
  }

  /* 4. Orta Başlık Alanı (Tam Eşit Orantıda Ortalanır ve Asla Taşmaz) */
  .brand-container {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 4px !important;
    min-width: 0 !important;
  }

  .brand-title {
    font-size: clamp(13px, 4.3vw, 18px) !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    margin-left: -20px !important;
  }

  .brand-subtitle {
    font-size: clamp(8px, 2.2vw, 12px) !important;
    letter-spacing: 1px !important;
    word-spacing: 1px !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    margin-left: -20px !important;
  }

  /* 5. Sağ Sepet Butonu */
  .cart-header-btn {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    height: 32px !important;
    padding: 0 6px !important;
    border-radius: 8px;
    font-size: 11px !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    white-space: nowrap !important;
    margin-right: 18px !important;
    
  }

  .cart-badge {
    padding: 1px 4px !important;
    font-size: 9px !important;
  }

  .filter-section {
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }

  /* MOBİLDE 1. SATIR (ANA KATEGORİLER) VE 2. SATIR (ALT KATEGORİLER) */
  .category-filters.main-categories {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-right: 20px;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .category-filters.main-categories::-webkit-scrollbar {
    display: none !important;
  }

  .category-filters.sub-categories {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-right: 20px;
    padding-top: 0px !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    margin-top: -4px !important;
    margin-bottom: 10px !important;
  }
  .category-filters.sub-categories::-webkit-scrollbar {
    display: none !important;
  }

  
  .filter-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .sort-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card img {
    height: 200px;
  }

  .card-body {
    padding: 10px;
  }

  .card-body h3 {
    font-size: 14px;
  }

  .price {
    font-size: 15px;
  }


  .qty-controls {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
    min-width: 26px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px;
    border-radius: 6px !important;
  }


  .qty-input {
    width: 32px !important;
    height: 26px !important;
    text-align: center !important;
    font-size: 12px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    border: 1px solid #d1d5db !important;
  }

  .variant-name {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .variant-row {
    padding: 6px 0;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 6px !important;
  }

  /* Mobil Modal Navigasyon Butonları */
  .modal-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.6);
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  /* Mobil Sepet Modalı Düzenlemeleri */
  .cart-content {
    max-width: 100%;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 16px 16px 25px 16px;
    max-height: 85vh;
  }

  .cart-item-img {
    width: 52px;
    height: 52px;
  }

  .cart-item-name {
    font-size: 13px;
  }

  .cart-item-price-calc {
    font-size: 12px;
  }

  .cart-qty-btn {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .cart-item-remove-btn {
    font-size: 16px;
    padding: 6px 8px;
  }

  .qty-input {
    width: 36px;
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
  }

  /* Mobilde Ürün Adı ile Fiyat Arasındaki Boşluğu Sıfırlama */
  .card-body h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    font-family: 'Times New Roman', Georgia, serif;
    min-height: 20px;
  }

  .card-body .desc {
    font-size: 12px !important;
    margin-bottom: 6px !important; 
    flex-grow: 0 !important;       
  }

  .card-footer {
    margin-top: 4px !important;    
    padding-top: 0 !important;
    gap: 6px !important;
  }

  .card-footer .price {
    font-size: 15px !important;
  }

  .card-footer .qty-controls {
    padding-top: 6px !important;
    border-top: 1px solid #f0f0f0 !important;
  }

  /* Ana Kategori ve Alt Kategori Butonlarını Mobilde Eşitleme */
.filter-btn, 
.sub-filter-btn {
  padding: 6px 14px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  height: 34px !important;              
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* Kapsayıcı satırların dikey boşluklarını eşitleme */
#mainCategoryFilters, 
#subCategoryFilters {
  align-items: center !important;
  gap: 8px !important;
}

  .search-container {
  padding-bottom: 8px !important;              
  margin-bottom: -16px !important;
}


  
}
