/*
 * Template 4 adapter to the shared six-color WebsiteSettings.global_colors engine.
 * Every rule is strictly opt-in under html.brand-palette-active and backed by --brand-* tokens.
 * Excludes semantic warning/error, stock, removal, payment gateway and social-provider colors.
 */
html.brand-palette-active {
  --primary-color: var(--brand-primary);
  --secondary-color: var(--brand-text);
  --background-color: var(--brand-background);
  --main-bg-color: var(--brand-surface);
  --border-color: var(--brand-border);
  accent-color: var(--brand-primary);
}
html.brand-palette-active body {
  background-color: var(--brand-background) !important;
  background: var(--brand-background) !important;
  color: var(--brand-text) !important;
}

/* Header, navigation, mega/child menus, search box and user submenu. */
html.brand-palette-active .header,
html.brand-palette-active #siteNavBar,
html.brand-palette-active .nav-menu,
html.brand-palette-active .submenu,
html.brand-palette-active .child-submenu,
html.brand-palette-active .header .user-submenu,
html.brand-palette-active #searchSuggestionsMobile {
  background: var(--brand-surface);
  color: var(--brand-text);
  border-color: var(--brand-border);
}
html.brand-palette-active .logo h1,
html.brand-palette-active .logo h1 a,
html.brand-palette-active .nav-menu a:hover,
html.brand-palette-active .nav-menu a:focus,
html.brand-palette-active .nav-menu ul li > a:hover,
html.brand-palette-active .nav-link-with-dropdown:hover,
html.brand-palette-active .has-submenu:hover .nav-link-with-dropdown,
html.brand-palette-active .submenu li a:hover,
html.brand-palette-active .submenu-link:hover,
html.brand-palette-active .submenu-link:hover .child-arrow,
html.brand-palette-active .child-submenu li a:hover,
html.brand-palette-active .submenu-toggle:hover,
html.brand-palette-active .cart-icon:hover,
html.brand-palette-active .register-link:hover,
html.brand-palette-active .hotline-link i {

  color: var(--brand-text);
}
html.brand-palette-active .search-btn,
html.brand-palette-active .cart-count,
html.brand-palette-active .mobile-cart-badge {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
}
html.brand-palette-active .search-btn:hover,
html.brand-palette-active .hotline-link:hover {
  background: var(--brand-primary-hover);
  color: var(--brand-on-primary);
}
html.brand-palette-active .search-box input {
  border-color: var(--brand-border);
  background: var(--brand-surface);
  color: var(--brand-text);
}
html.brand-palette-active .search-box input:focus {
  border-color: var(--brand-primary);
}
html.brand-palette-active .join-link {
  background: var(--brand-secondary);
  color: var(--brand-on-secondary);
}
html.brand-palette-active .submenu-toggle .arrow,
html.brand-palette-active .sub.has-submenu .submenu-toggle {
  background: var(--brand-accent);
  color: var(--brand-on-accent);
}

/* Category cards, product cards, pricing and section headings. */
html.brand-palette-active .product-card,
html.brand-palette-active .category-name-card,
html.brand-palette-active .checkout-summary,
html.brand-palette-active .checkout-form,
html.brand-palette-active .cart-sidebar,
html.brand-palette-active .modal-content,
html.brand-palette-active .policy-page-section {
  background: var(--brand-surface);
  color: var(--brand-text);
  border-color: var(--brand-border);
}
html.brand-palette-active .category-name-card:hover,
html.brand-palette-active .thumbnail:hover,
html.brand-palette-active .thumbnail.active {
  border-color: var(--brand-primary);
}
html.brand-palette-active .product-price,
html.brand-palette-active .sale-price,
html.brand-palette-active .product-detail-title,
html.brand-palette-active .cart-item-price,
html.brand-palette-active .cart-total .total,
html.brand-palette-active .meta-label,
html.brand-palette-active .breadcrumb a,
html.brand-palette-active .related-price,
html.brand-palette-active .policy-page-title,
html.brand-palette-active .policy-page-content h2,
html.brand-palette-active .policy-page-content h3,
html.brand-palette-active .policy-page-content h4,
html.brand-palette-active .policy-page-content a {

  color: var(--brand-text);
}
html.brand-palette-active .discount-bagde,
html.brand-palette-active .discount-badge {
  background: var(--brand-accent);
  color: var(--brand-on-accent);
}

