/**
 * VDuma search — navbar live dropdown + full results page.
 *
 * Search open:
 * - Backdrop dims page content (Duma-style).
 * - html/body overflow hidden (page cannot scroll).
 * - Scroll only inside .vduma-search-overlay when results overflow.
 *
 * CRITICAL (home page):
 * - Header is position:fixed on homepage.
 * - Empty: thin bar in-flow under main-row.
 * - After results: panel position:fixed below main-row only.
 */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap");

body.header-vduma .header-action-container {
	position: relative;
	z-index: 30;
	flex-shrink: 0;
}

body.header-vduma .header-menus-container {
	position: relative;
	z-index: 10;
}

body.header-vduma .vduma-search-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	position: relative;
	z-index: 31;
	pointer-events: auto;
}

body.header-vduma .vduma-mega-dropdown:not(.vduma-visible) {
	display: none !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

body.header-vduma .vduma-header-inner {
	position: relative;
}

body.header-vduma .vduma-search-panel {
	display: none;
	width: 100%;
	padding: 0;
	background: #fff;
	--vduma-search-gutter: 48px;
}

/* Gambar 1 — kosong: bar tipis di bawah logo/menu */
body.header-vduma .vduma-search-panel.is-open {
	display: block;
	position: relative;
	z-index: 1045;
	height: auto;
	overflow: visible;
	background: #fff;
	border-top: 1px solid #ececec;
	box-sizing: border-box;
}

body.header-vduma .vduma-search-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1040;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
	pointer-events: none;
}

body.header-vduma .vduma-search-backdrop.is-visible {
	display: block;
	pointer-events: auto;
}

/* Announcement ikut redup; header + search di atas backdrop */
body.header-vduma.vduma-search-is-open .vduma-announcement-bar {
	position: relative;
	z-index: 1030;
}

html.vduma-search-is-open,
body.header-vduma.vduma-search-is-open {
	overflow: hidden !important;
	height: 100%;
}

/*
 * Gambar 2 — after search:
 * Fixed di bawah main-row (bukan memperbesar header fixed di homepage).
 */
body.header-vduma .vduma-search-panel.is-open.has-results {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--vduma-search-top, 72px);
	z-index: 1045;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: min(70vh, calc(100vh - var(--vduma-search-top, 72px)));
	overflow: hidden;
	background: #fff;
	border-top: 1px solid #ececec;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

body.header-vduma .vduma-search-panel.is-open .search-form-container {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible;
}

body.header-vduma .vduma-search-panel.is-open.has-results .search-form-container {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

body.header-vduma .vduma-search-panel.is-open .vduma-search-form {
	display: block;
	width: 100%;
	overflow: visible;
}

body.header-vduma .vduma-search-panel.is-open.has-results .vduma-search-form {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

body.header-vduma .vduma-search-panel-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	padding: 12px var(--vduma-search-gutter);
	background: #fff;
	border-bottom: none;
	box-sizing: border-box;
}

body.header-vduma .vduma-search-panel.is-open.has-results .vduma-search-panel-inner {
	border-bottom: 1px solid #ececec;
}

body.header-vduma .vduma-search-panel-icon {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

body.header-vduma .vduma-search-panel input.search-text {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	padding: 4px 0 !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: 14px !important;
	line-height: 20px !important;
	color: #1f1f1f !important;
}

body.header-vduma .vduma-search-panel input.search-text::placeholder {
	color: #9d9d9d;
}

body.header-vduma .vduma-search-close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	margin-left: auto;
}

body.header-vduma .vduma-search-panel .vduma-search-loader {
	position: absolute;
	right: calc(var(--vduma-search-gutter) + 44px);
	top: 14px;
	z-index: 2;
}

body.header-vduma .vduma-search-overlay {
	display: none;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	background: #fff;
	flex: 1 1 auto;
	min-height: 0;
}

body.header-vduma .vduma-search-panel.is-open.has-results .vduma-search-overlay {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
}

body.header-vduma .vduma-search-results {
	display: none;
	flex: 0 0 auto;
	padding: 16px var(--vduma-search-gutter) 24px;
	box-sizing: border-box;
}

body.header-vduma .vduma-search-panel.is-open.has-results .vduma-search-results:not(.d-none) {
	display: block;
}

body.header-vduma .vduma-search-results-body {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 355px !important;
    gap: 80px;

	align-items: start;
	width: 100%;
}

body.header-vduma .vduma-search-products-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

body.header-vduma .vduma-search-panel ul.vduma-search-products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 20px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.header-vduma .vduma-search-status-bar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 0 14px;
	background: transparent;
	flex: 0 0 auto;
	width: 100%;
}

