:root {
    --core-brand-primary: #1c2944;
    --core-brand-primary-hover: #2a3d63;
    --core-brand-secondary: #3e567f;
    --core-brand-soft: #e9edf4;
    --core-brand-border: #c6cfde;
    --core-brand-text-on-dark: #ffffff;
}

::selection {
    background-color: var(--core-brand-primary);
    color: var(--core-brand-text-on-dark);
}

::-moz-selection {
    background-color: var(--core-brand-primary);
    color: var(--core-brand-text-on-dark);
}

a,
.text-primary,
.btn-link,
.btn-product,
.feature-box i,
.icon-box-icon,
.product-price,
.product-label-text,
.ratings-primary .ratings-val {
    color: var(--core-brand-primary) !important;
}

a:hover,
a:focus,
.menu li:hover > a,
.menu li.show > a,
.menu li.active > a,
.mobile-menu li a:hover,
.mobile-menu li a:focus,
.mobile-menu li.open > a,
.mobile-menu li.active > a,
.header-top a:hover,
.header-top a:focus,
.footer a:hover,
.footer a:focus {
    color: var(--core-brand-primary-hover) !important;
}

.bg-primary,
.alert-primary,
.product-label.label-primary,
.tip,
.cart-dropdown .cart-count,
.wishlist-link .wishlist-count,
.wishlist a .wishlist-count {
    background-color: var(--core-brand-primary) !important;
}

.bg-secondary,
.product-label.label-secondary {
    background-color: var(--core-brand-secondary) !important;
}

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
    color: var(--core-brand-text-on-dark) !important;
    background-color: var(--core-brand-primary) !important;
    border-color: var(--core-brand-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: var(--core-brand-text-on-dark) !important;
    background-color: var(--core-brand-primary-hover) !important;
    border-color: var(--core-brand-primary-hover) !important;
}

.btn-secondary,
.btn-secondary.disabled,
.btn-secondary:disabled {
    color: var(--core-brand-text-on-dark) !important;
    background-color: var(--core-brand-secondary) !important;
    border-color: var(--core-brand-secondary) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary.focus,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle {
    color: var(--core-brand-text-on-dark) !important;
    background-color: var(--core-brand-primary) !important;
    border-color: var(--core-brand-primary) !important;
}

.btn-outline-primary,
.btn-outline-primary-2 {
    color: var(--core-brand-primary) !important;
    border-color: var(--core-brand-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary-2:hover,
.btn-outline-primary-2:focus {
    color: var(--core-brand-text-on-dark) !important;
    background-color: var(--core-brand-primary) !important;
    border-color: var(--core-brand-primary) !important;
}

.btn-product:hover span,
.btn-product:focus span {
    color: var(--core-brand-primary-hover) !important;
    box-shadow: 0 1px 0 0 var(--core-brand-primary-hover) !important;
}

.nav.nav-tabs .nav-item.show .nav-link,
.nav.nav-tabs .nav-item .nav-link.active,
.nav.nav-pills .nav-item.show .nav-link,
.nav.nav-pills .nav-item .nav-link.active,
.nav.nav-pills-mobile .nav-link.active,
.nav.nav-pills-mobile .nav-link:hover,
.nav.nav-pills-mobile .nav-link:focus {
    color: var(--core-brand-primary) !important;
    border-bottom-color: var(--core-brand-primary) !important;
}

.page-item.active .page-link,
.page-link:hover,
.page-link:focus {
    color: var(--core-brand-primary) !important;
}

.owl-theme .owl-nav [class*='owl-']:not(.disabled):hover,
.owl-theme.owl-light .owl-dots .owl-dot.active span,
.owl-theme.owl-light .owl-dots .owl-dot:hover span {
    border-color: var(--core-brand-primary) !important;
    background: var(--core-brand-primary) !important;
}

/* Keep header search button icon-style; avoid solid square background */
.header-search .btn-primary,
.header-search-extended .btn-primary,
.header-4 .header-search-extended .btn.btn-primary {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--core-brand-primary) !important;
}

.header-search .btn-primary:hover,
.header-search .btn-primary:focus,
.header-search-extended .btn-primary:hover,
.header-search-extended .btn-primary:focus,
.header-4 .header-search-extended .btn.btn-primary:hover,
.header-4 .header-search-extended .btn.btn-primary:focus {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--core-brand-primary-hover) !important;
}

/* Product prices: stronger and contrast-friendly tone */
.product-price,
.product-details .product-price,
.quickView-content .product-price {
    color: var(--core-brand-secondary) !important;
    font-weight: 700 !important;
}

/* Part finder colors follow theme palette */
.core-part-finder {
    background: var(--core-brand-soft) !important;
    border-color: var(--core-brand-secondary) !important;
}

.core-part-finder-label {
    background: var(--core-brand-primary) !important;
    color: var(--core-brand-text-on-dark) !important;
}

.core-part-finder-select,
.core-part-finder-select.form-control,
.core-part-finder-select.form-control:disabled {
    background-color: #ffffff !important;
    color: #2f3f5a !important;
    border-color: var(--core-brand-secondary) !important;
    opacity: 1 !important;
}

.core-part-finder-select:focus {
    border-color: var(--core-brand-primary) !important;
    box-shadow: 0 0 0 .12rem rgba(28, 41, 68, .18) !important;
}

.core-part-finder-btn,
.core-part-finder-btn.btn,
.core-part-finder-btn.btn-danger {
    background: var(--core-brand-primary) !important;
    border-color: var(--core-brand-primary) !important;
    color: var(--core-brand-text-on-dark) !important;
}

.core-part-finder-btn:hover,
.core-part-finder-btn:focus,
.core-part-finder-btn.btn-danger:hover,
.core-part-finder-btn.btn-danger:focus {
    background: var(--core-brand-primary-hover) !important;
    border-color: var(--core-brand-primary-hover) !important;
    color: var(--core-brand-text-on-dark) !important;
}

/* Product detail purchase buttons must keep white text */
.product-details-action .btn-cart,
.product-details-action .btn-cart span,
.product-details-action .btn-cart i,
.product-details-action .ikontel,
.product-details-action .ikontel span,
.product-details-action .ikontel i,
.product-details-action .ikonwhatsapp,
.product-details-action .ikonwhatsapp span,
.product-details-action .ikonwhatsapp i {
    color: #ffffff !important;
}

.product-details-action .btn-cart:hover span,
.product-details-action .btn-cart:focus span,
.product-details-action .ikontel:hover span,
.product-details-action .ikontel:focus span,
.product-details-action .ikonwhatsapp:hover span,
.product-details-action .ikonwhatsapp:focus span {
    color: #ffffff !important;
    box-shadow: none !important;
}

.form-control:focus,
.mobile-search .form-control:focus,
.mobile-menu-light .mobile-search .form-control:focus {
    border-color: var(--core-brand-primary) !important;
}

.custom-control.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--core-brand-primary) !important;
}

.custom-control.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
    background-color: var(--core-brand-primary) !important;
}
