/* =========================================================
   WEB HYDRAULIC
   PRODUCTS PAGE
========================================================= */

.product-page-hero,
.product-page-categories,
.product-page-quality,
.product-page-cta {
    --pp-yellow: #f5c332;
    --pp-dark: #07111a;
    --pp-dark-2: #030a10;
    --pp-text: #171c21;
    --pp-muted: #6f777d;
    --pp-border: #e6e9eb;
}


/* =========================================================
   COMMON CONTAINER
========================================================= */

.product-page-container {
    width: min(100% - 64px, 1480px);
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.product-page-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background: var(--pp-dark);
    color: #ffffff;
}


.product-page-hero-bg {
    position: absolute;
    inset: 0;
}


.product-page-hero-bg img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1.03);
}


.product-page-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 10, 16, 0.96) 0%,
            rgba(3, 10, 16, 0.88) 34%,
            rgba(3, 10, 16, 0.65) 58%,
            rgba(3, 10, 16, 0.25) 100%
        );
}


.product-page-hero-content {
    position: relative;
    z-index: 2;

    padding-top: 90px;
    padding-bottom: 90px;
}


.product-page-eyebrow,
.product-page-kicker {
    display: flex;
    align-items: center;

    gap: 12px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.7px;
}


.product-page-eyebrow {
    color: var(--pp-yellow);
}


.product-page-eyebrow span,
.product-page-kicker span {
    display: block;

    width: 38px;
    height: 2px;

    background: var(--pp-yellow);
}


.product-page-hero h1 {
    max-width: 850px;

    margin: 18px 0 20px;

    font-size: clamp(46px, 5.5vw, 82px);
    line-height: 0.98;

    letter-spacing: -3px;

    font-weight: 800;
}


.product-page-hero h1 strong {
    display: block;

    color: var(--pp-yellow);

    font-weight: inherit;
}


.product-page-hero-content > p {
    max-width: 680px;

    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 15px;
    line-height: 1.8;
}


.product-page-breadcrumb {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 32px;

    font-size: 12px;
    font-weight: 700;
}


.product-page-breadcrumb a {
    color: #ffffff;

    text-decoration: none;

    transition: color 0.3s ease;
}


.product-page-breadcrumb a:hover {
    color: var(--pp-yellow);
}


.product-page-breadcrumb > span:first-of-type {
    color: var(--pp-yellow);
}


.product-page-breadcrumb > span:last-child {
    color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   PRODUCTS SECTION
========================================================= */

.product-page-categories {
    padding: 90px 0 105px;

    background: #ffffff;

    color: var(--pp-text);
}


.product-page-section-head {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(300px, 0.7fr);

    align-items: end;

    gap: 70px;

    margin-bottom: 42px;
}


.product-page-kicker {
    color: #a1730d;
}


.product-page-section-head h2 {
    margin: 12px 0 0;

    font-size: clamp(36px, 3.7vw, 56px);
    line-height: 1.05;

    letter-spacing: -2px;
}


.product-page-section-intro p {
    max-width: 570px;

    margin: 0;

    color: var(--pp-muted);

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   FILTER
========================================================= */

.product-page-filter {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 35px;

    padding: 12px;

    border: 1px solid var(--pp-border);

    background: #f7f8f8;
}


.product-page-filter button {
    appearance: none;

    border: none;

    padding: 13px 19px;

    background: transparent;

    color: #5f676d;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.product-page-filter button:hover,
.product-page-filter button.is-active {
    background: var(--pp-yellow);

    color: #111820;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.product-page-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


.product-page-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--pp-border);

    background: #ffffff;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.product-page-card:hover {
    transform: translateY(-6px);

    border-color: #d7dade;

    box-shadow:
        0 20px 50px
        rgba(7, 17, 26, 0.10);
}


.product-page-card.is-hidden {
    display: none;
}


/* IMAGE */

.product-page-card-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1.35 / 1;

    overflow: hidden;

    background: #eeeeee;
}


.product-page-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform
        0.55s
        cubic-bezier(.2, .7, .2, 1);
}


.product-page-card:hover
.product-page-card-image img {
    transform: scale(1.06);
}


.product-page-card-number {
    position: absolute;

    top: 0;
    right: 0;

    display: grid;

    place-items: center;

    width: 50px;
    height: 50px;

    background: var(--pp-yellow);

    color: #111820;

    font-size: 11px;
    font-weight: 900;
}


/* CARD CONTENT */

.product-page-card-body {
    min-height: 185px;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 22px;

    padding: 25px 24px 24px;
}


.product-page-card-label {
    color: #9a6c08;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.3px;
}


.product-page-card h3 {
    margin: 8px 0 10px;

    color: var(--pp-text);

    font-size: 22px;
    line-height: 1.15;
}


.product-page-card p {
    max-width: 340px;

    margin: 0;

    color: var(--pp-muted);

    font-size: 12px;
    line-height: 1.7;
}


.product-page-card-arrow {
    flex: 0 0 44px;

    align-self: flex-end;

    display: grid;

    place-items: center;

    width: 44px;
    height: 44px;

    background: var(--pp-yellow);

    color: #111820;

    text-decoration: none;

    font-size: 20px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.product-page-card-arrow:hover {
    background: var(--pp-dark);

    color: #ffffff;

    transform: translateX(3px);
}


/* =========================================================
   QUALITY SECTION
========================================================= */

.product-page-quality {
    padding: 95px 0;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(245, 195, 50, 0.08),
            transparent 28%
        ),
        var(--pp-dark);

    color: #ffffff;
}


