html {
  scroll-padding-top: 12rem;
}

.offer-section {
  padding-top: 10rem;
}

.offer-section .title-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h2 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
  font-size: 6rem;
  margin: 5rem 0 0;
  text-align: center;
  line-height: 6rem;
}

h4 {
  font-size: 2.6rem;
  font-weight: 400;
}

.our-suggestions-section {
  padding: 0;
  margin: 4rem 0 0;
  background: white;
}

.suggestion-card {
  background: #f5f5f5;
  box-shadow: 0 0.4rem 2rem rgba(2, 47, 64, 0.3);
}

.suggestion-button {
  background: #022f40;
  color: white;
}

.products-details-section,
.why-us-section {
  background: #f8f3e3;
  margin: 10rem 0;
  display: flex;
  justify-content: center;
  padding: 5rem 0;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}

.product-item-image {
  background: #022f40;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-item h3 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
  font-size: 3rem;
  color: #022f40;
  margin: 2rem 0;
}

.product-item p {
  text-align: center;
  color: #4d4d4d;
  font-size: 1.8rem;
  min-height: 5.5rem;
  margin: 0;
}

.looking-for-something-else {
  background: #2b3b1c;
  text-align: center;
  color: white;
  padding: 4rem 0 6rem;
  margin-top: 10rem;
}

.looking-for-something-else h5 {
  font-size: 2rem;
  font-weight: 300;
}

.contact-info a {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;
  margin-top: -1rem;
}

.contact-info img {
  width: 2.6rem;
}

.reviews-section {
  margin: 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 100rem;
  border-radius: 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f4f8f3;
  max-height: calc(100vh - 5rem);

  overflow: scroll;
}

.modal-gallery {
  flex: 1.2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 3rem;
}

.modal-main-img {
  width: 80%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(50, 80, 63, 0.14);
  margin-bottom: 1rem;
  object-fit: cover;
  aspect-ratio: 4/2;
}

.modal-thumbs {
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-height: 50rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 1rem;
}

.modal-thumbs::-webkit-scrollbar {
  width: 0.8rem;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  background-color: rgba(2, 47, 64, 0.6);
  border-radius: 3px;
}

.modal-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.modal-thumbs img {
  width: 100%;
  min-height: 6rem;
  border-radius: 0.6rem;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
}

.modal-thumbs img.active {
  border: 2px solid #022f40;
}

.modal-info {
  flex: 1.7;
  padding: 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 2.6rem;
}

.modal-close {
  position: absolute;
  background: #022f40;
  color: white;
  right: 3rem;
  top: 3rem;
  border: 0;
  font-size: 3rem;
  line-height: 1;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(60, 70, 80, 0.12);
  cursor: pointer;
  width: 3rem;
  height: 3rem;
}

.modal-price-links-row {
  display: flex;
  justify-content: space-between;
}

.modal-price-row {
  display: flex;
  flex-direction: column;
}

.modal-old-price {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
  color: #022f40;
  text-decoration: line-through;
  font-size: 3rem;
}

.modal-price {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
  color: #022f40;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.modal-lowest-price {
  color: #022f40;
  font-size: 1.8rem;
  font-weight: 300;
}

img path {
  fill: red;
}

.modal-details {
  display: flex;
  gap: 6rem;
  margin: 2rem 0 1.2rem;
}

.product-description {
  color: #022f40;
  font-size: 1.8rem;
  font-weight: 400;
}

.main-button {
  padding: 2rem 3rem;
}

.modal-details h4 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
  color: #022f40;
  font-size: 3rem;
  margin: 0;
  padding-bottom: 3rem;
}

.dimentions-details {
  display: flex;
  background-color: #f8f3e3;
  border-radius: 1rem;
  padding: 1.6rem 3rem 1.4rem;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
  gap: 4rem;
  justify-content: center;
}

.dimentions-details > div:not(:last-child) {
  border-right: 1px solid #022f40;
  padding-right: 4rem;
  margin-right: 0;
}

.dimention-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
  font-size: 2.6rem;
  color: #022f40;
  margin: 0;
}

.dimention-value {
  text-align: center;
  font-size: 1.8rem;
  margin: 0;
  font-weight: 300;
}

.modal-materials ul {
  padding-left: 2rem;
  margin: 0;
  font-size: 1.6rem;
}

.modal-actions {
  margin-top: 1.3rem;
  display: flex;
  gap: 1.4rem;
}

.modal-buy-button {
  background: #022f40;
  color: #fff;
  padding: 0 4rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 400;
  font-size: 2rem;
  display: flex;
  gap: 0.6rem;
  height: 5rem;
  align-items: center;
}

.modal-buy-button img {
  width: 6rem;
}

.modal-buy-button .allegro-icon {
  width: 8.5rem;
  margin-top: 0.3rem;
}

.products-details {
  padding: 3rem 0;
  margin-top: 5rem;
  box-shadow: 0 0.4rem 2rem rgba(2, 47, 64, 0.3);
  border-radius: 1rem;
}

.products-details h1 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
  color: #022f40;
  font-size: 5rem;
  text-align: center;
}

.why-us-section,
.products-details {
  background-color: #f5f5f5;
}

.why-us-section {
  margin: 0;
}

.products-details .modal-actions {
  justify-content: center;
}

.products-details .modal-buy-button {
  padding: 0.5rem 2rem;
}

.reviews-button-beige {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
}

@media (max-width: 1000px) {
  h2 {
    margin: 3rem 0 0;
    font-size: 6rem;
  }
  h3 {
    text-align: center;
  }

  .products-details-section,
  .why-us-section {
    padding: 5rem 0;
  }
  .our-suggestions-section {
    margin: 1rem 0;
  }

  .products-details-section,
  .why-us-section {
    flex-direction: column;
    padding: 6rem 2rem;
    margin: 3rem 0;
    gap: 4rem;
  }

  .modal-content {
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-price {
    font-size: 4rem;
  }

  .modal-old-price {
    font-size: 3rem;
  }

  .modal-price-links-row {
    flex-direction: column;
  }

  .suggestion-card {
    padding-bottom: 3rem;
  }

  .modal-details {
    flex-direction: column;
  }

  .modal-price-links-row .modal-actions {
    flex-direction: column;
    gap: 0;
    padding: 0 3rem;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0;
    padding: 0 3rem 8rem;
  }

  .modal-buy-button {
    padding: 0;
  }

  .dimentions-details {
    gap: 1.3rem;
  }

  .dimentions-details > div:not(:last-child) {
    padding-right: 2.3rem;
  }

  .modal-materials h4 {
    padding-bottom: 2rem;
  }

  .products-details {
    margin-top: 2rem;
  }

  .products-details .modal-buy-button,
  .main-button {
    min-width: 15rem;
    justify-content: center;
  }

  .product-description {
    text-align: justify;
  }

  .modal-thumbs {
    max-height: 35rem;
  }
}
