/* ==============================
   NAVBAR
   ============================== */
.nav-wrapper {
  position: fixed;
  top: 0;
  width: 100vw;
  display: flex;
  background: #fff;
  height: var(--nav-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem 0 3rem;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  list-style: none;
  display: flex;
  width: 30vw;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.nav-icons {
  display: flex;
  gap: 2vw;
}

.mobile-nav-button {
  display: none;
}

.mobile-nav {
  position: fixed;
  right: 0;
  top: var(--nav-height);
  width: 55%;
  background-color: #fff;
  display: none;
  flex-direction: column;
  border-bottom-left-radius: 10px;
  z-index: 10;
}

.mobile-nav li,
.mobile-nav-icons {
  border-top: 1px solid grey;
}

.mobile-nav li a {
  display: block;
  padding: 0.5rem 30%;
  text-align: center;
}

.mobile-nav-icons {
  display: flex;
  padding: 0;
  justify-content: space-around;
}
.mobile-nav-links {
  list-style: none;
}

@media (max-width: 850px) {
  .nav-wrapper {
    padding: 0 1.5rem 0 1rem;
  }
  .nav-links,
  .nav-icons {
    display: none;
  }

  .mobile-nav-button {
    display: block;
    background-color: #fff;
    border: none;
    cursor: pointer;
  }

  .fa-bars {
    font-size: 2rem;
  }

  :root {
    --nav-height: 4.5rem;
  }
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  font-family: 'Montserrat';
  font-size: 2.2rem;
  font-weight: bold;
}

.logo p {
  padding-left: 5px;
  margin-top: 4px;
}

/* ==============================
   HERO SECTION
   ============================== */
.hero-section-home {
  height: calc(100vh - var(--nav-height));
  min-height: max-content;
  background-image: url('../images/hero-bg.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem;
  margin-top: var(--nav-height);
}

.hero-card-home {
  background-color: #fff3e3;
  border-radius: 10px;
  padding: 4rem 2rem 2rem 2rem;
  max-width: 50%;
  min-width: 40rem;
}

.hero-body-home {
  margin: 1rem 0 2rem 0;
}

.hero-button-home {
  display: inline-block;
  margin-top: 2rem;
  padding: 1.5rem 4rem;
  font-family: 'Poppins';
  font-size: 1rem;
  font-weight: bold;
  background-color: #b88e2f;
  border: none;
  color: white;
  text-decoration: none;
}

/* center card on mobile */
@media (max-width: 900px) {
  .hero-section-home {
    justify-content: center;
  }

  .hero-card-home {
    min-width: unset;
    max-width: unset;
  }
}

/* reduce card size */
@media (max-width: 600px) {
  .hero-card-home {
    padding-top: 2rem;
  }

  .hero-title-home {
    font-size: 2.5rem;
    line-height: 3rem;
  }
}

/* reduce card size */
@media (max-width: 400px) {
  .hero-title-home {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  .hero-card-home {
    padding: 1rem;
  }

  .hero-button-home {
    padding: 1rem 3rem;
  }

  .hero-body-home {
    margin-bottom: 0;
  }
}

/* ==============================
   BROWSE SECTION
   ============================== */
.browse-section-home {
  padding: 0 1rem;
}

.browse-section-home-title-container {
  text-align: center;
  margin: 3rem 0 3rem 0;
}

.browse-section-home-card-container {
  display: flex;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.browse-card-home {
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
}

.browse-card-home img {
  border-radius: 10px;
  max-width: 100%;
}

.browse-card-home .card-title {
  color: #333;
}

/* ==============================
   PRODUCT SECTION
   ============================== */
.product-section-home .section-title-home {
  text-align: center;
  margin: 3rem 0 2rem 0;
}

.product-section-home-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, 285px);
  gap: 2rem;
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 1300px;
  justify-content: center;

  max-height: 60rem;
  overflow: hidden;
  content-visibility: auto;
}

/* badge */
.product-card-home-badge {
  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  right: 20px;
  top: 20px;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.badge-red {
  background-color: #e97171;
}

.badge-green {
  background-color: #2ec1ac;
}

/* card */
.product-card-home {
  position: relative;
  width: 285px;
}

.product-card-home img {
  display: block;
}
.product-card-home-body {
  background-color: #f4f5f7;
  padding: 1rem 0 2rem 1rem;
}
.product-card-subheading {
  margin: 0.5rem 0;
}
.product-card-price {
  margin-right: 0.9rem;
}
.product-card-price,
.product-old-price {
  display: inline;
}

/* card overlay */
.product-card-home-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.1s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.product-card-home:hover .product-card-home-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

.product-card-home:hover .product-card-home-overlay-text-wrapper {
  opacity: 1;
}

.product-card-home:hover .product-card-home-overlay-button {
  opacity: 1;
}

.product-card-home-overlay-text-wrapper,
.product-card-home-overlay-button {
  opacity: 0;
  transition: opacity 0.1s;
}

/* overlay styling */
.product-card-home-overlay-button {
  padding: 0.8rem 4rem;
  border: none;
  background-color: white;
  margin-bottom: 1rem;
}
.product-card-home-overlay-button:hover {
  cursor: pointer;
}

.product-card-home-overlay-text-wrapper {
  display: flex;
  gap: 1rem;
}

.product-card-home-overlay-text-wrapper i {
  margin-right: 0.4rem;
}

.product-section-home-show-more-button {
  background-color: white;
  border: 1px solid var(--color-primary);
  padding: 0.75rem 4rem;
  display: block;
  margin: 2rem auto;
  cursor: pointer;
}

/* ==============================
   ROOM INSPO SECTION
   ============================== */

.inspo-section-home {
  background-color: #fcf8f3;

  display: flex;
  align-items: center;
  padding: 2rem 0rem;
  justify-content: end;
}

.inspo-text-container {
  width: 400px;
  margin: auto;
  padding: 0 1rem;
}

.inspo-gallery {
  height: 525px;
  width: 55vw;
}

.inspo-button {
  margin-right: 5rem;
}

.inspo-button {
  padding: 0.75rem 2.5rem;
  border: none;
  background-color: var(--color-primary);
  color: white;
  margin-top: 1rem;
  cursor: pointer;
}

@media (max-width: 750px) {
  .inspo-section-home {
    flex-direction: column;
    text-align: center;
  }

  .inspo-button {
    margin: 1rem auto 0;
  }

  .inspo-gallery {
    transform: scale(0.8);
    width: 100%;
    margin: 0 1rem;
  }

  .inspo-text-container {
    width: unset;
  }

  .inspo-text-container h2 {
    font-size: 1.6rem;
  }
}

/* swiper gallery */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.swiper-pagination-bullet {
  margin: 0 8px !important; /* needs to be swiper-pagination-bullet-active width - 8px / 2 */
}

.swiper-pagination-bullet-active {
  background-color: #fff;
  border: 1px solid #b08d57;
  width: 24px;
  height: 24px;
  margin: 0 !important;
}

.swiper-pagination-bullet-active::after {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  position: relative;
  top: 7px;
  left: 7px;
  margin: 0 !important;
}

.swiper-button-next,
.swiper-button-prev {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  content: '>';
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.swiper-button-prev {
  left: 1rem !important;
}

.swiper-button-next {
  right: 1rem !important;
}

.swiper-button-disabled {
  display: none;
}
.swiper-button-next svg,
.swiper-button-prev svg {
  color: var(--color-primary);
  height: 50%;
}

.swiper-slide {
  width: auto;
}

.swiper-slide img {
  height: 100%;
  width: auto;
}

.swiper-slide:last-of-type {
  display: flex;
  align-items: center;
}

.inspo-slide-text-container {
  position: fixed;
  width: 50%;
  height: 20%;
  background-color: white;
  bottom: 2.5rem;
  left: 2.5rem;
  background: rgba(255, 255, 255, 0.72);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.inspo-slide-button {
  width: 3rem;
  height: 3rem;
  position: fixed;
  background-color: var(--color-primary);
  bottom: 2.5rem;
  left: calc(50% + 2.5rem);

  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;

  text-decoration: none;
}

/* ==============================
   MASONRY SECTION
   ============================== */

.masonry-header-container {
  text-align: center;
  margin-top: 3rem;
}

.masonry-container {
  position: relative;
  width: 100%;
  height: 50rem;
  overflow: hidden;
}

.masonry-grid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 112rem;
  height: 45.5rem;
  margin: 0 auto;
}

.masonry-grid img {
  display: block;
  position: absolute;
}

.m-1 {
  left: 0rem;
}

.m-2 {
  left: 18rem;
  top: 4.4rem;
}

.m-3 {
  left: 47rem;
  top: 10rem;
}

.m-4 {
  left: 66.3rem;
  top: 5.5rem;
}

.m-5 {
  left: 85.3rem;
  top: 0.2rem;
}

.m-6 {
  left: 0rem;
  top: 25rem;
}

.m-7 {
  left: 24.7rem;
  top: 25rem;
}

.m-8 {
  left: 66.3rem;
  top: 28.2rem;
}

.m-9 {
  left: 78.3rem;
  top: 28.2rem;
}

/* shrink and center grid */
@media (max-width: 750px) {
  .masonry-grid {
    transform: scale(0.8) translateX(-63%);
    margin-top: -4rem;
  }
}

/* shrink and center grid */
@media (max-width: 450px) {
  .masonry-grid {
    transform: scale(0.6) translateX(-84%);
    margin-top: -8rem;
  }
}

/* ==============================
   FOOTER
   ============================== */
footer {
  border-top: 2px solid #d9d9d9;
  white-space: nowrap;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1rem;
  border-bottom: 1px solid #d9d9d9;
  gap: 1rem;
}

.footer-col-1,
.footer-links,
.footer-help,
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-logo,
.footer-header {
  margin-bottom: 1rem;
}

.footer-email-form button[type='submit'] {
  border: none;
  border-bottom: 1px solid black;
  background: #fff;
  cursor: pointer;
  margin-left: 0.5rem;
}

.footer-email-form input {
  border: none;
  border-bottom: 1px solid black;
  font-size: 0.875rem;
  color: black;
  padding-right: 1.5rem;
  padding-bottom: 1px;
}

.footer-email-form input:focus {
  outline: none;
}
.footer-email-form input::placeholder {
  color: #9f9f9f;
}

.footer-legal {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 0 3rem 0;
}

.footer-legal p {
  margin-left: 0.5rem;
  text-wrap: wrap;
}

/* vertical footer for mobile */
@media (max-width: 770px) {
  .footer-container {
    flex-direction: column;
    margin: 0;
    padding-top: 1rem;
  }

  .footer-col-1,
  .footer-links,
  .footer-help,
  .footer-newsletter {
    gap: 1rem;
  }

  .footer-col-1 {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-logo,
  .footer-header {
    margin-bottom: 0;
  }

  .footer-email-form button[type='submit'] {
    display: block;
    margin: 1rem 0;
  }
}
