/*
Theme Name: PETJPG
Theme URI: http://example.com/jution-clone
Author: Antigravity
Author URI: http://example.com
Description: A premium B2B custom silicone manufacturing theme based on jutionsilicone.com.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jution-clone
*/

/* CSS Variables for Theming */
:root {
    --primary-color: #0b8a8b; /* Deep teal/cyan, representing clean silicone */
    --primary-light: #e0f7f8;
    --secondary-color: #2c3e50;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #eaeaea;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(11, 138, 139, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 兜底：彻底移除前台 admin bar 残留占位（顶部黑边） */
html { margin-top: 0 !important; }
html body { margin-top: 0 !important; }
#wpadminbar { display: none !important; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography Enhancements */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title h2 span {
    color: var(--primary-color);
}

.text-gradient {
    background: linear-gradient(90deg, #0c4a6e, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(11, 138, 139, 0.3);
}

.btn-primary:hover {
    background-color: #086b6c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 138, 139, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 7px 18px;
    font-size: 0.85rem;
}

.btn-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    gap: 10px;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Header — scoped to #main-header so we don't accidentally style semantic
   <header class="…"> blocks elsewhere on the page (e.g. template-products.php). */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
    transition: var(--transition);
}

#main-header.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.header-container {
    display: flex;
    /* Center the whole group (LOGO + nav + CTA) on the page instead of
       stretching it edge-to-edge. Item-to-item gap is set explicitly so
       the visible spacing stays consistent regardless of viewport width. */
    justify-content: center;
    align-items: center;
    height: 80px;
    /* Equal spacing on both sides of the nav block — LOGO <-> nav, and
       nav <-> CTA. Internal CSS gaps (nav 30px, CTA 20px) are unchanged. */
    gap: 50px;
    padding-left: 0;
}

/* The logo must sit flush with the left viewport edge. The global .container
   has max-width 1200px and is centered with auto margins + 20px side padding,
   so the logo can never reach the viewport edge on screens wider than 1200px.
   Override both: full-width container + zero left padding. Right padding is
   kept at 20px so the right-side CTA has some breathing room. */
#main-header .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 20px;
}

/* Logo is now part of the centered flex group (see .header-container),
   so no manual horizontal offset is needed. */
#main-header .logo {
    margin-left: 0;
}

/* Desktop: transparent wrapper — children behave as direct flex items of header-container.
   Mobile (<=992px): this wrapper becomes the slide-in drawer. */
.nav-cta-wrap {
    display: contents;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Header CTA is a compact pill, not a page-level .btn. At the default
   12px/28px padding and 16px type it measured 151x54, which is taller than
   the text band around it, and below ~1200px the label broke onto two or
   three lines (the 80px header then cropped the last one). Roughly a third
   smaller keeps the visual weight of the pricing CTA without competing with
   the logo. Scoped to the desktop header so the mobile drawer, which wants a
   full-width button, keeps its own sizing. */
/* 15% up on the previous 114x38 pill, on request: type 13 -> 15px and the
   padding 8/18 -> 10/21, which lands it at 132x44. The label still stays on
   one line, so the header row now needs ~1292px - see the 993-1299 block
   below, which hides the contact column a little earlier to make room. */
@media (min-width: 993px) {
    .header-cta .btn-mobile-quote {
        padding: 10px 21px;
        font-size: 0.9375rem;
        line-height: 1.35;
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

.header-contact {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 0.85rem;
}

.header-contact a {
    color: rgba(15, 23, 42, 0.85);
    font-weight: 500;
    /* Keep each line on one row. Without this the phone number wraps onto a
       second line on narrower desktops, which pushes the block to four rows
       and the last one is cropped by the 80px header. */
    white-space: nowrap;
}

.header-contact a:hover {
    color: var(--primary-color);
}

.logo a {
    display: inline-block;
    line-height: 1;
}

.logo a .logo-img {
    height: 24px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.logo span {
    color: var(--primary-color);
}

/* One type size for the whole desktop nav, 10% down from the 16px body
   default. The drawer rule at <=992px sets its own size, so this only
   affects the horizontal bar. */
.main-nav {
    /* 0.9rem -> 0.765rem was 15% smaller; 5% of that is added back, so the
       bar settles at 12.85px (14.4px -> 12.24px -> 12.85px). The dropdown
       inherits through its 0.95em, so the hierarchy stays intact. */
    font-size: 0.803rem;
}

.main-nav ul {
    display: flex;
    gap: 22px;
}

.main-nav > nav > ul,
.main-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: rgba(15, 23, 42, 0.88);
    font-weight: 500;
    position: relative;
    display: inline-block;
    /* A shrunken flex item used to break "About Us" onto two lines around
       1024px. Labels are one or two words, so they never need to wrap. */
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Dropdown caret for parent items with children.
   It is taken out of the flow and pinned to the right of the label: as an
   inline ::before it used to sit on the LEFT of the word and add ~13px to
   those two items only, so Products / OEM/ODM looked further apart and
   slightly different from the rest of the row. */
.main-nav .menu-item-has-children > a {
    padding-right: 13px;
}

.main-nav .menu-item-has-children > a::before {
    content: '▾';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 0.7em;
    line-height: 1;
    color: rgba(15, 23, 42, 0.5);
    transition: transform 0.25s ease, color 0.25s ease;
}

.main-nav .menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

/* Sub-menu dropdown */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.main-nav .sub-menu li {
    width: 100%;
}

.main-nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: rgba(15, 23, 42, 0.88);
    /* em, not rem: the dropdown keeps its 95% relationship with the bar even
       after the bar shrank to 0.9rem. */
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav .sub-menu a::after {
    display: none; /* no underline animation in sub-menu */
}

.main-nav .sub-menu a:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 4px;
    z-index: 1100;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Hamburger -> X */
.mobile-menu-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn.is-active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-right: 12px;
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    color: rgba(15, 23, 42, 0.88);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: var(--transition);
}

.lang-btn:hover,
.language-switcher.open .lang-btn {
    color: var(--primary-color);
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
}

.lang-flag {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.lang-current {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.lang-arrow {
    font-size: 0.7rem;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.language-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition);
    list-style: none;
    margin: 0;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.language-switcher.open .lang-dropdown,
.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.lang-dropdown a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 0.92rem;
    transition: background 0.15s ease;
}

.lang-dropdown a:hover {
    color: var(--primary-color);
    background: rgba(11, 138, 139, 0.06);
}

.lang-dropdown a.is-active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(11, 138, 139, 0.06);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    max-height: 720px;
    min-height: 480px;
    padding-top: 80px; /* Offset for header */
    overflow: hidden;
    isolation: isolate; /* Create stacking context so z-index:0 on hero-bg stays inside hero */
}

/* A page hero that uses the home hero's look (Projects).
   The home hero's copy placement comes from two things: the slide is a flex
   box that vertically centres the content, and .hero-content then nudges it
   down by 22% — a percentage resolved against the slide's own box. Both steps
   are reproduced here, and crucially the nudge is left as a percentage: a
   fixed px value can only be right at one breakpoint (the desktop figure put
   the copy 92px too low on mobile, where the hero is 480px, not 630px). */
.hero--page {
    /* Half-way between the home banner and a compact band. 16:7 / 720px is
       right for a landing page; this keeps the banner present without making a
       list-driven subpage open on a wall of image. min-height still has to
       clear the 80px header offset plus a two-line heading and its subtitle,
       or the copy would clip at narrow widths. */
    max-height: 540px;
    min-height: 450px;
}

/* The copy sits low in the band so the photo carries the top and the heading
   anchors the lower half — measured on the reference it lands about 82% down.

   It is anchored to the BOTTOM (flex-end plus a fixed 28px gap) rather than
   pushed down by a percentage. A percentage of the track reads correctly at
   540px, but on a narrow viewport the band shrinks to 450px while the copy
   grows to ~150px (the subtitle wraps to three lines), which with a 29% drop
   left only 3px of clearance — one more line and it would fall off the edge.
   A bottom gap cannot overflow: taller copy simply grows upward. */
.hero--page .hero-page-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding-bottom: 28px;
}

/* The home hero's 22% nudge is not used here; placement comes from the
   track's flex-end above. */
.hero--page .hero-content {
    top: 0;
    /* The shared 980px cap squeezed the Projects subtitle into three
       lines. Widen to the container's own limit (1200px minus its 40px
       of side padding) so the copy breathes without changing its size. */
    max-width: 1160px;
}

/* Two lines instead of three: the same string needs ~1064px at this
   font size, and the shared 720px cap on .hero-content p is what forced
   the extra wrap. 1120px leaves a little slack so a longer translation
   still fits. */
.hero--page .hero-content p {
    max-width: 1120px;
}

.hero .hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero .hero-slider .swiper-wrapper {
    height: 100%;
    width: 100%;
}

.hero .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    flex-shrink: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* The banner overlay is gone. It started as a linear wash ending at
   rgba(15, 23, 42, 0.55) - a grey-black band across the bottom third of any
   banner with a flat background - and shrinking it to a radial pool only moved
   the smudge behind the copy. The banners are shown as they are now, and the
   text carries its own contrast (see .hero-is-light below).

   The element stays in the markup because three templates print it; hiding it
   here keeps those untouched. */
.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

.hero-content {
    position: relative;
    top: 22%;
    z-index: 2;
    color: #ffffff;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    /* Slightly below vertical center; `top` used instead of transform to avoid fade-up animation conflict */
    padding: 0 24px;
}

/* Banner copy colour follows the picture.
   main.js samples the band the copy sits in and adds .hero-is-light to the
   slide when it averages brighter than 140 (a 24x24 average of the middle-lower
   area, so a bright window in a corner cannot decide the colour of the type).
   Dark type on a light photo reads far better than white type plus a wash, and
   the wash was the thing flattening the artwork.

   The white halo is invisible against a light background. It is there for the
   places where the same photo turns dark under the words - a subject in dark
   trousers, say - so the glyphs still separate instead of dissolving. */
.hero-is-light .hero-content {
    color: #000000;
}

.hero-is-light .hero-content h1,
.hero-is-light .hero-content h2,
.hero-is-light .hero-content h1 .text-gradient,
.hero-is-light .hero-content h2 .text-gradient {
    color: #000000;
    -webkit-text-fill-color: #000000;
    text-shadow: none;
}

.hero-is-light .hero-content p {
    color: #000000;
    text-shadow: none;
}

/* Slide 2 keeps white type regardless of the sampled brightness: the
   client wants this banner to always read as white on the photo. A dark
   shadow keeps the glyphs legible over the pale wall behind the copy. */
/* A full-frame light black wash keeps the white type legible over the
   whole photo instead of a centre-only gradient, which looked patchy. */
.hero-slide-white .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.22);
}

.hero-slide-white .hero-content {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero-slide-white .hero-content h1,
.hero-slide-white .hero-content h2,
.hero-slide-white .hero-content h1 .text-gradient,
.hero-slide-white .hero-content h2 .text-gradient {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hero-slide-white .hero-content p {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Slides 2 and 3 carry the same styling but are <h2>: one <h1> per page. */
.hero-content h1,
.hero-content h2 {
    color: #ffffff;
    font-size: 2.45rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 14px 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    line-height: 1.1;
}

.hero-content h1 .text-gradient,
.hero-content h2 .text-gradient {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0 auto 32px auto;
    max-width: 720px;
    /* Two layers: a tight one to separate the glyph edge, a wide one to lift
       the line off a light photo. A single 8px blur at 50% disappeared against
       the near-white backgrounds the newer banners use. */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero .btn-outline {
    color: #0c4a6e;
    border-color: #0c4a6e;
    background-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-outline:hover {
    background-color: #0c4a6e;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Pagination Dots — two classes on purpose.
   Swiper ships `.swiper-horizontal > .swiper-pagination-bullets { bottom: 8px }`,
   a two-class selector that beats a single class, so a bare `.hero-pagination`
   rule never applied: the computed bottom was 8px, not the 40px written here,
   which parked the dots on top of the CTA button. Matching its specificity is
   enough to win, because style.css is enqueued after swiper-bundle.min.css.

   24px rather than a larger gap: on a 390px phone the hero copy now runs to
   y=427 in a 480px band, so 40px left only 3px between the last line and the
   dots. 24px keeps 19px of clearance there and still leaves 31-44px on wider
   screens, where the copy is shorter relative to the band. */
.hero-pagination.swiper-pagination-horizontal {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-pagination /* Tap targets for the carousel dots.
   The dots are 8-10px square, well under the 24px minimum, so this adds a
   pseudo-element hit area around each one. A pseudo element belongs to its
   element and takes the clicks, but occupies no layout and paints nothing - the
   dot cannot change size or colour. Padding would have: an active dot paints a
   background, and `background` is a shorthand that would reset any
   background-clip used to keep the enlarged box invisible. */
.swiper-pagination-bullet {
    position: relative;
}

.swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    inset: -8px;
}

/* The active dot is a wide pill; only its height needs help. */
.swiper-pagination-bullet-active::before {
    inset: -7px 0;
}

.swiper-pagination-bullet-active {
    background: #ffffff;
    width: 28px;
    border-radius: 5px;
}

/* Features Grid */
/* Header band above the four value-prop cards. Sizes are the reference
   site's measured values (title 32/800/-0.5px #0f172a, subtitle 15/400
   #64748b capped at 720px), so the block reads the same as the original. */
.features-intro {
    text-align: center;
    margin-bottom: 35px;
}

.features-intro-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin: 0 0 12px;
}

.features-intro-subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-intro-title {
        font-size: 24px;
        letter-spacing: -0.3px;
    }
}

/* Audience router below the featured showcase: one card per business model.
   Sizes are the reference site's measured values (heading 28/700/+0.28px #0f172a
   and 16/1.65 #64748b capped at 700px; kicker 12/600/+0.48px uppercase #2f855a;
   card title 18.7/600 #0f172a; body 15/1.65 #64748b; white cards with a 1px
   #e2e8f0 border, 12px radius, 28/24 padding and 20px gaps). */
.growth-router {
    scroll-margin-top: 100px;
}

.growth-header {
    text-align: center;
    margin-bottom: 40px;
}

.growth-header h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.28px;
    color: #0f172a;
    margin: 0 0 10px;
}

.growth-header p {
    font-size: 16px;
    line-height: 1.65;
    color: #64748b;
    max-width: 700px;
    margin: 10px auto 0;
}

.growth-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.growth-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.growth-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.growth-card-tag {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0.48px;
    text-transform: uppercase;
    color: #2f855a;
    margin: 0 0 12px;
}

.growth-card-title {
    font-size: 18.72px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 12px;
}

.growth-card-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #64748b;
    margin: 0 0 24px;
}

.growth-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-top: auto;
}

.growth-card-cta svg {
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

a.growth-card:hover .growth-card-cta svg {
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .growth-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .growth-header h2 {
        font-size: 24px;
        letter-spacing: 0.2px;
    }

    .growth-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.features {
    margin-top: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-bottom-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    height: 246px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .icon img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-style: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
    text-transform: none;
    color: var(--text-color);
}

/* Contact Form Section */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-form .form-row .form-group {
    margin-bottom: 0;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #b73922;
}

.contact-form .btn-submit {
    width: 100%;
    background-color: #b73922;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 4px;
    margin-top: 10px;
}

.contact-form .btn-submit:hover {
    background-color: #902a17;
}

@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Product Slider */
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.product-card .img-wrapper {
    height: 250px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* Home page product carousel only (.product-card appears nowhere else): the
   card title is 30% smaller than the shared 1.4rem h3 — 22.4px → 15.68px,
   which also matches the products grid card title at 0.98rem. The line height
   comes from the unitless 1.2 on h1-h4, so it scales on its own. */
.product-card .card-content h3 {
    font-size: 0.98rem;
}

/* Capabilities (OEM/ODM) - New Layout */
.bg-oem {
    background-color: #edf2ef;
}

.oem-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.oem-layout .cap-text {
    flex: 1;
}

.oem-layout .cap-process {
    flex: 1;
}

.oem-badge {
    display: inline-block;
    background-color: #fcece0;
    color: #df6433;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.oem-layout h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2b3334;
}

.oem-layout p {
    color: #6a6a6a;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.oem-checklist {
    margin-bottom: 35px;
}

.oem-checklist li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: #df6433;
    border-radius: 50%;
}

.check-icon::after {
    content: '';
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.oem-buttons {
    display: flex;
    gap: 15px;
}

.btn-oem-primary {
    background-color: #b73922;
    color: white;
    border: 2px solid #b73922;
    border-radius: 4px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.btn-oem-primary:hover {
    background-color: #902a17;
    color: white;
}

.btn-oem-outline {
    background-color: transparent;
    color: #b73922;
    border: 2px solid #b73922;
    border-radius: 4px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.btn-oem-outline:hover {
    background-color: #b73922;
    color: white;
}

/* Homepage OEM/ODM CTA pair. These two used to be red rectangles, which put them
   in a different button family from the rest of the site; they now follow the
   same pill + deep-teal language as the header's "Get a Quote". Scoped to
   .oem-buttons on purpose: the 404 page uses btn-oem-outline too and stays red. */
.oem-buttons .btn-oem-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(11, 138, 139, 0.3);
}

.oem-buttons .btn-oem-primary:hover {
    background-color: #086b6c;
    border-color: #086b6c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 138, 139, 0.4);
}

.oem-buttons .btn-oem-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.oem-buttons .btn-oem-outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 138, 139, 0.3);
}

/* On a phone the pair had to share one row, so both labels broke into two lines
   inside the pill. Stack them instead and keep each label on one line. */
@media (max-width: 768px) {
    .oem-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .oem-buttons .btn-oem-primary,
    .oem-buttons .btn-oem-outline {
        flex: 1 1 100%;
        white-space: nowrap;
    }
}

/* Process Card */
.process-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.process-header {
    text-align: center;
    border-bottom: 2px dotted #f26b38;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.process-header h3 {
    font-size: 1.4rem;
    color: #333;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-icon {
    font-size: 1.8rem;
    color: #777;
    background: #f8f9fa;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.step-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #444;
}

.step-text p {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
}

/* Blog Section — horizontal scroller.
   .container pads the title on either side, but the cards must overflow on
   the right so visitors can scroll/swipe. We achieve this by switching the
   grid to a flex row with overflow-x:auto + scroll-snap, and letting the
   grid bleed past the container's right edge via negative margin + scroll
   padding. On mobile the cards span ~80% of the viewport to mimic a swipe
   deck; on desktop they're fixed width so 3 fit per "page" and the rest
   reveal via the scrollbar. */
.blog-grid-wrapper {
    position: relative; /* anchor for the absolutely-positioned arrow buttons */
}

.blog-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    /* No more right-edge bleed — the prev/next arrows provide navigation. */
    padding-bottom: 8px; /* leave room for the scrollbar */
    -webkit-overflow-scrolling: touch;
}

/* Slim, unobtrusive scrollbar — keeps the Apple-style clean look while still
   signalling that the row is scrollable on desktop. */
.blog-grid::-webkit-scrollbar {
    height: 8px;
}
.blog-grid::-webkit-scrollbar-track {
    background: transparent;
}
.blog-grid::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
}
.blog-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.32);
}
.blog-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
}

