/*
Theme Name: Wave
Text Domain: Wave
Author: Noli Alickaj
Author URI: https://wavecode.no
*/

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --green: #008D36;
    --orange: #e35416;
    --pink: #ffe2df;
    --dark: #333;
    --white: #fff;
    --offwhite: #f7f7f7;
    --border: #ebebeb;
}

*, ::after, ::before {
    box-sizing: border-box;
}

body {
    font-family: 'OpenSans';
    font-weight: 400;
    color: var(--dark);
    margin: 0;
    padding: 0;
    font-size: 16px;
}


@font-face {
    font-family: 'HelveticaNeueCn';
    src: url('/wp-content/themes/wavecode/assets/fonts/helvetica-neue-cn/HelveticaNeueLTStd-BdCn.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HelveticaNeueCn';
    src: url('/wp-content/themes/wavecode/assets/fonts/helvetica-neue-cn/HelveticaNeueLTStd-Cn.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OpenSans';
    src: url('/wp-content/themes/wavecode/assets/fonts/open-sans/OpenSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OpenSans';
    src: url('/wp-content/themes/wavecode/assets/fonts/open-sans/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ----------------- BASICS ----------------- */
h1, h2, h3, h4, h5 {
    margin: 0;
    line-height: 1.2;
    font-weight: 500;
    font-size: 50px;
    font-family: 'HelveticaNeueCn';
}
p {
    margin: 0;
    line-height: 1.6;
}
.content p {
    margin-bottom: 20px;
}
a {
    text-decoration: none;
    color: var(--green);
}
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
strong {
    font-weight: 700;
}
hr {
    width: 100%;
    height: 1px;
    background: var(--border);
    border: 0;
    margin: 0;
}


/* ----------------- EDITOR ----------------- */
.editor p {
    margin-bottom: 20px;
    line-height: 1.6;
}
.editor p:last-child {
    margin-bottom: 0;
}
.editor ul {
    margin: 0;
    margin-bottom: 30px;
    padding-left: 18px;
}
.editor li {
    margin-bottom: 10px;
    line-height: 1.4;
}
.editor li::marker {
  font-size: 0.7em;
}
.editor a {
    color: var(--green);
    text-decoration: underline;
}
.editor h1, .editor h2, .editor h3, .editor h4, .editor h5 {
    margin-top: 40px;
    margin-bottom: 5px;
    font-size: 30px;
}
.editor h1:first-of-type,
.editor h2:first-of-type,
.editor h3:first-of-type,
.editor h4:first-of-type,
.editor h5:first-of-type {
    margin-top: 0;
}
.editor img {
    margin-top: 25px;
    margin-bottom: 25px;
}


/* ----------------- HEADER ----------------- */
.header {
    position: relative;
    z-index: 99;
    border-bottom: 1px solid var(--border);
}
.header .logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: -20px;
}


/* ----------------- NAV ----------------- */
.menu {
    display: flex;
    align-items: center;
    gap: 40px;
}
.menu a {
    color: var(--dark);
    font-size: 16px;
}

.menu--mobile {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--green);
}
.menu--mobile a {
    border-bottom: 1px solid var(--green);
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
}


/* ----------------- FOOTER ----------------- */
.footer {    
    padding: 50px 50px;
}

.footer .menu a {
    color: var(--white);
}


/* ----------------- LAYOUT ----------------- */
.wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
}


/* ----------------- HERO ----------------- */
.hero {
    position: relative;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 60px;
    margin-bottom: 50px;
}
.hero--media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 0;
}
.hero--overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}
.hero--content {
    position: relative;
    z-index: 3;
    padding: 100px;

    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* ----------------- GRID ----------------- */
/* -- DEFAULT -- */
.grid--4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(50px, 1fr));
}
.grid--3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(50px, 1fr));
}
.grid--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(50px, 1fr));
}
.grid--cooking {
    display: grid;
    grid-template-columns: 2fr 3fr;
}
.grid--auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.builder .content {
    padding: 60px;
}

/* -- COLUMNS -- */
.col-gap--l {
    column-gap: 100px;
}
.col-gap--m {
    column-gap: 50px;
}
.col-gap--s {
    column-gap: 20px;
}

/* -- ROWS -- */
.row-gap--l {
    row-gap: 100px;
}
.row-gap--m {
    row-gap: 50px;
}
.row-gap--s {
    row-gap: 20px;
}


/* ----------------- WIDTH ----------------- */
.width--xl {
    width: 100%;
    max-width: 1000px;
}
.width--l {
    width: 100%;
    max-width: 800px;
}
.width--m {
    width: 100%;
    max-width: 600px;
}
.width--s {
    width: 100%;
    max-width: 400px;
}


