:root {
  --bw-primary: #033257;
  --bw-secondary: #5193c6;
  --bw-accent: #5193c6;
  --bw-bg: #f8fbff;
  --bw-surface: #ffffff;
  --bw-text: #1a2a36;
  --bw-muted: #5f7384;
  --bw-border: #dbe7f1;
}

body {
  background-color: var(--bw-bg);
  color: var(--bw-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bw-primary);
}

a {
  color: var(--bw-secondary);
}

a:hover,
a:focus {
  color: var(--bw-primary);
}

/* Main CTA and shared theme button styles */
.tf-btn,
.btn-primary,
button[type="submit"] {
  background: var(--bw-secondary);
  border-color: var(--bw-secondary);
  color: #ffffff;
}

.tf-btn:hover,
.tf-btn:focus,
.btn-primary:hover,
.btn-primary:focus,
button[type="submit"]:hover,
button[type="submit"]:focus {
  background: var(--bw-primary);
  border-color: var(--bw-primary);
  color: #ffffff;
}

.tf-btn span,
.tf-btn i {
  color: #ffffff;
}

.megamenu-btn {
  background: var(--bw-secondary);
}

.megamenu-btn:hover {
  background: var(--bw-primary);
}

/* Menu and active page highlight */
.header .main-menu .menu-primary-menu .menu-item.current-menu-item > .item-link span,
.header .main-menu .menu-primary-menu .menu-item > .item-link:hover span {
  color: var(--bw-secondary);
}

#menu-mobile .menu-item.current-menu-item > a {
  color: var(--bw-primary);
  font-weight: 700;
}

/* Footer and dark utility sections */
.footer,
.footer.style-2,
.offcanvasMegamenu {
  background-color: var(--bw-primary);
}

.footer a:hover,
.offcanvasMegamenu a:hover {
  color: var(--bw-accent);
}

/* Inputs and modal controls */
input,
textarea,
select,
.form-control {
  border-color: var(--bw-border);
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: var(--bw-secondary);
  box-shadow: 0 0 0 0.2rem rgba(81, 147, 198, 0.2);
}

/* Decorative accents */
.color-yellow-3,
.icon-social:hover,
.progress-wrap svg path {
  color: var(--bw-secondary);
  stroke: var(--bw-secondary);
}

.line-footer {
  background: rgba(81, 147, 198, 0.4);
}

.card,
.modal-content {
  border-color: var(--bw-border);
}

/* -----------------------------
   Home page fine-tuning
------------------------------ */
.page-title-home .page-title-home-inner::before {
  pointer-events: none;
  background: linear-gradient(
    95deg,
    rgba(3, 50, 87, 0.82) 0%,
    rgba(3, 50, 87, 0.5) 52%,
    rgba(3, 50, 87, 0.2) 100%
  );
}

.page-title-home .page-title-content {
  position: relative;
  z-index: 2;
}

.page-title-home .page-title-content .sub-title {
  color: #ffffff;
}

.page-title-home .page-title-content .title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.page-title-home .arrow-btn {
  background: rgba(3, 50, 87, 0.9);
  color: #ffffff;
}

.page-title-home .arrow-btn:hover {
  background: var(--bw-secondary);
  color: #ffffff;
}

.sw-pagination.pagination-home .swiper-pagination-bullet-active {
  background: var(--bw-secondary);
}

