/*
 * Products page (page-products.php)
 * Desktop values follow the Figma frame "Product berlinvn" (1920px);
 * breakpoints: 1199px (laptop), 991px (tablet), 767px / 479px (mobile).
 */

.products-page {
    --pr-red: #da011c;
    --pr-red-btn: #e31e24;
    --pr-text: #e2e2e2;
    --pr-text-soft: rgba(255, 255, 255, 0.6);
    --pr-border: rgba(255, 255, 255, 0.1);
    --pr-font-hanken: 'Hanken Grotesk', var(--font-inter), sans-serif;
    --pr-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --pr-font-display: 'Battambang', var(--font-inter), sans-serif;
    --pr-gutter: 24px;

    background-color: #000000;
    color: #ffffff;
    font-family: var(--font-inter);
}

.products-page p,
.products-page h1,
.products-page h2,
.products-page h3 {
    margin: 0;
}

.pr-container {
    width: 100%;
    max-width: calc(1320px + var(--pr-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--pr-gutter);
}

.pr-text-red {
    display: block;
    color: var(--pr-red);
}

/* --- Shared buttons --- */
.pr-btn,
.pr-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.7px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pr-btn {
    padding: 20px 40px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.pr-btn--red {
    background-color: #da001b;
}

.pr-btn--outline {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
}

.pr-pill {
    gap: 8px;
    padding: 17px 32px;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-family: var(--pr-font-hanken);
    line-height: 14px;
    text-transform: uppercase;
}

.pr-pill--red {
    background-color: var(--pr-red-btn);
    color: #fffafa;
}

.pr-pill--outline {
    border-color: rgba(255, 255, 255, 0.2);
}

.pr-btn:hover,
.pr-pill:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.pr-btn--red:hover,
.pr-pill--red:hover {
    background-color: #ff1f33;
    box-shadow: 0 0 18px rgba(227, 30, 36, 0.55);
}

.pr-btn--outline:hover,
.pr-pill--outline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.06);
}

.pr-btn:focus-visible,
.pr-pill:focus-visible,
.pr-tab:focus-visible,
.pr-crop:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* --- Hero --- */
.pr-hero {
    position: relative;
    min-height: 886px;
    display: flex;
    align-items: center;
    padding: 80px 0 0;
    overflow: hidden;
    background-color: #000000;
}

.pr-hero__streaks {
    position: absolute;
    top: 123px;
    left: -11px;
    width: 100%;
    min-width: 1100px;
    height: auto;
    max-height: 838px;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.pr-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pr-hero__content {
    flex: 1 1 auto;
    max-width: 720px;
}

.pr-hero__title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.28px;
    color: #ffffff;
}

.pr-hero__desc {
    max-width: 576px;
    margin-top: 30.8px !important;
    padding-bottom: 25.7px;
    font-size: 18px;
    line-height: 28.8px;
    color: var(--pr-text-soft);
}

.pr-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22.9px;
}

.pr-hero__visual {
    flex: 0 0 auto;
    width: 583px;
    margin-right: -52px;
    display: flex;
    justify-content: center;
}

.pr-hero__visual img {
    display: block;
    width: 487.8px;
    max-width: 100%;
    height: auto;
    transform: rotate(8.26deg);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

/* --- Find the Right Solution --- */
.pr-finder {
    position: relative;
    padding: 30px var(--pr-gutter) 50px;
    background:
        linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.2) 6%, rgba(0, 0, 0, 0) 86%, #000000 100%),
        url('../images/products/grid-bg.webp') center / cover no-repeat,
        #000000;
}

.pr-finder__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 0;
}

.pr-finder__title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.48px;
    text-align: center;
    color: #ffffff;
}

.pr-search {
    position: relative;
    width: 100%;
    max-width: 768px;
    padding-top: 8px;
}

.pr-search__input {
    width: 100%;
    padding: 19px 64px 19px 33px;
    border: 1px solid var(--pr-border);
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.6);
    color: #000000;
    font-family: var(--font-inter);
    font-size: 16px;
    line-height: normal;
    outline: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.pr-search__input::placeholder {
    color: #000000;
    opacity: 1;
}

.pr-search__input:focus {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.45);
}

