/* Nexsaver product page. Colours come from the custom properties below; set them to the Nexsaver palette. */
:root {
	--nxc-accent: var(--ast-global-color-0, #0b5cad);
	--nxc-text: var(--ast-global-color-3, #1f2937);
	--nxc-muted: #6b7280;
	--nxc-line: #e5e7eb;
	--nxc-soft: #f6f7f9;
	--nxc-ok: #15803d;
	--nxc-warn: #b45309;
	--nxc-bad: #b91c1c;
	--nxc-radius: 6px;
}

/* Two-column top: gallery left, summary right; summary sticks on desktop. */
@media (min-width: 922px) {
	.single-product div.product .summary { position: sticky; top: 24px; }
}
.single-product div.product .woocommerce-product-gallery { border: 1px solid var(--nxc-line); border-radius: var(--nxc-radius); padding: 12px; background: #fff; }

/* Brand + title */
.nxc-brand { margin-bottom: 6px; }
.nxc-brand a { text-decoration: none; }
.nxc-brand__logo { max-height: 36px; width: auto; }
.nxc-brand__name { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--nxc-accent); font-size: .9em; }
.single-product .summary .product_title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; margin-bottom: 10px; }

/* Part numbers */
.nxc-ids { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9em; color: var(--nxc-muted); }
.nxc-ids li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.nxc-ids__label { font-weight: 600; }
.nxc-ids__value { color: var(--nxc-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nxc-copy { font-size: .75em; line-height: 1; padding: 3px 6px; border: 1px solid var(--nxc-line); background: #fff; color: var(--nxc-muted); border-radius: 3px; cursor: pointer; }
.nxc-copy:hover { color: var(--nxc-accent); border-color: var(--nxc-accent); background: #fff; }

/* Availability */
.nxc-stock { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 600; font-size: .9em; }
.nxc-stock__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.nxc-stock--in { color: var(--nxc-ok); }
.nxc-stock--backorder { color: var(--nxc-warn); }
.nxc-stock--out { color: var(--nxc-bad); }

.single-product .summary .price { font-size: 1.4em; font-weight: 700; color: var(--nxc-text); margin-bottom: 14px; }

/* Feature bullets */
.single-product .summary .woocommerce-product-details__short-description ul { margin: 0 0 16px 1.1em; }
.single-product .summary .woocommerce-product-details__short-description li { margin-bottom: 4px; }

/* Buy box */
.nxc-buybox { border: 1px solid var(--nxc-line); border-radius: var(--nxc-radius); background: var(--nxc-soft); padding: 16px; margin: 0 0 16px; display: grid; gap: 10px; }
.nxc-buybox form.cart { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.nxc-buybox form.cart .quantity { margin: 0 !important; }
.nxc-buybox form.cart .quantity .qty { height: 100%; min-height: 44px; width: 72px; }
.nxc-buybox .single_add_to_cart_button { flex: 1 1 180px; min-height: 44px; }
.nxc-buybox > a.button, .nxc-buybox > .button, .nxc-buybox > p > a.button { width: 100%; text-align: center; }
.nxc-buybox > *:last-child { margin-bottom: 0; }

.single-product .summary .product_meta { font-size: .85em; color: var(--nxc-muted); border-top: 1px solid var(--nxc-line); padding-top: 10px; }
.single-product .summary .product_meta .sku_wrapper { display: none; } /* shown as Item # above */

/* Tabs: full-width underline style */
.single-product .woocommerce-tabs { margin-top: 40px; }
.single-product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--nxc-line); padding: 0; margin: 0 0 24px; }
.single-product .woocommerce-tabs ul.tabs::before { display: none; }
.single-product .woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; margin: 0 0 -2px !important; padding: 0 !important; border-radius: 0 !important; }
.single-product .woocommerce-tabs ul.tabs li::before, .single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 20px !important; font-weight: 600; color: var(--nxc-muted); border-bottom: 3px solid transparent; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--nxc-accent); border-bottom-color: var(--nxc-accent); }
.single-product .woocommerce-tabs .panel > h2:first-child { display: none; }

/* Specs */
.nxc-specs { display: grid; gap: 28px; }
@media (min-width: 922px) { .nxc-specs { grid-template-columns: 1fr 1fr; align-items: start; } }
.nxc-spec-group__title { font-size: 1rem; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--nxc-accent); }
.nxc-spec-table { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.nxc-spec-table th, .nxc-spec-table td { padding: 9px 12px; border: 0; border-bottom: 1px solid var(--nxc-line); text-align: left; vertical-align: top; font-size: .92em; }
.nxc-spec-table th { width: 42%; font-weight: 600; color: var(--nxc-muted); background: transparent; }
.nxc-spec-table tr:nth-child(even) th, .nxc-spec-table tr:nth-child(even) td { background: var(--nxc-soft); }

/* Documents and Resources: cards */
.nxc-docs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-bottom: 20px; }
.nxc-docs-title { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); margin: 0; }
.nxc-docs-all { display: inline-flex; align-items: center; gap: 8px; background: none !important; border: 0; padding: 0; color: var(--nxc-accent) !important; font-weight: 600; cursor: pointer; }
.nxc-docs-all:hover { text-decoration: underline; }
.nxc-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.nxc-doc { margin: 0; }
.nxc-doc a { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 28px 16px 24px; border: 1px solid var(--nxc-line); border-radius: var(--nxc-radius); background: #fff; text-decoration: none; color: var(--nxc-text); transition: border-color .15s, box-shadow .15s; }
.nxc-doc a:hover { border-color: var(--nxc-accent); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.nxc-doc__svg { width: 64px; height: 70px; color: var(--nxc-text); margin-bottom: 12px; }
.nxc-doc__name { font-weight: 700; color: var(--nxc-accent); font-size: 1.05em; }
.nxc-doc__file { font-size: .85em; color: var(--nxc-text); }
.nxc-doc__meta { font-size: .78em; color: var(--nxc-muted); }

/* Accessories / related */
.single-product .upsells.products, .single-product .related.products { margin-top: 48px; }
.single-product .upsells.products > h2, .single-product .related.products > h2 { font-size: 1.3rem; padding-bottom: 8px; border-bottom: 2px solid var(--nxc-line); margin-bottom: 20px; }
.nxc-no-price { font-size: .75em; font-weight: 600; color: var(--nxc-accent); text-decoration: none; }
.nxc-price-extras { margin: -8px 0 14px; display: grid; gap: 4px; font-size: .88em; color: var(--nxc-muted); }
.nxc-save { color: var(--nxc-ok); font-weight: 600; }
.nxc-cost { padding: 4px 8px; border: 1px dashed var(--nxc-line); border-radius: 4px; background: #fffbeb; color: #78350f; justify-self: start; }

/* Family options (variants as separate products) */
.nxc-family:empty { display: none; }
.nxc-family { margin: 0 0 16px; }
.nxc-family .npi-family { display: grid; gap: 12px; }
.nxc-family .npi-family__label, .nxc-family .npi-family h4, .nxc-family .npi-family strong { display: block; font-weight: 600; font-size: .9em; margin: 0 0 6px; color: var(--nxc-text); }
.nxc-family .npi-family__options { display: flex; flex-wrap: wrap; gap: 8px; }
.nxc-family .npi-family__option { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--nxc-line); border-radius: var(--nxc-radius); background: #fff; color: var(--nxc-text); text-decoration: none; font-weight: 600; font-size: .9em; }
.nxc-family .npi-family__option:hover { border-color: var(--nxc-accent); color: var(--nxc-accent); }
.nxc-family .npi-family__option.is-current { border: 2px solid var(--nxc-accent); color: var(--nxc-accent); background: var(--nxc-soft); pointer-events: none; }

.nxc-code { margin: -4px 0 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; color: var(--nxc-muted); }
