﻿.custom-col-5 {
  flex: 0 0 20%;
  max-width: 20%;
}

.CustomContainer {
  max-width: 90%;
}

@media (max-width: 768px) {
  .custom-col-5 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }

  .CustomContainer {
    max-width: 100%;
  }
}

.custom-col-lg-5 {
  flex: 0 0 16%;
  max-width: 16%;
}

@media (max-width: 992px) {
  .custom-col-lg-5 {
    flex: 0 0 auto;
    max-width: 50%;
  }
}

.refine-search-sidebar h4 {
  border-bottom: 1.5px dotted;
}


.proddetails-sub-container ul {
  cursor: pointer;
}

.proddetails-link:hover {
  color: #CC0000;
}

.refine-search-sidebar {
  border: 1.5px solid #e1e1e1;
  border-radius: 4px;
  padding: 10px 5px 10px 5px;
  box-shadow: 1px 2px 2px #e1e1e1;
}

.set-product-img {
  height: 145px;
}

.lightbox-gallery .item {
  padding: 5px !important;
}

.set-product-img {
  box-shadow: 0px 1px 3px #616161;
}

#loading-animation {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.lightbox-tags .tag {
  display: inline-block;
  padding: 8px 12px;
  margin: 5px 5px 0 0;
  border-radius: 10px;
  background-color: #fff;
  color: #23232F;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.set-product-img {
  background-size: cover;
  background-position: center;
  width: 100%;
  padding-top: 100%; /* Maintains 1:1 aspect ratio for square */
  position: relative;
  overflow: hidden;
}

  .set-product-img::before {
    content: "";
    display: block;
    padding-top: 100%; /* Extra safety for old browsers */
  }

  .set-product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.refine-search-sidebar h4 {
  border-bottom: 1.5px dotted;
}

.proddetails-sub-container ul {
  cursor: pointer;
}

.proddetails-link:hover {
  color: #CC0000;
}

.refine-search-sidebar {
  border: 1.5px solid #e1e1e1;
  border-radius: 4px;
  padding: 10px 5px;
  box-shadow: 1px 2px 2px #e1e1e1;
}

/* Mobile Filter Modal */
.mobile-filter-btn {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 999;
}

.filter-modal-button {
  color: #fff;
  border-color: #23232F;
  background-color: #23232F;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

  .filter-modal.open {
    transform: translateY(0);
  }

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #ddd;
}

.close-filter-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.filter-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

body.modal-open {
  overflow: hidden;
}

.breadcrumb-tag {
  cursor: pointer;
}

.refine-search-sidebar {
  border: 1.5px solid #e1e1e1;
  border-radius: 6px;
  padding: 15px 12px;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

  .refine-search-sidebar:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  }

/* Keep original font styling for tag-search */
#tag-search {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

  #tag-search:focus {
    border-color: #1b12b2;
    box-shadow: 0 0 6px rgba(0, 3, 204, 0.74);
  }

/* Preserve font but improve layout for tag list */
.proddetails-sub-container ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 12px;
  cursor: pointer;
}

#tag-list li {
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 1px;
  transition: background-color 0.2s ease;
  text-align: left;
}

  #tag-list li:hover {
    background-color: #f5f5f5;
    /* font color remains untouched */
  }

/* Optional: maintain spacing between groups or for clarity */
.proddetails-sub-container {
  margin-top: 10px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  #tag-list-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 680px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 6px;
    background-color: #fff;
  }

    #tag-list-mobile li {
      padding: 6px 10px;
      border-radius: 4px;
      background-color: #f1f1f1;
      white-space: nowrap;
      flex: 0 0 auto;
      list-style: none;
    }

      #tag-list-mobile li:hover {
        background-color: #e0e0e0;
      }
}

.set-product-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(170, 170, 170, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.set-product-img:hover::after {
  opacity: 1;
}
 