/* =========================================
   NICK PPF — PRODUCTS
   Page-specific product catalogue styles
========================================= */


/* FEATURED PRODUCT — N75 */

.product-card--featured {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);

    min-height: 520px;
    padding: 0;

    border-right: 1px solid var(--line-white);

    background:
        radial-gradient(
            circle at 22% 45%,
            rgba(255,206,0,.12),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.012) 45%,
            rgba(255,206,0,.025)
        );
}


/* remove generic decorative circle */

.product-card--featured::before {
    right: auto;
    bottom: auto;
    top: -40%;
    left: -25%;

    width: 75%;

    border-color: rgba(255,206,0,.08);

    pointer-events: none;
}


/* IMAGE AREA */

.product-card-media {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    overflow: hidden;

    padding: 54px 42px;

    border-right: 1px solid rgba(255,255,255,.08);

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255,206,0,.10),
            transparent 58%
        ),
        rgba(255,255,255,.012);
}

.product-card-media::after {
    content: "";

    position: absolute;
    inset: 18px;

    border: 1px solid rgba(255,206,0,.08);

    pointer-events: none;
}

.product-card-media img {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;
    max-width: 520px;
    max-height: 390px;

    object-fit: contain;

    filter:
        drop-shadow(0 28px 50px rgba(0,0,0,.55));
}

.product-card-media .product-index {
    position: absolute;
    z-index: 4;

    top: 28px;
    left: 30px;
}


/* CONTENT AREA */

.product-card-content {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding: 54px 44px 48px;
}

.product-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 48px;

    color: rgba(255,206,0,.72);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .22em;
}

.product-card--featured h3 {
    max-width: none;

    margin: 0;

    color: #fff;

    font-size: clamp(64px, 6vw, 105px);
    font-weight: 900;
    line-height: .82;
    letter-spacing: -.075em;
}

.product-card--featured p {
    max-width: 390px;

    margin: 30px 0 0;

    color: rgba(255,255,255,.58);

    font-size: 12px;
    line-height: 1.8;
}


/* SPECS */

.product-card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 38px;

    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.product-card-specs > div {
    display: flex;
    flex-direction: column;

    padding: 18px 16px 17px 0;

    border-right: 1px solid rgba(255,255,255,.08);
}

.product-card-specs > div:not(:first-child) {
    padding-left: 16px;
}

.product-card-specs > div:last-child {
    border-right: 0;
}

.product-card-specs strong {
    color: #fff;

    font-size: clamp(18px, 2vw, 27px);
    font-weight: 900;
    line-height: 1;
}

.product-card-specs span {
    margin-top: 8px;

    color: rgba(255,206,0,.68);

    font-size: 7px;
    font-weight: 800;
    letter-spacing: .18em;
}


/* CTA */

.product-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    width: 100%;

    margin-top: 34px;
    padding: 16px 0 14px;

    border-bottom: 1px solid rgba(255,206,0,.7);

    color: #fff;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;

    transition:
        color .25s ease,
        padding .25s ease;
}

.product-card-link > span:last-child {
    color: var(--gold);

    font-size: 18px;
    line-height: 1;
}

.product-card-link:hover {
    padding-left: 8px;

    color: var(--gold-light);
}


/* line from generic card not needed */

