        /* --- Theme polish (clean medical style) --- */

        body {
          background-color: #fff;
          color: #222;
          font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", sans-serif;
      }

      .bg-off-white {
          background-color: #f8f9fa !important;
      }

      /* top bar */
      .tf-topbar {
          background: #0a1a2a !important; /* deep navy for trust */
          color: #fff;
          font-size: 13px;
          line-height: 1.4;
      }
      .tf-topbar a {
          color: #fff;
      }

      /* header */
      .tf-header {
          border-bottom: none !important;
          background-color: #ffffff !important; 
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
          
      }
      .tf-header .logo-site img {
          max-height: 70px !important; /* increase value to make it larger */
          height: auto !important;
          width: auto !important;
      }
      .box-nav-menu .item-link {
          font-size: 18px;
          font-weight: 600;
          color: #222;
          text-decoration: none;
      }
      .box-nav-menu .item-link:hover {
          color: #0077cc;
      }
      .nav-icon-list .icon {
        font-size: 20px;
        color: #000 !important;;
    }
    .shop-cart {
      position: relative;
      display: inline-block;
    }
    .shop-cart .count {
        position: absolute;
          top: -10px;
          right: -12px;
          background-color: #28a745; /* pharma green */
          min-width: 16px;
          height: 16px;
          font-size: 10px;
          line-height: 16px;
          font-weight: 600;
          color: #fff;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 50%;
          padding: 0;
          z-index: 2;
    }     

      /* hero slider text */
      .title_sld {
          font-weight: 600;
          color: #0a1a2a;
      }
      .sub-title_sld {
          color: #0077cc !important;
          font-weight: 600;
          letter-spacing: .02em;
          text-transform: uppercase;
      }
      .sub-text_sld {
          color: #444;
          font-size: 15px;
          max-width: 480px;
          margin-left: auto;
          margin-right: auto;
          line-height: 1.5;
      }
      .tf-btn.animate-btn {
          background-color: #00b894;
          border: 0;
          color: #fff;
          padding: 10px 16px;
          border-radius: 8px;
          font-size: 14px;
          line-height: 1.2;
          display: inline-flex;
          align-items: center;
          gap: 6px;
          text-decoration: none;
      }
      .tf-btn.animate-btn:hover {
          background-color: #01956e;
          color: #fff;
      }

      /* category carousel */
      .widget-collection .collection_image img {
          border-radius: 12px;
          box-shadow: 0 10px 20px rgba(0,0,0,0.06);
          background: #fff;
          object-fit: cover;
      }
      .collection_name {
          font-weight: 600;
          color: #0a1a2a;
      }

      /* new products grid section */
      #new-products-grid .col-product {
          display: flex;
      }

      .section-heading {
          text-align: center;
          margin-bottom: 1.5rem;
      }
      .section-heading .heading-title {
          font-size: 20px;
          font-weight: 600;
          color: #0a1a2a;
          margin-bottom: .25rem;
      }
      .section-heading .heading-sub {
          color: #555;
          font-size: 14px;
      }

      /* Swiper nav custom (optional refine) */
      .tf-sw-nav {
          background-color: rgba(10,26,42,0.6);
          color: #fff;
          width: 32px;
          height: 32px;
          border-radius: 6px;
          display: flex;
          align-items: center;
          justify-content: center;
          box-shadow: 0 10px 20px rgba(0,0,0,0.2);
          cursor: pointer;
      }
      .tf-sw-nav .icon {
          font-size: 14px;
          line-height: 1;
      }

      /* small utility */
      .text-small { font-size: 13px; line-height: 1.4; }
      .fw-semibold { font-weight: 600 !important; }
      .tf-slideshow {
        position: relative;
        width: 100%;
        overflow: hidden;
      }
      /* Keep slider inside a nice container box */
.tf-slideshow .swiper {
position: relative;
overflow: hidden;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
max-width: 90%;        /* keeps it boxed, not full screen */
margin: 0 auto;           /* centers the slider */
}

/* Make images larger but not stretched */
.tf-slideshow .sld_image img {
width: 100%;
height: 280px;            /* increased from 400px */
object-fit: cover;
border-radius: 16px;
}


/* Arrows on image */
.tf-sw-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
background-color: rgba(0, 0, 0, 0.4);
color: #fff;
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}

.tf-sw-nav:hover {
background-color: rgba(0, 0, 0, 0.7);
}

/* Left/right positions */
.nav-prev-swiper { left: 25px; }
.nav-next-swiper { right: 25px; }

/* Pagination dots inside image */
.tf-sw-pagination {
position: absolute !important;
bottom: 15px !important;
left: 50% !important;
transform: translateX(-50%) !important;
z-index: 10;
width: auto !important;
text-align: center !important;
}

/* Responsive */
@media (max-width: 992px) {
.tf-slideshow .sld_image img {
  height: 420px;
}
}

