@import url('https://fonts.googleapis.com/css2?family=Blinker:wght@100;200;300;400;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Blinker', sans-serif;
}

/* Global Styles */
a {
  text-decoration: none;
  color: black;
}

button {
  cursor: pointer;
}

.container {
  padding: 80px 0;
}

.row {
  width: 100%;
  height: 100%;
  max-width: 1280px;
  padding: 0 12px;
  margin: 0 auto;
}

.color-primary {
  color: #d81414;
}

/* Navigation Bar */
.nav {
  box-shadow: 0px 4px 5px -5px rgba(0, 0, 0, 0.2);
  height: 88px;
}

.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
}

.nav__logo {
  width: 80px;
}

.nav__links {
  display: flex;
  gap: 24px;
}

.nav__link {
  font-size: 18px;
  text-transform: uppercase;
}

.nav__link:hover {
  text-decoration: underline;
}

.nav__menu {
  background-color: transparent;
  border: none;
  font-size: 24px;
  display: none;
}

/* Menu */
.menu {
  position: fixed;
  background-color: #f8f8f8;
  z-index: 99;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 200ms ease;
}

.open .menu {
  visibility: visible;
  opacity: 1;
}

.menu__close {
  position: absolute;
  top: 44px;
  right: 32px;
  border: none;
  background-color: transparent;
  font-size: 20px;
}

.menu__links {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 32px;
  align-items: center;
}

.menu__link {
  font-size: 24px;
}

/* Header */
.header__row {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.header__grid__container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.header__grid {
  width: calc(50% - 8px);
  height: 280px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.header__grid__title {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-size: 32px;
  color: #fff;
  font-weight: 600;
  z-index: 2;
}

.header__grid__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(80%);
  transition: 200ms ease;
}

.header__grid:hover .header__grid__image {
  filter: brightness(55%);
}

/* Products */
.products__row {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.products__title {
  font-size: 26px;
  font-weight: 600;
}

.products__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.product {
  width: calc(25% - 12px);
  border: 2px solid rgba(0, 0, 0, 0.2);
  transition: 200ms ease;
  cursor: pointer;
}

.product:hover {
  border-color: rgba(0, 0, 0, 0.6);
}

.product__image {
  width: 100%;
}

.product__details {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product__details__title {
  font-weight: 400;
  font-size: 18px;
}

.product__details__price {
  font-size: 22px;
  font-weight: 600;
}

/* Banner */
.banner {
  display: flex;
  background-color: #e9e9e9;
  height: 400px;
}

.banner__text,
.banner__image {
  width: 50%;
}

.banner__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 0 120px;
}

.banner__text__title {
  font-size: 32px;
}

.banner__text__paragraph {
  font-size: 18px;
}

.banner__text__btn {
  background-color: #000;
  border: 2px solid transparent;
  color: #fff;
  padding: 12px 0;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  transition: 200ms ease-in-out;
}

.banner__text__btn:hover {
  background-color: transparent;
  border: 2px solid #000;
  color: #000;
}

.banner__image {
  height: 100%;
  object-fit: cover;
}

/* Banner 2 */
.banner-2 {
  flex-direction: row-reverse;
}

/* Newsletter */
.newsletter__section {
  background-color: #191919;
  color: #fff;
}

.newsletter__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.newsletter__title {
  font-size: 36px;
}

.newsletter__form {
  display: flex;
  gap: 8px;
}

.newsletter__form__input {
  width: 240px;
  height: 100%;
  padding: 8px;
  outline: none;
  border: none;
  font-size: 18px;
}

.newsletter__form__submit {
  border: none;
  padding: 8px;
  font-size: 18px;
  outline: none;
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
}

.footer__container {
  padding: 40px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.footer__link {
  color: #fff;
  font-size: 18px;
}

/* Large Screens - Laptops */
@media (max-width: 1024px) {
  /* Products */
  .product__details__title {
    font-size: 16px;
  }

  /* Banner */
  .banner__text {
    padding: 0 80px;
  }
}

/* Medium Screens - Tablets */
@media (max-width: 768px) {
  /* Products */
  .product {
    width: calc(33.3333% - (32 / 3));
  }

  /* Banner */
  .banner__image {
    display: none;
  }

  .banner__text {
    width: 100%;
  }
}

/* Small screens */
@media (max-width: 640px) {
  /* Navigation */
  .nav__menu {
    display: block;
  }

  .nav__links {
    display: none;
  }

  /* Header */
  .header__title {
    text-align: center;
  }

  .header__grid__title {
    font-size: 24px;
    left: 12px;
  }

  /* Products */
  .product {
    width: 48%;
  }
}

/* Mobile Devices */
@media (max-width: 480px) {
  /* Header */
  .header__grid__title {
    left: 4px;
    bottom: 4px;
  }

  /* Products */
  .product {
    width: 100%;
  }

  /* Newsletter */
  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__form__input {
    text-align: center;
  }
}
