/* ==========================================================================
   Absolute Belt Top Bar - Frontend Styles
   ========================================================================== */

.abt-topbar {
	--abt-bg: #c8161d;
	--abt-text: #ffffff;
	--abt-search-btn: #2b2b2b;
	--abt-whatsapp: #3aa757;
	--abt-star: #f5c518;

	background: var(--abt-bg);
	color: var(--abt-text);
	width: 100%;
	position: relative;
	z-index: 9999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.abt-topbar.abt-sticky {
	position: sticky;
	top: 0;
}

.abt-topbar *,
.abt-topbar *::before,
.abt-topbar *::after {
	box-sizing: border-box;
}

.abt-topbar-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 10px 24px;
	flex-wrap: nowrap;
}

.abt-col {
	display: flex;
	align-items: center;
}

.abt-col-left {
	flex: 0 0 auto;
	white-space: nowrap;
}

.abt-col-center-left {
	flex: 0 0 auto;
	white-space: nowrap;
}

.abt-col-search {
	flex: 1 1 auto;
	min-width: 160px;
	max-width: 620px;
	justify-content: center;
}

.abt-col-links {
	flex: 0 0 auto;
	white-space: nowrap;
}

.abt-col-right {
	flex: 0 0 auto;
	margin-left: auto;
}

/* Email */
.abt-email {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--abt-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.abt-email:hover {
	opacity: 0.85;
	color: var(--abt-text);
}
.abt-icon-mail {
	display: inline-flex;
}

/* Rating */
.abt-rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.3;
}
.abt-stars {
	display: flex;
	gap: 2px;
}
.abt-rating-text {
	font-size: 12px;
	font-weight: 600;
	color: var(--abt-text);
	white-space: nowrap;
}

/* Search */
.abt-search-form {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}
.abt-search-input {
	width: 100%;
	height: 40px;
	border: none;
	border-radius: 20px 0 0 20px;
	padding: 0 18px;
	font-size: 14px;
	outline: none;
	background: #ffffff;
	color: #333;
}
.abt-search-input::placeholder {
	color: #8a8a8a;
}
.abt-search-btn {
	height: 40px;
	width: 46px;
	flex: 0 0 46px;
	border: none;
	border-radius: 0 20px 20px 0;
	background: var(--abt-search-btn);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin-left: -1px;
}
.abt-search-btn:hover {
	opacity: 0.9;
}

/* Live search results dropdown */
.abt-search-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.18);
	max-height: 420px;
	overflow-y: auto;
	z-index: 10000;
	color: #333;
	text-align: left;
}
.abt-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: #333;
	border-bottom: 1px solid #f0f0f0;
}
.abt-result-item:last-child {
	border-bottom: none;
}
.abt-result-item:hover {
	background: #f7f7f7;
}
.abt-result-thumb {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	flex: 0 0 40px;
	background: #eee;
}
.abt-result-thumb-placeholder {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: #eee;
	flex: 0 0 40px;
}
.abt-result-info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.abt-result-title {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.abt-result-meta {
	font-size: 11px;
	color: #888;
	display: flex;
	gap: 8px;
}
.abt-result-price {
	color: var(--abt-bg);
	font-weight: 600;
}
.abt-search-empty,
.abt-search-loading {
	padding: 14px;
	font-size: 13px;
	color: #888;
	text-align: center;
}
.abt-search-viewall {
	display: block;
	text-align: center;
	padding: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--abt-bg);
	text-decoration: none;
	background: #fafafa;
}
.abt-search-viewall:hover {
	background: #f0f0f0;
	color: var(--abt-bg);
}

/* Links */
.abt-links {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
}
.abt-links a {
	color: var(--abt-text);
	text-decoration: none;
	white-space: nowrap;
}
.abt-links a:hover {
	opacity: 0.85;
	color: var(--abt-text);
}
.abt-sep {
	opacity: 0.5;
}

/* WhatsApp button */
.abt-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--abt-whatsapp);
	color: #ffffff;
	padding: 9px 16px;
	border-radius: 22px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.abt-whatsapp-btn:hover {
	opacity: 0.9;
	color: #ffffff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
	.abt-col-links {
		display: none; /* keep bar compact on tablets, links can live in footer/menu too */
	}
}

@media (max-width: 992px) {
	.abt-topbar-inner {
		flex-wrap: wrap;
		row-gap: 10px;
		padding: 12px 16px;
	}
	.abt-col-left {
		order: 1;
		flex: 1 1 auto;
	}
	.abt-col-right {
		order: 2;
		margin-left: 0;
	}
	.abt-col-center-left {
		order: 3;
		flex: 1 1 auto;
		justify-content: flex-start;
	}
	.abt-rating {
		align-items: flex-start;
	}
	.abt-col-search {
		order: 4;
		flex: 1 1 100%;
		max-width: 100%;
	}
}

@media (max-width: 560px) {
	.abt-col-left .abt-email span:not(.abt-icon) {
		display: none;
	}
	.abt-email {
		font-size: 0;
		gap: 0;
	}
	.abt-icon-mail svg {
		width: 20px;
		height: 20px;
	}
	.abt-rating-text {
		font-size: 10px;
	}
	.abt-whatsapp-btn span {
		display: none;
	}
	.abt-whatsapp-btn {
		padding: 9px;
		border-radius: 50%;
	}
	.abt-search-input {
		font-size: 13px;
		padding: 0 12px;
	}
}

/* ==========================================================================
   Admin Page Styles
   ========================================================================== */

.abt-admin-wrap .abt-admin-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

@media (max-width: 1100px) {
	.abt-admin-wrap .abt-admin-grid {
		grid-template-columns: 1fr;
	}
}

.abt-admin-wrap .abt-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 20px 24px;
	margin-top: 20px;
}
.abt-admin-wrap .abt-admin-grid .abt-card {
	margin-top: 0;
}
.abt-admin-wrap .abt-card h2 {
	margin-top: 0;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}
.abt-admin-wrap .abt-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}
.abt-link-row {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
	align-items: center;
}
.abt-link-row input[type="text"] {
	flex: 1 1 auto;
}
#abt-add-link {
	margin-top: 6px;
}
