 .search-bar {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}
.search-bar:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* Filter sidebar card */
.filter-sidebar .card {
    border-radius: 12px;
        max-height: none;   /* allow natural height */
    height: auto;       /* adjust based on content */
    overflow-y: visible; /* scroll only if explicitly needed */
}
.filter-sidebar h5, .filter-sidebar h6 {
    color: #343a40;
}
.filter-sidebar hr {
    border-top: 1px solid #dee2e6;
}

/* Buttons */
.filter-sidebar .btn-primary,
.dropdown-toggle {
    border-radius: 8px;
    transition: all 0.2s;
}
.filter-sidebar .btn-primary:hover,
.dropdown-toggle:hover {
    background-color: #0056b3;
}

/* Range inputs */
.form-range {
    accent-color: #007bff;
}

/* Checkboxes and radios */
.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
    cursor: pointer;
}
.form-check-label {
    cursor: pointer;
}

/* Dropdown menu scrollable features */
#featureDropdownMenu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Apply button */
#applyFiltersShop,
.filter-dropdown-menu .btn-success {
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
}

/* Ad headings */
.ads-heading {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
}

/* Mobile filter dropdown */
.filter-dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.filter-dropdown-menu li h6 {
    color: #343a40;
}
.filter-dropdown-menu li p {
    color: #495057;
}



    /* Default (Desktop) Layout */
    .product-card {
      border: 0;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.3s ease;
      display: flex;
      flex-direction: column;
      margin-bottom: 20px;
    }

    .mobile-only-ad {
      display: none;
    }

    .product-card:hover {
      transform: translateY(-5px);
    }

    /* Desktop Suggestions */
    #suggestions {
      max-width: 500px;
      width: 100%;
      position: absolute;
      z-index: 1000;
      background-color: white;
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    .card-img-top {
      object-fit: cover;
      border-radius: 12px;
      width: 100%;
      height: 160px;
    }


    .form-check-input {
  border: 2px solid #007bff !important; /* Bright blue border */
  background-color: #fff !important;    /* Ensure white background */
  box-shadow: none !important;          /* Remove any shadows */
  transition: border-color 0.3s ease;
}

.form-check-input:checked {
  background-color: #007bff !important; /* Fill with blue when checked */
  border-color: #0056b3 !important;     /* Darker blue border when checked */
}

.form-check-input:focus {
  border-color: #3399ff !important;     /* Bright blue border on focus */
  box-shadow: 0 0 5px rgba(51, 153, 255, 0.6) !important;
}

    .mobile-compact-input {
      height: 30px !important;
      font-size: 0.85rem !important;
      padding: 4px 8px !important;
      border: 1px solid #ccc !important;
      border-radius: 6px !important;
      box-shadow: none !important;
    }

     #footer-placeholder {
  position: relative;
  bottom: 0;
  width: 100%;
}

    .mobile-compact-button {
      height: 34px !important;
      font-size: 0.85rem !important;
      padding: 6px 10px !important;
      border-radius: 8px !important;
      background-color: #007bff !important;
      border: none !important;
      color: white !important;
      font-weight: 500;
      box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
      transition: background-color 0.2s ease;
    }

    .mobile-compact-button:hover {
      background-color: #0069d9 !important;
    }

    [id^="productFlex_"] {
      height: 390px !important;
      min-height: unset !important;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      flex-direction: row;
    }

    [id^="productFlex_"] img {
      float: left;
      margin-right: 10px;
    }

    .product-controls {
      margin-top: 40px !important;
    }

   #shopBreadcumbs {
    position: relative;
    left: 12%;
    top: 60px;
    z-index: 1; /* Keep it lower so dropdown appears above */
}


.search-bar {
  width: 100% !important;
  max-width: 500px !important;
  padding: 10px 0 !important;
  font-size: 1rem !important;
  background: transparent !important; /* no background */
  border: none !important;
  border-bottom: 2px solid #ccc !important; /* only bottom line */
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.3s ease, transform 0.2s ease !important;
}

.search-bar:focus {
  border-bottom-color: #007bff !important;
  box-shadow: 0 2px 8px rgba(0,123,255,0.2) !important;
}

.search-bar::placeholder {
  color: #555 !important;
  font-style: italic !important;
  opacity: 0.7;
}

