/* ============================
   SINGLE PRODUCT
   Loaded only on single product pages.
   Shared product-card styles live in blocks.css.
   ============================ */

.single-product {
    background: white;
}

/* Interface links don't take the global a:hover underline; body copy still does */
.single-product a:hover,
.single-product a:focus {
    text-decoration: none;
}

.single-product .product-description a:hover,
.single-product .product-tech-notes a:hover {
    text-decoration: underline;
}

/* ---------- Hero ---------- */

/* The category's colour washes across the top-left of the hero over the navy,
   so a battery page and a charger page are distinguishable at a glance before
   you've read a word. Kept low and off to one side — it tints the band rather
   than recolouring it. */
.product-hero {
    position: relative;
    padding: 0 0 calc(var(--section-py) + 1rem);
    background-color: var(--secondary);
    background-image:
        linear-gradient(115deg, color-mix(in srgb, var(--product-accent, var(--primary)) 40%, transparent), transparent 62%),
        linear-gradient(rgba(6, 40, 58, 0.72), rgba(6, 40, 58, 0.82)),
        url('../images/circuit-4.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

/* Its own full-bleed strip across the top of the hero, darkened and ruled off
   underneath. Floating loose above the title it read as an afterthought; as a
   band it's clearly the page's top edge. */
/* Its own strip across the top of the hero — floating loose above the title it
   read as an afterthought. Barely-there darkening rather than a fill: the
   palette already has several blues and this shouldn't look like another one. */
.product-breadcrumb-bar {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    background: rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sized to sit level with #topper's contact bar (0.75rem padding around
   0.8rem text) so the two strips read as the same kind of thing. */
.product-breadcrumb {
    padding: 0.9rem 0;
}

.product-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The global `ol li` rule gives every item but the last a 0.5rem bottom margin,
   which pushed the final crumb half a step down inside this centred flex row. */
.product-breadcrumb li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Montserrat Variable', sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Slashes, not squares — instantly legible as a breadcrumb, and faint enough
   to stay behind the labels rather than beading across the bar. */
.product-breadcrumb li + li::before {
    content: "/";
    margin: 0 0.85rem;
    color: rgba(255, 255, 255, 0.22);
    font-weight: 400;
}

.product-breadcrumb li[aria-current] {
    color: rgba(255, 255, 255, 0.9);
}

.product-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover,
.product-breadcrumb a:focus {
    color: var(--product-accent-lift, var(--accent));
}

.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    padding-bottom: clamp(0.5rem, 2vw, 1.5rem);
}

@media (max-width: 900px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Product shot first on narrow screens — it's the fastest way to confirm
       you've landed on the right unit. */
    .product-hero-grid .product-gallery {
        order: -1;
    }
}

/* ---------- Gallery ---------- */

.product-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    /* Without this, a flex container's aspect-ratio can be overridden by a
       tall child (portrait photos grow the box past its ratio instead of
       being clipped to it). */
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 3rem);
    background-color: #fff;
    /* hairline technical grid behind cut-out product shots, centered so any
       partial cell trims evenly on both edges rather than one full/one sliver */
    background-image:
        linear-gradient(to right, rgba(0, 79, 112, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 79, 112, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: center;
    border-top: 3px solid var(--product-accent, var(--accent));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.product-gallery-stage.is-empty {
    background-color: rgba(255, 255, 255, 0.05);
    border-top-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.product-gallery-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* drop-shadow follows the PNG's actual silhouette (unlike box-shadow,
       which would just draw a rectangle) — makes the cut-out product read
       as lifted off the grid instead of pasted flat onto it. */
    filter: drop-shadow(0 14px 20px rgba(0, 79, 112, 0.2));
    transition: opacity 0.2s ease;
}

.product-gallery.fit-cover .product-gallery-stage {
    padding: 0;
    background-image: none;
}

.product-gallery.fit-cover .product-gallery-stage img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    /* Full-bleed photo, not a cut-out — no silhouette for a drop-shadow to
       follow, and it'd just sit hidden behind the image's own opaque edges. */
    filter: none;
}

.product-gallery-stage.is-loading img {
    opacity: 0.35;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-gallery-thumb {
    width: 4rem;
    height: 4rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-thumb:hover {
    border-color: var(--product-accent, var(--accent));
}

.product-gallery-thumb.is-active {
    border-color: var(--product-accent, var(--accent));
    box-shadow: 0 3px 0 var(--product-accent, var(--accent));
}

/* ---------- Eyebrows ---------- */

/* Base category-eyebrow styling lives in blocks.css so listing pages get it
   too. On the dark bands here the raw colour can all but vanish — the
   batteries navy on the navy hero — so those use the lifted variant. */
.product-hero .tag,
.product-enquiry .tag {
    background-color: var(--product-accent-lift, var(--accent));
    color: var(--secondary);
}

.product-title {
    margin-bottom: 1.4rem;
    color: #fff;
    font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-variation-settings: 'wght' 650;
}

.product-status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    font-size: 0.82rem;
}

/* The badge itself is styled in blocks.css (it's shared with listing cards);
   on the dark hero the navy chip needs lifting off the background. */
.product-hero .product-status {
    background: rgba(255, 255, 255, 0.14);
}

.product-hero .product-status-superseded {
    background: #f0b429;
}

.product-status-note {
    color: rgba(255, 255, 255, 0.78);
}

.product-status-note a {
    color: var(--product-accent-lift, var(--accent));
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 212, 231, 0.4);
}

