/* 
 * clone-overrides.css
 * Final WooCommerce resets to ensure our source-theme.css takes priority.
 */

/* Hide duplicate WooCommerce archive elements (we built our own in archive-product.php) */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  display: none !important;
}

/* Force our custom buttons over WooCommerce defaults */
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
  background-color: var(--db-accent) !important;
  color: #fff !important;
  border-radius: 2px !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  padding: 14px 24px !important;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #e0390b !important;
}

/* Fix product gallery image sizing to match Diamondback exactly */
.db-product-slide img {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: contain;
}

/* Mobile specific tweaks for the custom header/footer */
@media (max-width: 900px) {
  .db-collection-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .db-collection-sort select {
    width: 100%;
  }
}

/* Checkout / Cart overrides */
.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  padding: 12px;
  border: 1px solid var(--db-line);
  background: transparent;
  color: #fff;
}

.woocommerce-cart table.cart td.actions .button {
  background: var(--db-bg-card);
  color: #fff;
}
