/* Medic site shell and home hero styles.
   Loaded after optional workspace CSS so public header, footer, and homepage slider do not inherit workspace dark/light theme rules. */


/* ===== Medic home slider ===== */
.bootstrap-slider { position: relative; }
  .bootstrap-slider .carousel,
  .bootstrap-slider .carousel-inner { width: 100%; min-height: 480px; }
  .bootstrap-slider .carousel-item,
  .bootstrap-slider .carousel-gradient { min-height: 480px; }

  .bootstrap-slider .carousel-gradient {
    position: relative;
    overflow: hidden;
    padding: 4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;   /* center by default */
    text-align: center;
  }
  /* Left-justified variant for slide 2 */
  .bootstrap-slider .align-left {
    justify-content: flex-start;
    text-align: left;
    padding-left: 8rem !important; /* Push entire content away from left edge */
  }

  .bootstrap-slider .carousel-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
  }
  .bootstrap-slider .align-left .carousel-content {
    margin-left: 0;
    padding-left: 0; /* Remove content padding, using parent padding instead */
  }

  .bootstrap-slider .carousel-content .display-4 {
    font-size: clamp(2.25rem, 2vw + 1.5rem, 3.35rem);
    line-height: 1.15;
  }
  .bootstrap-slider .carousel-content span,
  .bootstrap-slider .carousel-content p {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 12px 36px rgba(1, 8, 29, 0.4);
  }
  .bootstrap-slider .carousel-content h2 {
    color: #ffffff;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  }
  .accent-orange { color: #f97316; font-weight: 700; }

  /* CTA buttons */
  .btn-cta-orange{
    background:#f97316; border-color:#f97316; color:#fff;
  }
  .btn-cta-orange:hover{ background:#df650f; border-color:#df650f; color:#fff; }
  .btn-cta-outline{
    border:2px solid #fff; color:#fff; background:transparent;
  }
  .btn-cta-outline:hover{ background:#fff; color:#0f172a; }

  /* === Gradients to mimic your screenshots === */
  /* Slide 1: gold to olive-mid to teal/cyan */
  .bootstrap-slider .carousel-company{
    background: linear-gradient(90deg,
      #e49b13 0%,
      #8ea76a 50%,
      #00a9d1 100%);
  }
  /* Slide 2: gold to warm peach to coral (left-justified content) */
  .bootstrap-slider .carousel-products{
    background: linear-gradient(90deg,
      #e49b13 0%,
      #e18a62 50%,
      #dd6a6a 100%);
  }
  /* Slide 3: gold to warm peach to coral (centered content) */
  .bootstrap-slider .carousel-power{
    background: linear-gradient(90deg,
      #e49b13 0%,
      #e18a62 50%,
      #dd6a6a 100%);
  }

  /* Keep overlay subtle for readability without killing color vibrance */
  .bootstrap-slider .carousel-gradient::before{
    content:"";
    position:absolute; inset:0;
    background: rgba(2, 2, 26, 0.10);
    pointer-events:none;
  }

  /* Indicators contrast on colorful bg */
  .carousel-indicators li{ background-color: rgba(255,255,255,.55); }
  .carousel-indicators .active{ background-color: #fff; }

  @media (max-width: 991.98px){
    .bootstrap-slider .align-left {
      justify-content: center !important;
      text-align: center !important;
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
    .bootstrap-slider .align-left .carousel-content {
      margin-left: auto !important;
      margin-right: auto !important;
    }
  }

  @media (max-width: 767.98px){
    .bootstrap-slider .carousel,
    .bootstrap-slider .carousel-inner,
    .bootstrap-slider .carousel-item,
    .bootstrap-slider .carousel-gradient {
      min-height: 420px;
    }

    .bootstrap-slider .carousel-gradient {
      padding: 3.25rem 1.25rem;
    }

    .bootstrap-slider .carousel-content {
      max-width: 100%;
    }

    .bootstrap-slider .carousel-content .display-4 {
      font-size: clamp(1.9rem, 7.8vw, 2.6rem);
      line-height: 1.1;
      margin-bottom: 0.85rem !important;
      text-wrap: balance;
    }

    .bootstrap-slider .carousel-content .lead {
      font-size: 1rem;
      line-height: 1.55;
      margin-bottom: 1.15rem !important;
      text-wrap: pretty;
    }

    .medic-home-hero-kicker {
      font-size: 0.82rem;
      letter-spacing: 0.08em;
      margin-bottom: 0.55rem !important;
      text-wrap: balance;
    }

    .medic-home-hero-accent {
      font-size: 1.1rem;
      letter-spacing: 0.08em;
      line-height: 1.2;
      margin-bottom: 0.8rem !important;
      text-wrap: balance;
    }
  }

  @media (max-width: 575.98px){
    .bootstrap-slider .carousel,
    .bootstrap-slider .carousel-inner,
    .bootstrap-slider .carousel-item,
    .bootstrap-slider .carousel-gradient {
      min-height: 380px;
    }

    .bootstrap-slider .carousel-gradient {
      padding: 2.75rem 1rem;
    }

    .bootstrap-slider .carousel-content .display-4 {
      font-size: clamp(1.75rem, 7.2vw, 2.2rem);
    }

    .medic-home-hero-kicker {
      font-size: 0.76rem;
    }

    .medic-home-hero-accent {
      font-size: 1rem;
    }
  }

/* Remove global gap before footer */
#footer {
    margin-top: 0;
}

/* Footer mobile improvements */
@media (max-width: 991.98px) {
    /* Footer columns stacking */
    #footer .footer-top .col-lg-3,
    #footer .footer-top .col-lg-6 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    /* Footer spacing and typography */
    #footer .footer-heading {
        font-size: 1rem;
    }

    #footer .footer-top {
        padding: 2rem 0;
    }

    /* Social icons sizing */
    #footer .footer-social .social-link {
        font-size: 0.9rem;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }

    /* Footer links spacing */
}

@media (max-width: 575.98px) {
    /* Footer logo sizing */
    #footer .footer-top img {
        max-width: 60px !important;
    }

    /* Footer text sizing */
  #footer .footer-top p {
    font-size: 0.9rem;
  }

    /* Footer heading stack */
    #footer .footer-heading-stack h5 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
    }

    /* Social icons smaller */
    #footer .footer-social .social-link {
        font-size: 0.85rem;
        width: 28px;
        height: 28px;
        line-height: 28px;
        margin-right: 0.25rem;
    }

    /* Copyright text */
    #footer .footer-copyright p {
        font-size: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) and (hover: none) {
    /* Increase touch targets for mobile */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    #footer .footer-social .social-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========== Scroll to Top Button ========== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.scroll-to-top i {
  display: block;
  line-height: 1;
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top:hover {
  background: var(--primary-orange-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* ===== Medic shared utilities ===== */
.medic-inline-form {
  display: inline;
}

.medic-scroll-panel-md {
  max-height: 400px;
  overflow-y: auto;
}

.medic-sticky-top-20 {
  position: sticky !important;
  top: 20px;
}

.medic-footer-logo {
  max-width: 70px;
}

.medic-cart-dropdown {
  min-width: 320px;
}

.medic-cart-list {
  max-height: 300px;
  overflow: auto;
}

body.medic-mobile-drawer-open {
  overflow: hidden;
}

.medic-cookie-toast {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  min-width: 300px;
  max-width: calc(100vw - 40px);
}

/* ===== Medic footer ===== */
#footer {
  background: #144477 !important;
  border: 0 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#footer .footer-top,
#footer .footer-bottom {
  border: 0 !important;
  margin: 0 !important;
}

#footer .footer-top .row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#footer a {
  color: #ffffff !important;
}

#footer .footer-social a,
#footer .footer-social a:hover,
#footer .footer-social a:focus {
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

#footer .footer-top {
  background: #144477 !important;
  color: #ffffff !important;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#footer .footer-top p,
#footer .footer-top span,
#footer .footer-top li,
#footer .footer-top div,
#footer .footer-bottom p,
#footer .footer-bottom span,
#footer .footer-bottom li,
#footer .footer-bottom div {
  color: #ffffff !important;
}

#footer .about-strong {
  color: rgba(255,255,255,.95) !important;
  font-weight: 500;
}

