/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.site-content {
	margin-bottom: 0px !important;
}
.wd-prefooter {
	padding-bottom: 0px !important;
}
.wd-content-layout {
	padding-block: 0px !important;
}

.whb-main-header .whb-general-header {
	margin-top: 25px;
}
.whb-main-header .whb-general-header.whb-row .container {
	padding: 0 50px;
	width: 100%;
}
@media (max-width: 1024px) {
	.whb-main-header .whb-general-header {
		margin-top: 10px;
	}
	.whb-main-header .whb-general-header.whb-row .container {
		padding: 0 30px;
	}
}

.how-does-it-work-row .wd-info-box .info-box-icon {
	margin-top: -35px;
	max-width: 70px;
	margin-bottom: 15px;
}

/* ENHANCED SEARCH BAR CSS */
.snd-search-form-wrapper {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

/* Section Styling */
.primary-search-section, .comparison-search-section {
	margin-bottom: 25px;
}

.search-section-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	text-align: center;
	color: #fff;
}

.search-section-title.optional {
	font-weight: 500;
	margin-top: 50px;
}

.optional-badge {
	font-size: 14px;
	background: #e8f5e8;
	color: #347d39;
	padding: 2px 8px;
	border-radius: 12px;
	font-weight: 400;
}

/* Primary Fieldset - More prominent */
.primary-fieldset {
	padding: 8px;
	border: none;
	gap: 20px;
	position: relative;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #f8fdf8 0%, #f0f8f0 100%);
	border-radius: 12px;
	border: 2px solid #347d39;
	box-shadow: 0 4px 12px rgba(52, 125, 57, 0.1);
}

/* Comparison Fieldset - More subdued */
.comparison-fieldset {
	padding: 8px;
	border: none;
	gap: 20px;
	position: relative;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	background: #f9f9f9;
	border-radius: 12px;
	border: 2px dashed #ccc;
	opacity: 0.8;
	transition: all 0.3s ease;
}

.comparison-fieldset:hover,
.comparison-fieldset:focus-within {
	opacity: 1;
	border-color: #347d39;
	border-style: solid;
	box-shadow: 0 2px 8px rgba(52, 125, 57, 0.1);
}

/* Comparison Divider */
.comparison-divider {
	text-align: center;
	margin: 30px 0;
	position: relative;
}

.comparison-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, #ddd 20%, #ddd 80%, transparent);
	transform: translateY(-50%);
}

.vs-text {
	background: #fff;
	padding: 8px 16px;
	border: 2px solid #347d39;
	border-radius: 50%;
	font-weight: bold;
	color: #347d39;
	font-size: 14px;
	position: relative;
	z-index: 1;
}

.comparison-subtitle {
	margin: 8px 0 0 0;
	color: #666;
	font-size: 14px;
	font-style: italic;
}

/* Input and Form Styling */
.snd-search-form-wrapper .input-wrapper {
	flex: 1;
}

.snd-search-form-wrapper .input-wrapper input {
	background-color: #fff;
	height: auto;
	padding: 15px 18px;
	line-height: 1;
	font-size: 16px;
	width: 100%;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	transition: border-color 0.3s ease;
}

.primary-fieldset .input-wrapper input {
	border-color: #347d39;
	font-weight: 500;
}

.snd-search-form-wrapper .input-wrapper input:focus {
	outline: none;
	border-color: #347d39;
	box-shadow: 0 0 0 3px rgba(52, 125, 57, 0.1);
}

.snd-search-form-wrapper .category-selector {
	flex-shrink: 0;
}

.snd-search-form-wrapper .category-selector select {
	padding: 15px 18px;
	padding-right: 40px;
	background-color: #4cbb17;
	color: #fff;
	font-size: 16px;
	border: none;
	border-radius: 8px;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M8 12L3 7h10l-5 5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	height: fit-content;
}

.comparison-fieldset .category-selector select {
	background-color: #666;
}

.snd-search-form-wrapper .category-selector select option {
	color: #333;
}

/* Enhanced Button Styling */
.snd-search-form-wrapper button {
	padding: 15px 30px;
	font-size: 16px;
	display: block;
	margin: 20px auto 0;
	min-width: 200px;
	border-radius: 25px;
	font-weight: 600;
	transition: all 0.3s ease;
	background: #4cbb17;
	border: none;
	color: white;
	box-shadow: 0 4px 12px rgba(76, 187, 23, 0.3);
}

