:root {
  --primary-color: #003153; /* Prussian Blue */
  --primary-color-hover: #004f80; /* lighter blue hover */

  --btn-bg: var(--primary-color);
  --btn-bg-hover: var(--primary-color-hover);

  --card-bg: #fff;
  --table-bg: #ffffff;
  --form-bg: #fff;

  --bs-pagination-bg: var(--primary-color); /* Your custom blue */
  --bs-pagination-color: #fff; /* Text color */
  --bs-pagination-border-color: #fff;
}

/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e5e5e5;
  min-width: 400px;
}

h1,
h2,
h3 {
  color: var(--primary-color) !important;
  margin-top: 0;
}

/* ================================
   Buttons
   ================================ */
.btn-primary {
  background-color: var(--btn-bg) !important;
  border-color: var(--btn-bg) !important;
}
.btn-primary:hover {
  background-color: var(--btn-bg-hover) !important;
  border-color: var(--btn-bg-hover) !important;
}

.form-card {
  background-color: var(--form-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(39, 38, 38, 0.1);
  margin-bottom: 20px;
  max-width: 600px;
  color: var(--text-color);
}

.table-card {
  background-color: var(--form-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(39, 38, 38, 0.1);
  margin-bottom: 20px;
  color: var(--text-color);
}

#logoPreview img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.pagination .page-link {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.pagination .page-link:hover {
  background-color: #0a326f;
  color: #fff;
}

.pagination .active .page-link {
  background-color: #082b5c;
  border-color: #082b5c;
  color: #fff;
}

.section-divider {
  background-color: var(--primary-color) !important;
}

.login-form {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  max-width: 600px;
  color: var(--text-color);
}

/* Adjust search form so it doesn’t stretch too wide */
.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  padding: 5px;
  margin-right: 10px;
  width: 250px; /* adjust width */
}

.search-form input {
  padding: 5px;
  margin-right: 10px;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -15px;
  right: -8px;
  background: #0c3c85;
  border: 2px solid antiquewhite;
  color: #fff;
  font-size: 12px;
  font-weight: bold;

  /* Sets the initial size and allows it to expand horizontally */
  width: 20px;
  height: 20px;

  /* Make padding and border part of the total size */
  box-sizing: border-box;

  /* Creates the round shape for single digits and the pill shape for multiple */
  border-radius: 999px;

  /* Centers the number inside the box, regardless of its size */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Adds horizontal space for numbers with more than one digit */
  padding: 0 6px;
  white-space: nowrap; /* Prevents the number from wrapping to a new line */
}

/* Hero Section */
#hero {
  background: url('hero-bg.jpg') center center no-repeat;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 100px 0;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

#hero .cta-button {
  background-color: #0c3c85;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .hero-swiper {
    height: 250px;
  }

  .hero-swiper .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Section Styles */
.section {
  padding: 50px 20px;
  text-align: center;
}

/* Button Styles */
.btn {
  background-color: #0c3c85; /* Blue button */
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  display: inline-block;
}

.btn:hover {
  background-color: #0056b3; /* Darker shade on hover */
}

.btn {
  background-color: #0c3c85;
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
}

