/* KC_MOBILE_PRODUCT_CAROUSEL_R51_FINAL */
/* R51A/B/C/D/F/G mevcut iyi görünüm korunarak tek dosyada birleştirildi. */

/* ---- kc-mobile-product-carousel-r51a.css ---- */
/* KC_MOBILE_PRODUCT_CAROUSEL_R51A */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /*
    Türkiye Geneli Yeni Ürünler ve Konuma Göre Ürünler:
    dikey grid yerine yatay kaydırmalı ürün şeridi.
  */
  .products.kc-r51a-product-carousel,
  #kcNearestProductsV46B.kc-r51a-product-carousel,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel,
  .kc-r50y-near-products.kc-r51a-product-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 2px 10px 14px 10px !important;
    margin-left: -2px !important;
    margin-right: -2px !important;
    margin-bottom: 18px !important;
    contain: none !important;
  }

  .products.kc-r51a-product-carousel::-webkit-scrollbar,
  #kcNearestProductsV46B.kc-r51a-product-carousel::-webkit-scrollbar,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel::-webkit-scrollbar,
  .kc-r50y-near-products.kc-r51a-product-carousel::-webkit-scrollbar {
    display: none !important;
  }

  .products.kc-r51a-product-carousel > *,
  #kcNearestProductsV46B.kc-r51a-product-carousel > *,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel > *,
  .kc-r50y-near-products.kc-r51a-product-carousel > * {
    flex: 0 0 clamp(156px, 46vw, 184px) !important;
    width: clamp(156px, 46vw, 184px) !important;
    min-width: clamp(156px, 46vw, 184px) !important;
    max-width: clamp(156px, 46vw, 184px) !important;
    scroll-snap-align: start !important;
    height: auto !important;
    min-height: 262px !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  .products.kc-r51a-product-carousel .card,
  #kcNearestProductsV46B.kc-r51a-product-carousel .card,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .card,
  .kc-r50y-near-products.kc-r51a-product-carousel .card,
  .products.kc-r51a-product-carousel .product,
  #kcNearestProductsV46B.kc-r51a-product-carousel .product,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .product {
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(5, 70, 39, .08) !important;
  }

  .products.kc-r51a-product-carousel .pimg,
  #kcNearestProductsV46B.kc-r51a-product-carousel .pimg,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .pimg,
  .kc-r50y-near-products.kc-r51a-product-carousel .pimg {
    height: 112px !important;
    min-height: 112px !important;
    flex: 0 0 112px !important;
    overflow: hidden !important;
  }

  .products.kc-r51a-product-carousel .pimg img,
  #kcNearestProductsV46B.kc-r51a-product-carousel .pimg img,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .pimg img,
  .kc-r50y-near-products.kc-r51a-product-carousel .pimg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .products.kc-r51a-product-carousel .pbody,
  #kcNearestProductsV46B.kc-r51a-product-carousel .pbody,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .pbody,
  .kc-r50y-near-products.kc-r51a-product-carousel .pbody {
    min-height: 136px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
  }

  .products.kc-r51a-product-carousel .pbody h3,
  #kcNearestProductsV46B.kc-r51a-product-carousel .pbody h3,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .pbody h3,
  .kc-r50y-near-products.kc-r51a-product-carousel .pbody h3 {
    font-size: 14px !important;
    line-height: 1.08 !important;
  }

  .products.kc-r51a-product-carousel .price,
  #kcNearestProductsV46B.kc-r51a-product-carousel .price,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .price,
  .kc-r50y-near-products.kc-r51a-product-carousel .price {
    margin-top: auto !important;
  }

  /* Hızlı İşlemler artık ürünlerin üstüne binmesin */
  .quickgrid {
    position: relative !important;
    z-index: 3 !important;
    clear: both !important;
    margin-top: 8px !important;
  }

  /* Bölüm başlıkları carousel ile daha dengeli dursun */
  .head {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
  }

  @media (max-width: 370px) {
    .products.kc-r51a-product-carousel > *,
    #kcNearestProductsV46B.kc-r51a-product-carousel > *,
    .kc-nearest-v46a-grid.kc-r51a-product-carousel > *,
    .kc-r50y-near-products.kc-r51a-product-carousel > * {
      flex-basis: 158px !important;
      width: 158px !important;
      min-width: 158px !important;
      max-width: 158px !important;
    }

    .products.kc-r51a-product-carousel .pbody,
    #kcNearestProductsV46B.kc-r51a-product-carousel .pbody,
    .kc-nearest-v46a-grid.kc-r51a-product-carousel .pbody,
    .kc-r50y-near-products.kc-r51a-product-carousel .pbody {
      min-height: 142px !important;
    }
  }
}