#footer .highlight-mission {
  font-size: 1.05rem;
  line-height: 1.65;
}

#footer .footer-heading {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
}

#footer .footer-heading.footer-heading-sm {
  font-size: 0.95rem;
}

#footer .footer-heading-stack h5 + h5 {
  margin-top: 1.5rem !important;
}

#footer .footer-top i,
#footer .footer-top a {
  color: #fff;
}

#footer .footer-top a:hover {
  color: #f5f5f5;
}

#footer .footer-social .social-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  color: #fff;
  transition: all .2s ease;
}

#footer .footer-social .social-link:hover {
  background: #fff;
  color: #000 !important;
  border-color: #fff;
  text-decoration: none;
}

#footer .footer-social .social-link i {
  color: inherit !important;
  transition: inherit;
}

#footer .footer-social .social-link:hover i {
  color: #000 !important;
}

#footer .footer-bottom {
  background: #0b345f !important;
  color: #ffffff !important;
  border: 0 !important;
}

#footer .sub-menu-list li + li::before {
  content: "|";
  display: inline-block;
  margin: 0 .6rem;
  opacity: .85;
  color: currentColor;
}

#footer .sub-menu-list a,
#footer .sub-menu-list i {
  color: #fff !important;
}

#footer .footer-copyright-text {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 767.98px) {
  #footer .footer-top {
    text-align: center;
  }

  #footer .footer-top .row {
    justify-content: center;
  }

  #footer .footer-top .col-lg-6,
  #footer .footer-top .col-lg-3,
  #footer .footer-top .col-md-6 {
    display: flex;
    justify-content: center;
  }

  #footer .footer-top .col-lg-6 > div,
  #footer .footer-top .col-lg-3 > div,
  #footer .footer-top .col-md-6 > div {
    width: 100%;
  }

  #footer .medic-footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  #footer .footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  #footer .footer-social .list-inline-item {
    margin: 0;
  }

  #footer .footer-heading-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #footer .footer-heading-stack h5 + h5 {
    margin-top: 1rem !important;
  }
}