.section-services.h-5 {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.services-item.style-3 {
  border: 1px solid var(--bw-border);
  box-shadow: 0 10px 30px rgba(3, 50, 87, 0.08);
}

.services-item.style-3 .title a:hover {
  color: var(--bw-secondary);
}

.services-item.style-3 .icon i {
  color: var(--bw-primary);
}

/* -----------------------------
   Product page fine-tuning
------------------------------ */
.department-item.style-2.style-border {
  border: 1px solid var(--bw-border);
  box-shadow: 0 8px 24px rgba(3, 50, 87, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.department-item.style-2.style-border:hover {
  transform: translateY(-6px);
  border-color: rgba(81, 147, 198, 0.45);
  box-shadow: 0 14px 30px rgba(3, 50, 87, 0.12);
}

.department-item .item-content .title a {
  color: var(--bw-primary);
}

.department-item .item-content .title a:hover {
  color: var(--bw-secondary);
}

/* -----------------------------
   Contact page fine-tuning
------------------------------ */
.section-contact .box-icon.style-list {
  border: 1px solid var(--bw-border);
  background: var(--bw-surface);
  box-shadow: 0 10px 24px rgba(3, 50, 87, 0.06);
}

.section-contact .box-icon.style-list .icon i {
  color: var(--bw-secondary);
}

.section-contact .box-icon.style-list .title a {
  color: var(--bw-primary);
}

.form-contact-us.style-white-3 {
  border: 1px solid var(--bw-border);
  background: var(--bw-surface);
  box-shadow: 0 16px 36px rgba(3, 50, 87, 0.1);
}

.form-contact-us .heading-form .title {
  color: var(--bw-primary);
}

.form-contact-us .heading-form .desc {
  color: var(--bw-muted);
}

.form-contact-us .item i,
.form-contact-us .item-textarea i {
  color: var(--bw-secondary);
}

/* Unified breadcrumbs/page-title polish */
.page-title .page-title-content {
  background-color: var(--bw-primary);
}

.page-title .breadkcum .link-breadkcum:hover {
  color: var(--bw-secondary);
}

/* Footer marketplace links */
.marketplace-links {
  margin-top: 20px;
}

.marketplace-links .title {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 12px;
}

.marketplace-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.marketplace-link {
  width: 130px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(81, 147, 198, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marketplace-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.marketplace-link img {
  width: 110px;
  height: 36px;
  object-fit: contain;
}

/* Gallery image popup and equal-size cards */
.portfolio-item .image {
  display: block;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.portfolio-item .image:hover img {
  transform: scale(1.04);
}

/* Home slider readability tuning for uploaded visuals */
.page-title-home .page-title-home-inner.img-2 {
  background-image: url("../image/slid2.webp");
}

.page-title-home .page-title-home-inner.img-2::before {
  background: linear-gradient(
    90deg,
    rgba(3, 50, 87, 0.64) 0%,
    rgba(3, 50, 87, 0.36) 58%,
    rgba(3, 50, 87, 0.14) 100%
  );
}

.page-title-home .page-title-home-inner.img-3::before {
  background: linear-gradient(
    105deg,
    rgba(2, 23, 40, 0.82) 0%,
    rgba(3, 50, 87, 0.5) 58%,
    rgba(3, 50, 87, 0.18) 100%
  );
}

.section-services.h-5 {
  background: linear-gradient(135deg, #e9f4ff 0%, #d9ebfb 45%, #c7e2f8 100%);
  border-top: 1px solid rgba(3, 50, 87, 0.08);
  border-bottom: 1px solid rgba(3, 50, 87, 0.08);
}

/* Improve readability in about offcanvas panel */
.offcanvasMegamenu {
  background: linear-gradient(180deg, #053861 0%, #032c4b 100%);
}

.offcanvasMegamenu .desc,
.offcanvasMegamenu .contact-list-mega-menu p,
.offcanvasMegamenu .contact-list-mega-menu a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.offcanvasMegamenu .contact-list-mega-menu a:hover {
  color: #ffffff !important;
  opacity: 0.75;
  text-decoration: none;
}

/* Active product in sidebar */
.sidebar-categories .list .item.active-product-item {
  background: #eef6ff;
  border-radius: 8px;
}

.sidebar-categories .list .item a.active-product-link {
  color: var(--bw-primary);
  font-weight: 700;
}

.sidebar-categories .list .item.active-product-item i {
  color: var(--bw-secondary);
}

/* Footer contact block readability */
.footer.style-2 .box-item-footer.style-2 .desc,
.footer.style-2 .box-item-footer.style-2 .desc li,
.footer.style-2 .box-item-footer.style-2 .desc a {
  color: #dcecff;
}

.footer.style-2 .box-item-footer.style-2 .desc li i {
  color: #7ec3ff;
}

.footer.style-2 .box-item-footer.style-2 .desc a:hover {
  color: #ffcc66;
  text-decoration: none;
}

/* Keep Featured Products section readable on light background */
.section-services.h-5 .heading-section.style-white .sub-title,
.section-services.h-5 .heading-section.style-white .title,
.section-services.h-5 .heading-section.style-white .text {
  color: var(--bw-primary);
}

/* Featured products slider arrows visibility */
.section-services.h-5 .arrow-btn.style-border-3 {
  background: #1f5e8f;
  border-color: #1f5e8f;
}

.section-services.h-5 .arrow-btn.style-border-3 i {
  color: #ffffff;
}

.section-services.h-5 .arrow-btn.style-border-3:hover {
  background: #2f7eb8;
  border-color: #2f7eb8;
}

/* Replace reddish circular accent with brand blue */
.box-funfact.style-bg-3::before {
  background: linear-gradient(
    180deg,
    rgba(47, 126, 184, 0.22) 0%,
    rgba(47, 126, 184, 0) 100%
  );
}

.box-funfact.style-bg-3 .rating i,
.rating i {
  color: #2f7eb8;
}

/* Preloader ring color theme update */
#loading #loading-center .loader-container .loader {
  border: 4px solid rgba(81, 147, 198, 0.2);
  border-top-color: #2f7eb8;
  border-right-color: #1f5e8f;
  box-shadow: 0 0 0 6px rgba(47, 126, 184, 0.08);
}

/* Product image standardization */
.department-item .top-item .image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 280px; /* Consistent height for product cards */
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--bw-border);
}

.department-item .top-item .image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows entire product without cropping */
  padding: 15px;
  transition: transform 0.3s ease;
}

.department-item.style-2:hover .top-item .image img {
  transform: scale(1.05);
}

/* Product Detail Image */
.image-details {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 450px; /* Larger fixed height for detail pages */
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bw-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(3, 50, 87, 0.05);
}

.image-details img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 20px;
}

@media (max-width: 767px) {
  .department-item .top-item .image {
    height: 220px;
  }
  .image-details {
    height: 300px;
  }
}
