/* Pure Village Hub — custom brand styles (child theme) */

:root {
	--pvh-primary: #2E7D32;
	--pvh-primary-dark: #1B5E20;
	--pvh-accent: #D4A017;
	--pvh-coconut: #F8F8F5;
	--pvh-cream: #FFF8F0;
	--pvh-charcoal: #2B2B2B;
}

/* Multilingual typography: Work Sans/Sen have no Devanagari or Odia glyphs,
   so without this the browser falls back to an inconsistent system font
   for hi/or, causing different line-height/spacing than English. */
:lang(hi) {
	font-family: "Noto Sans Devanagari", "Work Sans", sans-serif;
}

:lang(or) {
	font-family: "Noto Sans Oriya", "Work Sans", sans-serif;
}

/* Headings keep the brand's heading font where it has glyph support,
   fall back to the script-appropriate font otherwise */
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) h4, :lang(hi) h5, :lang(hi) h6 {
	font-family: "Noto Sans Devanagari", "Sen", sans-serif;
}

:lang(or) h1, :lang(or) h2, :lang(or) h3, :lang(or) h4, :lang(or) h5, :lang(or) h6 {
	font-family: "Noto Sans Oriya", "Sen", sans-serif;
}

/* Navigation: Hindi/Odia labels run longer than English — tighten spacing
   so the menu keeps fitting on one line instead of wrapping and changing
   the header's min-height. Wrapping is still allowed as a graceful
   fallback on narrow viewports, never clipped. */
:lang(hi) [data-id="menu"] > ul > li > a,
:lang(or) [data-id="menu"] > ul > li > a {
	padding-left: 10px !important;
	padding-right: 10px !important;
	font-size: 11px !important;
	letter-spacing: 0 !important;
}

:lang(hi) .pvh-lang-switcher__trigger,
:lang(or) .pvh-lang-switcher__trigger {
	padding: 5px 10px;
	font-size: 0.8rem;
}

.pvh-hero {
	background: linear-gradient(135deg, var(--pvh-primary) 0%, var(--pvh-primary-dark) 55%, var(--pvh-accent) 130%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pvh-hero-inner {
	max-width: 900px;
	margin: 0 auto;
	width: 100%;
}

.pvh-hero-inner .wp-block-heading {
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin-bottom: 1.25rem;
}

.pvh-hero-inner > .wp-block-paragraph,
.pvh-hero-inner p.has-palette-color-5-color {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem;
}

.pvh-hero-cta {
	font-size: 1.15rem;
	padding: 18px 40px !important;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pvh-hero-cta:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(0,0,0,0.3);
}

.pvh-hero-trust {
	margin-top: 3rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem;
}

.pvh-hero-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 1 auto;
}

.pvh-hero-trust-item span {
	color: var(--pvh-coconut);
	font-size: 0.95rem;
	font-weight: 500;
	white-space: nowrap;
}

@media (max-width: 689px) {
	.pvh-hero-trust {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
}

@media (max-width: 689px) {
	.pvh-hero {
		min-height: 90vh;
	}
}

.pvh-icon-tile {
	width: 88px;
	height: 88px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--pvh-coconut);
	display: flex;
	align-items: center;
	justify-content: center;
}

.pvh-icon-tile--sm {
	width: 68px;
	height: 68px;
}

.pvh-category-card {
	background: #ffffff;
	border-radius: 10px;
	padding: 32px 20px;
	box-shadow: 0 8px 20px rgba(43, 43, 43, 0.06);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--pvh-primary);
	color: var(--pvh-primary);
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--pvh-primary);
	color: #ffffff;
}

/* Site-wide button consistency: rounded, shadow, hover-lift */
.wp-block-button__link,
.wc-block-components-button,
.single_add_to_cart_button,
button.button,
a.button {
	border-radius: 8px !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.wp-block-button__link:not(.is-style-outline .wp-block-button__link):hover,
.wc-block-components-button:hover,
.single_add_to_cart_button:hover,
button.button:hover,
a.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(43, 43, 43, 0.18);
}

.pvh-women-band {
	background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 18px);
}