.product-status-note a:hover {
    border-bottom-color: var(--accent);
}

/* No width cap — the hero column already constrains this. */
.product-summary {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.65;
}

.product-summary p {
    margin: 0 0 0.85rem;
}

.product-summary p:last-child {
    margin-bottom: 0;
}

.product-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.product-hero-actions .material-symbols-outlined {
    font-size: 1.05rem;
}

/* Part number / NSN — procurement details, directly under the title where
   you'd look for them, rather than adrift at the foot of the hero. */
.product-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.5rem;
    margin: 0 0 1.4rem;
    padding: 0.85rem 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.product-identifiers li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
}

.identifier-label {
    color: rgba(255, 255, 255, 0.55);
}

.identifier-value {
    color: #fff;
    font-family: 'Mona Sans Variable', sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

/* ---------- Sticky action bar ---------- */

/* The bar is fixed, so the last of the footer would sit underneath it. Reserve
   its real height at the bottom of the page — product-single.js measures the
   bar and sets --product-actionbar-h, since it's taller on mobile where the
   buttons go full width.

   Needs to out-specify `#site-footer { padding: 0 }`, hence the id here. */
@media (min-width: 768px) {
    body.single-product #site-footer {
        padding-bottom: var(--product-actionbar-h, 4.5rem);
    }
}

/* The masthead is sticky — without this, an in-page jump lands with the
   section heading hidden behind it. */
.product-main,
.product-tech,
.product-related,
.product-enquiry {
    scroll-margin-top: 5.5rem;
}

.product-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: var(--secondary);
    border-top: 3px solid var(--product-accent, var(--accent));
    transform: translateY(105%);
    transition: transform 0.25s ease;

    /* Compact buttons, and the outline variant drawn for a dark ground —
       set through the global button system rather than overridden here. */
    --button-py: 0.5rem;
    --button-px: 1rem;
    --button-outline-color: #fff;
    --button-outline-ink: var(--secondary);
}

/* Too little room to be worth the screen space, and it sits over the content
   on exactly the devices with least of it. */
@media (max-width: 767px) {
    .product-actionbar {
        display: none;
    }
}

.product-actionbar.is-visible {
    transform: translateY(0);
}

.product-actionbar .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.product-actionbar-title {
    color: #fff;
    font-family: 'Montserrat Variable', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-actionbar-nav {
    display: flex;
    gap: 1.25rem;
    margin-right: auto;
}

.product-actionbar-nav a {
    position: relative;
    padding: 0.35rem 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.product-actionbar-nav a:hover,
.product-actionbar-nav a:focus {
    color: var(--product-accent-lift, var(--accent));
}

.product-actionbar-nav a.is-current {
    color: #fff;
    border-bottom-color: var(--product-accent, var(--accent));
}

.product-actionbar-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Padding comes from --button-py/--button-px on the bar itself */
.product-actionbar .button {
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .product-actionbar-nav {
        display: none;
    }
}

/* ---------- Main content + aside ---------- */

.product-main {
    padding: var(--section-py) 0;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26rem;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

@media (max-width: 1200px) {
    .product-layout {
        grid-template-columns: minmax(0, 1fr) 22rem;
    }
}

@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.75;
}

.product-description > *:first-child {
    margin-top: 0;
}

.product-description h2,
.product-description h3 {
    margin-top: 2.25rem;
}

.product-content > div + div {
    margin-top: 2.5rem;
}

/* Subsections of the overview column — global h3 sizing, just a consistent
   gap between each heading and its list. */
.product-features h3,
.product-applications h3 {
    margin-bottom: 1rem;
}

.product-features ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.65rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-features li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* squared accent marker — flat, no rounded shapes */
.product-features li::before {
    content: "";
    position: absolute;
    top: 0.45em;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--product-accent, var(--accent));
    border-left: 3px solid var(--product-accent-ink, var(--primary));
}

.product-application-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-application-list li {
    padding: 0.4rem 0.75rem;
    background: color-mix(in srgb, var(--product-accent, var(--primary)) 8%, white);
    border-left: 3px solid var(--product-accent, var(--accent));
    font-size: 0.82rem;
}

/* ---------- Aside panels ---------- */

.product-aside {
    position: sticky;
    top: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 900px) {
    .product-aside {
        position: static;
    }
}

.product-panel {
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
}

/* Panel titles: the small uppercase heading used by every boxed panel on this
   page. One definition rather than a slightly different one per box. */
.product-panel-title,
.product-spec-group h3,
.product-tech-notes h3 {
    margin: 0 0 0.85rem;
    font-family: 'Montserrat Variable', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray);
}

