/**
 * The following styles get applied both on the front of your site
 * and in the editor. Why are my styles not updating?
 */
/* Base Styles */
.wp-block-create-block-jr-product-category {
  color: #fff;
  padding: 2px;
}

/* Subcategory Styles */
.jr-subcategory {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid black;
  border-radius: 5px;
}

.jr-sub-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ccc;
}

.jr-category-info {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-top: 0px;
}

.jr-category-description {
  padding: 20px;
  border: 1px solid black;
  border-radius: 10px;
  background-color: lemonchiffon;
}

.jr-category-description p {
  margin: 0px;
  font-size: calc(16px + 0.5vw);
}

.jr-category-image img {
  max-width: 100%;
  height: auto;
}

.jr-link {
  font-size: calc(16px + 0.5vw);
  color: blue;
  text-decoration: none;
  font-family: var(--wp--preset--font-family--gilroy-bold);
  padding: 10px;
}

.jr-link:visited {
  text-decoration: none;
  color: blue;
}

/*
.jr-subcategory h2 {
    font-size: var(--subCategoryFontSize, 16px);
    padding: var(--subCategoryPadding, 10px);
}
*/
.jr-subcategory h2 {
  font-size: clamp(14px, 5vw, var(--subCategoryFontSize, 40px)) !important;
  padding: var(--subCategoryPadding, 10px);
}

.jr-subcategory-placeholder {
  height: 50px;
  background-color: #f5f5f5;
  border: 1px dashed #ccc;
}

.jr-products-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), 1fr); /* 3 is a fallback value */
  gap: var(--gap, 10px); /* 10px is a fallback value */
  row-gap: var(--row-gap, 20px); /* 10px is a fallback value */
}

/* Product Styles */
/* Product Styles */
.jr-product {
  display: flex; /* Changed from block to flex */
  flex-direction: column;
  align-items: center; /* Center items horizontally */
  justify-content: center; /* Center items vertically */
  text-align: center;
}

/* Additional CSS for centering */
.jr-product a,
.jr-product-price,
.jr-product-description {
  margin: auto; /* Horizontally center block-level elements */
}

.jr-product-placeholder {
  visibility: hidden;
  border: none;
  padding: 0;
  box-shadow: none;
}

.jr-product a {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product Price Styles */
.jr-product-price {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0; /* Use padding instead of margin */
  margin: auto !important; /* Reset margin */
  font-size: calc(16px + 0.5vw);
  font-family: var(--wp--preset--font-family--gilroy-bold);
  color: var(--wp--preset--color--custom-logo-button);
}

.jr-product-price span {
  margin: auto !important; /* Horizontally center and override any other styles */
}

.jr-product-description {
  height: 75px;
}

.jr-product-description a {
  text-decoration: none;
  font-size: 20px;
  font-family: var(--wp--preset--font-family--gilroy-bold);
  color: black;
}

/* Product Image Styles */
.jr-product-image-container {
  width: 100%;
  padding-top: 100%;
  position: relative;
}

.jr-product-image-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.jr-product img {
  max-height: 300px;
  max-width: 100%;
  height: 300px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 10px;
}

.block-editor .jr-product img {
  max-height: 320px;
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

/* Add to Cart Button Styles */
.add-to-cart-button {
  display: inline-block;
  padding: 10px 15px;
  background-color: #110072;
  color: #fff;
  text-align: center;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
  height: 40px;
  line-height: 40px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-button:hover {
  background-color: #185571;
}

/* For Tablet */
@media (max-width: 768px) {
  .jr-products-grid {
    --columns: 2;
  }
  /* Styles for tablet width go here */
}
/* For Mobile */
@media (max-width: 480px) {
  .jr-products-grid {
    --columns: 1!important;
  }
  .jr-product-extra {
    display: none;
  }
  /* Add any other styles or adjustments for mobile width here */
}
/* Center the pagination wrapper */
.jr-pagination-wrapper {
  text-align: center;
  width: -moz-fit-content;
  width: fit-content;
  margin-top: 60px;
  margin-left: auto;
  margin-right: auto;
}

/* Make the pagination inline-block for centering */
.jr-pagination {
  display: inline-block;
  font-size: x-large;
}

/* Remove link decorations */
.jr-pagination a {
  text-decoration: none;
}

/* Existing pagination styling */
.pagination, .jr-pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
}

.page-item.active .page-link, .jr-pagination .active {
  background-color: #2a3b8e;
  border-color: #2a3b8e;
  color: #fff;
}

.page-item:first-child .page-link, .jr-pagination a:first-child {
  margin-left: 0;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.page-link, .jr-pagination a {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  line-height: 1.25;
  border: 1px solid #dee2e6;
  margin-right: -1px; /* Overlap borders */
}

.jr-product-image-container:active {
  text-decoration: none !important;
}/*# sourceMappingURL=style.css.map */