/**
 * TP4R Homepage Builder Styles
 */

.tp4r-homepage {
	width: 100%;
	margin: 0;
}

/* ============================================
   Group Block
   ============================================ */
.tp4r-hp-group {
	width: 100%;
}

.tp4r-hp-group__inner {
	width: 100%;
}

/* Reset margins inside groups */
.tp4r-hp-group .tp4r-hp-section-title,
.tp4r-hp-group .tp4r-hp-section-text,
.tp4r-hp-group .tp4r-hp-products,
.tp4r-hp-group .tp4r-hp-categories,
.tp4r-hp-group .tp4r-hp-features,
.tp4r-hp-group .tp4r-hp-reviews,
.tp4r-hp-group .tp4r-hp-banner {
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}


/* ============================================
   Section Title
   ============================================ */
.tp4r-hp-section-title {
	margin: 30px 0;
	padding: 0 15px;
}

.tp4r-hp-section-title__subtitle {
	display: block;
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 8px;
	font-weight: 500;
}

.tp4r-hp-section-title__title {
	margin: 0;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

/* Size variants */
.tp4r-hp-section-title--large .tp4r-hp-section-title__title {
	font-size: 32px;
}

.tp4r-hp-section-title--medium .tp4r-hp-section-title__title {
	font-size: 26px;
}

.tp4r-hp-section-title--small .tp4r-hp-section-title__title {
	font-size: 20px;
}

/* ============================================
   Section Text
   ============================================ */
.tp4r-hp-section-text {
	margin: 20px auto;
	padding: 0 15px;
	font-size: 16px;
	line-height: 1.7;
	color: #4b5563;
}

.tp4r-hp-section-text p {
	margin: 0 0 16px;
}

.tp4r-hp-section-text p:last-child {
	margin-bottom: 0;
}

/* ============================================
   Spacer
   ============================================ */
.tp4r-hp-spacer {
	height: var(--spacer-height, 40px);
}

@media (max-width: 768px) {
	.tp4r-hp-spacer {
		height: var(--spacer-height-mobile, 20px);
	}

	.tp4r-hp-section-title--large .tp4r-hp-section-title__title {
		font-size: 26px;
	}

	.tp4r-hp-section-title--medium .tp4r-hp-section-title__title {
		font-size: 22px;
	}

	.tp4r-hp-section-title--small .tp4r-hp-section-title__title {
		font-size: 18px;
	}
}

/* ============================================
   Custom HTML
   ============================================ */
.tp4r-hp-custom-html {
	margin: 20px 0;
}

/* ============================================
   Page Title (Dynamic)
   ============================================ */
.tp4r-hp-page-title {
	margin: 30px 0;
	padding: 0 15px;
}

.tp4r-hp-page-title__title {
	margin: 0;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.tp4r-hp-page-title--large .tp4r-hp-page-title__title {
	font-size: 36px;
}

.tp4r-hp-page-title--medium .tp4r-hp-page-title__title {
	font-size: 28px;
}

.tp4r-hp-page-title--small .tp4r-hp-page-title__title {
	font-size: 22px;
}

/* ============================================
   Page Content (Dynamic)
   ============================================ */
.tp4r-hp-page-content {
	margin: 20px auto;
	padding: 0 15px;
	font-size: 16px;
	line-height: 1.7;
	color: #4b5563;
}

/* ============================================
   Hero Slider
   ============================================ */
.tp4r-hp-hero-slider {
	width: 100%;
	margin: 0;
	overflow: hidden;
}

.tp4r-hero-carousel .owl-stage-outer {
	overflow: hidden;
}

.tp4r-hero-slide {
	display: block;
	width: 100%;
	height: var(--slider-height, 500px);
	position: relative;
	overflow: hidden;
	background: #f3f4f6;
}

.tp4r-hero-slide__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp4r-hero-slide__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

/* Owl Carousel RTL fixes */
.tp4r-hero-carousel.owl-rtl .owl-nav .owl-prev,
.tp4r-hero-carousel.owl-rtl .owl-nav .owl-next {
	background: rgba(255, 255, 255, 0.9);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tp4r-hero-carousel.owl-rtl .owl-nav .owl-prev:hover,
.tp4r-hero-carousel.owl-rtl .owl-nav .owl-next:hover {
	background: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tp4r-hero-carousel.owl-rtl .owl-nav .owl-prev {
	right: 20px;
	left: auto;
}

.tp4r-hero-carousel.owl-rtl .owl-nav .owl-next {
	left: 20px;
	right: auto;
}

.tp4r-hero-carousel .owl-nav .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #374151;
}

.tp4r-hero-carousel .owl-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}

.tp4r-hero-carousel .owl-dot span {
	width: 12px;
	height: 12px;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	display: block;
	transition: all 0.3s ease;
}

.tp4r-hero-carousel .owl-dot.active span,
.tp4r-hero-carousel .owl-dot:hover span {
	background: #fff;
	transform: scale(1.2);
}

@media (max-width: 768px) {
	.tp4r-hero-slide {
		height: var(--slider-height-mobile, 300px);
	}

	.tp4r-hero-carousel.owl-rtl .owl-nav .owl-prev,
	.tp4r-hero-carousel.owl-rtl .owl-nav .owl-next {
		width: 40px;
		height: 40px;
	}

	.tp4r-hero-carousel.owl-rtl .owl-nav .owl-prev {
		right: 10px;
	}

	.tp4r-hero-carousel.owl-rtl .owl-nav .owl-next {
		left: 10px;
	}

	.tp4r-hero-carousel .owl-nav .dashicons {
		font-size: 20px;
		width: 20px;
		height: 20px;
	}

	.tp4r-hp-page-title--large .tp4r-hp-page-title__title {
		font-size: 28px;
	}

	.tp4r-hp-page-title--medium .tp4r-hp-page-title__title {
		font-size: 24px;
	}

	.tp4r-hp-page-title--small .tp4r-hp-page-title__title {
		font-size: 20px;
	}
}

/* ============================================
   Products Block
   ============================================ */
.tp4r-hp-products {
	margin: 40px 0 !important;
	padding: 0 15px;
	position: relative;
	border: none !important;
}

.tp4r-hp-products .tp4r-shop {
	border: none !important;
}

.tp4r-hp-products__title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 25px;
	text-align: center;
	color: #111827;
}

/* Grid Layout - uses TP4R shop grid */
.tp4r-hp-products--grid .tp4r-products {
	display: grid;
	grid-template-columns: repeat(var(--tp4r-columns, 4), 1fr);
	gap: 20px;
}

/* Carousel Navigation */
.tp4r-hp-products--carousel {
	padding-top: 50px;
}

.tp4r-hp-products--carousel .owl-nav {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	gap: 8px;
}

.tp4r-hp-products--carousel .owl-nav button {
	background: #f3f4f6 !important;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.tp4r-hp-products--carousel .owl-nav button:hover {
	background: #e5e7eb !important;
}

/* Fix star ratings in products block */
.tp4r-hp-products .tp4r-product__rating .star-rating {
	overflow: hidden !important;
	position: relative !important;
}

.tp4r-hp-products .tp4r-product__rating .star-rating::before {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
}

.tp4r-hp-products .tp4r-product__rating .star-rating span {
	overflow: hidden !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	color: #fff;
}

.tp4r-hp-products .tp4r-product__rating .star-rating span::before {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
}

/* ============================================
   Categories Block - Base Styles
   ============================================ */
.tp4r-hp-categories {
	margin: 40px 0;
	padding: 0 15px;
}

.tp4r-hp-categories__title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 30px;
	text-align: center;
	color: #111827;
}

