/**
 * YB Fashion UI — homepage & shop editorial refinements
 * Inspired by Zara / COS / Uniqlo product grid conventions.
 */

/* ══════════════════════════════════════════
   HOMEPAGE — Immersive Hero (85vh)
   ══════════════════════════════════════════ */
.elementor-page-143 .yb-hero-section {
	margin-top: 0 !important;
	padding: 0 !important;
	position: relative;
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	overflow: hidden;
}

.elementor-page-143 .yb-hero-section > .elementor-container,
.elementor-page-143 .yb-hero-section .elementor-column,
.elementor-page-143 .yb-hero-section .elementor-widget-wrap {
	position: relative;
}

.elementor-page-143 .yb-hero-section::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.18) 0%,
		rgba(0, 0, 0, 0.05) 30%,
		rgba(0, 0, 0, 0.12) 62%,
		rgba(0, 0, 0, 0.48) 100%
	);
	pointer-events: none;
	z-index: 2;
}

.elementor-page-143 .yb-hero-section .elementor-widget-container {
	padding: 0 !important;
	margin: 0 !important;
}

.elementor-page-143 .yb-hero-carousel {
	position: relative;
	z-index: 1;
}

.elementor-page-143 .yb-hero-carousel .elementor-image-carousel-wrapper,
.elementor-page-143 .yb-hero-carousel .swiper {
	min-height: 85vh;
	min-height: 85dvh;
	max-height: 92vh;
}

.elementor-page-143 .yb-hero-carousel .swiper-slide-image,
.elementor-page-143 .yb-hero-carousel .swiper-slide img {
	width: 100%;
	height: 85vh;
	height: 85dvh;
	min-height: 85vh;
	min-height: 85dvh;
	object-fit: cover;
	object-position: center center;
	aspect-ratio: unset;
	filter: saturate(1.04) contrast(1.03);
}

.elementor-page-143 .yb-hero-carousel .swiper-pagination {
	bottom: 24px !important;
	z-index: 4;
}

.elementor-page-143 .yb-hero-carousel .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.55;
	width: 7px;
	height: 7px;
	margin: 0 5px !important;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.elementor-page-143 .yb-hero-carousel .swiper-pagination-bullet-active {
	opacity: 1;
	transform: scale(1.15);
}

/* Hide duplicate headline strip when hero overlay copy is active */
.elementor-page-143 .yb-headline-strip--hidden,
.elementor-page-143 .elementor-element-f1head01.yb-headline-strip {
	display: none !important;
}

/* Hero overlay copy — stacked over carousel */
.elementor-page-143 .yb-hero-overlay {
	position: absolute !important;
	left: 0;
	right: 0;
	z-index: 5;
	pointer-events: none;
	margin: 0 !important;
	padding: 0 20px !important;
	width: 100%;
}

.elementor-page-143 .yb-hero-overlay .elementor-widget-container {
	pointer-events: none;
}

.elementor-page-143 .yb-hero-overlay-title {
	bottom: 132px;
}

.elementor-page-143 .yb-hero-overlay-sub {
	bottom: 96px;
}

.elementor-page-143 .yb-hero-overlay-cta {
	bottom: 36px;
	pointer-events: auto;
}

.elementor-page-143 .yb-hero-overlay-title .elementor-heading-title {
	color: #fff !important;
	font-size: clamp(1.75rem, 5vw, 2.75rem) !important;
	font-weight: 300 !important;
	letter-spacing: 0.06em !important;
	line-height: 1.15 !important;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 0, 0, 0.35);
	margin: 0;
}

.elementor-page-143 .yb-hero-overlay-sub .elementor-heading-title {
	color: rgba(255, 255, 255, 0.96) !important;
	font-size: clamp(0.75rem, 2.8vw, 0.875rem) !important;
	font-weight: 400 !important;
	letter-spacing: 0.04em !important;
	line-height: 1.45 !important;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.28);
	margin: 8px auto 0;
	max-width: 22em;
}

.elementor-page-143 .yb-hero-overlay-cta .elementor-button {
	background: #fff !important;
	color: #222 !important;
	border: none;
	padding: 13px 32px;
	min-width: 168px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.elementor-page-143 .yb-hero-overlay-cta .elementor-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

/* ── GAP x 星星人 promo hero — image has baked-in copy + CTA ── */
.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel)::after,
.elementor-page-143 .yb-hero-gap-twinkle::after {
	display: none;
}