.pr-search__icon {
    position: absolute;
    top: calc(50% + 4px);
    right: 24px;
    display: flex;
    color: #ffffff;
    transform: translateY(-50%);
    pointer-events: none;
}

.pr-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.pr-tab {
    padding: 9px 25px;
    border: 1px solid var(--pr-border);
    border-radius: 9999px;
    background: transparent;
    color: var(--pr-text);
    font-family: var(--pr-font-hanken);
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.pr-tab:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.pr-tab.is-active {
    padding: 9px 24px;
    border-color: var(--pr-red-btn);
    background-color: var(--pr-red-btn);
    color: #fffafa;
}

/* Product label cards */
.pr-labels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 20px;
    max-width: 1270px;
    margin: 30px auto 0;
}

.pr-label {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pr-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.pr-label[hidden] {
    display: none;
}

.pr-label__bar {
    display: block;
    height: 6px;
    flex: 0 0 auto;
}

.pr-label__logo {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 10px 14px;
}

.pr-label__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 32px;
    object-fit: contain;
    object-position: left center;
}

.pr-label__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    padding: 6px 14px;
    font-size: 10px;
    line-height: 15px;
}

.pr-label__stage {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-label__freq {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

/* Filter status notes stay in the DOM (role="status") and only take space while they have text */
.pr-empty {
    max-width: 1270px;
    margin: 0 auto !important;
    color: var(--pr-text-soft);
    text-align: center;
}

.pr-empty.is-visible {
    margin-top: 30px !important;
    padding: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.pr-empty--portfolio.is-visible {
    margin-top: 48px !important;
}

.pr-labels[hidden],
.pr-protect-grid[hidden] {
    display: none;
}

/* --- Plant Protection Product List --- */
.pr-portfolio {
    position: relative;
    /* The flower art (flying bee) rises above the section top: the global `section { overflow-x: hidden }`
       turns overflow-y into auto and crops it. `clip` keeps the horizontal crop without that side effect;
       older browsers fall back to visible (ancestors still crop horizontally). */
    overflow: visible;
    overflow-x: clip;
    padding: 144px var(--pr-gutter);
    background:
        linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 71%, #000000 100%),
        url('../images/products/portfolio-bg.webp') center / cover no-repeat,
        #000000;
}

.pr-portfolio__flower {
    position: absolute;
    top: -102px;
    left: 50%;
    width: 1041px;
    max-width: 54.2vw;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.pr-portfolio__flower-still,
.pr-portfolio__flower-still img {
    display: block;
    width: 100%;
    height: auto;
}

/* Motion layer box matches the crop rendered from the 1041x595 art */
.pr-portfolio__flower-motion {
    position: absolute;
    top: 4.2017%;
    left: 24.2075%;
    width: 45.9174%;
    height: auto;
}

/* Soft breathing glow over the stamens */
.pr-portfolio__flower-pulse {
    position: absolute;
    top: 32.8%;
    left: 46.7%;
    width: 27%;
    height: 38%;
    background: radial-gradient(closest-side, rgba(255, 150, 220, 0.42), rgba(214, 120, 255, 0.14) 55%, rgba(214, 120, 255, 0) 100%);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    animation: pr-flower-pulse 2s ease-in-out infinite alternate;
}

@keyframes pr-flower-pulse {
    from {
        opacity: 0.35;
    }

    to {
        opacity: 0.9;
    }
}

.pr-portfolio__glow {
    position: absolute;
    top: 232px;
    left: 69.4%;
    width: 404px;
    max-width: 21vw;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.pr-portfolio__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.pr-portfolio__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pr-eyebrow {
    color: #e30613;
    font-family: var(--pr-font-mono);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.pr-portfolio__title {
    width: max-content;
    max-width: 100%;
    padding-bottom: 8px;
    background: linear-gradient(90deg, #3884ff 0%, #e600e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.2px;
}

.pr-portfolio__desc {
    max-width: 800px;
    color: #e6e6e6;
    font-size: 20px;
    line-height: 28px;
}

.pr-protect-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /* Equal rows so every card shares the tallest card's height */
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 26px 16px;
    margin-top: 48px;
}

.pr-protect {
    --pr-rgb: 239, 68, 68;
    --pr-tag: #da011c;
    --pr-glow: #ff0004;

    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
        rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15.2px var(--pr-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pr-protect:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 24px var(--pr-glow);
}

.pr-protect[hidden] {
    display: none;
}

/* Lens-flare highlights on a few cards, as in the design */
.pr-protect--flare-corner::before,
.pr-protect--flare-top::before {
    content: '';
    position: absolute;
    background: url('../images/products/light-flare.webp') center / 100% 100% no-repeat;
    mix-blend-mode: screen;
    pointer-events: none;
}

.pr-protect--flare-corner::before {
    top: -59px;
    left: -66px;
    width: 188px;
    height: 114px;
}

.pr-protect--flare-top::before {
    top: -19px;
    left: 21px;
    width: 255px;
    height: 36px;
}

.pr-protect__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pr-protect__tag {
    padding: 2px 10px;
    border: 1px solid rgba(var(--pr-rgb), 0.2);
    border-radius: 999px;
    background-color: rgba(var(--pr-rgb), 0.1);
    color: var(--pr-tag);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.pr-protect__dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(var(--pr-rgb), 0.4);
}

.pr-protect__name {
    margin-top: 12px !important;
    padding-bottom: 8px;
    color: #ffffff;
    font-family: var(--pr-font-display);
    font-size: 24px;
    font-weight: 900;
    line-height: 24px;
    letter-spacing: 0;
}

.pr-protect__reg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-inter);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    vertical-align: 2px;
}

.pr-protect__ingredients {
    margin-top: 16px !important;
    padding-top: 11.25px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    color: #90909e;
    font-size: 13px;
    font-style: italic;
    line-height: 19.5px;
}

/* Notation + formulation codes */
.pr-legend {
    display: grid;
    grid-template-columns: minmax(0, 384fr) minmax(0, 792fr);
    gap: 24px;
    margin-top: 50px;
}

.pr-note,
.pr-codes {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
}

.pr-note {
    gap: 7.3px;
    background-color: #ffffff;
}

.pr-note__title,
.pr-codes__title {
    font-family: var(--pr-font-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pr-note__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e30613;
}

.pr-note__title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e30613;
}

.pr-note__units {
    padding-bottom: 5.45px;
    color: #a1a1aa;
    font-family: var(--pr-font-mono);
    font-size: 12px;
    font-weight: 400;
    line-height: 19.5px;
}

.pr-note__units b {
    color: #040404;
    font-weight: 500;
}

.pr-note__text {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    color: rgba(0, 0, 0, 0.8);
    font-size: 12px;
    line-height: 16px;
}

.pr-codes {
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.03);
}

.pr-codes__title {
    color: #a1a1aa;
}

.pr-codes__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pr-code {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 70px;
}

.pr-code:last-child {
    grid-column: span 2;
}

.pr-code__abbr {
    color: #000000;
    font-family: var(--pr-font-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.pr-code__name {
    overflow: hidden;
    color: rgba(0, 0, 0, 0.74);
    font-size: 11px;
    line-height: 13.75px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Featured Solution --- */
.pr-featured {
    padding: 144px var(--pr-gutter);
    background:
        linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 71%, #000000 100%),
        url('../images/products/portfolio-bg.webp') center / 100% 100% no-repeat,
        #000000;
}

.pr-featured__inner,
.pr-crops {
    max-width: 1280px;
    margin: 0 auto;
}

.pr-featured__inner {
    display: flex;
    flex-direction: column;
    gap: 23.3px;
}

.pr-featured__eyebrow {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.pr-featured__title {
    width: max-content;
    max-width: 100%;
    background: linear-gradient(90deg, #7aff05 0%, #4690ff 55%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 64px;
    font-weight: 900;
    line-height: 65px;
    letter-spacing: -0.48px;
}

.pr-featured__desc {
    max-width: 700px;
    padding-top: 7.5px;
    color: var(--pr-text-soft);
    font-size: 24px;
    line-height: 32px;
}

.pr-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 24.7px;
}

.pr-stat {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.pr-stat__icon {
    width: 20px;
    height: 20px;
}

.pr-stat__value {
    padding-top: 15px;
    color: #ffffff;
    font-family: var(--pr-font-hanken);
    font-size: 32px;
    font-weight: 600;
    line-height: 41.6px;
}

.pr-stat__label {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--pr-font-hanken);
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    letter-spacing: 0.24px;
}

/* Solutions by Crop */
.pr-crops {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding: 95px 0 55px;
}

.pr-crops__title {
    color: var(--pr-text);
    font-family: var(--pr-font-hanken);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.48px;
    text-align: center;
}

.pr-crops__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.pr-crop {
    position: relative;
    display: block;
    aspect-ratio: 312 / 320;
    overflow: hidden;
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
}

.pr-crop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

.pr-crop__img {
    position: absolute;
    top: 8.4%;
    left: 7.4%;
    width: 85.9%;
    height: auto;
    transition: transform 0.4s ease;
}

.pr-crop:hover .pr-crop__img {
    transform: scale(1.06);
}

.pr-crop__label {
    position: absolute;
    right: 24px;
    bottom: 23px;
    left: 24px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pr-crop__label svg {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.pr-crop__name {
    font-family: var(--pr-font-hanken);
    font-size: 32px;
    font-weight: 600;
    line-height: 41.6px;
}

.pr-crop:hover {
    color: #ffffff;
}

/* --- Technical support CTA --- */
.pr-cta-wrap {
    padding: 30px var(--pr-gutter) 70px;
    background-color: #000000;
}

.pr-cta {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 79.3px 80px 80px;
    overflow: hidden;
    border-radius: 32px;
    background-color: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.pr-cta__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22.9px;
    max-width: 672px;
}

.pr-cta__title {
    max-width: 560px;
    color: var(--pr-text);
    font-family: var(--pr-font-hanken);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.48px;
}

.pr-cta__desc {
    color: var(--pr-text-soft);
    font-size: 18px;
    line-height: 28.8px;
}

.pr-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 17.1px;
}

/* --- Laptop --- */
@media (max-width: 1199px) {
    .pr-hero {
        min-height: 760px;
    }

    .pr-hero__title,
    .pr-portfolio__title,
    .pr-featured__title {
        font-size: 52px;
    }

    .pr-featured__title {
        line-height: 1.05;
    }

    .pr-hero__visual {
        width: 460px;
        margin-right: 0;
    }

    .pr-labels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 860px;
    }

    .pr-protect-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pr-codes__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pr-code:last-child {
        grid-column: auto;
    }

    .pr-portfolio__flower {
        top: -40px;
    }
}

/* --- Tablet --- */
@media (max-width: 991px) {
    .pr-hero {
        min-height: 0;
        padding: 120px 0 40px;
    }

    .pr-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .pr-hero__content {
        max-width: 640px;
    }

    .pr-hero__title,
    .pr-portfolio__title,
    .pr-featured__title {
        font-size: 44px;
    }

    .pr-hero__visual {
        align-self: center;
        width: 100%;
        max-width: 400px;
    }

    .pr-hero__streaks {
        top: auto;
        bottom: 0;
    }

    .pr-finder__title,
    .pr-crops__title,
    .pr-cta__title {
        font-size: 38px;
    }

    .pr-portfolio {
        padding: 96px var(--pr-gutter);
    }

    .pr-portfolio__flower {
        top: 0;
        left: auto;
        right: -8%;
        max-width: 62vw;
        opacity: 0.55;
    }

    .pr-portfolio__glow {
        display: none;
    }

    .pr-protect-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 40px;
    }

    .pr-legend {
        grid-template-columns: 1fr;
    }

    .pr-codes__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pr-code:last-child {
        grid-column: span 2;
    }

    .pr-featured {
        padding: 96px var(--pr-gutter);
    }

    .pr-featured__desc {
        font-size: 20px;
        line-height: 28px;
    }

    .pr-stats {
        gap: 16px;
    }

    .pr-crops {
        gap: 40px;
        padding-top: 72px;
    }

    .pr-crops__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .pr-cta {
        padding: 56px 48px;
    }
}

/* --- Mobile --- */
@media (max-width: 767px) {
    .products-page {
        --pr-gutter: 16px;
    }

    .pr-hero {
        padding: 104px 0 32px;
    }

    .pr-hero__title,
    .pr-portfolio__title,
    .pr-featured__title {
        font-size: 36px;
        letter-spacing: -0.72px;
    }

    .pr-hero__desc {
        margin-top: 20px !important;
        padding-bottom: 8px;
        font-size: 16px;
        line-height: 26px;
    }

    .pr-hero__actions {
        gap: 12px;
    }

    .pr-btn {
        padding: 16px 28px;
    }

    .pr-hero__visual {
        max-width: 300px;
    }

    .pr-finder {
        padding-bottom: 40px;
    }

    .pr-finder__head {
        gap: 20px;
        padding: 24px 0;
    }

    .pr-finder__title,
    .pr-crops__title,
    .pr-cta__title {
        font-size: 30px;
    }

    .pr-search__input {
        padding: 15px 52px 15px 22px;
        font-size: 15px;
    }

    .pr-search__icon {
        right: 20px;
    }

    /* Category tabs scroll horizontally instead of wrapping onto many rows */
    .pr-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 10px;
        width: calc(100% + var(--pr-gutter) * 2);
        margin: 0 calc(var(--pr-gutter) * -1);
        padding: 0 var(--pr-gutter) 4px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pr-tabs::-webkit-scrollbar {
        display: none;
    }

    .pr-tab,
    .pr-tab.is-active {
        flex: 0 0 auto;
        padding: 9px 18px;
        font-size: 13px;
    }

    .pr-labels {
        grid-template-columns: minmax(0, 1fr);
        max-width: 480px;
        margin-top: 16px;
        gap: 12px;
    }

    .pr-portfolio {
        padding: 72px var(--pr-gutter);
    }

    .pr-portfolio__title {
        width: auto;
        line-height: 1.1;
    }

    .pr-portfolio__desc {
        font-size: 16px;
        line-height: 24px;
    }

    .pr-eyebrow {
        font-size: 12px;
        letter-spacing: 2.2px;
    }

    .pr-portfolio__flower {
        top: 8px;
        right: -18%;
        max-width: 80vw;
        opacity: 0.4;
    }

    .pr-protect-grid {
        gap: 20px 14px;
    }

    .pr-protect {
        padding: 16px;
    }

    .pr-protect__name {
        font-size: 19px;
        line-height: 22px;
    }

    .pr-legend {
        margin-top: 40px;
    }

    .pr-codes__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pr-code {
        justify-content: center;
        padding: 8px 16px;
        border-radius: 24px;
    }

    .pr-code__name {
        white-space: normal;
    }

    .pr-featured {
        padding: 72px var(--pr-gutter);
    }

    .pr-featured__title {
        width: auto;
        line-height: 1.1;
    }

    .pr-featured__desc {
        font-size: 17px;
        line-height: 26px;
    }

    .pr-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-top: 8px;
    }

    .pr-stat {
        padding: 20px;
    }

    .pr-crops {
        gap: 28px;
        padding: 56px 0 24px;
    }

    .pr-crops__grid {
        gap: 12px;
    }

    .pr-crop__label {
        right: 14px;
        bottom: 14px;
        left: 14px;
        gap: 8px;
    }

    .pr-crop__name {
        font-size: 22px;
        line-height: 1.2;
    }

    .pr-cta-wrap {
        padding: 16px var(--pr-gutter) 48px;
    }

    .pr-cta {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .pr-cta__desc {
        font-size: 16px;
        line-height: 26px;
    }

    .pr-cta__actions {
        gap: 12px;
        padding-top: 8px;
    }
}

/* --- Small phones --- */
@media (max-width: 479px) {
    .pr-hero__title,
    .pr-portfolio__title,
    .pr-featured__title {
        font-size: 32px;
    }

    .pr-hero__actions .pr-btn,
    .pr-cta__actions .pr-pill {
        width: 100%;
    }

    .pr-protect-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pr-protect__name {
        font-size: 22px;
        line-height: 24px;
    }

    .pr-crop__name {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pr-btn,
    .pr-pill,
    .pr-label,
    .pr-protect,
    .pr-crop__img {
        transition: none;
    }

    .pr-btn:hover,
    .pr-pill:hover,
    .pr-label:hover,
    .pr-protect:hover,
    .pr-crop:hover .pr-crop__img {
        transform: none;
    }

    /* The still art (with bee) is swapped in via <picture> */
    .pr-portfolio__flower-motion,
    .pr-portfolio__flower-pulse {
        display: none;
    }
}
