/* ============================================================
   VITHAAI HOMEPAGE â€” matched to design reference
   ============================================================ */

.homepage .site-main {
	background-color: #ffffff;
}

.homepage .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.home-section {
	padding: 56px 0;
}

.home-section-tight {
	padding: 32px 0;
}

.home-heading {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--color-primary);
	margin: 0;
}

.home-heading-center {
	text-align: center;
}

.home-subheading {
	color: var(--color-text-light);
	font-size: 1rem;
	margin: 6px 0 0;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
	gap: 16px;
	flex-wrap: wrap;
}

.pill-link {
	display: inline-block;
	background-color: #e8f4e1;
	color: var(--color-primary);
	padding: 8px 18px;
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.25s, color 0.25s;
}

.pill-link:hover {
	background-color: var(--color-primary);
	color: #fff;
}

/* ============================================================
   1. HERO BANNER â€” contained card, text left / image right
   ============================================================ */
.hero {
	padding: 28px 0 8px;
}

.hero-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background-color: #e8f4e1;
	border-radius: 18px;
	overflow: hidden;
	min-height: 380px;
}

.hero-panel {
	padding: 56px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-eyebrow {
	display: inline-block;
	width: fit-content;
	color: var(--color-primary);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.hero-title {
	font-size: 2.6rem;
	line-height: 1.18;
	font-weight: 700;
	color: var(--color-primary);
	margin: 0 0 16px;
}

.hero-subtitle {
	font-size: 1rem;
	line-height: 1.6;
	color: #5a6b50;
	margin: 0 0 28px;
	max-width: 90%;
}

.hero-buttons {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.hero-media {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 380px;
}

.hero-media-placeholder {
	width: 100%;
	height: 100%;
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #cfe6bf 0%, #a9cf94 100%);
	color: #2d7d4e;
}

/* ============================================================
   2. TRUST BADGES â€” horizontal bordered pills
   ============================================================ */
.trust-badges {
	padding: 18px 0 36px;
}

.trust-badges-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background-color: #fafafa;
}

.trust-item-icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: #e8f4e1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
}

.trust-item-text h3 {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 2px;
	color: #2b2b2b;
}

.trust-item-text p {
	font-size: 0.8rem;
	color: var(--color-text-light);
	margin: 0;
	line-height: 1.4;
}

/* ============================================================
   3. SHOP BY CATEGORY â€” circular pastel icons
   ============================================================ */
.category-section {
	background-color: #f6f7f4;
}

.category-row {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	margin-top: 28px;
}

.category-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.category-circle {
	width: 86px;
	height: 86px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: transform 0.25s, box-shadow 0.25s;
}

.category-item:hover .category-circle {
	transform: translateY(-4px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.category-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ACF icon — centered inside the circle with padding (not edge-to-edge) */
.category-circle img.category-icon-img {
	width: 52%;
	height: 52%;
	object-fit: contain;
}

/* rotating pastel backgrounds for placeholder circles */
.category-item:nth-child(6n+1) .category-circle { background-color: #e3f1d6; }
.category-item:nth-child(6n+2) .category-circle { background-color: #fde8d8; }
.category-item:nth-child(6n+3) .category-circle { background-color: #d8ecf6; }
.category-item:nth-child(6n+4) .category-circle { background-color: #fbe0e0; }
.category-item:nth-child(6n+5) .category-circle { background-color: #eee6f7; }
.category-item:nth-child(6n+6) .category-circle { background-color: #fcf3d4; }

.category-circle svg { color: var(--color-primary); opacity: 0.75; }

.category-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #2b2b2b;
}

/* ============================================================
   5. DISCOUNT BANNER
   ============================================================ */
.discount {
	padding: 16px 0 40px;
}

.discount-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	background-color: #d8ecc8;
	border-radius: 18px;
	overflow: hidden;
	gap: 40px;
	padding: 44px 48px;
}

.discount-code {
	display: inline-block;
	width: fit-content;
	background: #fff;
	color: var(--color-primary);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 20px;
	margin-bottom: 16px;
}

.discount-card h2 {
	font-size: 2rem;
	color: var(--color-primary);
	margin: 0 0 12px;
}

.discount-card p {
	color: #4f6043;
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 22px;
	max-width: 90%;
}

.discount-media {
	justify-self: stretch;
	align-self: stretch;
	width: 100%;
}

.discount-media img {
	width: 100%;
	height: 100%;
	min-height: 240px;
	max-height: 340px;
	object-fit: cover;
	border-radius: 16px;
}

.discount-media-placeholder {
	width: 100%;
	min-height: 240px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
}

/* ============================================================
   6. TESTIMONIALS
   ============================================================ */
.testimonials {
	background-color: #f6f7f4;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin-top: 40px;
}

.tcard {
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tcard-quote-icon {
	color: #d7e6cb;
}

.tcard-text {
	font-size: 0.88rem;
	line-height: 1.65;
	color: #555;
	font-style: italic;
	margin: 0;
	flex: 1;
}

.tcard-foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	border-top: 1px solid #f0f0f0;
	padding-top: 14px;
}

.tcard-author strong {
	display: block;
	font-size: 0.9rem;
	color: #2b2b2b;
}

.tcard-author span {
	font-size: 0.75rem;
	color: #a0a0a0;
}

.tcard-rating {
	display: flex;
	gap: 2px;
	font-size: 0.85rem;
	white-space: nowrap;
}

.tcard-rating .star { color: #ddd; }
.tcard-rating .star.filled { color: #ff9500; }

/* ============================================================
   7. GALLERY â€” bento mosaic
   ============================================================ */
.gallery-bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 180px;
	gap: 16px;
	margin-top: 32px;
}

.gallery-tile {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #f0f0f0;
}

.gallery-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.gallery-tile:hover img { transform: scale(1.08); }

/* mosaic spans â€” first tile large, others arranged around */
.gallery-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-tile:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.gallery-tile:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.gallery-tile:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.gallery-tile:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.gallery-tile:nth-child(6) { grid-column: span 1; grid-row: span 1; }
.gallery-tile:nth-child(7) { grid-column: span 2; grid-row: span 1; }

.gallery-overlay {
	position: absolute;
	inset: 0;
	background: rgba(45, 80, 22, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s;
}

.gallery-tile:hover .gallery-overlay { opacity: 1; }

.gallery-tile { cursor: pointer; }

/* ── Lightbox overlay ── */
.vlightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 24, 10, 0.92);
	padding: 40px;
}

.vlightbox.is-open {
	display: flex;
}

.vlb-stage {
	margin: 0;
	max-width: 90vw;
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.vlb-img {
	max-width: 90vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.vlb-caption {
	color: #e8efe2;
	font-size: 0.9rem;
	text-align: center;
	max-width: 700px;
}

.vlb-close,
.vlb-nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s, transform 0.15s;
	line-height: 1;
}

.vlb-close {
	top: 24px;
	right: 28px;
	width: 46px;
	height: 46px;
	font-size: 1.8rem;
}

.vlb-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 54px;
	height: 54px;
	font-size: 2.2rem;
}

.vlb-prev { left: 24px; }
.vlb-next { right: 24px; }

.vlb-close:hover,
.vlb-nav:hover {
	background: var(--color-primary);
}

.vlb-nav:hover { transform: translateY(-50%) scale(1.06); }

.vlb-counter {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	color: #cdd8c4;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.5px;
}

@media (max-width: 600px) {
	.vlightbox { padding: 16px; }
	.vlb-close { top: 12px; right: 14px; width: 40px; height: 40px; }
	.vlb-nav { width: 44px; height: 44px; font-size: 1.8rem; }
	.vlb-prev { left: 8px; }
	.vlb-next { right: 8px; }
}

.gallery-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e3f1d6, #cfe6bf);
	color: #2d7d4e;
	opacity: 0.7;
}

/* ============================================================
   8. BLOG
   ============================================================ */
.blog-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.bcard {
	border: 1px solid #eee;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.25s, transform 0.25s;
}

.bcard:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.bcard-media {
	position: relative;
	aspect-ratio: 16 / 10;
	background-color: #eef3e9;
	overflow: hidden;
}

.bcard-media img { width: 100%; height: 100%; object-fit: cover; }

.bcard-media-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
	opacity: 0.5;
}

.bcard-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--color-primary);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
}

.bcard-body { padding: 18px; }

.bcard-meta {
	display: flex;
	gap: 16px;
	font-size: 0.74rem;
	color: #a0a0a0;
	margin-bottom: 10px;
}

.bcard-meta span { display: flex; align-items: center; gap: 5px; }

.bcard-title {
	font-size: 1.05rem;
	margin: 0 0 8px;
	line-height: 1.35;
}

.bcard-title a { color: #2b2b2b; }
.bcard-title a:hover { color: var(--color-primary); }

.bcard-excerpt {
	font-size: 0.85rem;
	color: var(--color-text-light);
	line-height: 1.6;
	margin: 0 0 14px;
}

.bcard-more {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--color-primary);
}

.bcard-more:hover { color: var(--color-secondary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
	.hero-card { grid-template-columns: 1fr; }
	.hero-media, .hero-media-placeholder { min-height: 260px; order: -1; }
	.hero-panel { padding: 40px 32px; }
	.hero-title { font-size: 2rem; }

	.trust-badges-row { grid-template-columns: repeat(2, 1fr); }
	.category-row { grid-template-columns: repeat(3, 1fr); }
	.products-row { grid-template-columns: repeat(2, 1fr); }
	.testimonials-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-row { grid-template-columns: repeat(2, 1fr); }

	.discount-card { grid-template-columns: 1fr; text-align: center; }
	.discount-code { margin-left: auto; margin-right: auto; }
	.discount-card p { margin-left: auto; margin-right: auto; }
	.discount-media { justify-self: stretch; order: -1; }

	.gallery-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
	.gallery-tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
	.gallery-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 600px) {
	.home-section { padding: 40px 0; }
	.hero-title { font-size: 1.7rem; }
	.hero-buttons { flex-direction: column; }
	.hero-buttons .btn { width: 100%; text-align: center; }

	.trust-badges-row { grid-template-columns: 1fr; }
	.category-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.category-circle { width: 70px; height: 70px; }
	.products-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.testimonials-grid { grid-template-columns: 1fr; }
	.blog-row { grid-template-columns: 1fr; }

	.discount-card { padding: 32px 24px; }
	.discount-card h2 { font-size: 1.5rem; }
	.discount-media img,
	.discount-media-placeholder { width: 100%; min-height: 200px; max-height: 260px; }

	.gallery-bento { grid-auto-rows: 130px; }
}

/* ============================================================
   BEST SELLERS CAROUSEL
   (scoped under .products-carousel — the shared .products-row
   grid used on shop/related/wishlist/search is untouched)
   ============================================================ */
.products-carousel {
	position: relative;
}

/* Turn this one row into a horizontal scroller */
.products-carousel .products-row {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
	padding: 4px 2px 8px; /* room so card hover shadow isn't clipped */
}

.products-carousel .products-row::-webkit-scrollbar {
	display: none; /* WebKit */
}

.products-carousel .products-row > .pcard {
	flex: 0 0 calc((100% - 66px) / 4); /* 4 cards visible (3 gaps × 22px) */
	scroll-snap-align: start;
}

/* Prev / next arrows */
.pcarousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: var(--color-primary);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.pcarousel-nav:hover {
	background: var(--color-primary);
	color: #fff;
}

.pcarousel-prev {
	left: -12px;
}

.pcarousel-next {
	right: -12px;
}

.pcarousel-nav[disabled] {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 992px) {
	.products-carousel .products-row > .pcard {
		flex-basis: calc((100% - 22px) / 2); /* 2 visible */
	}
}

@media (max-width: 600px) {
	.products-carousel .products-row {
		gap: 14px;
	}
	.products-carousel .products-row > .pcard {
		flex-basis: 78%; /* ~1 card + a peek of the next */
	}
	.pcarousel-prev {
		left: 2px;
	}
	.pcarousel-next {
		right: 2px;
	}
}
