/* NIRSHA 2026 header navigation — Shop editorial mega menu + Explore dropdown.
   Desktop-only enhancements; mobile reuses the existing offcanvas accordion.
   Light Colorful Luxury Editorial palette (scoped to the Shop mega menu).
   Brand base: green/gold. Flagships: pistachio (dry fruits) + peach-coral (chocolates). */

/* ---- Scoped design tokens (Shop mega menu only) ---- */
.nirsha-mega {
	/* Surfaces */
	--nm-bg: #FFF9F0;        /* warm ivory main */
	--nm-left: #FFF4E5;      /* very light warm cream (left) */
	--nm-right: #FFF9F0;     /* premium ivory (right) */
	--nm-divider: #EADCC9;   /* soft divider */
	/* Text */
	--nm-heading: #2D3D31;   /* main heading */
	--nm-body: #655D53;      /* secondary body */
	--nm-nav: #514B43;       /* secondary nav text */
	--nm-gold: #B98A35;      /* warm gold */
	--nm-butter: #FFE59A;    /* butter yellow */
	/* Dry Fruits flagship */
	--df-bg: #DDF3CD; --df-text: #28523A; --df-accent: #83B46C; --df-border: #77A45D;
	/* Chocolates flagship */
	--ch-bg: #FFD9D0; --ch-text: #873E35; --ch-accent: #E88B77; --ch-border: #DB806A;
}

/* ---- Desktop (>=1000px): restructure the header menu ---- */
@media (min-width: 1000px) {
	/* Mobile-only items are hidden from the desktop primary header. */
	.ct-header .nirsha-mobile-only,
	#ct-header-wrap .nirsha-mobile-only { display: none !important; }

	/* Replace the native dropdowns of our custom items with the built panels. */
	.ct-header .nirsha-mm > .sub-menu,
	#ct-header-wrap .nirsha-mm > .sub-menu { display: none !important; }

	/* Elegant chevron on Shop / Explore; rotates up when open. */
	.ct-header .nirsha-mm > a > .nirsha-caret,
	#ct-header-wrap .nirsha-mm > a > .nirsha-caret {
		display: inline-block; width: .4em; height: .4em; margin-left: .5em; vertical-align: middle;
		border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; border-radius: 1px;
		transform: translateY(-2px) rotate(45deg); transition: transform .28s cubic-bezier(.22,1,.36,1); opacity: .7;
	}
	.ct-header .nirsha-mm > a:hover > .nirsha-caret,
	#ct-header-wrap .nirsha-mm > a:hover > .nirsha-caret { opacity: 1; }
	.ct-header .nirsha-mm.nirsha-open > a > .nirsha-caret,
	#ct-header-wrap .nirsha-mm.nirsha-open > a > .nirsha-caret { transform: translateY(2px) rotate(-135deg); opacity: 1; }
}

/* ---- Flyout panels (built by JS, appended to <body>) ---- */
.nirsha-panel {
	position: fixed; z-index: 99990; opacity: 0; visibility: hidden; pointer-events: none;
	transform: translateY(-12px) scale(.985);
	transition: opacity .34s cubic-bezier(.22,1,.36,1), transform .34s cubic-bezier(.22,1,.36,1), visibility .34s;
}
.nirsha-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }

/* ====================  MEGA MENU  ==================== */
.nirsha-mega {
	width: min(980px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden;
	box-shadow: 0 26px 70px rgba(70,55,30,.20); background: var(--nm-bg);
	border: 1px solid #F2E7D4;
	display: grid; grid-template-columns: 35% 65%;
	font-family: inherit;
}

/* ---- Left: flagship cards + explore-more rows ---- */
.nirsha-mega__left { background: var(--nm-left); color: var(--nm-nav); padding: 22px 20px; border-right: 1px solid var(--nm-divider); }
.nirsha-mega__eyebrow { font-size: .66rem; letter-spacing: .18em; font-weight: 700; color: var(--nm-gold); margin: 0 0 11px; }
.nirsha-mega__eyebrow.is-more { margin-top: 20px; }
.nirsha-mega__cats { list-style: none; margin: 0; padding: 0; }
.nirsha-mega__cats a { text-decoration: none; }

/* Flagship cards — permanently colourful (Dry Fruits + Chocolates). */
.nirsha-mega__cats li[data-slug="dry-fruits"],
.nirsha-mega__cats li[data-slug="chocolates"] { margin: 0 0 10px; }
.nirsha-mega__cats li[data-slug="dry-fruits"] > a,
.nirsha-mega__cats li[data-slug="chocolates"] > a {
	position: relative; display: block; border-radius: 14px; padding: 13px 40px 12px 15px;
	border: 1.5px solid transparent; font-weight: 600;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nirsha-mega__cats li[data-slug="dry-fruits"] > a { background: var(--df-bg); color: var(--df-text); border-color: #CBE8B9; }
.nirsha-mega__cats li[data-slug="chocolates"] > a { background: var(--ch-bg); color: var(--ch-text); border-color: #F6C9BE; }
.nirsha-mega__cat-label { display: block; font-size: 1.04rem; line-height: 1.2; }
.nirsha-mega__tag { display: block; margin-top: 3px; font-size: .58rem; letter-spacing: .14em; font-weight: 700; opacity: .72; }
/* refined arrow */
.nirsha-mega__cats li[data-slug="dry-fruits"] > a::after,
.nirsha-mega__cats li[data-slug="chocolates"] > a::after {
	content: ""; position: absolute; right: 16px; top: 50%; width: .42em; height: .42em;
	border-right: 2px solid currentColor; border-top: 2px solid currentColor; border-radius: 1px;
	transform: translateY(-50%) rotate(45deg); opacity: .55; transition: transform .2s ease, opacity .2s ease;
}
/* flagship hover — gentle elevation */
.nirsha-mega__cats li[data-slug="dry-fruits"] > a:hover,
.nirsha-mega__cats li[data-slug="chocolates"] > a:hover { transform: translateY(-2px); }
.nirsha-mega__cats li[data-slug="dry-fruits"] > a:hover { box-shadow: 0 10px 22px rgba(40,82,58,.18); }
.nirsha-mega__cats li[data-slug="chocolates"] > a:hover { box-shadow: 0 10px 22px rgba(135,62,53,.16); }
.nirsha-mega__cats li[data-slug="dry-fruits"] > a:hover::after,
.nirsha-mega__cats li[data-slug="chocolates"] > a:hover::after { transform: translateY(-50%) translateX(3px) rotate(45deg); opacity: 1; }
/* flagship active — thicker border + ring + elevation (not colour-only) */
.nirsha-mega__cats li[data-slug="dry-fruits"].is-active > a {
	border-width: 2px; border-color: var(--df-border);
	box-shadow: 0 0 0 1px var(--df-border), 0 8px 20px rgba(40,82,58,.18);
}
.nirsha-mega__cats li[data-slug="chocolates"].is-active > a {
	border-width: 2px; border-color: var(--ch-border);
	box-shadow: 0 0 0 1px var(--ch-border), 0 8px 20px rgba(135,62,53,.16);
}
.nirsha-mega__cats li[data-slug="dry-fruits"].is-active > a::after,
.nirsha-mega__cats li[data-slug="chocolates"].is-active > a::after { opacity: 1; }
.nirsha-mega__cats li[data-slug="dry-fruits"].is-active .nirsha-mega__tag,
.nirsha-mega__cats li[data-slug="chocolates"].is-active .nirsha-mega__tag { opacity: 1; }

/* Secondary "Explore More" rows — subordinate, simple text rows. */
.nirsha-mega__cats li:not([data-slug="dry-fruits"]):not([data-slug="chocolates"]) > a {
	position: relative; display: flex; align-items: center; justify-content: space-between;
	padding: 11px 6px; color: var(--nm-nav); font-size: .95rem; font-weight: 500;
	border-bottom: 1px solid var(--nm-divider);
	transition: color .18s ease, padding-left .18s ease;
}
.nirsha-mega__cats li:not([data-slug="dry-fruits"]):not([data-slug="chocolates"]):last-child > a { border-bottom: 0; }
.nirsha-mega__cats li:not([data-slug="dry-fruits"]):not([data-slug="chocolates"]) > a .nirsha-mega__cat-label { font-size: .95rem; }
.nirsha-mega__cats li:not([data-slug="dry-fruits"]):not([data-slug="chocolates"]) > a::after {
	content: ""; width: .34em; height: .34em; border-right: 1.6px solid var(--nm-gold); border-top: 1.6px solid var(--nm-gold);
	transform: translateX(-4px) rotate(45deg); opacity: 0; transition: transform .18s ease, opacity .18s ease;
}
.nirsha-mega__cats li:not([data-slug="dry-fruits"]):not([data-slug="chocolates"]) > a:hover {
	color: var(--nm-heading); padding-left: 10px;
}
.nirsha-mega__cats li:not([data-slug="dry-fruits"]):not([data-slug="chocolates"]) > a:hover::after { transform: translateX(0) rotate(45deg); opacity: 1; }
/* secondary active — subtle ivory highlight + thin gold accent line */
.nirsha-mega__cats li:not([data-slug="dry-fruits"]):not([data-slug="chocolates"]).is-active > a {
	color: var(--nm-heading); background: rgba(255,229,154,.22); border-radius: 8px;
	box-shadow: inset 3px 0 0 var(--nm-gold); padding-left: 10px;
}

.nirsha-mega__all { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--nm-divider); }
.nirsha-mega__all a { color: var(--nm-gold); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; letter-spacing: .01em; transition: color .2s ease, gap .2s ease; }
.nirsha-mega__all a:hover { color: #8c6520; gap: .6em; }

/* ---- Right: modern colourful editorial showcase ---- */
.nirsha-mega__right { position: relative; padding: 28px 30px; display: grid; grid-template-columns: 1fr 45%; gap: 22px; align-items: center; background: var(--nm-right); overflow: hidden; }
/* subtle, CSS-only decorative colour wash (behind content) */
.nirsha-mega__right::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(120% 80% at 115% -10%, rgba(255,229,154,.30), transparent 60%),
		radial-gradient(90% 70% at -10% 115%, rgba(221,243,205,.40), transparent 62%);
	transition: opacity .4s ease; opacity: 1;
}
/* Dry Fruits + Chocolates now use supplied images that already carry their own
   decorative backgrounds, so the panel takes a soft colour-matched fill and the
   CSS wash is suppressed (no double decoration over the artwork). */
.nirsha-mega[data-cur="dry-fruits"] .nirsha-mega__right { background: #F7F7DF; }
.nirsha-mega[data-cur="chocolates"] .nirsha-mega__right { background: #FFF0E5; }
.nirsha-mega[data-cur="dry-fruits"] .nirsha-mega__right::before,
.nirsha-mega[data-cur="chocolates"] .nirsha-mega__right::before { background: none; }
.nirsha-mega[data-cur="combo-packs"] .nirsha-mega__right::before {
	background: radial-gradient(120% 90% at 110% -10%, rgba(255,229,154,.38), transparent 62%);
}
.nirsha-mega[data-cur="mukhwas"] .nirsha-mega__right::before {
	background: radial-gradient(110% 80% at 115% -10%, rgba(221,243,205,.42), transparent 62%);
}
.nirsha-mega[data-cur="flavoured-shots"] .nirsha-mega__right::before {
	background: radial-gradient(110% 80% at 115% -10%, rgba(255,217,208,.38), transparent 62%);
}
.nirsha-mega__right > * { position: relative; z-index: 1; }

.nirsha-mega__copy .nirsha-mega__cat-eyebrow {
	display: inline-block; padding: 4px 12px; border-radius: 999px; margin: 0 0 11px;
	font-size: .62rem; letter-spacing: .14em; font-weight: 700;
	background: var(--nm-butter); color: #6B571D;
}
.nirsha-mega[data-cur="chocolates"] .nirsha-mega__cat-eyebrow { background: #FFD9D0; color: var(--ch-text); }
.nirsha-mega[data-cur="dry-fruits"] .nirsha-mega__cat-eyebrow { background: var(--nm-butter); color: #5E5214; }
.nirsha-mega[data-cur="mukhwas"] .nirsha-mega__cat-eyebrow { background: #E4F2D6; color: #3E5A33; }
.nirsha-mega[data-cur="flavoured-shots"] .nirsha-mega__cat-eyebrow { background: #FFE3DC; color: #8A4A3E; }

.nirsha-mega__copy h3 {
	font-family: Georgia, 'Times New Roman', 'Playfair Display', serif;
	font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem); line-height: 1.18; margin: 0 0 9px; color: var(--nm-heading); font-weight: 600;
}
.nirsha-mega[data-cur="dry-fruits"] .nirsha-mega__copy h3 { color: #28523A; }
.nirsha-mega[data-cur="chocolates"] .nirsha-mega__copy h3 { color: #7A392F; }
.nirsha-mega__copy p { color: var(--nm-body); font-size: .95rem; line-height: 1.55; margin: 0 0 18px; max-width: 30ch; }
.nirsha-mega__cta {
	display: inline-flex; align-items: center; gap: .45em; background: #2F5A41; color: #fff;
	padding: 10px 19px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem;
	box-shadow: 0 8px 18px rgba(47,90,65,.22); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nirsha-mega__cta:hover { transform: translateY(-1px); color: #fff; }
.nirsha-mega[data-cur="dry-fruits"] .nirsha-mega__cta { background: #2F5A41; box-shadow: 0 8px 18px rgba(47,90,65,.22); }
.nirsha-mega[data-cur="chocolates"] .nirsha-mega__cta { background: #9A4436; box-shadow: 0 8px 18px rgba(135,62,53,.22); }
.nirsha-mega[data-cur="combo-packs"] .nirsha-mega__cta { background: #B98A35; box-shadow: 0 8px 18px rgba(185,138,53,.22); }

/* Image — stable square card. Supplied 1254x1254 artwork fills it edge-to-edge
   (contain, no crop/stretch); border-radius + soft shadow seat the opaque square
   cleanly against the panel. aspect-ratio fixes the box so switching never shifts. */
.nirsha-mega__img {
	width: 100%; max-width: 248px; margin-left: auto; aspect-ratio: 1 / 1;
	border-radius: 18px; overflow: hidden; background: #FFFFFF;
	box-shadow: 0 14px 34px rgba(70,55,30,.16);
}
.nirsha-mega__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s ease, opacity .24s ease; }
.nirsha-mega__img:hover img { transform: scale(1.04); }

/* category crossfade */
.nirsha-mega__copy { transition: opacity .24s ease, transform .24s ease; }
.nirsha-mega.is-switching .nirsha-mega__copy { opacity: 0; transform: translateX(6px); }
.nirsha-mega.is-switching .nirsha-mega__img img { opacity: 0; }

/* ====================  EXPLORE (unchanged compact dropdown)  ==================== */
.nirsha-explore { min-width: 232px; background: #F9F5EB; border: 1px solid #e7dcc6; border-radius: 12px; box-shadow: 0 18px 42px rgba(20,25,20,.18); padding: 8px; }
.nirsha-explore ul { list-style: none; margin: 0; padding: 0; }
.nirsha-explore a { display: block; padding: 10px 12px; border-radius: 8px; color: #2a2018; text-decoration: none; font-size: .96rem; transition: background .18s ease, color .18s ease, padding-left .18s ease; }
.nirsha-explore a:hover { background: rgba(27,48,39,.08); color: #1B3027; padding-left: 16px; }

/* Focus visibility */
.nirsha-panel a:focus-visible { outline: 2px solid var(--nm-gold); outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.nirsha-panel, .nirsha-mega__copy, .nirsha-mega__img img, .nirsha-mega__cats a, .nirsha-explore a,
	.nirsha-mega__cats li[data-slug="dry-fruits"] > a, .nirsha-mega__cats li[data-slug="chocolates"] > a,
	.nirsha-mega__right::before, .nirsha-mega__cta, .nirsha-mega__all a {
		transition: opacity .01ms linear !important; transform: none !important;
	}
}

/* Never show the desktop flyouts below the desktop breakpoint. */
@media (max-width: 999.98px) {
	.nirsha-panel { display: none !important; }
}

/* Mega menu stacks on narrow desktop windows. */
@media (min-width: 1000px) and (max-width: 1120px) {
	.nirsha-mega { grid-template-columns: 40% 60%; }
	.nirsha-mega__right { grid-template-columns: 1fr; }
	.nirsha-mega__img { max-width: 200px; margin: 0 auto; }
}
