.live-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.live-search-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

.live-search-input:focus {
    border-color: #4a90e2;
}

/* Search icon positioning */
.live-search-wrapper::after {
    content: "🔍";
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 18px;
    pointer-events: none;
}

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    margin-top: 0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-category {
    border-bottom: 1px solid #e0e0e0;
}

.search-category:last-child {
    border-bottom: none;
}

.category-header {
    padding: 8px 12px;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    border-bottom: 1px solid #000;
}

.search-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-item {
    border-bottom: 1px solid #f0f0f0;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item a {
    display: block;
    padding: 10px 12px 10px 24px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.search-item a:hover {
    background-color: #f5f5f5;
}

.search-loading,
.no-results,
.search-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Scrollbar styling */
.live-search-results::-webkit-scrollbar {
    width: 8px;
}

.live-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.live-search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.live-search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.live-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.live-search-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

.live-search-input:focus {
    border-color: #4a90e2;
}

/* Search icon inside input */
.live-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.live-search-icon:hover {
    color: #333;
}

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    margin-top: 0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-category {
    border-bottom: 1px solid #e0e0e0;
}

.search-category:last-child {
    border-bottom: none;
}

.category-header {
    padding: 8px 12px;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    border-bottom: 1px solid #000;
}

.search-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-item {
    border-bottom: 1px solid #f0f0f0;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item a {
    display: block;
    padding: 10px 12px 10px 24px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.search-item a:hover {
    background-color: #f5f5f5;
}

.search-view-all {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.search-view-all a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.search-view-all a:hover {
    text-decoration: underline;
}

.search-loading,
.no-results,
.search-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Scrollbar styling */
.live-search-results::-webkit-scrollbar {
    width: 8px;
}

.live-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.live-search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.live-search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Search Results Page Styles */
.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-results-header {
    margin-bottom: 30px;
}

.search-results-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.search-query {
    color: #4a90e2;
}

.results-section {
    margin-bottom: 60px; /* Increased spacing between sections */
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.results-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Add spacing between the two sections */
.results-section:first-of-type {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.product-item {
    border: 1px solid #e0e0e0;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-item h3 a {
    color: #333;
    text-decoration: none;
}

.product-item h3 a:hover {
    color: #4a90e2;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.blogs-list {
    display: grid;
    gap: 20px;
}

.blog-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
}

.blog-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-content {
    flex: 1;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: #333;
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: #4a90e2;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.blog-meta {
    color: #999;
    font-size: 14px;
}

.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results-message h2 {
    font-size: 24px;
    margin-bottom: 10px;
}