.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-overlay-title,
.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-overlay-sub,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-overlay-title,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-overlay-sub {
	display: none !important;
}

.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .elementor-image-carousel-wrapper,
.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .swiper,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .elementor-image-carousel-wrapper,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .swiper {
	min-height: 85vh;
	min-height: 85dvh;
	max-height: 92vh;
	max-height: 92dvh;
	height: 85dvh;
	aspect-ratio: unset;
	background: none;
}

.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .swiper-slide,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .swiper-slide {
	height: 100%;
}

.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .swiper-slide-image,
.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .swiper-slide img,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .swiper-slide-image,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .swiper-slide img {
	width: 100%;
	height: 85vh;
	height: 85dvh;
	min-height: 85vh;
	min-height: 85dvh;
	max-height: none;
	object-fit: cover;
	object-position: center 45%;
	filter: none;
}

.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .swiper-pagination,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .swiper-pagination {
	display: none !important;
}

/* Invisible hit target aligned to baked-in 立即选购 button (~1024×682 art) */
.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-overlay-cta,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-overlay-cta {
	bottom: auto;
	top: 63%;
	left: 18%;
	right: auto;
	width: 15%;
	max-width: 210px;
	height: 9%;
	min-height: 44px;
	padding: 0 !important;
	pointer-events: auto;
	transform: none;
}

.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-overlay-cta .elementor-widget-container,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-overlay-cta .elementor-widget-container {
	pointer-events: auto;
}

.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-overlay-cta .elementor-button,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-overlay-cta .elementor-button {
	opacity: 0;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 0 !important;
	margin: 0;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 999px;
	cursor: pointer;
}

.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-overlay-cta .elementor-button:hover,
.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-overlay-cta .elementor-button:focus,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-overlay-cta .elementor-button:hover,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-overlay-cta .elementor-button:focus {
	opacity: 0;
	transform: none;
	box-shadow: none !important;
}

.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-overlay-cta .elementor-button-text,
.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-overlay-cta .elementor-button-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Editorial headline strip ── */
.elementor-page-143 .yb-headline-strip {
	text-align: center;
	padding: 56px 24px 40px !important;
}

.elementor-page-143 .yb-editorial-headline .elementor-heading-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
	font-weight: 300 !important;
	letter-spacing: 0.02em;
	line-height: 1.2 !important;
	color: #222;
}

.elementor-page-143 .yb-editorial-sub .elementor-heading-title {
	font-size: 13px !important;
	font-weight: 400 !important;
	color: #777 !important;
	letter-spacing: 0.06em;
	text-transform: none !important;
	margin-top: 12px;
}

.elementor-page-143 .yb-hero-cta .elementor-button {
	margin-top: 24px;
	padding: 14px 36px;
	min-width: 200px;
	transition: background 0.25s ease, transform 0.2s ease;
}

.elementor-page-143 .yb-hero-cta .elementor-button:hover {
	background: #444 !important;
	transform: translateY(-1px);
}

/* ── Category tiles ── */
.elementor-page-143 .yb-category-tiles {
	padding: 0 16px 48px !important;
}

.elementor-page-143 .yb-cat-tile-img img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	filter: saturate(0.94) contrast(1.03);
}

.elementor-page-143 .yb-cat-tile-img:hover img {
	transform: scale(1.04);
}

.elementor-page-143 .yb-cat-tile-label {
	margin-top: 14px;
	text-align: center;
}

.elementor-page-143 .yb-cat-tile-label .elementor-heading-title {
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.14em !important;
	color: #222 !important;
}

.elementor-page-143 .yb-cat-tile-label .elementor-heading-title a {
	color: inherit;
	text-decoration: none;
}

/* ── Section titles & CTAs ── */
.elementor-page-143 .yb-section-title {
	margin-bottom: 28px !important;
}

.elementor-page-143 .yb-section-title .elementor-heading-title {
	font-size: 13px !important;
	font-weight: 500 !important;
	text-transform: uppercase;
	letter-spacing: 0.16em !important;
	color: #222 !important;
}

.elementor-page-143 .yb-new-arrivals-section,
.elementor-page-143 .yb-best-sellers-section {
	padding: 56px 16px !important;
}

.elementor-page-143 .yb-section-cta {
	margin-top: 32px;
}

.elementor-page-143 .yb-section-cta .elementor-button {
	background: transparent !important;
	color: #222 !important;
	border: 1px solid #222 !important;
	padding: 12px 32px;
}

