/* Custom Tuck Boxes theme extras */

/* Header layout: nav left (was social), social in topbar (was region) */
.site-topbar__social {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 1rem;
	white-space: nowrap;
}

.site-topbar__social a {
	color: #ffffff;
	font-size: 1.15rem;
	line-height: 1;
	transition: color 0.25s ease;
}

.site-topbar__social a:hover {
	color: rgb(45.4832214765, 205.5167785235, 112.8657718121);
}

.site-header-main__nav {
	justify-self: start;
	min-width: 0;
}

.site-header-main {
	position: relative;
}

.site-header-main .site-nav {
	background: transparent;
	border-bottom: 0;
	position: static;
	z-index: 1030;
}

.site-header-main .site-nav__inner {
	max-width: none;
	margin: 0;
	padding: 0;
}

.site-header-main .site-nav__list {
	justify-content: flex-start;
}

.site-header-main .site-nav__link {
	padding: 0.5rem 1rem;
}

.site-header-main .site-nav__toggle {
	display: none;
}

/* Full-width mega menu while nav sits in the left column */
@media (min-width: 992px) {
	.site-header-main .mega-menu {
		left: 0;
		right: 0;
		width: 100%;
		top: 100%;
	}
}

@media (max-width: 991.98px) {
	.site-topbar__social {
		grid-column: 2;
		justify-self: end;
		gap: 0.75rem;
	}

	.site-topbar__social a {
		font-size: 1.05rem;
	}

	.site-header-main__nav {
		/* Keep nav in DOM for offcanvas; visual entry is hamburger */
		position: static;
	}

	.site-header-main .site-nav {
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		height: 100dvh;
		width: min(360px, 86vw);
		background-color: #ffffff;
		border-bottom: 0;
		border-right: 1px solid #eef1f4;
		box-shadow: 0 0 40px rgba(18, 27, 36, 0.18);
		transform: translateX(-100%);
		transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 1100;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.site-header-main .site-nav.is-open {
		transform: translateX(0);
	}
}

/* Reduce offscreen paint cost */
.product-category,
.brands-slider,
.testimonials-section,
.insights-section,
.faq-section,
.site-footer,
.quotation {
	content-visibility: auto;
	contain-intrinsic-size: 1px 600px;
}

/* Mega menu — fixed 3 columns; product labels on one line */
@media (min-width: 992px) {
	.mega-menu__columns {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}

	.mega-menu__products {
		grid-template-columns: 1fr;
	}

	.mega-menu__product-name {
		white-space: nowrap;
		line-height: 1.25;
	}
}

.ctb-logo-img--header {
	max-height: 75px;
	width: auto;
}

.ctb-logo-img--footer {
	max-height: 40px;
	width: auto;
	display: block;
	margin-bottom: 1rem;
}

.ctb-newsletter-message {
	margin-top: 0.75rem;
	font-size: 0.9rem;
}

.ctb-newsletter-message.is-success {
	color: #0f766e;
}

.ctb-newsletter-message.is-error {
	color: #b91c1c;
}

.ctb-search-loading,
.ctb-search-empty {
	font-size: 0.9rem;
	color: #6b7280;
	margin: 0;
}

.site-nav__item.has-dropdown {
	position: relative;
}

.site-nav__dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 0.5rem 0;
	z-index: 100;
	list-style: none;
	margin: 0;
}

.site-nav__item.has-dropdown:hover > .site-nav__dropdown,
.site-nav__item.has-dropdown:focus-within > .site-nav__dropdown {
	display: block;
}

.site-nav__dropdown-item .site-nav__dropdown-link {
	display: block;
	padding: 0.65rem 1rem;
	color: inherit;
	text-decoration: none;
}

.site-nav__dropdown-item .site-nav__dropdown-link:hover {
	background: #f3f4f6;
}

/* Archive shop cards — show full product image (no bottom crop) */
.shop-card__image-link {
	background-color: #faf8f4;
}

.shop-card__image {
	object-fit: contain;
	object-position: center;
}

.shop-card__media:hover .shop-card__image {
	transform: scale(1.03);
}

/* ========== Utility pages: 404, search ========== */
.utility-banner__code {
	margin: 0 0 0.5rem;
	font-size: clamp(4rem, 12vw, 6.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: rgba(27, 122, 67, 0.35);
}

.utility-page {
	padding: 3rem 0 4rem;
	background: #fff;
}

.utility-page__container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	gap: 1.5rem;
}

.utility-panel {
	padding: 1.75rem;
	border: 1px solid #e8edf1;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(18, 27, 36, 0.04);
}

.utility-panel--center {
	text-align: center;
}

.utility-panel--search {
	padding: 1.25rem;
}

.utility-panel__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: #121b24;
}

.utility-panel__note {
	margin: 1.5rem 0 0;
	color: #6b7280;
}

.utility-panel__note a {
	color: #1b7a43;
	font-weight: 600;
	text-decoration: none;
}

.utility-panel__note a:hover {
	text-decoration: underline;
}

.utility-search__field {
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
	max-width: 720px;
	margin: 0 auto;
	padding: 0.5rem;
	border: 1px solid #dbe3ea;
	border-radius: 999px;
	background: #f8fafb;
}

.utility-search__icon {
	display: flex;
	align-items: center;
	padding-left: 1rem;
	color: #1b7a43;
	font-size: 1.1rem;
}

.utility-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 1rem;
	color: #121b24;
}

.utility-search__input:focus {
	outline: none;
}

