/* --------------- Step 1: Global theme base --------------- */
:root {
  /* Brand primary */
  --bs-primary: #0026c0;
  --bs-primary-rgb: 0, 38, 192;

  /* Links */
  --bs-link-color: #0026c0;
  --bs-link-hover-color: #001fa0;

  /* Text colors */
  --bs-body-color: #333333;
  --bs-body-bg: #ffffff;
}

/* --------------- Typography --------------- */
body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn {
  font-weight: 700;
}

/* ----- Buttons ------ */
.btn-primary {
  --bs-btn-bg: #0026c0;
  --bs-btn-border-color: #0026c0;
  --bs-btn-hover-bg: #001fa0;
  --bs-btn-hover-border-color: #001b90;
  --bs-btn-active-bg: #001b90;
  --bs-btn-active-border-color: #001983;
  --bs-btn-focus-shadow-rgb: 0, 38, 192;
}

/* Request-quote: outlined by default, filled on hover/focus */
.btn-request-quote {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
  font-size: 14px; /* ensure button text is 14px */
}

/* Ensure outline look initially (uses Bootstrap variables if available) */
.btn-request-quote.btn-outline-primary {
  background-color: transparent;
  color: var(--bs-primary);
  /* use primary RGB var for semi-transparent border */
  border-color: rgba(var(--bs-primary-rgb), 0.55);
}

/* Fill on hover / active / focus */
.btn-request-quote.btn-outline-primary:hover,
.btn-request-quote.btn-outline-primary:focus,
.btn-request-quote.btn-outline-primary:active {
  background-color: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(var(--bs-primary-rgb), 0.12);
}

/* Strong visible focus for keyboard users */
.btn-request-quote.btn-outline-primary:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.18);
}

/* Optional: slightly stronger fill on mobile (touch) when pressed */
.btn-request-quote.btn-outline-primary:active {
  transform: translateY(0.5px);
}

/* ------- Backgrounds & Text ------- */
.bg-primary {
  background-color: #0026c0 !important;
}
.text-primary {
  color: #0026c0 !important;
}

.text-gold {
  color: #ffc107 !important;
}

.custom-font-10 {
  font-size: 15px !important;
}

/* ----- Links ----*/
a {
  color: var(--bs-link-color);
  text-decoration: none;
}
a:hover {
  color: var(--bs-link-hover-color);
  text-decoration: none;
}

/* ----- Responsive tweaks ----- */
@media (min-width: 992px) {
  .py-lg-custom-10 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

/* --- Navbar -----*/
.navbar-nav .nav-link {
  padding: 0 1rem;
  font-weight: 500;
}

.navbar-brand .tagline {
  font-size: 12px;
  font-weight: 300;
  color: #666 !important;
  line-height: 1.3;
}

/* ----- Search Box ----- */
.navbar .form-control {
  max-width: 400px;
  padding: 0.5rem 1rem;
}

.input-group.rounded-pill {
  border: 1px solid #ccc;
  overflow: hidden;
}

.input-group.rounded-pill:focus-within {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 38, 192, 0.25);
}

.input-group-text {
  background: #fff;
  border: 0;
}

.input-group .form-control {
  border: 0;
  box-shadow: none;
}

.input-group .form-control:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

/* ---- Wishlist Badge ----- */
.navbar .badge {
  font-size: 0.7rem;
  padding: 0.35em 0.5em;
  transform: translate(-30%, -40%);
}

/*--------Offcanvas customization ------ */
.offcanvas-body .nav-link {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

/* ----------Utility classes-------- */
.fw-custom-900 {
  font-weight: 900 !important;
}

/* Ensure navbar-toggler is visible */
.navbar-toggler {
  border: none;
}

/* Adjust search spacing on mobile */
@media (max-width: 991.98px) {
  .offcanvas .nav-link {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
  }
}


#topBannerCarousel {
  font-size: 12px;
  overflow: hidden;
}

#topBannerCarousel .carousel-inner {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

#topBannerCarousel .carousel-item {
  flex: 0 0 100%;
  text-align: center;
}


/* Custom Background Colors */
.bg-lightblue {
  background-color: #eaf3ff;
}

.bg-lightgreen {
  background-color: #e8f7f1;
}