/* ----------------- PADDING ----------------- */
/* -- TOP -- */
.pad-t--xl {
    padding-top: 140px;
}
.pad-t--l {
    padding-top: 100px;
}
.pad-t--m {
    padding-top: 60px;
}
.pad-t--s {
    padding-top: 30px;
}

/* -- BOTTOM -- */
.pad-b--xl {
    padding-bottom: 140px;
}
.pad-b--l {
    padding-bottom: 100px;
}
.pad-b--m {
    padding-bottom: 60px;
}
.pad-b--s {
    padding-bottom: 30px;
}


/* ----------------- FONT SIZES ----------------- */
.font--xl {
    font-size: 60px;
}
.font--l {
    font-size: 40px;
}
.font--m {
    font-size: 24px;
}
.font--s {
    font-size: 20px;
}
.font--xs {
    font-size: 16px;
}
.font--18 {
    font-size: 18px;
}

.font--700 {
    font-weight: 700;
}


/* ----------------- GAP ----------------- */
.gap--xl {
    gap: 50px;
}
.gap--l {
    gap: 30px;
}
.gap--m {
    gap: 20px;
}
.gap--s {
    gap: 10px;
}
.gap--pb {
    gap: 80px;
}


/* ----------------- BACKGROUND ----------------- */
.bg--pink {
    background: var(--pink);
}
.bg--offwhite {
    background: var(--offwhite);
}
.bg--green {
    background: var(--green);
}


/* ----------------- COLOR ----------------- */
.color--white {
    color: var(--white);
}
.color--green {
    color: var(--green);
}
.color--dark {
    color: var(--dark);
}


/* ----------------- BUTTON ----------------- */
/* -- DEFAULT -- */
.btn {
    width: fit-content;
    height: fit-content;
    padding: 18px 24px;
    border-radius: 6px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;

    transition: 0.2s ease;
}

.btn.green {
    background: var(--green);
    color: var(--white);
}
.btn.pink {
    background: var(--pink);
    color: var(--dark);
}


/* ----------------- PRODUCT ----------------- */
.post-type-archive-produkt article, .tax-produktkategori article {
    display: flex;
    flex-direction: column;
    padding: 30px 20px 30px 20px;

    border: 1px solid var(--border);
    border-radius: 6px;
    height: 100%;
}
.post-type-archive-produkt article img, .tax-produktkategori article img {
    margin-left: auto;
    margin-right: auto;
    transition: 0.2s ease;

    height: 260px;
    object-fit: contain;
}
.post-type-archive-produkt article .content, .tax-produktkategori article .content {
    margin-top: 40px;
    margin-bottom: 10px;
}
.post-type-archive-produkt a:hover article img, .tax-produktkategori a:hover article img {
    transform: scale(1.05);
}


/* ----------------- OPPSKRIFT ----------------- */
.post-type-archive-oppskrift article, .tax-kategori article, .single-produkt article, .post-type-archive-artikkel article {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.post-type-archive-oppskrift article img, .tax-kategori article img, .single-produkt article img, .post-type-archive-artikkel article img {
    aspect-ratio: 3/4;
    object-fit: cover;
}
.post-type-archive-oppskrift article .content, .tax-kategori article .content, .single-produkt article .content, .post-type-archive-artikkel article .content {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* ----------------- OPPSKRIFT ----------------- */
.ingredients {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ingredients h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}
.ingredient {
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.instructions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.instruction {
    padding: 15px;
    border-radius: 5px;
    background: var(--offwhite);
}

/* ----------------- FILTER ----------------- */
.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter a {
    width: fit-content;
    height: fit-content;
    padding: 12px 18px;
    border-radius: 4px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;

    transition: 0.2s ease;

    background: var(--white);
    border: 1px solid var(--border);
    color: var(--dark);
}
.filter a:hover {
    background: var(--pink);
    border-color: var(--pink);
}
.filter .active {
    background: var(--pink);
    border-color: var(--pink);
}

#load-more {
    width: fit-content;
    height: fit-content;
    padding: 16px 22px;
    border-radius: 4px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;

    transition: 0.2s ease;

    background: var(--green);
    color: var(--white);
    border: none;

    margin: 10px auto 0 auto;
}


/* ----------------- PRODUCT GALLERY ----------------- */
.main-swiper img {
    width: 100%;
    display: block;
    cursor: zoom-in;
    background-color: #fff;
    filter: brightness(0.96);
    aspect-ratio: 1;
    object-fit: contain;
    /*padding: 80px;*/
}
.thumbs-swiper {
  margin-top: 10px;
}
.thumbs-swiper .swiper-slide {
  width: 80px;
  opacity: 0.6;
  cursor: pointer;
}
.thumbs-swiper .swiper-slide img {
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #f7f7f7;
    border-radius: 4px;
}
.thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
}


/* ----------------- ACCORDION ----------------- */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
details {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
}
summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    
    font-weight: 400;
    line-height: 1.4;
}
.accordion-content {
    padding: 0 20px 20px 20px;
}
summary::-webkit-details-marker {
    display: none;
}
.icon-plus {
    display: inline;
    min-width: 14px;
    max-width: 14px;
    min-height: 14px;
    max-height: 14px;
}
.icon-minus {
    display: none;
    min-width: 14px;
    max-width: 14px;
    min-height: 14px;
    max-height: 14px;
}
details[open] .icon-plus {
    display: none;
}
details[open] .icon-minus {
    display: inline;
}