.elementor-page-143 .yb-section-cta .elementor-button:hover {
	background: #222 !important;
	color: #fff !important;
}

/* ── Lookbook editorial break ── */
.elementor-page-143 .yb-lookbook-section,
.elementor-page-143 .yb-promo-section {
	padding: 0 !important;
	margin: 0 !important;
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
}

.elementor-page-143 .yb-lookbook-section > .elementor-container,
.elementor-page-143 .yb-promo-section > .elementor-container {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
}

.elementor-page-143 .yb-lookbook-img img {
	width: 100%;
	max-height: 72vh;
	min-height: 420px;
	object-fit: cover;
	object-position: center 38%;
	aspect-ratio: 16 / 7;
}

/* ── Promo banner ── */
.elementor-page-143 .yb-promo-section {
	margin-top: 0 !important;
}

.elementor-page-143 .yb-promo-banner img {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
}

/* ── Trust strip ── */
.elementor-page-143 .yb-hero-carousel .swiper-slide {
	transition-timing-function: ease-in-out !important;
}

.elementor-page-143 .yb-trust-strip {
	border-top: 1px solid #ebebeb;
	padding-top: 8px;
}

.elementor-page-143 .yb-trust-strip .porto-sicon-title {
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
}

.elementor-page-143 .yb-trust-strip .porto-sicon-description {
	font-size: 11px !important;
	color: #888 !important;
}

/* Fallback: legacy carousel aspect override */
.elementor-page-143 .elementor-widget-image-carousel .swiper-slide-image,
.elementor-page-143 .elementor-image-carousel-wrapper img {
	width: 100%;
	object-fit: cover;
}

.elementor-page-143 .elementor-element-c2a20db {
	margin-top: 0 !important;
}

