/* Keep WooCommerce's templates, payment fields and extension hooks in place. */
.sta-shop #page,
.sta-shop #content,
.sta-shop .ast-woocommerce-container,
.sta-shop .ast-article-single {
  background: var(--sta-bg);
  color: var(--sta-text);
}
.sta-shop #content {
  border-top: 1px solid var(--sta-line);
}
.sta-shop #content a:not(.button, .wp-element-button, .wc-block-components-button) {
  color: #ff8689;
}
.sta-shop #content :is(.price, .amount, .woocommerce-breadcrumb, .woocommerce-result-count, label) {
  color: var(--sta-text);
}
.sta-shop #content :is(.product-category, ul.products li.product, .cart_totals, .woocommerce-MyAccount-navigation, .wc-block-components-sidebar, #payment) {
  background: var(--sta-panel);
  border: 1px solid var(--sta-line);
  border-radius: 10px;
  padding: 16px;
}
.sta-shop #content ul.products li.product :is(h2, .woocommerce-loop-product__title) {
  color: var(--sta-text);
}
.sta-shop #content :is(.button, .wp-element-button, .wc-block-components-button):not(:disabled) {
  background: var(--sta-red);
  color: #fff;
  border-color: var(--sta-red);
  border-radius: 4px;
}
.sta-shop #content :is(.woocommerce-ordering select, .woocommerce form input.input-text, .woocommerce form select, .woocommerce form textarea, .quantity input, .wc-block-components-text-input input) {
  background: #181a1e;
  color: var(--sta-text);
  border: 1px solid #666976;
}
.sta-shop #content :is(table, th, td, .woocommerce-tabs, .variations) {
  border-color: var(--sta-line);
}
.sta-shop .woocommerce div.product .woocommerce-tabs ul.tabs li,
.sta-shop .woocommerce div.product .woocommerce-tabs ul.tabs li.active,
.sta-shop .woocommerce #payment div.payment_box,
.sta-shop .select2-dropdown,
.sta-shop .select2-container--default .select2-selection--single,
.sta-shop .select2-container--default .select2-selection--single .select2-selection__rendered {
  background: var(--sta-panel);
  color: var(--sta-text);
}
.sta-shop #content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
  background: #22252b;
  color: var(--sta-text);
}
.sta-shop #content :is(.button, .wp-element-button, .wc-block-components-button):not(:disabled):hover {
  background: #b91820;
}
.sta-shop #content :is(.woocommerce-products-header, .entry-header) h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.sta-shop:has(.sta-shop-shared-header) :is(#masthead, .elementor-location-header, [data-elementor-type="header"], #hfe-header),
.sta-shop:has(.sta-shop-shared-footer) :is(#colophon, .elementor-location-footer, [data-elementor-type="footer"], #hfe-footer) {
  display: none;
}
.sta-shop .sta-shop-shared-header .sta-nav,
.sta-shop .sta-shop-shared-footer .sta-footer {
  background: var(--sta-bg);
}
@media (max-width: 600px) {
  .sta-shop #content :is(.product-category, ul.products li.product, .wc-block-components-sidebar) {
    padding: 10px;
  }
}

/* Keep category names legible on both light and dark logo images. */
.sta-shop #content ul.products li.product-category .woocommerce-loop-category__title {
  background: #17191d !important;
  color: #fff !important;
  opacity: 1;
  border: 1px solid #373940;
  border-radius: 5px;
  padding: .65em .75em;
  font-weight: 700;
  line-height: 1.3;
}
.sta-shop #content ul.products li.product-category .woocommerce-loop-category__title .count {
  background: transparent;
  color: #d3d5db !important;
  opacity: 1;
  font-weight: 500;
}