/* Soft Purple background for 3rd slide */
.bg-softpurple {
  background: linear-gradient(135deg, #f3e8ff, #e5d4fa);
}

/* Button variation for purple background */
.btn-purple {
  background-color: #6a1b9a;
  border-color: #6a1b9a;
  color: #fff;
}

.btn-purple:hover {
  background-color: #4a148c;
  border-color: #4a148c;
}


/* Purple button outline */
.btn-outline-purple {
  color: #6a1b9a;
  border-color: #6a1b9a;
}
.btn-outline-purple:hover {
  background-color: #6a1b9a;
  color: #fff;
}

/* Text highlight */
.text-purple {
  color: #6a1b9a !important;
}

/* Make all slides equal height */
.carousel-slide {
  min-height: 200px;     
  border-radius: 12px;
}

/* Indicators style */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #999;
}

.carousel-indicators .active {
  background-color: #0026c0;
}



/* ------Carousel Controls------- */

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 60% 60%;    
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 50%;

}

/* Move arrows slightly inward */
.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}


#mainCarousel .carousel-slide img {
  max-height: 200px;       
  width: auto;            
  object-fit: contain;   
  margin: 0 auto;          
}

#mobileCarousel .carousel-slide img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}


/* Make carousel background full width */
.carousel-wrapper {
  width: 100%;
}

.carousel-slide {
  width: 100%;
  min-height: 250px; /* adjust as needed */
}


/* Make carousel background full width */
.carousel-wrapper {
  width: 100%;
}


/* Reduce carousel height on mobile */
@media (max-width: 767.98px) {
  #mobileCarousel .carousel-slide {
    min-height: 180px; 
    padding: 1rem;    
  }
}


/* Hide indicators & controls on mobile carousel */
#mobileCarousel .carousel-indicators,
#mobileCarousel .carousel-control-prev,
#mobileCarousel .carousel-control-next {
  display: none !important;
}

@media (max-width: 767.98px) {
  .carousel-caption h2 {
    font-size: 1.2rem !important;
  }
}


/* Category cards */
.category-card {
  position: relative;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.category-img {
  width: 100%;
  height: 100%;
   max-height: 190px;  
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15) 60%, transparent);
  transition: opacity .3s ease;
}

.category-title {
  position: absolute;
  left: 16px;
  bottom: 14px;
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

/* Hover */
.category-card:hover .category-img { transform: scale(1.05); }
.category-card:hover .category-overlay { opacity: .6; }

/* Button polish to match theme */
#loadMoreBtn { min-width: 280px; }

/* Compact category cards on small screens */
@media (max-width: 767.98px) {
  .category-card {
    height: 110px;
  }

  .category-img {
    height: 110px;
    max-height: 110px;
    object-fit: cover;
  }

  .category-title {
    font-size: 0.8rem;
    bottom: 8px;
    left: 8px;
  }
}

/* Hot-selling product card styles */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 20, 30, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
 /*  min-height: 380px;  *//* taller than category boxes so product image shows well */
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative; /* for absolute love button */
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #f1f1f1;
}

