/* Unified shop pages — signage + awning (background, hero, product grid) */

body.eg-signage-shop-page .entry-header,
body.eg-signage-shop-page .wp-block-post-title,
body.eg-signage-shop-page .page-header,
body.eg-awning-shop-page .woocommerce-products-header,
body.eg-awning-shop-page .tenweb-page-title,
body.eg-awning-shop-page .elementor-widget-tenweb-archive-title {
	display: none !important;
}

/* Hide legacy dark Elementor shop banner on /shop/ */
body.eg-awning-shop-page .elementor-element-57271872,
body.eg-awning-shop-page .elementor-element-3037e15f,
body.eg-awning-shop-page .elementor-element-c1a4cc2 {
	display: none !important;
}

/* Page background — white for shop area (not footer) */
body.eg-shop-catalog-page {
	background-color: #ffffff !important;
}

body.eg-shop-catalog-page .site-main,
body.eg-shop-catalog-page .site-main .elementor,
body.eg-shop-catalog-page .site-main .elementor-section,
body.eg-shop-catalog-page .site-main .e-con,
body.eg-shop-catalog-page .site-main .e-con-inner,
body.eg-shop-catalog-page #content,
body.eg-shop-catalog-page .content-area,
body.eg-shop-catalog-page .eg-shop-page,
body.eg-shop-catalog-page .eg-shop-hero-wrap,
body.eg-shop-catalog-page .entry-content,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products,
body.eg-shop-catalog-page .twbb_woocommerce-products-ajax-paginate {
	background-color: #ffffff !important;
	background-image: none !important;
}

/* Restore footer/theme sections — do not force white from shop styles */
body.eg-shop-catalog-page footer,
body.eg-shop-catalog-page .site-footer,
body.eg-shop-catalog-page #colophon,
body.eg-shop-catalog-page .elementor-location-footer,
body.eg-shop-catalog-page .elementor-location-footer .elementor-section,
body.eg-shop-catalog-page .elementor-location-footer .e-con,
body.eg-shop-catalog-page .elementor-location-footer .e-con-inner {
	background-color: revert-layer !important;
	background-image: revert-layer !important;
}

.eg-shop-hero-wrap {
	width: 100%;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	margin: 0 0 28px;
}

.eg-shop-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px 56px;
}

.eg-shop-hero {
	text-align: center;
	max-width: 920px;
	margin: 0 auto;
	padding: 36px 16px 32px;
}

.eg-shop-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #9ca3af;
	text-transform: uppercase;
}

.eg-shop-hero__title {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.2;
	color: #111827;
	letter-spacing: -0.03em;
}

.eg-shop-hero__desc {
	margin: 0 auto;
	max-width: 720px;
	font-size: 14px;
	line-height: 1.55;
	color: #6b7280;
	font-weight: 500;
}

body.eg-awning-shop-page .eg-shop-hero-wrap {
	margin-top: 0;
}

/* Product grid layout */
body.eg-shop-catalog-page .eg-shop-catalog ul.products,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products,
body.eg-shop-catalog-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
	gap: 24px 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.eg-shop-catalog-page ul.products::before,
body.eg-shop-catalog-page ul.products::after {
	display: none !important;
}

body.eg-shop-catalog-page ul.products li.product,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product {
	margin: 0 !important;
	width: 100% !important;
	float: none !important;
	list-style: none !important;
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	padding-bottom: 14px !important;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}

body.eg-shop-catalog-page ul.products li.product:hover,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product:hover {
	transform: translateY(-2px) !important;
	border-color: rgba(37, 99, 235, 0.22) !important;
	box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08) !important;
}

body.eg-shop-catalog-page ul.products li.product:active,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product:active {
	transform: translateY(0) !important;
	box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06) !important;
	transition-duration: 0.08s !important;
}

/* Hide cart/qty on catalog cards */
body.eg-shop-catalog-page ul.products li.product a.button.add_to_cart_button,
body.eg-shop-catalog-page .eg-shop-catalog .add_to_cart_button,
body.eg-shop-catalog-page .twbb-product-loop-buttons {
	display: none !important;
}

body.eg-shop-catalog-page ul.products li.product .woocommerce-loop-product__link,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .woocommerce-loop-product__link {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	width: 100% !important;
	text-align: center !important;
	text-decoration: none !important;
	color: inherit !important;
}

