/* Remove default padding/margins on WooCommerce product <li> items */
ul.products li.product {
  padding: 6px !important;
  margin: 6px !important;
  background: none !important;
  box-shadow: none !important;
  margin-bottom: 40px !important;
}

/* Optional: Make all product cards the same height */
.custom-product-card {
  height: 100%;
  box-sizing: border-box;
}

/* Pulsegear Custom Product Cards */
.custom-product-card {
  display: block;
  text-decoration: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.custom-product-card .product-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  width: 100%;
}

.custom-product-card .product-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0px;
}

.custom-product-card .product-new-sticker {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: #23252a;
  color: white;
  padding: 4px 8px;
  margin: 8px 4px;
  border-radius: 4px;
  font-size: 0.7rem !important;
  font-weight: bold !important;
}

.custom-product-card .product-description-wrapper {
  background-color: #ddd;
  overflow: hidden;
  padding: 8px 12px;
}

.custom-product-card .product-description {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(1.2em * 2);
}

/* Remove underlines from title, price, and condition */
.custom-product-card .product-description a,
.custom-product-card .product-price,
.custom-product-card .product-condition {
  text-decoration: none !important;
}

.custom-product-card .product-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background-color: #fff;
  /*font-size: 0.95rem !important;*/
}

.custom-product-card .woocommerce-LoopProduct-link {
  display: block;
  height: 100%;
}

/* Responsive Columns - Explicitly 5 columns */
.pulsegear-product-cards.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Explicitly create 5 columns */
    grid-gap: 20px; /* Adjust the gap between items */
    list-style: none;
    padding: 0;
}

.pulsegear-product-cards.products li.product {
    width: 100%; /* Each product takes full width of its grid cell */
    margin: 0; /* Reset default margins */
    max-width: 254px; /* Limit the maximum width of each product card */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
