@charset "utf-8";
/* CSS Document */

/* === Bootstrap 5-style spacing utilities for older Bootstrap versions === */

/* Margin Top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Margin Bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

/* Margin Left */
.ms-0, .ml-0 { margin-left: 0 !important; }
.ms-1, .ml-1 { margin-left: 0.25rem !important; }
.ms-2, .ml-2 { margin-left: 0.5rem !important; }
.ms-3, .ml-3 { margin-left: 1rem !important; }
.ms-4, .ml-4 { margin-left: 1.5rem !important; }
.ms-5, .ml-5 { margin-left: 3rem !important; }

/* Margin Right */
.me-0, .mr-0 { margin-right: 0 !important; }
.me-1, .mr-1 { margin-right: 0.25rem !important; }
.me-2, .mr-2 { margin-right: 0.5rem !important; }
.me-3, .mr-3 { margin-right: 1rem !important; }
.me-4, .mr-4 { margin-right: 1.5rem !important; }
.me-5, .mr-5 { margin-right: 3rem !important; }

/* Padding Top */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

/* Padding Bottom */
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Padding Left */
.ps-0, .pl-0 { padding-left: 0 !important; }
.ps-1, .pl-1 { padding-left: 0.25rem !important; }
.ps-2, .pl-2 { padding-left: 0.5rem !important; }
.ps-3, .pl-3 { padding-left: 1rem !important; }
.ps-4, .pl-4 { padding-left: 1.5rem !important; }
.ps-5, .pl-5 { padding-left: 3rem !important; }

/* Padding Right */
.pe-0, .pr-0 { padding-right: 0 !important; }
.pe-1, .pr-1 { padding-right: 0.25rem !important; }
.pe-2, .pr-2 { padding-right: 0.5rem !important; }
.pe-3, .pr-3 { padding-right: 1rem !important; }
.pe-4, .pr-4 { padding-right: 1.5rem !important; }
.pe-5, .pr-5 { padding-right: 3rem !important; }

/* Combined horizontal and vertical spacing */
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }


/* Base border */
.border {
  border: 1px solid #dee2e6 !important;
}

/* Individual sides */
.border-top {
  border-top: 1px solid #dee2e6 !important;
}

.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

.border-start {
  border-left: 1px solid #dee2e6 !important;
}

.border-end {
  border-right: 1px solid #dee2e6 !important;
}

/* Border removal */
.border-0 {
  border: 0 !important;
}

.border-top-0 {
  border-top: 0 !important;
}

.border-bottom-0 {
  border-bottom: 0 !important;
}

.border-start-0 {
  border-left: 0 !important;
}

.border-end-0 {
  border-right: 0 !important;
}

/* Optional rounded helpers */
.rounded { border-radius: 0.25rem !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: 0.2rem !important; }
.rounded-2 { border-radius: 0.25rem !important; }
.rounded-3 { border-radius: 0.3rem !important; }

.d-flex-2{
	display:flex;	
}
/* === Overlay Panel === */
.search-panel {
  position: fixed;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  z-index: 2000;
  max-height: 85vh;
  overflow: hidden;
}

/* === Scroll Only Products === */
.product-scroll-wrapper {
  max-height: 70vh;
  overflow-y: auto;
}

.product-img {
  width: 100%;
  height: 160px;
  background-color: #eee;
  object-fit: cover;
}

/* === Search Term Chips === */
#suggestedTerms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.term-chip {
  background: #f1f3f5;
  border-radius: 20px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.term-chip .remove {
  font-weight: bold;
  margin-left: 8px;
  color: #888;
  cursor: pointer;
}
.term-chip:hover .remove { color: #000; }

/* === Category Sidebar === */
#facetList .facet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid #f2f2f2;
  cursor: pointer;
}
/*#facetList .facet-item:hover { background: #fafafa; }*/

/* === Product Grid === */
#productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  padding: 20px 10px;
  margin-bottom: 10px; /* optional extra spacing */
}


.product-card {
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #e6e6e6;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}
/*.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }*/
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 10px rgba(0,0,0,0.12);
}
/*
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
*/
/* PRODUCT IMAGE */
.product-image {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    /*background: #f4f4f4;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   
}

/* INFO SECTION */
.product-info {
    margin-top: 12px;
}

/* Title */
.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.25;
    min-height: 40px;
}

/* Category */
.product-category {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

/* Link */
.product-link {
    font-size: 14px;
    color: #0077cc;
    text-decoration: none;
    font-weight: 600;
}

.product-link:hover {
    text-decoration: underline;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 10px;
}

.product-card .fw-bold {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;     /* exactly 2 lines */
  overflow: hidden;
	font-size:15px;
  line-height: 1.25;
  min-height: 2.5em;        /* 2 lines x line-height */
}

.product-card .text-muted {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;    /* exactly 1 line */
  overflow: hidden;

  line-height: 1.2;
  min-height: 1.2em;
}


/* === Sorting Bar === */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sort-select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 8px;
}

/* === Category Carousel === */
#categoryCarousel {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 0;
}

#categoryCarousel .cat-card {
  flex: 0 0 auto;
  width: 220px;
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
#categoryCarousel .cat-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
#categoryCarousel img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 10px;
}
#categoryCarousel .cat-name {
  font-size: 1.2rem;
  font-weight: 500;
}

#categoryCarousel {
  scroll-behavior: smooth;
  scrollbar-width: none; 
}
#categoryCarousel::-webkit-scrollbar {
  display: none; 
}

.carousel-wrapper { position: relative; }
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-inner-2 {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 8px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 90%;                
  margin: 0 auto;            
}
.carousel-inner-2::-webkit-scrollbar { display: none; }

.carousel-arrow-2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.carousel-arrow-2.left  { left: 8px; }
.carousel-arrow-2.right { right: 8px; }


.carousel-inner-2 .cat-card {
  flex: 0 0 auto;
  width: 220px;
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.carousel-inner-2 .cat-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.carousel-inner-2 img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 10px;
}
.carousel-inner-2 .cat-name {
  font-size: 1.2rem;
  font-weight: 500;
}

/* simple spinner if .spinner-border not available */
.spinner-border{
  display:inline-block; width:2rem; height:2rem;
  border: .25em solid rgba(0,0,0,.1);
  border-right-color: currentColor;
  border-radius: 50%;
  animation: spinner .75s linear infinite;
}
@keyframes spinner { to { transform: rotate(360deg); } }


/* Filter by Category */
.cat-filter {
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.cat-filter:hover {
  background: #e5e5e5;
  color:#000;
}

.cat-filter.active:hover {
  background:#DDF;
  color:#000;
}

.cat-filter.active {
  background: #007bff;
  color: #fff;
}

.facet-clear {
  /*font-size: 13px;*/
  color: #cc0000;
  cursor: pointer;
  margin-bottom: 0px;
}

.facet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
}

.facet-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.facet-img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
}
/*
.facet-name {
  white-space: nowrap;
}
*/
.facet-count {
  font-weight: 600;
}