.snd-search-form-wrapper button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(76, 187, 23, 0.4);
}

/* Search Results Styling */
.snd-search-results-wrapper h2 {
	font-size: 34px;
	margin-bottom: 40px;
	font-weight: 400;
	text-align: center;
}
.snd-search-results-wrapper h2 strong {
	font-weight: 700;
}
.snd-search-results-wrapper .snd-search-results .results-header {
	background: linear-gradient(270deg, #347d39 0%, #9aca3c 100%);
	font-weight: 700;
	color: #fff;
}
.snd-search-results-wrapper .snd-search-results .result-row {
	background: #f6f6ef;
	box-shadow: 4px 4px 15px 0px rgba(0, 0, 0, 0.05);
}
.snd-search-results-wrapper .snd-search-results :is(.results-header, .result-row) {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	border-radius: 15px;
	padding: 13px 18px;
	margin-bottom: 10px;
}
.snd-search-results-wrapper .snd-search-results :is(.results-header, .result-row) .column {
	flex: 0 0 200px;
}
.snd-search-results-wrapper
	.snd-search-results
	:is(.results-header, .result-row)
	:is(.column:nth-child(1), .column:nth-child(2)) {
	flex: 1 1 200px;
}
.snd-search-results-wrapper .snd-search-results .result-row .herb-supplement-result {
	display: flex;
	align-items: center;
	gap: 30px;
	line-height: 1;
}
.snd-search-results-wrapper .snd-search-results .result-row .download-btn {
	width: 100%;
	padding: 10px 15px;
	min-height: 1px;
	border-radius: 30px;
}
.snd-search-results-wrapper .snd-search-results .no-results {
	text-align: center;
	font-size: 18px;
	font-weight: 500;
}

/* Autocomplete Styles */
.autocomplete-container {
	position: relative;
}

.autocomplete-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 8px 8px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.autocomplete-dropdown.show {
	display: block;
}

.autocomplete-item {
	padding: 12px 15px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
	background-color: #f0f8ff;
}

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

.autocomplete-category {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	font-weight: bold;
	margin-bottom: 4px;
}

.autocomplete-name {
	font-weight: 500;
	color: #333;
}

.no-results {
	padding: 12px 15px;
	color: #999;
	font-style: italic;
}

/* Other Existing Styles */
.featured-boxes-row .wd-info-box {
	box-shadow: 4px 4px 15px 0px rgba(0, 0, 0, 0.05);
}
.featured-boxes-row .wd-info-box .info-box-icon {
	max-width: 70px;
}

.faqs-row .wd-accordion .wd-accordion-item {
	box-shadow: none;
	position: relative;
	border-radius: 15px !important;
}
.faqs-row .wd-accordion .wd-accordion-item .wd-accordion-title {
	padding: 10px;
}
.faqs-row .wd-accordion .wd-accordion-item .wd-accordion-title::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border: 1px solid #347d39;
	border-radius: 15px;
	opacity: 0;
	pointer-events: none;
}
.faqs-row .wd-accordion .wd-accordion-item .wd-accordion-title.wd-active::before {
	opacity: 1;
}

.snd-functions-row .elementor-widget-wd_extra_menu_list .elementor-widget-container {
	box-shadow: 4px 4px 15px 0px rgba(0, 0, 0, 0.05);
}
.snd-functions-row .mega-menu-list > li {
	display: flex;
	align-items: center;
	flex-direction: column;
}
.snd-functions-row .mega-menu-list > li .sub-sub-menu > li {
	display: flex;
	justify-content: center;
}

.snd-page-header {
	padding: 25px 30px;
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}
.snd-page-header .snd-page-header-inner {
	background-image: url('https://honeydew-giraffe-143077.hostingersite.com/wp-content/uploads/2025/05/Group-1707479621.png');
	background-size: cover;
	background-position: center;
	padding: 150px 30px;
	text-align: center;
	background-color: #347D39;
	border-radius: 20px;
}
.snd-page-header h1.entry-title {
	font-size: 60px;
	color: #FFF;
}

.taxonomy-acu-category-section {
	padding: 6% 0;
}