.elementor-element-8c16f5a > .elementor-widget-container,
.elementor-element-4526022 > .elementor-widget-container {
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

/* ── Product grid — editorial card style ── */
.products.products-container .product-inner {
	background: transparent;
	border: none;
	box-shadow: none;
}

.products.products-container .product-image {
	overflow: hidden;
	background: #f7f7f7;
	aspect-ratio: 3 / 4;
	position: relative;
}

.products.products-container .product-image > a {
	display: block;
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
}

.products.products-container .product-image .inner {
	display: block;
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

.products.products-container .product-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Eager-load first row: avoid blank tiles before lazy scroll */
.elementor-page-143 .products.products-container .product:nth-child(-n+4) img {
	content-visibility: visible;
}

.products.products-container .product-image img.hover-image {
	opacity: 0;
	transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.products.products-container .product:hover .product-image img:not(.hover-image) {
	transform: scale(1.03);
}

.products.products-container .product:hover .product-image img.hover-image {
	opacity: 1;
}

.products.products-container .product-content,
.products.products-container .product-loop-content {
	padding: 14px 2px 22px;
	text-align: left;
}

.products.products-container .woocommerce-loop-product__title,
.products.products-container .product-title,
.products.products-container h3.woocommerce-loop-product__title {
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	letter-spacing: 0.02em;
	margin: 0 0 8px !important;
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.products.products-container .product-meta,
.products.products-container .product-categories,
.products.products-container .category-list {
	font-size: 10px !important;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #999 !important;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.products.products-container .price {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--porto-heading-color, #222) !important;
	margin: 0;
	letter-spacing: 0.01em;
}

.products.products-container .price del {
	font-size: 11px;
	font-weight: 400;
	opacity: 0.5;
	margin-right: 6px;
}

.products.products-container .price ins {
	text-decoration: none;
}

/* Grid spacing — more breathing room */
.products.products-container.has-ccols-spacing {
	--porto-grid-gutter-width: 16px;
}

@media (min-width: 768px) {
	.products.products-container.has-ccols-spacing {
		--porto-grid-gutter-width: 24px;
	}
}

@media (min-width: 992px) {
	.products.products-container.has-ccols-spacing {
		--porto-grid-gutter-width: 32px;
	}
}

/* Mobile: 2 columns max (Zara / Uniqlo convention) */
@media (max-width: 767px) {
	.elementor-page-143 .yb-hero-carousel .swiper-slide-image,
	.elementor-page-143 .yb-hero-carousel .swiper-slide img {
		height: 85dvh;
		min-height: 85dvh;
		max-height: 92dvh;
		object-fit: cover;
		object-position: center 38%;
	}

	.elementor-page-143 .yb-hero-carousel .elementor-image-carousel-wrapper,
	.elementor-page-143 .yb-hero-carousel .swiper {
		min-height: 85dvh;
		max-height: 92dvh;
	}

	.elementor-page-143 .yb-hero-overlay-title {
		bottom: 34%;
		padding: 0 16px !important;
	}

	.elementor-page-143 .yb-hero-overlay-sub {
		bottom: 26%;
		padding: 0 20px !important;
	}

	.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .elementor-image-carousel-wrapper,
	.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .swiper,
	.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .elementor-image-carousel-wrapper,
	.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .swiper {
		min-height: min(85dvh, 520px);
		height: min(85dvh, 520px);
		max-height: min(85dvh, 520px);
		aspect-ratio: unset;
		background: none;
	}

	.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .swiper-slide-image,
	.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-gap-twinkle-carousel .swiper-slide img,
	.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .swiper-slide-image,
	.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-gap-twinkle-carousel .swiper-slide img {
		height: min(85dvh, 520px);
		min-height: min(85dvh, 520px);
		max-height: min(85dvh, 520px);
		object-fit: cover;
		object-position: left 42%;
	}

	.elementor-page-143 .yb-hero-section:has(.yb-hero-gap-twinkle-carousel) .yb-hero-overlay-cta,
	.elementor-page-143 .yb-hero-gap-twinkle .yb-hero-overlay-cta {
		top: 55%;
		left: 12%;
		width: 32%;
		max-width: none;
		height: 11%;
		min-height: 44px;
	}

	.elementor-page-143 .yb-hero-overlay-cta {
		bottom: 14%;
	}

	.elementor-page-143 .yb-hero-overlay-title .elementor-heading-title {
		font-size: clamp(1.35rem, 7vw, 1.75rem) !important;
		letter-spacing: 0.04em !important;
	}

	.elementor-page-143 .yb-hero-overlay-sub .elementor-heading-title {
		font-size: clamp(0.7rem, 3.2vw, 0.8125rem) !important;
		max-width: 18em;
	}

	.elementor-page-143 .yb-hero-overlay-cta .elementor-button {
		padding: 11px 26px;
		min-width: 148px;
		font-size: 11px !important;
	}

	.elementor-page-143 .yb-hero-carousel .swiper-pagination {
		bottom: 12px !important;
	}

	.elementor-page-143 .yb-headline-strip {
		padding: 36px 16px 28px !important;
	}

	.elementor-page-143 .yb-new-arrivals-section,
	.elementor-page-143 .yb-best-sellers-section {
		padding: 40px 12px !important;
	}

	.products.products-container.ccols-sm-3 .product-col,
	.products.products-container.ccols-md-3 .product-col,
	.products.products-container.ccols-sm-4 .product-col,
	.products.products-container.ccols-md-4 .product-col {
		flex: 0 0 50% !important;
		max-width: 50% !important;
	}

	.products.products-container .product-content,
	.products.products-container .product-loop-content {
		padding: 10px 2px 16px;
	}
}

/* ══════════════════════════════════════════
   SHOP / CATEGORY — editorial archive UI
   ══════════════════════════════════════════ */

/* Breadcrumb visibility */
.breadcrumb-wrap,
.page-top .breadcrumb,
.page-top .breadcrumbs-wrap,
.woocommerce-breadcrumb {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #999;
	padding: 12px 0;
}

.breadcrumb-wrap a,
.page-top .breadcrumb a,
.page-top .breadcrumbs-wrap a,
.woocommerce-breadcrumb a {
	color: #666;
	text-decoration: none;
	transition: color 0.2s ease;
}

.breadcrumb-wrap a:hover,
.page-top .breadcrumb a:hover,
.page-top .breadcrumbs-wrap a:hover,
.woocommerce-breadcrumb a:hover {
	color: #222;
}

.page-top .breadcrumb li + li::before,
.page-top .breadcrumbs-wrap .breadcrumb li + li::before {
	color: #ccc;
	padding: 0 8px;
}

/* Category top banner — editorial page header (881 fallback via CSS) */
.tax-product_cat .page-top,
.post-type-archive-product .page-top {
	min-height: 280px;
	height: clamp(280px, 28vw, 400px);
	display: flex;
	align-items: flex-end;
	background: linear-gradient(135deg, #f5f3f0 0%, #ebe8e4 100%);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
	margin-bottom: 8px;
	padding-bottom: 8px;
}

.tax-product_cat .page-top::before,
.post-type-archive-product .page-top::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.52) 0%,
		rgba(0, 0, 0, 0.18) 45%,
		rgba(0, 0, 0, 0.06) 100%
	);
	pointer-events: none;
}

.tax-product_cat .page-top .container,
.post-type-archive-product .page-top .container {
	position: relative;
	z-index: 1;
	width: 100%;
}

/* Show page title (Porto hides when banner block 881 is empty) */
.tax-product_cat .page-top .page-title,
.post-type-archive-product .page-top .page-title,
.tax-product_cat .page-top .hide-title .page-title,
.post-type-archive-product .page-top .hide-title .page-title {
	display: block !important;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
	font-weight: 300 !important;
	letter-spacing: 0.06em;
	color: #fff !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
	margin: 0 0 8px;
}

.tax-product_cat .page-top .d-none,
.post-type-archive-product .page-top .d-none {
	display: block !important;
}

.tax-product_cat .page-top .breadcrumb,
.post-type-archive-product .page-top .breadcrumb {
	color: rgba(255, 255, 255, 0.85);
	padding-bottom: 16px;
}

.tax-product_cat .page-top .breadcrumb a,
.post-type-archive-product .page-top .breadcrumb a {
	color: rgba(255, 255, 255, 0.9);
}

.tax-product_cat .page-top .page-sub-title,
.post-type-archive-product .page-top .page-sub-title {
	display: block !important;
	font-size: clamp(0.75rem, 2vw, 0.875rem) !important;
	font-weight: 400 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	letter-spacing: 0.04em;
	line-height: 1.5;
	max-width: 28em;
	margin: 0 0 10px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.tax-product_cat .term-description,
.post-type-archive-product .term-description {
	display: none !important;
}

/* Category-specific banner backgrounds (CSS fallback; PHP inline overrides per term-id) */
body.term-girl .page-top,
body.term-baby-girl .page-top {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)),
		url("/wp-content/themes/porto-child/assets/images/banner-girl.jpg");
}

body.term-boy .page-top,
body.term-baby-boy .page-top {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)),
		url("/wp-content/themes/porto-child/assets/images/banner-boy.jpg");
}

