/* =========================================================
   Notinoo V3 — Announcement Banner, Mobile Header V3,
   Mega Accordion Drawer, Advanced Search Overlay (voice +
   horizontal cards), Dedicated Search Page.
   ========================================================= */

/* ---------- Announcement Banner ---------- */
.nt-banner {
	position: relative;
	width: 100%;
	max-height: var(--nt-banner-h, 56px);
	overflow: hidden;
	background: var(--nt-banner-bg, var(--nt-primary, #3a0a23));
	color: var(--nt-banner-fg, #fff);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	z-index: 40;
}
.nt-banner-inner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--nt-banner-h, 56px);
	padding: 0 0.85rem;
	border-radius: 0;
}
.nt-banner-mobile .nt-banner-inner { padding: 0 0.6rem; }
.nt-banner-desktop .nt-banner-inner { padding: 0 1.25rem; }
.nt-banner-link {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-height: var(--nt-banner-h, 56px);
	text-decoration: none;
	color: inherit;
	padding-inline-end: 1.5rem;
}
.nt-banner-bg-image {
	position: absolute;
	inset: 0;
	background-image: var(--nt-banner-img);
	background-size: cover;
	background-position: center;
	opacity: 0.35;
	z-index: 0;
}
.nt-banner-content {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.nt-banner-text {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nt-banner-mobile .nt-banner-text { font-size: 12px; }
.nt-banner-desktop .nt-banner-text { font-size: 13px; }
.nt-banner-close {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: 0;
	background: rgba(255, 255, 255, 0.15);
	color: inherit;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s;
}
.nt-banner-close:hover { background: rgba(255, 255, 255, 0.28); }
.nt-banner-close .nt-icon { font-size: 16px; }
.nt-banner-mobile.is-dismissible .nt-banner-link { padding-inline-end: 2rem; }
.nt-banner-desktop.is-dismissible .nt-banner-link { padding-inline-end: 2.25rem; }
/* Mobile banner hidden on desktop, desktop banner hidden on mobile by default */
.nt-banner-mobile { display: block; }
.nt-banner-desktop { display: none; }
@media (min-width: 768px) {
	.nt-banner-mobile { display: none; }
	.nt-banner-desktop { display: block; }
	.nt-banner-desktop .nt-banner-inner { border-radius: var(--nt-banner-radius, 12px); margin: 8px auto; max-width: 1240px; }
}

/* ---------- Mobile Header V3 ---------- */
.nt-header-mobile-v3 {
	position: var(--nt-mh3-sticky-pos, sticky);
	top: 0;
	z-index: 45;
	background: var(--nt-mh3-bg, rgba(255, 248, 248, 0.92));
	color: var(--nt-mh3-fg, var(--nt-primary));
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 1px 10px rgba(84, 32, 57, 0.06);
	padding-top: env(safe-area-inset-top, 0px);
}
.nt-header-mobile-v3.is-glass {
	background: var(--nt-mh3-bg, rgba(255, 248, 248, 0.78));
	backdrop-filter: blur(18px) saturate(1.1);
	-webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.nt-header-mobile-v3.is-sticky { position: sticky; }
.nt-mh3-row {
	height: var(--nt-mh3-h, 64px);
	padding-inline: 0.85rem;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.5rem;
}
.nt-mh3-left, .nt-mh3-right {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}
.nt-mh3-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	justify-self: center;
}
.nt-mh3-brand.is-pos-start { justify-self: start; }
.nt-mh3-brand.is-pos-end { justify-self: end; }
.nt-mh3-brand.is-pos-center { justify-self: center; }
.nt-header-mobile-v3 .nt-mobile-logo-img {
	width: 36px;
	height: 36px;
	border-radius: 9999px;
	object-fit: cover;
	flex-shrink: 0;
}
.nt-header-mobile-v3 .nt-mobile-brand-fa { font-size: 18px; }
.nt-header-mobile-v3 .nt-icon-btn {
	width: 44px;
	height: 44px;
	color: var(--nt-mh3-fg, var(--nt-primary));
}
.nt-header-mobile-v3 .nt-icon-btn .nt-icon { font-size: 1.5rem; }
.nt-mh3-search-wrap {
	padding: 0 0.85rem 0.6rem;
}
.nt-mh3-search-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	height: 42px;
	padding: 0 0.9rem;
	border: 1px solid var(--nt-outline-variant, rgba(198, 161, 107, 0.25));
	border-radius: 9999px;
	background: var(--nt-surface-container-low, #fff);
	color: var(--nt-on-surface-variant);
	font-size: 13px;
	text-align: start;
	cursor: pointer;
	font-family: inherit;
}
.nt-mh3-search-trigger:hover { background: var(--nt-surface-container, #faf2ee); }
.nt-mh3-search-trigger .nt-icon { font-size: 20px; color: var(--nt-secondary); flex-shrink: 0; }
.nt-mh3-search-trigger > span {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--nt-on-surface-variant);
}
@media (min-width: 768px) {
	.nt-header-mobile-v3 { display: none; }
}

/* ---------- Mega Accordion Drawer ---------- */
.nt-mega-backdrop {
	background: rgba(10, 2, 6, 0.6);
	backdrop-filter: blur(4px);
}
.nt-mega-drawer {
	width: 86vw;
	max-width: 360px;
	max-height: 90vh;
	background: linear-gradient(var(--nt-mega-angle, 145deg), var(--nt-mega-bg, #1a0510) 0%, var(--nt-mega-bg2, #3a0a23) 100%);
	color: var(--nt-mega-fg, #f5e9d3);
	border-inline-start: var(--nt-mega-border, 1px solid rgba(198, 161, 107, 0.18));
	box-shadow: var(--nt-mega-shadow, 0 20px 60px rgba(0, 0, 0, 0.45));
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
[dir="rtl"] .nt-mega-drawer { right: 0; left: auto; transform: translateX(100%); }
.nt-mega-drawer.is-open { transform: translateX(0); }
.nt-mega-drawer.is-anim-fade { transition: opacity 0.3s; }
.nt-mega-drawer.is-anim-fade:not(.is-open) { opacity: 0; transform: translateX(0); }
.nt-mega-drawer.is-anim-fade.is-open { opacity: 1; }
.nt-mega-drawer.is-anim-scale:not(.is-open) { transform: scale(0.92); opacity: 0; }
.nt-mega-drawer.is-anim-scale.is-open { transform: scale(1); opacity: 1; }

.nt-mega-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.25rem 1.1rem 1rem;
	border-bottom: 1px solid rgba(198, 161, 107, 0.12);
}
.nt-mega-logo {
	width: 44px;
	height: 44px;
	border-radius: 9999px;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid rgba(198, 161, 107, 0.3);
}
.nt-mega-head-text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.nt-mega-title {
	font-family: var(--nt-font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--nt-mega-fg);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nt-mega-sub {
	font-size: 11px;
	color: var(--nt-mega-accent);
	letter-spacing: 0.08em;
}
.nt-mega-close {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(198, 161, 107, 0.25);
	background: rgba(255, 255, 255, 0.06);
	color: var(--nt-mega-fg);
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.nt-mega-close:hover { background: rgba(255, 255, 255, 0.12); }
.nt-mega-close .nt-icon { font-size: 18px; }

.nt-mega-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
	padding: 0.75rem 0.85rem;
	scrollbar-width: thin;
	scrollbar-color: var(--nt-mega-accent) transparent;
}
.nt-mega-scroll::-webkit-scrollbar { width: 4px; }
.nt-mega-scroll::-webkit-scrollbar-thumb { background: var(--nt-mega-accent); border-radius: 4px; }

.nt-mega-accordion {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nt-mega-acc-item {
	border-radius: var(--nt-mega-radius, 18px);
	overflow: hidden;
	background: var(--nt-mega-panel, rgba(0, 0, 0, 0.35));
	border: 1px solid rgba(198, 161, 107, 0.1);
	transition: background 0.25s, border-color 0.25s;
}
.nt-mega-acc-item.has-children.is-open {
	background: color-mix(in srgb, var(--nt-mega-accent) 12%, transparent);
	border-color: rgba(198, 161, 107, 0.35);
}
.nt-mega-acc-head { display: flex; align-items: stretch; }
.nt-mega-acc-toggle, .nt-mega-acc-link {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 0;
	background: transparent;
	color: var(--nt-mega-fg);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}
.nt-mega-acc-toggle:hover, .nt-mega-acc-link:hover { color: var(--nt-mega-accent); }
.nt-mega-acc-label { flex: 1 1 auto; }
.nt-mega-acc-chevron {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	color: var(--nt-mega-accent);
}
.nt-mega-acc-toggle[aria-expanded="true"] .nt-mega-acc-chevron { transform: rotate(180deg); }
.nt-mega-acc-chevron .nt-icon { font-size: 20px; }

.nt-mega-acc-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}
.nt-mega-acc-panel[hidden] { display: none; }
.nt-mega-acc-sublist {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0.5rem 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.nt-mega-acc-sublist a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.85rem;
	border-radius: 10px;
	color: var(--nt-mega-fg);
	opacity: 0.85;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, opacity 0.2s, padding-inline-start 0.2s;
}
.nt-mega-acc-sublist a::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 9999px;
	background: var(--nt-mega-accent);
	opacity: 0.6;
	flex-shrink: 0;
}
.nt-mega-acc-sublist a:hover {
	background: rgba(255, 255, 255, 0.06);
	opacity: 1;
	padding-inline-start: 1rem;
}
.nt-mega-acc-all a {
	color: var(--nt-mega-accent);
	font-weight: 700;
	opacity: 1;
	margin-top: 4px;
}
.nt-mega-acc-all a::before { display: none; }
.nt-mega-acc-all .nt-icon { font-size: 16px; }

.nt-mega-more {
	margin-top: 10px;
	border-radius: var(--nt-mega-radius, 18px);
	background: var(--nt-mega-panel, rgba(0, 0, 0, 0.35));
	border: 1px solid rgba(198, 161, 107, 0.1);
	overflow: hidden;
}
.nt-mega-more-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.85rem 1rem;
	border: 0;
	background: transparent;
	color: var(--nt-mega-accent);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.nt-mega-more-toggle .nt-icon { transition: transform 0.3s; font-size: 20px; }
.nt-mega-more-toggle[aria-expanded="true"] .nt-icon { transform: rotate(180deg); }
.nt-mega-more-list {
	list-style: none;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
	padding: 0 0.5rem;
}
.nt-mega-more-list[hidden] { display: none; }
.nt-mega-more-list a {
	display: block;
	padding: 0.55rem 0.85rem;
	color: var(--nt-mega-fg);
	opacity: 0.85;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 10px;
}
.nt-mega-more-list a:hover { background: rgba(255, 255, 255, 0.06); opacity: 1; }

.nt-mega-foot {
	flex: 0 0 auto;
	padding: 0.85rem 1.1rem 1.25rem;
	border-top: 1px solid rgba(198, 161, 107, 0.12);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.nt-mega-auth {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem;
	border-radius: 9999px;
	background: var(--nt-mega-accent);
	color: var(--nt-mega-bg, #1a0510);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.nt-mega-auth:hover { filter: brightness(1.08); }
.nt-mega-auth .nt-icon { font-size: 18px; }

/* ---------- Search Overlay V2 ---------- */
.nt-search-overlay-v2 {
	background: var(--nt-so-bg, rgba(255, 248, 248, 0.98));
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.nt-search-overlay-v2 .nt-search-overlay-inner {
	max-width: 720px;
	margin: 0 auto;
	padding-top: env(safe-area-inset-top, 0px);
}
.nt-search-overlay-v2 .nt-search-overlay-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	border: 1px solid var(--nt-outline-variant, rgba(198, 161, 107, 0.25));
	border-radius: 9999px;
	padding: 0.4rem 0.5rem 0.4rem 0.9rem;
	box-shadow: 0 8px 24px rgba(58, 10, 35, 0.1);
}
.nt-search-overlay-v2 .nt-search-overlay-bar > .nt-icon { font-size: 20px; color: var(--nt-on-surface-variant); flex-shrink: 0; }
.nt-search-overlay-v2 .nt-live-search-input {
	flex: 1 1 auto;
	border: 0;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 15px;
	color: var(--nt-on-surface);
	min-width: 0;
}
.nt-search-overlay-v2 .nt-voice-btn {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	position: relative;
	color: var(--nt-so-accent, var(--nt-primary));
}
.nt-search-overlay-v2 .nt-voice-btn.is-listening {
	color: #fff;
	background: var(--nt-so-accent, var(--nt-primary));
	animation: nt-voice-pulse 1.2s ease-in-out infinite;
}
@keyframes nt-voice-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(198, 161, 107, 0.5); }
	50% { box-shadow: 0 0 0 10px rgba(198, 161, 107, 0); }
}
.nt-voice-pulse {
	position: absolute;
	pointer-events: none;
}
.nt-voice-status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: center;
	padding: 0.6rem;
	color: var(--nt-secondary);
	font-size: 13px;
	font-weight: 600;
}
.nt-voice-dot {
	width: 8px;
	height: 8px;
	border-radius: 9999px;
	background: var(--nt-secondary);
	animation: nt-voice-blink 1s ease-in-out infinite;
}
@keyframes nt-voice-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}
.nt-search-results-wrap {
	margin-top: 0.85rem;
}
.nt-search-results-h {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-height: calc(100vh - 220px);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding-inline-end: 2px;
	scrollbar-width: thin;
}
.nt-search-results-h::-webkit-scrollbar { width: 5px; }
.nt-search-results-h::-webkit-scrollbar-thumb { background: var(--nt-outline-variant); border-radius: 5px; }
.nt-search-loading, .nt-search-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1.5rem;
	color: var(--nt-on-surface-variant);
	font-size: 13px;
}
.nt-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--nt-outline-variant);
	border-top-color: var(--nt-primary);
	border-radius: 9999px;
	animation: nt-spin 0.8s linear infinite;
}
@keyframes nt-spin { to { transform: rotate(360deg); } }

/* Horizontal product card (overlay results) */
.nt-search-card {
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
	padding: 0.6rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--nt-outline-variant, rgba(198, 161, 107, 0.15));
	text-decoration: none;
	color: var(--nt-on-surface);
	transition: transform 0.2s, box-shadow 0.2s;
}
.nt-search-card:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(58, 10, 35, 0.08); }
.nt-search-card-media {
	position: relative;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--nt-surface-container-low, #faf2ee);
}
.nt-search-card-media img { width: 100%; height: 100%; object-fit: cover; }
.nt-search-card-badge {
	position: absolute;
	top: 4px;
	inset-inline-start: 4px;
	background: var(--nt-secondary, #77592a);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 9999px;
}
.nt-search-card-oos {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.7);
	color: var(--nt-on-surface-variant);
	font-size: 10px;
	font-weight: 700;
}
.nt-search-card-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	justify-content: center;
}
.nt-search-card-brand {
	font-size: 11px;
	color: var(--nt-secondary);
	font-weight: 600;
	letter-spacing: 0.04em;
}
.nt-search-card-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--nt-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nt-search-card-rating { display: flex; align-items: center; }
.nt-rating-stars { font-size: 12px; line-height: 1; color: var(--nt-secondary); letter-spacing: 1px; }
.nt-rating-stars .nt-star.is-full { color: var(--nt-secondary); }
.nt-rating-stars .nt-star.is-half { background: linear-gradient(90deg, var(--nt-secondary) 50%, var(--nt-outline-variant) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nt-search-card-price { font-size: 13px; font-weight: 700; color: var(--nt-primary); margin-top: 2px; }
.nt-search-card-cart {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	align-self: flex-start;
	margin-top: 4px;
	padding: 5px 12px;
	border-radius: 9999px;
	background: var(--nt-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}
.nt-search-card-cart .nt-icon { font-size: 14px; }
.nt-search-all-link {
	display: block;
	text-align: center;
	padding: 0.75rem;
	font-size: 13px;
	font-weight: 700;
	color: var(--nt-primary);
	text-decoration: none;
	border: 1px dashed var(--nt-outline-variant);
	border-radius: 12px;
	margin-top: 4px;
}
.nt-search-suggestions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.85rem;
}
.nt-search-sugg-label { font-size: 12px; color: var(--nt-on-surface-variant); font-weight: 600; }
.nt-search-sugg-chip {
	border: 1px solid var(--nt-outline-variant);
	background: #fff;
	color: var(--nt-primary);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 9999px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.nt-search-sugg-chip:hover { background: var(--nt-primary); color: #fff; }

/* ---------- Search Page ---------- */
.nt-search-page {
	padding: clamp(1rem, 4vw, 2.5rem) 0 3rem;
	background: var(--nt-surface, #fff8f8);
	min-height: 60vh;
}
.nt-search-page-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}
.nt-search-page-head { text-align: center; margin-bottom: 1.5rem; }
.nt-search-page-title {
	font-family: var(--nt-font-display);
	font-size: clamp(1.5rem, 5vw, 2.25rem);
	font-weight: 700;
	color: var(--nt-primary);
	margin: 0 0 0.4rem;
}
.nt-search-page-sub { font-size: 13px; color: var(--nt-on-surface-variant); margin: 0; }
.nt-search-page-bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	border: 1px solid var(--nt-outline-variant);
	border-radius: 9999px;
	padding: 0.5rem 0.6rem 0.5rem 1.1rem;
	box-shadow: 0 8px 24px rgba(58, 10, 35, 0.08);
	max-width: 680px;
	margin: 0 auto 1rem;
}
.nt-search-page-bar > .nt-icon { font-size: 22px; color: var(--nt-on-surface-variant); flex-shrink: 0; }
.nt-search-page-bar .nt-live-search-input {
	flex: 1 1 auto;
	border: 0;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 15px;
	color: var(--nt-on-surface);
	min-width: 0;
}
.nt-search-page-sugg { justify-content: center; margin-bottom: 1.25rem; }
.nt-search-page-results-wrap { max-width: 680px; margin: 0 auto 1.5rem; }
.nt-search-page-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}
.nt-search-grid-cell .nt-search-card { flex-direction: column; }
.nt-search-grid-cell .nt-search-card-media { flex: 0 0 auto; width: 100%; height: 160px; }
.nt-search-grid-cell .nt-search-card-body { gap: 5px; padding: 0.25rem 0.15rem 0.4rem; }
.nt-search-grid-cell .nt-search-card-title { white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; }
.nt-search-page-more-wrap { display: flex; justify-content: center; margin-top: 1.5rem; }
.nt-search-grid-loading { grid-column: 1 / -1; display: flex; justify-content: center; padding: 2rem; }
.nt-search-grid-loading .nt-spinner { width: 24px; height: 24px; border-width: 3px; }
.nt-search-page-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--nt-on-surface-variant);
}
.nt-search-empty-ill { font-size: 48px; color: var(--nt-outline-variant); margin-bottom: 0.5rem; }
.nt-search-empty-ill .nt-icon { font-size: 48px; }