/* Buttons, PDP actions, radio controls, pagination, affiliate and customer portal. */
html.brand-palette-active .category-view-all-btn,
html.brand-palette-active .add-to-cart-btn:not(:disabled),
html.brand-palette-active .btn-add-to-cart:not(:disabled),
html.brand-palette-active .checkout-btn:not(:disabled),
html.brand-palette-active .order-place-btn:not(:disabled),
html.brand-palette-active .promo-btn:not(:disabled),
html.brand-palette-active .newsletter-btn:not(:disabled),
html.brand-palette-active .filter-btn.active,
html.brand-palette-active .filter-btn:hover,
html.brand-palette-active .slider-btn:hover:not(:disabled),
html.brand-palette-active .attribute-item.selected:not(:disabled),
html.brand-palette-active .pagination .page-item.active .page-link,
html.brand-palette-active .login-button,
html.brand-palette-active .btn-edit-profile {

  background: var(--brand-primary);
  background-color: var(--brand-primary);
  border-color: var(--brand-border-strong);
  color: var(--brand-on-primary);
}
html.brand-palette-active .btn-add-to-cart:not(:disabled):hover,
html.brand-palette-active .add-to-cart-btn:not(:disabled):hover,
html.brand-palette-active .checkout-btn:not(:disabled):hover,
html.brand-palette-active .order-place-btn:not(:disabled):hover,
html.brand-palette-active .login-button:hover {
  background: var(--brand-primary-hover);
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: var(--brand-on-primary);
}
html.brand-palette-active .buy-now-btn:not(:disabled),
html.brand-palette-active .btn-buy-now:not(:disabled),
html.brand-palette-active .product-details-section .buy-now-btn:not(:disabled) {
  background: var(--brand-secondary);
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: var(--brand-on-secondary);
}
html.brand-palette-active .btn-buy-now:not(:disabled):hover,
html.brand-palette-active .buy-now-btn:not(:disabled):hover {
  background: var(--brand-secondary-hover);
  background-color: var(--brand-secondary-hover);
  border-color: var(--brand-secondary-hover);
  color: var(--brand-on-secondary);
}
html.brand-palette-active .filter-btn,
html.brand-palette-active .page-link,
html.brand-palette-active .forgot-password,
html.brand-palette-active .register-link a,
html.brand-palette-active .login-benefits i,
html.brand-palette-active .payment-methods .payment-method-label:hover {

  color: var(--brand-text);
  border-color: var(--brand-border-strong);
}
html.brand-palette-active .payment-methods .payment-method-label input[type="radio"]:checked ~ .custom-radio {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary);
}
html.brand-palette-active .payment-methods .payment-method-label:hover .custom-radio,
html.brand-palette-active .custom-radio-btn .form-check-input:checked ~ .checkmark,
html.brand-palette-active .promo-code input:focus {
  border-color: var(--brand-primary);
}
html.brand-palette-active .dashboard-card,
html.brand-palette-active .dashboard-sidebar,
html.brand-palette-active .login-card,
html.brand-palette-active .login-benefits,
html.brand-palette-active .login-section {
  background: var(--brand-surface);
  color: var(--brand-text);
  border-color: var(--brand-border);
}
html.brand-palette-active .dashboard-menu a.active,
html.brand-palette-active .dashboard-menu a:hover,
html.brand-palette-active .profile-avatar {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

/* Newsletter, footer and mobile footer bar. */
html.brand-palette-active .newsletter-section,
html.brand-palette-active .mobile-footer-bar {
  background: var(--brand-surface);
  color: var(--brand-text);
  border-color: var(--brand-border);
}
html.brand-palette-active .mobile-footer-item:hover,
html.brand-palette-active .mobile-footer-item:active {

  color: var(--brand-text);
}
html.brand-palette-active .footer {
  background: var(--brand-secondary);
  color: var(--brand-on-secondary);
}
html.brand-palette-active .footer .logo-text,
html.brand-palette-active .footer .footer-logo-name,
html.brand-palette-active .footer .footer-heading,
html.brand-palette-active .footer-section .footer-heading,
html.brand-palette-active .footer-contact-item,
html.brand-palette-active .footer-contact-item i,
html.brand-palette-active .footer-contact-item a,
html.brand-palette-active .footer-links a,
html.brand-palette-active .footer h3,
html.brand-palette-active .footer h4,
html.brand-palette-active .footer a:not(.footer-bottom a) {
  color: var(--brand-on-secondary);
}
html.brand-palette-active .footer a:not(.footer-bottom a):hover {
  color: var(--brand-on-secondary);
  opacity: 0.85;
  text-decoration: underline;
}
html.brand-palette-active .footer-bottom,
html.brand-palette-active .footer-bottom p,
html.brand-palette-active .footer-bottom a {
  background: var(--brand-surface);
  color: var(--brand-text);
}
html.brand-palette-active .btn-primary:not(:disabled) {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-color: var(--brand-on-primary);
  --bs-btn-hover-bg: var(--brand-primary-hover);
  --bs-btn-hover-border-color: var(--brand-primary-hover);
  --bs-btn-hover-color: var(--brand-on-primary);
  --bs-btn-active-bg: var(--brand-primary-hover);
  --bs-btn-active-border-color: var(--brand-primary-hover);
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--brand-on-primary) !important;
}
html.brand-palette-active .btn-primary:not(:disabled):hover,
html.brand-palette-active .btn-primary:not(:disabled):focus {
  background-color: var(--brand-primary-hover) !important;
  border-color: var(--brand-primary-hover) !important;
  color: var(--brand-on-primary) !important;
}
html.brand-palette-active .btn-outline-primary {

  --bs-btn-color: var(--brand-text);
  --bs-btn-border-color: var(--brand-border-strong);
  --bs-btn-hover-bg: var(--brand-primary);
  --bs-btn-hover-border-color: var(--brand-primary);
  --bs-btn-hover-color: var(--brand-on-primary);
  color: var(--brand-text) !important;
  border-color: var(--brand-border-strong) !important;
}
html.brand-palette-active .btn-outline-primary:hover {

  background-color: var(--brand-primary) !important;
  border-color: var(--brand-border-strong) !important;
  color: var(--brand-on-primary) !important;
}
/* Standalone landing page (#order checkout card & CTA, preserving campaign content). */
html.brand-palette-active #order {
  background: var(--brand-background);
  color: var(--brand-text);
}
html.brand-palette-active #order form {
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
  border-color: var(--brand-border) !important;
}
html.brand-palette-active #order #submit-order:not(:disabled) {
  background: var(--brand-primary) !important;
  color: var(--brand-on-primary) !important;
  box-shadow: inset 0 0 0 1px var(--brand-border-strong) !important;
}
html.brand-palette-active #order #submit-order:not(:disabled):hover {
  background: var(--brand-primary-hover) !important;
  color: var(--brand-on-primary) !important;
}
html.brand-palette-active .attribute-item.selected:not(:disabled),
html.brand-palette-active .attribute-item-new.selected,
html.brand-palette-active .filter-btn.active,
html.brand-palette-active .tab-btn.active,
html.brand-palette-active .page-item.active .page-link {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  border-color: var(--brand-border-strong);
}
html.brand-palette-active .btn-primary:not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--brand-border);
}
html.brand-palette-active #order #total-amount,
html.brand-palette-active #order #sale-price,
html.brand-palette-active #order span[style*="font-size:1.5rem"] {
  color: var(--brand-text) !important;
}
html.brand-palette-active .add-to-bag-btn svg path,
html.brand-palette-active .add-to-bag-btn svg rect {
  stroke: currentColor;
}
html.brand-palette-active :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
