/* ==========================================================================
   BEYOĞLU TEKNOLOJİ - RESPONSIVE & MOBILE DESIGN SYSTEM
   Hedef Çözünürlükler: 320px, 375px, 390px, 414px, 768px, 1024px, 1280px+
   Sıfır Yatay Kaydırma (Zero Horizontal Overflow), Kusursuz Dokunmatik Deneyim
   ========================================================================== */

/* Mobil elemanlar masaüstünde kesinlikle gizli */
.mobile-header {
  display: none;
}
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1090;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-drawer-overlay.active {
  display: block !important;
  opacity: 1 !important;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 86vw;
  max-width: 360px;
  background-color: #ffffff;
  z-index: 1100;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}
.mobile-drawer.active {
  transform: translateX(0) !important;
  visibility: visible !important;
}

/* 1. MASAÜSTÜ BÜYÜK EKRANLAR (1200px - 1440px) */
@media (min-width: 1200px) {
  .container {
    max-width: 1380px;
    width: 96%;
  }
}

/* 2. LAPTOP VE ORTA EKRANLAR (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-grid {
    grid-template-columns: 1fr 280px;
    gap: 1rem;
  }
  
  .hero-slide {
    padding: 2.5rem 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .campaign-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .trust-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-columns-grid .company-contact-box {
    grid-column: span 3;
  }
}

/* 3. TABLET VE MOBİL EKRANLAR (<= 991px) */
@media (max-width: 991px) {
  /* Masaüstü Header'ı gizle, Mobil Header'ı aç (Çift Logo Engelleme) */
  .bt-header-topbar,
  .site-topbar,
  .bt-header-main,
  .site-main-header,
  .bt-header-nav-bar,
  .site-nav-bar {
    display: none !important;
  }
  
  .mobile-header {
    display: block !important;
  }
  
  /* Hero Alanı */
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-side-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .hero-slide {
    min-height: 360px;
    padding: 2rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  /* Set Builder */
  .set-builder-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .set-builder-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .set-summary-left, .set-summary-right {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
  
  .set-total-box {
    text-align: center;
  }
  
  /* Ürünler & Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Modal */
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Footer */
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-columns-grid .company-contact-box {
    grid-column: span 2;
  }
  
  .newsletter-box {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .newsletter-form {
    max-width: 100%;
    width: 100%;
  }
}

/* 4. MOBİL EKRANLAR (320px - 767px: 320px, 375px, 390px, 414px) */
@media (max-width: 767px) {
  body {
    padding-bottom: 60px; /* Yapışkan alt menü payı */
  }
  
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  
  .mobile-bottom-nav {
    display: block;
  }
  
  /* Hero Alanı */
  .hero-section {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }
  
  .hero-slider-wrap {
    min-height: 380px;
    border-radius: var(--radius-md);
  }
  
  .hero-slide {
    padding: 1.75rem 1.25rem;
  }
  
  .hero-title {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-desc {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  
  .btn-hero-primary, .btn-hero-outline {
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .slider-arrow {
    display: none; /* Mobilde swipe ve dots kullanılır */
  }
  
  .slider-dots {
    left: 1.25rem;
    bottom: 0.85rem;
  }
  
  .hero-side-banners {
    grid-template-columns: 1fr;
  }
  
  /* 4'lü Kampanya Kartları Mobilde 2'li Izgara */
  .campaign-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  
  .camp-card {
    min-height: 120px;
    padding: 1.25rem 1rem;
  }
  
  .camp-card-title {
    font-size: 1.05rem;
  }
  
  .camp-card-media {
    width: 75px;
    height: 75px;
  }
  
  /* Bölüm Başlıkları */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  /* Ürün Kartları (Mobilde 2 Kolon Kompakt) */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  
  .product-card {
    padding: 0.65rem;
    border-radius: var(--radius-sm);
  }

  .product-badges {
    top: 0.35rem;
    left: 0.35rem;
    gap: 0.25rem;
    max-width: 65%;
  }

  .product-badges span {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  
  .product-title {
    font-size: 0.8rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .price-current {
    font-size: 1.1rem;
  }
  
  .btn-add-cart {
    padding: 0.5rem 0.65rem;
    font-size: 0.775rem;
    gap: 0.35rem;
  }
  
  .btn-add-cart svg {
    width: 15px;
    height: 15px;
  }
  
  .product-quick-view-bar {
    display: none; /* Dokunmatik ekranda hover olmadığından karta doğrudan tıklanır */
  }
  
  /* Güvenlik & Hizmet Ayrıcalıkları */
  .trust-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trust-feature-item {
    background-color: #f8fafc;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
  }
  
  /* Footer */
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-columns-grid .company-contact-box {
    grid-column: span 1;
  }
  
  .footer-bottom-grid {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .legal-links {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .payment-badges-row {
    justify-content: center;
  }
  
  /* Floating WhatsApp Butonu */
  .floating-whatsapp-btn {
    bottom: 4.5rem; /* Alt menünün üstünde dursun */
    left: 1rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }
  
  .scroll-top-btn {
    bottom: 4.5rem;
    right: 1rem;
    width: 38px;
    height: 38px;
  }
}

/* 5. ÇOK KÜÇÜK MOBİL EKRANLAR (320px - 360px) */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr; /* 320px'te tek kolon ile tam rahatlık */
  }
  
  .hero-title {
    font-size: 1.25rem;
  }
  
  .mobile-logo {
    height: 32px;
  }
}

/* 6. CHECKOUT & ÖDEME MOBİL ENTEGRASYONU */
@media (max-width: 900px) {
  .co-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .co-summary {
    position: static !important;
    order: 2;
  }
  .co-card {
    padding: 1.15rem !important;
    margin-bottom: 1rem !important;
  }
  .co-progress {
    padding: 0.6rem 0.85rem !important;
    gap: 0.25rem !important;
    font-size: 0.72rem !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .co-progress::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 600px) {
  .co-grid-2, .co-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }
  .co-input, .co-select {
    font-size: 16px !important; /* iOS otomatik zoom engelleme */
    min-height: 44px !important;
  }
  .invoice-type-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .co-auth-btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
  }
  .pay-method-card {
    padding: 0.75rem 0.9rem !important;
  }
}