/* Desktop: hide the mobile-only voice status pulse duplicates */
@media (min-width: 768px) {
	.nt-search-overlay-v2 { display: none; }
	.nt-search-overlay-v2.is-open { display: block; }
}

/* =========================================================
   Popular / Bestsellers Widget (horizontal scroll + vertical grid)
   ========================================================= */
.nt-popular-wrap {
	position: relative;
	--nt-pop-hover-1: #ff7a18;
	--nt-pop-hover-2: #af002d;
	--nt-pop-hover-angle: 135deg;
	--nt-pop-hover-opacity: 0.85;
	--nt-pop-hover-text: #ffffff;
}

/* ---------- Section header ---------- */
.nt-popular-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding: 0 0.25rem;
	flex-wrap: wrap;
}
.nt-popular-head-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.nt-popular-head h2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-family: var(--nt-font-display);
	font-size: clamp(1.15rem, 3vw, 1.6rem);
	font-weight: 700;
	line-height: 1.2;
}
.nt-popular-head-icon {
	font-size: 1.2em;
	color: var(--nt-secondary, #77592a);
}
.nt-popular-head p {
	margin: 0;
	font-size: 13px;
	color: var(--nt-on-surface-variant, #77592a);
}
.nt-popular-viewall {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 1rem;
	border: 1px solid var(--nt-outline-variant, rgba(198, 161, 107, 0.3));
	border-radius: 9999px;
	color: var(--nt-primary, #3a0a23);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}
.nt-popular-viewall::after {
	content: '←';
	font-family: inherit;
	display: inline-block;
}
.nt-popular-viewall:hover {
	background: var(--nt-primary, #3a0a23);
	color: #fff;
	border-color: var(--nt-primary, #3a0a23);
}

/* ---------- Horizontal layout ---------- */
.nt-popular-h-rows {
	display: flex;
	flex-direction: column;
	gap: var(--nt-pop-gap, 16px);
}
.nt-popular-h {
	display: flex;
	gap: var(--nt-pop-gap, 16px);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 0.25rem 0.25rem 0.75rem;
	scroll-snap-type: x proximity;
}
.nt-popular-wrap:not(.has-snap) .nt-popular-h { scroll-snap-type: none; }
.nt-popular-h > .nt-popular-item {
	scroll-snap-align: start;
	scroll-snap-stop: normal;
	flex: 0 0 80%;
	max-width: 80%;
}
.nt-popular-wrap.hide-scrollbar .nt-popular-h {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.nt-popular-wrap.hide-scrollbar .nt-popular-h::-webkit-scrollbar { display: none; }

/* Nav arrows */
.nt-popular-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--nt-primary, #3a0a23);
	box-shadow: 0 6px 18px rgba(58, 10, 35, 0.18);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	transition: background 0.2s, opacity 0.2s;
	opacity: 0.85;
}
.nt-popular-arrow:hover { opacity: 1; background: #fff; }
.nt-popular-arrow--prev { right: -6px; }
.nt-popular-arrow--next { left: -6px; }
[dir="rtl"] .nt-popular-arrow--prev { right: -6px; left: auto; }
[dir="rtl"] .nt-popular-arrow--next { left: -6px; right: auto; }

/* ---------- Vertical grid ---------- */
.nt-popular-v-grid {
	display: grid;
	gap: var(--nt-pop-gap, 16px);
}
/* Responsive fallback only when the editor has not set explicit columns.
   Elementor's responsive {{WRAPPER}} selectors win on equal specificity
   because they are emitted later, so user choices always take precedence. */
@media (max-width: 1024px) {
	.nt-popular-v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.nt-popular-v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nt-popular-h > .nt-popular-item { flex: 0 0 75%; max-width: 75%; }
}
@media (max-width: 480px) {
	.nt-popular-v-grid { grid-template-columns: 1fr; }
	.nt-popular-h > .nt-popular-item { flex: 0 0 78%; max-width: 78%; }
}

/* ---------- Card item wrapper ---------- */
.nt-popular-item {
	position: relative;
	display: flex;
	min-width: 0;
}
.nt-popular-item .nt-perfume-card {
	position: relative;
	width: 100%;
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
}
.nt-popular-wrap.has-hover-lift .nt-popular-item:hover .nt-perfume-card {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(58, 10, 35, 0.18);
}

/* Rank badge */
.nt-popular-rank {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 6;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #3a0a23;
	color: #f5e9d3;
	font-size: 13px;
	font-weight: 800;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
	font-feature-settings: "tnum";
}
.nt-popular-rank.is-top3 {
	background-color: #ff7a18;
	color: #fff;
}

/* ---------- Orange gradient hover overlay ---------- */
.nt-popular-wrap.has-hover-grad .nt-popular-item .nt-card-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		var(--nt-pop-hover-angle, 135deg),
		var(--nt-pop-hover-1, #ff7a18) 0%,
		var(--nt-pop-hover-2, #af002d) 100%
	);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
	z-index: 2;
}
.nt-popular-wrap.has-hover-grad .nt-popular-item:hover .nt-card-media::after {
	opacity: var(--nt-pop-hover-opacity, 0.85);
}
/* Ensure media is the positioning context */
.nt-popular-wrap .nt-popular-item .nt-card-media {
	position: relative;
	overflow: hidden;
}
/* Lift image slightly on hover for depth */
.nt-popular-wrap.has-hover-grad .nt-popular-item:hover .nt-card-img {
	transform: scale(1.06);
}
.nt-popular-wrap .nt-popular-item .nt-card-img {
	transition: transform 0.5s ease;
}
/* Show quick-view button above the gradient */
.nt-popular-wrap .nt-popular-item .nt-card-quickview {
	z-index: 4;
}
.nt-popular-wrap .nt-popular-item .nt-card-wishlist-btn {
	z-index: 5;
}
.nt-popular-wrap .nt-popular-item .nt-card-badge {
	z-index: 5;
}

/* On hover, tint title/footer accent to match the gradient for cohesion */
.nt-popular-wrap.has-hover-grad .nt-popular-item:hover .nt-card-title a,
.nt-popular-wrap.has-hover-grad .nt-popular-item:hover .nt-card-brand {
	transition: color 0.3s;
}

/* RTL: keep arrows logical (prev = right in RTL already handled above) */