.btn-remove {
  position: absolute;
  top: 0;
  right: 0;
  margin: 2px;
  width: 20px;
  height: 20px;
  background-color: #dc3545; /* Bootstrap danger red */
  color: #fff;
  border: none; /* remove border */
  outline: none; /* remove focus ring */
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.btn-remove:hover {
  background-color: #bb2d3b; /* darker red on hover */
}

/* Image preview wrapper */
.image-wrapper {
  position: relative;
  display: inline-block;
}

/* Thumbnail size */
.image-wrapper img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid #dee2e6; /* Bootstrap gray border */
  border-radius: 0.25rem; /* Bootstrap rounded */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove button */
.image-wrapper .btn-remove {
  position: absolute;
  top: 0;
  right: 0;
  margin: 2px;
  width: 20px;
  height: 20px;
  background-color: #dc3545; /* Bootstrap danger red */
  color: #fff;
  border: none; /* remove border */
  outline: none; /* remove focus ring */
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.image-wrapper .btn-remove:hover {
  background-color: #bb2d3b; /* darker red on hover */
}

.dropdown-menu {
  background-color: #fff !important; /* White background */
  color: #212529 !important; /* Bootstrap's default dark text */
  overflow: hidden;
  border-radius: 0.375rem;
}

.dropdown-menu a.dropdown-item {
  color: #212529 !important;
  font-size: 0.9rem;
  margin: 0;
  /* padding: 0.4rem 1rem;*/
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.dropdown-menu a.dropdown-item:hover,
.dropdown-menu a.dropdown-item:focus {
  background-color: #0c3c85 !important; /* Bootstrap primary blue */
  color: white !important;
  border-radius: 0;
}

.material-symbols-outlined {
  font-size: 28px; /* adjust size */
  vertical-align: middle;
  cursor: pointer;
  color: #f4f4f4;
  transition: color 0.2s;
}

.material-symbols-outlined:hover {
  color: #0c3c85; /* highlight on hover */
}

.toast.fade {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.toast.hide {
  opacity: 0;
  transform: translateY(10px);
}

.card {
  background-color: var(--card-bg);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
}

.card-body {
  background-color: var(--card-bg);
  /* box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem; */
}

.card-header {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* generic table thead */
table.table thead,
table.table thead tr,
table.table thead th {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

.table th,
.table td {
  border-right: 1px solid #dee2e6;
}

.table th:last-child,
.table td:last-child {
  border-right: none;
}

.table thead th a {
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem; /* Bootstrap's small text */
  font-weight: 600;
}

.table thead th {
  font-size: 0.875rem;
  font-weight: 600;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  font-size: 24px;
  padding: 0 10px;
  cursor: pointer;
  z-index: 10;
}
.scroll-btn.left {
  left: 0;
}
.scroll-btn.right {
  right: 0;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .hero-swiper {
    height: 250px;
  }

  .hero-swiper .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

.swiper {
  --swiper-navigation-size: 24px;
  --swiper-navigation-top-offset: 50%;
  --swiper-navigation-side-offset: 10px;
  --swiper-navigation-color: var(--primary-color);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  content: none; /* remove default Swiper arrow */
}

.category-swiper .swiper-button-next::after,
.category-swiper .swiper-button-prev::after {
  content: none; /* remove default Swiper arrow */
}

.tech-swiper .swiper-button-next::after,
.tech-swiper .swiper-button-prev::after {
  content: none; /* remove default Swiper arrow */
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid #ccc;
  color: var(--primary-color);
  padding: 20px 20px;
  text-align: center;
}

.bg-step {
  background-color: var(--primary-color) !important;
}

.text-step {
  color: var(--primary-color) !important;
}

.product-title h1 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3rem; /* matches ~2 lines */
}

.clamp-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em; /* Approx. 3 lines */
}

.sidecart-hidden {
  transform: translateX(100%);
}

.sidecart-visible {
  transform: translateX(0%);
}

.custom-cart-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.custom-cart-table thead tr {
  background-color: #f8f9fa; /* Bootstrap light gray */
}

.custom-cart-table tbody tr:nth-child(odd) {
  background-color: #f8f9fa; /* Light gray */
}

.custom-cart-table tbody tr:nth-child(even) {
  background-color: #ffffff; /* White */
}

.custom-cart-table td,
.custom-cart-table th {
  border-left: none;
  border-right: none;
}

.custom-cart-table th:first-child,
.custom-cart-table td:first-child {
  border-top-left-radius: 0.5rem;
}

.custom-cart-table th:last-child,
.custom-cart-table td:last-child {
  border-top-right-radius: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--table-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  color: var(--text-color);
}

.thankyou-container {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.thankyou-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.input-sm-custom {
  height: 38px;
  /* padding: 6px 12px; */
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 0.9rem;
}

.btn-sm-custom {
  height: 38px !important;
  font-size: 0.9rem !important;
  padding: 0 12px !important;
  margin-top: 0 !important;
  line-height: 38px !important;
  border-width: 1px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar .material-symbols-outlined {
  color: #f8f9fa;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover .material-symbols-outlined {
  color: #00bfff; /* or any accent color you prefer */
}

#searchResultsPopup::-webkit-scrollbar {
  width: 6px;
}
#searchResultsPopup::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 100, 0.4);
  border-radius: 3px;
}
#searchResultsPopup::-webkit-scrollbar-track {
  background: transparent;
}

/* Ensure the search bar stays above other elements */
.search-container {
  position: relative;
  z-index: 1060;
}

.search-input {
  border-radius: 30px;
  height: 45px;
}

.search-results-card {
  position: fixed;
  top: 80px; /* adjust to navbar height */
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 90vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  display: none;
  overflow: hidden;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.search-results-card.show {
  display: block;
  opacity: 1;
}

.search-card-content {
  display: flex;
  width: 100%;
  min-height: 300px;
}

.search-sidebar {
  width: 250px;
  border-right: 1px solid #eee;
  padding: 1rem;
  background-color: #fafafa;
}

.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-list li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.6rem;
  cursor: pointer;
}

.popular-list img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  margin-right: 0.6rem;
}

.view-more {
  font-size: 0.85rem;
  color: #007bff;
  text-decoration: none;
}

.view-more:hover {
  text-decoration: underline;
}

.search-main {
  flex: 1;
  padding: 2rem;
  position: relative;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.muted {
  color: #777;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-favorite {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background-color: var(--primary-color) !important;
  border: none;
  border-radius: 50%;
  position: relative;
  z-index: 10;
}

.btn-favorite i {
  color: white;
  font-size: 1.4rem; /* Adjust this to fine-tune the icon size */
  transition: transform 0.2s ease;
  margin-top: 5px;
}

.btn-favorite:hover i {
  transform: scale(1.1);
}

.btn-favorite:hover {
  background-color: var(--primary-color-hover) !important;
}

.wishlist-card {
  transition: box-shadow 0.2s ease;
}
.wishlist-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Make rule target ONLY the featured swiper wrapper (do NOT be global) ===== */
/* Remove or override the previous generic rule. Use .featured-swiper as scope. */
.featured-swiper .position-absolute.top-0.bottom-0.end-0.d-flex.align-items-center {
  pointer-events: none; /* let clicks go through to favorites in featured */
  top: 50% !important; /* center vertically */
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

/* ===== Ensure all swiper button classes are clickable ===== */
.product-swiper-button-next,
.product-swiper-button-prev,
.new-arrivals-swiper-button-next,
.new-arrivals-swiper-button-prev {
  pointer-events: auto !important;
  cursor: pointer;
  z-index: 20;
}

/* ===== Optional: vertically center any other wrapper left behind ===== */
/* This prevents wrappers with top:0;bottom:0 from stretching full height visually */
.position-absolute.top-0.bottom-0.d-flex.align-items-center {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

/* --- Fix New Arrivals slide sizing to match Featured --- */
.new-arrivals-swiper .swiper-slide {
  flex: 0 0 auto !important;
  box-sizing: border-box;
  padding: 0 8px;
}

/* Optional: keep layout tight & consistent */
.new-arrivals-swiper .swiper-wrapper {
  display: flex !important;
  align-items: stretch;
}

.qty-btn {
  background-color: white;
  border: 1px solid #dee2e6;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.sticky-summary {
  position: sticky;
  top: 60px;
}

.wishlist-img {
  height: 100px;
  max-width: 120px;
  object-fit: contain;
}

.verification-card {
  max-width: 400px;
  margin: auto;
}

.terms-container {
  max-width: 900px;
  margin: 0 auto;
}

.terms-container h1 {
  font-weight: 700;
  font-size: 2.2rem;
}

.terms-container h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  color: #0d6efd;
}

.terms-container p,
.terms-container li {
  line-height: 1.7;
  color: #555;
}

.terms-container ul {
  margin-left: 1rem;
}

.terms-container a {
  text-decoration: none;
  color: #0d6efd;
}

.terms-container a:hover {
  text-decoration: underline;
}

.terms-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
}

.company-details {
  margin-left: 1.5rem; /* or use padding-left if preferred */
}

.policy-container {
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  color: #212529;
}

.policy-container h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.policy-container h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #333;
  border-left: 4px solid var(--primary-color);
  padding-left: 0.5rem;
}

.policy-container p,
.policy-container ul {
  line-height: 1.6;
  color: #555;
}

.policy-container ul {
  padding-left: 1.5rem;
}

.policy-container a {
  color: var(--primary-color);
  text-decoration: none;
}

.policy-container a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .policy-container {
    padding: 1.5rem;
  }
}

.order-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.order-card h1 {
  color: #0d6efd;
}

.order-card p {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .order-card {
    padding: 1.75rem;
  }
}

.footer-branding {
  color: #000; /* solid black for contrast */
  font-weight: 550; /* semi-bold for emphasis */
  margin-bottom: 5px; /* spacing from the links */
}