body[class*="term-unisex"] .page-top {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)),
		url("/wp-content/themes/porto-child/assets/images/banner-unisex.jpg");
}

body.term-boy-set- .page-top,
body[class*="term-boy-set"] .page-top {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)),
		url("/wp-content/themes/porto-child/assets/images/banner-boy-set.jpg");
}

body.term-girl-set- .page-top,
body[class*="term-girl-set"] .page-top {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)),
		url("/wp-content/themes/porto-child/assets/images/banner-girl-set.jpg");
}

.post-type-archive-product .page-top {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05)),
		url("/wp-content/themes/porto-child/assets/images/banner-lookbook.jpg");
}

/* Filter bar — minimal editorial */
.post-type-archive-product .shop-loop-before,
.tax-product_cat .shop-loop-before {
	border-bottom: 1px solid #ebebeb;
	padding: 12px 0 16px;
	margin-bottom: 32px;
	gap: 12px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.post-type-archive-product .shop-loop-before .toolbox-item,
.tax-product_cat .shop-loop-before .toolbox-item {
	margin: 0;
}

.post-type-archive-product .shop-loop-before .toolbox-item label,
.tax-product_cat .shop-loop-before .toolbox-item label {
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #999;
	margin-right: 8px;
}

.post-type-archive-product .shop-loop-before select,
.tax-product_cat .shop-loop-before select {
	border: none;
	border-bottom: 1px solid #ccc;
	background: transparent;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 24px 6px 0;
	cursor: pointer;
	appearance: auto;
	min-width: 140px;
}

.post-type-archive-product .shop-loop-before select:focus,
.tax-product_cat .shop-loop-before select:focus {
	outline: none;
	border-bottom-color: #222;
}

.post-type-archive-product .shop-loop-before .woocommerce-result-count,
.tax-product_cat .shop-loop-before .woocommerce-result-count {
	font-size: 11px;
	color: #999;
	letter-spacing: 0.04em;
	margin: 0;
}

/* Archive main content rhythm */
body.post-type-archive-product #main .main-content,
body.tax-product_cat #main .main-content {
	padding-top: 8px;
}