/* ===== Medic cookie consent ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  animation: medicCookieSlideUp 0.5s ease-out;
}

@keyframes medicCookieSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-content {
  padding: 15px 0;
}

.cookie-text p {
  color: white;
  line-height: 1.4;
}

.cookie-buttons {
  white-space: nowrap;
}

.cookie-buttons .btn {
  min-width: 100px;
}

.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: white;
}

/* ===== Team card ===== */
.medic-team-card-page .card {
  transition: transform 0.2s ease-in-out;
}

.medic-team-card-page .card:hover {
  transform: translateY(-2px);
}

.medic-team-card-avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid #f8f9fa;
}

.medic-team-card-avatar-placeholder {
  background: #e9ecef;
}

.medic-team-card-avatar-icon {
  font-size: 80px;
  color: #6c757d;
}

.medic-team-card-designation {
  font-size: 1.1rem;
}

.medic-team-card-contact-icon {
  font-size: 1.2rem;
}

.medic-team-card-qr {
  width: 150px;
  height: 150px;
}

@media (max-width: 991.98px) {
  .scroll-to-top {
    right: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }

  .cookie-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 8px;
  }

  .cookie-buttons {
    text-align: center;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cookie-buttons .btn {
    display: block;
    width: 100%;
    margin: 0 !important;
  }

  .cookie-text {
    text-align: center;
  }

  .cookie-text p {
    font-size: 0.9rem;
  }

  .cookie-text .small {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 400px) {
  .cookie-consent-banner {
    left: 5px;
    right: 5px;
    bottom: 5px;
  }

  .cookie-text p {
    font-size: 0.85rem;
  }

  .cookie-text .small {
    font-size: 0.75rem !important;
  }

  .cookie-buttons .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}

/* Medic mobile bottom navigation */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 74px;
  }

  #site-header .site-header-top,
  #site-header .site-header-bottom {
    display: none;
  }

  #site-header .navbar-toggler {
    display: none !important;
  }

  #site-header #siteMainNav {
    display: none !important;
  }

  .medic-mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #ffffff;
    border-top: 1px solid rgba(10, 46, 110, 0.12);
    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .medic-mobile-bottom-link {
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    color: #495057;
    background: #ffffff;
    border: 0;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
  }

  .medic-mobile-bottom-link span {
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .medic-mobile-bottom-link i {
    font-size: 1.05rem;
  }

  .medic-mobile-bottom-link.is-active,
  .medic-mobile-bottom-link:hover,
  .medic-mobile-bottom-link:focus {
    color: #0a2e6e;
    text-decoration: none;
    background: rgba(10, 46, 110, 0.05);
  }

  .medic-mobile-bottom-button {
    cursor: pointer;
  }

  #site-header .site-header-middle {
    position: sticky;
    top: 0;
    z-index: 1080;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  #site-header .site-header-middle .row {
    align-items: center;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  #site-header .site-header-middle .col-12 {
    width: 100%;
    display: block;
  }

  #site-header .medic-header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
  }

  #site-header .brand-logo img {
    height: auto;
    width: auto;
    max-height: 42px;
    object-fit: contain;
  }

  #site-header .search-50 {
    width: 100%;
    min-width: 0;
    margin-top: 0;
  }

  .medic-mobile-header-cart {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(10, 46, 110, 0.12);
    color: #0a2e6e;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    flex: 0 0 42px;
  }

  .medic-mobile-header-cart:hover,
  .medic-mobile-header-cart:focus {
    color: #0a2e6e;
    text-decoration: none;
    background: #f8fafc;
  }

  .medic-mobile-header-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .medic-mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1190;
  }

  .medic-mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .medic-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    background: #ffffff;
    box-shadow: 18px 0 42px rgba(15, 23, 42, 0.22);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
  }

  .medic-mobile-drawer.is-open {
    transform: translateX(0);
  }

  .medic-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.9rem;
    border-bottom: 1px solid rgba(10, 46, 110, 0.08);
  }

  .medic-mobile-drawer-brand img {
    height: 26px;
    width: auto;
    display: block;
  }

  .medic-mobile-drawer-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 46, 110, 0.08);
    color: #0a2e6e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .medic-mobile-drawer-body {
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .medic-mobile-auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .medic-mobile-auth-btn {
    min-height: 42px;
    border-radius: 999px;
    font-weight: 700;
  }

  .medic-mobile-drawer-section + .medic-mobile-drawer-section {
    margin-top: 1rem;
  }

  .medic-mobile-drawer-title {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
  }

  .medic-mobile-user-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #f8fafc;
    border: 1px solid rgba(10, 46, 110, 0.08);
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.65rem;
  }

  .medic-mobile-user-chip i {
    color: #0a2e6e;
    font-size: 1.1rem;
  }

  .medic-mobile-drawer-link {
    display: block;
    width: 100%;
    padding: 0.72rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(10, 46, 110, 0.08);
    color: #0f172a;
    font-size: 0.97rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
  }

  .medic-mobile-drawer-link:hover,
  .medic-mobile-drawer-link:focus {
    color: #0a2e6e;
    text-decoration: none;
  }

  .medic-mobile-drawer-button {
    cursor: pointer;
  }
}