/* Carousel arrows — one centred pair under the card row, in the same shape
   as the home page sliders (see "Unified carousel buttons" further down).
   The buttons fade and disable themselves at the scroll extremes. */
.blog-grid-wrapper {
    position: relative;   /* anchor for the absolutely-positioned arrows */
    padding-bottom: 52px; /* 36px button + 16px gap under the cards */
}

.blog-grid-wrapper .blog-grid-arrow {
    position: absolute;
    top: auto;
    bottom: 0;
    z-index: 5;
}

.blog-grid-wrapper .blog-grid-arrow:focus-visible {
    outline: 2px solid var(--primary-color, #20a4a4);
    outline-offset: 3px;
}

.blog-grid-wrapper .blog-grid-arrow[disabled] {
    cursor: not-allowed;
}

.blog-grid-wrapper .blog-grid-arrow--prev {
    left: calc(50% - 44px);
    right: auto;
}

.blog-grid-wrapper .blog-grid-arrow--next {
    left: calc(50% + 8px);
    right: auto;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    flex: 0 0 auto;
    /* Desktop: ~1/3 of the .container width minus gap, so 3 fit per "page".
       Min keeps the card from collapsing on narrow viewports; max prevents
       the card from stretching uncomfortably on ultrawide displays. */
    width: clamp(260px, calc((100% - 48px) / 3), 380px);
    scroll-snap-align: start;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.blog-img {
    height: 200px;
}

.blog-content {
    padding: 25px;
}

.blog-content .date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* =========================================================================
 * Unified Page Hero — shared banner for Products / About Us / Blog.
 * Editable via the "Page Hero" meta box (title / subtitle / banner image).
 * Without a banner image the section is a flat colour band; with an image
 * it becomes a full-bleed photo + dark overlay + white text.
 * ========================================================================= */
.page-hero {
    position: relative;
    text-align: center;
    padding: 170px 0 90px; /* clears the fixed site header */
    background: var(--bg-color, #f8f7f4);
    overflow: hidden;
    isolation: isolate;
}

.page-hero.page-hero--image {
    background: #0f172a; /* fallback while the image loads */
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(15, 23, 42, 0.45) 0%,
        rgba(15, 23, 42, 0.55) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
    color: var(--secondary-color, #1a252f);
}

.page-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-light, #5a4a3a);
}

/* With a banner image the text flips to white on the dark overlay. */
.page-hero--image .page-hero-title,
.page-hero--image .blog-list-hero-title {
    color: #ffffff !important;
}

.page-hero--image .page-hero-subtitle,
.page-hero--image .blog-list-hero-sub {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Services hero featured image rendered when admin sets it as a banner
   via the Page Hero meta box (image variant only). Default compact layout
   uses .shop-services-image inside .shop-page-header instead. */
.page-hero-services-image {
    margin: 36px auto 0;
    max-width: 480px;
}
.page-hero-services-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

/* Mobile: collapse the page-hero padding so the giant gray band doesn't
   dominate small viewports (no banner image set). */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 50px;
    }
    .page-hero-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }
    .page-hero-subtitle {
        font-size: 0.95rem;
        padding: 0 16px;
    }
}

/* Blog Card Read More button — inherits btn-link style but as <button> */
.blog-card .blog-read-more {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.blog-card .blog-read-more:focus-visible {
    outline: 2px solid var(--primary-color, #00bcd4);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Blog Modal Lightbox — opened by .blog-modal-trigger click */
.blog-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.blog-modal[aria-hidden="false"] {
    display: flex;
    animation: blog-modal-fade 0.18s ease-out;
}

@keyframes blog-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.blog-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.blog-modal-dialog {
    position: relative;
    z-index: 1;
    background: #ffffff;
    width: min(880px, 100%);
    max-height: calc(100vh - 48px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: blog-modal-slide 0.22s ease-out;
}

@keyframes blog-modal-slide {
    from { transform: translateY(16px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.blog-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s, transform 0.15s;
}

.blog-modal-close:hover,
.blog-modal-close:focus-visible {
    background: #f0f0f0;
    transform: scale(1.05);
    outline: none;
}

.blog-modal-body {
    overflow-y: auto;
    padding: 36px 48px 40px;
    flex: 1 1 auto;
}

.blog-modal-meta {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-modal-title {
    font-size: 1.75rem;
    line-height: 1.25;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.blog-modal-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.blog-modal-content p {
    margin: 0 0 16px;
}

.blog-modal-content h2,
.blog-modal-content h3,
.blog-modal-content h4 {
    margin: 28px 0 14px;
    color: #1a1a1a;
}

.blog-modal-content h2 { font-size: 1.5rem; }
.blog-modal-content h3 { font-size: 1.25rem; }
.blog-modal-content h4 { font-size: 1.1rem; }

.blog-modal-content ul,
.blog-modal-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.blog-modal-content li {
    margin-bottom: 6px;
}

.blog-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.blog-modal-content a {
    color: var(--primary-color, #00bcd4);
    text-decoration: underline;
    word-break: break-word;
}

.blog-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.blog-modal-content table th,
.blog-modal-content table td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}

.blog-modal-content table th {
    background: #f7f7f7;
    font-weight: 600;
}

/* Body lock helper — toggled by JS to prevent background scrolling */
body.blog-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .blog-modal-body {
        padding: 24px 20px 28px;
    }
    .blog-modal-title {
        font-size: 1.35rem;
    }
}

/* Responsive page hero (only used when a banner image is set). */
@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 60px;
    }
    .page-hero-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
    .page-hero-subtitle {
        font-size: 0.95rem;
    }
}

/* About Us page hero: warm cream band matching the Blog hero palette
   (50% lighter than .blog-list-hero's #f5ecdf → #faf6ef). */
.page-template-template-about .page-hero {
    background: #faf6ef;
}

/* About Us hero heading, 30% smaller.
   The shared .page-hero-title clamp (2.2rem -> 3.4rem) was sized for the
   378px flat band; this page runs a 460px photo banner, and at 54.4px the
   heading covers the whole frame above the subtitle. Every term of that
   clamp is scaled by 0.7 (2.2 -> 1.54, 4.5vw -> 3.15vw, 3.4 -> 2.38) so the
   heading keeps the same size curve across breakpoints, just 30% quieter.
   Scoped to the About page only - Products / Blog heroes keep their size. */
.page-template-template-about .page-hero-title {
    font-size: clamp(1.54rem, 3.15vw, 2.38rem);
    /* At 30% smaller the whole sentence almost fits one row, so the browser
       broke it as "...Pet Brands &" / "Distributors" - a one-word widow.
       Capping the measure at 22em restores the original two-line break:
       "Global Pet" needs 20.2-20.6em and adding "Brands" needs 24em, so
       the cap sits in the gap. Using em (not px) keeps that break as the
       clamp changes size across breakpoints. */
    max-width: 22em;
    margin-left: auto;
    margin-right: auto;
}

/* Same 0.7 factor on the <=768px clamp (1.8 / 6vw / 2.4 -> 1.26 / 4.2vw / 1.68). */
@media (max-width: 768px) {
    .page-template-template-about .page-hero-title {
        font-size: clamp(1.26rem, 4.2vw, 1.68rem);
    }
}

/* Blog index (/blog/)
   Hero + a 3-column card grid modelled on willfine.com/blog, rebuilt as
   repeatable modules (intro / grid / cta). Every class below starts with
   .blog- and is only emitted by template-blog.php, so no other page is
   affected. Hero keeps the warm cream band used by the Featured Showcase. */
.blog-list-hero {
    background: #f5ecdf;
    color: #1a252f;
    text-align: center;
    /* The band carries a standfirst, a paragraph, four points and two
       buttons on top of the title, so it needs far less air than the old
       294/155 split (which pushed it to 752px once the copy was added). */
    padding: 190px 0 90px;
    margin: 0;
}

.blog-list-hero-title {
    color: #1a252f !important;
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 18px;
    text-transform: none;
}

.blog-list-hero-sub {
    color: #5a4a3a !important;
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Lighter banner mask, on request: exactly half of the shared
   .page-hero-overlay (0.45 -> 0.225, 0.55 -> 0.275). Scoped to
   .blog-list-hero so the About / Products banners keep their weight. */
.blog-list-hero .page-hero-overlay {
    background: linear-gradient(to bottom,
        rgba(15, 23, 42, 0.225) 0%,
        rgba(15, 23, 42, 0.275) 100%);
}

/* Richer first screen: a standfirst, up to four check-mark points and two
   buttons, left-aligned inside the banner like the reference layout. Every
   colour has a photo-less fallback so the block still reads on the flat band. */
.blog-list-hero .blog-hero-inner {
    text-align: left;
}

.blog-list-hero .blog-list-hero-title {
    margin-bottom: 10px;
}

.blog-list-hero .blog-list-hero-sub {
    margin: 0 0 20px;
    max-width: 760px;
}

.blog-hero-heading {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    color: #1a252f;
}

.blog-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.blog-hero-point {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a252f;
}

.blog-hero-check {
    flex: none;
    color: #0b8a8b;
}

.blog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* The client wanted these two a third smaller than the site-wide .btn.
   Type, padding and border all scale by 2/3 so the pill keeps its shape:
   53.6px tall becomes 35.1px, 215/246 wide become 143/164. */
.blog-hero-actions .btn {
    padding: 8px 19px;
    font-size: 0.667rem;
    border-width: 1px;
}

/* Over a photo the copy flips to white, like the other banner heroes. */
.page-hero--image .blog-hero-heading,
.page-hero--image .blog-hero-point {
    color: #ffffff;
}

.page-hero--image .blog-hero-check {
    color: #5eead4;
}

.page-hero--image .blog-list-hero-sub {
    color: #ffffff;
}

/* A halo, not a mask: the client wants the photo light, so the text has to
   hold itself up. Same trick the home hero uses for light backgrounds. */
.page-hero--image .blog-hero-heading,
.page-hero--image .blog-list-hero-sub,
.page-hero--image .blog-hero-point {
    text-shadow: 0 1px 12px rgba(10, 16, 28, 0.55);
}

@media (max-width: 900px) {
    .blog-list-hero {
        padding: 130px 0 64px;
    }

    .blog-hero-points {
        gap: 8px 18px;
        margin-bottom: 20px;
    }
}

.blog-page {
    background-color: #fff;
}

/* Visually hidden, still read by screen readers and search engines. The
   theme had no utility for this; it is used by the card "Read more" link. */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Intro module ------------------------------------------------------- */
.blog-intro {
    padding: 64px 0 8px;
    text-align: center;
}

.blog-intro-kicker {
    margin: 0 0 12px;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-intro-text {
    max-width: 760px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 1.0625rem;
    line-height: 1.75;
}

/* ---- Article grid module ------------------------------------------------ */
.blog-section {
    padding: 48px 0 24px;
}

.blog-section-title {
    margin: 0 0 10px;
    color: #111827;
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    font-weight: 700;
    line-height: 1.25;
}

.blog-section-sub {
    max-width: 720px;
    margin: 0 0 34px;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
}

.blog-post {
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Other pages deep-link to /blog/#<title-slug>. The fixed header's opaque
       bar ends at 85px; a cold load onto a #hash lands 30px higher than the
       declared margin (measured 70 at 100px, 80 at 110px), so 120 leaves the
       card 5px clear of the bar instead of 5px behind it. */
    scroll-margin-top: 120px;
}

.blog-post-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #e9ecef;
    text-decoration: none;
}

.blog-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-post:hover .blog-post-media img {
    transform: scale(1.04);
}

.blog-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.2rem;
    opacity: 0.3;
}

/* Category label: sits under the thumbnail at the top of the card body. It was
   an absolute pill over the photo, which forced it onto one clipped line; on
   request it now reads as a quiet tag and may wrap, so the whole category
   shows. Kept neutral so it stays quieter than the teal date underneath. */
.blog-post-chip {
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #4b5563;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.blog-post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 16px;
}

.blog-post-date {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-post-title {
    margin: 0 0 10px;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.45;
}

.blog-post-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-excerpt {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.65;
}

.blog-post-more {
    margin-top: auto;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-post-more:hover {
    text-decoration: underline;
}

/* ---- CTA module --------------------------------------------------------- */
.blog-cta {
    margin: 56px 0 96px;
    padding: 44px 36px;
    border-radius: 16px;
    background: #f7f5f1;
    text-align: center;
}

.blog-cta-title {
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
}

.blog-cta-text {
    max-width: 660px;
    margin: 0 auto 24px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
}

.blog-cta-btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-cta-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 1024px) {
    .blog-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 26px;
    }
}

@media (max-width: 640px) {
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .blog-intro {
        padding-top: 44px;
    }
    .blog-cta {
        margin-bottom: 72px;
        padding: 32px 22px;
    }
}

/* Footer body copy: shrink the framed text (company blurb, quick links,\n   contact info, subscribe description) by 30% so the footer reads as a\n   compact data block under the quick-link headers. 1rem -> 0.7rem. */
footer {
    background-color: #f5f5f5;
    color: #2c3e50;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer .logo a {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-col:nth-child(2) {
    padding-left: 112px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .footer-col:nth-child(1),
    .footer-col:nth-child(3) {
        align-self: start;
    }
    /* The desktop layout offsets the middle Quick Links column 112px to the
       right to spread the three columns; on a stacked single-column footer
       that offset survives and shoves the whole block past the shared left
       edge of the blurb and Contact Us columns, so it is dropped here. */
    .footer-col:nth-child(2) {
        padding-left: 0;
    }
}

footer h3,
footer h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer ul li {
    margin-bottom: 10px;
    font-size: 0.77rem;
}

footer ul a {
    color: #4a5568;
}

footer ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer body copy in the left column (company blurb) was rendering noticeably
   smaller than the right-side <li> items at the same nominal 0.77rem, because
   the paragraph inherits the body line-height 1.6 and stretches across a narrow
   column making the type look thinner than the single-line list entries next
   to it. Bumped to 0.95rem so the description paragraph visually matches the
   Quick Links / Contact Us list items next to it. */
footer p {
    color: #4a5568;
    font-size: 0.86rem;
    line-height: 1.5;
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.subscribe-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: #086b6c;
}

.footer-bottom {
    background-color: #f5f5f5;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Animations & Interactivity */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1,
    .hero-content h2 { font-size: 2.1rem; }
    .cap-split { flex-direction: column; }
}

/* Narrow desktop / large tablet (993px - 1279px) --------------------------
   Above the drawer breakpoint the header lays the logo, the nav, the contact
   block and the CTA out in one centred row. That row needs about 1292px now
   that the CTA is 15% larger (it needed 1275px before), so between 993px and
   1299px it overflowed the container: the logo was clipped on the left and
   the CTA ran past the right edge. Dropping the contact block and tightening
   the group gap frees ~190px, which is what the row needs to fit.

   The phone / e-mail / WhatsApp details are not lost: they stay in the
   drawer below 992px, and in the footer and the floating bar at every width. */
@media (min-width: 993px) and (max-width: 1299px) {
    .header-container {
        gap: 32px;
    }
    .header-contact {
        display: none;
    }
}

/* Below ~1100px the nav is at its widest relative to the screen and the
   larger CTA tips the row over the left edge (the logo was clipped by 24px
   at 993px). Tightening the group gap only in this narrow band hands back
   the space the row needs without touching the nav's own 22px rhythm; the
   last 27px before the drawer breakpoint need the extra 6px. */
@media (min-width: 993px) and (max-width: 1099px) {
    .header-container {
        gap: 16px;
    }
}

@media (min-width: 993px) and (max-width: 1019px) {
    .header-container {
        gap: 10px;
    }
}

/* ==========================================
   Mobile Drawer — slide-in panel (<= 992px)
   ========================================== */
@media (max-width: 992px) {
    .header-container {
        height: 64px;
        /* On mobile, only .logo and .mobile-menu-btn are visible flex
           children (nav-cta-wrap becomes the slide-in drawer), so we
           revert to space-between to push them to opposite ends. */
        justify-content: space-between;
    }
    .mobile-menu-btn { display: flex; }
    /* backdrop-filter creates a containing block for fixed descendants —
       must be off, otherwise the drawer/backdrop are clipped to the 64px header box */
    #main-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* The wrapper becomes a fixed slide-in drawer from the right */
    .nav-cta-wrap {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 88vw);
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        z-index: 1200;
        transform: translateX(105%);
        transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: calc(18px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
        box-shadow: -18px 0 48px rgba(15, 23, 42, 0.16);
        will-change: transform;
    }
    #main-header.menu-open .nav-cta-wrap {
        transform: translateX(0);
    }

    /* RTL (Arabic): drawer slides in from the left */
    [dir="rtl"] .nav-cta-wrap {
        right: auto;
        left: 0;
        transform: translateX(-105%);
        box-shadow: 18px 0 48px rgba(15, 23, 42, 0.16);
    }
    [dir="rtl"] #main-header.menu-open .nav-cta-wrap {
        transform: translateX(0);
    }

    /* Backdrop overlay */
    .mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1150;
    }
    #main-header.menu-open .mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    /* Nav list inside the drawer */
    .main-nav {
        display: block;
        width: 100%;
    }
    .main-nav ul,
    .main-nav > ul {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }
    .main-nav > ul > li:last-child { border-bottom: none; }
    .main-nav a {
        display: block;
        padding: 16px 40px 16px 0;
        /* Third step down (1.05rem → 1rem → 0.95rem → 0.9rem): the seven
           top-level labels keep shrinking toward the language chips, so the
           sub-menu follows to 0.85rem to preserve the two-tier hierarchy. */
        font-size: 0.9rem;
        font-weight: 500;
    }
    .main-nav a::after { display: none; }

    /* Hide desktop ▾ caret; parents get a + / − indicator instead */
    .main-nav .menu-item-has-children > a::before { display: none; }
    .main-nav .menu-item-has-children > a {
        position: relative;
        padding-right: 44px;
    }
    .main-nav .menu-item-has-children > a::after {
        content: '+';
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        line-height: 1;
        color: rgba(15, 23, 42, 0.4);
        background: none;
        width: auto;
        height: auto;
        font-weight: 300;
        display: block;
        transition: color 0.3s ease;
    }
    .main-nav .menu-item-has-children.is-open > a::after {
        content: '−';
        color: var(--primary-color);
    }

    /* Sub-menu: animated accordion (height animated by JS).
       transform: none is required — the desktop dropdown rule leaves a
       translateX(-50%) that, with position switched to static, would still
       drag the panel half its width past the drawer's left edge. */
    .main-nav .sub-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        background: rgba(15, 23, 42, 0.03);
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        border-radius: 10px;
        margin: 0 0 10px 0;
        transition: max-height 0.35s ease;
    }
    .main-nav .sub-menu li { border-bottom: none; }
    /* The desktop :hover / :focus-within rule (higher specificity) re-applies
       translateX(-50%) the moment the parent is tapped and stays hovered, so
       it must be explicitly cancelled here with the same specificity. */
    .main-nav .menu-item-has-children:hover > .sub-menu,
    .main-nav .menu-item-has-children:focus-within > .sub-menu {
        transform: none;
    }
    .main-nav .sub-menu a {
        padding: 12px 18px;
        font-size: 0.85rem;
        color: rgba(15, 23, 42, 0.72);
    }
    .main-nav .sub-menu a:hover {
        color: var(--primary-color);
        background: rgba(0, 168, 204, 0.05);
    }

    /* CTA block pinned to the bottom of the drawer */
    .header-cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid rgba(15, 23, 42, 0.1);
    }

    /* Language switcher: dropdown becomes an always-visible chip cloud */
    .nav-cta-wrap .language-switcher {
        margin-right: 0;
        width: 100%;
    }
    .nav-cta-wrap .lang-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 2px 0 10px;
        font-size: 0.95rem;
    }
    .nav-cta-wrap .lang-dropdown {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
    }
    .nav-cta-wrap .lang-dropdown a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 14px;
        font-size: 0.88rem;
        border: 1px solid rgba(15, 23, 42, 0.14);
        border-radius: 999px;
        white-space: nowrap;
        background: #fff;
    }
    .nav-cta-wrap .lang-dropdown a:hover {
        background: rgba(0, 168, 204, 0.06);
    }
    .nav-cta-wrap .lang-dropdown a.is-active {
        border-color: var(--primary-color);
        color: var(--primary-color);
        background: rgba(0, 168, 204, 0.08);
        font-weight: 600;
    }

    /* Contact links: stacked, bigger tap targets */
    .header-contact {
        flex-direction: column;
        text-align: left;
        gap: 10px;
        font-size: 0.95rem;
    }
    .header-contact a {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 0;
        word-break: break-all;
    }

    /* Get a Quote: full-width button */
    .btn-mobile-quote {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 13px 20px;
        font-size: 1rem;
    }
}