.pvh-timeline {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin: 2.5rem 0;
	position: relative;
}

.pvh-timeline-item {
	flex: 1 1 200px;
	max-width: 260px;
	text-align: center;
	padding: 0 20px;
	position: relative;
}

.pvh-timeline-node-wrap {
	position: relative;
}

.pvh-timeline-node-wrap::after {
	content: "";
	position: absolute;
	top: 24px;
	left: calc(50% + 24px);
	right: calc(-50% + 24px);
	height: 3px;
	background: var(--pvh-accent);
}

.pvh-timeline-item:last-child .pvh-timeline-node-wrap::after {
	display: none;
}

.pvh-timeline-node {
	width: 48px;
	height: 48px;
	line-height: 48px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--pvh-primary);
	color: #ffffff;
	font-weight: 700;
	font-size: 1.1rem;
	position: relative;
	z-index: 1;
}

.pvh-timeline-item h4 {
	margin: 0 0 0.5rem;
	font-weight: 700;
}

.pvh-timeline-item p {
	font-size: 0.95rem;
	margin: 0;
}

@media (max-width: 689px) {
	.pvh-timeline {
		flex-direction: column;
		align-items: center;
	}
	.pvh-timeline-item::after {
		display: none;
	}
}

.pvh-trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0;
}

.pvh-trust-badges span {
	background: var(--pvh-coconut);
	border: 1px solid var(--pvh-primary);
	color: var(--pvh-primary);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.pvh-sticky-cart {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #ffffff;
	border-top: 1px solid rgba(43,43,43,0.1);
	box-shadow: 0 -6px 18px rgba(43,43,43,0.08);
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	z-index: 999;
	transform: translateY(100%);
	transition: transform 0.25s ease;
}

.pvh-sticky-cart.is-visible {
	transform: translateY(0);
}

.pvh-sticky-cart__info {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	color: var(--pvh-charcoal);
}

.pvh-sticky-cart__price {
	color: var(--pvh-primary);
}

.pvh-sticky-cart__button {
	background: var(--pvh-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.pvh-category-photo {
	width: 100%;
	aspect-ratio: 4/3;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 1.25rem;
}

.pvh-category-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pvh-recipe-photo {
	width: 100%;
	aspect-ratio: 3/2;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.pvh-recipe-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pvh-timeline-photo {
	width: 100%;
	max-width: 160px;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 1rem;
	display: block;
	border: 3px solid var(--pvh-accent);
}

.pvh-process-photo {
	width: 100%;
	max-width: 200px;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 1rem;
	display: block;
	border: 3px solid var(--pvh-accent);
}

.pvh-about-banner {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
	margin-bottom: 2rem;
}

/* Product card redesign */
ul.products li.product {
	background: #ffffff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(43, 43, 43, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	padding-bottom: 16px !important;
}

ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 36px rgba(43, 43, 43, 0.14);
}

ul.products li.product figure {
	margin: 0;
	overflow: hidden;
	border-radius: 14px 14px 0 0;
}

ul.products li.product figure img {
	transition: transform 0.4s ease;
}

ul.products li.product:hover figure img {
	transform: scale(1.06);
}

ul.products li.product .woocommerce-loop-product__title {
	padding: 0 18px;
	margin-top: 14px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--pvh-charcoal);
}

ul.products li.product .price {
	padding: 0 18px;
	display: block;
	color: var(--pvh-primary);
	font-weight: 700;
}

ul.products li.product .pvh-card-excerpt {
	padding: 0 18px;
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: rgba(43,43,43,0.7);
	line-height: 1.4;
}

ul.products li.product .entry-meta {
	padding: 0 18px;
	margin-top: 8px;
}

ul.products li.product .entry-meta .meta-categories a {
	display: inline-block;
	background: var(--pvh-coconut);
	border: 1px solid var(--pvh-primary);
	color: var(--pvh-primary);
	border-radius: 20px;
	padding: 3px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
}

ul.products li.product .ct-woo-card-actions {
	padding: 0 18px;
	margin-top: 12px;
}

ul.products li.product .onsale {
	background: var(--pvh-accent) !important;
	color: var(--pvh-charcoal) !important;
	font-weight: 700;
}

/* Smooth scroll + subtle entrance animation */
html {
	scroll-behavior: smooth;
}

.pvh-fade-in {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.pvh-fade-in.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.pvh-fade-in {
		opacity: 1;
		transform: none;
		transition: none;
	}
	html {
		scroll-behavior: auto;
	}
}

.pvh-category-photo,
.pvh-recipe-photo {
	transition: transform 0.3s ease;
}

.pvh-category-card:hover .pvh-category-photo img,
.pvh-category-card:hover .pvh-recipe-photo img {
	transform: scale(1.05);
}

/* Language switcher */
.pvh-lang-switcher-wrap {
	position: relative;
	list-style: none;
}

.pvh-lang-switcher {
	position: relative;
}

.pvh-lang-switcher__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--pvh-coconut);
	border: 1px solid var(--pvh-primary);
	color: var(--pvh-primary);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.pvh-lang-switcher__trigger:hover {
	background: var(--pvh-primary);
	color: #ffffff;
}

.pvh-lang-switcher__trigger svg {
	transition: transform 0.2s ease;
}

.pvh-lang-switcher.is-open .pvh-lang-switcher__trigger svg {
	transform: rotate(180deg);
}

.pvh-lang-switcher__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(43, 43, 43, 0.15);
	padding: 6px;
	margin: 0;
	list-style: none;
	min-width: 140px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 200;
}

