@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

html, body {
  width: 100%;
  max-width: 100%;
    margin: 0;
  padding: 0;
  height: 100%;
}

body {
    height: auto;
    width: 100%;   
    max-width: 100%;
    overflow-x: hidden; 
     overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
    margin: 0;    
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;    
    font-style: normal;
    scroll-behavior: smooth;    
    /* background: linear-gradient(135deg, #fcb69f, #fdbf77);    */
    background-color: #957941;   
}

.navbar, .container {
  max-width: 100%;
  overflow-x: hidden;
}

.navbar-collapse {
  max-width: 100%;
  overflow-x: hidden;
}

.carousel, .carousel-inner {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


* {
    margin: 0;
    padding: 0;
}



@media (max-width: 1024px) {
    .img-section, 
    .section_two, 
    .about, 
    .productSortiment, 
    .cartSection, 
    .infosection, 
    .checkout {
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 1024px) {
    .aboutSection, .payment-information {
        width: 100% !important;
        margin: 0 auto;
        padding: 0 15px;
    }
}

@media (max-width: 1024px) {
    #hero_section, #hero_section_about, #hero_section_products, #hero_section_contact, #hero_section_cart {
        min-height: 100vh;
    }
}



a {
    font-weight: bold;
    font-size: large;
}

.logo {
height: 100%;
width: 60px;
}


.nav-item:hover {
text-decoration: underline;
}

.nav-item.active {
    font-weight: bold;
    color: red;
  }

.welcome_text {
font-size: 42px;
text-decoration: underline !important;
}

#hero_section {
background-image: url('./images/pexels-nord6-1775283.jpg');    
width: 100%;
height: auto;
background-size: cover;
background-repeat: no-repeat;
}

#hero_section_about {
background-image: url('https://i.postimg.cc/4yz5ZHdf/output.jpg');
width: 100%;
height: auto;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}

#hero_section_products {
background-image: url('./images/products_bg.avif');
width: 100%;
height: auto;
background-size: cover;
background-repeat: no-repeat;
}

#hero_section_contact {
background-image: url('./images/pexels-nord6-1775283.jpg');
width: 100%;
height: auto;
background-size: cover;
background-repeat: no-repeat;
}

#hero_section_cart {
background-image: url('./images/checkoutpageBg.jpg');
width: 100%;
height: auto;
background-position: 20% 40%;
background-size: cover;
background-repeat: no-repeat;
}

@media (max-width: 811px) {

    #hero_section, #hero_section_about, #hero_section_products, #hero_section_contact, #hero_section_cart {
        background-size: cover;
        background-position: center;
    }
}
/* Mobile-specific background image */
@media (max-width: 768px) { 

    .welcome_text {
        font-size: 24px;
        }

    .aboutSection, .payment-information {
        width: 90% !important;       
    }
}

.container {
   margin-top: 0;
    padding: 0;
}

.img-section {
    margin-top: 0;
    min-height: 100vh;
    width: 100% !important;
    margin: 0;
    }

/*Main route */
.mainPagesite {
    overflow-x: hidden;
}
.imageSection {
background: url('./images/pexels-fotios-photos-230325.jpg');
background-size:cover ;
background-repeat: no-repeat;
background-position: center;
min-height: 100vh;
width: 100%;
height: auto;

}

.cookie-showcase {  
  color: #5c3a2e;
}

.cookie-text-wrapper {
  background-color: rgba(0, 0, 0, 0.6) !important; /* or rgba(255,255,255,0.7) for light overlay */
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cookie-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cookie-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}


.section_two {
 background: url('./images/pexels-feelartfeelant-1028708.jpg');
background-size:cover ;
background-repeat: no-repeat;
min-height: 100vh;   
}

.section_two2 {
  overflow-x: hidden;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%; /* eller mindre */
}

.carousel-inner img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  height: 400px;
}

.carousel-item img:hover {
  transform: scale(1.02);
  transition: transform 0.5s ease;
  cursor: zoom-in;
}

.quoteWrapper {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
}

/*End of main route */

/* About site */
.about {
background: url('./images/pexels-nord6-1775283.jpg');
background-size:cover ;
background-repeat: no-repeat;
min-height: 100vh;     
padding-top: 50px;
}

@media (max-width: 1024px) {
    .aboutSection, .payment-information {
        width: 100% !important;
        margin: 0 auto; /* centrera om du vill */
        padding: 0 15px; /* lite inre marginal */
    }
    .about {
        min-height: auto;
        padding-top: 20px; /* eller mindre */
        padding-bottom: 20px;
    }
}


/* Product page */
.productSortiment {
background: url('./images/pexels-fotios-photos-230325.jpg');
background-size:cover ;
background-repeat: no-repeat;
min-height: 100vh;     
background-position: center 30%;
}

@media (max-width: 768px) {
    .productSortiment {
    background: url('./images//autumncupcake.jpeg')
    }
}

