/* products.css — split from the storefront stylesheet, same rules and order */
/* product tabs */
.product-tabs .nav-tabs {
  justify-content: flex-end;
  border: none;

  --bs-nav-link-hover-color: #111;
  --bs-nav-link-color: #555;
  --bs-nav-tabs-link-border-color: #fff;
  --bs-nav-tabs-link-hover-border-color: transparent;
  --bs-nav-tabs-link-active-border-color: #fff;
}

.product-tabs .nav-tabs .nav-link.active,
.product-tabs .nav-tabs .nav-item.show .nav-link {
  /* border: none; */
  border-bottom: 3px solid var(--bs-primary);
}

/* products-carousel */
.products-carousel .swiper,
.products-carousel .swiper-container {
  overflow: hidden;
}

/* product-grid */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  opacity: 1;
}

.product-item .button-area .quantity {
  padding: 0.5rem;
}

.product-item .button-area {
  display: none;
  position: absolute;
  text-align: center;
  background: #fff;
  width: 100%;
  left: 0;
  bottom: -55px;
  z-index: 1;
  box-shadow: 0px 20px 44px rgba(0, 0, 0, 0.08);
  /* transition: box-shadow 0.3s ease-out; */
}

.product-item {
  position: relative;
  padding: 16px;
  background: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0px 0px 22px rgba(0, 0, 0, 0);
  /* transition: box-shadow 0.3s ease-out, margin 0.3s ease-out; */
}

.product-item:hover .button-area {
  display: block;
}

.product-item:hover {
  /* z-index: 1; */
  /* margin-bottom: -50px; */
  /* max-height: 500px; */
  box-shadow: 0px 0px 44px rgba(0, 0, 0, 0.08);
}

.product-item figure {
  text-align: center;
}

.product-item figure img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.product-item .product-qty {
  width: 85px;
}

.product-item .btn-link {
  text-decoration: none;
}

.product-item #quantity {
  height: auto;
  width: 28px;
  text-align: center;
  border: none;
  margin: 0;
  padding: 0;
}

.product-item .btn-number {
  width: 26px;
  height: 26px;
  line-height: 1;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  color: #222;
  padding: 0;
}

/* cart */
.cart .product-qty {
  min-width: 130px;
}

/* floating image */
.image-float {
  margin-top: -140px;
  margin-bottom: -140px;
}

@media screen and (max-width:991px) {
  .image-float {
    margin: 0;
  }
}

/* Recent blog: image card, date stays on the photo, title and button on hover */
#latest-blog .nm-blog-card {
  height: 100%;
}

#latest-blog .nm-blog-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

#latest-blog .nm-blog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#latest-blog .nm-blog-date {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #6BB252;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}

#latest-blog .nm-blog-focus {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(17, 17, 17, .08) 0%, rgba(17, 17, 17, .78) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}

#latest-blog .nm-blog-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

#latest-blog .nm-blog-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #6BB252;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
}

#latest-blog .nm-blog-media:hover .nm-blog-focus,
#latest-blog .nm-blog-media:focus-visible .nm-blog-focus {
  opacity: 1;
}

@media (hover: none) {
  #latest-blog .nm-blog-focus {
    opacity: 1;
  }
}

@media (max-width: 767.98px) {
  #latest-blog .nm-blog-media {
    aspect-ratio: 16 / 10;
  }

  #latest-blog .nm-blog-title {
    font-size: .95rem;
  }
}

@media screen and (max-width: 991px) {

  /* offcanvas menu */
  .offcanvas-body .nav-item {
    font-weight: 700;
    border-bottom: 1px solid #d1d1d1;
  }

  .offcanvas-body .filter-categories {
    width: 100%;
    margin-bottom: 20px !important;
    border: 1px solid #d1d1d1 !important;
    padding: 14px;
    border-radius: 8px;
  }

  /* dropdown-menu */
  .dropdown-menu {
    padding: 0;
    border: none;
    line-height: 1.4;
    font-size: 0.9em;
  }

  .dropdown-menu a {
    padding-left: 0;
  }

  .dropdown-toggle::after {
    position: absolute;
    right: 0;
    top: 21px;
  }
}