/* Image block — TenWeb-compatible (signage + shared spacing) */
body.eg-shop-catalog-page .twbb-image-wrap {
	width: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	margin-bottom: 10px !important;
}

body.eg-shop-catalog-page .twbb-image-container {
	position: relative !important;
	width: 100% !important;
	overflow: hidden !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

body.eg-shop-catalog-page .twbb-image-container > img,
body.eg-shop-catalog-page .twbb-image-container .product-gallery-second-image > img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}

body.eg-shop-catalog-page .product-gallery-second-image {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	z-index: 10;
	background-color: rgba(255, 255, 255, 0.9);
	overflow: hidden;
}

body.eg-shop-catalog-page .twbb-image-container.hover-active > img,
body.eg-shop-catalog-page .twbb-image-container.hover-active .product-gallery-second-image > img {
	transition: transform 1000ms ease !important;
}

body.eg-shop-catalog-page .twbb-image-container.hover-zoom-out > img,
body.eg-shop-catalog-page .twbb-image-container.hover-zoom-out .product-gallery-second-image > img {
	transform: scale(1.1) !important;
}

body.eg-shop-catalog-page .twbb-image-container.hover-zoom-out:hover > img,
body.eg-shop-catalog-page .twbb-image-container.hover-zoom-out:hover .product-gallery-second-image > img {
	transform: scale(1) !important;
}

/* Unified typography — title 20px, desc 14px (1 line), price 22px/800 */
body.eg-shop-catalog-page ul.products li.product .woocommerce-loop-product__title,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .woocommerce-loop-product__title {
	margin: 12px 0 4px !important;
	padding: 0 14px !important;
	width: 100% !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #111827 !important;
	text-align: center !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(20px * 1.3 * 2);
}

body.eg-shop-catalog-page ul.products li.product .twbb_woocommerce-loop-product__desc,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .twbb_woocommerce-loop-product__desc {
	order: 1 !important;
	margin: 0 0 8px !important;
	padding: 0 14px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: #6b7280 !important;
	text-align: center !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	min-height: auto !important;
	max-width: 100% !important;
}

body.eg-shop-catalog-page ul.products li.product .price,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price {
	order: 2 !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
	margin: 0 auto 10px !important;
	padding: 0 14px !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	color: #f97316 !important;
	text-align: center !important;
}

body.eg-shop-catalog-page ul.products li.product .price .amount,
body.eg-shop-catalog-page ul.products li.product .price bdi,
body.eg-shop-catalog-page ul.products li.product .price ins,
body.eg-shop-catalog-page ul.products li.product .price del,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price .amount,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price bdi,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price ins,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price del {
	font-size: 22px !important;
	font-weight: 800 !important;
	color: #f97316 !important;
}

body.eg-shop-catalog-page ul.products li.product .price del,
body.eg-shop-catalog-page ul.products li.product .price del .amount,
body.eg-shop-catalog-page ul.products li.product .price del bdi,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price del,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price del .amount,
body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price del bdi {
	font-size: 16px !important;
	font-weight: 500 !important;
	color: #9ca3af !important;
}

.eg-shop-empty {
	text-align: center;
	color: #6b7280;
	padding: 48px 16px;
	font-size: 14px;
}

@media (max-width: 768px) {
	.eg-shop-page {
		padding-bottom: 40px;
	}

	.eg-shop-hero {
		padding: 28px 12px 24px;
	}

	body.eg-shop-catalog-page ul.products,
	body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px 12px !important;
	}

	body.eg-shop-catalog-page ul.products li.product .woocommerce-loop-product__title,
	body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .woocommerce-loop-product__title {
		font-size: 18px !important;
		min-height: calc(18px * 1.3 * 2);
	}

	body.eg-shop-catalog-page ul.products li.product .price,
	body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price {
		font-size: 20px !important;
	}

	body.eg-shop-catalog-page ul.products li.product .price .amount,
	body.eg-shop-catalog-page ul.products li.product .price bdi,
	body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price .amount,
	body.eg-shop-catalog-page .elementor-widget-twbb_woocommerce-products ul.products li.product .price bdi {
		font-size: 20px !important;
	}
}