/* Micro labels: the caption above a value (a part number, a phone number).
   Same treatment everywhere, one step smaller than a panel title. */
.identifier-label,
.product-enquiry-detail-label {
    font-family: 'Montserrat Variable', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-downloads {
    border-top: 3px solid var(--product-accent, var(--accent));
}

.download-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.download-list li + li {
    margin-top: 0.5rem;
}

.download-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    background: var(--light-gray);
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Stays in one hue on hover. It used to flip the row to solid primary while
   the icon tile went accent and the meta text kept its own opacity — three
   colours fighting each other in a 40px-tall row. */
.download-list a:hover,
.download-list a:focus {
    background: color-mix(in srgb, var(--product-accent, var(--primary)) 12%, white);
    color: var(--product-accent-ink, var(--primary));
}

/* Icon tile, same treatment as the enquiry contact rows — a bare glyph sat
   uncentred against the label and vanished on the hover fill. */
.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    background: white;
    color: var(--product-accent-ink, var(--primary));
    transition: background-color 0.2s ease, color 0.2s ease;
}

.download-icon .material-symbols-outlined {
    font-size: 1.2rem;
}

.download-list a:hover .download-icon,
.download-list a:focus .download-icon {
    background: var(--product-accent, var(--primary));
    color: var(--product-accent-text, white);
}

.download-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-right: auto;
    min-width: 0;
}

.download-name {
    font-family: 'Montserrat Variable', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
}

.download-meta {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.download-action {
    font-size: 1.1rem;
    opacity: 0.5;
}

.download-list a:hover .download-action,
.download-list a:focus .download-action {
    opacity: 1;
}

.product-compatible ul,
.product-market-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-compatible li + li {
    margin-top: 0.35rem;
}

.product-compatible a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0;
    color: var(--product-accent-ink, var(--primary));
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease;
}

.product-compatible li:last-child a {
    border-bottom: 0;
}

.product-compatible a .material-symbols-outlined {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.product-compatible a:hover {
    color: var(--primary-hover);
}

.product-compatible a:hover .material-symbols-outlined {
    transform: translateX(3px);
}

.product-market-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-market-list li {
    padding: 0.3rem 0.6rem;
    background: color-mix(in srgb, var(--product-accent, var(--primary)) 12%, white);
    color: var(--product-accent-ink, var(--primary));
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.product-aside-cta {
    background: var(--secondary);
    border-color: var(--secondary);
    border-top: 3px solid var(--product-accent, var(--accent));
    color: white;
}

.product-aside-cta .product-panel-title {
    color: var(--product-accent-lift, var(--accent));
}

.product-aside-cta p {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Technical data ---------- */

.product-tech {
    padding: var(--section-py) 0;
}

/* One full-width block per spec group, stacked. The groups hold wildly
   different row counts (Electrical can run to a dozen, Interface to two), so
   side-by-side columns left ragged gaps and split related rows across the
   page. */
.product-tech-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-spec-group {
    padding: 1.25rem 1.5rem 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--product-accent, var(--primary));
}

.product-spec-group h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--product-accent-ink, var(--primary));
}

/* Tinted square, same family as the downloads and enquiry icon tiles. Sized in
   em so it tracks the heading rather than needing its own breakpoints. */
.product-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.2em;
    height: 2.2em;
    background: color-mix(in srgb, var(--product-accent, var(--primary)) 12%, white);
}

/* The glyph ignores the heading's uppercase tracking — 0.16em of letter-spacing
   on a single character pushes it off-centre inside its tile. */
.product-spec-icon .material-symbols-outlined {
    font-size: 1.25rem;
    letter-spacing: normal;
}

