/* NCA Notes: package cards + product page. Loaded by inc/woo-packages.php. */

:root {
	--nca-card: #16181e;
	--nca-card-2: #1d2029;
	--nca-line: rgba(255, 255, 255, 0.1);
	--nca-text: #fff;
	--nca-muted: #a3a7b3;
	--nca-radius: 20px;
}

/* ---------- Grid (Woo/Salient reset) ---------- */

.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
/* Woo's clearfix pseudo-elements become grid cells; drop them. */
.woocommerce ul.products::before, .woocommerce ul.products::after, .woocommerce-page ul.products::before, .woocommerce-page ul.products::after, ul.products::before, ul.products::after { display: none !important; content: none; }
/* Salient sets `.woocommerce .products.related .product { width:24% !important }`; these selectors outrank it. */
.woocommerce .products.related li.product.nca-pkg,
.woocommerce ul.products li.product.nca-pkg,
.woocommerce-page ul.products li.product.nca-pkg,
ul.products li.product.nca-pkg {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}
@media (max-width: 999px) { .woocommerce ul.products, .woocommerce-page ul.products, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 690px)  { .woocommerce ul.products, .woocommerce-page ul.products, ul.products { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */

.nca-btn, a.nca-btn, .nca-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid #fff;
	border-radius: 999px !important;
	background: #fff !important;
	color: #000 !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nca-btn:hover, a.nca-btn:hover { background: #e6e6e6 !important; border-color: #e6e6e6; }
a.nca-btn--ghost, .nca-btn--ghost { background: transparent !important; color: #fff !important; border-color: var(--nca-line); }
a.nca-btn--ghost:hover, .nca-btn--ghost:hover { background: rgba(255, 255, 255, 0.06) !important; border-color: #fff; }
a.nca-btn--sm, .nca-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
a.nca-btn--lg, .nca-btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.nca-btn.loading { opacity: 0.6; pointer-events: none; }
.nca-btn.added::after { content: "\2713"; }
.added_to_cart { margin-left: 12px; color: var(--nca-muted); font-size: 14px; text-decoration: underline; }

/* ---------- Card ---------- */

.nca-pkg {
	display: flex;
	flex-direction: column;
	background: var(--nca-card);
	border-radius: var(--nca-radius);
	overflow: hidden;
	color: var(--nca-text);
}
/* Thumbnail: the first sample page shown as a document on a mat, top-aligned, deliberately running off the bottom. */
.nca-pkg__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9e9ec;
}
/* Salient sets li.product a img { width: 100% }; outrank it. */
.woocommerce ul.products li.product a.nca-pkg__media img, .nca-pkg__media img {
	position: absolute;
	top: 24px;
	left: 10%;
	width: 80%;
	height: auto;
	display: block;
	border-radius: 2px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 32px rgba(0, 0, 0, 0.18);
}
.nca-pkg__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.nca-pkg p { padding: 0; } /* Salient's global p { padding-bottom: 27px } */
.nca-pkg__kind, .nca-pdp__kind { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nca-muted); }
.nca-pkg__kind { margin-bottom: 6px; }
body .woocommerce ul.products li.product h2.nca-pkg__title, .nca-pkg__title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; font-weight: 600; }
.nca-pkg__title a { color: var(--nca-text); text-decoration: none; }
/* Whole card is the link: the title anchor is stretched over the card. */
.nca-pkg { position: relative; }
.nca-pkg__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nca-pkg:hover .nca-pkg__title a { text-decoration: underline; }
.nca-pkg:hover .nca-btn { background: #e6e6e6 !important; border-color: #e6e6e6; }
.nca-pkg__meta { margin: 0 0 14px; font-size: 14px; color: var(--nca-muted); }
.nca-pkg__blurb {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--nca-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nca-pkg__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--nca-line); }
.nca-pkg__price-main { display: block; font-size: 26px; font-weight: 600; line-height: 1.1; }
.nca-pkg__price-main .woocommerce-Price-amount, .nca-pdp__price-main .woocommerce-Price-amount { font-size: inherit; color: inherit; }
.nca-pkg__price-note { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--nca-muted); }
.nca-pkg__foot .nca-btn { margin-left: auto; }
/* Narrow cards (phones, tight 2-up): the button drops below the price and goes full width. */
.nca-pkg { container-type: inline-size; }
@container (max-width: 360px) { .nca-pkg__foot .nca-btn { flex-basis: 100%; margin-left: 0; } }

/* ---------- Product page ---------- */

