/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Oswald', serif;
  font-size: 16px;
  font-weight: 400;
  background-color: #ffffff;
  color: #000000;
  overflow-x: hidden;
  overflow-y: auto;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: unset;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.container {
  max-width: 1170px;
  width: min(100% - calc(30rem / 16));
  margin: 0 auto;
}

/* Header */
.header {
  background-image: url('../assets/images/home-main-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: calc(100dvh - 30px);
  margin: 15px;
  padding: 15px;
}

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

.header-logo {
  width: 152px;
}

.header-logo > img {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-cart {
  position: relative;
  padding-right: 18px;
}

.headert-cart-quantity {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  color: #fff;
  width: 25px;
  height: 25px;
  line-height: 25px;
  border-radius: 50%;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;
  font-family: 'Roboto', serif;
  font-size: 14px;
  line-height: 14px;
}

.header-cart > img {
  width: 20px;
}

.header-navbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-navlink {
  padding: 10px 5px;
  border-bottom: 3px solid transparent;
  display: inline-block;
  font-size: 18px;
}

.header-navlink:hover {
  border-color: #000;
}

.header-navlink.active {
  border-color: #000;
}

.header-hamburger-btn {
  display: none;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.header-hamburger-btn > img {
  width: 20px;
}

/* About-Section */
.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-right {
  max-width: 650px;
  padding: 50px;
}

.about-title {
  font-family: 'Special Elite', serif;
  max-width: 60%;
  border-bottom: 2px solid #000;
  font-size: 30px;
  margin-bottom: 10px;
  font-weight: 400;
  line-height: 1.1;
}

.about-text {
  font-family: 'Roboto', serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
}

.about-btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  background: #000;
  color: #fff;
  padding: 15px 40px;
  border-radius: 0;
  border: 2px solid #000;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  margin-top: 10px;
}

.about-btn:hover {
  border-color: #000;
  color: #000;
  background: transparent;
}

.about-left {
  width: calc(60% + ((100vw - 1170px) / 2) - 15px);
  margin-left: calc(((100vw - 1170px) / -2) + 24px);
}

.about-left img {
  width: 100%;
}

/* Video-Section */
.video-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.video-title {
  max-width: 360px;
  margin: 0 auto;
  font-family: 'Special Elite', serif;
  border-bottom: 2px solid #000;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.video-box {
  width: 50%;
}

.video-box video {
  width: 100%;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* HIW-Section */
.hiw {
  background: #fffcf3;
  padding: 50px 0;
  text-align: center;
  border: 15px solid #fff;
  border-bottom: none;
}

.hiw-title {
  margin: 20px auto 50px;
  max-width: 300px;
  border-bottom: 2px solid #000;
  font-family: 'Special Elite', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.hiw-cards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.hiw-card {
  width: 200px;
}

.hiw-card > img {
  width: 200px;
  margin: 0 auto;
}

.hiw-card-title {
  font-family: 'Special Elite', cursive;
  font-size: 18px;
  font-weight: 400;
  margin: 10px 0;
  text-align: center;
}

.hiw-card-text {
  font-family: 'Roboto', sans-serif;
  color: #000;
  font-weight: 300;
  font-size: 14px;
  text-align: center;
  line-height: 2;
}

.hiw-btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  background: #000;
  color: #fff;
  padding: 15px 40px;
  border-radius: 0;
  border: 2px solid #000;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  margin-top: 32px;
}

.hiw-btn:hover {
  border-color: #000;
  color: #000;
  background: transparent;
}

/* Ingredients-Section */
.ingredients {
  padding: 15px 0;
}

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

.ingredients-left {
  max-width: 360px;
}

.ingredients-title {
  font-family: 'Special Elite', serif;
  border-bottom: 2px solid #000;
  font-size: 30px;
  margin-bottom: 10px;
  font-weight: 400;
  line-height: 1.1;
}

.ingredients-text {
  font-family: 'Roboto', serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
}

.ingredients-btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  background: #000;
  color: #fff;
  padding: 15px 40px;
  border-radius: 0;
  border: 2px solid #000;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  margin-top: 10px;
}

.ingredients-btn:hover {
  border-color: #000;
  color: #000;
  background: transparent;
}

.ingredients-right {
  width: calc(60% + ((100vw - 1170px) / 2) - 15px);
  margin-right: calc(((100vw - 1170px) / -2) + 24px);
}

.ingredients-right img {
  width: 100%;
}

/* Good-Section */
.good {
  background: #fff1de;
  padding: 50px 0;
  text-align: center;
  border: 15px solid #fff;
  border-bottom: none;
}

.good-title {
  margin: 20px auto 50px;
  max-width: 300px;
  border-bottom: 2px solid #000;
  font-family: 'Special Elite', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.good-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.good-item {
  max-width: 200px;
  margin: 0 auto 30px;
}

.good-item > img {
  width: 14px;
  margin: 0 auto;
}

.good-item-title {
  font-family: 'Special Elite', cursive;
  font-size: 18px;
  font-weight: 400;
  margin: 10px 0;
  text-align: center;
}

/* Why-Section */
.why {
  background: #fffcf3;
  padding: 100px 0;
  position: relative;
  border: 15px solid #fff;
  border-bottom: none;
}

.why-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.why-left {
  width: 41.5%;
}

.why-title {
  margin: 20px auto 50px;
  max-width: 300px;
  border-bottom: 2px solid #000;
  font-family: 'Special Elite', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.why-text {
  font-family: 'Roboto', serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 28px;
  font-style: italic;
}

.why-author {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 400;
}

.why-right {
  width: calc(60% + ((100vw - 1170px) / 2) - 15px);
  margin-right: calc(((100vw - 1170px) / -2) + 24px);
}

.why-right img {
  width: 100%;
}

/* Footer */
.footer {
  padding: 15px;
}

.footer-newsletter {
  border: 1px solid #dce5dd;
  text-align: center;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.footer-newsletter-title {
  font-family: 'Special Elite', cursive;
  margin: 20px 0 15px;
  font-size: 24px;
  text-align: right;
}

.footer-form {
  display: flex;
}

.footer-field {
  width: 250px;
}

.footer-field > input {
  width: 100%;
  max-width: 250px;
  border: 1px solid #dce5dd;
  border-right: none;
  padding: 12px 15px;
  font-family: 'Roboto', serif;
  font-size: 14px;
  font-weight: 300;
  color: #000;
}

.footer-field > input:focus,
.footer-field > input:focus-visible {
  outline: none;
}

.footer-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background-color: #000000;
  border: 0;
  color: white;
  cursor: pointer;
  font-size: 28px;
  line-height: 10px;
}

.footer-content {
  padding: 30px 0;
  display: flex;
  gap: 30px;
}

.footer-item {
  width: 380px;
}

.footer-item > img {
  width: 150px;
  margin-bottom: 20px;
}

.footer-item-text {
  font-family: 'Roboto', serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.3;
  color: #000;
  max-width: 250px;
}

.footer-item-title {
  font-family: 'Special Elite', cursive;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
}

.footer-navbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-navlink {
  font-family: 'Roboto', serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
  color: #000;
}

.footer-navlink:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-family: 'Roboto', serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
  color: #000;
}

.footer-link > span {
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.footer-bottom-link {
  font-family: 'Roboto', serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
  color: #000;
}

.footer-bottom-link:hover {
  text-decoration: underline;
}

/* Search-Button */
.search-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 45.4%;
  width: 100px;
  height: 100px;
  border-style: solid;
  border-width: 1.5px;
  border-color: #702963;
  background-color: #c5afc9;
  position: fixed;
  overflow: hidden;
  z-index: 2147483647;
  cursor: pointer;
  border-radius: 50% !important;
  transition: all 0.3s ease;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1), 0px 2px 8px rgba(0, 0, 0, 0.15),
    0px 4px 8px rgba(0, 0, 0, 0.05);
  opacity: 1;
}

.search-btn > img {
  width: 24px;
}

/* Screen Menu */
.screen-menu {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #fff;
  color: #000;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen-menu-navlink {
  width: fit-content;
  font-family: 'Oswald', sans-serif;
  padding: 10px 5px;
  border-bottom: 3px solid transparent;
  display: inline-block;
  color: #000;
  font-size: 18px;
}

.screen-menu-navlink:hover {
  border-color: #000;
}

.screen-menu-navlink.active {
  border-color: #000;
}

.screen-menu-close {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  top: 30px;
  right: 30px;
}

.screen-menu-close > img {
  width: 20px;
}

/* Page-Search */
.page-search {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  background-color: rgba(249, 249, 249, 0.95);
  color: #000;
}

.page-search-field {
  height: 74px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-search-field > input {
  max-width: 767px;
  width: 98%;
  margin: 0 auto;
  height: 42px;
  padding: 10px;
  border: 0;
  background-color: #fff;
  color: #333;
  font-family: 'Roboto', serif;
  font-size: 18px;
  line-height: 1.3;
}

.page-search-field > input:focus,
.page-search-field > input:focus-visible {
  outline: none;
}

.hidden {
  display: none;
}

/* Media Queries */
@media (max-width: 1400px) {
  .header-navbar {
    display: none;
  }

  .header-hamburger-btn {
    display: flex;
  }
}

@media (max-width: 1170px) {
  .about-right {
    max-width: 50%;
  }

  .about-left {
    width: 50%;
    margin-left: 0;
  }

  .ingredients-right {
    width: 60%;
    margin-right: 0;
  }

  .why-right {
    width: 50%;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .header {
    background-image: url('../assets/images/home-main-mobile-bg.jpg');
  }

  .about-content {
    flex-direction: column;
  }

  .about-left {
    width: 100%;
    order: 2;
  }

  .about-right {
    max-width: 100%;
    padding: 25px 0;
  }

  .video {
    padding-top: 15px;
  }

  .video-box {
    width: 100%;
  }

  .video-box video {
    height: 100%;
  }

  .video-content {
    flex-direction: column;
  }

  .video-title {
    order: 2;
  }

  .hiw-cards {
    flex-wrap: wrap;
  }

  .hiw-card {
    width: auto;
    flex: 1 1 33%;
  }

  .ingredients-content {
    flex-direction: column;
  }

  .ingredients-left {
    max-width: 100%;
    padding: 25px 0;
  }

  .ingredients-right {
    width: 100%;
  }

  .good-content {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
  }

  .why {
    padding: 50px 0;
  }

  .why-content {
    flex-direction: column;
  }

  .why-title {
    margin: 20px auto;
  }

  .why-left {
    width: 100%;
  }

  .why-text {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .why-right {
    width: 100%;
  }

  .footer-newsletter {
    flex-direction: column;
    gap: 0;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-bottom {
    justify-content: center;
  }
}
