.df-search-trigger { width: 50px; height: 50px; margin: 0; padding: 0; font-size: 20px; color: #000000; background: transparent; border: 0; display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }

.df-search-trigger .dfaps-custom-icon { width: 20px; height: 20px; }

.df-product-search-overlay { inset: 0; background: rgba(0, 0, 0, .48); backdrop-filter: blur(3px); position: fixed; z-index: 99998; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.df-product-search-overlay.is-active { opacity: 1; visibility: visible; }

/* PANEL */
.df-product-search-panel { width: 100%; max-height: 90vh; left: 0; top: 0; background: #FFFFFF; position: fixed; z-index: 99999; box-shadow: 0 20px 50px rgba(0, 0, 0, .16); overflow-y: auto; transform: translateY(-105%); visibility: hidden; transition: transform .45s cubic-bezier(.22, 1, .36, 1), visibility .45s; }
.df-product-search-panel.is-active { transform: translateY(0); visibility: visible; }

.df-product-search-inner { width: min(1220px, calc(100% - 60px)); margin: 0 auto; padding: 40px 0 50px; }

/* Heading */
.df-product-search-heading { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }

.df-product-search-label { font-size: 15px; font-weight: 600; text-transform: uppercase; color: var(--search-primary); }

.df-product-search-close { width: 50px; height: 50px; padding: 0; font-size: 20px; background: transparent; border: 1px solid var(--search-border); display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; transition: background .2s ease; }
.df-product-search-close .dfaps-custom-icon { width: 18px; height: 18px; }
.df-product-search-close:hover { border-color: var(--search-dark); }

.df-product-search-form { position: relative; }
.df-product-search-form .df-product-search-input { width: 100%; height: 82px; margin: 0; padding: 0 85px 0 62px; font-family: inherit; font-size: clamp(24px, 3vw, 40px); font-weight: 400; color: #000000; background: transparent; border: 0; border-bottom: 2px solid var(--search-dark); border-radius: 0; display: block; outline: none; box-shadow: none; }
.df-product-search-form .df-product-search-input::placeholder { color: var(--search-muted); opacity: 1; }

.df-product-search-form .df-product-search-input-icon {
	position: absolute;
	top: 50%;
	left: 5px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 25px;
	color: var(--search-dark);
	pointer-events: none;
}

.df-product-search-input-icon .dfaps-custom-icon {
	width: 25px;
	height: 25px;
}

.df-product-search-loader {
	position: absolute;
	top: 50%;
	right: 18px;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border: 2px solid var(--search-border);
	border-top-color: var(--search-dark);
	border-radius: 50%;
	opacity: 0;
	animation: dfSearchSpin .7s linear infinite;
}

.df-product-search-loader.is-active {
	opacity: 1;
}

@keyframes dfSearchSpin {
	to { transform: rotate(360deg); }
}

/* RESULTS */
.df-product-search-results { padding-top: 30px; }
.df-product-search-start { padding: 20px 0; font-size: 15px; color: var(--search-muted); }

/* Grid */
.df-product-search-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.df-product-search-result-grid .df-product-search-result { padding: 10px; text-decoration: none !important; color: inherit; display: grid; grid-template-columns: 78px minmax(0, 1fr) 20px; align-items: center; gap: 20px; border-radius: 10px; transition: background .2s ease; }
.df-product-search-result-grid .df-product-search-result:hover { background: var(--search-light); }

/* Image */
.df-product-search-result-grid .df-product-search-result-image { width: 80px; height: 80px; background: var(--search-light); overflow: hidden; border-radius: 10px; }
.df-product-search-result-grid .df-product-search-result-image img { width: 100%; height: 100%; margin: 0; display: block; object-fit: cover; }

/* Title */
.df-product-search-result-grid .df-product-search-result-title { margin-bottom: 8px; font-size: 17px; font-weight: 600; color: #000000; line-height: 1.3; }

/* Price */
.df-product-search-result-grid .df-product-search-result-price { font-size: 14px; font-weight: 600; color: var(--search-accent); }
.df-product-search-result-grid .df-product-search-result-price del { margin-right: 6px; opacity: 0.5; }

/* Arrow */
.df-product-search-result-grid .df-product-search-result-arrow { color: var(--search-accent); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.df-product-search-result-grid .df-product-search-result-arrow .dfaps-custom-icon { width: 100%; height: auto; display: block; object-fit: contain; }

/* Search All */
.df-product-search-all { color: #FFFFFF !important; background: var(--search-primary) !important; }
.df-product-search-all:hover { color: #FFFFFF !important; background: #000000 !important; }
.df-product-search-all .dfaps-custom-icon { width: 16px; height: 16px; }

.df-product-search-result:hover .df-product-search-result-arrow { transform: translateX(4px); }

.df-product-search-footer { padding-top: 30px; display: flex; justify-content: center; }

/* EMPTY */
.df-product-search-empty { padding: 45px 20px; text-align: center; color: var(--search-muted); }
.df-product-search-empty-icon { margin-bottom: 14px; font-size: 28px; color: var(--search-muted); display: flex; align-items: center; justify-content: center; }
.df-product-search-empty-icon .dfaps-custom-icon { width: 28px; height: 28px; }
.df-product-search-empty strong { margin-bottom: 6px; font-size: 20px; color: #000000; display: block; }
.df-product-search-empty p { margin: 0 !important; }

body.df-search-open { overflow: hidden; }

@media (max-width: 767px) {
	.df-product-search-inner {
		width: calc(100% - 32px);
		padding: 24px 0 32px;
	}

	.df-product-search-heading {
		margin-bottom: 12px;
	}

	.df-product-search-input {
		height: 70px;
		padding: 0 52px 0 42px;
		font-size: 22px;
	}

	.df-product-search-input-icon {
		left: 3px;
		font-size: 19px;
	}

	.df-product-search-input-icon .dfaps-custom-icon {
		width: 19px;
		height: 19px;
	}

	.df-product-search-result-grid {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.df-product-search-result {
		grid-template-columns: 62px minmax(0, 1fr) 25px;
		gap: 12px;
		padding: 10px 4px;
	}

	.df-product-search-result-image {
		width: 62px;
		height: 62px;
	}

	.df-product-search-result-title {
		font-size: 15px;
	}

	.df-product-search-result-price {
		font-size: 13px;
	}
}
