/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
/*===== VARIABLES CSS =====*/
:root{
  --header-height: 3rem;

  /*===== Colors =====*/
  --first-color: #fcb500;
  --first-color-dark: #ff5722;
  --first-color-darken: #dea730;
  --white-color: #FCF8F8;
  
  /*===== Font and typography =====*/
  --body-font: 'Poppins', sans-serif;
  --big-font-size: 2.5rem;
  --normal-font-size: .938rem;
  
  /*===== z index =====*/
  --z-fixed: 100;
}
.button-dark{
  background-color: orange;
}
.button-dark:hover{
  background-color: orange;

}
@media screen and (min-width: 768px){
  :root{
    --big-font-size: 5rem;
    --normal-font-size: 1rem;
  }
}

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

html {
    scroll-behavior: smooth;
}


body{
  margin: var(--header-height) 0 0 0;
  padding: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: 500;
}

h1,p,ul{
  margin: 0;
}

ul{
  padding: 0;
  list-style: none;
}

a{
  text-decoration: none;
}

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

/*===== LAYOUT =====*/
.bd-grid{
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: 1rem;
  margin-right: 1rem;
}

.l-header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
/*  background-color: #fcb500 !important;*/
  transition: background-color 0.5s ease-in-out;
}

/*===== ROW AND COLUMNS STYLES =====*/

/* Make the .row a flex container */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Space between columns */
}

/* Make the columns responsive */
.col {
  flex: 1 1 45%; /* Columns take up 45% of space by default */
}

/* Adjust column width for larger screens */
@media screen and (min-width: 768px) {
  .col {
    flex: 1 1 48%; /* Adjust to fit better on larger screens */
  }
}

@media screen and (min-width: 1024px) {
  .col {
    flex: 1 1 22%; /* Adjust for even larger screens */
  }
}

/*===== NAV =====*/
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px){
  .nav__menu{
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    padding: 3.5rem 1.5rem 0;
    background: rgba(255,255,255,.3);
    backdrop-filter: blur(10px);
    transition: .5s;
  }
}