/* The 22% nudge below centre needs a tall band. Below ~1384px the hero has
   already hit its 480px min-height while the copy stays ~178px tall, so the
   nudge walks the last line down towards the pagination dots: measured at
   1280px the gap is 12px on both the home hero and the subpage hero, against
   446px of clearance at 1440px. Solving the layout for a 24px minimum gives
   hero >= 605px, which is 1384px of viewport, so centre the copy below that. */
@media (max-width: 1383px) {
    .hero-content {
        top: 0;
    }
}

/* Slide 1 frames its subject around the middle of the band, but slides 2 and 3
   put a hand and the edge of a tray exactly where the 22% nudge lands the
   heading, so the words cut across the product. Those two sit 8 percentage
   points deeper (121px -> 165px on a 550px band, leaving 64px of clearance
   under the subtitle); the first keeps the shared offset.

   Kept inside min-width rather than overriding the media query below: under
   1384px the copy is centred on purpose, because the band is only 480px tall
   and any nudge walks the last line down onto the pagination dots.

   nth-child is safe here - one slide per view means Swiper's loop never moves
   the slides in the DOM (checked after five advances: the order was unchanged). */
@media (min-width: 1384px) {
    .hero .swiper-slide:nth-child(n+2) .hero-content {
        top: 30%;
    }
}

/* Small phones: hero/layout tweaks */
@media (max-width: 768px) {
    /* The band is 480px tall here while the copy is ~245px, so the 22% nudge
       pushed it 10px past the bottom edge (content bottom 490 vs band 480) —
       which is what let the pagination dots land on the CTA button. Centre it
       instead, and inset both sides so the fixed social rail (40px wide plus
       an 8px inset) can no longer cover the button or the tail of a line. */
    .hero-content {
        top: 0;
        padding: 0 52px;
    }
    .hero-content h1,
    .hero-content h2 { font-size: 1.75rem; }
    .hero-buttons { flex-direction: column; }
    .features { margin-top: 40px; }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.pagination .page-numbers:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}
.pagination .page-numbers.next, 
.pagination .page-numbers.prev {
    width: auto;
    padding: 0 15px;
}

/* ==========================================
   Featured Product Showcase (Pet Feeder)
   ========================================== */
.featured-product {
    background: #faf6ef;
    padding: 80px 0;
}

/* 让所有 .featured-card 在水平方向基线对齐（卡片底边一致） */
.featured-slider .swiper-slide {
    height: auto;
    display: flex;
}

.featured-banner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.featured-banner-content h2 {
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--secondary-color);
}

.featured-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 28px;
}

/* When the banner links to a product page the title sits inside an anchor; it
   has to keep the heading colour and lose the underline. */
.featured-banner-content h2 a {
    color: inherit;
    text-decoration: none;
}

.featured-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.featured-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #2d5a3d, #1f4a2e);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.featured-pill .pill-icon {
    font-size: 16px;
    line-height: 1;
}

.featured-banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.featured-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f3f3;
    flex-shrink: 0;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-card-content {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.featured-card-content h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.featured-card-content p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.featured-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 50px;
}

.featured-footer-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 30px;
    color: var(--text-color);
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.footer-tag-icon {
    font-size: 18px;
    line-height: 1;
}

/* Unified carousel buttons (‹ ›) — measured off the iPhone Duo reference:/r/n   a 36px light-grey circle with a slim 16px chevron, 16px apart. The product
   carousel, the featured-product cards, the fountain showcase and the
   .blog-grid rows (home blog + Projects service cards) all use this one rule,
   so every slider on the site shares the same circle size and chevron weight.
   The chevron is an inline SVG background rather than the swiper icon font:/r/n   no extra request, and the 1.7px stroke stays crisp at any circle size. */
.products-nav,
.featured-nav,
.fountain-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    position: relative;
    z-index: 2;
}

/* Even out the card heights. Swiper sizes the track from the tallest card, so
   a single long title used to leave a ~65px blank band under the shorter cards
   and the arrow row drifted far below them. Stretching every card to the track
   height removes that band, so the arrows sit the same 24px from the cards at
   every width. */
.product-slider .swiper-slide,
.featured-slider .swiper-slide {
    height: auto;
    display: flex;
}

.product-slider .product-card,
.featured-slider .featured-card {
    height: 100%;
    width: 100%;
}

/* Circle shape — shared by every arrow on the site. */
.products-nav .swiper-button-next,
.products-nav .swiper-button-prev,
.featured-nav .featured-button-next,
.featured-nav .featured-button-prev,
.fountain-button-next,
.fountain-button-prev,
.blog-grid-arrow {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    /* Translucent grey instead of a flat hex: the buttons sit on white
       cards, on the cream fountain band and on the light-grey section
       backgrounds, and a fixed #e8e8ea turns bluish over the warm one. */
    background-color: rgba(0, 0, 0, 0.09);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 16px;
    color: #1d1d1f;
    font-size: 0;   /* hides the &lsaquo; / &rsaquo; glyph the blog arrows carry */
    line-height: 0;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* Chevron direction. */
.products-nav .swiper-button-next,
.featured-nav .featured-button-next,
.fountain-button-next,
.blog-grid-arrow--next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 16'%3E%3Cpath d='M2.2 1.6 8.4 8l-6.2 6.4' fill='none' stroke='%231d1d1f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.products-nav .swiper-button-prev,
.featured-nav .featured-button-prev,
.fountain-button-prev,
.blog-grid-arrow--prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 16'%3E%3Cpath d='M8.8 1.6 2.6 8l6.2 6.4' fill='none' stroke='%231d1d1f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Swiper paints its own icon-font chevron in ::after; ours replaces it. */
.products-nav .swiper-button-next::after,
.products-nav .swiper-button-prev::after,
.featured-nav .featured-button-next::after,
.featured-nav .featured-button-prev::after,
.fountain-button-next::after,
.fountain-button-prev::after {
    content: none;
}

/* Hover: one step darker, same circle. */
.products-nav .swiper-button-next:hover,
.products-nav .swiper-button-prev:hover,
.featured-nav .featured-button-next:hover,
.featured-nav .featured-button-prev:hover,
.fountain-button-next:hover,
.fountain-button-prev:hover,
.blog-grid-arrow:hover:not([disabled]) {
    background-color: rgba(0, 0, 0, 0.16);
}

/* Disabled state: fade the arrow but keep the circle. */
.products-nav .swiper-button-next.swiper-button-disabled,
.products-nav .swiper-button-prev.swiper-button-disabled,
.featured-nav .featured-button-next.swiper-button-disabled,
.featured-nav .featured-button-prev.swiper-button-disabled,
.fountain-button-next.swiper-button-disabled,
.fountain-button-prev.swiper-button-disabled,
.blog-grid-arrow[disabled] {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 768px) {
    .featured-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .featured-banner-content h2 {
        font-size: 32px;
    }

    .featured-pills {
        justify-content: center;
    }

    .featured-banner-image {
        order: -1;
    }

    /* Center the featured-card inside the swiper-slide on mobile.
     * Without an explicit width, .featured-card (a block element inside a
     * flex swiper-slide) shrinks to its content (~245px) and left-aligns
     * inside the 353px slide, producing a visibly off-center card.
     * width:100% makes the card fill the slide, so the slide (and the card)
     * sit centered within the container's horizontal padding. */
    .featured-slider .swiper-slide > .featured-card {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================
   Smart Factory Showcase
   ========================================== */
.smart-factory {
    background: #ffffff;
    padding: 80px 0;
}

.smart-factory .section-title {
    margin-bottom: 50px;
}

.smart-factory .section-title h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.smart-factory .section-title h2 span {
    color: var(--primary-color);
}

.smart-factory .section-title p {
    color: #555;
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.factory-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.factory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.factory-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.factory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.factory-card:hover .factory-card-image img {
    transform: scale(1.04);
}

.factory-card-content {
    padding: 20px 22px 22px;
}

.factory-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.factory-meta {
    font-size: 14px;
    color: #555;
    line-height: 1.55;
    margin-bottom: 6px;
}

.factory-meta:last-child {
    margin-bottom: 0;
}

.factory-meta .meta-label {
    color: #222;
    font-weight: 600;
}

@media (max-width: 968px) {
    .factory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .smart-factory {
        padding: 60px 0;
    }

    .smart-factory .section-title h2 {
        font-size: 30px;
    }

    .factory-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .factory-card-content {
        padding: 18px 20px 20px;
    }
}

/* ==========================================
   Featured Showcase: Wireless Pet Water Fountain
   ========================================== */
.fountain {
    background: #f5ecdf;
    padding: 0;
}

.fountain-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 32px 50px;
}

.fountain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.fountain-title {
    font-size: 40px;
    line-height: 1.18;
    font-weight: 800;
    color: #111;
    margin: 0 0 18px;
}

.fountain-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.fountain-pill {
    display: inline-block;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e8dcc9;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.fountain-filtration {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    max-width: 420px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.filtration-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a8a;
    margin: 0 0 14px;
    line-height: 1.25;
}

.filtration-title span {
    color: #2a6df4;
}

.filtration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filtration-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.35;
}

.filter-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid #1a3a8a;
    border-radius: 50%;
    color: #1a3a8a;
    font-size: 12px;
    font-weight: 700;
}

.filter-text {
    flex: 1;
}

/* The shot is a 1920x2194 studio frame with the unit small inside it, so at
   full column width the bottle looks larger than the copy beside it. 70% of
   the column keeps the whole frame visible - no crop, no re-export - and the
   grid still centres it vertically against the text. */
/* The two columns are equal width so the shrunk shot (70% of its column,
   see below) and the copy sit as a balanced pair instead of leaving a
   wide empty gutter. */
.fountain-image img {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

@media (max-width: 968px) {
    .fountain-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fountain-title {
        font-size: 32px;
    }

    .fountain-filtration {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .fountain-inner {
        padding: 50px 20px 36px;
    }

    .fountain-title {
        font-size: 26px;
    }
}

/* =======================================================
   Shop Page (template-products.php) — All Products archive
   ======================================================= */

/* Products page: clear the fixed 80px transparent site header with some
   breathing room. Previous 200px assumed a giant hero band above main. */
.shop-page {
    padding-top: 110px;
    padding-bottom: 80px;
    background: var(--bg-color);
    min-height: 60vh;
}

.shop-page-header {
    margin-bottom: 24px;
    display: block;
}
.shop-page-header .shop-breadcrumb {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* H1 row: h1 left, optional services image right (Services page only,
   when an image is set in the Page Hero meta box).
   Title styled to match petwant.com/collections: smaller, near-black,
   medium weight, tight line-height. */
.shop-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.shop-title-row .shop-title {
    font-size: clamp(1.4rem, 2.4vw, 1.7rem);
    color: #0a0a0a;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    flex: 0 1 auto;
}
.shop-title-row .shop-services-image {
    flex: 0 1 auto;
    width: clamp(140px, 22vw, 240px);
    max-width: 100%;
}
.shop-services-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

@media (max-width: 720px) {
    .shop-title-row {
        gap: 16px;
    }
    .shop-title-row .shop-services-image {
        width: clamp(140px, 35vw, 200px);
    }
}

/* Long horizontal strip banner: full-bleed image that fills the area
   between the page header and the toolbar. Reuses the same _page_hero_image_id
   meta as the legacy banner. Subtle default height so an uploaded
   landscape image sits nicely without manual cropping. */
.shop-breadcrumb {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.shop-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.shop-breadcrumb a:hover { color: var(--primary-color); }
.shop-breadcrumb .bc-sep { opacity: 0.5; }
.shop-breadcrumb .bc-current { color: var(--text-light); font-weight: 400; }

.shop-header {
    margin-bottom: 28px;
}
.shop-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-bottom: 28px;
    background: #fbfbfb;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-count { font-size: 0.95rem; color: var(--text-light); }
.shop-count strong { color: var(--secondary-color); font-weight: 700; margin-right: 4px; }
.shop-tools { display: flex; align-items: center; gap: 18px; }

.shop-sort select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23333' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 12px center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 30px 8px 14px;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1.4;
    transition: border-color 0.2s;
}
.shop-sort select:hover { border-color: var(--primary-color); }
.shop-sort select:focus { outline: 2px solid rgba(11, 138, 139, 0.15); outline-offset: 1px; border-color: var(--primary-color); }

.shop-view {
    display: inline-flex;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}
.view-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-light);
    transition: background 0.18s, color 0.18s;
}
.view-btn:hover { background: var(--bg-light); color: var(--secondary-color); }
.view-btn.is-active {
    background: var(--secondary-color);
    color: #fff;
}
.view-btn svg { display: block; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.shop-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}
.shop-grid--grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shop-grid--grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shop-grid--list {
    grid-template-columns: 1fr;
}

.shop-card {
    background: #f4f1ec;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.shop-card-media {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ebe6dd;
}
.shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.shop-card:hover .shop-card-media img { transform: scale(1.04); }

/* The square window suits the square photographs most products use: cover then
   fills it edge to edge with nothing to crop. A landscape photograph in the
   same window would be magnified and cut down the sides, so any picture whose
   shape is more than a tenth away from the window's is fitted inside it
   instead. The is-fit class is worked out from the photograph's own dimensions
   while the page is built (see jution_clone_image_fit), so a new picture needs
   no rule here and no product id named anywhere. */
.shop-card-media img.is-fit,
.product-detail-image img.is-fit {
    object-fit: contain;
}

.shop-sold-out-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #fff;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    letter-spacing: 0.02em;
}

.shop-card-body {
    /* Card title strip. The top/bottom padding is 20% of the strip height lower
       than it used to be (18/22 → 12/15): with a 22.74px title line that is
       62.7px → 49.7px. The title size is deliberately untouched, so the
       text keeps its size and only the coloured area gets thinner. */
    padding: 12px 16px 15px;
}
.shop-card-title {
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--secondary-color);
    margin: 0;
    letter-spacing: -0.005em;
}
.shop-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.shop-card-title a:hover { color: var(--primary-color); }

/* List view overrides */
.shop-grid--list .shop-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    background: #f4f1ec;
}
.shop-grid--list .shop-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 200px;
}
/* List view keeps its own padding, scaled the same way: 69.5px → 55.5px. */
.shop-grid--list .shop-card-body { padding: 15px 26px; }
.shop-grid--list .shop-card-title { font-size: 1.1rem; }

/* Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.shop-pagination a,
.shop-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.92rem;
    background: #fff;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.shop-pagination a:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.shop-pagination .current {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.shop-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .shop-grid--grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .shop-page { padding-top: 100px; padding-bottom: 60px; }
    .shop-title { font-size: 1.2rem; }
    .shop-toolbar { padding: 12px 14px; }
    .shop-grid--grid-3,
    .shop-grid--grid-2 {
        grid-template-columns: 1fr;
    }
    .shop-grid--list .shop-card {
        grid-template-columns: 120px 1fr;
    }
    .shop-grid--list .shop-card-media { min-height: 120px; }
    /* Same 20% thinner title strip as the desktop rule: 50px → 40px. */
    .shop-grid--list .shop-card-body { padding: 9px 16px; }
    .shop-grid--list .shop-card-title { font-size: 0.95rem; }
}

/* ============================================================
 * Single Product Detail Page
 * Editors control: hero image, description, features, 2 CTA buttons
 * ============================================================ */
.product-detail-page {
    padding-top: 180px;
    padding-bottom: 80px;
    background-color: #ffffff;
    min-height: 60vh;
}

.product-detail-page .shop-breadcrumb a {
    transition: color 0.15s ease;
}
.product-detail-page .shop-breadcrumb a:hover {
    color: #1f4e8c;
}

.product-detail-image {
    border-radius: 6px;
    overflow: hidden;
    background: #f6f7f7;
}
.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-detail-image:hover img {
    transform: scale(1.02);
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.2;
}

.product-detail-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}
.product-detail-description p { margin: 0 0 12px; }
.product-detail-description p:last-child { margin-bottom: 0; }

.product-detail-features {
    margin: 0 0 32px;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.8;
}
.product-detail-features li {
    margin-bottom: 4px;
}
.product-detail-features li::marker {
    color: #1f4e8c;
}

/* The feature list used to keep a 20px indent from a bullet slot it no longer
   uses (list-style is none), which put its text - and, following it, the OEM
   block and the CTA - 20px to the right of the product title and the intro
   paragraph above them. The indent is gone, so the whole column now shares
   one left edge: title, intro, feature text, buttons. */
