.woocommerce .woocommerce-pagination:first-of-type {
  display: none !important;
}

/* 1. Standardize product image height */
ul.products li.product a.woocommerce-LoopProduct-link img {
  height: 320px; /* matches Emergence Zone */
  object-fit: contain;
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* 2. Make product titles bold and increase font size */
ul.products li.product h2.woocommerce-loop-product__title {
  font-weight: bold;
  font-size: 1.2em; /* Increase by 2 font sizes */
  text-align: center;
  margin: 0.5em 0;
}

/* 3. Align product cards and push Add to Cart to bottom */
ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 550px; /* Ensures uniform height */
  text-align: center;
}

/* 4. Grow product info to fill space, so button stays down */
ul.products li.product .woocommerce-loop-product__link {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 5. Ensure Add to cart button stays aligned at bottom center */
ul.products li.product .button {
  align-self: center;
  margin-top: auto;
}

/* 1. Collector number styling */
ul.products li.product .collector-number {
  font-size: 0.9em;
  font-style: italic;
  color: #7d3ec2;
  display: block;
  margin-bottom: 6px;
  text-align: center;
}

/* 2. Set name (product category) styling and positioning */
ul.products li.product .woocommerce-loop-category__title,
ul.products li.product .woocommerce-loop-product__category {
  font-size: 0.9em;
  color: #7d3ec2;
  display: block;
  margin-top: 0 !important;
  margin-bottom: 12px;
  text-align: center;
}


/* 1. Price: Bold and increased */
ul.products li.product .price {
  font-weight: bold;
  font-size: 1.05em;
  margin-bottom: 8px;
}

/* Reduce the bottom padding/space inside the clickable product area */
ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  padding-bottom: 0 !important;
  margin-bottom: -25px; /* This pulls the bottom edge up by ~1cm */
}

.main-navigation ul.menu > li > a {
  font-size: 0.95em; /* Slightly smaller menu links */
  padding: 0 12px;    /* Reduce spacing between items */
}

.main-navigation a {
    font-weight: bold;
}
.scryandbuy-stock {
    font-size: 0.85em;
    margin-top: 2px;
    margin-bottom: 0;
    color: inherit; /* Inherit color from surrounding text */
}

.home a[href*="/shop/"] {
    display: block;
    min-height: 2.8em;
    line-height: 1.4em;
}

.woocommerce.archive .widget-area {
    position: relative;
    right: 280px; /* move sidebar 20px to the left */
	  top: -30px;
}

@media (min-width: 769px) {
  .woocommerce.archive ul.products {
    position: relative;
    left: 75px;
  }
}

@media (max-width: 768px) {
  select[aria-label="List of categories with their product counts"] {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 14px;
    border: 1px solid #858585;
    border-radius: 0.5em;
    box-sizing: border-box;
    width: auto;
    max-width: 260px;
    margin: 0 0 1em 0;
    background-color: #fff;
  }
}

/* Hide scryandbuy availability line ONLY on the buylist page */
.page-id-18545 p.scryandbuy-stock {
  display: none !important;
}


/* Adjust WooCommerce product elements so we can control their layout */
.page-id-18545 ul.products li.product .woocommerce-loop-product__title,
.page-id-18545 ul.products li.product .scryandbuy-stock,
.page-id-18545 ul.products li.product .posted_in,
.page-id-18545 ul.products li.product .product_meta {
  display: block;
}

/* Set consistent layout structure for buylist page */
.page-id-18545 ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  text-align: center;
}

/* Ensure card image doesn't disrupt alignment */
.page-id-18545 ul.products li.product img {
  max-height: 300px;
  object-fit: contain;
}

/* Uniform height for card name */
.page-id-18545 .woocommerce-loop-product__title {
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Uniform height for collector number */
.page-id-18545 .scryandbuy-collector-number {
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Uniform height for set name */
.page-id-18545 .scryandbuy-set-name {
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Uniform height for max quantity */
.page-id-18545 .scryandbuy-stock {
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide sorting dropdown only on the buylist page */
.page-id-18545 .woocommerce-ordering {
  display: none !important;
}

/* Bold the Cash Offer and Store Credit text and values */
.page-id-18545 .buylist-cash,
.page-id-18545 .buylist-credit {
  font-weight: bold;
}

.page-id-18775 .entry-title {
  display: none;
}

body.home .glsr-summary-percentages {
  display: none !important;
}
