/* Havuzmalzemem — mobil slider ve ürün grid düzeni */

/* Anasayfa — slider ile Yeni Gelenler yapışık */
body#index .ets_multilayerslider {
  margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  body#index .ets_multilayerslider {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 479px) {
  body#index .ets_multilayerslider {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 991px) {
  /* Sayfa yatay kaymasın — scale layout taşması */
  html.hm-mls-mobile,
  html.hm-mls-mobile body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  /* —— Slider: tam genişlik, 2x yükseklik (JS scale ile birlikte) —— */
  #wrapper > .ets_multilayerslider,
  .header_content + .ets_multilayerslider,
  body#index .ets_multilayerslider {
    box-sizing: border-box !important;
    float: none !important;
    left: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    right: 0 !important;
    width: 100% !important;
  }

  #wrapper.maincontent_v1 > .container,
  body#index #wrapper.maincontent_v1 > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ets_multilayerslider .mls_slides {
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-align: left !important;
    transform-origin: 0 0 !important;
    width: 100% !important;
  }

  .ets_multilayerslider .mls_slider,
  .maincontent_v1 .mls_slider {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .ets_multilayerslider .mls_slides_front,
  .ets_multilayerslider .mls_slides_front > li {
    height: 100% !important;
  }

  /* cover L/R keser — tam doldur, kenar kesilmesin */
  .ets_multilayerslider .mls_slides_front > li {
    background-position: center center !important;
    background-size: 100% 100% !important;
  }

  /* —— Mobil ok butonları: her zaman görünür, büyük, hafif nabız —— */
  @keyframes hm-mls-nav-pulse {
    0%,
    100% {
      box-shadow: 0 2px 10px rgba(10, 22, 40, 0.35), 0 0 0 0 rgba(26, 107, 154, 0.45);
      transform: translateY(-50%) scale(1);
    }
    50% {
      box-shadow: 0 4px 16px rgba(10, 22, 40, 0.4), 0 0 0 10px rgba(26, 107, 154, 0);
      transform: translateY(-50%) scale(1.06);
    }
  }

  .ets_multilayerslider > .mls_nav,
  .ets_multilayerslider .mls_nav,
  body#index .maincontent_v1 .mls_nav,
  body#index .ets_multilayerslider .mls_nav {
    bottom: auto !important;
    height: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: 50% !important;
    width: 100% !important;
    z-index: 30 !important;
  }

  .ets_multilayerslider > .mls_pagination {
    bottom: 14px !important;
    left: 50% !important;
    position: absolute !important;
    transform: translateX(-50%) !important;
    z-index: 30 !important;
  }

  .ets_multilayerslider .mls_nav > div,
  .ets_multilayerslider .mls_slider .mls_nav > div,
  body#index .ets_multilayerslider .mls_nav > div,
  body#index .maincontent_v1 .mls_nav > div {
    animation: hm-mls-nav-pulse 2.2s ease-in-out infinite !important;
    background-color: #0d3b66 !important;
    border: 2px solid rgba(255, 255, 255, 0.92) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(10, 22, 40, 0.35) !important;
    color: #fff !important;
    float: none !important;
    height: 48px !important;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    position: absolute !important;
    top: 0 !important;
    transform: translateY(-50%) scale(1) !important;
    transform-origin: center center !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    visibility: visible !important;
    width: 48px !important;
    z-index: 31 !important;
  }

  .ets_multilayerslider .mls_nav > div.mls_prev,
  body#index .ets_multilayerslider .mls_nav > div.mls_prev {
    left: 10px !important;
    right: auto !important;
  }

  .ets_multilayerslider .mls_nav > div.mls_next,
  body#index .ets_multilayerslider .mls_nav > div.mls_next {
    left: auto !important;
    right: 10px !important;
  }

  .ets_multilayerslider .mls_nav > div:active,
  .ets_multilayerslider .mls_nav > div:focus {
    animation: none !important;
    background-color: #1a6b9a !important;
    transform: translateY(-50%) scale(0.96) !important;
  }

  .ets_multilayerslider .mls_nav > div:before,
  body#index .ets_multilayerslider .mls_nav > div:before {
    color: #fff !important;
    float: none !important;
    font-size: 28px !important;
    height: 48px !important;
    line-height: 44px !important;
    min-width: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .ets_multilayerslider .mls_slider:hover .mls_nav > div,
  .ets_multilayerslider .mls_slider .mls_nav > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* —— Kategori listesi: statik 2 sütun grid (owl DEĞİL) —— */
  #js-product-list .products.row,
  #products .products:not(.owl-carousel) {
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    width: 100% !important;
  }

  #js-product-list .product-miniature,
  #products .products:not(.owl-carousel) .product-miniature,
  .products.list .product-miniature.type_list_full_width {
    box-sizing: border-box !important;
    clear: none !important;
    flex: 0 0 50% !important;
    float: none !important;
    margin-bottom: 14px !important;
    max-width: 50% !important;
    padding: 0 4px !important;
    width: 50% !important;
  }

  #js-product-list .product-miniature:nth-child(2n+1) {
    clear: none !important;
  }

  /* Liste görünümü — bootstrap kolonlarını iptal et */
  .product-miniature.type_list_full_width .thumbnail-container {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .product-miniature.type_list_full_width .thumbnail-container > .image_item_product,
  .product-miniature.type_list_full_width .thumbnail-container > .product-description,
  .product-miniature.type_list_full_width .thumbnail-container > .product-flags,
  .product-miniature [class*="col-sm-"],
  .product-miniature [class*="col-xs-"],
  .product-miniature [class*="col-ms-"] {
    flex: 0 0 auto !important;
    float: none !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  .type_list_full_width .product-title,
  .type_list_full_width .product-title a {
    font-size: 14px !important;
    text-align: center !important;
  }

  .type_list_full_width .product-price-and-shipping {
    text-align: center !important;
  }

  /* —— Anasayfa: owl carousel — flex grid UYGULANMAZ —— */
  .page-home .home_block_col,
  .page-home .home_block_col.half_width,
  .page-home .home_block_col.normal,
  .page-home .home_block_col.full_width,
  .page-home .home_block_col.last-block {
    box-sizing: border-box !important;
    float: none !important;
    margin-bottom: 40px !important;
    max-width: 100% !important;
    padding: 0 8px !important;
    width: 100% !important;
  }

  .page-home .products.owl-carousel,
  .page-home .categoryproducts_content.owl-carousel,
  .page-home .featured-products .products.owl-carousel,
  .tabs-home-content .products.owl-carousel {
    display: block !important;
    float: none !important;
    width: 100% !important;
  }

  .page-home .owl-carousel .owl-stage-outer,
  .tabs-home-content .owl-carousel .owl-stage-outer {
    overflow: hidden;
    width: 100%;
  }

  .page-home .owl-item .product-miniature,
  .page-home .home_block_col .owl-item .product-miniature,
  .page-home .categoryproducts_content .owl-item .product-miniature,
  .page-home .featured-products .owl-item .product-miniature,
  .tabs-home-content .owl-item .product-miniature {
    box-sizing: border-box !important;
    clear: none !important;
    flex: none !important;
    float: none !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    width: 100% !important;
  }

  .categoryproducts .owl-item:not(:first-child) .product-miniature,
  .product-accessories .owl-item:not(:first-child) .product-miniature,
  .tabs-home-content .owl-item:not(:first-child) {
    border-left: none !important;
  }

  /* Anasayfa — 100px yatay düzeni kaldır, kartı dikey doldur */
  .page-home .home_block_col .product-miniature .image_item_product,
  .page-home .home_block_col .owl-item .image_item_product {
    background-color: #f8f8f8;
    float: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-home .home_block_col .product-miniature .product-description,
  .page-home .home_block_col .owl-item .product-description {
    float: none !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .page-home .home_block_col .highlighted-informations {
    display: flex !important;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    margin-top: 6px;
    opacity: 1 !important;
    position: static !important;
    visibility: visible !important;
    width: 100% !important;
  }

  /* Ortak ürün kartı — kategori + anasayfa owl */
  .product-miniature .thumbnail-container {
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
    height: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .product-miniature .image_item_product,
  .product-miniature .product-thumbnail {
    display: block;
    float: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .product-miniature .thumbnail.product-thumbnail img {
    display: block;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    width: 100% !important;
  }

  .product-miniature .product-description {
    box-sizing: border-box !important;
    float: none !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding-left: 0 !important;
    width: 100% !important;
  }

  .product-miniature .product-title,
  .product-miniature .product-title a {
    font-size: 14px;
    line-height: 1.4;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
  }

  .page-home .home_block_col .product-title,
  .page-home .home_block_col .product-title a {
    text-align: center;
  }

  .product-miniature .short_description {
    display: none;
  }

  .product-miniature .product-price-and-shipping {
    font-size: 14px;
    line-height: 1.3;
    overflow: visible;
    transition: color 0.25s ease;
  }

  .page-home .home_block_col .product-price-and-shipping {
    text-align: center !important;
  }

  .product-miniature .product-price-and-shipping .price,
  .product-miniature .product-price-and-shipping .regular-price {
    transition: color 0.25s ease;
  }

  .product-miniature .product-flags li {
    font-size: 9px !important;
    height: 32px;
    line-height: 32px;
    min-width: 32px;
    width: 32px;
  }

  /* Aksiyon butonları — 2 sütun / owl 2'li slayt için yarı boyut */
  .product-miniature .product-description .highlighted-informations {
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    margin-top: 6px;
    opacity: 1 !important;
    position: static !important;
    visibility: visible !important;
    width: 100% !important;
  }

  .product-miniature .highlighted-informations .add_to_cart_button .btn.btn-primary,
  .product-miniature .highlighted-informations .quick-view,
  .type_list_full_width .highlighted-informations .add_to_cart_button .btn.btn-primary,
  .type_list_full_width .highlighted-informations .quick-view {
    height: 26px !important;
    margin: 0 2px !important;
    min-height: 0 !important;
    width: 26px !important;
  }

  .product-miniature .highlighted-informations .add_to_cart_button i:before,
  .type_list_full_width .highlighted-informations .add_to_cart_button i:before {
    font-size: 14px !important;
  }

  .product-miniature .highlighted-informations .quick-view .material-icons,
  .type_list_full_width .highlighted-informations .quick-view .material-icons {
    font-size: 24px !important;
  }

  .product-miniature .highlighted-informations .btn-whatsapp-order--compact,
  .type_list_full_width .highlighted-informations .btn-whatsapp-order--compact {
    border-radius: 50% !important;
    font-size: 0 !important;
    height: 26px !important;
    margin: 0 2px !important;
    min-height: 0 !important;
    padding: 0 !important;
    width: 26px !important;
  }

  .type_list_full_width .btn-whatsapp-order--compact span {
    display: none !important;
  }

  .product-miniature .highlighted-informations .btn-whatsapp-order--compact .fa-whatsapp,
  .type_list_full_width .highlighted-informations .btn-whatsapp-order--compact .fa-whatsapp {
    font-size: 14px !important;
  }

  /* Mobilde fiyat kaybolmasın */
  .product-miniature:hover .hook-reviews,
  .product-miniature:focus-within .hook-reviews,
  .product-miniature:active .hook-reviews,
  .product-miniature:hover .product-price-and-shipping,
  .product-miniature:focus-within .product-price-and-shipping,
  .product-miniature:active .product-price-and-shipping {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .product-miniature:hover .product-price-and-shipping,
  .product-miniature:hover .product-price-and-shipping .price,
  .product-miniature:hover .product-price-and-shipping .regular-price,
  .product-miniature:focus-within .product-price-and-shipping,
  .product-miniature:focus-within .product-price-and-shipping .price,
  .product-miniature:focus-within .product-price-and-shipping .regular-price,
  .product-miniature:active .product-price-and-shipping,
  .product-miniature:active .product-price-and-shipping .price,
  .product-miniature:active .product-price-and-shipping .regular-price {
    color: #8f8f8f !important;
  }
}

/* theme.css tek sütun kurallarını geçersiz kıl — sadece kategori grid */
@media (max-width: 479px) {
  #js-product-list .product-miniature,
  #products .products:not(.owl-carousel) .product-miniature {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media (max-width: 370px) {
  #js-product-list .product-miniature,
  #products .products:not(.owl-carousel) .product-miniature {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}
