/**
 * ETI Product Search — PCI brand palette
 * Primary Blue #1565C0 | Deep Navy #16233B | Signal Yellow #F4B400
 * Sky Tint #5B9BE0 | Amber Tint #FBD877 | Off-White #F7F8FA
 */

.eti-ps-wrap {
	--pci-blue: #1565c0;
	--pci-navy: #16233b;
	--pci-yellow: #f4b400;
	--pci-sky: #5b9be0;
	--pci-amber: #fbd877;
	--pci-offwhite: #f7f8fa;
	--pci-radius: 12px;
	--pci-shadow: 0 12px 36px rgba(22, 35, 59, 0.12);

	font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
	color: var(--pci-navy);
	background:
		linear-gradient(135deg, rgba(251, 216, 119, 0.35) 0%, transparent 42%),
		linear-gradient(180deg, var(--pci-offwhite) 0%, #eef2f7 100%);
	border: 1px solid rgba(21, 101, 192, 0.18);
	border-radius: 16px;
	padding: 1.5rem;
	max-width: 920px;
	margin: 0 auto;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

.eti-ps-wrap::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--pci-blue), var(--pci-sky), var(--pci-yellow));
}

.eti-ps-wrap *,
.eti-ps-wrap *::before,
.eti-ps-wrap *::after {
	box-sizing: border-box;
}

.eti-ps-wrap[dir="rtl"] {
	font-family: "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;
}

.eti-ps-search-form {
	position: relative;
	z-index: 2;
}

.eti-ps-search-row {
	display: flex;
	gap: 0.6rem;
	align-items: stretch;
}

.eti-ps-query {
	flex: 1;
	min-width: 0;
	border: 2px solid rgba(21, 101, 192, 0.22);
	border-radius: var(--pci-radius);
	padding: 0.95rem 1.1rem;
	font-size: 1.05rem;
	background: #fff;
	color: var(--pci-navy);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eti-ps-query::placeholder {
	color: rgba(22, 35, 59, 0.45);
}

.eti-ps-query:focus {
	border-color: var(--pci-blue);
	box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.15);
}

.eti-ps-submit {
	border: 0;
	border-radius: var(--pci-radius);
	background: var(--pci-blue);
	color: #fff;
	padding: 0 1.4rem;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 6px 16px rgba(21, 101, 192, 0.28);
}

.eti-ps-submit:hover {
	background: var(--pci-sky);
}

.eti-ps-submit:active {
	transform: translateY(1px);
}

.eti-ps-suggestions {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0.4rem;
	position: absolute;
	left: 0;
	right: 0;
	z-index: 40;
	background: #fff;
	border: 1px solid rgba(21, 101, 192, 0.2);
	border-radius: var(--pci-radius);
	box-shadow: var(--pci-shadow);
	max-height: 340px;
	overflow-y: auto;
}

.eti-ps-suggestions[hidden] {
	display: none !important;
}

.eti-ps-suggestion {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.7rem 0.8rem;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.eti-ps-suggestion:hover,
.eti-ps-suggestion.is-active {
	background: rgba(91, 155, 224, 0.14);
}

.eti-ps-suggestion img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	background: var(--pci-offwhite);
	flex-shrink: 0;
	border: 1px solid rgba(22, 35, 59, 0.08);
}

.eti-ps-suggestion-placeholder {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--pci-amber), var(--pci-sky));
	opacity: 0.55;
	flex-shrink: 0;
}

.eti-ps-suggestion-meta {
	min-width: 0;
	flex: 1;
}