.pvh-lang-switcher.is-open .pvh-lang-switcher__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pvh-lang-switcher__item {
	display: block;
	padding: 8px 14px;
	border-radius: 8px;
	color: var(--pvh-charcoal);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
}

.pvh-lang-switcher__item:hover {
	background: var(--pvh-coconut);
	color: var(--pvh-primary);
}

.pvh-lang-switcher__item.is-active {
	color: var(--pvh-primary);
	font-weight: 700;
}

@media (max-width: 999px) {
	.pvh-lang-switcher__menu {
		right: auto;
		left: 0;
	}
}

/* ==========================================================
   WhatsApp floating widget
   ========================================================== */

.pvh-whatsapp-fab {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: pvh-whatsapp-pulse 2.8s ease-in-out infinite;
}

.pvh-whatsapp-fab:hover {
	transform: scale(1.08);
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

@keyframes pvh-whatsapp-pulse {
	0%, 100% {
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.55);
	}
	50% {
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 0 12px rgba(37, 211, 102, 0);
	}
}

@media (max-width: 689px) {
	.pvh-whatsapp-fab {
		width: 58px;
		height: 58px;
		bottom: 18px;
		right: 18px;
	}
}

.pvh-whatsapp-popup {
	position: fixed;
	bottom: 100px;
	right: 24px;
	width: 340px;
	max-width: calc(100vw - 32px);
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
	z-index: 9999;
	overflow: hidden;
	opacity: 0;
	transform: translateY(16px) scale(0.97);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.pvh-whatsapp-popup.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

@media (max-width: 689px) {
	.pvh-whatsapp-popup {
		bottom: 88px;
		right: 16px;
	}
}

.pvh-whatsapp-popup__header {
	background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.pvh-whatsapp-popup__header-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.pvh-whatsapp-popup__header-text strong {
	color: #fff;
	font-size: 1rem;
	letter-spacing: 0.02em;
}

.pvh-whatsapp-popup__header-text span {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.78rem;
}

.pvh-whatsapp-popup__close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.pvh-whatsapp-popup__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.pvh-whatsapp-popup__body {
	padding: 18px 20px 20px;
	background: var(--pvh-cream);
}

.pvh-whatsapp-popup__welcome {
	font-weight: 700;
	color: var(--pvh-charcoal);
	margin-bottom: 8px;
	font-size: 0.98rem;
}

.pvh-whatsapp-popup__body p {
	font-size: 0.88rem;
	color: var(--pvh-charcoal);
	line-height: 1.5;
	margin-bottom: 10px;
}

.pvh-whatsapp-popup__list {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
}

.pvh-whatsapp-popup__list li {
	font-size: 0.85rem;
	color: var(--pvh-charcoal);
	padding: 4px 0 4px 20px;
	position: relative;
}

.pvh-whatsapp-popup__list li::before {
	content: "\2022";
	position: absolute;
	left: 4px;
	color: var(--pvh-primary);
	font-weight: 700;
}

.pvh-whatsapp-popup__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #25D366;
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 12px 16px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pvh-whatsapp-popup__button:hover {
	background: #1DA851;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

:lang(hi) .pvh-whatsapp-popup__button,
:lang(or) .pvh-whatsapp-popup__button {
	font-size: 0.85rem;
}

/* ==========================================================
   Category browsing side drawer
   ========================================================== */

.pvh-category-trigger {
	background: transparent;
	border: none;
	color: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	padding: 8px 10px;
}

.pvh-category-trigger:hover {
	opacity: 0.75;
}

.pvh-category-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(43, 43, 43, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 10000;
}

.pvh-category-drawer-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.pvh-category-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 300px;
	max-width: 85vw;
	background: #ffffff;
	box-shadow: 4px 0 32px rgba(0, 0, 0, 0.18);
	z-index: 10001;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
}

.pvh-category-drawer.is-open {
	transform: translateX(0);
}

.pvh-category-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	background: var(--pvh-primary);
	color: #fff;
}

.pvh-category-drawer__header strong {
	font-size: 1.05rem;
	letter-spacing: 0.01em;
}

.pvh-category-drawer__close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.pvh-category-drawer__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.pvh-category-drawer__list {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
}

.pvh-category-drawer__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	color: var(--pvh-charcoal);
	text-decoration: none;
	border-bottom: 1px solid rgba(43, 43, 43, 0.08);
	transition: background 0.2s ease, padding-left 0.2s ease;
}