.product-detail-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.product-detail-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #1f4e8c;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 180px;
    border: 1px solid #1f4e8c;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.product-detail-cta .btn:hover {
    background: #163968;
    border-color: #163968;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 78, 140, 0.25);
}

.product-detail-back {
    margin-top: 40px;
    text-align: center;
}
.product-detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f4e8c;
    border: 1px solid #1f4e8c;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.product-detail-back a:hover {
    background: #1f4e8c;
    color: #ffffff;
}

/* Product detail page layout: 2 cols on desktop, single col on mobile.
   Set up here so the mobile @media can override (inline style would win). */
.jution-pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
}

@media (max-width: 768px) {
    .product-detail-page { padding-top: 130px; padding-bottom: 60px; }
    .jution-pd-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 20px;
    }
    .product-detail-title { font-size: 1.5rem; }
    .product-detail-cta .btn { width: 100%; min-width: 0; }
}

/* =========================================================================
 * About Us page - "Who we are" section
 * ========================================================================= */
.about-page {
    padding-top: 180px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

/* About page — repeatable image / text modules (see the "About Modules"
   meta box). These replaced four separate section classes, so the spacing
   rules that used to live on .who-we-are-section / .about-story-section /
   .about-factory-section are folded in here. */
.about-module-section {
    margin-top: 96px;
}

.about-module-section--first {
    margin-top: 24px;
}

.about-module-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
    line-height: 1.2;
}

/* Optional narrower, centred frame — the factory blocks used this in the
   original layout. Toggled per module from the meta box ("Image width"). */
.about-module-section--narrow-media .who-we-are-carousel {
    width: min(100%, 420px);
    margin: 0 auto;
}

/* Petwant Story (module 2): the picture comes down 30%, nothing else moves.
   The client wants the copy at its normal size and the block still lined up
   with the modules above and below, so the grid keeps its full width and only
   the carousel is capped at 70% of its column (548 -> 383.6px at 1440). It
   hugs the left edge, matching where the pictures on this page start, and the
   dots below it get the same cap so they centre under the picture instead of
   the full column.

   Desktop only: below 901px the grid stacks into one column and the picture
   should fill the width like every other block.

   Targeting data-module (printed by template-about.php) instead of
   :has(#about-module-2-title) keeps it working without :has() support. */
@media (min-width: 901px) {
    .about-module-section[data-module="2"] .who-we-are-carousel {
        width: 70%;
        margin-left: 0;
        margin-right: auto;
    }
    /* The dots row is a centred flex box; left at full column width it would
       centre 82px to the right of the narrower picture. Matching its width to
       the picture puts them back under the middle of it. */
    .about-module-section[data-module="2"] .who-we-are-dots {
        width: 70%;
    }
}

.about-module-section .who-we-are-media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.who-we-are-grid {
    position: relative; /* anchor for the divider below */
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

/* Thin grey rule between the text and image columns, shared by every
   Who-we-are / Story / Factory block on the About page. Drawn with a
   pseudo-element at the exact centre of the grid so the 64px gap and both
   column widths stay untouched, and it stretches to whichever column is
   taller. Dropped entirely once the grid stacks (<=900px). */
.who-we-are-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 0.5px);
    width: 1px;
    background: #e5e7eb;
    pointer-events: none;
}

.who-we-are-text {
    padding-right: 8px;
}

.who-we-are-media {
    position: relative;
}

.who-we-are-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f3f4f6;
}

.who-we-are-carousel .who-we-are-slide {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s ease;
}

.who-we-are-carousel .who-we-are-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo-grid variant of the About media column, chosen per module in the back
   office: six factory shots are easier to scan laid out than rotating.

   The tile ratio is picked so the block lands at the height of the copy beside
   it. On a 1440 screen the column is 548px wide, so two 268px columns at 16/10
   stack to 526px against a 538px text block. The card treatment (hairline
   border, 10px radius, soft shadow) follows the reference the client sent, so
   the tiles read as one set instead of loose images. */
.who-we-are-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.who-we-are-photo {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f3f4f6;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.who-we-are-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.who-we-are-photo:hover img {
    transform: scale(1.03);
}

/* Coloured footer strip on each tile, as in the reference cards. The tile
   clips it, so the strip follows the 10px radius on its own. Four accents
   cycle across the grid; with two columns that puts a different colour in
   every neighbouring cell and repeats only on the third row. */
.who-we-are-photo::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 6px;
    background: var(--photo-accent, var(--primary-color));
    pointer-events: none;
}

.who-we-are-photo:nth-child(6n + 1) { --photo-accent: #0b8a8b; }
.who-we-are-photo:nth-child(6n + 2) { --photo-accent: #f0a33c; }
.who-we-are-photo:nth-child(6n + 3) { --photo-accent: #4a90d9; }
.who-we-are-photo:nth-child(6n + 4) { --photo-accent: #7f6ad8; }
/* The last row carries the 2026 warm palette so a six-tile grid never
   repeats an accent: mocha and terracotta instead of a second teal. */
.who-we-are-photo:nth-child(6n + 5) { --photo-accent: #ff6900; }
.who-we-are-photo:nth-child(6n + 6) { --photo-accent: #25d366; }

@media (max-width: 560px) {
    .who-we-are-photo-grid {
        gap: 8px;
    }

    /* Tiles are only ~107px tall here, so a 6px strip would read as a
       heavy border instead of a hint of colour. */
    .who-we-are-photo::after {
        height: 4px;
    }
}

.who-we-are-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.who-we-are-dot {
    width: 28px;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.who-we-are-dot:hover {
    background: #9ca3af;
}

.who-we-are-dot.is-active {
    background: #111827;
    width: 36px;
}

@media (max-width: 900px) {
    .who-we-are-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    /* Stacked — a rule between the columns would cut through nothing. */
    .who-we-are-grid::before {
        display: none;
    }
    .about-page {
        padding-top: 140px;
    }
}

/* =========================================================================
 * About Us page - Highlights & Stats Module
 * ========================================================================= */
.about-highlights-section {
    margin-top: 96px;
}

/* Top row: 4 credential cards with icon + title + subtitle */
.about-highlights-credentials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding: 36px 0 56px;
}

.about-cred-card {
    position: relative; /* anchor for the divider drawn in the gutter */
    text-align: center;
    padding: 12px 8px;
}

/* A 1px rule in the middle of each gutter, drawn with a pseudo-element so the
   card padding and the grid's 28px gap stay exactly as they were. The line
   runs the full height of the row because grid items stretch by default. */
.about-cred-card:not(:nth-child(4n))::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -14.5px; /* half of the 28px column gap, plus half the line */
    width: 1px;
    background: #e5e7eb;
}

.about-cred-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-cred-icon svg {
    width: 100%;
    height: 100%;
    stroke: #9ca3af;
    transition: stroke 0.25s ease, color 0.25s ease;
}

.about-cred-card:hover .about-cred-icon svg {
    stroke: #111827;
}

.about-cred-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}

.about-cred-subtitle {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

/* Bottom row: 4 big-number stats on a cream background */
.about-highlights-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    background: #faf6ef;            /* warm cream — matches the reference site */
    padding: 56px 36px;
    border-radius: 4px;
}

.about-stat-card {
    text-align: center;
    padding: 8px 8px;
}

.about-stat-figure {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.about-stat-num {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
    color: #c8c2b6;                  /* faint warm gray for the big number */
    letter-spacing: -0.02em;
}

.about-stat-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #b6b1a6;
    line-height: 1;
}

.about-stat-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.about-stat-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #6b7280;
    margin: 0 auto;
    max-width: 220px;
}

@media (max-width: 900px) {
    .about-highlights-credentials,
    .about-highlights-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        padding: 36px 20px;
    }
    .about-highlights-stats {
        padding: 40px 24px;
    }
    .about-stat-num {
        font-size: 2.5rem;
    }
    /* Two columns: only the left-hand card of each row keeps a divider, and it
       moves to the middle of the wider 32px gutter. */
    .about-cred-card:not(:nth-child(2n))::after {
        right: -16.5px;
    }
    .about-cred-card:nth-child(2n)::after {
        content: none;
    }
}

@media (max-width: 560px) {
    .about-highlights-credentials,
    .about-highlights-stats {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    /* Single column — the cards stack, so a vertical rule would be noise.
       Written with the same specificity as the rules above so it wins. */
    .about-cred-card:not(:nth-child(2n))::after,
    .about-cred-card:nth-child(2n)::after {
        content: none;
    }
}

/* =========================================================================
 * About Us page - Petwant Story (mirror of Who we are section)
 * ========================================================================= */
.about-story-section {
    margin-top: 96px;
}

.about-section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 28px;
    line-height: 1.2;
}

/* Mirror: image on the left, text on the right */
.who-we-are-grid--mirror .who-we-are-text {
    padding-right: 0;
    padding-left: 8px;
    order: 2;
}

.who-we-are-grid--mirror .who-we-are-media {
    order: 1;
}

.about-story-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #111827;
    margin: 0 0 14px;
    font-weight: 600;
}

/* Module body copy: one notch under the 16px base so the stacked
   paragraphs read as supporting text beside the 28px module heading
   and the 16.8px intro line. */
.who-we-are-para {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.about-story-btn {
    margin-top: 12px;
}


@media (max-width: 900px) {
    .who-we-are-grid--mirror .who-we-are-text,
    .who-we-are-grid--mirror .who-we-are-media {
        order: initial;
        padding-left: 0;
    }
}

/* =========================================================================
 * About Us page - Factory Team (Strong Engineering Team)
 * ========================================================================= */
.about-factory-section {
    margin-top: 96px;
}

/* Constrain the factory carousel to a smaller, centered frame so it does not
 * full-bleed the right grid column — matches the reference layout where the
 * factory image sits inside a ~420px square with whitespace on either side. */
.about-factory-section .who-we-are-carousel {
    width: min(100%, 420px);
    margin: 0 auto;
}

.about-factory-section .who-we-are-media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.about-factory-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 12px;
}

.about-factory-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.25;
}

.about-factory-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    /* Capsule, matching the .btn radius used elsewhere on the site. */
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.about-factory-btn--dark {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

.about-factory-btn--dark:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}

.about-factory-btn--soft {
    background: #e5e7eb;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.about-factory-btn--soft:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* =========================================================================
 * About Us page - Certification Gallery
 * ========================================================================= */
.about-cert-section {
    margin-top: 96px;
}

.about-cert-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.about-cert-head .about-section-heading {
    margin: 0;
}

.about-cert-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.about-cert-card {
    margin: 0;
    text-align: center;
}

.about-cert-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-cert-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Certification: the certificate frames sit 15% smaller (272 -> 231px at
   1440), centred in their column so the captions below keep their place.
   Width is a percentage, so the 4 / 2 / 1 column layouts all shrink by the
   same 15% instead of needing a pixel value per breakpoint, and the 3/4
   aspect-ratio carries the height down with it.

   :not(.about-cert2-section) keeps the Business Partners block - which
   reuses .about-cert-section for its layout - at full size. */
.about-cert-section:not(.about-cert2-section) .about-cert-frame {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* Business Partners: the partner frames are 16:9 rather than the 3:4 the
   certificate cards use. The uploaded partner artwork is already 16:9
   (1182 x 666), so it used to be cropped top and bottom inside the portrait
   frame; a 16:9 window shows it whole. The 4 / 2 / 1 column layouts all
   follow automatically because only the aspect-ratio changes. */
.about-cert2-section .about-cert-frame {
    aspect-ratio: 16 / 9;
}

/* The partners block now carries the R&D-process gallery, and its heading
   is navy rather than the near-black #111827 every other section heading
   uses. Scoped to the block (not to the title text, which the client edits
   from the admin) so the Certification heading right below it stays
   unchanged. */
.about-cert2-section .about-cert-head .about-section-heading {
    color: #1e3a8a;
}

/* Captions in the R&D gallery are bold; the certificate captions keep the
   regular weight they have always had. Same block-class hook as the navy
   heading above, so a retitled block still works. */
.about-cert2-section .about-cert-caption {
    font-weight: 700;
}

.about-cert-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8c2b6;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.about-cert-placeholder svg {
    width: 56px;
    height: 56px;
}

.about-cert-caption {
    margin-top: 14px;
    font-size: 0.95rem;
    color: #111827;
}

@media (max-width: 900px) {
    .about-cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .about-cert-grid {
        grid-template-columns: 1fr;
    }
}

/* Product detail gallery strip (Amazon-style thumbnails + video button).
   Proportions taken from the Amazon product page this was modelled on:
   ~44px rounded tiles, a 10px gutter, a 1px #d5d9d9 hairline that turns into
   a 2px #0a7cd1 ring on the current tile, and a dark tile whose play button
   sits inside a white circle with the label underneath rather than within. */
.product-gallery-strip {
    margin-top: 14px;
}
.product-gallery-label {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0a7cd1;
    margin-bottom: 10px;
}
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
    /* Centred under the "Click to see full view" label, which is centred too —
       a short row used to sit off to the left of it. `safe` is what makes this
       work on a phone, where the row becomes a one-line scroller: plain centre
       alignment pushes the first tiles outside the scrollable area, and `safe`
       falls back to flex-start exactly when the content overflows. The bare
       `center` above it is the fallback for a browser without `safe`. */
    justify-content: center;
    justify-content: safe center;
}
.product-gallery-video {
    flex: 0 0 auto;
    width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.product-gallery-video-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4b5563;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}
.product-gallery-video:hover .product-gallery-video-btn {
    background: #2f3742;
}
.product-gallery-video-label {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #4b5563;
    line-height: 1.15;
    text-align: center;
}

@media (max-width: 768px) {
    .product-gallery-thumbs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .product-gallery-thumbs::-webkit-scrollbar {
        height: 4px;
    }
    .product-gallery-thumbs::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 2px;
    }
}

/* Smooth-scroll to anchor when VIDEOS button is clicked.
   The first scroll panel gets id="jution-product-scroll-1" + scroll-margin-top
   so the fixed #main-header (≈64px tall) doesn't cover it. */
html {
    scroll-behavior: smooth;
}

.product-scroll-card--anchor {
    scroll-margin-top: 90px;
}

/* Product detail — gallery thumbnail strip under the main image.
   Hovering (or focusing) a thumbnail swaps the main image, Amazon-style, so
   the hover state doubles as the "current image" marker. The ring is drawn
   with box-shadow rather than a thicker border so nothing shifts on hover. */
.product-gallery-thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* A 1px border + a 1px ring reads as the 2px outline Amazon uses, without
   reflowing the tile (a thicker border would shift the image inside it). */
.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible,
.product-gallery-thumb.is-active {
    border-color: #0a7cd1;
    box-shadow: 0 0 0 1px #0a7cd1;
    outline: none;
}