.product-info {
  padding: 1rem;
  flex: 1 1 auto;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

/* Love button */
.love-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  border: none;
  background: rgba(255,255,255,0.95);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms, transform 120ms;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.love-btn i { color: #333; font-size: 18px; pointer-events: none; }

.love-btn:hover { transform: scale(1.05); background: #fff; }

.love-btn.loved i { color: #e74c3c; }

/* responsive tweaks */
@media (max-width: 768px) {
  .product-card { min-height: 320px; }
  .product-img { height: 160px; }
}

/* Toast / alert: bottom-right on desktop, centered on small screens */
#toastContainer {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 1080;
  display: flex;
  flex-direction: column-reverse; /* newest above older */
  gap: 10px;
  pointer-events: none;
  align-items: flex-end; /* align to right edge */
  max-width: calc(100% - 36px);
  padding: 0 6px;
}

.site-toast {
  pointer-events: auto;
  width: auto;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(40,40,50,0.04);
  color: #0b1b1b;
  box-shadow: 0 10px 30px rgba(9,15,20,0.08);
  transform: translateY(8px) scale(0.995);
  opacity: 0;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  text-align: left;
}

.site-toast.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.site-toast-success {
  background: rgba(220,249,237,0.98);
  color: #0f5132;
  border-color: rgba(34,197,94,0.18);
}

.site-toast-muted {
  background: rgba(235,245,255,0.98);
  color: #084298;
  border-color: rgba(59,130,246,0.14);
}

/* small screens: center and full-width */
@media (max-width: 520px) {
  #toastContainer {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 12px;
    align-items: center;
    max-width: calc(100% - 24px);
  }
  .site-toast { max-width: 100%; border-radius: 8px; }
}

.badge.rounded-circle {
  width: 20px;   /* adjust size */
  height: 20px;
  border-radius: 50% !important;
  padding: 0;   /* remove Bootstrap’s extra padding */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Featured pill for hot-selling cards */
.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg,#2b5fc0,#21479d); /* soft blue pill */
  box-shadow: 0 8px 20px rgba(18,38,80,0.08);
  line-height: 1;
  pointer-events: none;
}

/* slightly smaller pill on small screens */
@media (max-width: 576px) {
  .featured-badge { top: 10px; left: 10px; padding: 5px 8px; font-size: 11px; }
}

/* Catalog page styles */
.catalog-sidebar .list-unstyled button.active {
  background-color: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
}
.card.p-2 { padding: 0.9rem; }

/* Styled pill dropdowns (category / sort) */
#categorySelect,
#sortSelect {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  display: inline-block;
  min-width: 180px;
  max-width: 100%;
  padding: 8px 44px 8px 16px; /* room for caret on right */
  border-radius: 999px; /* pill */
  border: 1px solid rgba(0,0,0,0.06);
  background-color: #f5f6f8; /* light neutral bg */

  /* improved chevron caret (thin, rounded) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M2 3.2 L7 7.8 L12 3.2' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 10px;

  font-size: 14px;
  color: var(--bs-body-color);
  line-height: 1;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 80ms ease;
  height: 44px; /* consistent height */
}

/* smaller on very small screens */
@media (max-width: 420px) {
  #categorySelect, #sortSelect { padding-right: 36px; height: 40px; }
}

/* Focus / hover states */
#categorySelect:hover,
#sortSelect:hover {
  background-color: #eef1f6;
}

#categorySelect:focus,
#sortSelect:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--bs-primary);
  box-shadow: 0 6px 18px rgba(var(--bs-primary-rgb), 0.08);
}

/* Disabled / readonly look */
#categorySelect:disabled,
#sortSelect:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Make small Bootstrap form-select sizing consistent */
.form-select-sm#categorySelect,
.form-select-sm#sortSelect {
  padding-top: 6px;
  padding-bottom: 6px;
  height: 40px;
  font-size: 14px;
}

/* Optional: align select visually with request-quote button */
.d-flex .btn-request-quote {
  height: 44px;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 14px;
  align-self: center;
}

/* Keep Request Quote compact in the navbar (override broader rules) */
.navbar .btn-request-quote {
  padding: 9px 11px;
  height: 36px;
  line-height: 1;
  font-size: 14px;
  border-radius: 8px;
  align-self: center;
}

/* show only the selected value in primary color; keep dropdown options neutral */
#categorySelect {
  color: #6b7280;       /* neutral color when no selection (placeholder) */
  font-weight: 600;
}

/* when a real category is chosen, highlight the select's displayed value */
#categorySelect.has-value {
  color: var(--bs-primary);  /* selected value color */
  font-weight: 700;
}

/* Ensure option list stays neutral; only the visible select value changes via .has-value */
#categorySelect { color: #6b7280; }               /* placeholder / neutral */
#categorySelect.has-value { color: var(--bs-primary); font-weight:700; }

/* Force dropdown option text to remain neutral (works in most browsers) */
#categorySelect option,
#categorySelect optgroup { color: #333333; }

/* Make the placeholder option visually muted */
#categorySelect option[value=""] { color: #6b7280; font-weight:600; }

/* New badge style for featured items */
.new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg,#43c465,#2e8b57); /* green pill */
  box-shadow: 0 8px 20px rgba(34,197,94,0.10);
  line-height: 1;
  pointer-events: none;
}
@media (max-width: 576px) {
  .new-badge { top: 10px; left: 10px; padding: 5px 10px; font-size: 11px; }
}

/* Testimonial styles */
.testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6c63ff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-right: 8px;
  vertical-align: middle;
  border: 2px solid #e0e0e0;
}

/* Make name and designation stack vertically */
.testimonial-card .fw-semibold {
  display: block;
  margin-bottom: 2px;
  font-size: 1rem;
}

.testimonial-card .text-muted.small {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Align avatar and text vertically */
.testimonial-card .mb-2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-card .mb-2 > .fw-semibold,
.testimonial-card .mb-2 > .text-muted.small {
  margin-left: 0;
}

@media (max-width: 576px) {
  .testimonial-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  .testimonial-card .fw-semibold {
    font-size: 0.98rem;
  }
}