/* Container - Grid Base */
.tp4r-hp-categories__container {
	display: grid;
	grid-template-columns: repeat(var(--tp4r-cat-cols, 4), 1fr);
	gap: var(--tp4r-cat-gap, 20px);
	max-width: 1200px;
	margin: 0 auto;
}

/* Hide empty elements that WordPress might insert */
.tp4r-hp-categories__container > p,
.tp4r-hp-categories__container > br,
.tp4r-hp-categories__container > p:empty,
.tp4r-hp-categories__container > a:empty,
.tp4r-hp-categories p:empty,
.tp4r-hp-categories br {
	display: none !important;
}

/* Category Item Base */
.tp4r-hp-category {
	position: relative;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	transition: all 0.35s ease;
	border-radius: 16px;
	overflow: hidden;
}

.tp4r-hp-category__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
}

.tp4r-hp-category__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.tp4r-hp-category__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.tp4r-hp-category__content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	color: #fff;
	text-align: center;
}

.tp4r-hp-category__name {
	font-size: 18px;
	font-weight: 700;
	display: block;
	text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tp4r-hp-category__count {
	font-size: 13px;
	opacity: 0.85;
	display: block;
	margin-top: 4px;
}

/* ============================================
   Style: Grid (Default)
   ============================================ */
.tp4r-hp-categories--grid .tp4r-hp-category__image {
	border-radius: 16px;
}

/* ============================================
   Style: Circles
   ============================================ */
.tp4r-hp-categories--circles .tp4r-hp-category {
	align-items: center;
	background: transparent;
}

.tp4r-hp-categories--circles .tp4r-hp-category__image {
	width: 80%;
	max-width: 180px;
	border-radius: 50%;
	box-shadow: 0 8px 25px rgba(0,0,0,0.12);
	margin: 0 auto;
}

.tp4r-hp-categories--circles .tp4r-hp-category__overlay {
	display: none;
}

.tp4r-hp-categories--circles .tp4r-hp-category__content {
	position: relative;
	padding: 15px 10px;
	color: #111827;
}

.tp4r-hp-categories--circles .tp4r-hp-category__name {
	text-shadow: none;
	font-size: 16px;
}

.tp4r-hp-categories--circles .tp4r-hp-category__count {
	color: #6b7280;
}

/* ============================================
   Style: Cards (Modern)
   ============================================ */
.tp4r-hp-categories--cards .tp4r-hp-category {
	background: #fff;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border-radius: 20px;
}

.tp4r-hp-categories--cards .tp4r-hp-category__image {
	aspect-ratio: 4/3;
	border-radius: 20px 20px 0 0;
}

.tp4r-hp-categories--cards .tp4r-hp-category__overlay {
	opacity: 0;
}

.tp4r-hp-categories--cards .tp4r-hp-category__content {
	position: relative;
	padding: 18px;
	color: #111827;
	background: #fff;
}

.tp4r-hp-categories--cards .tp4r-hp-category__name {
	text-shadow: none;
	font-size: 17px;
}

.tp4r-hp-categories--cards .tp4r-hp-category__count {
	color: #9ca3af;
	font-size: 12px;
}

/* ============================================
   Style: Minimal
   ============================================ */
.tp4r-hp-categories--minimal .tp4r-hp-category {
	border-radius: 12px;
}

.tp4r-hp-categories--minimal .tp4r-hp-category__image {
	border-radius: 12px;
}

.tp4r-hp-categories--minimal .tp4r-hp-category__overlay {
	background: rgba(0,0,0,0.25);
	opacity: 1;
}

.tp4r-hp-categories--minimal .tp4r-hp-category__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	inset: 0;
	padding: 15px;
}