.utility-search__submit {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.85rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background: #1b7a43;
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

.utility-search__submit:hover {
	background: #156634;
}

.utility-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.utility-actions--center {
	margin-top: 0.5rem;
}

.utility-actions__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.15rem;
	border: 1px solid #dbe3ea;
	border-radius: 999px;
	background: #fff;
	color: #121b24;
	text-decoration: none;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.utility-actions__btn:hover {
	border-color: #1b7a43;
	color: #1b7a43;
	transform: translateY(-1px);
}

.utility-actions__btn--primary {
	background: #1b7a43;
	border-color: #1b7a43;
	color: #fff;
}

.utility-actions__btn--primary:hover {
	background: #156634;
	border-color: #156634;
	color: #fff;
}

.utility-empty {
	padding: 2.5rem 1.5rem;
	text-align: center;
	border: 1px dashed #dbe3ea;
	border-radius: 18px;
	background: #fafbfc;
}

.utility-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: rgba(27, 122, 67, 0.1);
	color: #1b7a43;
	font-size: 1.5rem;
}

.utility-empty__title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	color: #121b24;
}

.utility-empty__text {
	margin: 0 auto;
	max-width: 34rem;
	color: #6b7280;
	line-height: 1.6;
}

.search-results__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.search-results__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.65rem;
	border-radius: 999px;
	background: rgba(27, 122, 67, 0.1);
	color: #1b7a43;
	font-size: 0.875rem;
	font-weight: 700;
}

.search-results__products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.search-results__product {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem;
	border: 1px solid #e8edf1;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-results__product:hover {
	border-color: #1b7a43;
	box-shadow: 0 8px 24px rgba(18, 27, 36, 0.06);
}

.search-results__product img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 10px;
	background: #faf8f4;
}

.search-results__product span {
	font-weight: 600;
	color: #121b24;
}

.search-results__shop-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.search-results__shop-card {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 1rem;
	align-items: center;
	padding: 1rem;
	border: 1px solid #e8edf1;
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.search-results__shop-card:hover {
	border-color: #1b7a43;
	transform: translateY(-2px);
}

.search-results__shop-media {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: #faf8f4;
}

.search-results__shop-media img {
	display: block;
	width: 100%;
	height: 100px;
	object-fit: contain;
}

.search-results__shop-body strong {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 1.05rem;
	color: #121b24;
}

.search-results__shop-body span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: #1b7a43;
	font-weight: 600;
	font-size: 0.92rem;
}

.search-results__categories {
	display: grid;
	gap: 0.75rem;
}

.search-results__category {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.85rem;
	align-items: center;
	padding: 1rem 1.1rem;
	border: 1px solid #e8edf1;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
}

.search-results__category:hover {
	border-color: #1b7a43;
}

.search-results__category-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgba(27, 122, 67, 0.1);
	color: #1b7a43;
}

.search-results__category-text strong {
	display: block;
	color: #121b24;
}

.search-results__category-text small {
	display: block;
	margin-top: 0.15rem;
	color: #6b7280;
}

.search-results__category-arrow {
	color: #1b7a43;
}

.blog-grid--compact {
	margin-top: 0;
}

@media (min-width: 768px) {
	.search-results__products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.search-results__shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.utility-search__field {
		flex-direction: column;
		border-radius: 18px;
	}

	.utility-search__icon {
		display: none;
	}

	.utility-search__input {
		padding: 0.75rem 1rem 0;
	}

	.utility-search__submit {
		justify-content: center;
		border-radius: 14px;
	}

	.search-results__shop-card {
		grid-template-columns: 1fr;
	}
}

/* Form security + feedback */
.ctb-form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.ctb-form-message {
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.ctb-form-message.is-error {
	background: #fdecec;
	color: #b42318;
	border: 1px solid #f9c9c4;
}

.ctb-form-message.is-success {
	background: #e8f5ee;
	color: #1b7a43;
	border: 1px solid #b9e2c8;
}

[data-ctb-form].is-submitting {
	opacity: 0.85;
	pointer-events: none;
}

/* Thank you page */
.thank-you {
	padding: 4rem 0 5rem;
	background: linear-gradient(180deg, #f4f7f9 0%, #ffffff 100%);
}

.thank-you__container {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 1rem;
}

.thank-you__card {
	background: #fff;
	border-radius: 24px;
	padding: 2.5rem 2rem;
	box-shadow: 0 18px 50px rgba(18, 27, 36, 0.08);
	text-align: center;
}

.thank-you__icon {
	display: inline-flex;
	font-size: 3rem;
	color: #1b7a43;
	margin-bottom: 0.75rem;
}

.thank-you__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
}

.thank-you__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 2.75rem);
}

.thank-you__lede {
	margin: 0 auto 2rem;
	max-width: 34rem;
	color: #4b5563;
	line-height: 1.7;
}

.thank-you__steps {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	text-align: left;
	display: grid;
	gap: 1rem;
}

.thank-you__steps li {
	padding: 1rem 1.1rem;
	border: 1px solid #e8edf1;
	border-radius: 16px;
	background: #fafbfc;
}

.thank-you__steps strong {
	display: block;
	margin-bottom: 0.25rem;
}

.thank-you__steps span {
	color: #6b7280;
	font-size: 0.95rem;
}

.thank-you__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.thank-you__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.4rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}

.thank-you__btn--primary {
	background: #1b7a43;
	color: #fff;
}

.thank-you__btn--ghost {
	border: 1px solid #d1d5db;
	color: #121b24;
}

.thank-you__help {
	margin: 0;
	color: #6b7280;
}

.thank-you__help a {
	color: #1b7a43;
	font-weight: 600;
}

/* Chat form fields */
.chat-panel__fields {
	display: grid;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.chat-panel__name,
.chat-panel__email {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.55rem 0.75rem;
	font-size: 0.9rem;
}

.chat-panel__form {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1;
}