.pvh-category-drawer__item:hover {
	background: var(--pvh-cream);
	padding-left: 26px;
	color: var(--pvh-primary-dark);
}

.pvh-category-drawer__item svg {
	flex-shrink: 0;
	color: var(--pvh-accent);
}

.pvh-category-drawer__item--all {
	font-weight: 700;
	color: var(--pvh-primary-dark);
	background: var(--pvh-cream);
}

:lang(hi) .pvh-category-drawer__item span,
:lang(or) .pvh-category-drawer__item span {
	font-size: 0.92rem;
}

/* ==========================================================
   Google login button (Nextend Social Login)
   ========================================================== */

div#nsl-custom-login-form-1,
div[id^="nsl-custom-login-form-"] {
	margin-top: 18px;
	position: relative;
}

/* "or" divider above the button, drawn purely with CSS so no extra
   markup is needed (Nextend controls its own container's contents). */
div[id^="nsl-custom-login-form-"]::before {
	content: "";
	display: block;
	height: 1px;
	background: rgba(43, 43, 43, 0.12);
	margin: 4px 0 22px;
}

div.nsl-container.nsl-container-block {
	width: 100%;
}

div.nsl-container .nsl-container-buttons {
	width: 100% !important;
}

div.nsl-container .nsl-container-buttons a[data-plugin="nsl"] {
	width: 100% !important;
	display: flex !important;
}

div.nsl-container .nsl-button {
	width: 100%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #ffffff !important;
	border: 1.5px solid rgba(43, 43, 43, 0.16) !important;
	border-radius: 10px !important;
	padding: 11px 18px !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

div.nsl-container .nsl-button:hover {
	border-color: var(--pvh-primary) !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

div.nsl-container .nsl-button-svg-container {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

div.nsl-container .nsl-button-svg-container svg {
	width: 20px;
	height: 20px;
}

div.nsl-container .nsl-button-label-container {
	color: var(--pvh-charcoal) !important;
	font-size: 0.92rem;
	font-weight: 600;
	font-family: inherit !important;
	white-space: nowrap;
}

div.nsl-container .nsl-button-label-container b {
	font-weight: 700;
}

:lang(hi) div.nsl-container .nsl-button-label-container,
:lang(or) div.nsl-container .nsl-button-label-container {
	font-size: 0.85rem;
	white-space: normal;
	text-align: center;
}