/* ---- kc-mobile-product-carousel-r51b.css ---- */
/* KC_MOBILE_PRODUCT_CAROUSEL_R51B */
@media (max-width: 768px) {
  .products.kc-r51a-product-carousel,
  #kcNearestProductsV46B.kc-r51a-product-carousel,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel,
  .kc-r50y-near-products.kc-r51a-product-carousel {
    scroll-padding-left: 10px !important;
    scroll-behavior: smooth !important;
    padding-left: 10px !important;
    padding-right: 18px !important;
  }

  .products.kc-r51a-product-carousel > *:first-child,
  #kcNearestProductsV46B.kc-r51a-product-carousel > *:first-child,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel > *:first-child,
  .kc-r50y-near-products.kc-r51a-product-carousel > *:first-child {
    margin-left: 0 !important;
  }

  .products.kc-r51a-product-carousel > *:last-child,
  #kcNearestProductsV46B.kc-r51a-product-carousel > *:last-child,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel > *:last-child,
  .kc-r50y-near-products.kc-r51a-product-carousel > *:last-child {
    margin-right: 12px !important;
  }

  /* Bölüm başlığı altına hafif ipucu: kullanıcı kaydırılabilir olduğunu anlasın */
  .head a {
    white-space: nowrap !important;
  }

  .kc-r51b-carousel-ready {
    cursor: grab;
  }

  .kc-r51b-carousel-ready:active {
    cursor: grabbing;
  }
}

/* ---- kc-mobile-product-carousel-r51c.css ---- */
/* KC_MOBILE_PRODUCT_CAROUSEL_R51C */
@media (max-width: 768px) {
  /*
    Sadece Konuma Göre Ürünler / nearest products şeridi.
    Türkiye Geneli carousel'e dokunmaz.
  */

  #kcNearestProductsV46B.kc-r51a-product-carousel,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel {
    min-height: 336px !important;
    height: 336px !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-bottom: 24px !important;
    margin-bottom: 34px !important;
    align-items: stretch !important;
  }

  #kcNearestProductsV46B.kc-r51a-product-carousel > *,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel > * {
    min-height: 314px !important;
    height: 314px !important;
    max-height: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #kcNearestProductsV46B.kc-r51a-product-carousel .pimg,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .pimg {
    height: 118px !important;
    min-height: 118px !important;
    flex: 0 0 118px !important;
  }

  #kcNearestProductsV46B.kc-r51a-product-carousel .pbody,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .pbody {
    min-height: 184px !important;
    height: auto !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 12px !important;
    overflow: visible !important;
  }

  #kcNearestProductsV46B.kc-r51a-product-carousel .price,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel .price {
    margin-top: auto !important;
    padding-top: 10px !important;
  }

  .quickgrid {
    position: relative !important;
    z-index: 2 !important;
    clear: both !important;
    margin-top: 16px !important;
  }

  @media (max-width: 370px) {
    #kcNearestProductsV46B.kc-r51a-product-carousel,
    .kc-nearest-v46a-grid.kc-r51a-product-carousel {
      min-height: 356px !important;
      height: 356px !important;
    }

    #kcNearestProductsV46B.kc-r51a-product-carousel > *,
    .kc-nearest-v46a-grid.kc-r51a-product-carousel > * {
      min-height: 334px !important;
      height: 334px !important;
    }

    #kcNearestProductsV46B.kc-r51a-product-carousel .pbody,
    .kc-nearest-v46a-grid.kc-r51a-product-carousel .pbody {
      min-height: 202px !important;
    }
  }
}

