/* Responsive */
@media (max-width: 991px) {
  .menu-btn {
    display: block;
    /* Show menu button on small screens */
  }

  .header-right {
    display: none;
    /* Hide header-right on mobile screens */
  }

  .navbar-brand {
    display: none;
  }

  .search-container input[type="text"] {
    width: 100%;
  }

  .header-top-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 10px 0px;
  }

  .header-top-grid-right {
    justify-content: space-between;
  }

  .catalog-btn p {
    display: none;
  }

  .sidebar-menu,
  .sidebar {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .search-container {
    width: 100%;
  }
  .search-container div:nth-child(1) {
    width: 100%;
  }
 /*  .search_flex form {
    width: 100%;
  } */
  #searchInput {
    width: 100%;
  }
      .search_flex form.expanded {
        position: fixed;
        top: 78px;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 94%;
        max-width: 400px;
        height: auto;
        z-index: 999;
        border-radius: 7px;
        background-color: white;
    }


  /* Bu responsivlik product.htmlde category filter mobil sidebar ucundu */
  .left_filter_mehsullar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: left 0.6s ease;
  }

  .mehsullar_main_flex {
    display: grid;
    grid-template-columns: 1fr;
  }

  .right_filter_products_items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .category_general,
  .price_range_div,
  .containerCategory,
  .filter-containerCategory,
  .reset_filter,
  .mobile_padding {
    padding: 20px;
  }

  /* .reset_filter {
    margin-bottom: 2rem;
  } */

  .sidebar_for_mobile.active .left_filter_mehsullar {
    left: 0;
    z-index: 100000;
    /* Aktiv olduqda sola sıfırla */
  }

  .toggle-sidebar {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background-color: #4ea021;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.6s ease;
    /* Aç düyməsi də yavaş gizlənir */
  }

  .toggle-sidebar.hidden {
    opacity: 0;
    /* Açıq olduğunda görünməz olsun */
    pointer-events: none;
  }

  .filter_close_sidebar button {
    display: block;
    background: #f7f7f7;
    color: black;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .filter_close_sidebar {
    display: flex;
    justify-content: end;
    background: #f7f7f7;
  }

}
@media (min-width: 768px) {
    .sidebar_for_mobile {
        display: none;
    }
}
ol, ul {
    padding-left: 1rem !important;
}
@media (min-width: 1200px) {
  .left_filter_mehsullar {
    position: sticky;
    top: 5%;
    height: 100%;
    /* overflow-y: auto; */
    width: 270px;
    z-index: 99;
  }

  .mehsullar_main_flex {
    /* display: flex !important;
    flex-direction: row !important; */

    display: grid;
    grid-template-columns: 1fr 2fr;
  }
}

@media (max-width: 1400px) and (min-width: 1200px) {
  .add-to-cartDetail {
    width: 165px;
  }

  .img-box-h {
    height: 192px;
  }

  .over_text {
    left: 31px;
    font-size: 20px;
  }

  .navbar-brand {
    width: 150px;
  }

  .grid-products-card {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    /* Kiçik ekranlar üçün 1 sütun */
  }
}

@media (max-width: 1400px) and (min-width: 1024px) {
  .right_filter_products_items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 1200px) and (min-width: 768px) {
  .img-box-h {
    height: 140px;
  }

  .over_text {
    left: 31px;
    font-size: 20px;
  }

  .grid10_cards {
    grid-template-columns: repeat(5, 1fr);
  }

  .item_card {
    flex-direction: column;
  }

  .text_item_card {
    font-size: 14px;
  }

  .carousel div {
    height: 300px;
  }

  .navbar-brand {
    width: 130px;
  }

  .search-container input[type="text"] {
    width: 100%;
  }

  .catalog-btn {
    padding: 7px 10px;
  }

  .header-center {
    max-width: 300px;
  }
}