/* ----------------- BREADCRUMBS ----------------- */
.breadcrumbs {
    font-size: 14px;
}
.breadcrumbs a {
    color: var(--green);
    text-decoration: underline;
}


/* ----------------- DISTRIBUTOR ----------------- */
.distributor {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
}
.distributor img {
    max-height: 40px;
}


/* ----------------- OTHER ----------------- */
.label {
    font-size: 15px;
    color: var(--green);
    font-family: 'HelveticaNeueCn';
    font-weight: 600;
}
.top {
    margin-top: 20px;
}
.rounded {
    border-radius: 20px;
}
.box {
    padding: 80px;
    border-radius: 10px;
}
.box .icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}
.icon--socials {
    width: 22px;
}
.logos {
    height: 40px;
    width: auto;
    object-fit: contain;
}



/* ----------------- TABLET ----------------- */
@media (max-width: 992px) {

    /* ----------------- HEADER ----------------- */
    .menu {
        display: none;
    }
    .transparent main {
        margin-top: -165px;
    }

    /* ----------------- FOOTER ----------------- */
    .footer {
        padding: 60px 40px;
    }
    .footer .menu {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }

    /* ----------------- HERO ----------------- */
    .hero--content {
        padding: 60px;
    }

    /* ----------------- GRID ----------------- */
    .grid--4 {
        grid-template-columns: repeat(2, minmax(50px, 1fr));
    }
    .grid--3 {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
    .grid--2 {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
    .grid--cooking {
        grid-template-columns: 1fr;
    }

    /* ----------------- FONT ----------------- */
    .font--xl {
        font-size: 50px;
    }
    .font--l {
        font-size: 36px;
    }
    .font--m {
        font-size: 22px;
    }
    .font--s {
        font-size: 18px;
    }

    /* ----------------- OTHER ----------------- */
    .distributor {
        column-gap: 30px;
        row-gap: 10px;
    }
}


/* ----------------- MOBILE ----------------- */
@media (max-width: 768px) {
    
    /* ----------------- GENERAL ----------------- */
    .wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ----------------- HERO ----------------- */
    .hero--content {
        padding: 40px;
    }
    .hero--content .btn {
        width: 100%;
    }

    /* ----------------- GRID ----------------- */
    /*.grid--4.recipe {
        grid-template-columns: repeat(1, minmax(50px, 1fr));
    }*/
    .grid--4.product {
        column-gap: 10px;
    }
    .grid--2.reverse {
        display: flex;
        flex-direction: column-reverse;
    }
    .builder .content {
        padding: 40px;
    }

    /* ----------------- PRODUCT ----------------- */
    .post-type-archive-produkt article {
        padding: 10px 10px 20px 10px;
    }
    .post-type-archive-produkt article img {
        height: 160px;
    }
    .post-type-archive-produkt article .content {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}





.portion-control {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
}

.portion-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--pink);
    color: var(--dark);
    font-size: 20px;
    cursor: pointer;

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

.portion-value {
    background: var(--offwhite);
    padding: 10px 20px;
    border-radius: 8px;
}


.wake-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}
.wake-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

/* track */
.track {
    width: 52px;
    height: 28px;
    background: #e5e5e5;
    border-radius: 999px;
    position: relative;
    transition: background 0.25s ease;
}

/* knob */
.knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ACTIVE */
.wake-btn[data-active="true"] .track {
    background: var(--green);
}

.wake-btn[data-active="true"] .knob {
    transform: translateX(24px);
}