.tp4r-hp-categories--minimal .tp4r-hp-category__name {
	font-size: 20px;
}

/* ============================================
   Style: Collage (Layout B)
   ============================================ */
.tp4r-hp-categories--collage .tp4r-hp-categories__container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto auto;
	gap: var(--tp4r-cat-gap, 20px);
}

.tp4r-hp-categories--collage .tp4r-hp-category {
	border-radius: 20px;
}

.tp4r-hp-categories--collage .tp4r-hp-category__image {
	aspect-ratio: auto;
	height: 100%;
	min-height: 180px;
}

.tp4r-hp-categories--collage .tp4r-hp-category--large {
	grid-column: span 2;
	grid-row: span 1;
}

.tp4r-hp-categories--collage .tp4r-hp-category--large .tp4r-hp-category__image {
	min-height: 220px;
}

.tp4r-hp-categories--collage .tp4r-hp-category--medium {
	grid-column: span 1;
}

.tp4r-hp-categories--collage .tp4r-hp-category--small {
	grid-column: span 1;
}

/* ============================================
   Style: Carousel
   ============================================ */
.tp4r-hp-categories--carousel .tp4r-hp-categories__container {
	display: block;
}

.tp4r-hp-categories--carousel .tp4r-hp-category {
	margin: 0 10px;
}

.tp4r-hp-categories--carousel .owl-nav {
	position: absolute;
	top: 40%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	transform: translateY(-50%);
}

.tp4r-hp-categories--carousel .owl-nav button {
	pointer-events: auto;
	width: 44px;
	height: 44px;
	background: #fff !important;
	border-radius: 50% !important;
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
	display: grid !important;
	place-items: center;
	transition: all 0.2s ease;
	border: none !important;
}

.tp4r-hp-categories--carousel .owl-nav button:hover {
	background: #f3f4f6 !important;
	transform: scale(1.1);
}

.tp4r-hp-categories--carousel .owl-nav button span {
	font-size: 24px;
	color: #333;
}

.tp4r-hp-categories--carousel .owl-nav .owl-prev { margin-left: -22px; }
.tp4r-hp-categories--carousel .owl-nav .owl-next { margin-right: -22px; }
.tp4r-hp-categories--carousel .owl-nav .disabled { opacity: 0.3; }

/* ============================================
   Hover Effects
   ============================================ */
.tp4r-hp-categories--hover-scale .tp4r-hp-category:hover .tp4r-hp-category__image img {
	transform: scale(1.08);
}

.tp4r-hp-categories--hover-lift .tp4r-hp-category:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tp4r-hp-categories--hover-glow .tp4r-hp-category:hover {
	box-shadow: 0 0 30px rgba(214,192,139,0.5);
}