/* Medic site header */
:root {
  --site-top-h: 32px;
  --site-nav-h: 56px;
  --site-dropdown-bg: #ffffff;
  --site-dropdown-border: rgba(15, 23, 42, 0.08);
  --site-dropdown-text: #374151;
  --site-dropdown-heading: #111827;
  --site-dropdown-hover-bg: #f8fafc;
  --site-dropdown-hover-text: #0f172a;
  --site-dropdown-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  --site-dropdown-divider: #e5e7eb;
  --site-top-bg: #f7f7f7;
  --site-top-text: #555555;
  --site-top-separator: #9aa0a6;
  --site-top-button-bg: transparent;
  --site-top-button-border: #0d6efd;
  --site-top-button-text: #0d6efd;
  --site-top-button-hover-bg: #0d6efd;
  --site-top-button-hover-text: #ffffff;
}

[data-theme="dark"] {
  --site-dropdown-bg: #111827;
  --site-dropdown-border: rgba(148, 163, 184, 0.28);
  --site-dropdown-text: #f8fafc;
  --site-dropdown-heading: #ffffff;
  --site-dropdown-hover-bg: rgba(255, 255, 255, 0.08);
  --site-dropdown-hover-text: #ffedd5;
  --site-dropdown-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  --site-dropdown-divider: rgba(148, 163, 184, 0.22);
  --site-top-bg: #111827;
  --site-top-text: #f8fafc;
  --site-top-separator: rgba(248, 250, 252, 0.45);
  --site-top-button-bg: rgba(255, 255, 255, 0.06);
  --site-top-button-border: rgba(255, 255, 255, 0.42);
  --site-top-button-text: #f8fafc;
  --site-top-button-hover-bg: #f97316;
  --site-top-button-hover-text: #ffffff;
}

