/* Main menu, products first (2026-12-05, mockups/main-nav-products-2026-12-05.html option N2).
   Bar: Templates ▾ · Builder ▾ · Extensions ▾ · Services ▾ · Case studies ▾ · Resources ▾, Pricing on the right next to the account
   icon ("Start a project" left the header). Dropdowns: modules "Templates / Builder / Extensions mega menu" (mega-9/10/11, layout
   html/mod_custom/mega-nav.php, which loads this file + js/main-nav.js). Kit: _deploy/merge-dev-2026-10/main_nav_products.php.
   Row, chip, card and foot styles come from custom.css "Products mega menu C" (.pxm-*). */

/* ---------- the bar ---------- */
@media (min-width: 992px) {
	/* the right column takes what it needs (Pricing · account · Sign up), the logo + menu column the rest */
	#t4-header .header-wrap > .row { flex-wrap: nowrap; }
	#t4-header .header-wrap > .row > .t4-header-r { flex: 0 0 auto; width: auto; max-width: none; }
	#t4-header .header-wrap > .row > :first-child { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
	#t4-header .navbar-brand.logo-image { flex: none; }
	.t4-megamenu .navbar-nav.level0 { flex-wrap: nowrap; gap: 30px; }
	.t4-megamenu .navbar-nav.level0 > li > .nav-link { white-space: nowrap; }
}
/* "New" next to Builder (menu item class pxn-is-new) */
.t4-megamenu .pxn-is-new .menu-item-title::after { content: "New"; display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: #e6f8ec; color: #16803a; font-size: .62rem; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; vertical-align: 2px; }
@media (max-width: 1399.98px) {
	.t4-megamenu .navbar-nav.level0 { gap: 12px; }
	.t4-megamenu .navbar-nav.level0 > li > .nav-link, #t4-header .t4-header-r .pxh-pricing > .nav-link { font-size: 15px; }
	.t4-megamenu .pxn-is-new .menu-item-title::after { display: none; }
}
@media (max-width: 1199.98px) {
	.t4-megamenu .navbar-nav.level0 { gap: 14px; }
	.t4-megamenu .navbar-nav.level0 > li > .nav-link { font-size: 14px; }
	.t4-megamenu .navbar-nav.level0 > li > .nav-link .item-caret { display: none; }
	#t4-header .navbar-brand .logo-img { width: 130px; height: auto; }
}

/* ---------- shared ---------- */
.pxm-mega.pxn { padding: 8px 0 4px; }
.pxm-mega.pxn .pxm-more { margin-top: 14px; }

/* ---------- Templates ---------- */
.pxm-mega.pxn-tpl { grid-template-columns: 200px minmax(0, 1fr) 270px; gap: 36px; }
.pxn-types { display: flex; flex-direction: column; gap: 2px; }
.pxn-types button { display: flex; justify-content: space-between; gap: 8px; width: auto; margin: 0 -10px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: #161616; font: inherit; font-size: .92rem; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .2s, color .2s; }
.pxn-types button span { font-size: .78rem; font-weight: 500; color: rgba(22,22,22,.5); }
.pxn-types button:hover, .pxn-types button:focus-visible, .pxn-types button.is-on { background: #f3f7f4; color: #16803a; }
.pxn-types button:focus-visible { outline: 2px solid #16803a; outline-offset: -2px; }
.pxm-mega.pxn-tpl .pxm-tpls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; }
.pxm-mega.pxn-tpl .pxm-tpl img { transition: transform .25s, box-shadow .25s, opacity .25s; }
.pxn-tpl .pxm-tpls.is-dim .pxm-tpl:not(.is-hit) img { opacity: .28; }
/* Pro + Launch, the template upsell */
.pxm-mega .pxn-side { align-self: start; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: #050038; color: #fff !important; transition: transform .25s, box-shadow .25s; }
.pxm-mega .pxn-side:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(5,0,56,.6); }
.pxn-side .k { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7ee39a; }
.pxn-side b { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }
.pxn-side p { margin: 0; font-size: .85rem; line-height: 1.5; color: rgba(255,255,255,.72); }
.pxn-side ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: .84rem; color: rgba(255,255,255,.85); }
.pxn-side li { padding: 3px 0; }
.pxn-side li i { margin-right: 8px; color: #34c759; }
.pxn-side .go { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 8px; padding: 9px 16px; border-radius: 999px; background: #34c759; color: #fff; font-size: .88rem; font-weight: 600; }
.pxm-mega .pxn-side:hover .go { background: #1fa846; }

/* ---------- Builder ---------- */
.pxm-mega.pxn-bld { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.pxn-bld-shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px #e7ebf0, 0 30px 60px -36px rgba(5,0,56,.55); transition: transform .3s; }
.pxn-bld-shot:hover img { transform: translateY(-3px); }
.pxn-bld .k { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #16803a; }
.pxn-bld h4 { margin: 6px 0 8px; font-size: 1.55rem; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; color: #050038; }
.pxn-bld p { margin: 0; color: #5b6474; font-size: .92rem; line-height: 1.55; }
.pxn-bld ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.pxn-bld li { display: flex; gap: 10px; padding: 5px 0; }
.pxn-bld li i { width: 16px; padding-top: 3px; color: #34c759; text-align: center; }
.pxn-bld .btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.pxm-mega .pxn-bld-go { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #34c759; color: #fff !important; font-weight: 600; font-size: .9rem; }
.pxm-mega .pxn-bld-go:hover { background: #1fa846; }
.pxm-mega .pxn-bld-lite { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px #d5dae1; font-weight: 600; font-size: .9rem; }
.pxm-mega .pxn-bld-lite:hover { box-shadow: inset 0 0 0 1px #34c759; color: #16803a; }
.pxn-bld .pr { display: block; margin-top: 10px; font-size: .8rem; color: #5b6474; }
.pxn-bld .pr b { color: #050038; }
.pxn-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pxn-themes img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid #e7ebf0; transition: transform .25s, box-shadow .25s; }
.pxn-themes a:hover img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5,0,56,.14); }

/* ---------- Extensions ---------- */
.pxm-mega.pxn-ext { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 270px; gap: 44px; }
.pxn-ext .pxn-biz { columns: 2; column-gap: 28px; }
.pxn-ext .pxn-biz .pxm-row { break-inside: avoid; }
.pxm-mega.pxn-ext .pxm-plans { align-self: start; }

@media (max-width: 1199.98px) {
	.pxm-mega.pxn-tpl { grid-template-columns: 170px minmax(0, 1fr); }
	.pxm-mega.pxn-tpl .pxn-side, .pxm-mega.pxn-ext .pxm-plans, .pxm-mega.pxn-bld > :last-child { display: none; }
	.pxm-mega.pxn-ext { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
	.pxm-mega.pxn-bld { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.pxm-mega .pxn-side, .pxn-bld-shot img, .pxn-themes img, .pxm-mega.pxn-tpl .pxm-tpl img { transition: none; }
}