/* FEATURE DROPDOWN BUTTON */
#featureDropdownBtn {
  width: 300px;
  background-color: rgba(255, 255, 255, 0.15); /* frosted glass look */
  color: #333;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#featureDropdownBtn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* DROPDOWN MENU */
#featureDropdownMenu {
  border-radius: 10px;
  padding: 15px;
  background-color: rgba(255,255,255,0.95);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

/* Optional: hover effect on dropdown items */
#featureDropdownMenu li:hover {
  background-color: rgba(0,123,255,0.05);
  border-radius: 5px;
}



 @media (min-width: 431px) {
  .product-card {
    flex-direction: row;
    padding: 16px;
    align-items: flex-start;
    gap: 20px;
    height: auto;        /* Ensure height adjusts to content */
    min-height: 220px;   /* Enough room for content */
  }

  .product-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
    height: auto;         /* Allow to expand */
  }

  .product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #f5c518;
  }

  .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 4px;
  }

  .product-controls {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: flex-start;
    gap: 6px;              /* Reduced from 10px to 6px */
    margin-top: 8px;       /* Reduced margin top */
    width: 100%;
  }

  .quantity-input {
      position:relative;
      top:-15px;
    width: 95%;
    height: 36px;
    padding: 4px 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .add-to-cart-btn {
      position:relative;
      top:-15px;
    font-size: 0.95rem;
    padding: 10px 16px;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    border: none;
    width: 95%;
    transition: background-color 0.2s ease;
  }

#shopProductSection {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  height: auto;
  min-height: 300px; /* keep this */
  overflow: visible; /* ensure content is not clipped */
}


  .add-to-cart-btn:hover {
    background-color: #0056b3;
  }



  .card-text.price {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Regular price without sale */
.card-text.price .regular-price.only {
  color: #000;
  text-decoration: none;
}

/* Regular price when there's a sale */
.card-text.price .regular-price.strike {
  color: #000;
  text-decoration: line-through;
}

/* Sale price */
.card-text.price .sale-price {
  color: #d9534f;
}
}


    .ads-heading {
  font-size: 18px;
        position:relative !important;
        top:22px !important;
  color: #555;
  font-weight: normal;
  margin: 0 0 10px 0;
  text-decoration: underline;
}

/* Desktop visible by default */
.desktop-heading, .desktop-ad-container {
  display: block;
}
.mobile-heading, .mobile-ad-container {
  display: none;
}

/* Desktop container styling */
.desktop-ad-container {
  text-align: center;
  margin-top: 10px;
  position: relative;
  left: -5%; /* keep original desktop positioning */
  width: 110%;
  max-width: 350px;
  height: 600px;
}


.pagination-btn.active-page {
  background-color: #007bff; /* solid blue */
  color: #000;               /* black text */
  font-weight: 900;          /* extra bold */
  border: none;              /* no border */
  font-size: 1.2rem;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}