.nav__close{
  position: absolute;
  top: .75rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__item{
  margin-bottom: 2rem;
}

.nav__close, .nav__link, .nav__logo, .nav__toggle{
  transition: color 0.5s ease-in-out, text-shadow 0.5s ease-in-out;
    color: #fff; /* Default text color */
    text-shadow: none;
}

.nav__link:hover{
  color: var(--first-color-dark);
}

/* When About section is visible, apply this class to the <nav> */
.nav.scrolled .nav__link {
    color: #131313 !important;
    text-shadow: rgba(0, 0, 0, 0.1) 1px 1px 3px;
}

.nav.scrolled .nav__link:hover {
    color: var(--first-color-dark) !important;
}

.nav__toggle{
  font-size: 1.5rem;
  cursor: pointer;
}

/*=== Show menu ===*/
.show{
  right: 0;
}

/*===== HOME =====*/
.home{
  background-color: var(--first-color);
  overflow: hidden;
}

.home__container{
  height: calc(100vh - var(--header-height));
  grid-template-rows: repeat(2, max-content);
  row-gap: 1.5rem;
}

.home__img{
  position: relative;
  padding-top: 1.5rem;
  justify-self: center;
  width: 302px;
  height: 233px;
}

.home__img img{
  position: absolute;
  top: 0;
  left: 0;
   transition: opacity 1s ease-in-out;
}

.fade-img {
  opacity: 0; 
}

.fade-img.active {
  opacity: 1; 
}

/*.home__img {
  position: relative;
  padding-top: 1.5rem;
  justify-self: center;
  width: 302px;
  height: 233px;
  overflow: hidden;
}

.home__img img {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out;
}

.fade-img {
  opacity: 0; 
}

.fade-img.active {
  opacity: 1; 
}*/

.home__data{
  color: var(--white-color);
}

.home__title{
  font-size: var(--big-font-size);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.home__description{
  margin-bottom: 2.5rem;
}

.home__button{
  display: inline-block;
  background-color: var(--first-color-dark);
  color: var(--white-color);
  padding: 1.125rem 2rem;
  border-radius: .5rem;
}

.home__button:hover{
  background-color: var(--first-color-darken);
}

 .squishy-order {
       background: linear-gradient(to bottom right, #FFC107, #FFC107);
       padding: 15px;
    font-size: 20px;
    font-weight: bold;
       border: none;
         color: white;
         border-radius: 9999px;
         boder:none;
        box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.4), 0 2px 0 0 #ebf472, 0 4px 0 0 #FFC107, 0 6px 0 0 #FF9800, 0 8px 0 0 #FF5722, 0 8px 16px 0 #ffc10747;
        width: 12rem;
       }
       .squishy-order:hover {
             color: white;
        transform: translateY(4px);
        box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.4), 0 1px 0 0 #FFC107, 0 2px 0 0 #FFC107, 0 3px 0 0 #FF9800, 0 4px 0 0 #FF9800, 0 4px 8px 0 rgb(244 114 182 / 0%);
        transition: all 0.3s ease-in-out;
       }

        .squishy-order:focus {
        outline: 1px dotted;
    }
       .squishy-order:hover i {
         animation: pulse 1s infinite;
}

/*===== ABOUT =====*/
.about{
  background-color: #034f1cdb;
}
.about__container{
  row-gap: 3rem;
  margin-top: 3rem;
  height: 100vh;

}
.about__data{
  text-align: center;

}
.about .section__title,
.about__description{
  color:white;
  margin-bottom: 1.5rem;
}
.about__images{
  position:relative;
  display: grid;
  place-items: center;
  justify-self: center;
}
.about__shape{
  width:400px;
  height:400px;
  background-color: #4caf84;
  border-radius: 50%;

}
.about__image img{
  position:absolute; 
}
.about__coffee {
  width: 380px;
  filter: drop-shadow(0 8px 16px hsla(166, 85%, 8%, 0.5));
  position: absolute;
}
.about__leaf-1,
.about__leaf-2{
  width:100px;
  position: absolute;
}
.about__leaf-1{
  top: .5rem;
  left: 3.5rem;
  transform: rotate(-105deg);
}
.about__leaf-2{
  top: 7.5rem;
  right: 2.5rem;
  transform: rotate(-15deg);
}

/*.about{
  background-color: #ffe9a1;
  overflow: hidden;
}

.about__container{
  height: calc(100vh - var(--header-height));
  grid-template-rows: repeat(2, max-content);
  row-gap: 1.5rem;


}

.about__img{
  position: relative;
  padding-top: 1.5rem;
  justify-self: center;
  width: 302px;
  height: 233px;
}

.about__img img{
  position: absolute;
  top: 0;
  left: 0;
}

.about__data{
  color: var(--white-color);
}

.about__title{
  font-size: var(--big-font-size);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.about__description{
  margin-bottom: 2.5rem;
}

.about__button{
  display: inline-block;
  background-color: var(--first-color-dark);
  color: var(--white-color);
  padding: 1.125rem 2rem;
  border-radius: .5rem;
}

.about__button:hover{
  background-color: var(--first-color-darken);
}
*/
/*===== bestSeller =====*/

.bestSeller {
  background-color: #fff;
  height: 100vh;
}

.bestSeller .section__title {
  color: #1b6d05;
  text-align: center;
  font-size: 2rem;
  line-height: 3rem;
  margin-bottom: 5rem;
}

.bestSeller__swiper {
  padding-top: 1.5rem;
  display: flex;               /* Ensure flex layout for swiper */
  justify-content: center;     /* Center the swiper content */
}

/* Ensure the card is behind */
.bestSeller__card {
  position: relative;
  background: rgba(255, 255, 255, 0.8); /* Glossy effect */
  backdrop-filter: blur(10px); /* Adds a soft blur effect */
  border: solid gainsboro 1px;
  border-radius: 10px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  padding: 2rem;
  overflow: hidden;
}

/* Make the card background glossy */
.bestSeller__card {
  position: relative;
  background: rgba(255, 255, 255, 0.85); /* More glossy */
  backdrop-filter: blur(12px);
  border: solid gainsboro 1px;
  border-radius: 10px;
  box-shadow: rgba(149, 157, 165, 0.3) 0px 10px 30px;
  padding: 2rem;
  overflow: visible; /* Allows images to go beyond the card */
  max-width: 15rem;
}

/* Ensure images overlap the card */
.bestSeller__images {
  position: absolute;
  top: -50px; /* Move the images further up */
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bestSeller__shape {
  position: absolute;
  width: 190px;
  height: 190px;
  background-color: orange;
  border-radius: 50%;
  z-index: 0;
    clip-path: inset(50% 0 0 0);
}

.bestSeller__coffee {
  width: 160px; /* Bigger image */
  position: relative;
  z-index: 2;
}

.bestSeller__bean-1 {
  width: 40px;
  position: absolute;
  top: 2.5rem;
  left: 1rem;
  transition: transform 0.5s ease-in-out;
  z-index: 1;
}

.bestSeller__bean-2 {
  width: 30px;
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  rotate: 75deg;
  filter: blur(1px);
  transition: transform 0.5s ease-in-out;
  z-index: 1;
}

/* Hover effect for animation */
.bestSeller__card:hover .bestSeller__bean-1 {
  transform: translate(-.5rem, -.25rem);
}

.bestSeller__card:hover .bestSeller__bean-2 {
  transform: translate(.5rem, -.25rem);
}
/*===== POPULAR =====*/

/*.popular {
  background-color: #fff;
}

.popular .section__title {
  color: #1b6d05;
  text-align: center;
  font-size: 2rem;
  line-height: 3rem;
}

.popular__swiper {
  padding-top: 1.5rem;
  display: flex;               
  justify-content: center;     
}

.popular__card {
  width: auto; 
  max-width: 270px; 
  display: grid;
  row-gap: 1.5rem;
}

.popular__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
}

.popular__shape {
  width: 195px;
  height: 195px;
  background-color: orange;
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
}

.popular__images img {
  position: absolute;
}

.popular__coffee {
  width: 130px;
  top: 0.5rem;
}

.popular__bean-1 {
  width: 30px;
  top: 3rem;
  left: .5rem;
  transition: transform .5s .1s;
}

.popular__bean-2 {
  width: 20px;
  right: 2rem;
  bottom: 2rem;
  rotate: 75deg;
  filter: blur(1px);
  transition: transform .5s .1s;
}

.popular__data {
  text-align: center;
}

.popular__name {
  font-size: 2rem;
  color: black;
  margin-bottom: .5rem;
}

.popular__description {
  margin-bottom: 1.5rem;
}

.popular__card:hover .popular__bean-1 {
  transform: translate(-.5rem, -.25rem);
}

.popular__card:hover .popular__bean-2 {
  transform: translate(.5rem, -.25rem);
}

.popular__swiper {
  width: 100%;
  overflow: hidden; 
}

.swiper-wrapper {
  display: flex; 
}


.swiper {
  overflow: visible;
  margin-inline: initial;
}

@media (max-width: 768px) {
  .popular__card {
    width: 100%;   
  }
}
*/

/* ===== MEDIA QUERIES =====*/
@media screen and (min-width: 768px){
  body{
    margin: 0;
  }
  
  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__toggle, .nav__close{
    display: none;
  }

  .nav__list{
    display: flex;
  }

  .nav__item{
    margin-left: 3rem;
    margin-bottom: 0;
  }

  .home__container{
    height: 100vh;
    grid-template-columns: repeat(2, max-content);
    grid-template-rows:  1fr;
    row-gap: 0;
    align-items: center;
    justify-content: center;
  }
  
  .home__img{
    order: 1;
    width: 375px;
    height: 289px;
  }

  .home__img img{
    width: 375px;
  }

    .about__container{
    height: 100vh;
    grid-template-columns: repeat(2, max-content);
    grid-template-rows:  1fr;
    row-gap: 0;
    align-items: center;
    justify-content: center;
  }
  
  .about__img{
    order: 1;
    width: 375px;
    height: 289px;
  }

  .about__img img{
    width: 375px;
  }
}

@media screen and (min-width: 1024px){
  .bd-grid{
    margin-left: auto;
    margin-right: auto;
  }

  .home__container{
    justify-content: initial;
    column-gap: 4.5rem;
  }

  .home__img{
    width: 526px;
    height: 466px;
  }

  .home__img img{
    width: 604px;
  }

  .about__container{
    justify-content: initial;
    column-gap: 4.5rem;
  }

  .about__img{
    width: 526px;
    height: 466px;
  }

  .about__img img{
    width: 604px;
  }
}