/* ---- kc-mobile-product-carousel-r51f.css ---- */
/* KC_MOBILE_PRODUCT_CAROUSEL_R51F */
@media (max-width: 768px) {
  /*
    R51F:
    Konuma Göre Ürünler kartlarını kompaktlaştırır.
    Hızlı İşlemler üstüne binmesin diye kart içerik yüksekliğini azaltır.
    Türkiye Geneli carousel'e dokunmaz.
  */

  #kcNearestProductsV46B,
  .kc-nearest-v46a-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;

    height: 282px !important;
    min-height: 282px !important;
    max-height: 282px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;

    padding: 2px 10px 12px 10px !important;
    margin: 0 -2px 18px -2px !important;

    contain: none !important;
    position: relative !important;
    z-index: 1 !important;
  }

  #kcNearestProductsV46B::-webkit-scrollbar,
  .kc-nearest-v46a-grid::-webkit-scrollbar {
    display: none !important;
  }

  #kcNearestProductsV46B > *,
  .kc-nearest-v46a-grid > * {
    flex: 0 0 clamp(164px, 47vw, 188px) !important;
    width: clamp(164px, 47vw, 188px) !important;
    min-width: clamp(164px, 47vw, 188px) !important;
    max-width: clamp(164px, 47vw, 188px) !important;

    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;

    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    scroll-snap-align: start !important;

    border-radius: 17px !important;
    background: #ffffff !important;
  }

  #kcNearestProductsV46B .pimg,
  .kc-nearest-v46a-grid .pimg {
    height: 108px !important;
    min-height: 108px !important;
    flex: 0 0 108px !important;
    overflow: hidden !important;
  }

  #kcNearestProductsV46B .pimg img,
  .kc-nearest-v46a-grid .pimg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  #kcNearestProductsV46B .pbody,
  .kc-nearest-v46a-grid .pbody {
    height: 142px !important;
    min-height: 142px !important;
    max-height: 142px !important;
    flex: 0 0 142px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding-bottom: 10px !important;
  }

  #kcNearestProductsV46B .pbody h3,
  .kc-nearest-v46a-grid .pbody h3 {
    font-size: 15px !important;
    line-height: 1.05 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  #kcNearestProductsV46B .pbody p,
  .kc-nearest-v46a-grid .pbody p {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    min-height: 24px !important;
    max-height: 26px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  #kcNearestProductsV46B .price,
  .kc-nearest-v46a-grid .price {
    margin-top: auto !important;
    padding-top: 6px !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  #kcNearestProductsV46B .price strong,
  .kc-nearest-v46a-grid .price strong {
    font-size: 11.5px !important;
  }

  #kcNearestProductsV46B .plus,
  .kc-nearest-v46a-grid .plus {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }

  .quickgrid {
    position: relative !important;
    z-index: 2 !important;
    clear: both !important;
    margin-top: 10px !important;
  }

  @media (max-width: 370px) {
    #kcNearestProductsV46B,
    .kc-nearest-v46a-grid {
      height: 292px !important;
      min-height: 292px !important;
      max-height: 292px !important;
    }

    #kcNearestProductsV46B > *,
    .kc-nearest-v46a-grid > * {
      height: 270px !important;
      min-height: 270px !important;
      max-height: 270px !important;
    }
  }
}

/* ---- kc-mobile-product-carousel-r51g.css ---- */
/* KC_MOBILE_PRODUCT_CAROUSEL_R51G */
@media (max-width: 768px) {
  /*
    R51G:
    Konuma Göre Ürünler'den sonra Hızlı İşlemler'in ürün kartlarının üstüne binmesini engeller.
    Yapıyı değiştirmez, sadece güvenli alt boşluk verir.
  */

  #kcNearestProductsV46B,
  .kc-nearest-v46a-grid {
    height: 330px !important;
    min-height: 330px !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 26px !important;
    margin-bottom: 78px !important;
    contain: none !important;
  }

  #kcNearestProductsV46B > *,
  .kc-nearest-v46a-grid > * {
    height: 292px !important;
    min-height: 292px !important;
    max-height: 292px !important;
    overflow: hidden !important;
  }

  #kcNearestProductsV46B .pbody,
  .kc-nearest-v46a-grid .pbody {
    height: 174px !important;
    min-height: 174px !important;
    max-height: 174px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding-bottom: 10px !important;
  }

  #kcNearestProductsV46B .price,
  .kc-nearest-v46a-grid .price {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    z-index: 5 !important;
  }

  .quickgrid {
    position: relative !important;
    z-index: 2 !important;
    clear: both !important;
    margin-top: 42px !important;
  }

  @media (max-width: 370px) {
    #kcNearestProductsV46B,
    .kc-nearest-v46a-grid {
      height: 350px !important;
      min-height: 350px !important;
      margin-bottom: 88px !important;
    }

    #kcNearestProductsV46B > *,
    .kc-nearest-v46a-grid > * {
      height: 312px !important;
      min-height: 312px !important;
      max-height: 312px !important;
    }

    #kcNearestProductsV46B .pbody,
    .kc-nearest-v46a-grid .pbody {
      height: 194px !important;
      min-height: 194px !important;
      max-height: 194px !important;
    }
  }
}

/* KC_MOBILE_PRODUCT_CAROUSEL_R51_FINAL_TAIL */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .products.kc-r51a-product-carousel,
  #kcNearestProductsV46B.kc-r51a-product-carousel,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel {
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .products.kc-r51a-product-carousel::-webkit-scrollbar,
  #kcNearestProductsV46B.kc-r51a-product-carousel::-webkit-scrollbar,
  .kc-nearest-v46a-grid.kc-r51a-product-carousel::-webkit-scrollbar {
    display: none !important;
  }
}

/* KC_MOBILE_PRODUCT_CAROUSEL_R51H_NEAR_CARD_WHITESPACE_POLISH */
@media (max-width: 768px) {
  /*
    Sadece Konuma Göre Ürünler kartlarının iç boşluğunu azaltır.
    Türkiye Geneli ürün şeridine dokunmaz.
  */

  #kcNearestProductsV46B,
  .kc-nearest-v46a-grid {
    height: 312px !important;
    min-height: 312px !important;
    max-height: none !important;
    padding-bottom: 20px !important;
    margin-bottom: 56px !important;
  }

  #kcNearestProductsV46B > *,
  .kc-nearest-v46a-grid > * {
    height: 278px !important;
    min-height: 278px !important;
    max-height: 278px !important;
  }

  #kcNearestProductsV46B .pimg,
  .kc-nearest-v46a-grid .pimg {
    height: 108px !important;
    min-height: 108px !important;
    flex: 0 0 108px !important;
  }

  #kcNearestProductsV46B .pbody,
  .kc-nearest-v46a-grid .pbody {
    height: 158px !important;
    min-height: 158px !important;
    max-height: 158px !important;
    padding-bottom: 8px !important;
  }

  #kcNearestProductsV46B .pbody h3,
  .kc-nearest-v46a-grid .pbody h3 {
    font-size: 16px !important;
    line-height: 1.05 !important;
    margin-bottom: 4px !important;
  }

  #kcNearestProductsV46B .pbody p,
  .kc-nearest-v46a-grid .pbody p {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    max-height: 28px !important;
    overflow: hidden !important;
  }

  #kcNearestProductsV46B .price,
  .kc-nearest-v46a-grid .price {
    margin-top: auto !important;
    padding-top: 6px !important;
  }

  .quickgrid {
    margin-top: 22px !important;
  }

  @media (max-width: 370px) {
    #kcNearestProductsV46B,
    .kc-nearest-v46a-grid {
      height: 326px !important;
      min-height: 326px !important;
      margin-bottom: 62px !important;
    }

    #kcNearestProductsV46B > *,
    .kc-nearest-v46a-grid > * {
      height: 292px !important;
      min-height: 292px !important;
      max-height: 292px !important;
    }

    #kcNearestProductsV46B .pbody,
    .kc-nearest-v46a-grid .pbody {
      height: 172px !important;
      min-height: 172px !important;
      max-height: 172px !important;
    }
  }
}
