/* ==========================================================================
   BMR Cinematic — WooCommerce overrides
   Enqueued only on shop / category / single product / cart / checkout /
   account pages (see functions.php). CSS ONLY: no WooCommerce template is
   overridden by this theme, so WooCommerce 10.8 template compatibility
   stays with core and Reign. This file restyles core output to the
   cinematic palette: charcoal surfaces, orange CTAs, cream content bands.
   Palette: #571C10 / #571C10 charcoal, #FF8A00 orange, #FFB000 amber,
   #FFF7EC cream.
   Staging note: Reign ships its own WooCommerce CSS. Verify on staging
   that these rules win where intended; raise specificity here rather than
   copying core templates into the child theme.
   ========================================================================== */

/* ---------- Shop archive / category pages ---------- */
.woocommerce .bmr-shop-wrap,
.woocommerce.archive .site-content,
.woocommerce .woocommerce-products-header {
  background: #FFF7EC;
}
.woocommerce .woocommerce-products-header__title {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  letter-spacing: -.01em;
  color: #3a0d16;
}
.woocommerce .woocommerce-result-count { color: #71545E; font-weight: 600; }
.woocommerce .woocommerce-ordering select {
  border: 2px solid #efe0c3; border-radius: 999px; padding: 10px 14px;
  font-weight: 700; background: #fff; color: #221016;
}
.woocommerce ul.products li.product {
  background: #fff; border: 1px solid #f0e3cb; border-radius: 26px;
  overflow: hidden; box-shadow: 0 10px 28px rgba(6,20,12,.12);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: "Archivo", sans-serif; font-weight: 800; color: #221016;
}
.woocommerce ul.products li.product .price {
  font-family: "Archivo", sans-serif; font-weight: 900; color: #e85d00;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: #3a0d16; color: #fff; border-radius: 999px; font-weight: 800;
  border: 2px solid transparent;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #e85d00; color: #fff; }
.woocommerce span.onsale {
  background: #e63e12; border-radius: 999px; min-height: 0; line-height: 1.4;
  padding: 5px 11px; font-size: 11.5px; font-weight: 800;
}
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px; padding: 10px 15px; font-weight: 800; background: #fff;
  border: 2px solid #efe0c3; color: #221016;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: #571C10; color: #fff; border-color: #571C10; }

/* WCFM "Sold by" line (audit: label "Store", below Add to Cart) */
.wcfm_store_info, .wcfmmp_sold_by_container { color: #71545E; font-weight: 600; }
.wcfmmp_sold_by_container a { color: #e85d00; font-weight: 800; }

/* ---------- Single product ---------- */
.single-product .product .summary .product_title {
  font-family: "Archivo", sans-serif; font-weight: 900; letter-spacing: -.01em;
}
.single-product .product .summary .price {
  font-family: "Archivo", sans-serif; font-weight: 900; color: #e85d00;
}
.single-product .product .single_add_to_cart_button {
  background: linear-gradient(135deg, #FF8A00, #e85d00) !important;
  border-radius: 999px !important; font-weight: 800; padding: 14px 26px !important;
  box-shadow: 0 10px 24px rgba(255,138,0,.35);
}
.single-product .woocommerce-tabs ul.tabs li { border-radius: 14px 14px 0 0; }
.single-product .woocommerce-tabs ul.tabs li.active { background: #571C10; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: #FFB000; }
/* Star widgets below, if WooCommerce renders them, reflect REAL review
   data only; this theme never injects rating markup of its own. */
.woocommerce .star-rating span::before { color: #FFB000; }
.woocommerce p.stars a { color: #FFB000; }

/* ---------- Cart / checkout ---------- */
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce { color: #221016; }
.woocommerce table.shop_table { border-radius: 18px; overflow: hidden; border-color: #efe0c3; }
.woocommerce table.shop_table th { background: #571C10; color: #fff; font-family: "Archivo", sans-serif; }
.woocommerce .cart_totals h2, .woocommerce-checkout h3 {
  font-family: "Archivo", sans-serif; font-weight: 900;
}
.woocommerce #payment { background: #FFF7EC; border-radius: 18px; }
.woocommerce #place_order, .woocommerce .checkout-button {
  background: linear-gradient(135deg, #FF8A00, #e85d00) !important;
  border-radius: 999px !important; font-weight: 800;
  box-shadow: 0 10px 24px rgba(255,138,0,.35);
}
.woocommerce-message, .woocommerce-info {
  border-top-color: #FF8A00; background: #FFF7EC;
}
.woocommerce-message::before, .woocommerce-info::before { color: #e85d00; }
.woocommerce-error { border-top-color: #e63e12; }

/* ---------- Storefronts (WCFM store pages, public side) ---------- */
/* WCFM renders vendor storefronts with its own templates; this block only
   retints the common WCFM wrappers when they appear inside shop contexts. */
.wcfmmp-store-page .wcfmmp_store_header { background: #571C10; }
.wcfmmp-store-page .wcfmmp_store_title { font-family: "Archivo", sans-serif; font-weight: 900; }

/* Price color override (v0.2.1): the Reign parent's WooCommerce loop price
   color (dark navy) outranks the grid rules above on specificity/order.
   Tomato red is the selling color in the approved palette, so prices win
   decisively here. Scoped to product prices only, not cart/checkout totals. */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce .widget_products li .amount,
.woocommerce .widget_top_rated_products li .amount { color: #D63A1F !important; }

/* v0.2.3 card fixes (same as the homepage grid): always-visible Add to Cart
   in the shop loop, sold-by line wraps inside the card, no empty star row. */
.woocommerce ul.products li.product{min-width:0}
.woocommerce ul.products li.product .button{position:static !important;opacity:1 !important;visibility:visible !important;transform:none !important}
.woocommerce ul.products li.product .wcfmmp_sold_by_container{display:block;width:100%;font-size:12.5px;color:#71545E;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.woocommerce ul.products li.product .wcfmmp_sold_by_container a{color:#D63A1F;font-weight:700}
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .wcfmmp_sold_by_container [class*="rating"]{display:none !important}
