.shreek-search-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    padding: 0 20px;
    height: 46px;
}

.shreek-search-input-wrapper input.text,input[type="text"] {
 
  border:
0px solid #bbb !important;
 
}

.shreek-search-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23999" d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    margin-right: 12px;
}

.shreek-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 46px;
    height: 100%;
    outline: none;
    color: #333;
}

.shreek-search-input::placeholder {
    color: #999;
    font-weight: 400;
    opacity: 1;
}


.shreek-search-container {
    position: absolute;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    
}

.shreek-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 120%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 999999; /* Increased z-index to ensure it appears above all elements */
}

/* Keep the original ID-based styles for backward compatibility */
#shreek-search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    
}

#shreek-search-input {
    width: 100%;
    padding: 10px 15px; /* Remove left padding, we'll use text-indent instead */
    text-indent: 28px; /* This creates space for the icon without affecting the text input */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

#shreek-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 999999;
}

.shreek-result-item {
    display: flex;
    align-items: flex-start; /* Change from center to flex-start */
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}

.shreek-result-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 15px;
}

.shreek-result-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: calc(100% - 85px); /* Account for image width + margin */
}

.shreek-result-title {
    font-size: 14px;
 line-height:16px;
    margin-bottom: 4px;
    color: #333;
}

.shreek-result-price {
    font-size: 13px;
    color: #e91e63;
    margin-bottom: 8px; /* Add margin below price */
}

.shreek-add-to-cart {
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    width: fit-content; /* Make button only as wide as its content */
    display: block; /* Change from inline to block */
    margin-top: 5px; /* Add space above button */
    margin-left: 0; /* Reset the auto margin */
}

.shreek-result-item form {
    margin-top: auto; /* Push form to bottom of info div */
    width: 100%; /* Make form full width of parent */
}

.shreek-view-all-wrapper {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.shreek-view-all-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.shreek-view-all-button:hover {
    background-color: #45a049;
    color: white;
}

/* Results page styles */
.shreek-results-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.shreek-results-header {
    margin-bottom: 30px;
    text-align: center;
}

.shreek-results-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.shreek-results-count {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.shreek-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.shreek-page-result-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
    height: 100%;
    background: #fff;
}

.shreek-page-result-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.shreek-page-result-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    display: block;
    background-color: #f7f7f7;
}

.shreek-page-result-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.shreek-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    background-color: #f7f7f7;
}

.shreek-page-result-item:hover .shreek-page-result-image img {
    transform: scale(1.08);
}

.shreek-page-result-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shreek-page-result-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.shreek-page-result-title a {
    color: #333;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shreek-page-result-title a:hover {
    color: #e91e63;
}

.shreek-page-result-price {
    font-size: 15px;
    color: #e91e63;
    margin-bottom: 15px;
    font-weight: 600;
}

.shreek-page-result-price del {
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

.shreek-page-result-price ins {
    text-decoration: none;
}

.shreek-page-add-to-cart {
    margin-top: auto;
    display: block;
    width: 100%;
    padding: 10px 0;
    background-color: #ff4081;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.shreek-page-add-to-cart:hover {
    background-color: #e91e63;
    color: white;
}

.shreek-no-results {
    text-align: center;
    padding: 60px 0;
    color: #666;
    font-size: 18px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive styles */
@media (max-width: 992px) {
    .shreek-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shreek-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .shreek-results-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .shreek-results-grid {
        grid-template-columns: 1fr;
    }
    
    .shreek-results-header h1 {
        font-size: 20px;
    }
    
    .shreek-results-count {
        font-size: 14px;
    }
}