.product-page-kicker-light {
    color: var(--pp-yellow);
}


.product-page-quality-head {
    max-width: 760px;

    margin-bottom: 48px;
}


.product-page-quality-head h2 {
    margin: 12px 0 16px;

    font-size: clamp(36px, 3.7vw, 56px);
    line-height: 1.05;

    letter-spacing: -2px;
}


.product-page-quality-head p {
    max-width: 620px;

    margin: 0;

    color: rgba(255, 255, 255, 0.60);

    font-size: 14px;
    line-height: 1.8;
}


.product-page-quality-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border-top:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-left:
        1px solid
        rgba(255, 255, 255, 0.13);
}


.product-page-quality-item {
    min-height: 250px;

    padding: 30px;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.13);

    transition:
        background 0.3s ease;
}


.product-page-quality-item:hover {
    background:
        rgba(255, 255, 255, 0.035);
}


.product-page-quality-item strong {
    color: var(--pp-yellow);

    font-size: 12px;
}


.product-page-quality-item h3 {
    margin: 72px 0 11px;

    font-size: 20px;
}


.product-page-quality-item p {
    margin: 0;

    color: rgba(255, 255, 255, 0.56);

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.product-page-cta {
    padding: 72px 0;

    background: var(--pp-yellow);

    color: #111820;
}


.product-page-cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 60px;
}


.product-page-cta-copy {
    max-width: 760px;
}


.product-page-cta
.product-page-kicker {
    color: #604700;
}


.product-page-cta
.product-page-kicker span {
    background: #111820;
}


.product-page-cta h2 {
    margin: 12px 0 15px;

    font-size: clamp(34px, 3.4vw, 52px);
    line-height: 1.05;

    letter-spacing: -2px;
}


.product-page-cta p {
    max-width: 650px;

    margin: 0;

    color: rgba(17, 24, 32, 0.68);

    font-size: 13px;
    line-height: 1.75;
}


.product-page-cta-actions {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


.product-page-btn {
    min-height: 52px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    padding: 0 22px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 900;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}


.product-page-btn:hover {
    transform: translateY(-3px);
}


.product-page-btn-dark {
    border:
        1px solid
        var(--pp-dark);

    background:
        var(--pp-dark);

    color: #ffffff;
}


.product-page-btn-dark:hover {
    background: #111d26;
}


.product-page-btn-outline {
    border:
        1px solid
        rgba(17, 24, 32, 0.55);

    color: #111820;
}


.product-page-btn-outline:hover {
    background: #111820;

    color: #ffffff;
}


/* =========================================================
   SCROLL ANIMATION
========================================================= */

.product-page-reveal {
    opacity: 0;

    transform: translateY(24px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.product-page-reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .product-page-container {
        width: min(
            100% - 48px,
            1480px
        );
    }


    .product-page-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .product-page-quality-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .product-page-cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .product-page-container {
        width: min(
            100% - 34px,
            1480px
        );
    }


    .product-page-hero {
        min-height: 470px;
    }


    .product-page-hero-content {
        padding-top: 65px;
        padding-bottom: 65px;
    }


    .product-page-hero h1 {
        font-size: 44px;

        letter-spacing: -2px;
    }


    .product-page-section-head {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .product-page-categories {
        padding:
            70px 0;
    }


    .product-page-filter {
        gap: 6px;
    }


    .product-page-filter button {
        flex-grow: 1;
    }


    .product-page-grid {
        grid-template-columns: 1fr;
    }


    .product-page-card-image {
        aspect-ratio: 1.45 / 1;
    }


    .product-page-quality {
        padding: 70px 0;
    }


    .product-page-quality-grid {
        grid-template-columns: 1fr;
    }


    .product-page-quality-item {
        min-height: 210px;
    }


    .product-page-quality-item h3 {
        margin-top: 50px;
    }


    .product-page-cta {
        padding: 58px 0;
    }


    .product-page-cta-actions {
        width: 100%;

        flex-direction: column;
    }


    .product-page-btn {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .product-page-hero h1 {
        font-size: 38px;
    }


    .product-page-card-body {
        min-height: 170px;

        padding: 22px 20px;
    }


    .product-page-card h3 {
        font-size: 20px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .product-page-reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }


    .product-page-card,
    .product-page-card-image img,
    .product-page-btn {
        transition: none;
    }

}


.product-page-card[hidden] {
    display: none !important;
}

/* =========================================================
   INTERACTION & RESPONSIVE REFINEMENTS
========================================================= */

/* Keep the card hover lift after scroll-reveal becomes visible. */
.product-page-card.product-page-reveal.is-visible:hover {
    transform: translateY(-6px);
}

/* Keyboard accessibility for filters and navigation links. */
.product-page-filter button:focus-visible,
.product-page-card-arrow:focus-visible,
.product-page-btn:focus-visible,
.product-page-breadcrumb a:focus-visible {
    outline: 3px solid #b18400;
    outline-offset: 3px;
}

.product-page-cta-actions {
    flex-wrap: wrap;
}

.product-page-card-body > div:first-child {
    min-width: 0;
}

@media (max-width: 480px) {
    .product-page-hero h1 {
        overflow-wrap: anywhere;
    }

    .product-page-card-body {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-page-card.product-page-reveal.is-visible:hover {
        transform: none;
    }
}