@media (max-width: 768px) {
.tf-header .row {
  flex-wrap: nowrap !important;
}
.tf-header .logo-site img {
  align-items: left;
}
.tf-header .col-3,
.tf-header .col-6 {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tf-header {
  padding: 6px 0 !important;
}
.tf-slideshow .sld_image img {
  height: 300px;
}
.tf-sw-nav {
  width: 36px;
  height: 36px;
}
}

/* Keep slider text crisp and readable */
.tf-slideshow .sld_content h1,
.tf-slideshow .sld_content p,
.tf-slideshow .sld_content .sub-title_sld {
color: #111111 !important;
text-shadow:
  0 4px 8px rgba(0, 0, 0, 0.3); /* soft layered shadow for contrast */
}

/* Adjust heading size and weight for better visibility */
.tf-slideshow .sld_content h1 {
font-size: 2.5rem;
font-weight: 700;
line-height: 1.3;
}

.tf-slideshow .sld_content p {
font-size: 1rem;
font-weight: 400;
line-height: 1.6;
}

/* Keep your buttons clean */
.tf-slideshow .tf-btn.animate-btn {
background-color: #00b894;
border: none;
color: #fff;
}
.tf-slideshow .tf-btn.animate-btn:hover {
background-color: #01956e;
}

/* Category grid layout */
.category-grid {
  display: grid;
  justify-content: start; /* centers all cards horizontally */
  align-items: start;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px; /* space between cards */
  margin-top: 20px;
}

/* Category card design */
.category-card {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
width: 200px;           /* fixed width */
height: 220px;          /* fixed height */
text-decoration: none;
transition: all 0.3s ease;
overflow: hidden;
}

.category-card:hover {
transform: translateY(-6px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Category image box */
.category-thumb {
width: 100%;
height: 150px;
border-radius: 12px 12px 0 0;
overflow: hidden;
}

.category-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
border: 3px solid #ddd;
border-radius: 6px;
object-fit: contain;
}

.category-card:hover img {
transform: scale(1.05);
}

/* Category text */
.category-name {
margin-top: 10px;
font-weight: 600;
color: #0a1a2a;
font-size: 15px;
}

@media (max-width: 1400px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {

  /* HEADER & LOGO */
  .tf-header {
    padding: 6px 8px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .logo-site img {
    max-height: 28px !important;

  }

  .nav-icon-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 10px !important;
    padding-left: 100px !important;

  }

  /* CATEGORY GRID */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-content: center;
  }

  .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    width: 100px;
    height: 120px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
  }

  /* SLIDER FIX */
  .tf-slideshow .slider-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
  }

  .tf-slideshow .sld_image {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .tf-slideshow .sld_image img {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 320px;
    object-fit: cover;
    display: block;
  }

  /* Overlay text */
  .tf-slideshow .sld_content {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 90%;
    text-align: center;
    color: #000;
    z-index: 2;
    padding: 0 10px;
  }

  .tf-slideshow .sld_content .sub-title_sld {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
  }

  .tf-slideshow .sld_content .title_sld {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .tf-slideshow .sld_content .sub-text_sld {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .tf-slideshow .sld_content .tf-btn {
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 20px;
  }

  /* Swiper dot alignment */
  .tf-slideshow .tf-sw-pagination {
    position: relative;
    bottom: 0 !important;
    margin-top: 5px !important;
  }



  .tf-slideshow .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

  /* Small text adjustment for very small screens */
  @media (max-width: 380px) {
    .tf-slideshow .sld_content .title_sld {
      font-size: 18px;
    }
    .tf-slideshow .sld_content .sub-text_sld {
      font-size: 11px;
    }
    .tf-slideshow .sld_image img {
      min-height: 280px;
    }
  }
  .image-container {
    width: 100%;
    height: 100%; /* adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
  }
  
  .image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .user-info {
    align-items: center;
  }
  
  .user-info .text-muted {
    font-size: 12px;
    margin-bottom: 0;
    line-height: 1;
  }
  
  .user-info strong {
    font-size: 13px;
    color: #000;
  }
  
  .user-info .btn-outline-danger {
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 6px;
  }
  
  /* Make slider responsive and fit image properly */
.tf-slideshow .sld_image img {
  width: 100%;
  height: auto !important; /* allow image to scale naturally */
  object-fit: cover; /* fills area without distortion */
}


/* Prevent parent div from forcing fixed height */
.tf-slideshow .slider-wrap,
.tf-slideshow .sld_image {
  height: auto !important;
}

@media (max-width: 768px) {
    .tf-slideshow {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .tf-slideshow .swiper,
  .tf-slideshow .swiper-slide {
    height: auto;
    min-height: 100vw; /* keep proportional square-like ratio */
  }

  .tf-slideshow .sld_image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* fills space nicely without stretching */
    object-position: center;
  }

  /* remove padding or margin causing white gaps */
  .tf-slideshow .swiper-wrapper,
  .tf-slideshow .swiper-slide {
    padding: 0 !important;
    margin: 0 !important;
  }
}
