/* Gold Top — sticky condensed header
 * Slides in on scroll-down, hides on scroll-up. Every rule is scoped under
 * .gt-sticky (or .admin-bar .gt-sticky) so nothing else on the page changes.
 */

.gt-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #ffffff;
	box-shadow: 0 6px 24px rgba(20, 28, 40, 0.10);
	border-bottom: 1px solid rgba(20, 28, 40, 0.06);
	transform: translateY(-100%);
	transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.gt-sticky.is-visible {
	transform: translateY(0);
}

/* Offset for the WordPress admin bar when an admin is logged in.
 * Mirrors WP's own breakpoints: 32px desktop, 46px <=782px, and below 600px
 * the admin bar is no longer fixed (it scrolls away) so no offset is needed. */
.admin-bar .gt-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .gt-sticky {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .gt-sticky {
		top: 0;
	}
}

/* keep it out of the DOM flow influence before JS unhides it */
.gt-sticky[hidden] {
	display: none;
}

.gt-sticky *,
.gt-sticky *::before,
.gt-sticky *::after {
	box-sizing: border-box;
}

.gt-sticky__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 11px 26px;
}

/* ---------- logo (left) ---------- */
.gt-sticky__logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	line-height: 0;
}

.gt-sticky__logo img {
	max-height: 46px;
	width: auto;
	height: auto;
	display: block;
}

.gt-sticky__logo-text {
	font-weight: 800;
	font-size: 21px;
	color: #1c2430;
	text-decoration: none;
	line-height: 1.1;
}

/* ---------- product search (center) ---------- */
.gt-sticky__search {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	max-width: 620px;
	margin: 0 auto;
	height: 52px;
	padding: 0 7px 0 20px;
	background: #eef1f5;
	border: none;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(20, 28, 40, 0.04);
	transition: background-color 0.22s ease, box-shadow 0.28s ease, transform 0.22s ease;
}

.gt-sticky__search:hover {
	background: #e7ebf1;
}

/* Borderless focus: white field that softly lifts with a diffuse shadow and a
 * faint orange halo — no hard outline. */
.gt-sticky__search:focus-within {
	background: #ffffff;
	box-shadow:
		0 10px 28px rgba(20, 28, 40, 0.13),
		0 2px 6px rgba(20, 28, 40, 0.06),
		0 0 0 3px rgba(243, 91, 4, 0.10);
	transform: translateY(-1px);
}

.gt-sticky__search-ico {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	color: #9aa3ad;
	transition: color 0.2s ease;
}

.gt-sticky__search:focus-within .gt-sticky__search-ico {
	color: #f35b04;
}

.gt-sticky__search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	border: none;
	outline: none;
	background: transparent;
	color: #1c2430;
	font-size: 15.5px;
	line-height: 1.2;
}

.gt-sticky__search-input::placeholder {
	color: #9aa3ad;
	opacity: 1;
}

.gt-sticky__search-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 24px;
	margin-left: 10px;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	color: #ffffff;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: linear-gradient(180deg, #ff7d33 0%, #f35b04 100%);
	box-shadow: 0 2px 8px rgba(243, 91, 4, 0.32);
	transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.06s ease;
}

.gt-sticky__search-btn:hover {
	filter: brightness(1.06);
	box-shadow: 0 5px 14px rgba(243, 91, 4, 0.42);
}

.gt-sticky__search-btn:active {
	transform: translateY(1px);
}

.gt-sticky__search-btn-ico {
	display: none;
	align-items: center;
	justify-content: center;
}

/* ---------- autocomplete dropdown ---------- */
.gt-sticky__ac {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	right: 0;
	display: none;
	max-height: 70vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(20, 28, 40, 0.18);
	z-index: 60;
	overscroll-behavior: contain;
}

.gt-sticky__ac.is-open {
	display: block;
}

.gt-sticky__ac-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 16px;
	text-decoration: none;
	color: #1c2430;
}