.site-nav-sticky-sentinel {
  height: 0;
}

#site-header .site-bar-top-row {
  min-height: var(--site-top-h);
}

#site-header .site-header-top {
  background-color: var(--site-top-bg) !important;
  border: none !important;
  color: var(--site-top-text) !important;
}

#site-header .site-header-top-button {
  background: var(--site-top-button-bg) !important;
  border-color: var(--site-top-button-border) !important;
  color: var(--site-top-button-text) !important;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

#site-header .site-header-top-button:hover,
#site-header .site-header-top-button:focus {
  background: var(--site-top-button-hover-bg) !important;
  border-color: var(--site-top-button-hover-bg) !important;
  color: var(--site-top-button-hover-text) !important;
}

#site-header .site-header-middle {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

#site-header .site-header-middle .col-12 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

#site-header .site-header-bottom {
  background-color: #0a2e6e !important;
  width: 100%;
  z-index: 999;
  position: static;
}

#site-header .site-header-bottom.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1085;
  width: 100%;
}

#site-header .site-navbar {
  height: var(--site-nav-h);
  background-color: #0a2e6e !important;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#site-header .nav-tight .nav-link {
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
  line-height: var(--site-top-h);
}

#site-header .nav-tight .sep {
  padding: 0 0.25rem !important;
  color: var(--site-top-separator) !important;
  line-height: var(--site-top-h);
}

#site-header .top-gray,
#site-header .top-gray i {
  color: var(--site-top-text) !important;
}

#site-header .top-gray:hover,
#site-header .top-gray:focus,
#site-header .top-gray:hover i,
#site-header .top-gray:focus i {
  color: #f97316 !important;
}

#site-header .site-header-top .dropdown-menu {
  z-index: 99999 !important;
  position: absolute !important;
}

#site-header .site-header-top .dropdown {
  position: relative;
  z-index: 99998;
}

#site-header .cart-badge {
  position: absolute;
  top: 2px;
  right: -8px;
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  line-height: 1;
}

#site-header .site-navbar .nav-link {
  font-weight: 700;
  color: #fff !important;
  line-height: var(--site-nav-h);
  padding: 0 0.95rem;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

#site-header .site-navbar .nav-item.active .nav-link,
#site-header .site-navbar .nav-link:hover {
  background: #ffffff !important;
  color: #000000 !important;
}

#site-header .brand-logo img {
  height: 72px;
  width: auto;
  display: block;
}

#site-header .nav-brand-when-stuck {
  display: none !important;
}

#site-header .nav-brand-when-stuck .nav-logo {
  height: 28px;
  width: auto;
  display: block;
}

#site-header .home-nav-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: var(--site-nav-h);
  line-height: var(--site-nav-h);
  gap: 0.35rem;
}

#site-header .home-nav-link .home-icon {
  display: none;
  font-size: 1rem;
  line-height: 1;
}

#site-header .home-nav-link .home-text {
  display: inline-block;
}

#site-header .site-header-bottom.is-stuck .nav-brand-when-stuck {
  display: flex !important;
}

#site-header .site-header-bottom.is-stuck .home-nav-link {
  display: none !important;
}

#site-header .dropdown-menu {
  background: var(--site-dropdown-bg) !important;
  border-radius: 0.2rem;
  border: 1px solid var(--site-dropdown-border);
  box-shadow: var(--site-dropdown-shadow);
  color: var(--site-dropdown-text) !important;
}

#site-header .site-navbar .dropdown-menu {
  min-width: 13rem;
  margin-top: 0;
}

