/* ==========================================================================
   1. Container Overrides for Custom Shop and Archive Pages
   ========================================================================== */

.page-template-page-custom-shop .site-content .ast-container,
.archive .site-content .ast-container {
  max-width: 100vw;
  width: 100vw;
  margin: 0;
  padding: 0;
  display: block;
}

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

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

.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;
}

/* ==========================================================================
   3. Section Headers
   ========================================================================== */

.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;
}

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

.stock-section-header ul {
  list-style: none;
  padding: 0;
  text-align: center;
  margin: 0;
}

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

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

/* ==========================================================================
   4. 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) {
  .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;
  }
}

/* ==========================================================================
   5. 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;
}

.custom-product-card .product-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.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 {
  font-size: 1.2rem;
  margin-top: 0.2rem;
  margin-bottom: 0;
}

/* ==========================================================================
   6. Category Button Row
   ========================================================================== */

.shop_cats_outer_container {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 3rem;
  height: 9rem;
}

.shop_cats_container {
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.shop_cats_container::-webkit-scrollbar {
  display: none;
}

.shop_cats {
  display: inline-block;
  margin: 0 !important;
}

.shop_cat_button {
  display: inline-block;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 100px;
  height: 28.5px;
  padding: 2px 15px 6px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 1rem;
}

.shop_cat_button a {
  color: #888;
  text-decoration: none !important;
}

/* ==========================================================================
   7. Scroll Arrows for Category Row
   ========================================================================== */

.cat-arrow {
  cursor: pointer;
  position: relative;
  width: 1.5rem;
}

#left-arrow {
  top: 33px;
  left: -27px;
}

#right-arrow {
  top: -27px;
  left: calc(100% + 12px);
}

/* Mobile Padding Adjustment */
@media (max-width: 768px) {
  .shop_cats_outer_container {
    padding: 0 4rem;
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

/* ==========================================================================
   8. Breadcrumbs
   ========================================================================== */

.breadcrumbs_container {
  text-align: center;
}

.woocommerce-breadcrumb a:first-of-type::before {
  display: none;
}
