/* Sidebar Categories */
.category-item {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  /* 14px */
  color: #5f5e5e;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

.category-item:hover {
  background-color: white;
  color: #16a34a;
}

.category-item.active {
  background-color: #16a34a;
  color: white;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  /* gap-8 */
}

.bento-card {
  background-color: white;
  border: 1px solid #f4f4f5;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bento-card:hover {
  border-color: #16a34a;
  box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.1);
  transform: translateY(-4px);
}

.bento-image-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background-color: #ffffff;
  /* White background to support mix-blend-multiply */
}

.bento-image {
  max-height: 100%;
  object-fit: contain;
}

/* Hub Brand Grid */
.hub-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.hub-brand-card {
  background-color: white;
  border: 1px solid #f4f4f5;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.hub-brand-card:hover {
  border-color: #16a34a;
  box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.1);
  transform: translateY(-5px);
}

.hub-brand-logo {
  width: 130px;
  height: 130px;
  /* border-radius: 50%; */
  object-fit: contain;
  transition: filter 0.3s ease;
}

/* Modal Enhancements */
body.modal-open {
  overflow: hidden;
}

/* Deep View Fade Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Tech Specs Table */
.tech-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tech-specs-table th,
.tech-specs-table td {
  border: 1px solid #f4f4f5;
  /* zinc-100 */
  padding: 1rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.tech-specs-table th {
  background-color: #f3f3f4;
  color: #5f5e5e;
  font-weight: 700;
  font-size: 0.75rem;
  /* xs */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 30%;
}

.tech-specs-table td {
  color: #1a1c1c;
  font-size: 0.875rem;
  /* sm */
  background-color: white;
}

/* Image Zoom Feature */
.zoom-container {
  overflow: hidden;
  border-radius: 1rem;
  cursor: zoom-in;
  background-color: white;
}

.zoom-image {
  transition: transform 0.4s ease;
}

.zoom-container:hover .zoom-image {
  transform: scale(1.1);
}
/* Category Container Scroll */
.category-container-scroll {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
/* Hide scrollbar for horizontally scrolling elements */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Thin Scrollbar */
.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  /* zinc-200 */
  border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #d4d4d8;
  /* zinc-300 */
}

/* Minimize Toggle Button */
.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: #f4f4f5;
  color: #71717a;
  transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
  background-color: #e4e4e7;
  color: #16a34a;
}

.sidebar-toggle-btn i {
  transition: transform 0.3s ease;
}

.sidebar-toggle-btn.collapsed i {
  transform: rotate(-180deg);
}

/* Smart Scrolling Search */
#search-container {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Rich Text Formatting for Imported Product Descriptions */
.product-description-html p {
  margin-bottom: 1rem;
}

.product-description-html ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.product-description-html ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.product-description-html li {
  margin-bottom: 0.5rem;
}

.product-description-html strong,
.product-description-html b {
  color: #1a1c1c;
  font-weight: 700;
}

.product-description-html em,
.product-description-html i {
  color: #5f5e5e;
}

/* Sidebar Responsive Collapse Toggle */
#main-sidebar {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) {
  #main-sidebar.sidebar-collapsed {
    width: 40px !important;
    min-width: 40px !important;
    overflow: hidden !important;
  }
  #main-sidebar.sidebar-collapsed #sidebar-categories,
  #main-sidebar.sidebar-collapsed #sidebar-title {
    display: none !important;
  }
} 
  #main-sidebar {
    position: sticky !important;
    top: 78px !important;
    height: auto !important;
    align-self: flex-start !important;
  }

.hide-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.hide-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
@media (max-width: 767px) {
  #main-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    width: 280px !important;
    z-index: 130 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }
}

/* Language switcher active states */
.circle-btn.active {
  color: #00a651 !important;
  border-color: white !important;
  background-color: white !important;
}
.circle-btn.active::before {
  transform: translateX(0) !important;
}
.mobile-lang-btn.active {
  background-color: white !important;
  color: #00a651 !important;
  border-color: white !important;
}

/* Disable hover effects when body has no-hover class */
.no-hover .product-card-overlay {
  transform: translateY(101%) !important;
}
.no-hover .product-card img,
.no-hover .product-card img.group-hover\:scale-105 {
  transform: none !important;
}
.no-hover .product-card {
  transform: none !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; /* shadow-sm */
  border-color: #f4f4f5 !important; /* border-zinc-100 */
}
.no-hover .product-card .group-hover\:-translate-y-4 {
  transform: none !important;
}

/* Disable hover on touch screens permanently to prevent sticky hover states */
@media (hover: none) {
  .product-card-overlay {
    transform: translateY(101%) !important;
  }
  .product-card img,
  .product-card img.group-hover\:scale-105 {
    transform: none !important;
  }
  .product-card {
    transform: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; /* shadow-sm */
    border-color: #f4f4f5 !important;
  }
  .product-card .group-hover\:-translate-y-4 {
    transform: none !important;
  }
}