.product-gallery-thumb--empty {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px dashed #d5d9d9;
    border-radius: 8px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* A phone gets a slightly larger tile for the touch target, but not the 54px
   it used to jump to against a 44px desktop tile — 48px still fits six across
   a 390px screen with the 10px gutter. The video tile has to move with it, or
   it would sit a size smaller than its neighbours. */
@media (max-width: 480px) {
    .product-gallery-thumb,
    .product-gallery-thumb--empty {
        width: 48px;
        height: 48px;
    }
    .product-gallery-video {
        width: 48px;
    }
    .product-gallery-video-btn {
        width: 48px;
        height: 48px;
    }
}

/* Product detail — stacked image / text sections.
   The layout lives here rather than in inline styles so the mobile breakpoint
   below can actually override it (an inline `grid-template-columns` would beat
   any @media rule). The thin rule between the columns is the right column's
   border-left; it stretches to the full card height. */
.product-scroll-sections {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-scroll-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px;
    scroll-margin-top: 90px;
}

.product-scroll-image {
    /* margin, not padding — the grey backdrop must not fill the gutter */
    margin-right: 28px;
    border-radius: 6px;
    overflow: hidden;
    background: #f6f7f7;
}

.product-scroll-body {
    border-left: 1px solid #e5e7eb;
    padding-left: 28px;
}

@media (max-width: 900px) {
    .product-scroll-card {
        grid-template-columns: minmax(0, 1fr);
    }
    .product-scroll-image {
        margin-right: 0;
    }
    /* Stacked: the divider becomes a rule above the text instead */
    .product-scroll-body {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
        margin-top: 24px;
        padding: 24px 0 0;
    }
}

/* Product detail — scroll sections on the "pictures two to a row" layout.
   A per-product choice (_scroll_layout). The default card is a two-column grid
   of picture and text side by side; on this layout each section is one picture
   with its own text underneath, and the sections themselves sit two to a row.
   The hairline above the text is the same one the default layout uses. */
.product-scroll-sections--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.product-scroll-card--stack {
    display: block;
}

.product-scroll-card--stack .product-scroll-image {
    margin-right: 0;
}

/* Half the width means the heading needs to be a step down from the default,
   which is set for a card spanning the whole container. */
.product-scroll-card--stack .product-scroll-body h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.product-scroll-card--stack .product-scroll-body {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

@media (max-width: 900px) {
    .product-scroll-sections--grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/* Odd number of sections in the two-per-row layout: the last one is left alone
   on its row. Instead of a half-width card with an empty gap beside it, that
   card takes the full width of the container and puts its picture and text side
   by side again — the arrangement the default layout uses for every card, and
   the one the client asked for. The cells match .product-scroll-card so a lone
   card and a default-layout card read as the same object. */
.product-scroll-sections--grid > .product-scroll-card--stack:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.product-scroll-sections--grid > .product-scroll-card--stack:last-child:nth-child(odd) .product-scroll-image {
    margin-right: 28px;
}

.product-scroll-sections--grid > .product-scroll-card--stack:last-child:nth-child(odd) .product-scroll-body {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid #e5e7eb;
    padding-left: 28px;
}

@media (max-width: 900px) {
    /* One column here, so the lone card is not alone any more and a split card
       would leave the picture and the text about 160px each. Stack it like the
       rest. */
    .product-scroll-sections--grid > .product-scroll-card--stack:last-child:nth-child(odd) {
        display: block;
    }
    .product-scroll-sections--grid > .product-scroll-card--stack:last-child:nth-child(odd) .product-scroll-image {
        margin-right: 0;
    }
    .product-scroll-sections--grid > .product-scroll-card--stack:last-child:nth-child(odd) .product-scroll-body {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid #e5e7eb;
        padding-top: 24px;
    }
}

/* ---- Floating right-side social bar (site-wide) ----
   Follows the reference layout (funwaygamefactory.com): a tight vertical
   stack of 50x50 rounded brand tiles sitting flush against the right
   viewport edge with a 4px gutter. Hovering (or keyboard-focusing) a tile
   slides a dark #525D6D bubble carrying the matching contact detail out of
   its left side — see jution_render_sidebar_social() in functions.php.
   Sits above content (z-index 50) but below modal overlays (.blog-modal uses
   100+). */
.sidebar-social {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    pointer-events: none; /* container ignores clicks — buttons re-enable on themselves */
}

.sidebar-social-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: auto;
}

.sidebar-social-item {
    position: relative; /* anchor for the hover bubble */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.sidebar-social-item svg {
    width: 24px;
    height: 24px;
    display: block;
}

.sidebar-social-item:hover,
.sidebar-social-item:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

.sidebar-social-item:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

/* Brand swatches sampled from the reference site. Email shares the tooltip
   slate so the bubble and the tile read as one component. */
.sidebar-social-item--whatsapp { background-color: #25D366; }
.sidebar-social-item--youtube  { background-color: #FF0000; }
.sidebar-social-item--linkedin { background-color: #0077B5; }
.sidebar-social-item--email    { background-color: #525D6D; }

/* Hover bubble — square corners, 50px tall, 17px side padding, bold 16px
   white text, 9px clear of the tile. Text comes from data-tip. */
.sidebar-social-item::after {
    content: attr(data-tip);
    position: absolute;
    top: 50%;
    right: calc(100% + 9px);
    transform: translate(8px, -50%);
    height: 50px;
    line-height: 50px;
    padding: 0 18px;
    background-color: #525D6D;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.sidebar-social-item:hover::after,
.sidebar-social-item:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

/* No data-tip → no bubble (guard in case the attribute is omitted). */
.sidebar-social-item:not([data-tip])::after {
    display: none;
}

/* Keep the bar clear of page content ---------------------------------------
   The bar is pinned to the right edge and takes 50px there (44px below
   768px). The centred 1200px page column only clears it while the viewport
   stays above 1200 + 2x50; below ~1260px it would run straight underneath,
   so from 1280px down the column reserves the bar's footprint (50px) plus a
   22px gap on its right.

   That padding goes on .container — the centred column itself — and on the
   Blog page's full-width list section, NOT on the page wrapper (main /
   .site-main). The wrapper also holds full-bleed background bands such as the
   page hero, and padding there squeezes them, leaving a white strip down the
   right of the band. Padding on the column can't do that: padding always
   sits inside an element's own background. */
@media (max-width: 1280px) {
    .container,
    .fountain-inner {
        padding-right: 72px;
    }
}

/* Mobile: the rail stays on the right edge — it only gets slimmer.
   A phone shows the same vertical stack as the desktop layout (reference:
   funwaygamefactory.com), 40x40 tiles flush against the right edge instead
   of 50x50. The page column keeps a 52px right gutter (below) so no line of
   body copy ever runs underneath the coloured tiles — reserving the space
   reads better than letting the rail sit on the text. */
@media (max-width: 768px) {
    .sidebar-social {
        top: 50%;
        bottom: auto;
        left: auto;
        right: 0;
        transform: translateY(-50%);
        padding-right: env(safe-area-inset-right);
    }
    .sidebar-social-list {
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
        padding: 0;
        background: none;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .sidebar-social-item {
        width: 40px;
        height: 40px;
        /* Square the left corners only: the right side is flush with the
           viewport edge, so a rounded right corner would show a sliver of
           page behind it. */
        border-radius: 10px 0 0 10px;
    }
    .sidebar-social-item svg {
        width: 20px;
        height: 20px;
    }
    /* The hover bubble still works in a narrow desktop window (and in a
       responsive preview), so it is scaled down rather than dropped. */
    .sidebar-social-item::after {
        height: 36px;
        line-height: 36px;
        padding: 0 12px;
        font-size: 13px;
        right: calc(100% + 8px);
    }

    /* Rail footprint — 40px of tiles + 12px of breathing room. */
    .container,
    .fountain-inner {
        padding-right: 52px;
    }

    /* 28px of inline padding inside the product card left the thumbnail strip
       with 240px — not enough for five tiles, so the row scrolled and its last
       tile sat under the social rail. 16px lets the row breathe. */
    .product-detail-grid {
        padding: 16px !important;
    }
}

/* Why Choose Us section (willfine-style: 4 stats + 4 image cards) */
.why-choose-header {
    margin-bottom: 36px;
}
.why-choose-title {
    /* 26px matches the other two section headings on the product page; see
       .certifications-title for why that value. */
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #111827;
    margin: 0 0 12px;
}
.why-choose-subtitle {
    font-size: 1rem;
    color: #4b5563;
    margin: 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.why-choose-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    padding: 28px 24px;
    background: #F5F5F7;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.why-choose-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}
.why-choose-stat--placeholder {
    opacity: 0.55;
}
.why-choose-stat-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: block;
    color: #111827;
    /* Icons are drawn on a 24px grid, scaled to 38px. The stroke is set in the
       stylesheet rather than only on the <svg> so it stays in one place; 1.1 on
       the 24 grid lands at roughly 1.7px on screen, a hairline that reads as
       line art instead of a heavy glyph. */
    stroke-width: 1.1;
}
.why-choose-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}
.why-choose-stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.3;
    margin-top: 2px;
}

.why-choose-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.why-choose-card {
    position: relative;
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #F5F5F7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}
.why-choose-card--placeholder {
    background: #F5F5F7;
    border: 1px solid #d1d5db;
}
.why-choose-card--placeholder .why-choose-card-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.6) 100%);
    color: #1d1d1f;
}
.why-choose-card--placeholder .why-choose-card-title {
    color: #1d1d1f;
}
.why-choose-card--placeholder .why-choose-card-desc {
    color: rgba(0, 0, 0, 0.55);
}
.why-choose-card-overlay {
    position: absolute;
    inset: 0;
    /* Extra bottom padding keeps the last line clear of the 6px accent strip. */
    padding: 24px 22px 28px;
    display: flex;
    flex-direction: column;
    /* Top-aligned, so every card's title starts at the same height whatever
       the copy around it runs to. Bottom alignment made the four titles drift
       by up to 20px because the cards share one row height. */
    justify-content: flex-start;
    /* The wash is lightest at the top now that the copy sits there, so dark
       text stays legible if a background photo is uploaded later; it still
       fades towards the bottom. */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.32) 55%, rgba(255, 255, 255, 0.1) 100%);
    color: #1d1d1f;
}
.why-choose-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
    color: #1d1d1f;
}
.why-choose-card-desc {
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
    line-height: 1.5;
}
/* Coloured footer strip on every card — the same 6px accent the About page
   runs under its photo tiles (.who-we-are-photo::after), so the two sections
   read as one system. The card clips it, so the strip follows the 12px
   radius on its own. Four accents cycle; with four cards across, no two
   neighbours repeat. */
.why-choose-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 6px;
    background: var(--card-accent, var(--primary-color));
    pointer-events: none;
}
.why-choose-card:nth-child(4n + 1) { --card-accent: #0b8a8b; }
.why-choose-card:nth-child(4n + 2) { --card-accent: #f0a33c; }
.why-choose-card:nth-child(4n + 3) { --card-accent: #4a90d9; }
.why-choose-card:nth-child(4n + 4) { --card-accent: #7f6ad8; }

@media (max-width: 992px) {
    .why-choose-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .why-choose-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .why-choose-stats {
        grid-template-columns: 1fr;
    }
    .why-choose-cards {
        grid-template-columns: 1fr;
    }
    /* Single column: a 6px bar reads as a heavy border on a narrow card, so
       it drops to 4px here — the same call the About grid makes. */
    .why-choose-card::after {
        height: 4px;
    }
    /* Stacked one per row, the 220px floor of the four-across layout would
       leave half a card of empty space under three lines of copy. The overlay
       is absolutely positioned on desktop, which would collapse the card the
       moment the floor goes; letting it sit in flow again gives the card its
       height from the copy itself. */
    .why-choose-card {
        min-height: 0;
    }
    .why-choose-card-overlay {
        position: static;
    }
}

/* Product FAQ accordion: hide the default <summary> marker and rotate the
   chevron SVG when the details element is expanded. */
.product-faq-title {
    /* Centre the heading over the accordion below it. Same alignment as the
       specification sheet / B2B FAQ headings, and it has to live in the class
       rather than the element's inline style so a breakpoint can override it. */
    text-align: center;
}
.product-faq-item > summary {
    list-style: none;
}
.product-faq-item > summary::-webkit-details-marker {
    display: none;
}
.product-faq-item[open] > summary svg {
    transform: rotate(180deg);
}

/* Product highlights: icon/value/caption cards spread evenly across the whole
   strip. The column count comes from the real number of cards on the page
   (--hl-cols, set inline by single-product.php) instead of a hard-coded 6, so a
   product with 4 cards fills the row instead of hugging the left edge and
   leaving two blank columns; every card is centred inside its own cell. */
.product-highlights-grid {
    display: grid;
    gap: 24px;
    align-items: start;
    grid-template-columns: repeat(var(--hl-cols, 6), minmax(0, 1fr));
}
@media (max-width: 992px) {
    .product-highlights-grid {
        grid-template-columns: repeat(var(--hl-cols-md, 3), minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .product-highlights-grid {
        grid-template-columns: repeat(var(--hl-cols-sm, 2), minmax(0, 1fr));
    }
}

/* ==========================================
   International Certifications Section
   ========================================== */
.certifications {
    background-color: #ffffff;
}
.certifications-header {
    margin-bottom: 48px;
}
.certifications-title {
    /* Same size / weight as the other two section headings below it on the
       product page (.why-choose-title / .product-b2b-faq-title). 26px follows
       the reference sheet, where every block heading — "4.0P-CS INDUSTRIAL
       FIELD APPLICATIONS", "TOTAL COST OF OWNERSHIP (TCO) OPTIMIZATION" and
       the FAQ heading alike — is 26px / 700 / #1a202c, centred.
       
       Set in caps with the same tracking as .why-choose-title. The font size
       was always identical (measured: cap height 20px against its 19px), but
       rendered title-case it *looked* smaller: most of its glyphs are lowercase,
       and an x-height of ~14px next to the all-caps heading's 19px reads as a
       step down. Every block heading on the reference page is set in caps, so
       this also lines the two of them up with that convention. */
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1d1d1f;
    margin-bottom: 16px;
}
.certifications-subtitle {
    font-size: 1.05rem;
    color: #6a6a6a;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.7;
}
.certifications-body {
    display: flex;
    align-items: stretch;
    gap: 48px;
}
.certifications-image {
    flex: 0 0 42%;
    max-width: 42%;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f7;
    min-height: 360px;
}
.certifications-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.certifications-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
}
.cert-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.cert-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.cert-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}
.cert-card-region {
    font-size: 0.8rem;
    color: #9ca3af;
}
@media (max-width: 992px) {
    .certifications-body {
        flex-direction: column;
    }
    .certifications-image {
        flex: 0 0 auto;
        max-width: 100%;
        min-height: 220px;
    }
    .certifications-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    /* .certifications-title is sized by the shared section-heading rule at the
       end of this file, so the three headings stay in step here too. */
    .certifications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Blog Article (template-blog-article.php) ----
   Single-article reading layout: big left-aligned headline, a muted
   "date | By author" byline, then the page body at a comfortable measure.
   Body typography is written against plain elements (p / h2 / h3 / img / ul)
   so it styles whatever the editor outputs, including raw Gutenberg blocks. */
.blog-article-page {
    background: #fff;
    padding-top: 160px;
    padding-bottom: 90px;
}

.blog-article {
    max-width: 760px;
}

.blog-article-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: #111827;
    margin: 0 0 22px;
}

.blog-article-meta {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 42px;
}

.blog-article-meta-sep {
    margin: 0 10px;
    color: #d1d5db;
}

.blog-article-body {
    font-size: 1.0625rem;
    /* The three custom properties are set per article by the "Article
       Typography" meta box (see jution_clone_blog_article_typography_css()).
       The numbers after each comma are the original hard-coded values, so an
       article with no overrides looks exactly as it always did. */
    line-height: var(--art-line-height, 1.75);
    color: #374151;
}

.blog-article-body > *:first-child {
    margin-top: 0;
}

.blog-article-body p {
    margin: 0 0 var(--art-block-gap, 1.4em);
}

.blog-article-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 2em 0 0.7em;
}

.blog-article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin: 1.7em 0 0.6em;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 var(--art-block-gap, 1.4em);
    padding-left: 1.5em;
    /* The bare `ul { list-style: none }` reset near the top of this file also
       reached article copy: TinyMCE draws discs in the editor, the front end
       drew nothing, so every bulleted paragraph read as a plain block. The
       lists inside the body opt back in here, and only here. */
    list-style: disc;
}

.blog-article-body ol {
    list-style: decimal;
}

.blog-article-body li {
    margin-bottom: var(--art-item-gap, 0.5em);
}

/* Bullet marker library (the panel beside the bullet button in the editor).
   The stock keywords handle disc / circle / square; diamond, tick, arrow and
   star are glyphs, which can only come from ::marker - hence a class per
   choice instead of an inline list-style-type. */
.blog-article-body ul.jution-bullet-none {
    list-style: none;
}

.blog-article-body ul.jution-bullet-disc {
    list-style: disc;
}

.blog-article-body ul.jution-bullet-circle {
    list-style: circle;
}

.blog-article-body ul.jution-bullet-square {
    list-style: square;
}

.blog-article-body ul.jution-bullet-diamond > li::marker {
    content: "\25C6\00A0";
    font-size: 1.1em;
}

.blog-article-body ul.jution-bullet-check > li::marker {
    content: "\2713\00A0";
    font-size: 1.1em;
}

.blog-article-body ul.jution-bullet-arrow > li::marker {
    content: "\25B8\00A0";
    font-size: 1.15em;
}

.blog-article-body ul.jution-bullet-star > li::marker {
    content: "\2605\00A0";
    font-size: 0.95em;
}

/* Comparison tables. TinyMCE inserts a bare <table> with no class, so without
   these rules an article table published as a hairline grid with no emphasis
   on the header row. Header goes solid black, body rows alternate on a very
   light grey, and every cell gets the roomy padding the reference tables use. */
/* The editor sometimes wraps a bullet list in <pre>: the monospace look is
   kept, but with white-space: pre the lines never wrap and a long entry
   runs out under the sidebar. Wrapping keeps the intent and the column
   readable in every language, RTL included. */
.blog-article-body pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.blog-article-body table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.94rem;
    line-height: 1.55;
}

.blog-article-body th,
.blog-article-body td {
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.blog-article-body th,
/* The TinyMCE table dialog writes a body-only table (no <thead>, no <th>), so
   the first row is where a heading actually lands. It takes the same black
   treatment, and steps aside as soon as the author makes a real header row. */
.blog-article-body table:not(:has(thead)) > tbody > tr:first-child > td {
    background: #111111;
    color: #ffffff;
    font-weight: 700;
}

.blog-article-body tbody tr:nth-child(even) td {
    background: #f6f7f8;
}

@media (max-width: 700px) {
    /* A four-column table cannot squeeze into 350px without cells breaking
       mid-word, so it scrolls sideways instead of overflowing the column. */
    .blog-article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog-article-body th,
    .blog-article-body td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

.blog-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

/* Two images typed on one line end up inside a single <p>, and the editor shows
   them side by side at the sizes chosen in the media dialog. The block rule
   above used to stack them vertically, so the admin never matched the page.
   Only paragraphs that hold two or more adjacent images become a row; a lone
   image keeps the block layout (and aligncenter keeps its auto margins).
   Browsers without :has() simply keep the old stacked output. */
.blog-article-body p:has(> img + img) {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
    margin: 2em 0;
}

/* Each image keeps the width the editor shows. Capping every image at 50%
   used to shrink the wider one alone (462px became 368px while its 153px
   partner stayed put), which is why the same pair looked different once it
   was published. flex-shrink only kicks in when the row really cannot fit,
   and then it scales both by the same factor instead of one of them. */
.blog-article-body p:has(> img + img) > img {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* A phone cannot show two photos side by side without shrinking both to
   thumbnails, so the row falls back to a stack. */
@media (max-width: 640px) {
    .blog-article-body p:has(> img + img) {
        display: block;
    }

    .blog-article-body p:has(> img + img) > img {
        width: 100%;
        margin: 0 0 12px;
    }

    .blog-article-body p:has(> img + img) > img:last-child {
        margin-bottom: 0;
    }
}

/* Editor alignment and captions. Without these rules the align buttons in the
   toolbar are a no-op: the shared img rule above turns every image into a
   full-width block. Left/right float capped at 50% so a photo never starves
   the text column; below 640px the float is dropped entirely. */
.blog-article-body::after {
    content: '';
    display: table;
    clear: both;
}

.blog-article-body img.alignleft,
.blog-article-body .wp-caption.alignleft {
    float: left;
    max-width: 50%;
    margin: 0.5em 1.6em 1em 0;
}

.blog-article-body img.alignright,
.blog-article-body .wp-caption.alignright {
    float: right;
    max-width: 50%;
    margin: 0.5em 0 1em 1.6em;
}

.blog-article-body img.aligncenter,
.blog-article-body .wp-caption.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.blog-article-body .wp-caption {
    max-width: 100%;
    margin: 2em 0;
}

.blog-article-body .wp-caption img {
    margin: 0;
}

.blog-article-body .wp-caption-text,
.blog-article-body figcaption {
    margin: 0.7em 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 640px) {
    .blog-article-body img.alignleft,
    .blog-article-body img.alignright,
    .blog-article-body .wp-caption.alignleft,
    .blog-article-body .wp-caption.alignright {
        float: none;
        max-width: 100%;
        margin: 2em 0;
    }
}

.blog-article-body a {
    color: #1f4e8c;
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* Link inside the copy that should read as a destination (a product, a
   spec, a range) rather than as body text. .jution-inline-link alone loses to
   the .blog-article-body a rule above on specificity, so the red is restated
   here - same colours the application cards use. */
.blog-article-body a.jution-inline-link {
    color: #d93025;
    font-weight: 700;
}

.blog-article-body a.jution-inline-link:hover,
.blog-article-body a.jution-inline-link:focus-visible {
    color: #b3261e;
    background-color: rgba(217, 48, 37, 0.09);
}

.blog-article-body blockquote {
    margin: 2em 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid #d1d5db;
    color: #4b5563;
    font-style: italic;
}

.blog-article-body hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2.4em 0;
}

/* Gutenberg wraps some blocks in extra containers — keep their media full width. */
.blog-article-body .wp-block-image,
.blog-article-body figure {
    margin: 2em 0;
}

.blog-article-body .wp-block-image img,
.blog-article-body figure img {
    margin: 0;
}

.blog-article-pages {
    margin-top: 30px;
    font-size: 0.9375rem;
}

.blog-article-footer {
    max-width: 760px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.blog-article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f4e8c;
    text-decoration: none;
}

.blog-article-back:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .blog-article-page {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .blog-article-title {
        font-size: 1.8rem;
        margin-bottom: 18px;
    }
    .blog-article-meta {
        margin-bottom: 32px;
    }
    .blog-article-body {
        font-size: 1rem;
    }
    .blog-article-body h2 {
        font-size: 1.35rem;
    }
    .blog-article-body h3 {
        font-size: 1.15rem;
    }
}

/* ---- Blog article sidebar (template-blog-article.php) ----
   The article keeps its 760px reading measure; the sidebar takes the space
   that used to sit empty on the right of the 1200px container. Content comes
   from the "Article Sidebar" meta box: a recent-posts list plus an optional
   new-release card. With both empty the template drops the layout class and
   the article runs full width again. */
.blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
}

.blog-article-layout.is-full {
    grid-template-columns: minmax(0, 1fr);
}

.blog-article-main {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 120px;
    padding-top: 6px;
}

.blog-sidebar-title {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.blog-sidebar-posts li + li {
    margin-top: 14px;
}

.blog-sidebar-posts a,
.blog-sidebar-posts span {
    display: block;
    position: relative;
    padding-left: 20px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #374151;
    transition: color 0.2s ease;
}

.blog-sidebar-posts a::before,
.blog-sidebar-posts span::before {
    content: '\00BB';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.blog-sidebar-posts a:hover {
    color: var(--primary-color);
}

.blog-sidebar-posts a:hover::before {
    color: var(--primary-color);
}

.blog-sidebar-promo {
    display: block;
    position: relative;
    margin-top: 34px;
    padding: 24px 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

a.blog-sidebar-promo:hover {
    border-color: #d1d5db;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.blog-sidebar-promo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 9px;
    border-radius: 5px;
    background: #d93025;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-sidebar-promo-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    margin: 22px 0 16px;
    overflow: hidden;
}

.blog-sidebar-promo-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blog-sidebar-promo-title {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.45;
    color: #111827;
}

.blog-sidebar-promo-desc {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #6b7280;
}

.blog-sidebar-promo-cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* More than one card makes the column taller than the viewport. It cannot stay
   stuck at top: 120px in that state — the grid row is then sized by the sidebar
   itself, so the cap hid cards nobody could scroll to. Park it in the flow and
   every card stays reachable, short article or long. */
.blog-sidebar-promo + .blog-sidebar-promo {
    margin-top: 16px;
}

.blog-sidebar.has-releases {
    position: static;
}

@media (min-width: 1025px) {
    .blog-sidebar.has-releases .blog-sidebar-title {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    /* Three cards plus five links is a long column, so the list gives up some
       air to keep the whole thing closer to one screen. */
    .blog-sidebar.has-releases .blog-sidebar-posts a,
    .blog-sidebar.has-releases .blog-sidebar-posts span {
        font-size: 0.875rem;
        line-height: 1.45;
    }

    .blog-sidebar.has-releases .blog-sidebar-posts li + li {
        margin-top: 10px;
    }

    .blog-sidebar.has-releases .blog-sidebar-promo {
        padding: 18px 14px 16px;
        border-radius: 14px;
    }

    /* Shorter photo window, and enough room above it for the badge to sit in
       the white area rather than on top of the product shot. */
    .blog-sidebar.has-releases .blog-sidebar-promo-media {
        height: 190px;
        aspect-ratio: auto;
        margin: 30px 0 12px;
    }

    .blog-sidebar.has-releases .blog-sidebar-promo-badge {
        top: 10px;
        right: 10px;
        padding: 4px 7px;
        font-size: 0.5625rem;
    }

    .blog-sidebar.has-releases .blog-sidebar-promo-title {
        display: -webkit-box;
        margin-bottom: 6px;
        overflow: hidden;
        font-size: 0.875rem;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .blog-sidebar.has-releases .blog-sidebar-promo-desc {
        font-size: 0.72rem;
        line-height: 1.55;
    }

    .blog-sidebar.has-releases .blog-sidebar-promo-cta {
        margin-top: 10px;
        font-size: 0.78125rem;
    }
}

/* Below the desktop breakpoint the column unrolls, so the cards can afford a
   taller photo window than the capped desktop version. */
@media (max-width: 1024px) {
    .blog-sidebar.has-releases .blog-sidebar-promo-media {
        height: 220px;
        aspect-ratio: auto;
        margin: 30px 0 12px;
    }

    .blog-sidebar.has-releases .blog-sidebar-promo-title {
        font-size: 0.9375rem;
    }
}

/* Below 1024px the sidebar has no room to sit beside the article, so it moves
   underneath it. Sticky is switched off with it — a stuck column at the bottom
   of the page would just hover over the footer. */
@media (max-width: 1024px) {
    .blog-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .blog-sidebar {
        position: static;
        margin-top: 48px;
        padding-top: 34px;
        border-top: 1px solid #e5e7eb;
    }

    .blog-sidebar-promo {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tablets are wide enough for the list and the card to sit side by side. */
@media (min-width: 720px) and (max-width: 1024px) {
    .blog-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 40px;
        align-items: start;
    }

    .blog-sidebar-promo {
        max-width: none;
        margin: 0;
    }

    /* Under the article the column is a full-width grid: the list spans it,
       the cards share the row. auto-fit keeps two columns once three would
       drop below a readable 220px each. */
    .blog-sidebar.has-releases {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        align-items: start;
    }

    .blog-sidebar.has-releases > .blog-sidebar-block {
        grid-column: 1 / -1;
    }

    .blog-sidebar.has-releases .blog-sidebar-promo {
        width: auto;
        max-width: none;
        margin: 0;
    }

    .blog-sidebar.has-releases .blog-sidebar-promo + .blog-sidebar-promo {
        margin-top: 0;
    }
}


/* ---- Blog article enquiry form (template-blog-article.php) ----
   The lead block the reference site closes every article with: a short
   heading, then the six-field form in a single column. The section sits
   outside <main> so this grey band can run edge to edge; copy and options
   come from the "Article Enquiry Form" meta box, which the Blog page fills
   in once for the whole section. */
.blog-enquiry {
    padding: 68px 0 84px;
    background: #f7f8fa;
    border-top: 1px solid #eceef1;
}

.blog-enquiry-inner {
    max-width: 620px;
    margin: 0 auto;
}

.blog-enquiry-title {
    margin: 0 0 34px;
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    font-weight: 700;
    line-height: 1.28;
    color: #111827;
}

.blog-enquiry-intro {
    margin: 0 0 26px;
    font-size: 1rem;
    line-height: 1.7;
    color: #5b6472;
}

.blog-enquiry-thanks {
    margin: 0 0 20px;
    padding: 13px 16px;
    border-radius: 8px;
    background: var(--primary-light);
    color: #075e5f;
    font-weight: 600;
}

.blog-enquiry-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

.blog-enquiry-field {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    margin-bottom: 18px;
}

/* Name, e-mail, phone and company sit two-up; the dropdown, the message box
   and the button keep the full width. */
.blog-enquiry-field.blog-enquiry-field--half {
    grid-column: auto;
}

.blog-enquiry-field label {
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: #374151;
}

.blog-enquiry-req {
    color: #d93025;
}

.blog-enquiry-field input,
.blog-enquiry-field select,
.blog-enquiry-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d6dae1;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 0.97rem;
    line-height: 1.5;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-enquiry-field textarea {
    min-height: 130px;
    resize: vertical;
}

.blog-enquiry-field input:focus,
.blog-enquiry-field select:focus,
.blog-enquiry-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 138, 139, 0.12);
}

.blog-enquiry-submit {
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 6px;
    padding: 15px 20px;
    border: 0;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .blog-enquiry {
        padding: 48px 0 60px;
    }
    .blog-enquiry-title {
        font-size: 1.35rem;
    }
    .blog-enquiry-submit {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    /* One field per row once the two-up pairs would get too narrow. */
    .blog-enquiry-form {
        grid-template-columns: 1fr;
    }
    .blog-enquiry-field.blog-enquiry-field--half {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   Projects page — case-study rows
   One entry per row: image left, title + copy right, each entry carrying its
   own thin grey frame. Works at any count — a row with no content is skipped
   by the template, so no empty frame is ever rendered.
   ========================================================================== */
.projects-list {
    /* Top gap used to come from an empty .section-padding above it (160px of
       nothing). The template now skips that section, so the spacing is stated
       here instead, and matched to the bottom value. */
    padding-top: 80px;
    padding-bottom: 80px;
    background: #fff;
}
.project-row {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-row:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
}
.project-row-media {
    overflow: hidden;
    border-radius: 3px;
    background: #f5f5f7;
}
.project-row-media img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
/* min-width:0 lets a long unbroken string wrap instead of stretching the grid
   column and squeezing the image. */
.project-row-body {
    min-width: 0;
}
.project-row-title {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 1.9vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    color: #111827;
}
.project-row-desc {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
}

@media (max-width: 900px) {
    /* Stack the image above the copy — a 320px image column leaves too little
       room to read the text at this width. */
    .project-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .project-row-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .projects-list {
        padding-bottom: 56px;
    }
    .project-row {
        padding: 12px;
    }
    .project-row-desc {
        font-size: 0.9375rem;
    }
}

/* ==========================================================================
   Projects page — Design and Manufacturing Service carousel

   The card rows reuse the blog carousel classes, but this heading is a long
   two-tone sentence rather than a short section name. It runs 20% smaller than
   the shared .section-title size (2.5rem -> 2rem, i.e. 40px -> 32px) so it
   still reads as one block instead of dominating the section.
   ========================================================================== */
.projects-service .section-title h2 {
    font-size: 2rem;
    line-height: 1.2;
}

/* The cards carry no "Read More" line, so the last text block would
   otherwise sit 16px + 25px above the card edge and read as clipped. */
.projects-service .blog-card .blog-content > :last-child {
    margin-bottom: 0;
}

/* =========================================================================
 * 404 — see 404.php
 *
 * The theme had no 404 template, so any unknown URL fell through to index.php
 * and rendered the whole home page at a 404 status. This is the replacement:
 * a short answer plus the three links people usually want.
 * ========================================================================= */
.not-found-inner {
    text-align: center;
}

.not-found-code {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--primary-color);
}

.not-found-title {
    font-size: 2rem;
    margin: 0 0 14px;
    color: #111827;
}

.not-found-text {
    color: #6b7280;
    max-width: 560px;
    margin: 0 auto 30px;
}

.not-found-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .not-found-code {
        font-size: 3.25rem;
    }
    .not-found-title {
        font-size: 1.5rem;
    }
}

/* =========================================================================
 * Product detail — Bulk orders / customization router
 *
 * The 2x2 card grid that sits above the specification sheet: each card offers
 * a different way to buy (wholesale, OEM/ODM, project deployment, software
 * integration). Geometry and type scale follow the reference product page;
 * the accent colour is this site's teal rather than the reference's green.
 *
 * The whole card is the link, so the arrow lives in the markup and only the
 * colours change on hover.
 * ========================================================================= */
.product-bulk-orders {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    margin: 48px 0;
    color: #1e293b;
}

.bulk-orders-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 30px;
}

.bulk-orders-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.bulk-orders-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.bulk-orders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bulk-orders-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    color: #1e293b;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.bulk-orders-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(11, 138, 139, 0.1);
}

.bulk-orders-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.bulk-orders-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 8px;
}

.bulk-orders-card-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}

.bulk-orders-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.bulk-orders-action svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: var(--transition);
}

.bulk-orders-card:hover .bulk-orders-action {
    color: var(--primary-color);
}

.bulk-orders-card:hover .bulk-orders-action svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .product-bulk-orders {
        padding: 30px 16px;
        margin: 32px 0;
    }
    .bulk-orders-title {
        font-size: 20px;
    }
    .bulk-orders-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================================
 * Product detail — Image pair
 *
 * Two pictures side by side on white cards, each with a bold caption under it,
 * plus an optional centred heading above the pair. Layout follows the reference
 * "pricing examples" block, type scale follows this page. Only products with an
 * image in the "Image Pair" meta box render it.
 * ========================================================================= */
.product-image-pair {
    margin: 0 0 48px;
}

.pair-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 26px;
}

/* A second heading band, inside the grid and directly above the third picture
   — the first picture of the second row on the two-up layout. It takes the
   same measure and centring as .pair-header so the two bands read as one
   system, and it spans both columns instead of taking a card slot of its own;
   the grid gap already supplies the space above and below it. Only printed
   when the product has the two fields filled in. */
.pair-row-header {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 720px;
    margin: 12px auto 0;
}

/* The 720px cap above is what makes this a short intro band. On one product
   the client wants the heading to line up with the modules instead: the pair
   grid and every neighbouring module are 1160px, so the band looked inset by
   440px on each side. The cap comes off for that page only and the text stays
   centred. Scoped with the post id, because the narrow intro is deliberate on
   the other six products that use this block. */
body.postid-615 .pair-header {
    max-width: none;
}

.pair-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin: 0 0 8px;
}

/* A subtitle that runs to several lines is a list, not a headline: centred, the
   bullet at the start of each line lands somewhere different and the column
   looks ragged. Left aligned inside a centred column keeps the block in place. */
.pair-subtitle.is-multiline {
    text-align: left;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.pair-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Two cards side by side leaves each picture about 570px wide on one page,
   and the product inside those wide scene shots reads small. That page wants
   one picture per row: a single column at every width, so each card spans the
   module and the photograph is about twice the size. Scoped, because the
   two-up grid is what the other six products using this block want. */
body.postid-49 .pair-grid {
    grid-template-columns: minmax(0, 1fr);
}

.pair-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 0;
    transition: var(--transition);
}

/* A picture that has a link in the meta box becomes the link itself, so the
   caption is clickable too and the card lifts on hover like the bulk-order
   cards above it. Without a link the card stays a plain box. */
.pair-card--link {
    text-decoration: none;
    color: inherit;
}

.pair-card--link:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(11, 138, 139, 0.1);
}

.pair-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    /* roomy enough that a wide picture and a square one both sit calmly, and
       the two captions line up on the same baseline */
    min-height: 260px;
    flex-grow: 1;
}