/* The global table styles use !important, so the flat spec layout has to as well */
.product-spec-table {
    width: 100%;
    /* the global mobile rule forces tables to 600px — these must stay fluid */
    min-width: 0;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.product-spec-table th,
.product-spec-table td {
    padding: 0.6rem 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left !important;
    vertical-align: top !important;
    white-space: normal !important;
}

.product-spec-table tbody tr:nth-child(even),
.product-spec-table tbody tr:hover {
    background: transparent;
}

.product-spec-table tr:last-child th,
.product-spec-table tr:last-child td {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Fixed-ish label column: at full width a percentage split would push values
   halfway across the page, so labels get a readable column and values start at
   the same x in every group. */
.product-spec-table th {
    width: 22rem;
    padding-right: 2rem !important;
    color: var(--gray) !important;
    font-weight: 500 !important;
}

@media (max-width: 700px) {
    .product-spec-table th {
        width: 40%;
        padding-right: 1rem !important;
    }
}

/* Body font, not a bold display size — these values run long ("90-264V AC,
   50/60Hz, 16A Max, 1500W Max"), and it reads lighter than heavy Montserrat
   competing with the row label. Matches the listing block's spec values. */
.product-spec-table td {
    font-family: 'Mona Sans Variable', sans-serif;
    font-weight: 500;
    color: var(--text) !important;
}

/* Deliberately not a spec group: no coloured top rule, an icon instead, and the
   text indented past it so the whole thing reads as an aside to the tables
   above rather than another data panel. */
.product-tech-notes {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    line-height: 1.7;
}

.product-tech-notes-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    background: color-mix(in srgb, var(--product-accent, var(--primary)) 12%, white);
    color: var(--product-accent-ink, var(--primary));
}

.product-tech-notes-icon .material-symbols-outlined {
    font-size: 1.3rem;
}

.product-tech-notes-body {
    min-width: 0;
}

.product-tech-notes-body > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .product-tech-notes {
        gap: 1rem;
        padding: 1.25rem;
    }
}

/* ---------- Related ---------- */

.product-related {
    padding: var(--section-py) 0;
}

/* Product pages already carry a lot of grid; cap any listing on this template
   (related, or a Product Listing block dropped in via the page builder) at
   three across so the cards keep a readable width beside the rest of the page. */
.single-product .product-grid.columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
    .single-product .product-grid.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .single-product .product-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}

.product-related-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-family: 'Montserrat Variable', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.product-related-all .material-symbols-outlined {
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.product-related-all:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* ---------- Quick contact ---------- */

/* Same circuit treatment as the hero, so the page's two dark bands are
   obviously the same surface. */
.product-enquiry {
    padding: var(--section-py) 0;
    background-color: var(--secondary);
    background-image:
        linear-gradient(115deg, color-mix(in srgb, var(--product-accent, var(--primary)) 40%, transparent), transparent 62%),
        linear-gradient(rgba(6, 40, 58, 0.72), rgba(6, 40, 58, 0.82)),
        url('../images/circuit-4.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

.product-enquiry-inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

@media (max-width: 900px) {
    .product-enquiry-inner {
        grid-template-columns: 1fr;
    }
}

/* Sizing and rhythm come from the global .section-head — it's the intro column
   of a two-column band rather than a full-width header, so it doesn't carry the
   header's bottom margin. */
.product-enquiry-intro {
    margin-bottom: 0;
}

.product-enquiry-intro h2 {
    color: white;
}

.product-enquiry-intro > p {
    max-width: none;
    color: rgba(255, 255, 255, 0.78);
}

/* Direct contact details, in the same shape as the [contact_box] shortcode but
   squared off to match the rest of the product pages. */
.product-enquiry-direct {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.product-enquiry-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: white;
    text-decoration: none;
}

.product-enquiry-detail + .product-enquiry-detail {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.product-enquiry-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    background: color-mix(in srgb, var(--product-accent, var(--accent)) 18%, transparent);
    color: var(--product-accent-lift, var(--accent));
    transition: background-color 0.2s ease, color 0.2s ease;
}

.product-enquiry-detail-icon .material-symbols-outlined {
    font-size: 1.2rem;
}

a.product-enquiry-detail:hover .product-enquiry-detail-icon,
a.product-enquiry-detail:focus .product-enquiry-detail-icon {
    background: var(--product-accent, var(--accent));
    color: var(--product-accent-text, var(--secondary));
}

.product-enquiry-detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.product-enquiry-detail-label {
    color: rgba(255, 255, 255, 0.55);
}

.product-enquiry-detail-value {
    font-size: 0.88rem;
    line-height: 1.5;
}

a.product-enquiry-detail:hover .product-enquiry-detail-value {
    color: var(--product-accent-lift, var(--accent));
}

.product-enquiry-form {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: white;
    border-top: 3px solid var(--product-accent, var(--accent));
    color: var(--text);
}

/* ---------- Print ---------- */

@media print {
    .product-actionbar,
    .product-enquiry,
    .product-related,
    .product-categories,
    .product-gallery-thumbs,
    #masthead,
    #topper,
    #site-footer {
        display: none !important;
    }

    .product-hero {
        background: none;
        color: var(--text);
    }

    .product-title,
    .identifier-value {
        color: var(--text);
    }

    .product-summary,
    .identifier-label {
        color: var(--gray);
    }

    .product-tech-grid {
        grid-template-columns: 1fr 1fr;
    }
}
