/*
 * Premium Ecológica
 * Header + Footer R3B
 */


/* =========================================================
   SHARED
========================================================= */

.premium-r3b-shell {
    width:
        min(
            1460px,
            calc(100% - 48px)
        );

    margin-inline: auto;
}


/* =========================================================
   HEADER RESET
========================================================= */

.page-header {
    position: relative;

    z-index: 40;

    border: 0 !important;

    background: white;

    box-shadow:
        0 4px 22px rgba(5,55,41,.07);
}

.premium-r3b-header {
    width: 100%;

    color: #123c30;

    background: #fff;
}


/* =========================================================
   TOP BAR
========================================================= */

.premium-r3b-topbar {
    background:
        linear-gradient(
            90deg,
            #063c30,
            #086143
        );

    color: white;
}

.premium-r3b-topbar__inner {
    min-height: 38px;

    display: grid;
    grid-template-columns:
        repeat(5, minmax(0,1fr));

    align-items: stretch;
}

.premium-r3b-topitem {
    min-width: 0;

    padding: 6px 13px;

    display: grid;
    grid-template-columns:
        auto 1fr;
    grid-template-rows:
        auto auto;

    column-gap: 8px;
    align-content: center;

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

.premium-r3b-topitem:last-child {
    border-right: 0;
}

.premium-r3b-topitem > span {
    grid-row: 1 / 3;

    min-width: 25px;

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

    color: #ffc625;

    font-size: 12px;
    font-weight: 900;
}

.premium-r3b-topitem strong {
    color: white;

    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
}

.premium-r3b-topitem small {
    margin-top: 2px;

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

    font-size: 8px;
    line-height: 1.1;
}


/* =========================================================
   MAIN ROW
========================================================= */

.premium-r3b-main {
    background: white;
}

.premium-r3b-main__grid {
    min-height: 94px;

    padding-block: 14px;

    display: grid;
    grid-template-columns:
        220px
        minmax(340px,1fr)
        auto;

    gap: 32px;

    align-items: center;
}


/* LOGO */

.premium-r3b-logo {
    display: flex;
    align-items: center;
}

.premium-r3b-logo .logo {
    margin: 0 !important;
}

.premium-r3b-logo .logo img,
.page-header .logo img,
header .logo img {
    width: auto !important;

    max-width: 220px !important;
    max-height: 66px !important;
}


/* =========================================================
   SEARCH
========================================================= */

.premium-r3b-search {
    position: relative;

    min-width: 0;
}

.premium-r3b-search__label {
    margin: 0 0 5px 4px;

    color: #527066;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.premium-r3b-search > .container,
.premium-r3b-search .container {
    width: 100% !important;
    max-width: none !important;

    padding: 0 !important;
    margin: 0 !important;
}

.premium-r3b-search
.form.minisearch {
    width: 100%;

    display: flex;
}

.premium-r3b-search
.form-input {
    height: 50px;

    padding-inline: 17px;

    border:
        1px solid #cddfd6 !important;
    border-right: 0 !important;

    border-radius:
        13px 0 0 13px !important;

    background: #f7faf8;

    color: #123c30;

    font-size: 13px;

    box-shadow: none !important;
}

.premium-r3b-search
.form-input:focus {
    border-color:
        #6fa98b !important;

    background: white;
}

.premium-r3b-search
.form.minisearch
button[type="submit"] {
    width: 54px;
    min-width: 54px;
    height: 50px;

    padding: 0 !important;

    border-radius:
        0 13px 13px 0 !important;

    background: #07543d !important;

    color: white !important;
}

.premium-r3b-search kbd {
    display: none !important;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.premium-r3b-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 5px;
}

.premium-r3b-action {
    position: relative;

    min-height: 52px;

    padding: 6px 10px;

    display: flex;
    align-items: center;

    gap: 8px;

    border: 0 !important;
    border-radius: 12px;

    background:
        transparent !important;

    color: #123c30 !important;

    text-decoration: none !important;

    transition:
        background .18s ease;
}

.premium-r3b-action:hover {
    background:
        #eff7f2 !important;
}

.premium-r3b-action__icon {
    position: relative;

    width: 31px;
    height: 31px;

    flex: 0 0 31px;

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

    color: #07543d;
}

.premium-r3b-action__icon svg {
    width: 27px;
    height: 27px;
}

.premium-r3b-action--whatsapp
.premium-r3b-action__icon {
    color: #0a9b51;
}

.premium-r3b-action__copy {
    display: flex;
    flex-direction: column;

    text-align: left;
}

.premium-r3b-action__copy small {
    color: #6b837a;

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

.premium-r3b-action__copy strong {
    margin-top: 3px;

    color: #123c30;

    font-size: 11px;
    line-height: 1;
    font-weight: 800;

    white-space: nowrap;
}

.premium-r3b-cart-count {
    position: absolute;

    top: -5px;
    right: -6px;

    min-width: 18px;
    height: 18px;

    padding-inline: 4px;

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

    border: 2px solid white;
    border-radius: 999px;

    background: #ffc625;

    color: #123c30;

    font-size: 9px;
    font-weight: 900;
}

.premium-r3b-additional:empty {
    display: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

.premium-r3b-nav {
    border-top:
        1px solid #e4eee8;
    border-bottom:
        1px solid #e4eee8;

    background: #fff;
}

.premium-r3b-nav__inner {
    min-height: 52px;

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

    gap: 20px;
}

.premium-r3b-catalog-menu {
    min-width: 0;

    flex: 1;
}


/*
 * Hyvä desktop menu
 */

.premium-r3b-catalog-menu
.navigation.hidden.lg\:flex {
    display: none;
}

@media (min-width: 1024px) {

    .premium-r3b-catalog-menu
    .navigation.hidden.lg\:flex {
        display: flex;
    }
}

.premium-r3b-catalog-menu
.navigation
> div {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.premium-r3b-catalog-menu
.navigation nav > ul {
    gap: 5px !important;

    padding-block: 0 !important;
}

.premium-r3b-catalog-menu
.navigation
li.level-0 {
    border-bottom: 0 !important;
}

.premium-r3b-catalog-menu
.navigation
li.level-0
a.level-0 {
    padding:
        17px 11px !important;

    color: #123c30 !important;

    font-size: 11px !important;
    font-weight: 750;

    border-radius: 0 !important;
}

.premium-r3b-catalog-menu
.navigation
li.level-0:hover
a.level-0,
.premium-r3b-catalog-menu
.navigation
li.level-0
a.level-0:hover {
    color: #067149 !important;
}

.premium-r3b-catalog-menu
.navigation
li.level-0::after {
    content: "";

    position: absolute;

    left: 11px;
    right: 11px;
    bottom: 8px;

    height: 2px;

    border-radius: 999px;

    background: #ffc625;

    opacity: 0;

    transform:
        scaleX(.5);

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.premium-r3b-catalog-menu
.navigation
li.level-0:hover::after {
    opacity: 1;

    transform:
        scaleX(1);
}


/* Dropdown */

.premium-r3b-catalog-menu
.navigation
li.level-0
ul {
    min-width: 240px !important;

    padding: 8px !important;

    border:
        1px solid #e2ece7;

    border-radius: 13px !important;

    background:
        rgba(
            255,
            255,
            255,
            .98
        ) !important;

    box-shadow:
        0 18px 45px
        rgba(4,56,40,.13) !important;
}

.premium-r3b-catalog-menu
.navigation
li.level-0
ul a {
    padding:
        10px 13px !important;

    border-radius: 8px;

    color: #294c41 !important;

    font-size: 11px;
}

.premium-r3b-catalog-menu
.navigation
li.level-0
ul a:hover {
    background:
        #eff7f2 !important;

    color:
        #07543d !important;
}


/* EXTRA NAV */

.premium-r3b-extra-nav {
    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.premium-r3b-extra-nav a {
    padding:
        17px 10px;

    color: #49685e !important;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.premium-r3b-extra-nav a:hover {
    color: #07543d !important;
}


/* =========================================================
   FOOTER
========================================================= */

.premium-footer {
    margin-top: 0 !important;

    background:
        #07382d !important;

    color: white;
}

.premium-footer-r3b {
    width:
        min(
            1460px,
            calc(100% - 48px)
        );

    margin: auto;

    padding:
        58px 0 22px;
}

.premium-footer-r3b__grid {
    display: grid;

    grid-template-columns:
        1.4fr
        .8fr
        .9fr
        .9fr
        1.1fr;

    gap: 46px;
}

.premium-footer-r3b__brand {
    max-width: 310px;
}

.premium-footer-r3b__brand strong {
    display: block;

    color: white;

    font-size: 22px;
    line-height: 1.05;
    font-weight: 850;
}

.premium-footer-r3b__brand p {
    margin: 13px 0 0;

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

    font-size: 11px;
    line-height: 1.65;
}

.premium-footer-r3b h3 {
    margin: 0 0 14px;

    color: #ffc625;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.premium-footer-r3b ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.premium-footer-r3b li {
    margin: 0 0 9px;
}

.premium-footer-r3b a {
    color:
        rgba(
            255,
            255,
            255,
            .76
        ) !important;

    font-size: 11px;

    text-decoration: none !important;
}

.premium-footer-r3b a:hover {
    color: white !important;
}

.premium-footer-r3b__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;

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

    font-size: 11px;
}

.premium-footer-r3b__wa {
    width: fit-content;

    margin-top: 7px;

    padding: 9px 14px;

    display: inline-flex;

    border-radius: 999px;

    background: #0c8e4e;

    color: white !important;

    font-weight: 800;
}

.premium-footer-r3b__bottom {
    margin-top: 42px;
    padding-top: 20px;

    display: flex;
    justify-content: space-between;

    gap: 20px;

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

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

    font-size: 9px;
}


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

@media (max-width: 1200px) {

    .premium-r3b-main__grid {
        grid-template-columns:
            180px
            minmax(280px,1fr)
            auto;

        gap: 17px;
    }

    .premium-r3b-logo
    .logo img,
    .page-header .logo img,
    header .logo img {
        max-width: 180px !important;
    }

    .premium-r3b-action__copy {
        display: none;
    }

    .premium-r3b-extra-nav a:nth-child(2),
    .premium-r3b-extra-nav a:nth-child(4) {
        display: none;
    }

    .premium-footer-r3b__grid {
        grid-template-columns:
            1.2fr
            repeat(3,1fr);

        gap: 35px;
    }

    .premium-footer-r3b__contact-column {
        grid-column: 1 / -1;
    }
}


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

@media (max-width: 767px) {

    .premium-r3b-shell {
        width:
            calc(
                100% - 26px
            );
    }

    .premium-r3b-topbar__inner {
        min-height: 33px;

        grid-template-columns:
            repeat(3,1fr);
    }

    .premium-r3b-topitem {
        padding:
            6px 5px;

        display: flex;
        justify-content: center;

        text-align: center;
    }

    .premium-r3b-topitem
    > span,
    .premium-r3b-topitem small,
    .premium-r3b-topitem--optional {
        display: none;
    }

    .premium-r3b-topitem strong {
        font-size: 8px;
    }


    .premium-r3b-main__grid {
        min-height: auto;

        padding-block:
            11px;

        grid-template-columns:
            1fr auto;

        gap: 10px;
    }

    .premium-r3b-logo
    .logo img,
    .page-header .logo img,
    header .logo img {
        max-width:
            145px !important;

        max-height:
            48px !important;
    }

    .premium-r3b-search {
        grid-column:
            1 / -1;

        grid-row: 2;
    }

    .premium-r3b-search__label {
        display: none;
    }

    .premium-r3b-search
    .form-input {
        height: 44px;
    }

    .premium-r3b-search
    .form.minisearch
    button[type="submit"] {
        height: 44px;
        width: 48px;
        min-width: 48px;
    }

    .premium-r3b-actions {
        gap: 0;
    }

    .premium-r3b-action {
        min-height: 44px;

        padding: 4px;
    }

    .premium-r3b-action--whatsapp {
        display: none;
    }

    .premium-r3b-action__icon {
        width: 28px;
        height: 28px;

        flex-basis: 28px;
    }

    .premium-r3b-action__copy {
        display: none;
    }


    .premium-r3b-nav__inner {
        min-height: 46px;
    }

    .premium-r3b-extra-nav {
        display: none;
    }

    .premium-r3b-catalog-menu {
        width: 100%;
    }


    .premium-footer-r3b {
        width:
            calc(
                100% - 30px
            );

        padding-top: 42px;
    }

    .premium-footer-r3b__grid {
        grid-template-columns:
            repeat(2,1fr);

        gap: 30px 22px;
    }

    .premium-footer-r3b__brand,
    .premium-footer-r3b__contact-column {
        grid-column:
            1 / -1;
    }

    .premium-footer-r3b__bottom {
        flex-direction: column;

        margin-top: 32px;
    }
}


/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 430px) {

    .premium-r3b-topitem strong {
        font-size: 7px;
    }

    .premium-footer-r3b__grid {
        grid-template-columns: 1fr;
    }

    .premium-footer-r3b__brand,
    .premium-footer-r3b__contact-column {
        grid-column: auto;
    }
}