.acu-items-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 30px;
}
.acu-items-grid .acu-item {
	border-radius: 12px;
	background: #F6F6EF;
	box-shadow: 4px 4px 15px 0px rgba(0, 0, 0, 0.05);
	text-align: center;
}
.acu-items-grid .acu-item .acu-item-image {
	padding: 10px 10px 0;
}
.acu-items-grid .acu-item .acu-item-image img {
	border-radius: 10px;
	width: 100%;
}
.acu-items-grid .acu-item .acu-item-content {
	padding: 20px;
}
.acu-items-grid .acu-item .acu-item-content h4 {
	margin: 0px;
}
form.acu-search-form {
	max-width: 800px;
	margin: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
}
form.acu-search-form input {
	height: auto;
	padding: 12px 18px;
	flex: 1 1 300px;
	font-size: 16px;
	line-height: 1;
}
form.acu-search-form button {
	flex: 0 0 180px;
}
.acu-alphabet-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 20px 0 40px;
}
.acu-alphabet-filter a {
	padding: 10px;
	line-height: 1;
	font-size: 26px;
	color: #347D39;
	border-radius: 4px;
	background: #F6F6EF;
	box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.05);
}

/* RESPONSIVE DESIGN */
@media (min-width: 992px) {
	.snd-search-results-wrapper .snd-search-results :is(.results-header, .result-row) .column:nth-child(4) {
		text-align: center;
	}
}

@media (max-width: 1024px) {
	.snd-page-header h1.entry-title {
		font-size: 40px
	}
	.snd-page-header .snd-page-header-inner {
		padding: 100px 20px;
	}
	.acu-items-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 20px;
	}
	.acu-alphabet-filter a {
		font-size: 20px;
	}
}

@media (max-width: 991px) {
	.snd-search-results-wrapper h2 {
		font-size: 26px;
		margin-bottom: 30px;
	}
}

@media (max-width: 767px) {
	.snd-page-header {
		padding: 15px 20px;
	}
	.snd-page-header .snd-page-header-inner {
		padding: 100px 15px 60px;
	}
	.snd-page-header h1.entry-title {
		font-size: 32px
	}
	
	.snd-search-results-wrapper h2 {
		font-size: 22px;
	}
	.snd-search-results-wrapper .snd-search-results :is(.results-header, .result-row) div.column {
		flex: 1 1 200px;
	}
	.snd-search-results-wrapper .snd-search-results .result-row .herb-supplement-result {
		gap: 15px;
	}
	.snd-search-results-wrapper .snd-search-results .result-row .download-btn {
		font-size: 13px;
		padding: 8px 12px;
	}

	/* Enhanced Mobile Search Styling */
	.primary-fieldset, .comparison-fieldset {
		flex-direction: column;
		gap: 15px;
		padding: 15px;
	}
	
	.snd-search-form-wrapper .category-selector {
		width: 100%;
	}
	
	.snd-search-form-wrapper .category-selector select {
		width: 100%;
	}
	
	.search-section-title {
		font-size: 16px;
		margin-bottom: 10px;
	}
	
	.comparison-divider {
		margin: 20px 0;
	}
	
	.vs-text {
		padding: 6px 12px;
		font-size: 12px;
	}
	
	.snd-search-form-wrapper button {
		width: 100%;
		margin-top: 15px;
	}
}

@media (max-width: 575px) {
	.acu-items-grid {
		grid-template-columns: repeat(1, 1fr);
		grid-gap: 15px;
	}
	.acu-alphabet-filter a {
		font-size: 16px;
	}
	
	.snd-search-form-wrapper {
		padding: 0 10px;
	}
	
	.primary-fieldset, .comparison-fieldset {
		padding: 12px;
		gap: 12px;
	}
	
	.snd-search-form-wrapper .input-wrapper input,
	.snd-search-form-wrapper .category-selector select {
		padding: 14px 16px;
		font-size: 16px; /* Prevent iOS zoom */
	}
	
	.snd-search-form-wrapper .category-selector select {
		padding-right: 40px;
		height: fit-content;
	}
	
	.snd-search-form-wrapper button {
		padding: 16px 24px;
		font-size: 16px;
	}

	.optional-badge {
		display: block;
		margin-top: 4px;
	}
}