.headlineWrapper {
 background-color: rgba(0, 0, 0, 0.6);   
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/*Shopping cart*/
.cartSection {
 background: url('./images/pexels-fotios-photos-230325.jpg');
background-size:cover ;
background-repeat: no-repeat;
min-height: 100vh;      
background-position: center;
}

/* Ensuring sticky cart behavior */
.cartContainer {
    position: -webkit-sticky; /* For Safari support */
    position: sticky;
    top: 20px; /* Stick the cart 20px from the top of the viewport */
    right: 20px;
    z-index: 2;
    display: flex;
    justify-content: right;
    overflow: visible;
    cursor: pointer;
    margin-right: 10px;
   
}



.img-section, .container, .navbar {
    overflow: visible; /* Make sure overflow is visible */
}

.cart {
    position: relative;    
    background-color: transparent !important;
    color: #212529;
    font-size: 20px;
    padding: 5px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    padding: 10px; /* Increased padding */
    backdrop-filter: blur(10px); /* Optional blur effect */
  }

  .fa-shopping-cart {
    padding: 10px; 
    color: white;
    border-radius: 10px;
    }

.cartAmount {
    position: absolute;
    top: -10px;
    right: -0px;
    font-size: 16px;
    background-color: red;
    color: white;
    padding: 3px;
    border-radius: 3px;
}

.priceAndIcon {
    display: flex;
    justify-content: space-around;
    align-items: center;
    line-height: 2;
    }
/*End of Shopping cart*/

/*Contact page*/
.infosection {
 background: url('./images/pexels-nietjuhart-1809347.jpg');
background-size:cover ;
background-repeat: no-repeat;
min-height: 100vh;      
background-position: center;
}

/*Checkout*/
.checkout {
background: url('./images/products_bg.avif');
background-size:cover ;
background-repeat: no-repeat;
min-height: 100vh;      
background-position: center;
}

.checkoutDiv {
 background-color: rgba(0, 0, 0, 0.6);   
  padding: 30px;
  border-radius: 10px;  
}

footer {
    margin-top: 0;
    width: 100%;
    height: auto;
    background: url('./images/pexels-feelartfeelant-1028708.jpg');
    background-size: cover;
    background-position: center;
   
    }
    
    .sectionRatings {
    opacity: 0;
    transition: opacity 2s ease-in;
    }
    
    .sectionRatings.visible {
        opacity: 1; /* Fade in */
    }
    
    
    .visible {
    opacity: 1;
    }

    .hidden {
        display: none;
    }

/*End of common selectors*/



.aboutSection {
height: auto;
}

ul li {
list-style-type: none;
}


/*Product card styling*/
.card {
box-shadow: 1px 2px 5px 1px;
}

.cucpakes , .cakes {
height: auto;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Aligns the content evenly */
    margin: 10px; /* or any value you prefer */
}

.card-img-top {
    height: auto; /* Set a fixed height for the image */
    object-fit: cover; /* Ensures the image covers the area without distortion */    
}

.product-img {
    transition: opacity 0.3s ease-in-out;
    cursor:zoom-in;
}

.card-body {
    flex: 1; /* Makes the body take the available space */
    display: flex;
    flex-direction: column; /* Aligns items vertically */
    justify-content: space-between; /* Space between title and button/icon */
}

.Information {
    flex: 1; /* Ensures this section takes available space */
}

.priceAndIcon {
    display: flex;
    align-items: center; /* Centers the icon and button vertically */
    justify-content: space-between; /* Spaces them out */
    margin-top: 10px; /* Adds some space above this section */
}

.fa-shopping-bag:hover {
color: yellowgreen;
cursor: pointer;
}

.fa-trash:hover {
color: red;
}

.icon-wrapper, .icon-wrapper-remove  {
    transition: transform 0.3s; /* Smooth scaling transition */
}

.icon-wrapper:hover {
    transform: scale(1.5); /* Slightly scale up the icon on hover */
    color: red;
}

.icon-wrapper-remove:hover {
    transform: scale(1.5);
    color: red;
}

.fa-plus, .fa-shopping-bag {
cursor: pointer;
}

.fa-minus, .fa-trash {
cursor: pointer;
}

/*End of Product card styling*/

/*Cart.html*/
.checkoutProducts {
width: 100%;
display: flex; 
flex-wrap: wrap; 
align-items: center;
justify-content: center;
margin: 20px auto;
}

.checkout_cards {
    width: 300px; 
    margin: 10px; 
    border: 1px solid #ccc; /* Optional: Add a border to cards */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    text-align: center; /* Center text in the card */
    background-color: #fff; /* Background color for cards */
    display: flex; /* Enable flexbox for card content */
    flex-direction: column; /* Stack contents vertically */    
    height: 100%; /* Set a fixed height for uniformity */
}

.checkout_cards img {
    width: 100%; /* Make images responsive to card width */
    height: auto;
    border-top-left-radius: 8px; /* Match rounded corners */
    border-top-right-radius: 8px; /* Match rounded corners */
}

.card-body {
    padding: 10px; /* Add padding inside the card body */
    flex: 1; /* Allow the body to take up remaining space */
}

.cartBtn {
    transition: 0.5s;
    padding: 12px;
    border-radius: 8px;
    height: 50px;
}

.cartBtn:hover {
transform: scale(1.05);
background: greenyellow;
}
/*End of Cart.html*/


/*Start of Checkout.html */

.checkoutDiv {
min-height: 80vh;
}


/*Start of Checkout.html */