.tp4r-hp-categories--hover-overlay .tp4r-hp-category:hover .tp4r-hp-category__overlay {
	opacity: 0.9;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.tp4r-hp-categories--hover-overlay .tp4r-hp-category:hover .tp4r-hp-category__name {
	transform: translateY(-5px);
}

/* ============================================
   Features Block
   ============================================ */
.tp4r-hp-features {
	margin: 0;
	padding: 5em 15px;
}

.tp4r-hp-features__title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 30px;
	text-align: center;
	color: #111827;
}

.tp4r-hp-features__grid {
	display: grid;
	grid-template-columns: repeat(var(--tp4r-features-columns, 4), 1fr);
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
}

.tp4r-hp-feature {
	text-align: center;
}

.tp4r-hp-feature__icon {
	font-size: 36px;
	width: 36px;
	height: 36px;
	margin-bottom: 12px;
	color: var(--tp4r-primary, #3b82f6);
}

.tp4r-hp-feature__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #111827;
}

.tp4r-hp-feature__text {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

/* Cards Style */
.tp4r-hp-features--cards .tp4r-hp-feature {
	background: #fff;
	padding: 30px 20px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.tp4r-hp-features--cards .tp4r-hp-feature:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

/* Icons Only Style */
.tp4r-hp-features--icons-only .tp4r-hp-feature__text {
	display: none;
}

/* ============================================
   Features Design Styles
   ============================================ */

/* Design 1: Modern with Gradient */
.tp4r-hp-features--modern .tp4r-hp-features__title {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.tp4r-hp-features--modern .tp4r-hp-feature {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 40px 30px;
	color: white;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
	border-radius: 0;
}

.tp4r-hp-features--modern .tp4r-hp-feature::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255,255,255,0.1);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.tp4r-hp-features--modern .tp4r-hp-feature:hover::before {
	transform: translateY(0);
}

.tp4r-hp-features--modern .tp4r-hp-feature:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.tp4r-hp-features--modern .tp4r-hp-feature__icon,
.tp4r-hp-features--modern .tp4r-hp-feature__title,
.tp4r-hp-features--modern .tp4r-hp-feature__text {
	position: relative;
	z-index: 1;
	color: white;
}

.tp4r-hp-features--modern .tp4r-hp-feature__icon {
	font-size: 3em;
	width: auto;
	height: auto;
	margin-bottom: 20px;
}

.tp4r-hp-features--modern .tp4r-hp-feature__title {
	font-size: 1.5em;
	margin-bottom: 10px;
}

.tp4r-hp-features--modern .tp4r-hp-feature__text {
	opacity: 0.9;
}

/* Design 2: Minimal with Borders */
.tp4r-hp-features--minimal .tp4r-hp-features__title {
	position: relative;
	padding-bottom: 20px;
	color: #2d3748;
}

.tp4r-hp-features--minimal .tp4r-hp-features__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 50%;
	transform: translateX(50%);
	width: 100px;
	height: 4px;
	background: #4299e1;
}

.tp4r-hp-features--minimal .tp4r-hp-feature {
	background: white;
	padding: 40px 30px;
	border: 2px solid #e2e8f0;
	border-radius: 0;
	transition: all 0.3s ease;
}

.tp4r-hp-features--minimal .tp4r-hp-feature:hover {
	border-color: #4299e1;
	box-shadow: 0 10px 30px rgba(66, 153, 225, 0.2);
	transform: translateY(-5px);
}

.tp4r-hp-features--minimal .tp4r-hp-feature__icon {
	color: #4299e1;
	font-size: 3em;
	width: auto;
	height: auto;
	margin-bottom: 20px;
	transition: transform 0.3s ease;
}

.tp4r-hp-features--minimal .tp4r-hp-feature:hover .tp4r-hp-feature__icon {
	transform: scale(1.1);
}

.tp4r-hp-features--minimal .tp4r-hp-feature__title {
	font-size: 1.5em;
	margin-bottom: 10px;
	color: #2d3748;
}

.tp4r-hp-features--minimal .tp4r-hp-feature__text {
	color: #718096;
}

/* Design 3: Colorful with Icon Wrappers */
.tp4r-hp-features--colorful .tp4r-hp-features__title {
	color: #1a202c;
}

.tp4r-hp-features--colorful .tp4r-hp-feature {
	background: white;
	padding: 40px 30px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0,0,0,0.07);
	border-radius: 0;
}

.tp4r-hp-features--colorful .tp4r-hp-feature:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tp4r-hp-features--colorful .tp4r-hp-feature__icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5em;
	color: white;
	border-radius: 50%;
	transition: transform 0.3s ease;
}

.tp4r-hp-features--colorful .tp4r-hp-feature:hover .tp4r-hp-feature__icon {
	transform: rotate(360deg);
}

