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

    ███████╗██╗  ██╗ ██████╗ ██████╗     ████████╗██╗  ██╗███████╗
    ██╔════╝██║  ██║██╔═══██╗██╔══██╗    ╚══██╔══╝██║  ██║██╔════╝
    ███████╗███████║██║   ██║██████╔╝       ██║   ███████║█████╗
    ╚════██║██╔══██║██║   ██║██╔═══╝        ██║   ██╔══██║██╔══╝
    ███████║██║  ██║╚██████╔╝██║            ██║   ██║  ██║███████╗
    ╚══════╝╚═╝  ╚═╝ ╚═════╝ ╚═╝            ╚═╝   ╚═╝  ╚═╝╚══════╝

    ██╗      ██████╗  ██████╗ ██╗  ██╗
    ██║     ██╔═══██╗██╔═══██╗██║ ██╔╝
    ██║     ██║   ██║██║   ██║█████╔╝
    ██║     ██║   ██║██║   ██║██╔═██╗
    ███████╗╚██████╔╝╚██████╔╝██║  ██╗
    ╚══════╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝

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



    /*
        Figma reference — Homepage / "Shop the look", 1440 x 938 section.

            photo ......... full width, 1440 x 820
            pin marker .... 24 x 45 gold #C28E44, white plus inside
            open card ..... 170 x 201 white, photo 130 x 130, 20 padding
            card title .... beneath the photo, price under it
            tag ........... white panel top right, "Shop the look"
                            Hauora ExtraBold 30px, plus a triangle pattern

        Pin coordinates are percentages written by the editor, applied inline
        by the render template. Everything here is the presentation around
        them.
    */

    /*
        The section is 1440 wide at x=240 in the 1920 artboard — the same
        content column the Newsroom and the other text sections sit in, not
        full bleed. Only the hero, the Catalogues band and the footer run edge
        to edge.

        The 117px above the photograph is the gap to the section before it:
        the frames touch in the artboard, and the space lives inside this one.
    */

    .nvm-shop-the-look {
        position: relative;
        padding: clamp( 50px, 6.09vw, 117px ) var(--nvm-content-inset) 0;
    }

        /*
            The cards are what makes the page scroll sideways on a phone.

            They are positioned absolutely against their pin and reach up to
            170px to the left of it. `visibility: hidden` does not take an
            element out of the scrollable area, so even closed they widen the
            page — and on a phone the section's own margin is only 10 or 30px,
            nowhere near enough to absorb them.

            So the section clips horizontally, and stops from `desktop` up,
            where the margin is 50 to 240px and a card near the edge can
            overhang into it rather than being cut. `clip` rather than
            `hidden`: it does not create a scroll container, so nothing inside
            can end up scrollable on its own.
        */

        .nvm-shop-the-look {
            overflow-x: clip;
        }

        .desktop .nvm-shop-the-look {
            overflow-x: visible;
        }

        .nvm-shop-the-look__stage {
            position: relative;
            max-width: var(--nvm-panel-medium-width);
            margin: 0 auto;
        }

            /*
                The drawn proportion is 1440 x 820. Holding it means an
                editor's upload cannot reshape the section — a portrait
                photograph is covered and cropped rather than stretching the
                page.
            */

            .responsiville .nvm-shop-the-look__photo {
                display: block;
                width: 100%;
                aspect-ratio: 1440 / 820;
                height: auto !important;
                object-fit: cover;
            }



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

    ██████╗ ██╗███╗   ██╗███████╗
    ██╔══██╗██║████╗  ██║██╔════╝
    ██████╔╝██║██╔██╗ ██║███████╗
    ██╔═══╝ ██║██║╚██╗██║╚════██║
    ██║     ██║██║ ╚████║███████║
    ╚═╝     ╚═╝╚═╝  ╚═══╝╚══════╝

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



    /*
        The pin's anchor is the tip of the marker, which is its bottom right
        corner in the artwork — that is the point the editor places on the
        object. So the marker is pulled up and left by its own size, leaving
        the left/top percentages pointing exactly at the tip.
    */

    .nvm-shop-the-look__pin {
        position: absolute;
        z-index: 2;
    }

    .nvm-shop-the-look__pin.is-open {
        z-index: 3;
    }

        .nvm-shop-the-look__marker {
            display: block;
            width: 24px;
            height: 45px;
            margin: -45px 0 0 -24px;
            padding: 0;
            border: none;
            box-shadow: none;
            background: none;
            color: var(--nvm-color-gold);
            cursor: pointer;
            transition: transform 0.2s ease-in-out;
        }

        /* The colour has to be restated, not just the background.
           responsiville.moressette.css carries `button:hover { color: ... }`,
           and the marker's artwork is drawn in currentColor — so without this
           the gold turned grey under the cursor. */

        .nvm-shop-the-look__marker:hover,
        .nvm-shop-the-look__marker:focus-visible {
            background: none;
            color: var(--nvm-color-gold);
            transform: scale(1.1);
        }

            .nvm-shop-the-look__marker svg {
                display: block;
                width: 24px;
                height: 45px !important;
            }

            /* responsiville.moressette.css fills every path with currentColor;
               the plus inside the marker has to stay white. */

            .nvm-shop-the-look__marker svg path:first-child {
                fill: currentColor;
            }

            .nvm-shop-the-look__marker svg path:not(:first-child) {
                fill: #FFFFFF;
            }



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

     ██████╗ █████╗ ██████╗ ██████╗
    ██╔════╝██╔══██╗██╔══██╗██╔══██╗
    ██║     ███████║██████╔╝██║  ██║
    ██║     ██╔══██║██╔══██╗██║  ██║
    ╚██████╗██║  ██║██║  ██║██████╔╝
     ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝

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



    /*
        The card grows up and to the left from the marker, so its bottom right
        corner meets the pin's tip — the arrangement drawn in the artboard.
    */

    /*
        Figma: a 10px #C28E44 stroke, aligned INSIDE — so it is drawn within
        the 170, not added to it. Everything else follows:

            170 - 20 border - 20 padding = 130, the photograph exactly
             20 border+padding
            130 photograph
              5 gap
             26 title and price
             20 padding+border
            --- 201, the drawn height

        The border is written out in full because moressette resets every
        element to `border-width: 0`.
    */

    .nvm-shop-the-look__card {
        position: absolute;
        right: 0;
        bottom: 45px;
        width: 170px;
        padding: 10px;
        border: 10px solid var(--nvm-color-gold);
        background: var(--nvm-color-white);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0s linear 0.2s;
    }

    .nvm-shop-the-look__pin.is-open .nvm-shop-the-look__card {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0s linear 0s;
    }

        /*
            Pins near an edge open the other way. The render template works out
            which from the coordinates it already has, so nothing is measured
            in the browser and there is no flicker on open.
        */

        .nvm-shop-the-look__pin--opens-right .nvm-shop-the-look__card {
            right: auto;
            left: 0;
        }

        .nvm-shop-the-look__pin--opens-down .nvm-shop-the-look__card {
            bottom: auto;
            top: 0;
        }

        .responsiville .nvm-shop-the-look__card a {
            display: block;
            padding: 0;
            background: none;
            color: var(--nvm-color-ink);
        }

        .responsiville .nvm-shop-the-look__card a:hover {
            background: none;
            opacity: 1;
        }

            .nvm-shop-the-look__card-photo {
                display: block;
                width: 130px;
                height: 130px;
                margin-bottom: 5px;
                overflow: hidden;
            }

                .responsiville .nvm-shop-the-look__card-photo img {
                    display: block;
                    width: 100%;
                    height: 100% !important;
                    object-fit: contain;
                }

            .responsiville .nvm-shop-the-look__card-title {
                display: block;
                font-size: 13px;
                font-weight: 700;
                line-height: 1.25;
                text-transform: uppercase;
                color: var(--nvm-color-ink);
            }

            .responsiville .nvm-shop-the-look__card-price {
                display: block;
                margin-top: 10px;
                font-size: 13px;
                font-weight: 400;
                line-height: 1.1;
                color: var(--nvm-color-stone);
            }

                .nvm-shop-the-look__card-price del {
                    opacity: 0.6;
                    margin-right: 6px;
                }

                .nvm-shop-the-look__card-price ins {
                    text-decoration: none;
                }



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

    ████████╗ █████╗  ██████╗
    ╚══██╔══╝██╔══██╗██╔════╝
       ██║   ███████║██║  ███╗
       ██║   ██╔══██║██║   ██║
       ██║   ██║  ██║╚██████╔╝
       ╚═╝   ╚═╝  ╚═╝ ╚═════╝

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



    /* The tag renders as an <a> when a link is set and a <div> otherwise, so
       both need the same box, and the link needs its own hover kept quiet. */

    .responsiville .nvm-shop-the-look__tag--link {
        padding: 0;
        background: var(--nvm-color-white);
        transition: opacity 0.2s ease-in-out;
    }

    .responsiville .nvm-shop-the-look__tag--link:hover {
        background: var(--nvm-color-white);
        opacity: 0.85;
    }

    .nvm-shop-the-look__tag {
        position: absolute;
        top: 3.1%;
        right: 0;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        background: var(--nvm-color-white);
        z-index: 4;
    }

        .responsiville .nvm-shop-the-look__tag-text {
            display: flex;
            align-items: center;
            padding: 22px 40px;
            font-size: clamp(20px, 1.56vw, 30px);
            font-weight: 800;
            line-height: 1.2;
            color: var(--nvm-color-ink);
            white-space: nowrap;
        }

        .nvm-shop-the-look__tag-pattern {
            display: flex;
            align-items: stretch;
        }

            .nvm-shop-the-look__tag-pattern svg {
                display: block;
                width: auto;
                height: 100% !important;
            }



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

    ██████╗ ███████╗███████╗██████╗  ██████╗ ███╗   ██╗███████╗██╗██╗   ██╗███████╗
    ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔═══██╗████╗  ██║██╔════╝██║██║   ██║██╔════╝
    ██████╔╝█████╗  ███████╗██████╔╝██║   ██║██╔██╗ ██║███████╗██║██║   ██║█████╗
    ██╔══██╗██╔══╝  ╚════██║██╔═══╝ ██║   ██║██║╚██╗██║╚════██║██║╚██╗ ██╔╝██╔══╝
    ██║  ██║███████╗███████║██║     ╚██████╔╝██║ ╚████║███████║██║ ╚████╔╝ ███████╗
    ╚═╝  ╚═╝╚══════╝╚══════╝╚═╝      ╚═════╝ ╚═╝  ╚═══╝╚══════╝╚═╝  ╚═══╝  ╚══════╝

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



    /*
        No tablet or mobile artboard exists for this section. The markers keep
        their size — they are touch targets and shrinking them would hurt — but
        the card and the tag come down, and a card near the left edge is nudged
        so it cannot fall off the screen.
    */

    /* 140 - 12 border - 16 padding leaves 112, so the photograph is 112 and
       not 116 — at 116 it overflowed the card by four pixels. */

    /* Smaller again on a phone: a 140 card over a photograph a few hundred
       pixels wide covers most of what it is pointing at. 116 - 8 border -
       12 padding leaves 96 for the picture. */

    .small .nvm-shop-the-look__card,
    .tablet .nvm-shop-the-look__card {
        width: 116px;
        padding: 6px;
        border-width: 4px;
    }

    .small .nvm-shop-the-look__card-photo,
    .tablet .nvm-shop-the-look__card-photo {
        width: 96px;
        height: 96px;
        margin-bottom: 5px;
    }

    /*
        The tag has to give the photograph back its room on a small screen.

        At the drawn size it takes 442 of 1440 — under a third. Kept anywhere
        near that on a phone it covers a good part of the picture and sits on
        top of the pins, which are the point of the section. So the text
        shrinks, the padding tightens, and the triangular pattern is dropped
        entirely: it is decoration, and it is the widest part of the panel.
    */

    .small .responsiville .nvm-shop-the-look__tag-text,
    .tablet .responsiville .nvm-shop-the-look__tag-text {
        padding: 8px 12px;
        font-size: 15px;
    }

    .small .nvm-shop-the-look__tag-pattern,
    .tablet .nvm-shop-the-look__tag-pattern {
        display: none;
    }

    .desktop .nvm-shop-the-look__tag-pattern {
        display: flex;
    }

    .desktop .nvm-shop-the-look__card {
        width: 170px;
        padding: 10px;
        border-width: 10px;
    }

    .desktop .nvm-shop-the-look__card-photo {
        width: 130px;
        height: 130px;
        margin-bottom: 5px;
    }

    .desktop .responsiville .nvm-shop-the-look__tag-text {
        padding: 22px 40px;
        font-size: clamp( 20px, 1.56vw, 30px );
    }
