/*******************************************************

    polo.gr catalogues page (inc/functions/polo-catalogue.php): this
    season's three covers, the archive per line. Header and page frame:
    css/polo.page.css.

 *******************************************************/



    /* This season */

    .polo-catalogue-page .polo-catalogue__current {
        display: grid;
        grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
        gap: clamp( 16px, 2.4vw, 32px );
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .polo-catalogue__card {
        margin: 0;
    }

    .polo-catalogue-page .polo-catalogue__card a {
        display: flex;
        flex-direction: column;
        color: var( --polo-black );
        text-decoration: none;
    }

    .polo-catalogue__cover {
        display: block;
        overflow: hidden;
        margin-bottom: 18px;
        border-radius: 8px;
        background-color: var( --polo-page-soft );
        box-shadow: 0 1px 2px rgba( 16, 18, 18, 0.08 ), 0 12px 32px -12px rgba( 16, 18, 18, 0.35 );
        aspect-ratio: 975 / 1388;
    }

    .polo-catalogue-page .polo-catalogue__cover img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: cover;
        transition: transform 0.4s var( --polo-ease );
    }

    .polo-catalogue__line {
        font-family: var( --polo-font-zona );
        font-size: clamp( 24px, 2.4vw, 34px );
        font-weight: 800;
        line-height: 1.05;
        text-transform: uppercase;
    }

    .polo-catalogue__season {
        margin-top: 4px;
        color: var( --polo-grey );
        font-size: 15px;
    }

    .polo-catalogue__button {
        display: inline-flex;
        align-self: flex-start;
        align-items: center;
        gap: 10px;
        margin-top: 16px;
        padding: 12px 22px;
        border-radius: 999px;
        background-color: var( --polo-black );
        color: var( --polo-white );
        font-family: var( --polo-font-gotham );
        font-size: 15px;
        font-weight: 700;
        transition: background-color 0.2s var( --polo-ease );
    }

    .polo-catalogue__button .polo-page-icon {
        width: 16px;
        height: 16px;
    }

    .polo-catalogue__card a:hover .polo-catalogue__cover img {
        transform: scale( 1.03 );
    }

    .polo-catalogue__card a:hover .polo-catalogue__button,
    .polo-catalogue__card a:focus-visible .polo-catalogue__button {
        background-color: var( --polo-red );
    }

    .polo-catalogue__card a:focus-visible {
        outline: 3px solid var( --polo-black );
        outline-offset: 6px;
    }



    /* Archive */

    .polo-catalogue__archive {
        margin-top: clamp( 56px, 7vw, 104px );
    }

    .polo-catalogue-page .polo-catalogue__heading {
        margin: 0 0 8px;
        color: var( --polo-black );
        font-family: var( --polo-font-gotham );
        font-size: clamp( 22px, 2vw, 28px );
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.2;
        text-align: left;
        text-transform: none;
    }

    .polo-catalogue__row {
        display: grid;
        grid-template-columns: 140px minmax( 0, 1fr );
        gap: 24px;
        padding: 28px 0;
        border-top: 1px solid var( --polo-line );
    }

    .polo-catalogue-page .polo-catalogue__row h3 {
        margin: 0;
        color: var( --polo-black );
        font-family: var( --polo-font-zona );
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 0;
        text-align: left;
        text-transform: uppercase;
    }

    .polo-catalogue-page .polo-catalogue__row ul {
        display: grid;
        grid-template-columns: repeat( auto-fill, minmax( 128px, 1fr ) );
        gap: 20px 16px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .polo-catalogue__row li {
        margin: 0;
    }

    .polo-catalogue-page .polo-catalogue__row a {
        display: flex;
        flex-direction: column;
        color: var( --polo-black );
        text-decoration: none;
    }

    .polo-catalogue__thumb {
        display: block;
        overflow: hidden;
        margin-bottom: 10px;
        border-radius: 6px;
        background-color: var( --polo-page-soft );
        box-shadow: inset 0 0 0 1px var( --polo-line );
        aspect-ratio: 975 / 1388;
    }

    .polo-catalogue-page .polo-catalogue__thumb img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: cover;
        transition: transform 0.3s var( --polo-ease );
    }

    .polo-catalogue__year {
        font-family: var( --polo-font-gotham );
        font-size: 14px;
        font-weight: 700;
    }

    .polo-catalogue__name {
        color: var( --polo-grey );
        font-size: 13px;
    }

    .polo-catalogue__row a:hover img {
        transform: scale( 1.04 );
    }

    .polo-catalogue__row a:hover .polo-catalogue__year {
        color: var( --polo-red );
    }

    .polo-catalogue__row a:focus-visible {
        outline: 2px solid var( --polo-black );
        outline-offset: 4px;
    }



    @media ( max-width: 767px ) {

        .polo-catalogue-page .polo-catalogue__current {
            grid-template-columns: minmax( 0, 1fr );
            gap: 40px;
        }

        .polo-catalogue__cover {
            max-width: 340px;
        }

        .polo-catalogue__row {
            grid-template-columns: minmax( 0, 1fr );
            gap: 14px;
        }

        .polo-catalogue-page .polo-catalogue__row ul {
            grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
            gap: 16px 10px;
        }

    }

    @media ( prefers-reduced-motion: reduce ) {

        .polo-catalogue img,
        .polo-catalogue__button {
            transition: none;
        }

    }