@media (max-width: 1200px) and (min-width: 1024px) {
  .add-to-cartDetail {
    width: 165px;
  }

  .mehsullar_favoriler {
    grid-template-columns: repeat(4, 1fr);
  }

  .store-logo {
    width: 70px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .right_filter_products_items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .card_pro {
    width: 100%;
  }
  .betweenBasketCardTop {
    width: 100%;
  }

  .product-containerDetail {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .gridBasket {
    grid-template-columns: 1fr;
  }

  .mehsullar_favoriler {
    grid-template-columns: repeat(3, 1fr);
  }

  .store-logo {
    width: 70px;
  }
}

@media (max-width: 481px) {
   .right_filter_products_items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .card_pro {
    width: 100%;
  }
  .betweenBasketCardTop {
    width: 100%;
  }

  .productNameBasket p {
    font-size: 12px;
  }

  .product_quality-basket-table {
    margin: 10px 0px;
  }

  #clear_basket {
    font-size: 14px;
  }

  .rowsummaryBasketRight_3 .value {
    font-size: 16px;
  }

  .product-image-basket {
    width: 64px;
    height: 70px;
  }

  .basket_info_product_quality h3,
  .basket_info_product_quality h3 span {
    font-size: 14px;
  }

  .productDeleteBasket {
    width: auto;
  }

  .detailTextHead h3 {
    font-size: 20px;
  }

  .main-img-slider {
    background-color: white;
    border-radius: 20px;
  }

  .product-containerDetail {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
.product_count {
    position: absolute;
    top: -23px;
    right: -17px;
}
  .gridBasket {
    grid-template-columns: 1fr;
  }

  .review-cards {
    grid-template-columns: 1fr;
  }

  .favori_mehsullar_flex {
    flex-direction: column;
  }

  .mehsullar_favoriler {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner_page {
    height: 140px;
  }

  .store-logo {
    width: 50px;
    height: 37px;
  }

  .pagination a span {
    display: none;
  }

  .pagination a {
    padding: 8px;
  }

  .load-more-btn {
    width: 80%;
    font-size: 16px;
  }

  .pagination a,
  .pagination span {
    display: flex;
    align-items: center;
  }



  .mehsullar_main_flex {
    grid-template-columns: 1fr;
  }

  .section {
    opacity: 1 !important;
    /* Hidden initially */
  }

  .footer-bottom {
    text-align: center;
    border-top: 1px solid #ccc;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    padding: 1rem 0rem;
    gap: 1rem;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .kartlar_flex {
    flex-direction: column;
  }

  .satici_ol_kart {
    width: 100%;
  }

  .over_text {
    left: 0;
    right: 0;
    font-size: 18px;
  }

  .loadMore {
    width: 100%;
  }

  .slide_head_textt {
    font-size: 18px;
    margin-bottom: 1rem;
  }

  .tabs_head_flex {
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }

  .grid-products-card {
    grid-template-columns: 1fr 1fr;
    /* Kiçik ekranlar üçün 1 sütun */
  }

  .carousel div {
    height: 200px;
  }

  .row > .col-md-4,
  .row > .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .img_boxes_home {
    margin-top: 1rem;
  }

  .img-box-h {
    height: 135px;
  }

  .sidebar-menu,
  .sidebar {
    width: 80%;
  }

  .selected-language {
    gap: 0;
  }

  .language-selector {
    width: 5.5rem;
  }

  .header-top-grid-right {
    gap: 0;
  }

  .right-padd-sidebar {
    padding: 15px;
  }

  .grid4_cards {
    display: grid;
grid-template-columns: 1fr 1fr;
    margin: 30px 0;
  }

  .grid10_cards {
    grid-template-columns: 1fr 1fr;
  }

  .text_item_card {
font-size: 12px;
        width: 70%;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .over_text {
    left: 22px;
    font-size: 16px;
  }

  .search-container input[type="text"] {
    width: 300px;
  }

  .carousel div {
    height: 300px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
   .right_filter_products_items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .card_pro {
    width: 100%;
  }
  .betweenBasketCardTop {
    width: 100%;
  }

  .productNameBasket p {
    font-size: 14px;
  }

  .basket_info_product_quality h3,
  .basket_info_product_quality h3 span {
    font-size: 18px;
  }

  .product-containerDetail {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .gridBasket {
    grid-template-columns: 1fr;
  }

  .slide_head_textt {
    font-size: 16px;
  }

  .mehsullar_favoriler {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-logo {
    width: 60px;
  }

  .footer-bottom {
    text-align: center;
    border-top: 1px solid #ccc;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    padding: 1rem 0rem;
    gap: 1rem;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .kartlar_flex {
    flex-direction: column;
  }

  .satici_ol_kart {
    width: 100%;
  }

  .over_text {
    left: 0;
    right: 0;
  }

  .over_text {
    left: 22px;
    font-size: 16px;
  }

  .loadMore {
    width: 50%;
  }

  .tabs_head_flex {
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }

  .grid-products-card {
    grid-template-columns: repeat(2, 1fr);
    /* Kiçik ekranlar üçün 1 sütun */
  }

  .grid10_cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .row > .col-md-4,
  .row > .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .img_boxes_home {
    margin-top: 1rem;
  }

  .img-box-h {
    height: 135px;
  }

  .carousel div {
    height: 280px;
  }

  .item_card {
    flex-direction: row;
  }

  .text_item_card {
    font-size: 14px;
  }

  .grid4_cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 30px 0;
  }

  .text_item_card {
    text-align: left;
  }
}

@media (min-width: 1400px) {
  .grid-products-card {
    grid-template-columns: repeat(5, 1fr);
    /* Böyük ekranlar üçün 5 sütun */
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .grid-products-card {
    grid-template-columns: repeat(3, 1fr);
    /* Orta ekranlar üçün 3 sütun */
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .left_filter_mehsullar {
    width: 260px;
  }
}