.pair-card-media img {
    max-width: 100%;
    height: auto;
    display: block;
}

.pair-card-caption {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-top: 18px;
}

/* The picture pair on the "picture left, caption right" layout — a per-product
   choice (_pair_layout). The cards stop sharing a row: each becomes one wide
   card with the picture beside its caption, because a long caption set under a
   half-width picture runs to a measure of a few words a line. */
.product-image-pair--side .pair-grid {
    grid-template-columns: minmax(0, 1fr);
}

.product-image-pair--side .pair-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.product-image-pair--side .pair-card-media {
    margin: 0;
}

.product-image-pair--side .pair-card-caption {
    margin-top: 0;
    /* On this layout the caption is a paragraph beside the picture rather than
       a headline under it, so it drops the bold weight and the near-black and
       takes the block's own body grey. Only this layout: the short bold
       captions on the other products are headlines and stay as they are. */
    font-weight: 400;
    color: #64748b;
}

@media (max-width: 900px) {
    .product-image-pair--side .pair-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .product-image-pair--side .pair-card-caption {
        margin-top: 18px;
    }
}

@media (max-width: 768px) {
    .product-image-pair {
        margin-bottom: 32px;
    }
    .pair-title {
        font-size: 20px;
    }
    .pair-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .pair-card-media {
        min-height: 180px;
    }
}

/* =========================================================================
 * Product detail — Process steps
 *
 * Numbered cards in a row with arrows between them, sitting directly under the
 * specification sheet. The cards are near-white notes with a folded green
 * corner and a hairline edge; they sit on a soft light-grey panel, the way the
 * reference screenshot puts a white card on a light grey ground. The panel grey
 * is the median of that screenshot's background (which is a photo, so it runs
 * from about #e0dfdd to #f1f0ee), warmed by the same hair.
 * ========================================================================= */
.product-process {
    margin: 56px 0 0;
    padding: 40px 30px 44px;
    background-color: #e7e7e5;
    border-radius: 16px;
}

.flow-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #4a3226;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin: 0 0 30px;
}

.flow-track {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.flow-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    /* Step text arrives from the admin and can hold a run like
       "PRS)/Functional/Certification" with no spaces to break at. The card
       clips its own corners, so an unbreakable run used to be cut mid-word.
       break-word, not anywhere: anywhere also re-measures the minimum content
       width and breaks ordinary words that would have fitted. */
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 22px;
    border-radius: 8px;
    /* flat near-white note, warm by a hair (#fefcf9 - the reference swatch taken
       most of the way to white). The hairline border is what keeps the note
       apart from the page, so it stays. */
    background-color: #fefcf9;
    border: 1px solid #e2cfae;
    box-shadow: 0 2px 5px rgba(74, 50, 38, 0.05);
    color: #4a3628;
    overflow: hidden;
}

/* the folded corner */
.flow-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 26px solid #7cb342;
    border-left: 26px solid transparent;
}

.flow-card-label {
    display: block;
    font-size: 17px;
    font-weight: 700;
    /* darker than the reference green: the light one has nowhere near enough
       contrast on cream */
    color: #4a7a1c;
    margin-bottom: 14px;
}

.flow-card-text {
    display: block;
    font-size: 14px;
    line-height: 1.65;
    color: #5b452f;
    margin-bottom: 18px;
}

.flow-card-btn {
    /* pinned to the bottom so the buttons of equal-height cards line up */
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    /* A flex item will not go narrower than its own min-content width, and
       for this button that is the word "Requirements" plus the padding -
       wider than the card once a track holds five or six cards. The card
       hides the excess (it needs overflow:hidden for the folded corner), so
       the label was being cut in half. Dropping the floor lets the button
       shrink to the card and the label wrap or hyphenate instead. Where the
       button already fits this changes nothing: fit-content sizing picks
       the natural width either way. */
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 9px 20px;
    border-radius: 4px;
    background: #3f7d1f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.flow-card-btn:hover {
    background: #4a8f26;
}

.flow-arrow {
    flex: 0 0 34px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9c2ba;
}

.flow-arrow svg {
    width: 34px;
    height: 14px;
}

/* The arrow and the gap are fixed costs that come out of the cards, so a
   five- or six-card track leaves them far narrower than a four-card one.
   Thinning both as the view narrows gives the width back to the cards and
   keeps the call-to-action on its natural single line down to the stacking
   point. */
@media (max-width: 1300px) {
    .flow-track {
        gap: 8px;
    }
    .flow-arrow {
        flex: 0 0 20px;
    }
    .flow-arrow svg {
        width: 20px;
    }
}