#site-header .site-navbar .dropdown:not(.dropdown-mega) > .dropdown-menu {
  transform: translateY(-2px);
}

#site-header .site-navbar .dropdown:hover > .dropdown-menu {
  display: block;
}

#site-header .dropdown-mega {
  position: relative;
}

#site-header .dropdown-mega .dropdown-menu {
  width: min(720px, calc(100vw - 2rem));
  border-radius: 0.35rem;
  left: 0;
  transform: none;
  margin-top: 0;
  padding: 1.25rem 1.5rem;
}

#site-header .mega-grid > div + div {
  border-left: 1px solid var(--site-dropdown-divider);
}

#site-header .mega-heading {
  color: var(--site-dropdown-heading) !important;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}

#site-header .mega-links li + li {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--site-dropdown-divider);
}

#site-header .mega-links a {
  display: block;
  color: var(--site-dropdown-text) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.05rem 0;
  transition: color 0.2s ease;
}

#site-header .site-navbar .dropdown-menu a,
#site-header .site-navbar .dropdown-menu a:hover,
#site-header .site-navbar .dropdown-menu a:focus {
  text-decoration: none;
}

#site-header .mega-links a:hover {
  color: var(--site-dropdown-hover-text) !important;
  text-decoration: none;
}

#site-header .dropdown-menu .dropdown-item {
  color: var(--site-dropdown-text) !important;
}

#site-header .dropdown-menu .dropdown-item:hover,
#site-header .dropdown-menu .dropdown-item:focus {
  background: var(--site-dropdown-hover-bg) !important;
  color: var(--site-dropdown-hover-text) !important;
}

#site-header .dropdown-menu a,
#site-header .dropdown-menu p,
#site-header .dropdown-menu span,
#site-header .dropdown-menu li {
  color: var(--site-dropdown-text) !important;
}

#site-header .search-50 {
  width: 50%;
  min-width: 260px;
}

#site-header .medic-header-search-group .form-control,
#site-header .medic-header-search-group .btn {
  min-height: 42px;
  height: 42px;
}

#site-header .site-header-middle .form-control {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
  color: #212529 !important;
}

#site-header .site-header-middle .form-control::placeholder {
  color: #6c757d !important;
  opacity: 1;
}

#site-header .site-header-middle .form-control:focus {
  background-color: #ffffff !important;
  border-color: #86b7fe !important;
  color: #212529 !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.14) !important;
}

#site-header .site-header-middle .btn-outline-primary {
  background-color: #ffffff !important;
  border-color: #0d6efd !important;
  color: #0d6efd !important;
}

#site-header .site-header-middle .btn-outline-primary:hover,
#site-header .site-header-middle .btn-outline-primary:focus {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #ffffff !important;
}

#site-header .medic-header-search-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.95rem;
  line-height: 1;
  flex: 0 0 46px;
}

#site-header .medic-header-search-group .btn i {
  font-size: 0.95rem;
  line-height: 1;
}

#site-header .navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.55) !important;
}

#site-header .navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

#site-header .bg-primary {
  background: #0d6efd !important;
}

@media (max-width: 767.98px) {
  #site-header .site-header-top .nav-item {
    display: inline-block !important;
  }

  #site-header .site-header-top .nav-item.d-none.d-sm-block {
    display: inline-block !important;
  }

  #site-header .site-header-top .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
  }

  #site-header .site-header-top .nav-item.dropdown {
    position: relative;
  }
}

@media (max-width: 991.98px) {
  #site-header .site-header-middle .row {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  #site-header .site-header-middle .col-12 {
    display: block !important;
  }

  #site-header .medic-header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
  }

  #site-header .brand-logo img {
    height: auto;
    width: auto;
    max-height: 42px;
    max-width: 100%;
    object-fit: contain;
  }

  #site-header .search-50 {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-top: 0;
  }

  #site-header .medic-header-search-group {
    display: flex;
    width: 100%;
    align-items: stretch;
  }

  #site-header .medic-header-search-group .form-control {
    min-width: 0;
  }
}

@media (max-width: 576px) {
  #site-header .search-50 {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  #site-header .site-header-top .dropdown-toggle {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