/* Mobile filter toggle hint */
@media (max-width: 991px) {
	body.post-type-archive-product .sidebar,
	body.tax-product_cat .sidebar {
		display: none !important;
	}

	body.post-type-archive-product #main .main-content,
	body.tax-product_cat #main .main-content {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	body.post-type-archive-product #main > .container,
	body.tax-product_cat #main > .container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.post-type-archive-product .shop-loop-before,
	.tax-product_cat .shop-loop-before {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		position: sticky;
		top: 52px;
		z-index: 50;
		background: #fff;
		padding-top: 14px;
		margin-bottom: 20px;
	}

	body.admin-bar .post-type-archive-product .shop-loop-before,
	body.admin-bar .tax-product_cat .shop-loop-before {
		top: 98px;
	}

	.post-type-archive-product .shop-loop-before select,
	.tax-product_cat .shop-loop-before select {
		flex: 1 1 auto;
		min-width: 0;
	}

	.tax-product_cat .page-top,
	.post-type-archive-product .page-top {
		min-height: 120px;
		height: min(40vh, 160px);
		max-height: 160px;
		padding-top: 12px;
		background-position: center center !important;
	}

	.tax-product_cat .page-top .page-title,
	.post-type-archive-product .page-top .page-title {
		font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
		margin-bottom: 4px;
	}

	.tax-product_cat .page-top .page-sub-title,
	.post-type-archive-product .page-top .page-sub-title {
		font-size: 0.75rem !important;
		max-width: 16em;
		margin-bottom: 6px;
	}

	.tax-product_cat .page-top .breadcrumb,
	.post-type-archive-product .page-top .breadcrumb {
		padding-bottom: 10px;
		font-size: 10px;
	}
}

/* Sidebar editorial styling (desktop) */
@media (min-width: 992px) {
	.tax-product_cat .page-top,
	.post-type-archive-product .page-top {
		min-height: 320px;
		height: clamp(320px, 28vw, 400px);
		max-height: none;
		background-position: center center !important;
	}

	body.post-type-archive-product .sidebar .widget,
	body.tax-product_cat .sidebar .widget {
		border: none;
		padding: 0;
		margin-bottom: 36px;
		background: transparent;
		box-shadow: none;
	}

	body.post-type-archive-product .sidebar .widget-title,
	body.tax-product_cat .sidebar .widget-title {
		font-size: 11px;
		font-weight: 500;
		text-transform: uppercase;
		letter-spacing: 0.14em;
		border-bottom: 1px solid #ebebeb;
		padding-bottom: 12px;
		margin-bottom: 18px;
		color: #222;
	}

	body.post-type-archive-product .sidebar .widget ul li,
	body.tax-product_cat .sidebar .widget ul li {
		border: none;
		padding: 6px 0;
	}

	body.post-type-archive-product .sidebar .widget ul li a,
	body.tax-product_cat .sidebar .widget ul li a {
		font-size: 12px;
		color: #666;
		letter-spacing: 0.02em;
		transition: color 0.2s ease;
	}

	body.post-type-archive-product .sidebar .widget ul li a:hover,
	body.tax-product_cat .sidebar .widget ul li a:hover,
	body.post-type-archive-product .sidebar .widget ul li.current-cat > a,
	body.tax-product_cat .sidebar .widget ul li.current-cat > a {
		color: #222;
	}

	body.post-type-archive-product .sidebar .widget ul li.current-cat > a,
	body.tax-product_cat .sidebar .widget ul li.current-cat > a {
		font-weight: 500;
	}
}

/* Sticky header — ensure content not hidden */
@media (max-width: 991px) {
	body.admin-bar #header.sticky-header,
	body #header.sticky-header {
		z-index: 999;
	}

	body.home #main {
		padding-top: 0;
	}

	body.home .yb-hero-section {
		margin-top: 0 !important;
	}
}

/* Homepage category tiles — 3-col desktop, stack mobile */
@media (max-width: 767px) {
	.elementor-page-143 .yb-category-tiles .elementor-column {
		width: 100% !important;
		margin-bottom: 24px;
	}

	.elementor-page-143 .yb-category-tiles .elementor-column:last-child {
		margin-bottom: 0;
	}
}

/* Homepage section rhythm (legacy compat) */
.elementor-page-143 .elementor-element-444c236 {
	margin-top: 0 !important;
	padding-top: 24px !important;
}
