/*
 * Custom code goes here.
 * Blue theme overrides - replaces Bootstrap black/grey defaults with blue palette
 */

/* === Base text color (Bootstrap default #212529 -> dark blue) === */
body,
.text-body,
p,
label,
legend,
.form-control,
.input-group-text {
  color: #0E3B6E;
}

/* === Headings === */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: #0E3B6E;
}

/* === Links (keep brand blue) === */
a {
  color: #14539A;
}
a:hover {
  color: #0E3B6E;
}

/* === Bootstrap .text-dark, .text-black === */
.text-dark {
  color: #0E3B6E !important;
}
.text-black {
  color: #0E3B6E !important;
}
.text-muted {
  color: #2E7DD1 !important;
}

/* === Borders (Bootstrap #dee2e6 -> light blue) === */
.border,
.border-top,
.border-bottom,
.border-start,
.border-end {
  border-color: #B8D4ED !important;
}
hr {
  border-color: #B8D4ED;
  color: #B8D4ED;
}

/* === Form controls === */
.form-control:focus,
.form-select:focus {
  border-color: #14539A;
  box-shadow: 0 0 0 0.25rem rgba(20, 83, 154, 0.25);
}

/* === Buttons close / dark === */
.btn-dark {
  background-color: #0E3B6E;
  border-color: #0E3B6E;
}
.btn-dark:hover {
  background-color: #103F73;
  border-color: #103F73;
}
.btn-outline-dark {
  color: #0E3B6E;
  border-color: #0E3B6E;
}
.btn-outline-dark:hover {
  background-color: #0E3B6E;
  border-color: #0E3B6E;
  color: #fff;
}

/* === Navbar / Header === */
.header-nav,
#header .header-nav {
  color: #0E3B6E;
}

/* === Dropdown menus === */
.dropdown-menu {
  border-color: #B8D4ED;
}
.dropdown-item {
  color: #0E3B6E;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #F0F5FB;
  color: #0E3B6E;
}

/* === Cards === */
.card {
  border-color: #D0E3F4;
}
.card-header {
  background-color: #F0F5FB;
  border-bottom-color: #D0E3F4;
}

/* === Tables === */
.table {
  color: #0E3B6E;
  border-color: #B8D4ED;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  color: #0E3B6E;
}

/* === Pagination === */
.page-link {
  color: #14539A;
  border-color: #D0E3F4;
}
.page-item.active .page-link {
  background-color: #14539A;
  border-color: #14539A;
}

/* === Breadcrumb === */
.breadcrumb-item + .breadcrumb-item::before {
  color: #2E7DD1;
}
.breadcrumb-item a {
  color: #14539A;
}
.breadcrumb-item.active {
  color: #2E7DD1;
}

/* === Footer === */
#footer,
.footer-container {
  color: #E0EBF7;
}
#footer a {
  color: #B8D4ED;
}
#footer a:hover {
  color: #fff;
}

/* === Product cards === */
.product-miniature .product-title a {
  color: #0E3B6E;
}
.product-miniature .product-title a:hover {
  color: #14539A;
}
.product-miniature .product-price-and-shipping .price {
  color: #0E3B6E;
}

/* === Modal === */
.modal-header {
  border-bottom-color: #D0E3F4;
}
.modal-footer {
  border-top-color: #D0E3F4;
}
.btn-close {
  color: #0E3B6E;
}

/* === Warehouse theme specific: black backgrounds -> dark blue === */
.bg-black,
.bg-dark {
  background-color: #0E3B6E !important;
}

/* === Nav tabs === */
.nav-tabs .nav-link {
  color: #14539A;
}
.nav-tabs .nav-link.active {
  color: #0E3B6E;
  border-bottom-color: #14539A;
}

/* === Badges === */
.badge.bg-dark {
  background-color: #0E3B6E !important;
}
.badge.bg-secondary {
  background-color: #1A6BC4 !important;
}

/* === Box shadows (black -> blue) === */
.shadow,
.shadow-sm,
.shadow-lg {
  box-shadow: 0 0.5rem 1rem rgba(14, 59, 110, 0.15) !important;
}
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(14, 59, 110, 0.075) !important;
}

/* === Warehouse: product list separators === */
.products .product-miniature {
  border-color: #D0E3F4;
}

/* === Warehouse: category page === */
.block-category .category-description {
  color: #103F73;
}

/* === Warehouse: search bar === */
#search_widget .search-input {
  border-color: #B8D4ED;
  color: #0E3B6E;
}
#search_widget .search-input::placeholder {
  color: #5A9BD5;
}

/* === List group === */
.list-group-item {
  border-color: #D0E3F4;
  color: #0E3B6E;
}
.list-group-item.active {
  background-color: #14539A;
  border-color: #14539A;
}
