/* AuraTide catalog background */
body.woocommerce-shop,
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
  background: #050505 !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
}

body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(.wp-site-blocks, main, .wp-block-post-content,
header.wp-block-template-part, footer.wp-block-template-part) {
  background: #050505 !important;
  color: #fff !important;
}

/* Replace the old header/footer background colors */
body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(header.wp-block-template-part, footer.wp-block-template-part)
.wp-block-group {
  background: #050505 !important;
}

/* Catalog headings and navigation */
body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(h1, h2, h3, .wp-block-site-title,
.wp-block-site-title a, .wp-block-navigation-item__content) {
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag) h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.15;
}

body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(main p, .woocommerce-breadcrumb,
.wc-block-breadcrumbs, .woocommerce-result-count) {
  color: #d5d9e2 !important;
}

body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(main a, footer a) {
  color: #7ca6ff;
}

/* Search and sorting fields */
body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(input[type="search"], select) {
  background: #101014 !important;
  color: #fff !important;
  border: 1px solid #16336a !important;
  border-radius: 8px;
  padding: 12px;
}

/* Product grids: WooCommerce blocks and classic catalog */
body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(.wc-block-product-template, ul.products) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
ul.products::before,
body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
ul.products::after {
  display: none;
}

body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(.wc-block-product, ul.products li.product) {
  background: #101014 !important;
  border: 1px solid #16336a;
  border-radius: 14px;
  padding: 18px;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}

body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(.price, .wc-block-components-product-price) {
  color: #fff !important;
}

/* Purchase buttons */
body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag)
:is(a.button, button.button, .wp-block-button__link,
.wc-block-components-product-button__button) {
  background: #2563eb !important;
  color: #fff !important;
  border-radius: 8px !important;
  border: 1px solid #2563eb !important;
  min-height: 46px;
}

body:is(.woocommerce-shop, .post-type-archive-product,
.tax-product_cat, .tax-product_tag) a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  body:is(.woocommerce-shop, .post-type-archive-product,
  .tax-product_cat, .tax-product_tag)
  :is(.wc-block-product-template, ul.products) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}