/* Makerique Boutique. Copyright (c) 2026 Heliopsy. All Rights Reserved.
 * SPDX-License-Identifier: LicenseRef-Proprietary
 */
/* Opt-in row palettes; inherited sections retain all existing skin rules. */
.mr-section[data-scheme] {
  background: var(--mr-bg);
  color: var(--mr-text);
  --bs-primary: var(--mr-primary);
  --bs-link-color: var(--mr-link);
  --bs-link-hover-color: var(--mr-link-hover);
}
.mr-section[data-scheme] .btn-primary,
.mr-section[data-scheme] .btn-primary:is(:hover, :focus, :active),
.mr-section[data-scheme] .btn-outline-primary:is(:hover, :focus, :active) {
  color: var(--mr-section-button-text);
  background: var(--mr-section-button-bg);
  border-color: var(--mr-section-button-bg);
}
.mr-section[data-scheme] .btn-outline-primary {
  color: var(--mr-text);
  border-color: var(--mr-text);
}

/* Product cards inside a scheme section (#40). The card action buttons and
   quick-view use --mr-primary / --mr-surface / a hard-coded #fff, which go
   low-contrast (white-on-light) under a dark or custom palette. Re-map them to
   the section's own button tokens so the add-to-cart, wishlist, compare and
   quick-view controls stay readable. */
.mr-section[data-scheme] .product-thumb .content .button button {
  background: var(--mr-bg);
  color: var(--mr-text);
  border-color: var(--mr-text);
}
.mr-section[data-scheme] .product-thumb .content .button button:first-child,
.mr-section[data-scheme] .product-thumb .content .button button:hover,
.mr-section[data-scheme] .product-thumb .content .button button.mr-buynow--card,
.mr-section[data-scheme] .mr-quickview-btn {
  background: var(--mr-section-button-bg);
  border-color: var(--mr-section-button-bg);
  color: var(--mr-section-button-text);
}
/* Promo labels (Sale / New / stock) use tokens the palette flips to the section
   text colour, so their own text turned invisible on the flipped background. */
.mr-section[data-scheme] .mr-label {
  color: var(--mr-section-button-text);
  background: var(--mr-section-button-bg);
}
