/* Global Wrapper */
.was-search-form-wrapper {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	box-sizing: border-box;
}

.was-search-form-wrapper * {
	box-sizing: border-box;
}

/* Base Form */
.was-search-form {
	display: flex;
	align-items: center;
	width: 100%;
}

.was-input-group {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

/* Input Field */
.was-search-field {
	width: 100%;
	padding: 12px 48px 12px 20px;
	font-size: 16px;
	line-height: 1.5;
	border: 1px solid #e2e8f0;
	border-radius: 50px;
	transition: all 0.3s ease;
	outline: none;
	background: #fff;
	color: #333;
}

.was-search-field:focus {
	border-color: #6366f1; /* Indigo 500 */
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Submit Button */
.was-search-submit {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	color: #64748b;
	transition: color 0.3s ease, background-color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.was-search-submit:hover {
	color: #6366f1;
	background-color: #f1f5f9;
}

/* Styles Presets */

/* Minimal */
.was-style-minimal .was-search-field {
	border: none;
	border-bottom: 2px solid #e2e8f0;
	border-radius: 0;
	padding-left: 0;
	padding-right: 40px;
	background: transparent;
}
.was-style-minimal .was-search-field:focus {
	border-bottom-color: #6366f1;
	box-shadow: none;
}
.was-style-minimal .was-search-submit {
	right: 0;
}

/* Glassmorphism */
.was-search-form-wrapper.was-style-glass {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 16px;
	padding: 8px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.was-style-glass .was-search-field {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #1a202c;
}

.was-style-glass .was-search-field::placeholder {
	color: #4a5568;
}

.was-style-glass .was-search-field:focus {
	background: rgba(255, 255, 255, 0.8);
	box-shadow: none;
}

/* ============================
   Search Results Grid Styles
   ============================ */

.was-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Generic Card Style */
.was-result-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.was-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.was-card-image {
    height: 200px;
    overflow: hidden;
}

.was-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.was-result-card:hover .was-card-image img {
    transform: scale(1.05);
}

.was-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.was-card-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.4;
    font-weight: 700;
}

.was-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s;
}

.was-card-title a:hover {
    color: #6366f1;
}

.was-card-excerpt {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.was-read-more {
    display: inline-flex;
    align-items: center;
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.was-read-more:hover {
    text-decoration: underline;
}

/* WooCommerce Fixes */
.was-results-grid.woocommerce ul.products {
    display: contents;
}
