
.woocommerce ul.products,
ul.products {
 display: grid !important;
 grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
 gap: 10px !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
 display: none !important;
 content: none !important;
}
.woocommerce ul.products li.product,
ul.products li.product {
 width: auto !important;
 max-width: none !important;
 float: none !important;
 margin: 0 !important;
}
.woocommerce ul.products li.product img {
 width: 100% !important;
 height: auto !important;
}
@media (max-width: 600px) {
 .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.75em !important;
  line-height: 1.25 !important;
 }
 .woocommerce ul.products li.product .price {
  font-size: 0.8em !important;
 }
 .woocommerce ul.products li.product .button {
  font-size: 0.7em !important;
  padding: 0.4em 0.5em !important;
  white-space: normal !important;
 }
}

/* Hide only the "Built with WooCommerce" footer credit link (and the line break before it, so the copyright line ends with its period); the copyright line itself is untouched. */
.site-info a[href="https://woocommerce.com"] {
 display: none !important;
}
.site-info br {
 display: none !important;
}

/* Center WooCommerce numbered pagination on shop and category archives. */
.woocommerce nav.woocommerce-pagination,
nav.woocommerce-pagination {
 text-align: center !important;
 float: none !important;
 clear: both !important;
 width: 100% !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers,
nav.woocommerce-pagination ul.page-numbers {
 display: inline-flex !important;
 flex-wrap: wrap !important;
 justify-content: center !important;
 float: none !important;
 margin-left: auto !important;
 margin-right: auto !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li,
nav.woocommerce-pagination ul.page-numbers li {
 float: none !important;
}

/* Footer Featured Products: 8 across in one row at desktop widths; 4 across below desktop. Shop/category grids stay 4 across (rule above). */
@media (min-width: 1024px) {
 .site-footer ul.products,
 .footer-widgets ul.products {
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
 }
}
@media (max-width: 1023px) {
 .site-footer ul.products,
 .footer-widgets ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
 }
}

/* Featured Products back to 4 across at desktop (reversal, 9 Nov 2026): this later rule overrides the repeat(8) rule above. */
@media (min-width: 1024px) {
 .site-footer ul.products,
 .footer-widgets ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
 }
}


/* Mobile drawer menu (KastKing-style, 9 Nov 2026): WP Responsive Menu provides the slide-in drawer on phones (below 768px). Hide Storefront's native navigation and its Menu toggle at phone widths so exactly one menu system exists on mobile. Desktop (768px and up) is untouched. */
@media (max-width: 767px) {
  #site-navigation,
  .main-navigation,
  button.menu-toggle {
    display: none !important;
  }
}
/* Grid/List toggle (Nov 2026): in LIST view show one product per row. The plugin puts class berocket_lgv_list on the products list in list mode; this later rule restores a single column so each product gets a full row. The 4-across grid rule above still governs grid view. */
.woocommerce ul.products.berocket_lgv_list_grid.berocket_lgv_list,
ul.products.berocket_lgv_list_grid.berocket_lgv_list,
.woocommerce ul.products.berocket_lgv_list,
ul.products.berocket_lgv_list {
  grid-template-columns: minmax(0, 1fr) !important;
}
/* Grid/List toggle — list view (coverage): also cover the case where the plugin's list class sits on a wrapper around the products list, and force each list product to span the full row. */
.berocket_lgv_list_grid.berocket_lgv_list ul.products,
.berocket_lgv_list ul.products,
ul.products:has(> li.berocket_lgv_list) {
  grid-template-columns: minmax(0, 1fr) !important;
}
.woocommerce ul.products > li.berocket_lgv_list,
ul.products > li.berocket_lgv_list {
  grid-column: 1 / -1 !important;
}

/* Grid/List toggle — list view thumbnail: keep the image a compact thumbnail floated at the left of each row, with the name/description/price to its right. */
.woocommerce ul.products > li.berocket_lgv_list > a:has(img),
ul.products > li.berocket_lgv_list > a:has(img) {
  float: left !important;
  display: block !important;
  width: 180px !important;
  max-width: 180px !important;
  margin: 0 20px 10px 0 !important;
}
.woocommerce ul.products > li.berocket_lgv_list > a:has(img) img,
ul.products > li.berocket_lgv_list > a:has(img) img,
.woocommerce ul.products > li.berocket_lgv_list img,
ul.products > li.berocket_lgv_list img {
  width: 100% !important;
  max-width: 180px !important;
  height: auto !important;
  display: block !important;
}