/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@100..900&family=Sacramento&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Forum&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Dancing+Script:wght@400..700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: #421a0f;
    --first-color-light: #e0be91;
    --text-color: #13131B;
    --white-color: #f8f9fa;
    --text-color-light: hsl(203, 8%, 80%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Outfit", serif;
    --header-font: "forum", serif;
    --biggest-font-size: 2.25rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-semi-bold: 600;

    /*========== z index ==========*/
    --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
    :root {
        --biggest-font-size: 4rem;
        --h2-font-size: 1.5rem;
        --normal-font-size: 1rem;
        --smaller-font-size: .813rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    color: var(--black-color);
}

p,
span {
    font-family: var(--body-font);
    font-size: 15px;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--white-color);
    color: var(--text-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    font-family: var(--body-font);
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1224px;
    margin-inline: 1.5rem;
}

.main {
    overflow: hidden;
    /* For the animations */
}

/*=============== HEADER & NAV ===============*/
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: background .3s;

}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo,
.nav__toggle,
.nav__link,
.nav__close {
    color: var(--text-color);
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo img {
    width: 50px;
    text-align: center;
}

.nav__text img {
    width: 50px;
}

.nav__toggle {
    display: inline-flex;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--white-color);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toggle-background i {
    color: var(--text-color);
    font-size: 20px;
}

.change-theme {
    font-size: 1.25rem;
    color: var(--container-color);
    cursor: pointer;
    transition: color .3s;
}


body.dark-theme {
    --title-color: hsl(207, 4%, 95%);
    --text-color: hsl(207, 4%, 95%);
    --body-color: var(--first-color);
    --container-color: var(--first-color);
}

body.dark-theme {
    background-color: var(--container-color);
}


@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        background-color: var(--white-color);
        width: 100%;
        left: 0;
        top: -100%;
        box-shadow: 0 3px 8px hsla(203, 71%, 4%, .2);
        padding: 4rem 0 3.5rem;
        transition: top .4s;
        overflow: hidden;
        z-index: 11111111111;
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    text-align: center;
    row-gap: 2rem;
}

.nav__link {
    transition: color .4s;
    font-family: var(--body-font);
    color: var(--text-color);
}

.nav__link::after {
    content: '';
    height: 2px;
    width: 0%;
    background: var(--first-color-light);
    display: block;
    transition: .5s;
    /* margin: auto; */
}

.nav-cart {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.nav-cart i {
    color: var(--text-color);
    font-size: 30px;
}


.nav-cart-no {
  position: absolute;
  height: 25px;
  width: 25px;
  color: var(--white-color);
  background: var(--first-color);
  text-align: center;
  line-height: 40px;
  border-radius: 50px;
  scale: 0.8;
  top: -10px;
  left: 20px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}



.nav__link:hover::after {
    width: 100%;
}

.nav__close,
.nav__img {
    position: absolute;
}

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

/* Show menu */
.show-menu {
    top: 0;
}


/* Change background header */
.header-bg {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.3);
}

.header-bg .nav__link,
.header-bg .toggle-background i {
    color: var(--text-color);
}

.header-bg .nav__text {
    background: linear-gradient(145deg, var(--text-color), #bc9c6c);
    background-clip: text;
    -webkit-background-clip: text;
}

.header-bg .nav-cart i {
    color: var(--text-color);
    font-size: 25px;
}

.header-bg .nav-cart-no {
    background: var(--first-color);
    color: var(--white-color);
}

.header-bg .nav__toggle {
    color: var(--text-color);
}



/*=============== HOME ===============*/

.home {
    position: relative;
    height: 50vh;
    width: 100%;
    background: url(../img/background.jpg);
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.7);
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-banner h1 {
    font-size: 100px;
    font-family: var(--header-font);
    font-weight: 900;
    background-image: url(../img/home-bg.jpeg);
    color: transparent;
    background-size: contain;
    background-clip: text;
    -webkit-background-clip: text;
}

/* Story */

.coffee-story {
    position: relative;
    background-attachment: fixed;
    padding: 100px 0;
    overflow: hidden;
}

.coffee-story-grid {
    padding-bottom: 30px;
}

.coffee-story-grid h1 {
    font-size: 100px;
    font-family: var(--header-font);
    font-weight: 900;
    background-image: url(../img/home-bg-5.jpeg);
    color: transparent;
    background-size: contain;
    background-clip: text;
    -webkit-background-clip: text;
}









.coffee {
    position: relative;
    overflow: hidden;
    padding: 0 0 100px;
}

.coffee-header h1 {
     font-size: 100px;
    font-family: var(--header-font);
    font-weight: 900;
    background-image: url(../img/home-bg-5.jpeg);
    color: transparent;
    background-size: contain;
    background-clip: text;
    -webkit-background-clip: text;
}



.coffee-grids {
  padding-top: 50px;
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.coffee-grid-content {
  padding: 0 0 20px;
  background: var(--white-color);
  overflow: hidden;
  position: relative;
}

.coffee-img {
  position: relative;
}

.coffee-details {
  text-align: center;
}

.coffee-details h3 {
  font-size: 20px;
  font-family: var(--header-font);
  padding: 10px;
  text-align: center;
}

.coffee-details p {
  font-size: 15px;
  margin-bottom: 20px;
}

.coffee-heart {
  position: absolute;
  right: 0;
  top: 0;
  padding: 20px 20px 0 0;
  margin-right: -50px;
  transition: .5s;
  z-index: 111111;
}

.coffee-heart i {
  font-size: 25px;
}

.coffee-cart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.coffee-cart button {
  background: var(--white-color);
  border: none;
  outline: none;
  font-family: var(--body-font);
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 15px;
  font-size: 13px;
  opacity: 0;
  transition: .5s;
}

.coffee-sale {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 10px;
  background: var(--text-color);
  color: var(--white-color);
  transition: .5s;
  z-index: 11111;
}

.coffee-sale span {
  font-size: 12px;
}

.coffee-layer {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.1);
  height: 0;
  width: 100%;
  transition: .5s;
}

.coffee-grid-content:hover .coffee-heart {
  margin-right: 0;
}

.coffee-grid-content:hover .coffee-sale {
  margin-top: -50px;
}

.coffee-grid-content:hover .coffee-cart button {
  opacity: 1;
}

.coffee-grid-content:hover .coffee-layer {
  height: 100%;
}



/* Cart container */

.cart-container {
  position: fixed;
  top: 0;
  right: -40vw;
  background: var(--white-color);
  height: 100vh;
  width: 30vw;
  overflow-y: scroll;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.3);
  transition: 0.2s ease;
  z-index: 1111111111111;
}

.active .cart-container {
  right: 0vw;
}

.cart-container h1 {
  width: 100%;
  text-align: center;
  margin: 1em 0;
  font-size: 2.5em;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--text-color);
}

.cart-container ul {
  list-style: none;
}

.cart-container .bottom-side {
  display: flex;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  width: 30vw;
  padding: 0 20px 20px;
}

.bottom-side .total {
  width: 50%;
  background: var(--first-color);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bottom-side .close-btn {
  width: 50%;
  background: var(--first-color-light);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px; 
}

.cart-container ul {
  list-style: none;
}

.cart-container ul li {
  position: relative;
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  margin: 5px;
  padding: 1em;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

.cart-container ul li img {
  height: inherit;
}

.cart-container ul li .coffee-name {
  font-family: var(--header-font);
}

.cart-container ul li .coffee-name,
.cart-container ul li .coffee-price {
  font-size: 1em;
  text-transform: capitalize;
}

.cart-container ul li .bakery-name {
  font-family: var(--header-font);
}

.cart-container ul li .bakery-name,
.cart-container ul li .bakery-price {
  font-size: 1em;
  text-transform: capitalize;
}


.changequantity span {
  padding: 0.5em;
}

.changequantity button {
  font-size: 1.5em;
  padding: 5px 16px;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 50px;
  text-align: center;
  font-size: 1em;
  font-weight: 600;
  color: var(--text-color);
  &:hover {
    background: var(--text-color);
    color: var(--white-color);
  }
}






.footer {
    position: relative;
    padding: 0 0 20px;
    overflow: hidden;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: var(--text-color);
}

.footer-grids {
    display: flex;
    justify-content: space-between;
    padding: 100px 0;
}

.footer-grid {
    flex: 5;
}

.footer-logo {
    width: 100px;
    margin-bottom: 10px;
}

.footer-grid p {
    color: var(--text-color);
    padding-bottom: 10px;
}

.footer-grid a {
    color: var(--text-color);
    font-weight: 300;
}

.footer-grid-links {
    flex: 2;
}

.footer-grid-links h3 {
    font-size: 20px;
    color: var(--text-color);
    font-family: var(--header-font);
    padding-bottom: 20px;
}

.footer-links {
    padding-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    font-weight: 300;
}

.footer-grid-2 {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-grid-2 p {
    color: var(--text-color);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: var(--first-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a {
    color: var(--text-color);
    font-size: 20px;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
    .container {
        margin-inline: 1rem;
    }
}

/* For medium devices */
@media screen and (min-width: 767px) {
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__toggle,
    .nav__close,
    .nav__img {
        display: none;
    }

    .nav__link {
        font-size: 12px;
        color: var(--white-color);
    }

    .nav__list {
        flex-direction: row;
        column-gap: 1.5rem;
    }

    .nav-cart i {
        color: var(--white-color);
        font-size: 25px;
    }

    .nav-cart-no {
        background: var(--white-color);
        color: var(--first-color);
        font-weight: 700;
    }
}


/* For large devices */

@media screen and (min-width: 1048px) {
    .container {
        margin-inline: auto;
    }
}

@media screen and (max-width: 767px) {

    .home-banner h1 {
        font-size: 70px;
    }

    .coffee-story-grid h1,
    .coffee-header h1 {
        font-size: 40px;
    }

    .cart-container {
        width: 100vw;
        right: -120vw;
    }

    .cart-container .bottom-side {
        display: flex;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        width: 100vw;
        padding: 0 20px 20px;
    }


    .footer-grids {
        flex-direction: column;
        gap: 30px;
        padding: 50px 0;
    }

    .footer-grid-2 {
        flex-direction: column;
        gap: 30px;
    }


}