/* Search Suggestions Styling */
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.suggestion-item:hover {
    background-color: #f9fafb;
}

.suggestion-item:active {
    background-color: #e5e7eb;
}

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

.suggestion-item .font-semibold {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.suggestion-item .text-sm {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Search Results Styling */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge-sale {
    background-color: #ef4444;
    left: 8px;
}

.badge-featured {
    background-color: #f59e0b;
    right: 8px;
}

.product-details {
    padding: 16px;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.price-current {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.price-old {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-view {
    background-color: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-view:hover {
    background-color: #2563eb;
}

.stock-status {
    font-size: 0.875rem;
    font-weight: 500;
}

.stock-in {
    color: #059669;
}

.stock-out {
    color: #dc2626;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 48px 24px;
}

.no-results-icon {
    width: 48px;
    height: 48px;
    color: #9ca3af;
    margin: 0 auto 16px;
}

.no-results-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.no-results-text {
    color: #6b7280;
    margin-bottom: 24px;
}

.btn-browse {
    background-color: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-browse:hover {
    background-color: #2563eb;
} 