/* =====================================================================
   NexGen layer inside Porto: wrapper fixes and resets against Porto /
   Bootstrap rules that would otherwise leak into the .ngx parts.
   Loaded after nexgen.css.
   ===================================================================== */

/* the scoped "body" rule hides horizontal overflow; header and footer wrappers must not clip dropdowns */
.ngx.ngx-bars, .ngx.ngx-hdr, .ngx.ngx-ftr { overflow: visible; }

/* sticky header: Porto's wrapper is the sticky box (the pill lives inside it) */
.ngx-site .header-wrapper { position: sticky; top: 0; z-index: 1000; background: var(--paper); height: auto !important; }
.ngx-site .header-wrapper .hdr { position: relative; top: 0; }
.ngx-site.admin-bar .header-wrapper { top: 32px; }
@media (max-width: 782px) { .ngx-site.admin-bar .header-wrapper { top: 0; } }
/* the old theme clipped wide pieces (ticker, film strip) on body; clip (not hidden) keeps the sticky header working */
.ngx-site .page-wrapper { overflow: visible; overflow-x: clip; }
.ngx.ngx-main { overflow-x: clip; }

/* Porto's own phone side panel and old header pieces are replaced by ours */
.ngx-site #side-nav-panel, .ngx-site .panel-overlay, .ngx-site #header .header-main { display: none !important; }

/* home + builder page: full-bleed sections, no Porto container padding */
.ngx-home #main, .ngx-builder #main, .ngx-tpl #main { background: var(--paper); }
.ngx-home #main > .container, .ngx-home #main > .container-fluid,
.ngx-builder #main > .container, .ngx-builder #main > .container-fluid,
.ngx-tpl #main > .container, .ngx-tpl #main > .container-fluid { max-width: none; width: 100%; padding: 0; }
.ngx-home .main-content-wrap, .ngx-builder .main-content-wrap, .ngx-tpl .main-content-wrap { margin: 0; }
.ngx-home .main-content, .ngx-builder .main-content, .ngx-tpl .main-content { padding: 0 !important; min-height: 0; }
.ngx-home #content-top, .ngx-builder .page-top { display: none; }

/* footer wrapper: our footer brings its own background */
.ngx-site .footer-wrapper, .ngx-site #footer { background: transparent; margin: 0; padding: 0; border: 0; }
/* Porto's footer-top widget strip belongs to the old footer */
.ngx-site .footer-wrapper > .footer-top { display: none; }

/* ---------- resets for Porto / Bootstrap / Elementor kit rules ---------- */
.ngx :where(h1, h2, h3, h4, h5, h6) { color: inherit; text-transform: none; }
.ngx :where(p) { color: inherit; letter-spacing: normal; }
.ngx :where(a):hover, .ngx :where(a):focus { color: inherit; text-decoration: none; }
.ngx :where(.btn) { text-transform: none; letter-spacing: normal; line-height: 1.2; box-shadow: none; outline: 0; }
.ngx :where(button) { background: none; border: 0; padding: 0; box-shadow: none; }
.ngx :where(ul, ol) { margin: 0; padding: 0; }
.ngx :where(blockquote) { margin: 0; padding: 0; border: 0; font-size: inherit; font-style: normal; color: inherit; }
.ngx :where(img) { border-radius: 0; }
.ngx .wrap { box-sizing: border-box; }

/* testimonials under shop / category / product pages (nexgen.php, woocommerce_after_main_content) */
.ngx.ngx-shoptst { clear: both; margin: 50px 0 10px; background: transparent; overflow: visible; }
.ngx .stst { padding: 40px 0 10px; border-top: 2px solid var(--ink); }
.ngx .stst__head { max-width: 720px; margin-bottom: 24px; }
.ngx .stst__h { font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; text-transform: uppercase; }
.ngx .stst__p { margin-top: 12px; color: var(--mute); }
.ngx .stst__p b { color: var(--ink); }
.ngx .stst__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; }
.ngx .stst__row .q { scroll-snap-align: start; }
.ngx .stst__row .q blockquote { font-family: var(--f-b); font-weight: 600; font-size: 15.5px; line-height: 1.6; }
@media (max-width: 640px) { .ngx .stst__row { grid-auto-columns: 86%; } }

/* basket count on the header cart icon */
.ngx .ico--cart { position: relative; }
.ngx .ico__n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--white); }

/* the LINKS menu has 16 items: two columns on desktop */
@media (min-width: 981px) {
  .ngx .dd__menu { min-width: 460px; grid-template-columns: 1fr 1fr; column-gap: 6px; }
  .ngx .nav > .dd:last-child .dd__menu { left: auto; right: 0; }
}