.tp4r-hp-features--colorful .tp4r-hp-feature:nth-child(1) .tp4r-hp-feature__icon {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tp4r-hp-features--colorful .tp4r-hp-feature:nth-child(2) .tp4r-hp-feature__icon {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tp4r-hp-features--colorful .tp4r-hp-feature:nth-child(3) .tp4r-hp-feature__icon {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tp4r-hp-features--colorful .tp4r-hp-feature:nth-child(4) .tp4r-hp-feature__icon {
	background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tp4r-hp-features--colorful .tp4r-hp-feature:nth-child(5) .tp4r-hp-feature__icon {
	background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.tp4r-hp-features--colorful .tp4r-hp-feature:nth-child(6) .tp4r-hp-feature__icon {
	background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.tp4r-hp-features--colorful .tp4r-hp-feature__title {
	font-size: 1.5em;
	margin-bottom: 10px;
	color: #2d3748;
}

.tp4r-hp-features--colorful .tp4r-hp-feature__text {
	color: #718096;
}

/* Design 4: Elegant with Shadows */
.tp4r-hp-features--elegant .tp4r-hp-features__title {
	color: #1a202c;
	font-weight: 700;
	margin-bottom: 60px;
}

.tp4r-hp-features--elegant .tp4r-hp-feature {
	background: white;
	padding: 50px 35px;
	position: relative;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	border-radius: 0;
}

.tp4r-hp-features--elegant .tp4r-hp-feature::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.tp4r-hp-features--elegant .tp4r-hp-feature:hover::before {
	transform: scaleX(1);
}

.tp4r-hp-features--elegant .tp4r-hp-feature:hover {
	box-shadow: 0 30px 60px rgba(0,0,0,0.15);
	transform: translateY(-15px);
}

.tp4r-hp-features--elegant .tp4r-hp-feature__icon {
	font-size: 3.5em;
	width: auto;
	height: auto;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 25px;
}

.tp4r-hp-features--elegant .tp4r-hp-feature__title {
	font-size: 1.6em;
	margin-bottom: 12px;
	color: #2d3748;
	font-weight: 600;
}

.tp4r-hp-features--elegant .tp4r-hp-feature__text {
	font-size: 1.1em;
	color: #718096;
	line-height: 1.6;
}

/* Design 5: Dark Background */
.tp4r-hp-features--dark {
	background: #1a202c;
	padding: 60px 40px;
	margin: 0;
}

.tp4r-hp-features--dark .tp4r-hp-features__title {
	color: white;
}

.tp4r-hp-features--dark .tp4r-hp-feature {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	padding: 40px 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
	border-radius: 0;
}

.tp4r-hp-features--dark .tp4r-hp-feature:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-8px);
}

.tp4r-hp-features--dark .tp4r-hp-feature__icon {
	font-size: 3em;
	width: auto;
	height: auto;
	color: #4299e1;
	margin-bottom: 20px;
	filter: drop-shadow(0 0 20px rgba(66, 153, 225, 0.5));
}

.tp4r-hp-features--dark .tp4r-hp-feature__title {
	font-size: 1.5em;
	margin-bottom: 10px;
	color: white;
}

.tp4r-hp-features--dark .tp4r-hp-feature__text {
	color: #cbd5e0;
}

/* ============================================
   Reviews Block - Elegant Design
   ============================================ */
.tp4r-hp-reviews {
	margin: 60px 0;
	padding: 0 20px;
}

.tp4r-hp-reviews__title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 50px;
	text-align: center;
	color: #1a1a2e;
}

.tp4r-hp-reviews__grid {
	display: grid;
	grid-template-columns: repeat(var(--tp4r-reviews-columns, 3), 1fr);
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.tp4r-hp-review {
	background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
	padding: 28px;
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(226, 183, 198, 0.12);
	position: relative;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.tp4r-hp-review::before {
	content: '"';
	position: absolute;
	top: 50px;
	left: 24px;
	font-size: 100px;
	font-family: Georgia, serif;
	color: rgba(226, 183, 198, 0.08);
	line-height: 1;
	font-weight: 700;
	z-index: 0;
}

.tp4r-hp-review:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 40px rgba(226, 183, 198, 0.2);
	border-color: rgba(226, 183, 198, 0.25);
}

/* Review Header - Avatar, Author, Rating */
.tp4r-hp-review__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	position: relative;
	z-index: 1;
}

.tp4r-hp-review__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tp4r-hp-review__author-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tp4r-hp-review__author {
	font-weight: 700;
	color: #1a1a2e;
	font-size: 15px;
	letter-spacing: 0.2px;
}

.tp4r-hp-review__author::before {
	display: none;
}

.tp4r-hp-review__verified {
	font-size: 11px;
	color: #10b981;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 3px;
}

.tp4r-hp-review__rating {
	margin-bottom: 0;
	position: relative;
	z-index: 1;
	margin-right: auto;
}

.tp4r-hp-review__rating .star-rating {
	overflow: hidden;
	position: relative;
	height: 1em;
	line-height: 1;
	font-size: 14px;
	width: 5.4em;
	font-family: star, WooCommerce, Arial, sans-serif;
	font-weight: 400;
}

.tp4r-hp-review__rating .star-rating::before {
	content: "\53\53\53\53\53";
	opacity: 0.25;
	float: right;
	top: 0;
	right: 0;
	position: absolute;
	color: #d1d5db;
}

.tp4r-hp-review__rating .star-rating span {
	overflow: hidden;
	float: right;
	top: 0;
	right: 0;
	position: absolute;
	padding-top: 1.5em;
	text-indent: -9999px;
}

.tp4r-hp-review__rating .star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	right: 0;
	color: #fbbf24;
	text-indent: 0;
	font-size: 14px;
}

/* Fallback for when WooCommerce star font is not loaded */
@supports not (font-family: star) {
	.tp4r-hp-review__rating .star-rating::before {
		content: "★★★★★";
	}

	.tp4r-hp-review__rating .star-rating span::before {
		content: "★★★★★";
	}
}

.tp4r-hp-review__content {
	font-size: 15px;
	line-height: 1.75;
	color: #4a5568;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
	flex: 1;
}

.tp4r-hp-review__content p {
	margin: 0;
}

/* Product Link with Image */
.tp4r-hp-review__product-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #f8f5f7 0%, #faf8f9 100%);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.25s ease;
	position: relative;
	z-index: 1;
	border: 1px solid rgba(226, 183, 198, 0.15);
}

.tp4r-hp-review__product-link:hover {
	background: linear-gradient(135deg, #f5f0f3 0%, #f8f5f7 100%);
	transform: translateX(-4px);
	border-color: rgba(226, 183, 198, 0.3);
}

.tp4r-hp-review__product-thumb {
	width: 50px;
	height: 50px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tp4r-hp-review__product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp4r-hp-review__product-name {
	font-size: 13px;
	color: var(--tp4r-primary, #c9889e);
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Footer with Date */
.tp4r-hp-review__footer {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(226, 183, 198, 0.15);
	position: relative;
	z-index: 1;
}

.tp4r-hp-review__date {
	font-size: 12px;
	color: #a0aec0;
	font-weight: 400;
}

/* Legacy styles for backward compatibility */
.tp4r-hp-review__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	padding-top: 16px;
	border-top: 1px solid rgba(226, 183, 198, 0.2);
	position: relative;
	z-index: 1;
}

.tp4r-hp-review__product {
	font-size: 13px;
	color: var(--tp4r-primary, #e2b7c6);
	text-decoration: none;
	font-weight: 600;
	position: relative;
	z-index: 1;
	display: inline-block;
	transition: all 0.2s ease;
}

.tp4r-hp-review__product:hover {
	color: var(--tp4r-accent, #d98c9f);
	transform: translateX(-3px);
}

/* Reviews Carousel */
.tp4r-hp-reviews--carousel {
	position: relative;
}

.tp4r-hp-reviews--carousel .tp4r-hp-reviews__grid {
	display: block;
}

.tp4r-hp-reviews--carousel .owl-nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
	margin-bottom: 30px;
}

.tp4r-hp-reviews--carousel .owl-nav button {
	background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
	border: 2px solid var(--tp4r-primary, #e2b7c6) !important;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(226, 183, 198, 0.2);
}

.tp4r-hp-reviews--carousel .owl-nav button:hover {
	background: linear-gradient(135deg, var(--tp4r-primary, #e2b7c6) 0%, var(--tp4r-accent, #d98c9f) 100%) !important;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(226, 183, 198, 0.4);
}

.tp4r-hp-reviews--carousel .owl-nav button:hover .dashicons {
	color: #ffffff;
}

.tp4r-hp-reviews--carousel .owl-nav .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: var(--tp4r-primary, #e2b7c6);
	transition: color 0.3s ease;
}

.tp4r-hp-reviews--carousel .owl-dots {
	margin-top: 30px;
	text-align: center;
}

.tp4r-hp-reviews--carousel .owl-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(226, 183, 198, 0.3);
	margin: 0 6px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.tp4r-hp-reviews--carousel .owl-dot:hover {
	background: rgba(226, 183, 198, 0.5);
	transform: scale(1.2);
}

.tp4r-hp-reviews--carousel .owl-dot.active {
	background: var(--tp4r-primary, #e2b7c6);
	width: 32px;
	border-radius: 6px;
	border-color: var(--tp4r-primary, #e2b7c6);
}

/* Hide dots when disabled */
.tp4r-hp-reviews--no-dots .owl-dots {
	display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.tp4r-hp-reviews__grid {
		grid-template-columns: repeat(var(--tp4r-reviews-columns-mobile, 2), 1fr);
		gap: 24px;
	}

	.tp4r-hp-reviews__title {
		font-size: 28px;
		margin-bottom: 40px;
	}

	.tp4r-hp-review {
		padding: 28px;
	}

	/* Categories - Tablet */
	.tp4r-hp-categories__container {
		grid-template-columns: repeat(var(--tp4r-cat-cols-tablet, 3), 1fr);
	}

	.tp4r-hp-categories--collage .tp4r-hp-categories__container {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.tp4r-hp-reviews {
		margin: 0 !important;
		padding: var(--tp4r-reviews-padding-mobile, 40px) 1rem !important;
	}

	.tp4r-hp-reviews__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.tp4r-hp-reviews__title {
		font-size: 24px;
		margin-bottom: 30px;
	}

	.tp4r-hp-review {
		padding: 20px;
	}

	.tp4r-hp-review::before {
		font-size: 60px;
		top: 40px;
		left: 16px;
	}

	.tp4r-hp-review__avatar {
		width: 42px;
		height: 42px;
		font-size: 18px;
	}

	.tp4r-hp-review__author {
		font-size: 14px;
	}

	.tp4r-hp-review__product-thumb {
		width: 44px;
		height: 44px;
	}

	.tp4r-hp-review__product-link {
		padding: 10px 12px;
		gap: 10px;
	}

	.tp4r-hp-reviews--carousel .owl-nav {
		position: static;
		justify-content: center;
		margin-bottom: 20px;
	}

	.tp4r-hp-reviews--carousel {
		padding-top: 0;
	}
}

/* ============================================
   Banner Block
   ============================================ */
.tp4r-hp-banner {
	position: relative;
	min-height: var(--tp4r-banner-height, 400px);
	background-image: var(--tp4r-banner-bg);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	margin: 0;
	overflow: hidden;
}

.tp4r-hp-banner__overlay {
	position: absolute;
	inset: 0;
	background: var(--tp4r-banner-overlay, rgba(0,0,0,0.4));
}

.tp4r-hp-banner__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 800px;
	padding: 40px;
	color: var(--tp4r-banner-text-color, #fff);
}

.tp4r-hp-banner--center .tp4r-hp-banner__content {
	margin: 0 auto;
	text-align: center;
}

.tp4r-hp-banner--right .tp4r-hp-banner__content {
	margin-right: auto;
	margin-left: 0;
	text-align: right;
}

.tp4r-hp-banner--left .tp4r-hp-banner__content {
	margin-left: auto;
	margin-right: 0;
	text-align: left;
}

.tp4r-hp-banner__title {
	font-size: 42px;
	font-weight: 800;
	margin: 0 0 16px;
	color: inherit;
}

.tp4r-hp-banner__subtitle {
	font-size: 18px;
	margin: 0 0 24px;
	opacity: 0.9;
}

.tp4r-hp-banner__button {
	display: inline-block;
	background: #fff;
	color: #111827;
	padding: 14px 32px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp4r-hp-banner__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
	.tp4r-hp-products--grid .tp4r-products {
		grid-template-columns: repeat(var(--tp4r-columns-mobile, 2), 1fr);
		gap: 12px;
	}

	.tp4r-hp-products__title,
	.tp4r-hp-categories__title,
	.tp4r-hp-features__title,
	.tp4r-hp-reviews__title {
		font-size: 22px;
	}

	.tp4r-hp-categories__container {
		grid-template-columns: repeat(var(--tp4r-cat-cols-mobile, 2), 1fr);
		gap: 12px;
	}

	.tp4r-hp-categories--collage .tp4r-hp-categories__container {
		grid-template-columns: repeat(2, 1fr);
	}

	.tp4r-hp-categories--collage .tp4r-hp-category--large {
		grid-column: span 2;
	}

	.tp4r-hp-categories--circles .tp4r-hp-category__image {
		width: 90%;
		max-width: 140px;
	}

	.tp4r-hp-category__name {
		font-size: 15px;
	}

	.tp4r-hp-categories--carousel .owl-nav .owl-prev { margin-left: -10px; }
	.tp4r-hp-categories--carousel .owl-nav .owl-next { margin-right: -10px; }

	.tp4r-hp-features__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.tp4r-hp-features--cards .tp4r-hp-feature {
		padding: 15px 10px;
	}

	.tp4r-hp-feature__icon {
		font-size: 24px;
	}

	/* Responsive for new designs */
	.tp4r-hp-features--modern .tp4r-hp-feature,
	.tp4r-hp-features--minimal .tp4r-hp-feature,
	.tp4r-hp-features--colorful .tp4r-hp-feature,
	.tp4r-hp-features--elegant .tp4r-hp-feature,
	.tp4r-hp-features--dark .tp4r-hp-feature {
		padding: 20px 15px;
	}

	.tp4r-hp-features--modern .tp4r-hp-feature__icon,
	.tp4r-hp-features--minimal .tp4r-hp-feature__icon,
	.tp4r-hp-features--elegant .tp4r-hp-feature__icon,
	.tp4r-hp-features--dark .tp4r-hp-feature__icon {
		font-size: 2em;
	}

	.tp4r-hp-features--colorful .tp4r-hp-feature__icon {
		width: 50px;
		height: 50px;
		font-size: 1.6em;
	}

	.tp4r-hp-features--modern .tp4r-hp-feature__title,
	.tp4r-hp-features--minimal .tp4r-hp-feature__title,
	.tp4r-hp-features--colorful .tp4r-hp-feature__title,
	.tp4r-hp-features--elegant .tp4r-hp-feature__title,
	.tp4r-hp-features--dark .tp4r-hp-feature__title {
		font-size: 1.1em;
	}

	.tp4r-hp-features--dark {
		padding: 30px 15px;
	}

	.tp4r-hp-reviews__grid {
		grid-template-columns: repeat(var(--tp4r-reviews-columns-mobile, 1), 1fr);
		gap: 16px;
	}

	.tp4r-hp-banner__title {
		font-size: 28px;
	}

	.tp4r-hp-banner__subtitle {
		font-size: 15px;
	}

	.tp4r-hp-banner__content {
		padding: 24px;
	}

	.tp4r-hp-posts-carousel__grid {
		grid-template-columns: repeat(var(--tp4r-posts-columns-mobile, 1), 1fr);
	}
}

/* ============================================
   Posts Carousel Block
   ============================================ */
.tp4r-hp-posts-carousel {
	margin: 40px 0;
	padding: 0 15px;
	position: relative;
}

.tp4r-hp-posts-carousel__title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 25px;
	text-align: center;
	color: #111827;
}

/* Grid Layout */
.tp4r-hp-posts-carousel--grid .tp4r-hp-posts-carousel__grid {
	display: grid;
	grid-template-columns: repeat(var(--tp4r-posts-columns, 3), 1fr);
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
}

/* Carousel Layout */
.tp4r-hp-posts-carousel--carousel {
	padding-top: 50px;
}

.tp4r-hp-posts-carousel--carousel .tp4r-hp-posts-carousel__grid {
	max-width: 1200px;
	margin: 0 auto;
}

.tp4r-hp-posts-carousel--carousel .owl-nav {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	gap: 8px;
}

.tp4r-hp-posts-carousel--carousel .owl-nav button {
	width: 40px;
	height: 40px;
	background: #f3f4f6 !important;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.tp4r-hp-posts-carousel--carousel .owl-nav button:hover {
	background: var(--tp4r-primary-color, #8b5cf6) !important;
	color: #fff;
}

.tp4r-hp-posts-carousel--carousel .owl-dots {
	text-align: center;
	margin-top: 20px;
}

.tp4r-hp-posts-carousel--carousel .owl-dot {
	width: 10px;
	height: 10px;
	background: #e5e7eb !important;
	border-radius: 50%;
	margin: 0 5px;
	transition: all 0.2s ease;
}

.tp4r-hp-posts-carousel--carousel .owl-dot.active {
	background: var(--tp4r-primary-color, #8b5cf6) !important;
	transform: scale(1.2);
}

/* Post Card */
.tp4r-hp-post-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.tp4r-hp-post-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

.tp4r-hp-post-card__image-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16/10;
}

.tp4r-hp-post-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tp4r-hp-post-card:hover .tp4r-hp-post-card__image {
	transform: scale(1.05);
}

.tp4r-hp-post-card__content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tp4r-hp-post-card__category {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--tp4r-primary-color, #8b5cf6);
	background: rgba(139, 92, 246, 0.1);
	padding: 4px 10px;
	border-radius: 20px;
	margin-bottom: 12px;
}

.tp4r-hp-post-card__title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 10px;
	line-height: 1.4;
	color: #111827;
}

.tp4r-hp-post-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tp4r-hp-post-card__title a:hover {
	color: var(--tp4r-primary-color, #8b5cf6);
}

.tp4r-hp-post-card__excerpt {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 15px;
}

.tp4r-hp-post-card__meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tp4r-hp-post-card__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
	padding: 6px 12px;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.tp4r-hp-post-card__date::before {
	content: '📅';
	font-size: 11px;
}