@media (max-width: 1000px) {
    .flow-track {
        gap: 6px;
    }
    .flow-arrow {
        flex: 0 0 16px;
    }
    .flow-arrow svg {
        width: 16px;
    }
    /* Narrow enough by here that the label would wrap over three or four
       lines, so hand the text the padding the card and the button can do
       without at this width. */
    .flow-card {
        padding: 22px 14px 22px;
    }
    .flow-card-btn {
        padding: 9px 10px;
    }
}

/* A five- or six-card track: every arrow is 34px of the container taken
   straight off the cards, so on a wide screen the row ends up narrower per
   card than a four-card row of the same width. Start from the thinned arrow
   instead of waiting for the window to drop below the breakpoint, and give
   the text whatever padding the card can spare. */
.flow-track--many {
    gap: 8px;
}
.flow-track--many .flow-arrow {
    flex: 0 0 20px;
}
.flow-track--many .flow-arrow svg {
    width: 20px;
}
/* Only above the point where the theme starts thinning the card padding
   itself; below it the narrower padding would take width off the text. */
@media (min-width: 1001px) {
    .flow-track--many .flow-card {
        padding-left: 16px;
        padding-right: 16px;
    }
    /* 20px of side padding leaves so little of a 191px card that the
       call-to-action hyphenates onto two lines. Same 10px the theme
       already uses once the window is narrow. */
    .flow-track--many .flow-card-btn {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 1000px) {
    .flow-track--many {
        gap: 6px;
    }
    .flow-track--many .flow-arrow {
        flex: 0 0 14px;
    }
    .flow-track--many .flow-arrow svg {
        width: 14px;
    }
}

@media (max-width: 768px) {
    .product-process {
        margin-top: 36px;
        padding: 26px 16px 30px;
    }
    .flow-title {
        font-size: 20px;
        margin-bottom: 22px;
    }
    .flow-track {
        flex-direction: column;
        gap: 10px;
    }
    /* Stacked, so the cards size to their content: flex:1 1 0 would make the
       basis the height and squash them to the label only (overflow:hidden). */
    .flow-card {
        flex: 0 0 auto;
        /* the tight side padding above is for a narrow desktop window, not
           for a stacked list that already has the whole width */
        padding: 22px 20px 22px;
    }
    .flow-card-btn {
        padding: 9px 20px;
    }
    /* stacked, so the arrow points down instead of across */
    .flow-arrow {
        flex-basis: auto;
        transform: rotate(90deg);
        padding: 2px 0;
    }
}

/* =========================================================================
 * Product detail — Product Specifications Sheet
 *
 * A two-column label / value table on its own tinted band. The rows read as
 * stripes without any borders: the 10px gutter lets the band behind the cells
 * show through, so a cell only ever needs a background of its own.
 *
 * Striping is per *row*, not per cell — the reference sheet tints the whole
 * first row, the whole third row, and so on. With two columns that means
 * children 1+2, then 5+6, then 9+10 … hence the 4n+1 / 4n+2 pair. Below the
 * two-column breakpoint every cell is its own row, so the media query at the
 * bottom falls back to plain odd / even.
 *
 * Band colours were sampled from the reference screenshot: cell #ecf6ff and
 * #ffffff, heading #6a6fdf, over a pale cyan wash.
 * ========================================================================= */
.product-specs {
    margin-top: 72px;
    padding: 76px 0 84px;
    background-color: #c6e8f4;
    background-image:
        radial-gradient(48% 130% at 104% 48%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 68%),
        radial-gradient(78% 42% at 42% -6%, rgba(203, 221, 255, 0.55), rgba(203, 221, 255, 0) 72%),
        linear-gradient(180deg, #cae9f5 0%, #c1e6f3 42%, #d6f0fb 100%);
}

.product-specs-title {
    color: #6a6fdf;
    /* Same size as the FAQ heading below the band (.product-faq-title), so the
       two section headings on a product page no longer differ in scale. */
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 40px;
    text-align: center;
}

.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 1040px;
    margin: 0 auto;
}

.product-specs-cell {
    background: #ffffff;
    border-radius: 4px;
    padding: 13px 38px;
}

.product-specs-cell:nth-child(4n + 1),
.product-specs-cell:nth-child(4n + 2) {
    background: #ecf6ff;
}

.product-specs-label {
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px;
}

.product-specs-value {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 768px) {
    .product-specs {
        margin-top: 48px;
        padding: 48px 0 56px;
    }
    .product-specs-title {
        /* font-size intentionally not repeated here — it now matches the
           desktop value, so the breakpoint only tightens the spacing. */
        margin-bottom: 26px;
    }
    .product-specs-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .product-specs-cell {
        padding: 13px 20px;
    }
    /* One cell per row now, so clear the two-column pairs and stripe every
       other cell instead. */
    .product-specs-cell:nth-child(4n + 1),
    .product-specs-cell:nth-child(4n + 2) {
        background: #ffffff;
    }
    .product-specs-cell:nth-child(odd) {
        background: #ecf6ff;
    }
}

/* =========================================================================
 * Product detail — B2B Buyers FAQ
 *
 * A second Q&A list under the specifications sheet, aimed at wholesale
 * buyers. The cards are deliberately the same size as the Technical
 * Documentation cards above: full column width, 18px/22px padding and a
 * 1.05rem question, so switching between the two blocks doesn't change the
 * rhythm of the page. Only the colours differ (#f8fafc cards here).
 *
 * The disclosure marker is left as the native <summary> triangle, so the
 * arrow needs no markup and open/closed still works with JS disabled.
 * ========================================================================= */
.product-b2b-faq {
    margin-top: 64px;
}

.product-b2b-faq-title {
    color: #1a202c;
    /* 26px matches .why-choose-title / .certifications-title — see the note on
       .certifications-title. */
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 35px;
    text-align: center;
}

.product-b2b-faq-list {
    /* No max-width: the list spans the page column so its cards line up with
       the Technical Documentation cards above (they used to be 850px wide). */
    margin: 0;
}

.product-b2b-faq-item {
    margin: 0 0 15px;
    /* Same padding as .product-faq-item (inline on the <details> element) so
       both card styles end up the same height. */
    padding: 18px 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.product-b2b-faq-question {
    color: #1e293b;
    /* 1.05rem = the .product-faq summary size, which sets the card height. */
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.product-b2b-faq-answer {
    margin-top: 10px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.product-b2b-faq-answer p {
    margin: 0 0 10px;
}

.product-b2b-faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .product-b2b-faq {
        margin-top: 48px;
    }
    .product-b2b-faq-title {
        /* font-size comes from the shared section-heading rule at the end of
           this file, so it matches the other two headings. */
        margin-bottom: 24px;
    }
    /* The card size (padding / question size) is deliberately not overridden
       here any more: .product-b2b-faq-item matches .product-faq-item at every
       width, so the two blocks keep the same card size on phones too. */
}

/* =========================================================================
 * Product page tail — halve the gap between the WHY CHOOSE US bar and the
 * certifications block
 *
 * On the product page those two blocks sit back to back, and they are the only
 * place where that happens, so three spacings stacked up into one void:
 *
 *   .why-choose-stats margin-bottom  48px   (spaces the bar from the cards row
 *                                            on the home page)
 *   .why-choose  padding-bottom      80px   (.section-padding)
 *   .certifications padding-top      80px   (.section-padding)
 *                                    ----
 *                                    208px
 *
 * 104px is the requested half, and keeping the bar's own 48px leaves 56px to
 * split between the two section paddings: 28px each.
 *
 * Scoped to .product-detail-page (the class on <main> for this template) so
 * the home page keeps its full 80px sections — there the bar is followed by
 * the image cards, and the certifications section follows a different block
 * entirely. The 208px is identical at every breakpoint (measured 1440 / 1024 /
 * 768 / 600 / 390), so no media query is needed.
 * ========================================================================= */
.product-detail-page .why-choose {
    padding-bottom: 28px;
}

.product-detail-page .certifications {
    padding-top: 28px;
}

/* The quote form is now reachable as #contact from the product page's own CTA,
   and main.js scrolls to it with a header offset on click. But a typed or
   shared URL ending in #contact goes through the browser's native jump, which
   knows nothing about the 91px fixed header — measured, the "Contact Us"
   heading landed at y=80 and disappeared behind it. */
#contact {
    scroll-margin-top: 100px;
}

/* =========================================================================
 * Product page section headings — one size for the three heading-led blocks
 *
 * "FREQUENTLY ASKED QUESTIONS (B2B BUYERS)", the WHY CHOOSE US bar and
 * "International Certifications" sit one after another at the foot of a
 * product page, but had drifted to 28px / 32px / 41.6px in three different
 * weights and three different mobile treatments — one of them never scaled at
 * all, another only below 600px — so the page read as three arbitrary levels
 * rather than three peers.
 *
 * Each class above now carries the same 26px / 700, the size the reference
 * sheet uses for every one of its block headings; this block keeps them in
 * step below 768px, where they previously diverged. 24px is 2px under the
 * desktop value because these headings wrap to three lines on a phone.
 *
 * Only font-size and font-weight are normalised. letter-spacing is left as
 * authored: 0.04em on an all-caps heading and -0.5px on a title-case one are
 * both deliberate typographic choices, not drift.
 * ========================================================================= */
@media (max-width: 768px) {
    .why-choose-title,
    .certifications-title,
    .product-b2b-faq-title {
        font-size: 1.5rem;
    }
}
/* =========================================================================
 * Product detail — B2B commercial scenarios
 *
 * The card block under the first screen: a centred heading, a grey line under
 * it, then the cards in a row — icon, bold scenario name, paragraph. They carry
 * a hairline border because the page behind them is white as well, and the grid
 * is auto-fit so any number of cards reads well: three across on a wide screen,
 * down to one on a phone.
 * ========================================================================= */
.product-scenarios {
    margin: 56px 0 0;
    /* The block sits on its own band, the same geometry as the process cards
       further down (padding 40/30, radius 16) so the two read as one family.
       The colour: the grey those cards use (#e7e7e5) taken to a yellow of the
       same lightness (#f1eddb), then 30% of the way to white twice (#f5f2e6,
       #f8f6ee) and 20% once more (#f9f8f1) — a whisper of yellow rather than a
       stripe. At this value the band and the page are almost the same colour,
       so the cards' hairline border is what draws them. */
    padding: 40px 30px 44px;
    background-color: #f9f8f1;
    border-radius: 16px;
}

.scenarios-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

.scenarios-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    margin: 0 0 14px;
}

.scenarios-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Two-up for a block whose card count fills a row of two better than a row of
   three - four cards in a three-column grid leave one stranded on its own row.
   Phones still get a single column, where two across would be unreadable. */
.scenarios-grid.scenarios-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .scenarios-grid.scenarios-grid--two {
        grid-template-columns: 1fr;
    }
}

.scenario-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 30px 28px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.scenario-card-icon {
    margin-bottom: 18px;
    /* The picture sits centred above the card's copy; the heading and the
       paragraph stay left-aligned, which is what keeps a row of cards readable. */
    display: flex;
    justify-content: center;
}

.scenario-card-icon img {
    max-height: 34px;
    width: auto;
    display: block;
}

.scenario-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.35;
    margin: 0 0 14px;
}

.scenario-card-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

@media (max-width: 768px) {
    .product-scenarios {
        margin-top: 36px;
        padding: 26px 16px 30px;
    }
    .scenarios-header {
        margin-bottom: 24px;
    }
    .scenarios-grid {
        gap: 16px;
    }
    .scenario-card {
        padding: 22px 20px;
    }
    .scenario-card-title {
        font-size: 18px;
    }
}

/* =========================================================================
 * Product detail — commercial supply terms + certification & compliance
 *
 * Two columns under the bulk-order router, laid out like the reference product
 * page: on the left a label / value list of commercial terms with hairline
 * dividers and a highlighted note, on the right an intro paragraph, a row of
 * badge pills and a documentation card. Only a product whose meta box has been
 * filled in renders this, so every other product page is untouched.
 * ========================================================================= */
.product-supply {
    margin: 0 0 48px;
    position: relative;
    /* The whole block carries the faint tone from the reference, halved. The
       padding gives the copy room inside the fill and matches the bulk-order
       card that sits right below, so the two read as the same family - as does
       the radius, which is that card's 16px. */
    padding: 40px 30px;
    background: linear-gradient(180deg, #fefbf7 0%, #fefcf9 45%, #fffdf8 100%);
    border-radius: 16px;
}

/* The tone runs on past the last row and across the 48px gap below, dissolving
   into the page so the block does not end on a hard edge. Absolutely positioned
   on purpose: the block keeps its height and the gap keeps its length. */
.supply-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
}
.supply-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.supply-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a202c;
    line-height: 1.35;
    margin: 0 0 16px;
}

.supply-rows {
    margin: 0;
    padding: 0;
    border-top: 1px solid #eceff3;
}

.supply-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #eceff3;
}

.supply-row-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.7;
    margin: 0;
}

.supply-row-value {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: #64748b;
}
.supply-row-value p { margin: 0 0 6px; }
.supply-row-value p:last-child { margin-bottom: 0; }
.supply-row-lead { font-weight: 700; color: #1a202c; }

.supply-bullets {
    margin: 8px 0 0;
    padding-left: 18px;
}
.supply-bullets li {
    font-size: 13.5px;
    line-height: 1.75;
    color: #64748b;
    margin-bottom: 2px;
}
.supply-bullets li::marker { color: #1f4e8c; }

.supply-note {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
    color: #1f4e8c;
    margin: 16px 0 0;
}

.comply-text {
    font-size: 13.5px;
    line-height: 1.75;
    color: #64748b;
    margin: 0 0 18px;
}

.comply-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comply-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    background: #ffffff;
    border: 1px solid #c7d6ea;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1f4e8c;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .supply-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .product-supply {
        padding: 28px 20px;
    }
}

@media (max-width: 768px) {
    .product-supply {
        margin-bottom: 36px;
    }
    .supply-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 14px 0;
    }
    .supply-row-label {
        font-size: 12.5px;
    }
}

/* =========================================================================
 * Product detail — A+ content images
 *
 * Full-width banners stacked under the detail scroll sections, each with its
 * own heading and paragraph centred underneath — the Amazon A+ arrangement.
 * The copy lives in the meta box, so a banner can be re-worded without
 * regenerating the artwork. Renders only for products given images.
 * ========================================================================= */
.product-aplus {
    /* Top as well as bottom: the scroll sections above carry no bottom
       margin, so without this the two blocks touch. 56px matches the rhythm
       of the other blocks on the product page. */
    margin: 56px 0;
}

.aplus-row {
    margin: 0 0 44px;
}
.aplus-row:last-child {
    margin-bottom: 0;
}

.aplus-media {
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    line-height: 0;
}
.aplus-media img {
    display: block;
    width: 100%;
    height: auto;
}



.aplus-caption {
    max-width: 880px;
    margin: 20px auto 0;
    text-align: center;
}

.aplus-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.35;
    margin: 0 0 8px;
}

.aplus-text {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0;
}

/* =========================================================================
 * Model comparison — a centred heading, then a three-column table: the metric
 * on the left, the model being sold in the middle (dark header cell, blue text)
 * and the model it replaces on the right.
 * ========================================================================= */
.product-compare {
    margin: 32px 0 0;
}

.compare-header {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.compare-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1a202c;
    line-height: 1.3;
    margin: 0 0 12px;
}

.compare-subtitle {
    font-size: 15px;
    line-height: 1.75;
    color: #6b7280;
    margin: 0;
}

.compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
}

.compare-table th,
.compare-table td {
    text-align: left;
    vertical-align: top;
    padding: 16px 12px;
    line-height: 1.6;
}

.compare-table thead th {
    font-size: 15px;
    font-weight: 700;
    color: #1f4e8c;
    background: #e8eef7;
    white-space: normal;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #d9e2ef;
}

.compare-table .compare-th-feature {
    width: 30%;
    color: #1f4e8c;
}

.compare-table .compare-th-new {
    width: 38%;
    background: #e8eef7;
}

.compare-table .compare-th-old {
    width: 32%;
}

.compare-table tbody th,
.compare-table tbody td {
    border-bottom: 1px solid #eef1f5;
    color: #5b6472;
}

.compare-table tbody tr {
    background: #ffffff;
    transition: background 0.15s ease;
}

/* The reference tints the row under the pointer, which keeps a long table easy
   to follow across three columns. */
.compare-table tbody tr:hover {
    background: #f8fafc;
}

.compare-table .compare-cell-feature {
    font-weight: 700;
    color: #111827;
}

/* The middle column is a short standard or a value, not a sentence, so it reads
   better centred - left aligned, a column of three-word answers looks like it has
   been cut off. The two outer columns stay left aligned: one holds a long
   component name, the other a description. */
.compare-table thead th.compare-th-new,
.compare-table tbody td.compare-cell-new {
    text-align: center;
}

.compare-table .compare-cell-new {
    color: #1f4e8c;
    font-weight: 600;
}

/* The green variant marks a reduction or an improvement over the old model. It
   is still written by the panel, but this page asked for the whole column in the
   brand blue, so the rule is neutralised rather than deleted - putting #16a34a
   back here restores the green for every page at once. */
.compare-table .compare-cell-new.is-good {
    color: #1f4e8c;
}

.compare-table .compare-cell-old {
    color: #4b5563;
}

@media (max-width: 900px) {
    .product-compare {
        margin-top: 24px;
    }
    .compare-title {
        font-size: 20px;
    }
    .compare-table {
        min-width: 640px;
        font-size: 14px;
    }
    .compare-table th,
    .compare-table td {
        padding: 12px 14px;
    }
}

/* =========================================================================
 * B2B case success — one bordered card: a coloured rule down the left, a bold
 * heading, copy that opens with a bold label, and a call-to-action on the right.
 * Sits directly under the application cards.
 * ========================================================================= */
.product-case {
    margin: 28px 0;
}

.case-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #16a34a;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
    padding: 28px 32px;
}

.case-body {
    flex: 1 1 auto;
    min-width: 0;
}

.case-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 10px;
}

.case-text {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0;
}

.case-lead {
    color: #111827;
    font-weight: 700;
}

.case-cta {
    flex: 0 0 auto;
}

.case-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    background: #16a34a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.case-btn:hover {
    background: #128a3e;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .product-case {
        margin: 18px 0;
    }
    .case-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 22px 20px;
        border-left-width: 4px;
    }
    .case-title {
        font-size: 17px;
    }
    .case-btn {
        width: 100%;
    }
}

/* =========================================================================
 * Application scenarios — a centred heading, then cards stacked one per row.
 * Icon on top, bold title, paragraph. The arrangement asked for on the
 * foldable cage page.
 * ========================================================================= */
.product-applications {
    margin: 56px 0;
}

.applications-header {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.applications-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1a202c;
    line-height: 1.3;
    margin: 0 0 12px;
}

.applications-subtitle {
    font-size: 15px;
    line-height: 1.75;
    color: #6b7280;
    margin: 0;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.application-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fafafa;
    padding: 30px 34px;
}

