html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.profiletitle {
    color: black;
    font-size: 50px;
    text-align: center;
    margin-top: 30px;
}
.headerlink:hover {
    cursor: pointer
}





    /*underheadern där man ser alla produkter*/

.under-header {
    position: sticky;
    top: 57px;
    left: 0;
    right: 0;

    padding: 10px 20px;

    z-index: 1000;
}


#productsMenu {
    display: none;
    gap: 40px;
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    background-color: white;
}





    /* produkterna i GetProductsBySubID.cshtml */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.product-card {
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #fff;
    text-align: center;
}

    /* säljsida när man trycker på en product */
.product-page-grid {
    display: grid;
    grid-template-columns: repeat(20, 5vw);
    grid-template-rows: repeat(7,11vh);

    position: absolute;
    left: 0;
    right: 0;
}

.product-picture {
    grid-row: 2 / 7;
    grid-column: 4 / 10;

    border: 1px solid black;
    background-color: white;
}
    .product-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.product-trademark {
    grid-row: 2 / 3;
    grid-column: 11 / 15;

    display: flex;
    align-self: center;
}

.product-name {
    grid-row: 2 / 3;
    grid-column: 11 / 20;

    display: flex;
    align-self: flex-end;

    font-size: 25px;
    font-weight: bold;
}

.addtocart-product-page {
    grid-row: 5 / 6;
    grid-column: 11 / 14;

    display: flex;
    justify-self: center;
    align-self: center;

    height: 6vh;
    width: 15vw;
    background-color: #28A745;
    border: none;
    color: white;

    font-weight: bold;
    font-size: 20px;
}

.addtocart-product-page :hover {
    background-color: #228e3b;
}


.product-price {
    grid-row: 3 / 3;
    grid-column: 11 / 14;
    display: flex;
    font-size: 25px;
    font-weight: bolder;
    color: red;
}

.edit-product {
    grid-row: 1 / 1;
    grid-column: 4 / 6;

    display: flex;
    align-self: last baseline;
}

.size {
    grid-row: 3 / 3;
    grid-column: 11 / 13;


    display: flex;
    align-self: center;
}



    /*   kundvagn   */
#Kundvagn {
    position: absolute;
    z-index: 99;
    right: 300px;
}

.antal {
    position: absolute;
    bottom: -9px;
    right: -6px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: red;
    border-radius: 50%;
}

#kundvagnview {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 0px;
    width: 600px;
    height: 800px;
    background: white;
    padding: 20px;
    border: 1px solid black;
    z-index: 100;
    box-shadow: -5px 10px 25px rgba(0,0,0,0.3);
    transition: transform 0.35s ease;
    transform: translateX(120%);
}

    #kundvagnview.open {
        transform: translateX(0);
    }

.cartHeader {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.kundvagnsprodukt {
    display: grid;
    grid-template-rows: repeat(4,30px);
    grid-template-columns: repeat(8,70px);
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
}

.CartProduktNamn {
    grid-row: 2 / 3;
    grid-column: 3 / 8;
}

.CartProduktPris {
    grid-row: 3 / 4;
    grid-column: 3 / 6;
}

.CartProduktKvantitet {
    grid-row: 3 / 4;
    grid-column: 6 / 9;
}

.CartProductTrademark {
    grid-row: 1 / 2;
    grid-column: 3 / 8;
    font-size: 13px;
    color: dimgrey;
}
.CartProductpic {
    grid-row: 1 / 4;
    grid-column: 1 / 3;
}

.cartScroll {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 600px;
}

    .cartScroll::-webkit-scrollbar {
        width: 8px;
    }

    .cartScroll::-webkit-scrollbar-thumb {
        background: #c5c5c5;
        border-radius: 20px;
    }



.kundvagnsproduktcheckout {
    display: grid;
    grid-template-rows: repeat(4,50px);
    grid-template-columns: repeat(12,110px);
    padding: 18px 0;
    border-bottom: 1px solid black;
}


                /*  Order historik på profile.cshtml    */
.orderdiv {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 40px;
    width: 80vw;
    height: auto;
    padding: -2px;
    border-style: solid;
    border-width: 2px;
    border-color: black;

}
.orderID{
    grid-column: 1 / 2;
}


.ordertopicgrid {
    display: grid;
    grid-template-rows: repeat(1, 50px);
    grid-template-columns: 100px repeat(3, 1fr);
    border-bottom: 1px solid #e5e5e5;
    width: 80vw;
    border-left-style: solid;
    border-right-style: solid;
    border-width: 1px;
    border-color: black;
}
.ordertopic1, .ordertopic2, .ordertopic3, .ordertopic4 {
    border: 1px solid black;
    border-top: none;
}



.orderproductdiv {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 100px 1fr 1fr 1fr;
    border-bottom: 1px solid #e5e5e5;
    width: 80vw;
}

.orderproductimg, .orderproductname, .orderproductprice, .orderquantity {
    border: 1px solid black;
    border-top: none;
    border-left: none;
    border-top: none;
}

.orderproductimg {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}
.orderproductname {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.orderproductprice {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
.orderquantity {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.index-pic-text {
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    margin-bottom: 5px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 100;
}
