/* 
   SahilGo - Mobile Product Slider CSS
   Mobil cihazlar için optimize edilmiş ürün slider stilleri
*/

/* Mobil için temel ayarlar */
@media screen and (max-width: 768px) {
  
  /* Hero Section - Mobil Optimizasyonu */
  .hero-section {
    margin-top: 60px;
    min-height: 85vh;
    background-attachment: scroll; /* Mobilde fixed attachment performans sorunu yaratabilir */
    padding: 20px 0;
  }
  
  .hero-content {
    padding: 0 15px;
  }
  
  .hero-text {
    margin-bottom: 30px;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
  }
  
  .hero-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
  }

  /* Product Slider Container - Mobil */
  .product-slider-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  /* Product Slider - Mobil Düzenleme */
  .product-slider {
    padding: 20px 10px;
    overflow: visible;
    position: relative;
  }

  /* Product Slides - Mobil Layout - Yan Yana Kartlar */
  .product-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 0;
    width: fit-content;
    overflow: visible;
  }

  /* Product Slide - Mobil Boyutlar - Ortadaki Aktif */
  .product-slide {
    flex: 0 0 240px;
    height: 380px;
    transition: all 0.4s ease;
    opacity: 0.5;
    transform: scale(0.85);
    position: relative;
    z-index: 1;
    margin: 0 5px;
  }

  /* Aktif kart - ortada büyük ve belirgin */
  .product-slide.active {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 3;
  }

  /* Yan kartlar - küçük ve soluk */
  .product-slide.adjacent {
    opacity: 0.7 !important;
    transform: scale(0.9) !important;
    z-index: 2;
  }

  /* Product Card - Mobil Optimizasyonu */
  .product-card {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .product-slide.active .product-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  }

  .product-slide.adjacent .product-card {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  /* Mobilde hover efektlerini azalt */
  .product-card:hover {
    transform: translateY(-2px);
  }

  /* Product Image - Mobil */
  .product-image {
    position: relative;
    height: 160px;
    overflow: hidden;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .product-card:hover .product-image img {
    transform: scale(1.02); /* Mobilde daha az zoom */
  }

  /* Product Badge - Mobil */
  .product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: #ff6b35;
    color: white;
  }

  .product-badge.new {
    background: #28a745;
  }

  /* Product Info - Mobil Layout */
  .product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    height: auto;
  }

  .product-info p {
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
    font-size: 12px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2; /* Standart özellik */
  }

  /* Product Features - Mobil */
  .product-features {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .product-features span {
    background: #f8f9fa;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 10px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
  }

  .product-features i {
    color: #2563eb;
    font-size: 10px;
  }

  /* Product Price - Mobil */
  .product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
  }

  .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2563eb;
  }

  .period {
    color: #666;
    font-size: 11px;
  }

  /* Add to Cart Button - Mobil */
  .add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .add-to-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  }

  /* Navigation - Mobilde gizle */
  .slider-nav {
    display: none !important;
  }

  /* Dots - Mobilde göster ama küçük */
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 0 20px;
  }

  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .dot.active,
  .dot:hover {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  }

  /* CTA Buttons - Mobil */
  .cta-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
  }

  .cta-buttons button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 12px rgba(251, 191, 36, 0.3);
  }

  .cta-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
  }
}

/* Çok küçük ekranlar için ek optimizasyonlar */
@media screen and (max-width: 480px) {
  
  .hero-section {
    margin-top: 60px;
    min-height: 80vh;
    padding: 15px 0;
  }
  
  .hero-content {
    padding: 0 10px;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  
  .hero-text p {
    font-size: 0.9rem;
  }

  /* Slider - Küçük ekranlar */
  .product-slider {
    padding: 15px 5px;
  }

  .product-slides {
    gap: 15px;
    padding: 71px;
  }

  .product-slide {
    flex: 0 0 220px;
    height: 360px;
    margin: 0 auto;
  }

  .product-image {
    height: 150px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .product-info p {
    font-size: 11px;
  }

  .add-to-cart-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .slider-nav {
    display: none !important;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .cta-buttons button {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Landscape tablet için özel ayarlar */
@media screen and (max-width: 1024px) and (orientation: landscape) {
  
  .hero-section {
    min-height: 70vh;
  }
  
  .product-slide {
    flex: 0 0 260px;
    height: 420px;
  }
}

/* Touch cihazlar için özel ayarlar */
@media (hover: none) and (pointer: coarse) {
  
  /* Touch cihazlarda hover efektlerini kaldır */
  .product-card:hover {
    transform: none;
  }
  
  .product-card:hover .product-image img {
    transform: none;
  }
  
  .slider-nav:hover {
    display: none !important;
  }
  
  .add-to-cart-btn:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  }
  
  .cta-buttons button:hover {
    transform: none;
  }
  
  /* Touch için navigasyon gizle */
  .slider-nav {
    display: none !important;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