.current-page-btn {
  background-color: black !important;
  color: white !important;
  border-color: black !important;
  pointer-events: none; /* optional: disables clicking current page */
}

    /* Mobile Specific Styling */
    @media (max-width: 520px) {
      .product-card {
        flex-direction: row !important;
        align-items: center;
        padding: 8px !important;
        height: 100% !important;
        border-radius: 8px !important;
        margin-top: 20px !important;
        gap: 16px !important;
      }


          .favorite-btn {
    top: -42px !important;
    left: 4px !important;
    transform: scale(0.9);
  }


         .filter-dropdown-menu li {
        margin-bottom: 15px;
    }

        #currentSubCategory
        {
            position:relative;
            top:-80px;
        }

        .desktop-heading, .desktop-ad-container { display: none; }

  /* Show mobile elements */
  .mobile-heading, .mobile-ad-container {
    display: block !important;
  }

  /* Mobile heading - flush left */
  .mobile-heading {
    text-align: left;
    margin-left: 5%;
  }

  /* Mobile ad container */
  .mobile-ad-container {
    width: 95%;        /* nearly full width */
    max-width: 320px;  /* adjust if needed */
    margin: 0 auto;    /* center horizontally */
  }

  /* Mobile ad */
  .mobile-ad {
    width: 100% !important;
    height: 250px !important;
    display: block !important;
  }


        #videoSec
        {
            width:37% !important;
            height:100% !important;
        }



       #pageNumbers {
           position:relative !important;
           top:40px !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    width: 90% !important;
  }


        .breadcrumb {
            position:relative;
            top:-40px;
    font-size: 0.95rem; /* even smaller on small screens */
  }

  .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.3rem;  /* reduce separator spacing */
  }

   #shopBreadcumbs
    {
        position:relative;
        left:5%;
        top:65px;
    }


        .card-text.price {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Regular price without sale */
.card-text.price .regular-price.only {
  color: #000;
  text-decoration: none;
}

/* Regular price when there's a sale */
.card-text.price .regular-price.strike {
  color: #000;
  text-decoration: line-through;
}

/* Sale price */
.card-text.price .sale-price {
  color: #d9534f;
}



      #suggestions {
        position: relative;
        top: 45px !important;
        left: 5px !important;
        max-width: 385px !important;
        width: 100vw !important;
        right: 10px;
      }

      .product-image {
        position: relative;
        left: -2%;
        width: 160px !important;
        height: 160px !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        margin-right: 16px !important;
      }

      .product-card h5,
      .product-card .card-text.price {
        margin-bottom: 4px;
      }





      .card-body {
        position: relative !important;
        left: 150px !important;
        top: -180px !important;
        flex-direction: column !important;
        width: 240px !important;
      }

      .product-title {
        font-size: 1rem !important;
        width: 100% !important;
        margin-bottom: 6px !important;
      }

      .product-rating {
        font-size: 0.9rem !important;
        width: 100% !important;
        margin-bottom: 4px !important;
      }

      .price {
        font-size: 1.1rem !important;
        font-weight: bold !important;
        width: 100% !important;
        color: #d9534f !important;
      }

      .add-to-cart-btn {
          position:relative !important;
          top:10px !important;
        font-size: 1rem !important;
        padding: 10px 12px !important;
        background-color: #007bff !important;
        color: white !important;
        border-radius: 8px !important;
        border: none !important;
        width: 100% !important;
      }

      [id^="productFlex_"] {
        height: 170px !important;
        min-height: unset !important;
      }

      .product-rating svg,
      .product-rating i {
        font-size: 0.4rem !important;
        width: 0.6rem !important;
        height: 0.6rem !important;
      }

      .mobile-compact-input {
        height: 30px !important;
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 4px 6px !important;
      }

      .mobile-compact-button {
        height: 32px !important;
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 4px 6px !important;
        border-radius: 6px !important;
      }

      .product-controls {
        margin-top: 4px !important;
      }

      #footer-placeholder {
        position: relative !important;
        margin-top: 12% !important;
        padding-top: 1px !important;
      }
    }

    /* Slider Styles */
    .custom-range {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      width: 100%;
      height: 10px;
      background: #ddd;
      border-radius: 5px;
      outline: none;
      transition: background 0.3s ease;
    }

    .custom-range::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 20px;
      height: 20px;
      background: #007bff;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .custom-range::-moz-range-thumb {
      width: 20px;
      height: 20px;
      background: #007bff;
      border-radius: 50%;
      cursor: pointer;
    }

    .custom-range::-ms-thumb {
      width: 20px;
      height: 20px;
      background: #007bff;
      border-radius: 50%;
      cursor: pointer;
    }

    .custom-range:focus::-webkit-slider-thumb {
      background: #0056b3;
    }

    .custom-range:focus {
      background: #0056b3;
    }

    .custom-range::-webkit-slider-runnable-track {
      width: 100%;
      height: 10px;
      background: #007bff;
      border-radius: 5px;
    }

    .custom-range::-moz-range-track {
      width: 100%;
      height: 10px;
      background: #007bff;
      border-radius: 5px;
    }

    .custom-range::-ms-track {
      width: 100%;
      height: 10px;
      background: #007bff;
      border-radius: 5px;
      border-color: transparent;
      color: transparent;
      background-color: #007bff;
    }

    /* Display the range value dynamically */
    #priceValue {
      font-weight: bold;
      color: #007bff;
      transition: color 0.3s ease;
    }

    #priceRange1:focus ~ #priceValue {
      color: #0056b3;
    }


    /* Pagination Buttons */
    #pageNumbers button {
      margin: 0 5px;
      border: none;
      background-color: transparent;
      font-size: 16px;
      cursor: pointer;
    }

    #pageNumbers button.active {
      font-weight: bold;
      color: #007bff;
    }

    /* Spinner Styles */
    .spinner {
      border: 4px solid #f3f3f3;
      border-top: 4px solid #007bff;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      animation: spin 1s linear infinite;
      margin: 20px auto;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }