/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

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

  /*========== Colors ==========*/
  --first-color: hsl(0, 88%, 62%);
  --first-color-alt: hsl(0, 72%, 58%);
  --black-color: hsl(206, 12%, 12%);
  --card-color: hsl(0, 0%, 90%);
  --title-color: hsl(206, 12%, 12%);
  --text-color: hsl(206, 4%, 42%);
  --text-color-light: hsl(206, 4%, 75%);
  --body-color: hsl(206, 4%, 97%);
  --container-color: #fff;

  /*========== Font and typography ==========*/
  --body-font: 'Lato', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-bold);
}

h1,
h2,
h3,
p {
  line-height: 140%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

button {
  border: none;
  outline: none;
  cursor: pointer;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.d-none {
  display: none;
}

.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  position: relative;
  font-size: var(--h1-font-size);
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.section__title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 25%;
  height: 4px;
  background-color: var(--first-color);
}

.header {
  width: 100%;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
}

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

.nav__logo,
.nav__toggle {
  color: #fff;
}

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

.nav__logo span {
  color: var(--first-color);
}

.nav__toggle {
  display: inline-flex;
  font-size: 1.15rem;
  cursor: pointer;
}

/* change header background */
.scroll-header {
  background-color: hsla(206, 12%, 12%, 0.9);
  box-shadow: 0 1px 4px hsla(0, 4%, 15%, 0.1);
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    background-color: var(--black-color);
    top: 0;
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    transition: 0.3s;
    z-index: 999;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: 3rem;
  padding-top: 9rem;
}

.nav__link {
  text-transform: uppercase;
  color: var(--text-color-light);
  font-size: var(--h2-font-size);
  transition: 0.3s;
  font-weight: 700;
}

.nav__link.active-link {
  color: #fff;
}

.nav__link:hover {
  color: #fff;
}

.nav__close {
  font-size: 2rem;
  color: #fff;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

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

/* hero style */
.hero {
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero__title,
.hero__button {
  z-index: 99;
}

.hero__title {
  text-align: center;
  color: #fff;
  font-size: var(--h1-font-size);
  z-index: 99;
  margin-bottom: 2rem;
}

.hero__button {
  background-color: var(--first-color);
  padding: 1rem 1.75rem;
  border-radius: 0.25rem;
  color: #fff;
  text-transform: uppercase;
  transition: 0.3s;
}

.hero__button:hover {
  background-color: var(--first-color-alt);
}
/* end */

/* special style */
.special__category {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 200px;
  justify-content: center;
  row-gap: 2.5rem;
}

.special__img__border {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  transition: 0.4s;
  border: 3px solid var(--first-color);
  border-radius: 100%;
  padding: 1.25rem;
}

.special__img__border img[src*="coffee-beans.png"]:hover {
  border-color: rgba(139, 69, 19, 0.7); /* brown circle border on hover */
}

.special__img__border img[src*="hot-drink.png"]:hover {
  border-color: rgba(255, 0, 0, 0.7); /* red circle border on hover */
}

.special__img__border img[src*="coffee-cup.png"]:hover {
  border-color: rgba(0, 0, 255, 0.7); /* blue circle border on hover */
}

.special__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.25rem;
  font-weight: 700;
}
/* end */

/* products style */
.products__filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  margin-bottom: 3.5rem;
}

.products__item {
  cursor: pointer;
}

.products__title {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.active-product .products__title {
  color: var(--title-color);
}

.products__stock {
  font-size: var(--small-font-size);
}

.products__content {
  grid-template-columns: 200px;
  justify-content: center;
}

.products__card {
  background-color: var(--container-color);
  border-radius: 0.75rem;
}

.products__img {
  border-radius: 0.75rem 0.75rem 0 0;
}

.products__data {
  padding: 1rem 0 1.25rem 1rem;
  position: relative;
}

.products__price {
  font-size: var(--h2-font-size);
  font-weight: 700;
}

.products__name {
  font-size: var(--normal-font-size);
}

.products__button {
  border-radius: 50%;
  padding: 0.625rem;
  display: inline-flex;
  font-size: 1.25rem;
  position: absolute;
  right: 1rem;
  top: -1.25rem;
  box-shadow: 0 4px 12px hsla(0, 88%, 62%, 0.2);
  background-color: var(--first-color);
  color: #fff;
}
/* end */

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

.place-content {
  row-gap: 2.5rem;
}

.place__images {
  position: relative;
  justify-self: center;
}

.place__img-big,
.place__img-small {
  border-radius: 0.5rem;
}

.place__img-big {
  width: 280px;
}

.place__img-smalls {
  width: 80px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 10px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  row-gap: 0.75rem;
}

.place__img-small.active {
  border: 3px solid var(--first-color);
}

.place__data {
  text-align: center;
}

.place__title {
  font-size: var(--h1-font-size);
  font-weight: 700;
}

.place__title {
  margin-bottom: 0.25rem;
}
.place__description {
  margin-bottom: 2.5rem;
}
/* end */

/* blog */
.blog__container {
  padding-bottom: 2rem;
}

.blog__content {
  row-gap: 3rem;
}

.blog__image {
  position: relative;
  margin-bottom: 1.5rem;
}

.blog__img {
  border-radius: 0.5rem;
}

.blog__button {
  display: inline-flex;
  background-color: #fff;
  padding: 1.15rem;
  border-radius: 100%;
  font-size: 2rem;
  color: #fff;
  position: absolute;
  right: 1rem;
  bottom: -1.5rem;
  background-color: var(--first-color);
}

.blog__button i {
  transform: rotate(-30deg);
  transition: 0.4s;
}

.blog__button:hover i {
  transform: rotate(-30deg) translateX(0.25rem);
}

.blog__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.blog__description {
  margin-bottom: 1.5rem;
}

.blog__stats,
.blog__reaction {
  display: flex;
  align-items: center;
}

.blog__stats {
  column-gap: 1.5rem;
  position: absolute;
  bottom: 0;
  background-color: hsla(0, 88%, 62%, 0.4);
  color: #fff;
  padding: 0.75rem;
  border-radius: 0 0.5rem 0 0.5rem;
  backdrop-filter: blur(30px);
}

.blog__reaction {
  column-gap: 0.25rem;
}

.blog__reaction i {
  font-size: 1.25rem;
}

.blog__reaction span {
  font-size: var(--small-font-size);
}
/* end */

/* footer style */
.footer {
  background-color: var(--black-color);
  padding: 4rem 0 2.5rem;
}

.footer__title {
  text-align: center;
  color: #fff;
  font-size: var(--biggest-font-size);
  margin-bottom: 10px;
}

.footer__description {
  margin-bottom: 2rem;
  text-align: center;
}

.footer__title span {
  color: var(--first-color);
}

.footer__newsletter-description {
  margin-bottom: 0.75rem;
}

.footer__newsletter {
  display: flex;
  column-gap: 0.5rem;
}

.footer__input {
  border: none;
  outline: none;
  padding: 1.25rem 1rem;
  border-radius: 0.25rem;
  width: 70%;
  color: var(--text-color);
}

.footer__button {
  padding: 0.75rem;
  font-size: 2rem;
  border-radius: 0.25rem;
  display: inline-flex;
  background-color: var(--first-color);
}

.footer__button i {
  transform: rotate(-30deg);
  transition: 0.4s;
  color: #fff;
}

.footer__button:hover i {
  transform: rotate(-30deg) translate(0.25rem);
}

.footer__content {
  row-gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--text-color);
}

.footer__subtitle {
  color: #fff;
  font-size: var(--h2-font-size);
  margin-bottom: 0.75rem;
}

.footer__flag {
  width: 1rem;
}

.footer__group {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: 1.5rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.footer__social-link {
  color: #fff;
  transition: 0.4s;
}

.footer__social-link:hover {
  color: var(--first-color);
}

.footer__copy {
  font-size: var(--small-font-size);
}
/* end */

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

  .place__img-smalls {
    display: none;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .special__category {
    grid-template-columns: repeat(2, 200px);
    column-gap: 3rem;
  }

  .products__content {
    grid-template-columns: repeat(2, 200px);
    padding-bottom: 3rem;
  }

  .blog__content {
    grid-template-columns: 450px;
    justify-content: center;
  }

  .footer__newsletter {
    width: 350px;
  }
}
/* For large devices */
@media screen and (min-width: 769px) {
  .section {
    padding: 7rem 0 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    padding-top: 0;
    flex-direction: initial;
    column-gap: 4rem;
  }
  .nav__link {
    position: relative;
    font-size: var(--normal-font-size);
    text-transform: initial;
  }

  .products__filters {
    grid-template-columns: repeat(3, 200px);
  }

  .place__content,
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .place__data {
    text-align: initial;
  }
}

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

  .special__category {
    grid-template-columns: repeat(3, 250px);
    column-gap: 8rem;
  }

  .products__filters {
    margin: 4rem 0 5.5rem;
    column-gap: 4rem;
  }

  .products__content {
    grid-template-columns: repeat(3, 264px);
    justify-content: initial;
    column-gap: 5rem;
  }

  .products__name {
    font-size: var(--h3-font-size);
  }

  .products__button {
    font-size: 1.5rem;
    padding: 0.75rem;
    right: 1.5rem;
    top: -1.5rem;
  }

  .place__content {
    column-gap: 6rem;
  }

  .place__images {
    margin-top: 2rem;
  }

  .place__img-big {
    width: 428px;
  }

  .place__img-smalls {
    /* width: 153px; */
    right: -35px;
  }

  .place__title {
    margin-bottom: 1rem;
  }

  .blog__container {
    padding-bottom: 5rem;
  }

  .blog__content {
    grid-template-columns: repeat(2, 450px);
    column-gap: 5rem;
    padding-top: 2rem;
  }

  .footer__content {
    grid-template-columns: repeat(4, max-content);
    column-gap: 4rem;
    padding-bottom: 5.5rem;
  }

  .footer__group {
    margin-top: 3rem;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__social {
    column-gap: 2rem;
  }

  .footer__social-link {
    font-size: 1.5rem;
  }
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: var(--container-color);
  box-shadow: -3px 0 15px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 25px 20px;
  font-family: var(--body-font);
  color: var(--title-color);
  font-size: var(--normal-font-size);
  border-left: 4px solid var(--first-color);
  border-radius: 8px 0 0 8px;
}

.cart-panel.open {
  right: 0;
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-panel-header h2 {
  font-size: var(--h2-font-size);
  font-weight: 700;
  color: var(--first-color);
}

.cart-close {
  font-size: 28px;
  cursor: pointer;
  color: var(--first-color);
  transition: color 0.3s ease;
}

.cart-close:hover {
  color: var(--first-color-alt);
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  margin: 0 0 20px 0;
  padding-right: 10px;
}

.cart-item {
  border-bottom: 1px solid var(--card-color);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item strong {
  font-weight: 700;
  font-size: var(--normal-font-size);
  color: var(--title-color);
}

.cart-item div {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.quantity-input {
  width: 60px;
  padding: 4px 6px;
  border: 1px solid var(--card-color);
  border-radius: 4px;
  font-size: var(--small-font-size);
  color: var(--title-color);
}

.remove-btn {
  align-self: flex-start;
  background-color: var(--first-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--small-font-size);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}

.remove-btn:hover {
  background-color: var(--first-color-alt);
}

.cart-footer {
  border-top: 1px solid var(--card-color);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-footer .btn {
  width: 100%;
  padding: 12px 0;
  background-color: var(--first-color);
  color: #fff;
  font-weight: 700;
  font-size: var(--normal-font-size);
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

.cart-footer .btn:hover {
  background-color: var(--first-color-alt);
}

.payment-options {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: 15px;
}

.payment-options h3 {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--title-color);
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  cursor: pointer;
}

.payment-options input[type="text"],
.payment-options input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  border: 1px solid var(--card-color);
  border-radius: 6px;
  font-size: var(--small-font-size);
  color: var(--title-color);
  background-color: var(--container-color);
}

.payment-details {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-details input {
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cart-panel {
    width: 100%;
    right: -100%;
    border-radius: 0;
  }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  font-size: 24px;
  cursor: pointer;
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  margin: 20px 0;
}

.cart-footer {
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.cart-footer .btn {
  width: 100%;
  margin-top: 10px;
}

.payment-options label {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}
.cart {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 9999;
  transition: right 0.3s ease-in-out;
}

.cart.show-cart {
  right: 0;
}

/* Spotify Widget Styles */
#spotifyWidget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 12px;
  background-color: white;
  overflow: hidden;
}

#spotifyEmbed {
  width: 100%;
  height: 80px;
  border: none;
  border-radius: 12px 12px 0 0;
}

#minimizeBtn {
  background: #1db954;
  color: white;
  border: none;
  width: 100%;
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
  border-top: 1px solid #ccc;
}

/* Minimized State */
#spotifyWidget.minimized iframe {
  display: none;
}

/* Coffee image glow effects on hover */
.products__card.original-coffee .products__shape:hover {
  box-shadow: 0 0 15px 5px rgba(139,69,19, 0.7); /* brown glow */
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

.products__card.hot-coffee .products__shape:hover {
  box-shadow: 0 0 15px 5px rgba(255,0,0, 0.7); /* red glow */
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

.products__card.iced-coffee .products__shape:hover {
  box-shadow: 0 0 15px 5px rgba(0,0,255, 0.7); /* blue glow */
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

/* Glow effect on hover for coffee beans, hot drink, and coffee cup images in special section */
.special__img__border img[src*="coffee-beans.png"],
.special__img__border img[src*="hot-drink.png"],
.special__img__border img[src*="coffee-cup.png"] {
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.special__img__border img[src*="coffee-beans.png"]:hover {
  filter: drop-shadow(0 0 10px rgba(139, 69, 19, 0.8)); /* brown glow */
  box-shadow: 0 0 15px 5px rgba(139, 69, 19, 0.5);
  cursor: pointer;
}

.special__img__border img[src*="hot-drink.png"]:hover {
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8)); /* red glow */
  box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.5);
  cursor: pointer;
}

.special__img__border img[src*="coffee-cup.png"]:hover {
  filter: drop-shadow(0 0 10px rgba(0, 0, 255, 0.8)); /* blue glow */
  box-shadow: 0 0 15px 5px rgba(0, 0, 255, 0.5);
  cursor: pointer;
}

