/* ==========================================================================
   Shop Heading
   ========================================================================== */

.shop-header {
  margin: 4rem 0 3rem 0;
}
.stock-section.out-of-stock .stock-section-header {
  padding-top: 4rem;
  margin-bottom: 4rem;
}
.stock-section-header .stock-heading {
  font-size: 4rem;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.shop-header ul {
  list-style: none;
  padding: 0;
  text-align: center;
  margin: 0 0 2rem;
}

.shop-header ul li {
  display: inline-block;
  margin-right: 2.4rem;
}

.shop-header ul li:last-child {
  margin-right: 0;
}

/* ==========================================================================
   Section Layouts: In-Stock & Recently Sold
   ========================================================================== */

.stock-section {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background-color: #fff;
  z-index: 1;
}

.stock-section.in-stock {
  margin-bottom: 4rem;
}

.stock-section.out-of-stock {
  background-color: #e6eee6;
  padding-bottom: 4rem;
  margin-bottom: 0 !important;
}

.stock-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ==========================================================================
   Product Grid Layout
   ========================================================================== */

.custom-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 5rem;
  justify-content: center;
}

/* Medium Screens */
@media screen and (max-width: 921px) and (min-width: 769px) {
  .custom-product-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 2rem;
  }
}

/* Mobile Screens */
@media screen and (max-width: 768px) {
  .shop-header ul li {
    margin-right: 0 !important;
  }

  .custom-product-grid {
    grid-template-columns: repeat(1, minmax(240px, 1fr));
    place-items: center;
    gap: 5rem;
  }

  .custom-product-card {
    width: 100%;
    max-width: 350px;
  }

  .custom-product-card .product-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}
@media screen and (max-width: 400px) {
  .custom-product-card .product-image img {
    max-width: 80vw;
  }
}

/* ==========================================================================
   Product Card Styling
   ========================================================================== */

.custom-product-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.custom-product-card .product-image {
  margin-bottom: 0.9rem;
  position: relative;
  display: block;
}

.custom-product-card .product-image img {
  width: 100%;
  max-width: 350px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .custom-product-card .product-image img {
    width: 350px;
    height: 350px;
  }
}

.custom-product-card .product-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1.3;
  height: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-block;
  margin-bottom: -0.5rem;
}

.product-subtitle {
  margin-bottom: 0;
}

.product-price {
  margin-bottom: 0;
}

.sold-date {
    position: absolute;
    top: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #444;
    padding: 0.5rem 1.25rem;
    font-size: 1.5rem;
    white-space: nowrap;
    z-index: 2;
    text-align: center;
    margin: 0;
    width: 30rem;
}

/* ==========================================================================
   Fade products in and out for filter buttons
   ========================================================================== */



@media (prefers-reduced-motion: reduce) {
  .custom-product-grid > * {
    transition: none !important;
  }
}

.custom-product-grid > * {
  opacity: 1;
  transform: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.custom-product-grid > *.is-visible {
  opacity: 1;
  transform: none;
}

.custom-product-grid > *.is-hiding {
  opacity: 0;
  transform: scale(0.97);
}

.custom-product-grid > *.is-filtered-out {
  display: none !important;
}

.shop-cats-row .shop-cat-btn.is-active {
  outline: 2px solid currentColor;
}