body.header-vduma .vduma-search-panel.is-open.has-results .vduma-search-status-bar.is-visible {
	display: flex;
}

body.header-vduma .vduma-search-status-text {
	font-size: 12px;
	line-height: 1.4;
	color: #9d9d9d;
	margin: 0;
}

body.header-vduma .vduma-search-view-all {
	flex: 0 0 auto;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 13px;
	font-weight: 600;
	color: #1f1f1f;
	text-decoration: none;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

body.header-vduma .vduma-search-view-all:hover {
	color: #1f1f1f;
	text-decoration: underline;
}

body.header-vduma .vduma-search-view-all.is-hidden {
	display: none;
}

body.header-vduma .vduma-search-panel ul.vduma-search-products::before,
body.header-vduma .vduma-search-panel ul.vduma-search-products::after {
	display: none !important;
	content: none !important;
}

body.header-vduma .vduma-search-panel ul.vduma-search-products > li.product {
	width: auto !important;
	max-width: 100% !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-link {
	display: block;
	width: 100%;
	text-decoration: none;
	color: inherit;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: visible;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-imgwrap {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	max-height: min(460px, calc(70vh - 190px));
	height: auto;
	padding-bottom: 0;
	overflow: hidden;
	background: #f5f5f5;
	border-radius: 0 !important;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: opacity 0.55s ease;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-img--primary {
	opacity: 1;
	z-index: 1;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-img--hover {
	opacity: 0;
	z-index: 2;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-link:hover .rwot-vduma-search-card-img--hover {
	opacity: 1;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-link:hover .rwot-vduma-search-card-img--primary {
	opacity: 0;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-meta {
	display: block;
	padding: 12px 4px 0;
	text-align: center;
	background: transparent !important;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-title {
	display: block;
	margin: 0 0 6px;
	color: #111 !important;
	font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: 0.06em;
	line-height: 1.35;
	text-transform: uppercase;
	transition: opacity 0.25s ease;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-link:hover .rwot-vduma-search-card-title {
	opacity: 0.65;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price,
body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price *,
body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price .amount,
body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price .woocommerce-Price-amount,
body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price .woocommerce-Price-currencySymbol,
body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price bdi {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #999 !important;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-decoration: none !important;
	background: transparent !important;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price {
	display: block !important;
}

body.header-vduma .vduma-search-panel .rwot-vduma-search-stock-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	padding: 4px 8px;
	background: rgba(255, 255, 255, 0.92);
	font-size: 11px;
	line-height: 1.2;
	color: #666;
	letter-spacing: 0.02em;
}

body.header-vduma .vduma-search-journal {
	align-self: start;
	border-left: 1px solid #ececec;
	padding-left: 28px;
	padding-top: 32px;
	min-height: 0;
	width: 200px;
	max-width: 200px;
	box-sizing: border-box;
	overflow-wrap: anywhere;
}

body.header-vduma .vduma-search-journal-label {
	font-size: 12px;
	line-height: 1.4;
	color: #9d9d9d;
	margin: 0 0 14px;
	padding: 0;
	min-height: 18px;
}

body.header-vduma .vduma-search-journal-empty {
	font-size: 13px;
	line-height: 1.5;
	color: #1f1f1f;
	margin: 0;
}

body.header-vduma .vduma-search-journal-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.header-vduma .vduma-search-journal-item + .vduma-search-journal-item {
	margin-top: 10px;
}

body.header-vduma .vduma-search-journal-item a {
	font-size: 13px;
	line-height: 1.45;
	color: #1f1f1f;
	text-decoration: none;
}

body.header-vduma .vduma-search-journal-item a:hover {
	text-decoration: underline;
}

/* Header + search tetap putih di atas backdrop */
body.header-vduma.vduma-search-is-open .rwot-header-container,
body.header-vduma.vduma-search-is-open .rwt-header-container {
	z-index: 1050 !important;
	background-color: #ffffff !important;
	position: relative;
	isolation: isolate;
}

body.header-vduma.vduma-search-is-open .rwot-site-header,
body.header-vduma.vduma-search-is-open .rwt-site-header,
body.header-vduma.vduma-search-is-open .vduma-header-inner {
	background-color: #ffffff !important;
}

body.header-vduma.vduma-search-is-open .vduma-header-main-row {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	z-index: 2;
	background-color: #ffffff !important;
}

/* ── Full search results page ────────────────────────────────── */
body.rwot-vduma-search {
	--vduma-page-gutter: 48px;
}

body.rwot-vduma-search .vduma-shop,
body.rwot-vduma-search .vduma-shop-toolbar,
body.rwot-vduma-search .vduma-shop-header,
body.rwot-vduma-search .rwot-shop-tools-container,
body.rwot-vduma-search .woocommerce-result-count,
body.rwot-vduma-search .woocommerce-ordering,
body.rwot-vduma-search .woocommerce-notices-wrapper,
body.rwot-vduma-search .vduma-recently-viewed,
body.rwot-vduma-search .recently-view-products,
body.rwot-vduma-search .vduma-cart-recently-viewed-wrap {
	display: none !important;
}

body.rwot-vduma-search #sidebar,
body.rwot-vduma-search .rwot-is-mobile #sidebar-mobile {
	display: none !important;
}

body.rwot-vduma-search .shop-page.container-lg {
	max-width: 100%;
	padding-left: var(--vduma-page-gutter) !important;
	padding-right: var(--vduma-page-gutter) !important;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

body.rwot-vduma-search #primary.content-area,
body.rwot-vduma-search .site-main {
	width: 100%;
	max-width: 100%;
	padding: 0;
}

.vduma-search-page {
	width: 100%;
	padding: 56px 0 96px;
}

.vduma-search-page-header {
	text-align: center;
	margin: 0 auto 28px;
	max-width: 960px;
}

.vduma-search-page-title {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	/* font-size: clamp(2.5rem, 5vw, 4rem); */
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #1a1a1a;
	margin: 0 0 16px;
	line-height: 1.1;
}

.vduma-search-page-summary {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #1a1a1a;
	margin: 0;
}

body.rwot-vduma-search .vduma-search-page-header {
	display: block !important;
	visibility: visible !important;
}

.vduma-search-page-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	row-gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.rwot-vduma-search .vduma-search-page-grid .onsale {
	display: none !important;
}

.vduma-search-page-grid .rwot-vduma-search-card {
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.vduma-search-page-grid .rwot-vduma-search-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.vduma-search-page-grid .rwot-vduma-search-card-imgwrap {
	display: block;
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 150%;
	overflow: hidden;
	background: #f5f5f5;
}

.vduma-search-page-grid .rwot-vduma-search-card-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: opacity 0.55s ease;
}

.vduma-search-page-grid .rwot-vduma-search-card-img--primary {
	opacity: 1;
	z-index: 1;
}

.vduma-search-page-grid .rwot-vduma-search-card-img--hover {
	opacity: 0;
	z-index: 2;
}

.vduma-search-page-grid .rwot-vduma-search-card-link:hover .rwot-vduma-search-card-img--hover {
	opacity: 1;
}

.vduma-search-page-grid .rwot-vduma-search-card-link:hover .rwot-vduma-search-card-img--primary {
	opacity: 0;
}

.vduma-search-page-grid .rwot-vduma-search-card-meta {
	display: block;
	padding: 20px 4px 0;
	text-align: center;
}

.vduma-search-page-grid .rwot-vduma-search-card-title {
	display: block;
	margin: 0 0 10px;
	color: #111 !important;
	font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	transition: opacity 0.25s ease;
}

.vduma-search-page-grid .rwot-vduma-search-card-link:hover .rwot-vduma-search-card-title {
	opacity: 0.65;
}

.vduma-search-page-grid .rwot-vduma-search-card-price,
.vduma-search-page-grid .rwot-vduma-search-card-price *,
.vduma-search-page-grid .rwot-vduma-search-card-price .amount,
.vduma-search-page-grid .rwot-vduma-search-card-price .woocommerce-Price-amount,
.vduma-search-page-grid .rwot-vduma-search-card-price bdi {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #999 !important;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-decoration: none !important;
	background: transparent !important;
}

.vduma-search-page-grid .rwot-vduma-search-card-price {
	display: block !important;
}

.vduma-search-page-grid .rwot-vduma-search-stock-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	background: rgba(255, 255, 255, 0.92);
	font-size: 11px;
	line-height: 1.2;
	color: #666;
}

.vduma-search-page-empty {
	text-align: center;
	font-size: 14px;
	color: #666;
	margin: 48px 0 0;
}

@media (max-width: 991.98px) {
	body.header-vduma .vduma-search-panel {
		--vduma-search-gutter: 16px;
	}

	body.header-vduma .vduma-search-panel.is-open.has-results {
		max-height: calc(100vh - var(--vduma-search-top, 72px));
	}

	body.header-vduma .vduma-search-results {
		padding: 12px var(--vduma-search-gutter) 20px;
	}

	body.header-vduma .vduma-search-results-body {
		grid-template-columns: 1fr !important;
		gap: 0;
	}

	body.header-vduma .vduma-search-panel.is-open.has-results .vduma-search-status-bar.is-visible {
		border-bottom: 1px solid #ececec;
		padding-bottom: 12px;
		margin-bottom: 0;
	}

	/* Mobile/tablet — vertical list, image left + title/price right */
	body.header-vduma .vduma-search-panel ul.vduma-search-products {
		display: flex !important;
		flex-direction: column !important;
		grid-template-columns: none !important;
		gap: 0 !important;
	}

	body.header-vduma .vduma-search-panel ul.vduma-search-products > li.product {
		display: block !important;
		flex: none !important;
		min-width: 0 !important;
		min-height: 0 !important;
		height: auto !important;
		border-bottom: 1px solid #ececec;
	}

	body.header-vduma .vduma-search-panel ul.vduma-search-products > li.product:last-child {
		border-bottom: none;
	}

	body.header-vduma .vduma-search-panel .rwot-vduma-search-card-link {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 14px;
		padding: 14px 0 !important;
		width: 100%;
		min-height: 0 !important;
		box-sizing: border-box;
	}

	/* Portrait thumb ~3:4 (Duma mobile search reference) */
	body.header-vduma .vduma-search-panel .rwot-vduma-search-card-imgwrap {
		flex: 0 0 72px !important;
		width: 72px !important;
		max-width: 72px !important;
		min-width: 72px !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		aspect-ratio: 3 / 4 !important;
		padding-bottom: 0 !important;
		overflow: hidden;
		position: relative;
	}

	body.header-vduma .vduma-search-panel .rwot-vduma-search-card-imgwrap .rwot-vduma-search-card-img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center top;
	}

	body.header-vduma .vduma-search-panel .rwot-vduma-search-card-meta {
		flex: 1 1 auto;
		min-width: 0;
		padding: 0;
		text-align: left;
	}

	body.header-vduma .vduma-search-panel .rwot-vduma-search-card-title {
		font-size: 12px !important;
		line-height: 1.35 !important;
		text-align: left;
		margin: 0 0 4px;
		letter-spacing: 0.04em;
	}

	body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price,
	body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price * {
		text-align: left;
	}

	body.header-vduma .vduma-search-panel .rwot-vduma-search-card-price {
		display: block !important;
	}

	body.header-vduma .vduma-search-panel .rwot-vduma-search-card-img--hover {
		display: none !important;
	}

	body.header-vduma .vduma-search-journal {
		width: 100%;
		max-width: none;
		border-left: none;
		border-top: 1px solid #ececec;
		padding-left: 0;
		padding-top: 20px;
		margin-top: 4px;
	}

	.vduma-search-page-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.rwot-vduma-search {
		--vduma-page-gutter: 16px;
	}
}

@media (max-width: 767.98px) {
	.vduma-search-page-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 479.98px) {
	.vduma-search-page-grid {
		gap: 10px;
	}
}
