﻿/* =============================================
   Logo Inline Search Bar — Journal3 Custom
   ============================================= */

.logo-inline-search {
display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 10px 20px;
	position: relative;
	z-index: 0;
}

.logo-inline-search::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	background: inherit;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	width: 100vw;
	z-index: -1;
}

.logo-search-inner {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 600px;
	height: 42px;
	border: 1.5px solid rgba(127, 127, 127, 0.3);
	border-radius: 6px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-search-inner:focus-within {
	border-color: rgba(127, 127, 127, 0.6);
	box-shadow: 0 0 0 3px rgba(127, 127, 127, 0.1);
}

.logo-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 14px;
	font-size: 14px;
	font-family: inherit;
	color: inherit !important;
	line-height: 1;
	height: 100%;
	-webkit-appearance: none;
}

.logo-search-input::placeholder {
	color: currentColor;
	opacity: 0.45;
}

.logo-search-input::-webkit-search-decoration,
.logo-search-input::-webkit-search-cancel-button,
.logo-search-input::-webkit-search-results-button {
	-webkit-appearance: none;
	display: none;
}

.logo-search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 100%;
	border: none !important;
	border-inline-start: 1px solid rgba(127, 127, 127, 0.25) !important;
	background: transparent !important;
	color: inherit !important;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	opacity: 0.65;
	font-size: 14px;
	transition: opacity 0.18s ease;
	padding: 0;
}

.logo-search-btn:hover {
	opacity: 1;
}

/* ---- Suggestions Dropdown ---- */

.logo-search-suggestions {
	list-style: none;
	margin: 4px 0 0 0;
	padding: 4px 0;
	width: 100%;
	max-width: 600px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	z-index: 9999;
}

.logo-search-suggestions .lss-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	text-decoration: none !important;
	color: #333 !important;
	transition: background 0.15s ease;
}

.logo-search-suggestions .lss-item a:hover {
	background: #f5f5f5;
}

.lss-thumb {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
	background: #f0f0f0;
}

.lss-no-thumb {
	display: inline-block;
}

.lss-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.lss-name {
	font-size: 13.5px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #222 !important;
}

.lss-price {
	font-size: 12.5px;
	color: #e44 !important;
}

.lss-price s {
	color: #999 !important;
	margin-inline-end: 4px;
	font-size: 11px;
}

.logo-search-suggestions .lss-more a {
	display: block;
	padding: 9px 14px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #555 !important;
	text-decoration: none !important;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
	transition: background 0.15s ease;
}

.logo-search-suggestions .lss-more a:hover {
	background: #f5f5f5;
}

.logo-search-suggestions .lss-no-results {
	padding: 12px 14px;
	font-size: 13px;
	color: #888;
	text-align: center;
}

/* ---- Loading State ---- */

.logo-search-suggestions .lss-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	font-size: 13px;
	color: #888;
}

.lss-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0, 0, 0, 0.12);
	border-top-color: #888;
	border-radius: 50%;
	animation: lss-spin 0.6s linear infinite;
	flex-shrink: 0;
}

@keyframes lss-spin {
	to { transform: rotate(360deg); }
}

/* خفوت زر البحث أثناء التحميل */
.lss-is-loading ~ * .logo-search-btn,
.lss-is-loading .logo-search-btn {
	opacity: 0.35;
	pointer-events: none;
}

/* الموبايل: ضبط الحجم */
@media (max-width: 991px) {
	.logo-inline-search {
		padding: 8px 12px;
	}

	.logo-search-inner {
		max-width: 100%;
	}

	.logo-search-suggestions {
		max-width: 100%;
	}
bottom: 0;
background: inherit;
inset-inline-start: 50%;
transform: translateX(-50%);
width: 100vw;
z-index: -1;
}

.logo-search-inner {
display: flex;
align-items: center;
width: 100%;
max-width: 600px;
height: 42px;
border: 1.5px solid rgba(127, 127, 127, 0.3);
border-radius: 6px;
overflow: hidden;
background: rgba(255, 255, 255, 0.08);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-search-inner:focus-within {
border-color: rgba(127, 127, 127, 0.6);
box-shadow: 0 0 0 3px rgba(127, 127, 127, 0.1);
}

.logo-search-input {
flex: 1 1 auto;
min-width: 0;
border: none !important;
outline: none !important;
background: transparent !important;
box-shadow: none !important;
padding: 0 14px;
font-size: 14px;
font-family: inherit;
color: inherit !important;
line-height: 1;
height: 100%;
-webkit-appearance: none;
}

.logo-search-input::placeholder {
color: currentColor;
opacity: 0.45;
}

.logo-search-input::-webkit-search-decoration,
.logo-search-input::-webkit-search-cancel-button,
.logo-search-input::-webkit-search-results-button {
-webkit-appearance: none;
display: none;
}

.logo-search-btn {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 46px;
height: 100%;
border: none !important;
border-inline-start: 1px solid rgba(127, 127, 127, 0.25) !important;
background: transparent !important;
color: inherit !important;
cursor: pointer;
outline: none !important;
box-shadow: none !important;
opacity: 0.65;
font-size: 14px;
transition: opacity 0.18s ease;
padding: 0;
}

.logo-search-btn:hover {
opacity: 1;
}

/* الموبايل: ضبط الحجم */
@media (max-width: 991px) {
.logo-inline-search {
padding: 8px 12px;
}

.logo-search-inner {
max-width: 100%;
}
}
