/*
 * ============================================
 * v4-index.css - INDEX/LISTING PAGE STYLES
 * ============================================
 * 
 * Bu dosya v4_index.php ve v4_search.php'de yüklenir!
 * 
 * KURALLAR:
 * 1. HEADER ve FOOTER stillerine DOKUNMA!
 * 2. .basket-popup, .right-menu gibi global bileşenleri stilleme
 * 3. Product listing'e özel stiller için spesifik scope kullan:
 *    - .product-container-wrapper .xyz
 *    - .product-grid .xyz
 * 4. Genel class'lar (.qty-btn, .btn, vb.) KULLANMA
 *    Bunlar header/footer ile çakışır!
 * 
 * ============================================
 */

.product-container-wrapper {
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  padding: 15px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

@media screen and (min-width: 992px) {
  main.px-2 {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    padding-top: 20px !important;
    box-sizing: border-box !important;
  }
  
  main.px-2 > * {
    box-sizing: border-box !important;
  }
  
  main.px-2 .container-fluid,
  main.px-2 .container,
  main.px-2 .row {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }
  
  main.px-2 > .product-container-wrapper {
    padding: 20px !important;
  }
  
  .input-container.my-3 {
    display: none !important;
  }
  
  .shop-carousel-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .shop-carousel-container img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    display: block !important;
  }
  
  .category-header {
    margin-bottom: 20px !important;
    padding: 0 10px !important;
  }
  
  .category-swiper-container {
    position: relative !important;
    padding: 0 10px !important;
  }
  
  .category-products-swiper {
    overflow: hidden !important;
  }
  
  .category-products-swiper .swiper-slide {
    height: auto !important;
  }
  
  .category-swiper-button-prev,
  .category-swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
  }
  
  .category-swiper-button-prev {
    left: -14px !important;
  }
  
  .category-swiper-button-next {
    right: -14px !important;
  }
  
  .category-swiper-button-prev:hover i,
  .category-swiper-button-next:hover i {
    color: #000 !important;
  }
  
  .category-swiper-button-prev i,
  .category-swiper-button-next i {
    font-size: 18px !important;
    color: #666 !important;
    transition: color 0.2s ease !important;
  }
  
  .category-swiper-button-prev.swiper-button-disabled,
  .category-swiper-button-next.swiper-button-disabled {
    opacity: 0.2 !important;
    cursor: not-allowed !important;
  }
  
  .category-products-swiper .product-card {
    width: 100% !important;
    margin: 0 !important;
  }
  
  .container-fluid.manset-wrapper {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .manset-wrapper .card {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .manset-wrapper #cover-image {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .manset-wrapper #cover-image img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    display: block !important;
    margin: 0 auto !important;
  }
  
  #footer-info {
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
}

@media screen and (min-width: 1600px) {
  main.px-2 {
    max-width: 1600px;
  }
  
  #footer-info {
    max-width: 1600px;
  }
}

@media screen and (max-width: 991px) {
  body {
    overflow-x: hidden !important;
  }
  
  main.px-2 {
    overflow-x: hidden !important;
  }
  
  .category-header {
    padding: 0 !important;
    margin-bottom: 15px !important;
  }
  
  .category-swiper-container {
    display: none !important;
  }
  
  .mobile-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .mobile-product-grid .product-card {
    width: 100% !important;
    margin: 0 !important;
  }
}
