
/**************************
*
*       Header 
*
***************************/

body {
    background-color: white;
    font-family: monospace;
}

.site-banner {
    background-color: #ffe680;
    color: #333;
    text-align: center;
    padding: 10px 15px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    z-index: 100;
    position: relative;
    font-size: 1em;
}

.fs-header {
    justify-content: space-between;
    display: flex;
    position: sticky;
    top: 0;
    background-color: white;
    border-bottom: 1px solid #ccc;
    padding: 5px 0 0;
    z-index: 100;
}

.fs-menu-toggle {
    cursor: pointer;
    padding: 0.5em;
}

.fs-menu-toggle > img {
    width: 4em;
}

.fs-logo {
    width: 40em;
    padding: 0.5em;
}

.fs-side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    padding: 2rem 1.5rem;
    transition: left 0.3s ease;
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fs-side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: monospace;
}

.fs-side-menu li {
    margin-bottom: 2rem;
}

.fs-side-menu li a {
    text-decoration: none;
    font-size: 2rem;
    color: #111;
}

#fs-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 3.5rem;
  cursor: pointer;
  margin-top: 10px;
}

.fs-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 100;
}


.fs-side-menu.open {
  left: 0;
}

.fs-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}


.cart-container {
    cursor: pointer;
    font-family: monospace;
    padding-top: 0.7rem;
    font-size: large;
}

.cart-container a {
    text-decoration: none;
    color: unset;
}

#cart-count {
    color: red;
}


/**************************
*
*       Products filter 
*
***************************/

.fs-products-category-switch {
    list-style: none;
    display: flex;
    justify-content: center;

}

.fs-products-category-switch a {
    border: none;
    background-color: white;
    font-family: monospace;
    cursor: pointer;
    font-size: 2.5em;
    color: black;
    margin-top: 1em;
    padding-left: 1.3em;
    padding-right: 1.3em;
    text-decoration: none;
}

.underline {
    text-decoration: underline !important;
    text-underline-offset: 0.4em;
}


/**************************
*
*       Produkter liste
*
***************************/

.products-grid {
    display: flex;
    flex-wrap: wrap;
    padding-top: 4em;
    row-gap: 50px;
    column-gap: 25px;
    justify-content: center;
    /*max-width: 1500px;*/
}