.application-icon {
    margin-bottom: 16px;
    line-height: 0;
}
.application-icon img {
    display: block;
    width: 40px;
    height: 40px;
}

.application-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin: 0 0 12px;
}

.application-text {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0;
}

/* Inline size helpers. The classic editor's "格式" dropdown wraps the
   selection in a <span> carrying one of these classes, so a bold lead-in can
   sit smaller than the paragraph around it - a block format would have
   resized the whole paragraph instead. Values are relative to the copy they
   sit in, so they follow .blog-article-body when its base size changes. */
.jution-text-sm {
    font-size: 0.88em;
}
.jution-text-xs {
    font-size: 0.765em;
}

/* A phrase inside body copy that links out. Red and underlined, so it
   reads as a destination rather than as emphasis - the paragraph around
   it stays grey and unadorned. Shared by the application cards (built
   from the two link fields) and the detail scroll paragraphs (an inline
   <a> in the description, which is stored through wp_kses_post). */
.jution-inline-link {
    color: #d93025;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    border-radius: 2px;
    transition: color .15s ease, background-color .15s ease;
}
.jution-inline-link:hover,
.jution-inline-link:focus-visible {
    color: #b3261e;
    background-color: rgba(217, 48, 37, 0.09);
}

@media (max-width: 768px) {
    .product-applications {
        margin: 36px 0;
    }
    .applications-header {
        margin-bottom: 28px;
    }
    .applications-title {
        font-size: 20px;
    }
    .applications-list {
        gap: 18px;
    }
    .application-card {
        padding: 22px 20px;
        border-radius: 10px;
    }
    .application-icon img {
        width: 34px;
        height: 34px;
    }
    .application-title {
        font-size: 17px;
    }
}

/* The two-up variant: the same rows, but as cards two to a line with their
   heading and paragraph left-aligned under the picture, instead of centred
   beneath a full-width banner. A per-product choice, so the pages that want
   the banner arrangement are untouched. */
.product-aplus--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
}

.product-aplus--grid .aplus-row {
    margin: 0;
}

.product-aplus--grid .aplus-caption {
    max-width: none;
    margin: 18px 0 0;
    text-align: left;
}

/* One optional heading band over the whole block. Reuses the caption type
   scale so it matches the copy under the banners, and centres like a
   full-width banner does. On the two-up variant it spans both columns, or the
   grid would treat it as the first card. */
.aplus-header {
    max-width: 880px;
    margin: 0 auto 40px;
    text-align: center;
}

.product-aplus--grid .aplus-header {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .aplus-header {
        margin-bottom: 28px;
    }
}

@media (max-width: 900px) {
    .product-aplus--grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .product-aplus {
        margin: 36px 0;
    }
    .aplus-row {
        margin-bottom: 28px;
    }
    .aplus-media {
        border-radius: 8px;
    }
    .aplus-caption {
        margin-top: 14px;
    }
    .aplus-title {
        font-size: 18px;
    }
    .aplus-text {
        font-size: 14px;
    }
}

/* Product 57 — main image on a white backdrop.
   The picture is 4:5 and letterboxes inside the 1:1 window, so the window's own
   colour shows as a band down each side. On this page that band is white. */
.postid-57 .product-detail-image {
    background: #fff;
}

/* Product 57 — listing card on a white ground.
   Both surfaces go white: the card, and the window the picture sits in. The
   picture is 4:5 inside that 1:1 window, so leaving the window cream would keep
   a tinted band either side of it. The photograph itself is unchanged. */
.shop-card--p57,
.shop-card--p57 .shop-card-media {
    background: #fff;
}

/* Product 57 — two cards side by side, each with its copy above the picture.
   The stack layout already lays the cards out two to a row, but it puts the
   picture first and the words beneath; here the order is reversed and the
   divider moves to the bottom of the copy. */
.postid-57 .product-scroll-sections--grid {
    align-items: stretch;
}
.postid-57 .product-scroll-card--stack {
    display: flex;
    flex-direction: column;
}
.postid-57 .product-scroll-card--stack .product-scroll-body {
    order: -1;
    flex: 1;
    border-top: 0;
    padding-top: 0;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
/* A fixed window with the picture contained inside it: one card holds a tall
   phone screen, the other a wider composite, and both have to end level. The
   picture is drawn with an inline 1:1 / cover style, hence the !important. */
.postid-57 .product-scroll-image {
    max-width: 360px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
}
.postid-57 .product-scroll-image img {
    aspect-ratio: auto !important;
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}

/* Product 57 — the A+ banner at 60% of the column.
   The banner is 736px wide natively; at full width it was being upscaled to
   1160px and softened. 60% puts it at 696px, near enough to its own resolution. */
.postid-57 .product-aplus .aplus-media {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 900px) {
    .postid-57 .product-aplus .aplus-media {
        max-width: 100%;
    }
}

/* Comparison table — group bands.
   A row whose group name differs from the one above opens a band that runs the
   width of the table, so a parameter list can be split into sections without
   turning the admin into a nested repeater. Left aligned like the rest of the
   table, so the band sits over the label column it introduces. */
.product-compare .compare-group-row th {
    background: #e8eef7;
    color: #1f4e8c;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    padding: 14px 16px;
    border-top: 0;
    border-bottom: 1px solid #d9e2ef;
}
.product-compare .compare-group-row:first-child th {
    border-top: 0;
}

/* Comparison list layout.
   The same rows as the table, stacked in one column: the label on its own line
   and the values under it. Chosen per product, because a parts list reads across
   three columns while a parameter list reads down one. */
.product-compare .compare-list {
    margin: 0;
}

.product-compare .compare-list-group {
    background: #e8eef7;
    color: #1f4e8c;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 1px solid #d9e2ef;
}

.product-compare .compare-list-group:not(:first-child) {
    margin-top: 24px;
}

/* In a list every value is one line, so they all read the same weight: a row
   that carries three values should not look like a heading followed by notes. */
.product-compare .compare-list-item {
    display: block;
    padding: 0;
}

.product-compare .compare-list-main,
.product-compare .compare-list-line {
    display: block;
    padding: 13px 12px;
    border-bottom: 1px solid #eef1f5;
    color: #1f2937;
    font-weight: 400;
    line-height: 1.6;
}

.product-compare .compare-list-main.is-good {
    color: #16a34a;
    font-weight: 600;
}

/* Image pair, half size.
   The whole grid is halved rather than each card, so the two pictures stay
   beside each other in the middle of the page instead of drifting to the edges
   of their columns. On a phone the choice does not apply - half of one column is
   not a picture. */
.product-image-pair--half .pair-grid {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .product-image-pair--half .pair-grid {
        max-width: 100%;
    }
}

/* Plain text section: one heading and a column of paragraphs. Sits under the
   image pair, so it keeps the same centred column as the rest of the page. */
.product-copy {
    max-width: 1000px;
    margin: 40px auto 0;
}

.product-copy-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a202c;
    margin: 0 0 14px;
}

.product-copy-line {
    font-size: 15px;
    line-height: 1.85;
    color: #4b5563;
    margin: 0 0 12px;
}

.product-copy-line:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .product-copy {
        margin-top: 28px;
    }
    .product-copy-title {
        font-size: 19px;
    }
}

/* A+ banner at half size: the block is halved and centred, so the picture shrinks
   with its frame instead of floating in a full-width wrapper. Phones keep full
   width - half a column is not a picture. */
.product-aplus--half {
    /* 65% is the half-width layout a third wider: the pictures grow 30% while
       keeping their own proportions, so nothing is cropped. 1160 -> 754 at this
       page width, and each image comes out 30% larger than it was. */
    max-width: 65%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .product-aplus--half {
        max-width: 100%;
    }
}

/* =========================================================================
 * Contact page
 *
 * Three bands: banner (shared .page-hero), support channels, enquiry form.
 * The form reuses the site's .contact-form field styling but swaps the legacy
 * terracotta focus ring for the primary teal, so a focused field matches the
 * rest of the new page.
 * ====================================================================== */
.contact-page {
    background-color: #fff;
}

.contact-support {
    padding: 84px 0 8px;
}

.contact-head {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.contact-kicker {
    margin: 0 0 12px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-heading {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    line-height: 1.25;
    color: var(--secondary-color);
}

.contact-intro {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-light);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
}

.contact-card-label {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.contact-card-value {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--secondary-color);
    overflow-wrap: anywhere;
}

.contact-card-value a {
    color: inherit;
}

.contact-card-value a:hover {
    color: var(--primary-color);
}

.contact-card-note {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
}

.contact-enquiry {
    padding: 56px 0 96px;
}

/* Lighter banner mask, on request: exactly half of the shared
   .page-hero-overlay (0.45 -> 0.225, 0.55 -> 0.275), matching the blog hero.
   Scoped to .contact-hero so About / Products keep their weight. */
.contact-hero .page-hero-overlay {
    background: linear-gradient(to bottom,
        rgba(15, 23, 42, 0.225) 0%,
        rgba(15, 23, 42, 0.275) 100%);
}

/* Same first screen as the Blog index, on request. The band used to follow
   the photo's own ratio (1182:443), which made its height a function of the
   viewport - 600px at 1920, 540 at 1440, 480 at 1280, 420 at 1024 - while the
   Blog hero is a flat 564px across the whole desktop range. Both bands now
   agree: same 190/90 air as .blog-list-hero and the same 564px floor.

   The photo is 2.67:1, so at 1440x564 cover only shaves ~4% off its width -
   the crop the blog banner already lives with. min-height rather than height:
   the copy can still push the band taller instead of spilling out of it.

   The copy sits low in the band, on request (the client marked the bottom
   strip of the banner): flex-end drops the title + standfirst to the foot,
   and the 56px bottom air keeps them off the edge. The old 190px top padding
   still guards against the fixed header if the copy ever grows. */
.contact-hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* width must be stated: as a flex item the section would otherwise
       shrink-wrap its content. */
    width: 100%;
    min-height: 564px;
    padding: 190px 0 56px;
}

/* As a flex item the container would shrink to its text width, and the
   centred copy has a 720px max-width to work with. */
.contact-hero .container {
    width: 100%;
}

/* The blog band drops to its 130/64 air below 901px and lands between 446
   and 501px, so the contact band follows it down there as well. */
@media (min-width: 769px) and (max-width: 900px) {
    .contact-hero {
        min-height: 470px;
        padding: 130px 0 48px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 501px;
        padding: 130px 0 48px;
    }
}

/* The plant photo is bright where the copy sits and the mask above is half
   weight, so the banner text keeps the halo the blog hero uses rather than a
   heavier overlay. */
.contact-hero .page-hero-title,
.contact-hero .page-hero-subtitle {
    text-shadow: 0 1px 12px rgba(10, 16, 28, 0.5);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}

/* The shared form is centred and 700px wide for the home page band; here it
   has to fill its grid column. */
.contact-form {
    max-width: none;
    margin: 0;
}

.contact-form select {
    width: 100%;
    padding: 12px 15px;
    /* A native select is 48px tall against the 46px text inputs beside it,
       which showed up as a 2px step in the Company / Project type row. The
       explicit height squares the two up on the home and contact forms. */
    height: 46px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background-color: #fff;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-req {
    color: #d93025;
}

.contact-submit {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.02rem;
    border-radius: 50px;
}

.contact-form-note {
    margin: 14px 0 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-light);
}

.contact-thanks {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--primary-light);
    color: #075e5f;
    font-weight: 600;
}

.jution-enquiry-notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.jution-enquiry-notice--error {
    background: #fdecea;
    color: #b32d2e;
    border: 1px solid #f5c2c0;
}

.contact-side {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 28px;
}

.contact-side-title {
    margin: 0 0 18px;
    font-size: 1.15rem;
    color: var(--secondary-color);
}

.contact-steps {
    counter-reset: contact-step;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-steps li {
    counter-increment: contact-step;
    position: relative;
    padding-left: 42px;
    margin-bottom: 18px;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--text-light);
}

.contact-steps li:last-child {
    margin-bottom: 0;
}

.contact-steps li::before {
    content: counter(contact-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .contact-support {
        padding: 64px 0 4px;
    }

    .contact-enquiry {
        padding: 44px 0 72px;
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .contact-head {
        margin-bottom: 34px;
    }
}

@media (max-width: 680px) {
    .contact-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================================
 * About Us page - Procurement FAQ (question / answer cards)
 * ========================================================================= */
.about-faq-section {
    margin-top: 96px;
    padding: 56px 0 64px;
    background: #f7f8fa;              /* faint grey so the white cards read as cards */
    border-radius: 6px;
}

.about-faq-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-faq-heading {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    text-align: center;
    margin: 0 0 30px;
}

.about-faq-intro {
    max-width: 680px;
    margin: -16px auto 30px;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #6b7280;
}

.about-faq-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-faq-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 26px 30px 24px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 6px 18px rgba(17, 24, 39, 0.05);
}

.about-faq-question {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
    color: #1f2937;
    margin: 0 0 12px;
}

.about-faq-qnum {
    font-weight: 700;
    color: #1f2937;
}

.about-faq-answer > p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #6b7280;
    margin: 0 0 12px;
}

.about-faq-answer > p:last-child {
    margin-bottom: 0;
}

.about-faq-answer strong {
    font-weight: 600;
    color: #1f2937;
}

.about-faq-answer a {
    color: #1f4e8c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-faq-answer a:hover {
    color: #b32d2e;
}

/* Bullet lines: a small dot hung in the gutter keeps the text column aligned
   with the paragraphs above, instead of indenting the whole list. */
.about-faq-list-items {
    list-style: none;
    margin: 2px 0 14px;
    padding: 0 0 0 22px;
}

.about-faq-list-items li {
    position: relative;
    font-size: 0.875rem;
    line-height: 1.75;
    color: #6b7280;
    margin-bottom: 10px;
}

.about-faq-list-items li::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 0.72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9ca3af;
}

.about-faq-list-items li:last-child {
    margin-bottom: 0;
}

/* "!" lines — the light blue note box. */
.about-faq-callout {
    margin: 14px 0 0;
    padding: 14px 18px;
    background: #eaf2fc;
    border-left: 3px solid #7fa9dd;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #374151;
}

.about-faq-callout strong {
    color: #1f2937;
}

@media (max-width: 900px) {
    .about-faq-section {
        margin-top: 72px;
        padding: 40px 0 48px;
    }
    .about-faq-item {
        padding: 22px 20px;
    }
}

@media (max-width: 560px) {
    .about-faq-heading {
        font-size: 1rem;
        margin-bottom: 22px;
    }
    .about-faq-list {
        gap: 14px;
    }
    .about-faq-item {
        padding: 18px 16px;
        border-radius: 6px;
    }
    .about-faq-list-items {
        padding-left: 18px;
    }
    .about-faq-callout {
        padding: 12px 14px;
    }
}

/* =========================================================================
 * About Us page - Quality & Compliance Certifications
 * ========================================================================= */
.about-compliance-section {
    margin-top: 96px;
}

.about-compliance-head {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-compliance-title {
    /* Same typographic voice as .about-story-intro: sentence case, 600 weight,
       normal tracking — the heavy all-caps heading read as a different family. */
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    color: #111827;
    margin: 0 0 10px;
}

.about-compliance-subtitle {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #6b7280;
    margin: 0 auto;
    max-width: 620px;
}

/* Filter pills on the left, the "verified by" line on the right. */
.about-compliance-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    margin: 34px 0 20px;
}

.about-compliance-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-compliance-pill {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    background: #f1f2f4;
    color: #4b5563;
    border-radius: 999px;
    padding: 8px 20px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-compliance-pill:hover {
    background: #e6e8eb;
}

.about-compliance-pill.is-active {
    background: #ffffff;
    border-color: #111827;
    color: #111827;
    font-weight: 600;
}

.about-compliance-verified {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #9ca3af;
}

.about-compliance-verified strong {
    color: #374151;
    font-weight: 700;
}

/* Card row: arrows float in the gutters, the track scrolls natively. */
.about-compliance-row {
    position: relative;
}

.about-compliance-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2px 2px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.about-compliance-track::-webkit-scrollbar {
    display: none;
}

.about-compliance-card {
    flex: 0 0 auto;
    width: 214px;
    min-height: 196px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 18px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-compliance-card:hover {
    border-color: #d6dae0;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.about-compliance-card[hidden] {
    display: none;
}

.about-compliance-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eceef1;
}

.about-compliance-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.about-compliance-badge {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #111827;
    white-space: nowrap;
}

.about-compliance-card-body {
    flex: 1 1 auto;
    padding: 16px 0 14px;
}

.about-compliance-group {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    color: #1f9d55;
    margin: 0 0 6px;
}

.about-compliance-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #9ca3af;
    margin: 0;
}

.about-compliance-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eceef1;
}

.about-compliance-number {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #9ca3af;
    letter-spacing: 0.01em;
    word-break: break-all;
}

.about-compliance-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #b0b6bf;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.about-compliance-copy:hover {
    color: #1f4e8c;
    background: #f3f4f6;
}

.about-compliance-copy svg {
    width: 15px;
    height: 15px;
}

.about-compliance-copy .icon-check {
    display: none;
}

.about-compliance-copy.is-copied {
    color: #1f9d55;
}

.about-compliance-copy.is-copied .icon-copy {
    display: none;
}

.about-compliance-copy.is-copied .icon-check {
    display: block;
}

.about-compliance-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.1);
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-compliance-arrow svg {
    width: 16px;
    height: 16px;
}

.about-compliance-arrow--prev {
    left: -17px;
}

.about-compliance-arrow--next {
    right: -17px;
}

.about-compliance-arrow:hover:not(:disabled) {
    color: #111827;
    border-color: #d1d5db;
}

.about-compliance-arrow:disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Thin scroll progress under the row. */
.about-compliance-progress {
    position: relative;
    height: 4px;
    margin-top: 22px;
    background: #eceef1;
    border-radius: 999px;
    overflow: hidden;
}

.about-compliance-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: #c9ccd2;
    border-radius: 999px;
    transition: left 0.15s linear, width 0.2s ease;
}

@media (max-width: 900px) {
    .about-compliance-section {
        margin-top: 72px;
    }
    .about-compliance-title {
        font-size: 1.0625rem;
    }
    .about-compliance-toolbar {
        margin: 26px 0 16px;
    }
    /* One card plus a peek of the next, so the row reads as scrollable. */
    .about-compliance-card {
        width: 76%;
        min-height: 0;
    }
    .about-compliance-arrow {
        display: none;
    }
}

@media (max-width: 560px) {
    .about-compliance-pill {
        padding: 7px 16px;
    }
    .about-compliance-card {
        width: 82%;
        padding: 16px 16px 14px;
    }
    .about-compliance-progress {
        margin-top: 16px;
    }
}
