/* 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) {
  /* 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 {
    padding: 20px;
  }

  .reset_filter {
    margin-bottom: 2rem;
  }

  .sidebar_for_mobile.active .left_filter_mehsullar {
    left: 0; /* 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;
  }
}

@media (min-width: 1200px){
  .left_filter_mehsullar {
    position: sticky;
    top: 5%; /* Tarayıcının üst kenarına olan mesafe */
    height: 100%; /* Yükseklik filtreden uzunsa tam görünürlük için */
    overflow-y: auto; /* İçeriği kaydırılabilir yapar */
    width: 70%;
  }
  
  .mehsullar_main_flex{
    display: flex !important;
    flex-direction: row !important;
  }
}
@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: 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: 132px;
}
}
@media (max-width:1024px) and (min-width: 768px){
  .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: 186px;
}
}
@media (max-width: 481px) {
  .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;
  }
  .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: 300px;
    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;
  }
  .right_filter_products_items {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .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; /* 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: auto;
  }
  .header-top-grid-right {
    gap: 0;
  }

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

  .grid4_cards {
    display: grid;
    grid-template-columns: 1fr;
  }
  .grid10_cards {
    grid-template-columns: 1fr 1fr;
  }
  .text_item_card {
    font-size: 14px;
  }
}

@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) {
  .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: 248px;
}
  .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;
  }
  .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 */
  }
}