.gt-sticky__ac-item + .gt-sticky__ac-item {
	border-top: 1px solid #f1f3f7;
}

.gt-sticky__ac-item:hover,
.gt-sticky__ac-item.is-active {
	background: #f7f8fa;
}

.gt-sticky__ac-thumb {
	flex: 0 0 auto;
	width: 50px;
	height: 50px;
	border-radius: 10px;
	object-fit: cover;
	background: #f1f3f7;
}

.gt-sticky__ac-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gt-sticky__ac-cat {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9aa3ad;
}

.gt-sticky__ac-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	color: #1c2430;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gt-sticky__ac-price {
	font-size: 13.5px;
	font-weight: 700;
	color: #f35b04;
}

.gt-sticky__ac-price del {
	display: none;
}

.gt-sticky__ac-price ins {
	text-decoration: none;
}

.gt-sticky__ac-empty {
	padding: 18px 16px;
	text-align: center;
	color: #9aa3ad;
	font-size: 14px;
}

.gt-sticky__ac-all {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border: none;
	border-top: 1px solid #eef0f3;
	background: #ffffff;
	color: #f35b04;
	font-size: 13.5px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
}

.gt-sticky__ac-all:hover,
.gt-sticky__ac-all:focus-visible {
	background: #f35b04;
	color: #ffffff;
	outline: none;
}

/* ---------- cart + total (right) ---------- */
.gt-sticky-cart {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 13px;
	padding: 8px 20px 8px 15px;
	border: 1.5px solid #e9ebf0;
	border-radius: 999px;
	background: #ffffff;
	color: #1c2430;
	text-decoration: none;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.06s ease;
}

.gt-sticky-cart:hover {
	border-color: #ffd0b0;
	background: #fff7f2;
	box-shadow: 0 6px 18px rgba(243, 91, 4, 0.16);
	color: #1c2430;
}

.gt-sticky-cart:active {
	transform: translateY(1px);
}

.gt-sticky-cart__icon {
	position: relative;
	display: inline-flex;
	color: #1c2430;
}

.gt-sticky-cart__icon svg {
	width: 30px;
	height: 30px;
}

.gt-sticky-cart:hover .gt-sticky-cart__icon {
	color: #f35b04;
}

.gt-sticky-cart__count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 21px;
	height: 21px;
	padding: 0 5px;
	border-radius: 999px;
	background: #f35b04;
	border: 2px solid #ffffff;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	box-shadow: 0 2px 5px rgba(243, 91, 4, 0.4);
}

.gt-sticky-cart__count[data-count="0"] {
	display: none;
}

.gt-sticky-cart__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.15;
}

.gt-sticky-cart__label {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #9aa3ad;
}

.gt-sticky-cart__total {
	font-size: 17px;
	font-weight: 800;
	color: #1c2430;
	white-space: nowrap;
}

.gt-sticky-cart__total del {
	display: none;
}

.gt-sticky-cart__total .woocommerce-Price-amount {
	color: inherit;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
	.gt-sticky__inner {
		gap: 12px;
		padding: 8px 14px;
	}
	.gt-sticky__logo img {
		max-height: 36px;
	}
	.gt-sticky__search {
		height: 46px;
		padding-left: 16px;
	}
	.gt-sticky__search-btn {
		height: 36px;
		padding: 0 13px;
		margin-left: 6px;
	}
	.gt-sticky__search-btn-label {
		display: none;
	}
	.gt-sticky__search-btn-ico {
		display: inline-flex;
	}
	.gt-sticky-cart {
		padding: 6px 14px 6px 12px;
		gap: 10px;
	}
	.gt-sticky-cart__icon svg {
		width: 26px;
		height: 26px;
	}
	.gt-sticky-cart__total {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.gt-sticky__logo {
		display: none;
	}
	.gt-sticky-cart__meta {
		display: none;
	}
	.gt-sticky-cart {
		padding: 8px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gt-sticky {
		transition: none;
	}
}