.product {
    /*width: 26em;*/
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-product-image-container {
    width: 100%;
    height: 60vh; /* fixed høyde for image box - 50% av vertikal høyde på mobil - for items som er mer lange enn breie */
    max-height: fit-content; /* men for items som er mer breie enn lange må man restricte høyden */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-product-image-container > img {
    width: 95%;
    height: 100%;
    object-fit: contain; /* keeps aspect ratio */
}

.products-wheels > img {
    width: 75%;
}

.products-product-text-container {
    text-align: center;
    margin-top: 8px;
}

.products-grid a {
    text-decoration: none;
    color: unset;
}

.products-grid p {
    font-family: monospace;
    text-align: center;
    margin: 0.5em;
}

.phantom-product {
    visibility: hidden;
    width: 100%;
}

.product-brand {
    color: #5e5e5e;
    font-size: 3em;
}

.product-name {
    font-size: 3.5em;
    font-weight: bold;
}

.product-size {
    font-size: 2.5em;
    color: #5e5e5e;
}

.product-price {
    margin-top: 0.7em !important;
    font-size: 3em;
    font-family: helvetica !important;
    color: #ff00d0; /* #00c0ff   #d500ff*/
    text-align: center;
    font-weight: 600;
}

.product-price-sold-out {
    color: lightgray;
}

.product-divider {
    width: 60%;
    height: 0.15em;
    background-color: #8d0073;
    margin: 0 auto;
    margin-bottom: 4em;
}

/********************************************
*
*       WooCommerce innebygged sortering
*
*********************************************/

.products-sorting {
    text-align: right;
    margin-right: 0.5em;
    margin-top: 1em;
}
/*.woocommerce-ordering {
    margin-bottom: 20px;
}*/

.woocommerce-ordering select {
    padding: 6px;
    font-size: 1rem;
}


/**************************
*
*       Paginering
*
***************************/


.products-pagination-divider {
    width:100vw;
}

.pagination {
    margin-bottom: 20em;
    text-align: center;
    font-family: monospace;
}

.pagination a,
.pagination span {
    padding: 0.5em 0.75em;
    margin: 0 0.25em;
    background: #eee;
    text-decoration: none;
    border-radius: 4px;
    font-size: xx-large;
}

.pagination .current {
    background: #333;
    color: #fff;
}


/********************************
*
*       Produkt enkeltside 
*
*********************************/


.single-product {
    padding: 2rem;
    padding-bottom: 15rem;
}

.product-container {
    display: flex;
    gap: 5%;
    flex-wrap: wrap;
}

.product-image {
    width: 50%;
    text-align: center;
}

.product-image-container {
    cursor: pointer;
}

.product-image-container > img {
    width: 95%;
    border-radius: 8px;
    float: right;
}

.product-info {
    width: 45%;
    top: 3em;
    right: 6em;
    font-size: 1em;
}

.product-info p {
    text-align: left;
    font-family: monospace;
}

/* Ønsker tilpasset skrift for denne inne på enkeltprodukt-sida */
.product-info > .product-brand {
    font-size: 1.1em;
}

.product-info > .product-name {
    font-size: 2em;
    margin-top: 0;
}

.product-info > .product-size {
    font-size: 2em;
}

.product-info > .product-price {
    margin-top: 0.3em !important;
    font-size: 2.15em;
}

.product-description > p {
    font-family: system-ui;
}

.add-to-cart, .checkout-button {
    margin-top: 1rem;
    padding: 1.5rem 2rem;
    background: #333;
    color: white;
    border: none;
    font-size: xx-large;
    cursor:pointer;
    font-family: monospace;
    text-decoration: none;
}


/********************************
*
*       Notifikasjon built-in
*
*********************************/

/*.woocommerce-message {
    background: #e0ffe0;
    border-left: 4px solid #37a137;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}*/

.ajax-cart-notice {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    background-color: #e6fce6;
    border: 1px solid #b2e6b2;
}

.notice-hidden {
    display: none;
}

.notice-visible-success {
    display: block;
    color: green;
}

.notice-visible-error {
    display: block;
    color: red;
}

/********************************
*
*       Produkt zoom bilde
*
*********************************/

.zoom-button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    float: right;
    margin-top: -15%;
}

.popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.popup-image {
    max-height: 90vh;
    width: 90vw;
    /*max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;*/
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}


/**************************
*
*       Handlevogn 
*
***************************/


.cart-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: monospace;
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.cart-item img {
    width: 80px;
    height: auto;
    margin-right: 20px;
    object-fit: contain;
}

.cart-info {
    flex-grow: 1;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#cart-summary {
    margin-top: 20px;
    font-size: 18px;
}



/**************************
*
*       Footer 
*
***************************/


.site-footer {
    justify-content: center;
    display: flex;
    background-color: white;
    border-top: 1px solid #ccc;
    z-index: 1;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transition: transform 0.3s ease;
    will-change: transform;
    height: auto;
}

.site-footer.hide {
  transform: translateY(100%);
}

.site-footer a {
    text-decoration: none;
}


.site-footer img {
    width: 2.5em;
    padding: 1.5em;
}

.wp-logo-style {
    right: 0;
    position: absolute;
}


/**************************
*
*       Galleri 
*
***************************/

.gallery-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}


/**************************
*
*       Om sjappa 
*
***************************/

.fs-about-content {
    text-align: center;
}



/**********************************
*
*       Størrelsestilpasninger 
*
***********************************/


@media (min-width: 1024px) {

    .fs-menu-toggle > img {
        width: 3em;
    }

    .fs-logo {
        width: 26em;
    }

    #fs-menu-close {
      font-size: 1.5rem;
    }

    .fs-side-menu li a {
        font-size: 1.2rem;
    }

    .fs-products-category-switch a {
        font-size: 1.2em;
    }

    .product {
        width: 17em;
    }

    .products-product-image-container {
        height: 300px; /* fixed height for image box */
        max-height: unset;
    }
    
    .products-grid a > div > img {
        width: 7em;
        padding-bottom: 1em;
    }

    .products-grid p {
        margin: 0.3em;
    }

    .phantom-product {
        width: 17em;
    }

    .product-brand {
        font-size: 1em;
    }

    .product-name {
        font-size: 1.1em;
    }

    .product-size {
        font-size: 1em;
    }

    .product-price {
        margin-top: 0.3em !important;
        font-size: 1.15em;
    }

    .product-price-sold-out {
        font-size: medium;
    }

    .product-divider {
        display: none;
    }

    .product-image {
        width: 40%;
    }

    .product-image-container {
        display: inline-block;
    }

    .product-image-container img {
        width: 60%;
    }

    .add-to-cart, .checkout-button {
        padding: 0.5rem 1rem;
        font-size: unset;
    }

    .site-footer {
        height: auto;
    }

    .site-footer img {
        width: 1.6em;
        padding: 0.5em;
    }

    .pagination a,
    .pagination span {
        font-size: unset;
    }

    .zoom-button {
        margin-top: 0;
    }
}

