/* ========================================
   PRODUCT IMAGE BACKGROUNDS
   Keeps unused product-image space white
   ======================================== */
div.grid-product__bg,
div.grid-product__bg[style],
.ec-store div.grid-product__bg[style] {
  background-color: #ffffff !important;
}

.grid-product__image-wrap,
.grid-product__image {
  background-color: #ffffff !important;
}

/* ========================================
   SUBCATEGORY BUTTONS
   Applies only when viewing a category page
   such as Clint's Art or Diana's Art
   ======================================== */
/* Hide the large Ecwid category image area */
.ec-store__category-page .grid-category__image {
  display: none !important;
}

/* Remove Ecwid's reserved image/aspect-ratio space */
.ec-store__category-page .grid-category__spacer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Collapse leftover containers without hiding them */
.ec-store__category-page .grid-category__card,
.ec-store__category-page .grid-category__wrap,
.ec-store__category-page .grid-category__wrap-inner {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Turn the category title into the visible button */
.ec-store__category-page .grid-category__title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  height: 62px !important;
  min-height: 62px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  background: #f7f7f7 !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 3px !important;
  text-align: center !important;
  text-decoration: none !important;
}

/* Category button text */
.ec-store__category-page .grid-category__title-inner {
  color: #333333 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}

/* Category button hover */
.ec-store__category-page .grid-category__title:hover {
  background: #eeeeee !important;
}

/* Hide Ecwid's duplicate search field on search-results page */
.ec-store__search-page .grid__search.ec-search {
  display: none !important;
}