.product-card--featured > .product-line {
    display: none;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .product-card--featured {
        grid-column: 1 / -1;

        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .product-card--featured {
        grid-column: 1 / -1;

        display: block;

        min-height: 0;
    }

    .product-card-media {
        min-height: 360px;

        padding: 50px 26px 36px;

        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .product-card-media img {
        max-height: 290px;
    }

    .product-card-media .product-index {
        top: 22px;
        left: 22px;
    }

    .product-card-content {
        padding: 38px 24px 34px;
    }

    .product-card-topline {
        margin-bottom: 34px;
    }

    .product-card--featured h3 {
        font-size: clamp(64px, 22vw, 92px);
    }

    .product-card--featured p {
        margin-top: 24px;
    }

    .product-card-specs {
        margin-top: 30px;
    }

    .product-card-specs > div {
        padding:
            16px
            10px
            15px
            0;
    }

    .product-card-specs > div:not(:first-child) {
        padding-left: 10px;
    }

    .product-card-link {
        margin-top: 30px;
    }
}


/* =========================================
   PRODUCTS INTRO — VERTICAL CENTER
========================================= */

.products-intro {
    display: flex;
    align-items: center;

    min-height: clamp(480px, 62vh, 680px);

    padding-top: clamp(130px, 12vh, 180px);
    padding-bottom: clamp(90px, 10vh, 150px);
}

.products-intro .products-heading {
    width: 100%;
}

@media (max-width: 700px) {
    .products-intro {
        min-height: 520px;

        padding-top: 120px;
        padding-bottom: 80px;
    }
}


/* =========================================
   CATALOG CARD REVEAL — DESKTOP
========================================= */

@media
    (min-width: 701px)
    and (prefers-reduced-motion: no-preference) {

    .product-grid[data-catalog-series] {
        row-gap: 16px;
    }

    .catalog-card {
        opacity: 0;

        transform: translateY(48px);

        transition:
            opacity .72s ease,
            transform .88s cubic-bezier(.2,.7,.2,1);
    }

    .catalog-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   CATALOG SPACING — MOBILE
========================================= */

@media (max-width: 700px) {

    .product-grid[data-catalog-series] {
        row-gap: 14px;
    }

    .product-grid[data-catalog-series]
    > .product-card {
        border-top:
            1px solid rgba(255,255,255,.08);

        border-bottom:
            1px solid rgba(255,255,255,.08);
    }
}


/* =========================================
   PPF FILM CORNER
========================================= */

.catalog-card.product-card--featured {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


/* odklejony narożnik folii */

.product-film-corner {
    position: absolute;
    z-index: 12;

    top: -1px;
    right: -1px;

    width: 58px;
    height: 58px;

    pointer-events: none;

    transform-origin: 100% 0;

    filter:
        drop-shadow(
            -8px 10px 12px
            rgba(0,0,0,.34)
        );

    transition:
        width .55s cubic-bezier(.2,.7,.2,1),
        height .55s cubic-bezier(.2,.7,.2,1),
        transform .55s cubic-bezier(.2,.7,.2,1),
        filter .55s ease;
}


.product-film-corner::before {
    content: "";

    position: absolute;
    inset: 0;

    clip-path:
        polygon(
            100% 0,
            0 0,
            100% 100%
        );

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.04) 0%,
            rgba(255,255,255,.10) 35%,
            rgba(255,255,255,.72) 49%,
            rgba(225,232,230,.22) 55%,
            rgba(255,206,0,.15) 72%,
            rgba(255,255,255,.03) 100%
        );

    border-top:
        1px solid rgba(255,255,255,.24);

    border-right:
        1px solid rgba(255,206,0,.28);
}


/* linia załamania folii */

.product-film-corner::after {
    content: "";

    position: absolute;

    top: 27px;
    right: -7px;

    width: 76px;
    height: 1px;

    transform: rotate(45deg);

    transform-origin: center;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.48),
            rgba(255,206,0,.30),
            transparent
        );

    opacity: .68;
}


/* refleks przesuwający się po powierzchni */

.product-film-sheen {
    position: absolute;
    z-index: 8;

    top: -20%;
    bottom: -20%;
    left: -35%;

    width: 30%;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.025),
            rgba(255,255,255,.11),
            rgba(255,206,0,.045),
            transparent
        );

    transform:
        skewX(-18deg)
        translateX(-220%);

    opacity: 0;
}


/* zdjęcie reaguje razem z folią */

.catalog-card.product-card--featured
.product-card-media img {
    transition:
        transform .7s cubic-bezier(.2,.7,.2,1),
        filter .7s ease;
}


@media
    (min-width: 701px)
    and (hover: hover) {

    .catalog-card.product-card--featured:hover
    .product-film-corner {
        width: 78px;
        height: 78px;

        transform:
            rotate(-2deg)
            translate(-2px, 2px);

        filter:
            drop-shadow(
                -13px 16px 18px
                rgba(0,0,0,.46)
            );
    }


    .catalog-card.product-card--featured:hover
    .product-film-sheen {
        opacity: 1;

        transform:
            skewX(-18deg)
            translateX(560%);

        transition:
            transform 1.05s
                cubic-bezier(.18,.65,.24,1),
            opacity .18s ease;
    }


    .catalog-card.product-card--featured:hover
    .product-card-media img {
        transform: scale(1.028);

        filter:
            drop-shadow(
                0 32px 56px
                rgba(0,0,0,.62)
            );
    }
}


/* mobile — tylko delikatny statyczny detal */

@media (max-width: 700px) {

    .product-film-corner {
        width: 30px;
        height: 30px;

        filter:
            drop-shadow(
                -4px 5px 6px
                rgba(0,0,0,.30)
            );
    }

    .product-film-corner::after {
        top: 14px;
        right: -5px;

        width: 40px;
    }

    .product-film-sheen {
        display: none;
    }
}

/* NICK PRODUCTS — UNIFIED YELLOW V1 */
body.product-mobile-page {
    --gold: #ffce00;
    --gold-light: #ffce00;
}