/* Salient renders single products on white; the rest of the site is dark. */
body.single-product, .single-product .ocm-effect-wrap, .single-product .container-wrap { background: #0c0d11 !important; }
.single-product .woocommerce-breadcrumb { display: none; }
.single-product .container.main-content > .row { padding-top: 24px; }

.nca-pdp { color: var(--nca-text); }
.nca-pdp h1, .nca-pdp h2 { color: var(--nca-text); }
.nca-pdp .woocommerce-Price-amount { color: inherit; font-size: inherit; }
.nca-pdp button { font-family: inherit; }
.nca-pdp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
	gap: 56px;
	align-items: start;
	padding-bottom: 0;
}

/* Media */
.nca-media { position: sticky; top: 24px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.nca-media[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
/* Strip is exactly as tall as the stage (height 0 + min-height 100% keeps it from sizing the row) and scrolls inside it. */
.nca-media__thumbs { display: grid; gap: 8px; align-content: start; grid-auto-rows: max-content; height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: none; }
.nca-media__thumbs.is-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }
.nca-media__thumbs::-webkit-scrollbar { display: none; }
.nca-media__thumbs button { padding: 0; border: 1px solid transparent; border-radius: 4px; background: #fff; cursor: pointer; overflow: hidden; aspect-ratio: 4 / 5; opacity: 0.55; transition: opacity 0.15s; }
.nca-media__thumbs button[aria-selected="true"] { opacity: 1; border-color: #fff; }
.nca-media__thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.nca-media__stage { position: relative; }
.nca-media__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 6px; background: #fff; }
.nca-media__track::-webkit-scrollbar { display: none; }
/* Source images are 430 to 630px screenshots with ratios 0.71 to 1.03; a 4:5 frame with contain shows every page whole. */
.nca-media__slide { flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 4 / 5; padding: 12px; box-sizing: border-box; }
.nca-media__slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.nca-media__caption { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 6px 10px; border-radius: 999px; background: rgba(12, 13, 17, 0.8); color: #fff; font-size: 12px; line-height: 1; pointer-events: none; }
.nca-media__counter { font-variant-numeric: tabular-nums; opacity: 0.75; margin-left: 4px; }
/* Prev / next on the stage: same dark chip as the caption, hidden at either end. Mouse users have no other "next page". */
body .nca-pdp .nca-media .nca-media__nav { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0 !important; border-radius: 4px !important; background: rgba(12, 13, 17, 0.8) !important; color: #fff !important; cursor: pointer; transition: background 0.15s, opacity 0.15s; }
body .nca-pdp .nca-media .nca-media__nav:hover { background: #0c0d11 !important; }
body .nca-pdp .nca-media .nca-media__nav[disabled] { opacity: 0; pointer-events: none; }
.nca-media__nav--prev { left: 12px; }
.nca-media__nav--next { right: 12px; }
.nca-media__nav svg { display: block; }

/* Buy column */
.nca-buy { display: flex; flex-direction: column; gap: 18px; }
.nca-buy > * { margin: 0; }
.nca-buy__crumb { font-size: 13px; color: var(--nca-muted); }
.nca-buy__crumb a { color: inherit; text-decoration: none; }
.nca-buy__crumb a:hover { color: #fff; }
.nca-buy__crumb .nca-chev { display: inline-block; vertical-align: middle; margin: -2px 3px 0; }
.nca-buy__title { font-size: 30px; line-height: 1.15; font-weight: 600; text-wrap: balance; margin-top: -6px; }
.nca-buy__price { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.nca-price-now { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.nca-price-note { font-size: 13px; color: var(--nca-muted); line-height: 1; }
.nca-buy__desc { font-size: 15px; line-height: 1.55; color: var(--nca-muted); }
.nca-buy__desc p { margin: 0 0 8px; color: inherit; }

/* Format selector */
.nca-format { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; overflow: hidden; }
.nca-format button { appearance: none; border: 0; border-radius: 0 !important; background: transparent !important; color: #fff; padding: 11px 10px; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; text-align: center; }
.nca-format button + button { border-left: 1px solid rgba(255, 255, 255, 0.35); }
.nca-format button small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; opacity: 0.7; }
.nca-format button[aria-pressed="true"] { background: #fff !important; color: #000; }
.nca-format button[aria-pressed="true"] small { opacity: 0.65; }

/* Items */
.nca-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nca-line); }
.nca-items li { list-style: none; margin: 0; padding: 0; }
.nca-items li::before, .nca-items li::marker { content: none; display: none; }
.nca-items__row label { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--nca-line); font-size: 14px; cursor: default; margin: 0; }
.nca-items__row input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.nca-items__check { display: block; width: 16px; height: 16px; box-sizing: border-box; }
.nca-items__row label span.nca-items__name { line-height: 1.3; color: var(--nca-text); }
.nca-items__row label span.nca-items__price { font-size: 13px; color: var(--nca-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nca-items__row.is-package-only label span.nca-items__name { color: var(--nca-muted); }
.is-package-only .nca-items__price { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
/* complete mode: read-only manifest with checkmarks */
[data-mode="complete"] .nca-items__check { width: 14px; height: 14px; margin-left: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4l6 6-6 6'/%3E%3C/svg%3E") center / 12px no-repeat; }
[data-mode="complete"] .is-package-only .nca-items__check { opacity: 0.45; }
/* individual mode: 20px rounded-square checkboxes, thin outline off, solid fill with check on (multi-select, so squares not circles) */
[data-mode="individual"] .nca-items__row:not(.is-package-only) label { cursor: pointer; }
[data-mode="individual"] .nca-items__check { width: 16px; height: 16px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 5px; background: transparent; transition: background 0.12s, border-color 0.12s; }
[data-mode="individual"] .nca-items__row:not(.is-package-only) label:hover .nca-items__check { border-color: #fff; }
[data-mode="individual"] input:checked + .nca-items__check { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230c0d11' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.2 10.5l3.8 3.8L15.8 6.4'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: #fff; }
[data-mode="individual"] input:focus-visible + .nca-items__check { outline: 2px solid #fff; outline-offset: 2px; }
[data-mode="individual"] .is-package-only .nca-items__check { border-color: rgba(255, 255, 255, 0.15); border-style: dashed; }
[data-mode="individual"] .is-package-only label { opacity: 0.6; }
/* preview cap in complete mode */
[data-mode="complete"] .nca-buy:not(.is-expanded) .is-extra, .nca-buy[data-mode="complete"]:not(.is-expanded) .is-extra { display: none; }
.nca-items__more { align-self: center; display: inline-block; margin-top: -8px; padding: 0; border: 0; background: none !important; color: var(--nca-muted); font-size: 13px; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; }
.nca-items__more::after { content: ""; display: inline-block; vertical-align: middle; margin: -2px 0 0 6px; width: 10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a3a7b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.15s; }
.nca-buy.is-expanded .nca-items__more::after { transform: rotate(180deg); }
.nca-items__more:hover { color: #fff; }
.nca-buy[data-mode="individual"] .nca-items__more { display: none; }

/* Add to cart */
.nca-add { width: 100%; font-weight: 700; gap: 10px; }
.nca-add__chev { font-size: 15px; line-height: 1; position: relative; top: 2px; } /* FA glyph sits high in its em box */
.nca-add__price { font-variant-numeric: tabular-nums; }
.nca-add:disabled { opacity: 0.4; cursor: not-allowed; }
.nca-added { font-size: 14px; color: var(--nca-muted); text-align: center; margin-top: -6px; padding: 0 !important; }
.nca-added a { color: #fff; }
.nca-buy__trust { font-size: 13px; line-height: 1.4; color: var(--nca-muted); text-align: center; margin-top: -6px; padding: 0 !important; }

/* About + accordion */
.nca-buy__about { padding-top: 8px; border-top: 1px solid var(--nca-line); font-size: 15px; line-height: 1.6; color: var(--nca-muted); }
.nca-buy__about h2 { font-size: 15px; font-weight: 600; margin: 14px 0 8px; }
.nca-buy__about p { color: inherit; margin: 0 0 15px; padding: 0; }
.nca-acc { border-top: 1px solid var(--nca-line); border-bottom: 1px solid var(--nca-line); }
.nca-acc summary { list-style: none; display: flex; justify-content: space-between; padding: 14px 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.nca-acc summary::-webkit-details-marker { display: none; }
.nca-acc summary::after { content: "+"; color: var(--nca-muted); font-weight: 400; }
.nca-acc[open] summary::after { content: "\2013"; }
.nca-acc > div { padding: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--nca-muted); }
.nca-acc > div p { color: inherit; margin: 0 0 8px; }

/* Related */
.nca-pdp .related.products > h2 { margin: 0 0 20px; font-size: 22px; line-height: 1.2; }

/* Sticky buy bar (mobile) */
.nca-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
	display: none; align-items: center; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(12, 13, 17, 0.96); backdrop-filter: blur(8px);
	border-top: 1px solid var(--nca-line);
}
.nca-sticky:not([hidden]) { display: flex; }
.nca-sticky__text { flex: 1; min-width: 0; display: grid; font-size: 13px; }
.nca-sticky__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nca-sticky .nca-price-now { font-size: 14px; }
@media (min-width: 861px) { .nca-sticky { display: none !important; } }

/* Mobile */
@media (max-width: 860px) {
	.nca-pdp__grid { grid-template-columns: 1fr; gap: 24px; }
	.nca-media { position: static; grid-template-columns: 1fr; }
	.nca-media__thumbs { display: none; }
	.nca-media__stage { margin: 0 -16px; }
	.nca-media__track { border-radius: 0; }
	.nca-media__caption { left: 28px; }
	.nca-media__nav { display: none !important; }
	.nca-buy__title { font-size: 26px; }
}

/* A plugin stylesheet resets every <button> with `button:not(:hover):not(:active):not(.has-background) {background:transparent!important}`
   (specificity 0,3,1). These selectors are 0,3,2 so they win. */
body .nca-pdp button.nca-btn.nca-btn--primary { background: #fff !important; color: #000 !important; border-radius: 999px !important; }
body .nca-pdp button.nca-btn.nca-btn--primary:hover { background: #e6e6e6 !important; }
body .nca-pdp .nca-format button { color: #fff !important; border-radius: 0 !important; }
body .nca-pdp .nca-format button[aria-pressed="true"] { background: #fff !important; color: #000 !important; }
body .nca-pdp .nca-media .nca-media__thumbs button { background: #fff !important; border-radius: 4px !important; }

/* Lightbox. Buttons match the homepage testimonial carousel arrows (owl-prev/next: 50px white square, 4px radius, #676767 glyph). */
.nca-lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.nca-lb::backdrop { background: rgba(12, 13, 17, 0.94); }
.nca-lb__img { position: absolute; top: 24px; left: 0; right: 0; margin: 0 auto; max-width: min(92vw, 900px); max-height: calc(100vh - 112px); width: auto; height: auto; object-fit: contain; background: #fff; }
body .nca-pdp .nca-lb button { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 0 !important; border-radius: 4px !important; background: #fff !important; color: #676767 !important; cursor: pointer; transition: background 0.15s; }
.nca-lb button svg { display: block; }
body .nca-pdp .nca-lb button:hover { background: #ececec !important; }
.nca-lb__close { top: 16px; right: 16px; }
.nca-lb__nav { top: 50%; transform: translateY(-50%); }
.nca-lb__nav--prev { left: 16px; }
.nca-lb__nav--next { right: 16px; }
.nca-lb__counter { position: absolute; left: 0; right: 0; bottom: 26px; margin: 0; text-align: center; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.nca-media__slide { cursor: zoom-in; }
@media (max-width: 860px) {
	.nca-lb__img { max-width: 100vw; max-height: calc(100vh - 112px); }
	body .nca-pdp .nca-lb .nca-lb__nav { display: none; } /* swipe instead */
}

/* Salient's `label span { color:#000 }` also hits Woo's currency symbol span inside the item rows. */
.nca-items__row label span.woocommerce-Price-currencySymbol, .nca-pdp .woocommerce-Price-currencySymbol, .nca-pkg .woocommerce-Price-currencySymbol { color: inherit; font-size: inherit; }


/* FAQ section: heading left, accordions right; under the testimonials panel, above related products */
.nca-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: 100px 0 0; color: var(--nca-text); }
.nca-faq__intro h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.2; color: var(--nca-text); }
.nca-faq__intro p { margin: 0; font-size: 15px; color: var(--nca-muted); }
.nca-faq__intro a { color: #fff; text-decoration: underline; }
.nca-faq__list .nca-acc { border-bottom: 0; }
.nca-faq__list .nca-acc:last-child { border-bottom: 1px solid var(--nca-line); }
.nca-faq__list .nca-acc summary { font-size: 16px; padding: 18px 0; }
.nca-faq__list .nca-acc > div { max-width: 62ch; font-size: 15px; }
@media (max-width: 860px) {
	.nca-faq { grid-template-columns: 1fr; gap: 20px; padding-top: 56px; }
}

/* "Updated for 2026" badge (only rendered when the product has a year) */
.nca-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--nca-text); line-height: 1; white-space: nowrap; }
.nca-badge .fa { font-size: 11px; opacity: 0.85; position: relative; top: 1px; }
.nca-buy .nca-badge { align-self: flex-start; margin-top: -6px; }
