/* Catalogue fixes that apply on every page with the ShopBuilder product filter
   (shop, categories, tags, brand pages, search). */

/* Never offer "Uncategorized" (product_cat term 15, the WooCommerce default
   category) in the Categories filter. The JS in brand-filter-*.js only runs on
   shop / category / tag pages, so brand and search pages still showed it. */
.rtsb-term-item.term-item-15,
.rtsb-term-item:has(> input[value="uncategorized"]),
.rtsb-term-item:has(input.rtsb-term-uncategorized),
li:has(> a[href$="/product-category/uncategorized/"]) {
  display: none !important;
}

/* Product page: Add to Cart sat 10px lower than the quantity box on first load.
   Additional CSS sets "form.cart .single_add_to_cart_button { margin: 10px 0 !important }";
   the product template's own value (0 0 0 3px) lives in a stylesheet that
   loads at the bottom of the page, so the button only snapped into line
   seconds later. Apply the template's value from the head instead. */
.single-product .rtsb-product-add-to-cart form.cart .single_add_to_cart_button {
  margin: 0 0 0 3px !important;
}
@media (max-width: 767px) {
  .single-product .rtsb-product-add-to-cart form.cart .single_add_to_cart_button { margin: 0 !important; }
}

/* Product cards: hover buttons as one consistent pair (brand kit).
   Add to Cart / Select Options = tan accent, Buy It Now = charcoal; same full
   width, height, type and square corners. Slightly slimmer so they cover less
   of the product photo. */
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-action-button-list { gap: 4px !important; flex-direction: column; }
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-action-button-item { width: 100% !important; margin: 0 !important; }
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-wc-add-to-cart-wrap > .rtsb-action-btn,
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-quick-checkout-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-family: Stratos, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  transition: background-color .15s ease !important;
}
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-wc-add-to-cart-wrap > .rtsb-action-btn { background: #ad8a63 !important; }
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-wc-add-to-cart-wrap > .rtsb-action-btn:hover { background: #8f6f4c !important; }
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-quick-checkout-btn { background: #111111 !important; }
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-quick-checkout-btn:hover { background: #393e41 !important; }
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-wc-add-to-cart-wrap > .rtsb-action-btn *,
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-quick-checkout-btn * { color: #fff !important; fill: #fff !important; }
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-wc-add-to-cart-wrap > .rtsb-action-btn .icon,
.rtsb-product .rtsb-action-buttons.bottom-part .rtsb-quick-checkout-btn .icon { font-size: 15px !important; line-height: 1 !important; margin: 0 !important; }

/* Product page buy box: match the Quick View (tan, white text, no icon,
   charcoal hover; bordered quantity box). Previously tan with dark text before
   an option was chosen, then navy once enabled. */
html body.single-product .elementor-widget-rtsb-product-add-to-cart .rtsb-product-add-to-cart form.cart .single_add_to_cart_button.button {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ad8a63 !important;
  color: #fff !important;
  font-family: Stratos, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
html body.single-product .elementor-widget-rtsb-product-add-to-cart .rtsb-product-add-to-cart form.cart .single_add_to_cart_button.button:hover:not(.disabled) { background: #111111 !important; color: #fff !important; }
html body.single-product .elementor-widget-rtsb-product-add-to-cart .rtsb-product-add-to-cart form.cart .single_add_to_cart_button.button.disabled { opacity: 0.55 !important; }
html body.single-product .elementor-widget-rtsb-product-add-to-cart .rtsb-product-add-to-cart form.cart .single_add_to_cart_button.button > i { display: none !important; }
html body.single-product .elementor-widget-rtsb-product-add-to-cart .rtsb-product-add-to-cart form.cart .single_add_to_cart_button.button * { color: #fff !important; }

html body.single-product .elementor-widget-rtsb-product-add-to-cart .rtsb-product-add-to-cart form.cart .quantity {
  height: 50px !important;
  border: 1px solid #dcdcdc !important;
  border-radius: 0 !important;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: stretch;
  background: #fff !important;
}
html body.single-product .elementor-widget-rtsb-product-add-to-cart .rtsb-product-add-to-cart form.cart .quantity .rtsb-quantity-btn {
  height: 100% !important;
  width: 40px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #393e41 !important;
}
html body.single-product .elementor-widget-rtsb-product-add-to-cart .rtsb-product-add-to-cart form.cart .quantity .rtsb-quantity-btn:hover { color: #ad8a63 !important; }
html body.single-product .elementor-widget-rtsb-product-add-to-cart .rtsb-product-add-to-cart form.cart .quantity input.qty {
  height: 100% !important;
  width: 44px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-family: stratos-lights, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #393e41 !important;
}

/* "Price coming soon" label for unpriced shop products (see functions-perf.php) */
.ot-price-tba { font-family: stratos-lights, sans-serif; font-size: 0.9em; font-weight: 400; color: #8a8a8a; letter-spacing: 0.02em; }

/* Product tabs: titles at weight 500 (were 600). */
.single-product .woocommerce-tabs ul.tabs.wc-tabs li a,
.single-product .wc-tabs li a { font-weight: 500 !important; }

/* Product tab content: 138 products have <button> elements pasted in from
   supplier websites (Patagonia accordions, tab switchers, etc.) in the Features
   tab. The theme styles every <button> as a tan button. Show them as plain
   brand subheadings instead. Buttons inside forms (e.g. the review form) are
   left alone. */
.single-product .woocommerce-Tabs-panel button:not(form button) {
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 18px 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #115378 !important;
  font-family: Stratos, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  cursor: default !important;
  pointer-events: none;
}
.single-product .woocommerce-Tabs-panel button:not(form button)::before,
.single-product .woocommerce-Tabs-panel button:not(form button)::after { display: none !important; }
.single-product .woocommerce-Tabs-panel p:has(> button:only-child) { margin: 0 !important; }
