.t4-builder-home,
.t4-builder-header,
.t4-builder-footer {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.t4-header-builder-row,
.t4-footer-builder-row {
	width: 100%;
}

.t4-header-builder-row > .row {
	align-items: center;
}

.t4-builder-row.t4-native-row > .row {
	--bs-gutter-x: 0;
	--bs-gutter-y: 0;
	margin-left: 0;
	margin-right: 0;
}

.t4-builder-row.t4-native-row > .row > [class*="col"] {
	padding-left: 0;
	padding-right: 0;
	max-width: 100%;
}

.t4-builder-row.t4-width-container {
	width: 100%;
	max-width: var(--theme-container-max, 1320px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

.t4-builder-row.t4-width-full {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.t4-widget-logo__img {
	display: block;
	max-height: 48px;
	width: auto;
	height: auto;
	max-width : 100%
}

.t4-widget-logo__caption {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.85;
}

.t4-widget-links__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.t4-widget-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.t4-widget-links__list li + li {
	margin-top: 0.35rem;
}

.t4-widget-links__list a {
	text-decoration: none;
}

.t4-widget-header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	flex-wrap: wrap;
}

/* Mobile: < 768px */
@media (max-width: 767.98px) {
	.t4-hide-mobile {
		display: none !important;
	}
}

/* Tablet: 768px – 991.98px */
@media (min-width: 768px) and (max-width: 991.98px) {
	.t4-hide-tablet {
		display: none !important;
	}
}

/* Desktop / PC: ≥ 992px */
@media (min-width: 992px) {
	.t4-hide-desktop {
		display: none !important;
	}
}

.t4-home-extra {
	margin-top: 2rem;
	padding-top: 0.5rem;
}

.t4-widget-banner__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
}

.t4-widget-banner__link {
	display: block;
}

.t4-widget-text__body {
	font-size: 1rem;
	line-height: 1.6;
	color: #1e293b;
}

.t4-widget-text__body h1,
.t4-widget-text__body h2,
.t4-widget-text__body h3 {
	margin-top: 0;
}

.t4-widget--hook {
	min-height: 0;
}

.t4-site-header {
	background: #fff;
	border-bottom: 1px solid var(--sn-border, #e6edf5);
	padding: 12px 0;
}

.t4-site-footer {
	margin-top: 2rem;
}

.t4-site-footer .t4-builder-footer {
	padding: 2rem 0 1rem;
}

.t4-home .sn-section,
.t4-home .t4-widget--category {
	margin: 1.5rem 0;
}

.t4-widget--category .t4-product-grid .t4-product-card,
.t4-widget--category .t4-product-grid .product-card {
	height: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px;
	background: #fff;
}

.t4-widget--category .t4-product-card__image,
.t4-widget--category .product-image-wrapper {
	height: 160px;
	max-height: 160px;
	margin-bottom: 10px;
	padding: 8px;
	overflow: hidden;
}

.t4-widget--category .t4-product-card__image img,
.t4-widget--category .product-image-wrapper img {
	max-height: 144px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.t4-widget--category .t4-product-card__title,
.t4-widget--category .product-title {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	min-height: 0;
	max-height: 2.7em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.t4-widget--category .t4-product-card__prices .current-price,
.t4-widget--category .current-price {
	font-size: 1rem;
	font-weight: 700;
}

.t4-widget--category .miniPrice {
	font-size: 1rem;
	padding: 0;
}

.t4-cat-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.t4-cat-list__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
}

.t4-cat-list__image {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 8px;
	background: #f8fafc;
}

.t4-cat-list__image img {
	max-width: 100%;
	max-height: 72px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.t4-cat-list__body {
	flex: 1 1 auto;
	min-width: 0;
}

.t4-cat-list__title {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	line-height: 1.35;
}

.t4-cat-list__prices {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 4px;
}

.t4-cat-list__action {
	flex: 0 0 auto;
}

@media (max-width: 575.98px) {
	.t4-cat-list__item {
		flex-wrap: wrap;
	}
	.t4-cat-list__action {
		width: 100%;
	}
	.t4-cat-list__action .btn {
		width: 100%;
	}
}

/* main_menu hook: horizontal nav (module outputs bare <li>) */
.t4-widget-menu,
.t4-builder-header .t4-nav-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.t4-widget-menu > li,
.t4-builder-header .t4-nav-list > li {
	flex: 0 0 auto;
	list-style: none;
	margin: 0;
}

.t4-widget-menu > li > a,
.t4-builder-header .t4-nav-list > li > a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.t4-widget-menu > li > a:hover,
.t4-widget-menu > li > a.active,
.t4-widget-menu > li > a.is-active {
	background: var(--primary-light, #eff6ff);
	color: var(--primary, #2563eb);
}

.t4-container > .row {
	align-items: stretch;
}

.t4-container .t4-editable,
.t4-container .t4-widget {
	height: 100%;
}

.t4-container .t4-placeholder {
	min-height: 180px;
	height: 100%;
}
