/****** STORE SKRÆME ******/

@media only screen and (min-width: 1920px) {}


/****** BÆRBAR / MINDRE SKÆRME ******/

@media only screen and (max-width: 1240px) {
     :root body {
        /* Font sizes */
        --h1: 43px;
        --h2: 28px;
        --h3: 22px;
        --h4: 19px;
        --h5: 15px;
        --h6: 13px;
        --p: 15px;
        /* Gaps */
        --gap-l: 60px;
        --gap-m: 25px;
        --gap-s: 20px;
        /* Sidebar */
        --sidebar-width: 280px;
    }

    .stom-button a{
        font-size: 15px !important;
    }

    /* Forside */
    .page-slider-section .stom-button a{
        padding: 10px;
    }

    .category-section .grid-element.grid-element.has-background .overlay h2{
        font-size: var(--h2);
    }


    /* Om Noridsk*/
    .section-wrap.clear.category-section{
        padding-left: var(--gap-l);
    }

    /* Besøg os */


    .visit-us .section .stom-button a,
    .footer-first .section .stom-button a{
        justify-content: center;
        max-width: 100%;
    }

    .produkter-med-kat .section{
        gap: 30px;
    }

    /* Produkter*/

    .woocommerce.columns-4 .products.columns-4{
        grid-template-columns: repeat(var(--grid-3-cols), minmax(0, 1fr));
    }

    .product-page .section-wrap.clear.produkter-med-kat{
        margin-inline: 0;
    }

    .produkter-med-kat .section .kategorier h2{
        font-size: 25px;
    }

    .produkter-med-kat .section .kategorier .product-cat-list li a{
        font-size: 16px;
    }

}


/****** IPADS - VERTIKALT ******/

@media only screen and (max-width: 959px) {
     :root body {
        /* Grid columns */
        --grid-2-cols: 1;
        --grid-3-cols: 2;
        --grid-4-cols: 2;
        --grid-5-cols: 3;
        --grid-6-cols: 3;
        --grid-7-cols: 4;
        --grid-8-cols: 4;
        --grid-9-cols: 5;
        --grid-10-cols: 5;
        --grid-11-cols: 6;
        --grid-12-cols: 6;
    }
    /* Move this rule if you change the the grid columns */
    .last-on-mobile {
        order: 66;
    }

    .section-wrap.clear.category-section{
        padding-left: var(--gap-m);
    }

    .produktvisning{
        margin-bottom: var(--gap-l);
    }

    /* Produkt kategorier */

    .product-page .stom-grid-section[data-columns-count="7"] {
        display: none !important;
    }

    .product-page .section-wrap.clear.produkter-med-kat{
        margin-inline: var(--gap-m);
    }

    .produkter-med-kat .section{
        gap: 0 !important;
    }

    .produkter-med-kat .section .kategorier {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: #E2E1D9;
        z-index: 9999;
        padding: 80px 30px 30px;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .produkter-med-kat .section .kategorier.is-open {
        right: 0;
    }

    .kategori-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: #213B3C;
        color: #E2E1D9;
        border: none;
        padding: 10px 20px;
        font-size: 16px;
        font-family: var(--p-fam);
        cursor: pointer;
        border-radius: 50px;
        margin-bottom: 20px;
    }

    .kategori-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 28px;
        color: #213B3C;
        cursor: pointer;
        line-height: 1;
        display: block !important;
    }

    .kategori-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }

    .product-page .kategori-toggle {
    display: flex;
}

.product-page .kategori-close {
    display: block;
}

    .kategori-overlay.is-open {
        display: block;
    }

    .produkter-med-kat .section .produkter{
        min-width: 300px;
    }
}

@media only screen and (max-width: 810px) {}


/****** MINDRE END IPADS VERTIKALT ******/

@media only screen and (max-width: 782px) {}

@media only screen and (max-width: 767px) {
     :root body {
        /* Font sizes */
        --h1: 30px;
        --h2: 25px;
        --h3: 20px;
        --h4: 18px;
        --h5: 14px;
        --h6: 12px;
        --p: 14px;
        /* Gaps */
        --gap-l: 50px;
        --gap-m: 20px;
        --gap-s: 15px;
        /* Outer margin */
        --content-margin: 0;
    }

    .stom-button a{
        font-size: 14px !important;
    }

    .category-section .grid-element.grid-element.has-background .overlay h2{
        font-size: var(--h2);
    }

    /* Om Nordisk */

    .stom-billede-sektion.picture-right .stom-picture{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-top: var(--gap-l);
    }

    .stom-billede-sektion.picture-right .stom-picture img{
        width: 60%;
    }

    /* product page */

    .product-page .øko-olie .section{
        margin-inline: 0;
        padding-inline: var(--gap-m);
    }

    .product-page .stom-billede-sektion .section{
        display: block;
    }

    .product-page .stom-billede-sektion.picture-right .stom-picture img{
        width: 100%;
    }

    .bapf_sfilter .bapf_head{
        padding: 10px 10px;
    }

    /* Nordisk ren og håndlavet*/

    .product-page .stom-billede-sektion .stom-cols-6{
        padding: 0px !important;
    }
}

@media only screen and (max-width: 639px) {
     :root body {
        /* Grid columns */
        --grid-2-cols: 1;
        --grid-3-cols: 1;
        --grid-4-cols: 1;
        --grid-5-cols: 1;
        --grid-6-cols: 1;
        --grid-7-cols: 1;
        --grid-8-cols: 1;
        --grid-9-cols: 1;
        --grid-10-cols: 1;
        --grid-11-cols: 1;
        --grid-12-cols: 1;
    }

    .footer-last .section .grid-elements{
        flex-direction: column;
    }
}


/****** MOBILER ******/

@media only screen and (max-width: 479px) {
    .page-slider-section.main-slider-section{
        font-size: 13px;
    }
}

@media only screen and (max-width: 400px) {}