.eti-ps-suggestion-name {
	font-weight: 700;
	color: var(--pci-navy);
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eti-ps-suggestion-model {
	color: rgba(22, 35, 59, 0.55);
	font-size: 0.875rem;
}

.eti-ps-suggestion-price {
	font-weight: 800;
	color: var(--pci-blue);
	white-space: nowrap;
}

.eti-ps-status {
	min-height: 1.25rem;
	margin-top: 0.85rem;
	color: rgba(22, 35, 59, 0.6);
	font-size: 0.92rem;
}

.eti-ps-product {
	margin-top: 1.35rem;
	background: #fff;
	border: 1px solid rgba(21, 101, 192, 0.16);
	border-radius: 14px;
	box-shadow: var(--pci-shadow);
	overflow: hidden;
	animation: etiPsFadeIn 0.35s ease;
}

.eti-ps-product[hidden] {
	display: none !important;
}

@keyframes etiPsFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.eti-ps-product-inner {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 0;
}

.eti-ps-product-media {
	background:
		linear-gradient(160deg, rgba(91, 155, 224, 0.2), rgba(251, 216, 119, 0.25)),
		var(--pci-offwhite);
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.eti-ps-product-media::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4px;
	background: var(--pci-yellow);
}

.eti-ps-product-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 280px;
}

.eti-ps-product-media .eti-ps-no-image {
	color: rgba(22, 35, 59, 0.4);
	padding: 1rem;
	text-align: center;
	font-weight: 600;
}

.eti-ps-product-body {
	padding: 1.5rem 1.65rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.eti-ps-product-title {
	margin: 0;
	font-size: 1.55rem;
	line-height: 1.25;
	font-weight: 800;
	color: var(--pci-navy);
}

.eti-ps-product-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
}

.eti-ps-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(91, 155, 224, 0.12);
	color: var(--pci-navy);
	font-size: 0.88rem;
}

.eti-ps-chip strong {
	color: var(--pci-blue);
	font-weight: 700;
}

.eti-ps-product-price {
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--pci-blue);
	letter-spacing: -0.02em;
}

.eti-ps-product-desc {
	margin: 0;
	color: rgba(22, 35, 59, 0.72);
	line-height: 1.7;
	white-space: pre-wrap;
	padding-top: 0.35rem;
	border-top: 1px solid rgba(22, 35, 59, 0.08);
}

.eti-ps-product-desc strong {
	display: block;
	color: var(--pci-navy);
	margin-bottom: 0.25rem;
}

.eti-ps-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	align-items: center;
	margin-top: 0.5rem;
}

.eti-ps-buy {
	border: 0;
	border-radius: var(--pci-radius);
	background: var(--pci-yellow);
	color: var(--pci-navy);
	padding: 0.85rem 1.6rem;
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 20px rgba(244, 180, 0, 0.35);
}

.eti-ps-buy:hover:not(:disabled) {
	background: var(--pci-amber);
	transform: translateY(-1px);
}

.eti-ps-buy:disabled {
	opacity: 0.7;
	cursor: wait;
}

.eti-ps-cart-link {
	color: var(--pci-blue);
	font-weight: 700;
	text-decoration: none;
}

.eti-ps-cart-link:hover {
	color: var(--pci-sky);
	text-decoration: underline;
}

.eti-ps-toast {
	padding: 0.6rem 0.9rem;
	border-radius: 10px;
	background: rgba(21, 101, 192, 0.1);
	color: var(--pci-blue);
	font-size: 0.92rem;
	font-weight: 700;
}

.eti-ps-toast.is-error {
	background: rgba(160, 40, 40, 0.1);
	color: #8a1f1f;
}

.eti-ps-error {
	color: #8a1f1f;
	text-align: center;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 760px) {
	.eti-ps-wrap {
		padding: 1.1rem;
	}

	.eti-ps-search-row {
		flex-direction: column;
	}

	.eti-ps-submit {
		padding: 0.95rem 1rem;
	}

	.eti-ps-product-inner {
		grid-template-columns: 1fr;
	}

	.eti-ps-product-media img,
	.eti-ps-product-media {
		min-height: 220px;
	}
}
.eti-ps-wrap{
    min-height: 600px;   /* یا هر مقدار دلخواه */
    padding-bottom: 320px;
}
