/*
 * ALAN theme — product pages.
 *
 * Everything scoped to .single-product lives here so product work never
 * touches assets/css/site.css. Loaded after site.css by products/products.php.
 */

/* The wrap is a sibling of the tab panels, so constrain it to the same 1180px
   column and inset the table to the panels' 3.25rem content edge. */
.single-product .comparison-table-wrap--custom { max-width: 1180px; margin-inline: auto; padding: 1rem 3.25rem; }
@media (max-width: 720px) {
  .single-product .comparison-table-wrap--custom { padding: 1rem 1.25rem; }
}
@media (max-width: 900px) {
  .single-product .product-detail-tabs__list,
  .product-detail-tabs__list { flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: .75rem; }
  .single-product .product-detail-tabs__tab,
  .product-detail-tabs__tab { flex: 0 0 auto;
    min-width: 9rem; }
}
/* Product detail reference-page treatment. */
.single-product .product-detail-hero { min-height: 34rem; padding-block: clamp(5rem, 8vw, 8rem); background: #fff; }
.single-product main > .section,
.single-product main > .wp-block-group.section,
.single-product .product-detail-hero,
.single-product .product-gallery-section,
.single-product .product-specifications-section,
.single-product .product-detail-tabs { padding-bottom: 2rem; background: #fff; }
.single-product main > .section::before,
.single-product main > .wp-block-group.section::before { display: none; }
.single-product .product-specifications-section::before { display: block; background: linear-gradient(135deg, #efb8db, #ffe6c5); }
.single-product .product-content { display: none; }
.single-product .product-detail-hero__grid { grid-template-columns: 33.9375rem minmax(0, 1fr); gap: 1.625rem; align-items: start; }
/* Figma: the title runs on one line and overlaps into the gutter. */
@media (min-width: 1025px) { .single-product .product-detail-hero__title { white-space: nowrap; } }
/* Figma product hero: no eyebrow, 70px gradient title with a 100px 4%-black
   echo behind it, and a 22px Comfortaa Bold summary. */
.single-product .product-detail-hero__copy { position: relative; z-index: 1; overflow: visible; }
.single-product .product-detail-hero__headline { position: relative; display: inline-block; }
.single-product .product-detail-hero__echo { position: absolute; z-index: 0; left: calc(50% + 7.85vw); top: calc(50% + 3.06vw); transform: translate(-50%, -50%); font-family: var(--wp--preset--font-family--comfortaa, 'Comfortaa'), sans-serif; font-weight: 600; font-size: clamp(3.5rem, 6.9444vw, 6.25rem); line-height: 1; letter-spacing: -.01em; color: rgb(0 0 0 / 4%); white-space: nowrap; pointer-events: none; user-select: none; }
.single-product .product-detail-hero h1 { position: relative; z-index: 1; margin: 0; font-family: var(--wp--preset--font-family--comfortaa, 'Comfortaa'), sans-serif; font-weight: 600; font-size: clamp(2.25rem, 4.8611vw, 4.375rem); line-height: 1.08; letter-spacing: -.01em; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--pink); text-shadow: none; }
.single-product .product-detail-hero__summary { max-width: 34rem; margin: calc(3.5rem + 20px) 0 0; font-family: var(--wp--preset--font-family--comfortaa, 'Comfortaa'), sans-serif; font-weight: 700; font-size: clamp(1.05rem, 1.5278vw, 1.375rem); line-height: 1.33; letter-spacing: -.01em; color: #000; }
.single-product .product-detail-hero__media { position: relative; z-index: 2; display: grid; width: 100%; max-width: 46.625rem; margin-top: 2rem; place-items: center end; justify-self: end; }
.single-product .product-detail-hero__media img { width: 100%; max-width: 36.625rem; height: auto; object-fit: contain; }
/* Square-ish source shots carry white bands above and below the unit. Crop only
   those bands so the product fills the media box; wider shots keep their frame. */
.single-product .product-detail-hero__media--crop img { aspect-ratio: 2453 / 1451; height: auto; object-fit: cover; object-position: center; }
/* Figma product hero: freeze the 1440 composition in a 1280px content column.
   Only the outside margins change. 1350px also covers a 1366 screen with a
   classic 15px scrollbar. */
@media (min-width: 1350px) {
  .single-product .product-detail-hero__grid { width: min(80rem, calc(100% - 2 * 1.25rem)); }
  .single-product .product-detail-hero { padding-top: 8rem; padding-bottom: 4rem; }
  .single-product .product-detail-hero__media { margin-top: 4.875rem; }
  /* Freeze the type at the Figma 1440 sizes; the clamps would otherwise shrink
     the H1 to 66.4px and the echo to 94.9px at 1366. */
  .single-product .product-detail-hero h1 { font-size: 4.2rem; }
  .single-product .product-detail-hero__headline { display: flex; width: max-content; height: 14.5rem; flex-direction: column; justify-content: center; }
  /* Fixed offsets; the old vw values drift right/down once the content stops
     scaling. */
  .single-product .product-detail-hero__echo { left: calc(50% + 113px); top: calc(50% + 44px); font-size: 6.25rem; }
  .single-product .product-detail-hero__summary { margin-top: 1.375rem; font-size: 1.375rem; }
}
.single-product .product-features { margin-top: 1.25rem; padding-left: 1.25rem; }
.single-product .product-features li::marker { color: var(--pink); }
.single-product .product-feature-specifications { max-width: none; columns: 2; column-gap: 4rem; column-rule: 1px solid #efc5dc; margin: 2rem 0; padding-left: 1.25rem; }
.single-product .product-feature-specifications li { break-inside: avoid; margin: .65rem 0; }
.single-product .product-feature-specifications li::marker { color: var(--pink); }
.single-product .expand-link { display: inline-block; margin-top: 1.5rem; padding: 0; border: 0; color: var(--pink); background: transparent; text-decoration: underline; cursor: pointer; }
.single-product .product-specifications-section .expand-link { display: block; width: max-content; margin: 1rem 0 0; text-align: left; }
.single-product .product-tab-modes .mode-card h3 { color: var(--pink); font-weight: 400; }
.single-product .product-tab-modes .mode-card dt { display: inline; font-weight: 400; }
.single-product .product-tab-modes .mode-card dd { display: inline; margin: 0 0 0 .35rem; }
.single-product .product-tab-modes .mode-card dd::after { content: ''; display: block; margin-bottom: .75rem; }
.single-product .precision-band { padding-block: 5rem; }
.single-product .product-gallery { width: min(861px, calc(100% - (2 * var(--gutter)))); }
.single-product .product-specifications-section { position: relative; z-index: 2; overflow: visible; }
/* Paper: the same 357x459 wash used on the medical page, mirrored at the right edge. */
.single-product .product-specifications-section.section::before { display: block; z-index: 0; top: 32%; right: -17rem; left: auto; width: 28.6875rem; height: 22.3125rem; border-radius: 0; background: url("../assets/images/medical-wash-right.svg") 0 0 / 100% 100% no-repeat; opacity: 1; }
.single-product .product-specifications-section > .container { position: relative; z-index: 1; }
.single-product .product-specifications-section .section-heading { color: var(--pink); font-size: 1.55rem; font-weight: 400; letter-spacing: 0; }
/* Figma "Group 62" is 1146px wide with two 445px columns split by a 256px gap. */
.single-product .product-specifications-section > .container { max-width: 71.625rem !important; }
  /* Group 62 = 1146px */
.single-product .specs { position: relative; max-width: none; grid-template-columns: repeat(2, 1fr); row-gap: 30px; column-gap: 16rem; margin: 4rem auto 0; }
.single-product .specs::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #efc5dc; transform: translateX(-50%); }
.single-product .spec { display: block; padding: 0; border: 0; }
.single-product .spec__label { min-height: 1.45em; margin: 0; color: #999; font-size: .95rem; font-weight: 400; letter-spacing: .12em; text-transform: none; }
.single-product .spec__label:empty { min-height: 0; }
.single-product .spec__value { margin: .75rem 0 0; font-size: 1rem; font-weight: 400; line-height: 1.35; }
.single-product .product-detail-tabs { background: #fff; }
.single-product .product-detail-tabs__toolbar { max-width: 1080px; justify-content: flex-start; margin: 0 auto 2rem; }
.single-product .product-detail-tabs__toolbar .button { min-height: auto; padding: 0; border: 0; color: var(--pink); background: transparent; text-decoration: underline; }
/* Tabs sit left-aligned; with enough of them (e.g. the 7-tab series) the fixed
   basis makes them fill the row evenly instead of spreading a few across it. */
.single-product .product-detail-tabs__list { flex-wrap: nowrap; justify-content: flex-start; gap: 1rem; max-width: 1180px; margin: 0 auto 3rem; border: 0; }
.single-product .product-detail-tabs__tab { display: grid; min-height: 6.5rem; flex: 0 1 10.5rem; place-items: center; gap: .65rem; padding: 1rem .5rem; border: 1px solid #ccc; border-radius: 10px; color: #777; background: #fff; font-size: .75rem; text-align: center; cursor: pointer; transition: all 0.3s ease-in;}
.single-product .product-detail-tabs__tab img { width: 2.25rem; height: 2.25rem; object-fit: contain; opacity: 1; transition: filter .2s ease, opacity .2s ease; }
.single-product .product-detail-tabs__tab[aria-selected="true"] { border-color: var(--pink); color: var(--pink); background: #fff; box-shadow: none;  }
/* Hover lights up the icon only; the label keeps its resting grey. */
.single-product .product-detail-tabs__tab:not([aria-selected="true"]):hover { border-color: var(--pink); color: var(--pink); background: #fff; box-shadow: none; }
.single-product .product-detail-tabs__tab:not([aria-selected="true"]):hover img { filter: drop-shadow(0 0 6px rgb(226 77 143 / 45%)); opacity: 1; }
.single-product .product-detail-tabs__tab[aria-selected="true"] img { filter: none; opacity: 1; }
/* Only the selected tab keeps the pink icon; the rest are greyed out. */
.single-product .product-detail-tabs__tab:not([aria-selected="true"]) img { filter: grayscale(1); opacity: .5; }
.single-product .product-detail-tabs__panel { max-width: 1180px; margin-inline: auto; padding: 3.25rem; border: 3px solid var(--pink); border-radius: 12px; }
/* Tab lists run in one column so each category keeps its own points together. */
.single-product .product-detail-tabs__panel ul { columns: 1; column-gap: 0; margin-block: 0; padding-inline: 1.5rem; }
.single-product .product-detail-tabs__panel > ul { column-rule: 1px solid #efc5dc; }
.single-product .product-detail-tabs__panel li { position: relative; break-inside: avoid; margin: .65rem 0; list-style: none; }
/* No bullet glyph inside the tab panels — the new design lists items plain. */
.single-product .product-detail-tabs__panel .product-tab-section-heading { margin: 0 0 1rem; color: var(--ink); font-size: .78rem; font-weight: 600; letter-spacing: .04em; line-height: 1.35; text-transform: uppercase; }
.single-product .product-detail-tabs__panel h3 { color: var(--ink); font-size: .78rem; font-weight: 600; letter-spacing: .04em; line-height: 1.35; text-transform: uppercase; }
/* Every panel repeats its own tab label as a heading — hide it in all panels.
   The panel is already labelled by the tab via aria-labelledby. */
.single-product .product-detail-tabs__panel > .product-tab-section-heading { display: none; }
.single-product .product-tab-modes { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 6rem; margin: 0; }
.single-product .product-tab-modes::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #efc5dc; transform: translateX(-50%); }
.single-product .product-tab-modes .mode-card { padding: 0; border: 0; border-radius: 0; }
.single-product .product-tab-modes .mode-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.single-product .product-tab-modes .mode-card:nth-child(2) { grid-column: 1; grid-row: 2; }
.single-product .product-tab-modes .mode-card:nth-child(3) { grid-column: 1; grid-row: 3; }
.single-product .product-tab-modes .mode-card:nth-child(4) { grid-column: 2; grid-row: 1; }
.single-product .product-tab-modes .mode-card:nth-child(5) { grid-column: 2; grid-row: 2; }
.single-product .product-tab-modes .mode-card h3 { margin: 0 0 1.5rem; color: var(--pink); font-size: 1rem; font-weight: 400; }
.single-product .product-tab-modes .mode-card dl { display: block; margin: 0; }
.single-product .product-tab-modes .mode-card dt,
.single-product .product-tab-modes .mode-card dd { font-size: .875rem; line-height: 1.45; }
.single-product .product-tab-modes .mode-card dd { margin: 0; }
.single-product .product-tab-modes .mode-card dt { color: var(--ink); font-weight: 400; }
/* Grouped panel sections (e.g. Output Characteristic): a label + its items. */
/* One column: every point stays under its own category heading. */
.single-product .product-tab-groups { columns: 1; column-gap: 0; column-rule: 0; }
.single-product .product-tab-group { break-inside: avoid; margin: 0 0 2.25rem; }
.single-product .product-tab-group h3 { margin: 0 0 .9rem; color: var(--pink); font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.single-product .product-tab-group ul { columns: 1; padding-inline: 0; }
.single-product .product-tab-group li { margin: .45rem 0; }
.single-product .product-detail-tabs--touch5 { padding-top: 2rem; }
.single-product .product-detail-tabs--touch5 .product-detail-tabs__list { display: flex; align-items: stretch; }
.single-product .product-detail-tabs--touch5 .product-detail-tabs__tab { display: grid; place-items: center; gap: .45rem; padding: .75rem .35rem; }
.single-product .product-detail-tabs--touch5 .product-detail-tabs__tab img { width: 1.35rem; height: 1.35rem; object-fit: contain; filter: grayscale(1); opacity: .5; }
.single-product .product-detail-tabs--touch5 .product-detail-tabs__tab[aria-selected="true"] { color: var(--pink); box-shadow: none; }
.single-product .product-detail-tabs--touch5 .product-detail-tabs__tab[aria-selected="true"] img { filter: none; opacity: 1; }
.single-product .product-detail-tabs--touch5 .product-detail-tabs__panel .mode-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.single-product .product-detail-tabs--touch5 .product-detail-tabs__panel h2 { margin-top: 0; }
.single-product .product-detail-tabs--touch5 .mode-card { border: 0; padding: 0 1.5rem; }
.single-product .product-detail-tabs--touch5 .mode-card + .mode-card { border-left: 1px solid #f0c9df; }
.single-product .product-detail-tabs--touch5 .mode-card p { margin: .35rem 0; font-size: .82rem; }
.single-product .cta { background: var(--gradient); color: #fff; }
@media (max-width: 720px) {
  .single-product .product-detail-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .single-product .product-detail-hero__media { min-height: 0; }
  .single-product .specs { grid-template-columns: 1fr; }
  .single-product .specs::before { display: none; }
  .single-product .product-detail-tabs__list { justify-content: flex-start; overflow-x: auto; }
  .single-product .product-detail-tabs__tab { min-width: 9rem; flex: 0 0 auto; }
  .single-product .product-detail-tabs__panel ul { columns: 1; }
  .single-product .product-detail-tabs__panel > ul { column-rule: 0; padding-inline: 0; }
  .single-product .product-feature-specifications { columns: 1; }
  .single-product .product-tab-modes { grid-template-columns: 1fr; }
  .single-product .product-tab-modes::before { display: none; }
  .single-product .product-tab-modes .mode-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .single-product .product-tab-modes .mode-card + .mode-card { border-top: 1px solid #f0c9df; border-left: 0; }
  .single-product .product-detail-tabs__panel { padding: 1.25rem; }
  .single-product .product-tab-groups { columns: 1; column-rule: 0; }
}

/* Category archive + shared product UI (cards, hero mosaic, catalog tabs). */
body .hero-home__grid,
body .solution-grid,
body .timeline,
body .testimonial-grid,
body .article-grid,
body .precision-band__grid,
body .split-section,
body .category-grid,
body .product-list-hero__grid,
body .product-mosaic,
body .catalog-layout,
body .product-grid,
body .product-detail-hero__grid,
body .specs,
body .mode-grid,
body .cta__inner,
body .site-footer__grid { display: grid; }
.product-list-hero { padding-block: clamp(4rem, 7vw, 7rem); }
.product-list-hero::before { left: -15rem; top: 5rem; }
.product-list-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.product-mosaic { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: repeat(2, 14rem); gap: 1rem; }
.product-mosaic figure { margin: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.product-mosaic figure:first-child { grid-row: 1 / 3; }
.product-mosaic img { width: 90%; height: 90%; object-fit: contain; }
/* Values taken from the reference build (Electro Surgical Unit Page, src/index.css):
   .catalog, .category-tabs, .product-grid and .product-card. Fixed pixels on purpose —
   the catalogue is capped at 1280px so cards never stretch on large screens. */
/* Paper: the 1440 Figma band is a 1999 x 819 gradient wash with a shallow
   top-right curve and a white lower region. Built with CSS only: a gradient
   layer and a white rounded overlay replace the former band-arc.svg. */
.tax-product_category .precision-band { position: relative; min-height: 56.88vw; background: none; overflow: visible; }
.tax-product_category .precision-band::before { content: ""; position: absolute; z-index: 0; top: 0; left: -1px; width: 138.82vw; height: 100%; background: linear-gradient(37.1deg, rgba(176,65,152,.4) 0%, rgba(176,65,152,.4) 14.1%, rgba(225,76,141,.4) 47.3%, rgba(255,219,133,.4) 80.4%, rgba(255,219,133,.4) 100%); border-top-right-radius: 49.25vw 18.3vw; }
.tax-product_category .precision-band::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 44%; background: #fff; border-top-right-radius: 13.43vw 8.51vw; }
.tax-product_category .precision-band > * { position: relative; z-index: 1; }
/* The Figma text block is measured at the 1440 design frame. Scale the
   category type with the column below 1440 so the copy never crosses the
   band's white transition, and hit the measured 20/30 and 18/27 at 1440. */
@media (min-width: 1025px) {
  .tax-product_category .precision-band h2 { line-height: 1.2; letter-spacing: -.01em; }
  .tax-product_category .precision-band p { font-size: clamp(16px, 1.3889vw, 20px); line-height: 1.5; margin-bottom: clamp(15px, calc(15px + (100vw - 1024px) * 0.04096), 32px); }
  .tax-product_category .precision-band li { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; margin-bottom: clamp(0px, calc((100vw - 1024px) * 0.03846), 16px); }
  .tax-product_category .precision-band li:last-child { margin-bottom: 0; }
}
.catalog-layout { position: relative; display: grid; grid-template-columns: 25.4375rem minmax(0, 1fr); gap: 1.875rem; align-items: start; width: min(80rem, calc(100% - (2 * var(--gutter)))); margin-inline: auto; padding-block: 0.76vw 11.875rem; }
.catalog-layout .tabs { display: flex; flex-direction: column; gap: 2.5rem; }
/* Reference: 407×94 pills, 1px #b04198 border, label inset 44px at 35px bold. */
.tab-button { --gradient-angle: 270deg; --ring: linear-gradient(var(--gradient-angle), #ffdb85 4.12%, #f7b487 11.74%, #ef8f89 21.53%, #e9728b 30.24%, #e55d8c 40.03%, #e2518d 48.74%, #e24d8e 57.45%, #df4c8e 75.95%, #d74a90 87.93%, #c84792 97.72%, #b44396 105.34%, #af4298 107.52%); display: flex; align-items: center; min-height: 5.875rem; padding: 0 2.75rem; border: 1px solid transparent; border-radius: 1rem; background: linear-gradient(#fff, #fff) padding-box, var(--ring) border-box; color: #000; font-size: 2.1875rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; text-align: left; cursor: pointer; transition: --gradient-angle .6s ease-in-out; }
.tab-button:hover { --gradient-angle: 450deg; }
.tab-button[aria-selected="true"] { --gradient-angle: 450deg; background: linear-gradient(var(--pink-soft), var(--pink-soft)) padding-box, var(--ring) border-box; border-radius: .75rem; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.375rem 1rem; }
/* Paper: the curve belongs to the band above (rounded bottom-right corner),
   the catalogue itself is undecorated. */
.product-catalog { position: relative; z-index: 2; padding-block: 0; overflow: visible; }
/* Figma 84:748 — the notched wash at the far left, 279px above the pills and
   bleeding off the page edge (only its right ~114px is visible). */
.catalog-layout::before { content: ""; position: absolute; z-index: 1; pointer-events: none; left: calc(50% - 50vw); top: -19.5vw; width: 7.8125rem; height: 14.125rem; background: url("../assets/images/catalog-art.svg") 0 0 / 100% 100% no-repeat; }

/* Paper "Product-Category-Electro-Surgical-Unit": 359.52x642.9 SVG rotated -90deg
   about its top-left corner at (x-359.5, y252), 40% gradient. */
.product-list-hero::before { content: ""; position: absolute; z-index: -1; left: -22.47rem; top: 15.75rem; width: 22.47rem; height: 40.18125rem; aspect-ratio: auto; border-radius: 0; background: url("../assets/images/hero-blob.svg") 0 0 / 100% 100% no-repeat; filter: none; transform: rotate(-90deg); transform-origin: 0 0; }
.catalog-layout .tabs,
.catalog-layout__panels { position: relative; z-index: 1; }
.product-card { --gradient-angle: 270deg; --ring: linear-gradient(var(--gradient-angle), #ffdb85 4.12%, #f7b487 11.74%, #ef8f89 21.53%, #e9728b 30.24%, #e55d8c 40.03%, #e2518d 48.74%, #e24d8e 57.45%, #df4c8e 75.95%, #d74a90 87.93%, #c84792 97.72%, #b44396 105.34%, #af4298 107.52%); display: flex; flex-direction: column; min-height: 28.75rem; padding: 1.75rem 1.875rem 1.25rem; border: 1px solid transparent; border-radius: 1rem; background: linear-gradient(#fff, #fff) padding-box, var(--ring) border-box; overflow: hidden; text-decoration: none; transition: background .3s ease, --gradient-angle .6s ease-in-out; isolation: isolate;  position:relative; }
.product-card:before {content: '';position: absolute;top: 0;left: 0;width: 100%;height: 100%;display: flex;--gradient-angle: 450deg;background: linear-gradient(var(--pink-soft), var(--pink-soft)) padding-box, var(--ring) border-box;opacity: 0;transition: opacity 0.3s ease-in;z-index: 0;}
.product-card:hover:before {opacity: 1;}
/* Product shots are white-background JPEGs; "darken" drops that white into the
   card colour so no white box shows on the pink hover (white → background). */
.product-card img { display: block; width: 100%; height: 16.875rem; margin-inline: auto; object-fit: contain; transform: scale(1.12); mix-blend-mode: darken; position: relative; }
.product-card:hover,
.product-card:focus-within { --gradient-angle: 450deg; --ring: linear-gradient(var(--gradient-angle), #ffdb85 4.12%, #f7b487 11.74%, #ef8f89 21.53%, #e9728b 30.24%, #e55d8c 40.03%, #e2518d 48.74%, #e24d8e 57.45%, #df4c8e 75.95%, #d74a90 87.93%, #c84792 97.72%, #b44396 105.34%, #af4298 107.52%); background: linear-gradient(#fff, #fff) padding-box, var(--ring) border-box; }
/* Reference: title reserves two lines (102px) above a fixed 270px shot. */
.product-card h3 { max-width: none; margin: 0; min-height: 6.375rem; font-size: 2.1875rem; font-weight: 700; line-height: 1.45; letter-spacing: -.01em;position: relative; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card__image { display: block; margin: 0; padding: 0; position: relative;}
/* Reference: "Know More" pinned to the bottom, 15px bold, 20px arrow. */
.product-card .text-link { display: inline-flex; align-self: flex-start; align-items: center; gap: .3125rem; margin-top: auto; padding: 0; border: 0; background: transparent; color: #000; font-family: var(--wp--preset--font-family--comfortaa, 'Comfortaa'), sans-serif; font-size: .9375rem; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; text-decoration: none;position: relative; }
.product-card .text-link::after { content: ""; flex: none; width: 1.25rem; height: .875rem; background-color: var(--pink); -webkit-mask: url("../assets/images/icons/arrow-long-right.svg") center / contain no-repeat; mask: url("../assets/images/icons/arrow-long-right.svg") center / contain no-repeat; transition: transform .2s ease; }
.product-card .text-link:hover::after,
.product-card .text-link:focus-visible::after { transform: translateX(4px); }
.product-card .text-link:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.product-card .wp-block-post-title a { color: inherit; text-decoration: none; }
.product-card .wp-block-post-featured-image { margin: 0; }
.product-category-hero__image img { width: 100%; max-height: 34rem; object-fit: contain; }
/* Category hero typography — Figma: 84px / 110% headline, 20px / 150% body. */
.product-list-hero .hero__title { max-width: 618px; color: #0b0701; font-size: clamp(2.5rem, 5.8vw, 5.25rem); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.product-list-hero .hero__copy { max-width: 586px; color: #0b0701; font-size: 1.25rem; font-weight: 400; line-height: 1.5; }
/* Figma collage: 502×339 on top, then 276×339 + 177×217 beneath. */
.product-list-hero .product-mosaic { display: grid; grid-template-columns: 276fr 177fr; grid-template-rows: auto auto; align-items: start; gap: clamp(1rem, 2.4vw, 2.25rem) clamp(1rem, 3vw, 3rem); }
.product-list-hero .product-mosaic figure:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 502 / 339; }
.product-list-hero .product-mosaic figure:nth-child(2) { aspect-ratio: 276 / 339; }
.product-list-hero .product-mosaic figure:nth-child(3) { aspect-ratio: 177 / 217; }
.product-list-hero .product-mosaic figure { border: 1px solid transparent; border-radius: 16px; background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box; }
/* Above the 1440 frame the category archive keeps the frame's fixed content
   sizes: the hero grid stays at 1280px and the precision band keeps its
   1288px Figma group. Scoped to the category archives so the single-product
   page is untouched. */
@media (min-width: 1440px) {
  body.tax-product_category .product-list-hero__grid.container { --container: 1280px; }
  /* Keep the 1440 Figma band thickness above the frame. Only the horizontal
     curve widths scale; the section height, text offset and vertical radii
     stay at their 1440 values. */
  body.tax-product_category .precision-band { /*min-height: 819px;*/ padding-block: 85px; }
  /* body.tax-product_category .precision-band::before { border-top-right-radius: 49.25vw 263.52px; }
  body.tax-product_category .precision-band::after { border-top-right-radius: 13.43vw 122.544px; } */
  /* Keep the catalog wash's vertical offset at its 1440 value so the
     arc/doughnut holds the same distance from the band as the viewport grows. */
  .tax-product_category .catalog-layout::before { top: -280.8px; }
  body.tax-product_category .precision-band__grid.container {
    width: min(1288px, calc(100% - 2 * 76px));
    grid-template-columns: 600px 600px;
    gap: 88px;
  }
}
.product-detail-tabs__toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.product-detail-tabs__list { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.product-detail-tabs__list { scrollbar-width: thin; }
.product-detail-tabs__tab { min-height: 44px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.product-detail-tabs__tab[aria-selected="true"] { color: #fff; background: var(--gradient); }
.product-detail-tabs__panel { padding: clamp(1.5rem, 3vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.product-detail-hero { padding-block: clamp(4rem, 7vw, 6rem); }
.product-detail-hero::before { right: -15rem; top: 8rem; }
.product-detail-hero__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; }
.product-detail-hero h1 { color: var(--pink); }
.product-detail-hero__media img { width: 100%; height: auto; object-fit: contain; filter: none; }
.product-features { max-width: 42rem; margin: 1rem 0 0; padding-left: 1.25rem; }
.product-features li { margin: .35rem 0; }
.product-gallery { position: relative; }
.product-gallery__slide { position: relative; display: flex; min-width: 100%; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 861 / 574; margin: 0; }
.product-gallery__slide img { position: relative; z-index: 1; width: 80.4%; height: auto; max-height: 84%; margin: 0; object-fit: contain; }
/* .product-gallery__slide::after { content: ""; position: relative; z-index: 0; width: 59.56%; height: 10.8%; margin-top: 1%; background: url("../assets/images/detail/product-gallery-shadow.svg") center / 100% 100% no-repeat; } */
.product-spec-table { margin: 3rem 0 2rem; }
.product-spec-table table { width: 100%; border-collapse: collapse; }
.product-spec-table th, .product-spec-table td { width: 50%; padding: 1.5rem 0; border: 0; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.product-spec-table th { color: #8d8d8d; letter-spacing: .06em; }
.product-content .wp-block-details { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.product-content .wp-block-details summary { color: var(--pink); font-size: 1.25rem; font-weight: 600; cursor: pointer; }
@media (max-width: 1024px) {
  .hero-home__grid, .product-list-hero__grid, .product-detail-hero__grid { gap: 2rem; }
  .catalog-layout { grid-template-columns: 1fr; padding-block: 6rem 5rem; }
  /* Below desktop the vector's sweep does not fit the section, so the band
     falls back to one gradient with a rounded corner. */
  .tax-product_category .precision-band { min-height: 0; background: var(--gradient-soft); border-bottom-right-radius: 5rem; }
  .tax-product_category .precision-band::before,
  .tax-product_category .precision-band::after { display: none; }
  .catalog-layout .tabs { flex-direction: row; gap: .75rem; overflow-x: auto; }
  .tab-button { min-width: max-content; min-height: 3.875rem; padding: 0 1.75rem; font-size: 1.4375rem; }
}
@media (max-width: 720px) {
  .product-list-hero { padding-top: calc(var(--header-h) + 1rem); padding-bottom: 2.5rem; }
  .hero-home__grid, .solution-grid, .precision-band__grid, .split-section, .split-section--reverse, .product-list-hero__grid, .product-detail-hero__grid, .cta__inner { grid-template-columns: 1fr; }
  .timeline, .testimonial-grid, .article-grid, .category-grid, .product-grid, .specs, .mode-grid { grid-template-columns: 1fr; }
  .product-mosaic { grid-template-rows: repeat(2, 10rem); }
  .product-card { min-height: 26.875rem; }
  .product-card img { width: 80%; }
  .product-detail-tabs__list { flex-wrap: nowrap; justify-content: flex-start; margin-right: calc(-1 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem; overflow-x: auto; overscroll-behavior-x: contain; }
  .product-detail-tabs__tab { flex: 0 0 auto; white-space: nowrap; }
  .product-detail-tabs__panel { padding: 1.25rem; }
}
.catalog-layout--single { grid-template-columns: 1fr; }
/* Tab icons are masked so they inherit the tab colour (pink active / grey idle). */
.single-product .product-detail-tabs__icon { display: block; width: 2.25rem; height: 2.25rem; background: currentColor; -webkit-mask: var(--tab-icon) center / contain no-repeat; mask: var(--tab-icon) center / contain no-repeat; transition: opacity .2s ease; }
.single-product .product-detail-tabs__tab:not([aria-selected="true"]) .product-detail-tabs__icon { opacity: .55; }
/* Tab tables (warranty / ordering data). */
/* Long tables scroll inside the panel instead of stretching the page. */
.single-product .product-tab-table-wrap { overflow: auto; max-height: 34rem; margin: 0 0 2rem; }
.single-product .product-tab-table-wrap + .product-tab-table-wrap { margin-top: 2rem; }
.single-product .product-tab-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.single-product .product-tab-table th { padding: .85rem 1rem; border-bottom: 1px solid #e6e6e6; color: #555; font-weight: 600; text-align: left; }
.single-product .product-tab-table td { padding: .85rem 1rem; border-bottom: 1px solid #eee; }
.single-product .product-tab-table tbody tr:nth-child(odd) { background: #fafafa; }
.single-product .product-detail-tabs__panel .product-tab-table-title { margin: 2rem 0 .75rem; color: var(--pink); font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.single-product .product-detail-tabs__panel .product-tab-table-title:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .single-product .product-tab-table { min-width: 48rem; }
  .single-product .product-tab-table th,
  .single-product .product-tab-table td:first-child { white-space: nowrap; }
}
.single-product .product-tab-figure { margin: 1.75rem 0 0; }
.single-product .product-tab-figure img { display: block; width: auto; max-width: min(100%, 26rem); height: auto; }

/* Description: two columns driven by [right]/[left] column breaks. */
.single-product .product-tab-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 6rem; }
.single-product .product-tab-column { display: grid; align-content: start; gap: 1.4rem; }
.single-product .product-tab-column .mode-card { margin: 0; }
@media (max-width: 720px) {
  .single-product .product-tab-columns { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* Rich text tab content (left/right editors). */
.single-product .product-tab-rich h3 { margin: 0 0 .5rem; color: var(--pink); font-size: 1rem; font-weight: 400; }
.single-product .product-tab-rich ul { margin: 0 0 .75rem; padding-inline: 1.1rem; }
.single-product .product-tab-rich li { margin: .15rem 0; }
.single-product .product-tab-rich p { margin: 0 0 .6rem; }
.single-product .product-tab-rich :where(p, div, span, ul, ol, li, a, strong, b, em, i, u, font, blockquote, pre, code, td, th) { font-size: inherit !important; }
.single-product .product-tab-rich :where(h1, h2, h3, h4, h5, h6) { font-size: 1rem !important; }
.single-product .product-tab-rich table { width: 100%; margin: 0 0 1rem; border-collapse: collapse; }
.single-product .product-tab-rich th,
.single-product .product-tab-rich td { padding: .5rem; border: 1px solid #eee; text-align: left; }

.single-product .product-tab-columns { position: relative; }
.single-product .product-tab-columns::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #efc5dc; }
@media (max-width: 720px) {
  .single-product .product-tab-columns::before { display: none; }
}

.single-product .product-gallery .carousel__button--prev { left: 0; }
.single-product .product-gallery .carousel__button--next { right: 0; }

.single-product .product-tab-rich img { max-width: 100%; height: auto; }

/* Category banner follows the product banner; only the lower curve is
   mirrored so it opens from the right side. */
.tax-product_category .precision-band { min-height: 0; padding-block: 0 !important; background: var(--gradient-soft); overflow: visible; }
.tax-product_category .precision-band__grid { padding-block: 5rem; }
.tax-product_category .precision-band::before { display: none; }
.tax-product_category .precision-band::after { position: static; content: ''; width: 100%; height: 150px; margin: 0; background: #fff; display: flex; border-radius: 0 150px 0 0; }
.tax-product_category .precision-band h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.12; letter-spacing: normal; }
.tax-product_category .precision-band p { font-size: inherit; line-height: inherit; margin-bottom: 1em; }
.tax-product_category .precision-band li { font-size: inherit; line-height: inherit; margin-bottom: .35em; }
.tax-product_category .precision-band li:last-child { margin-bottom: 0; }
.tax-product_category .catalog-layout::before { top: 0; }
.tax-product_category .catalog-layout { padding-top: 15rem; }
