/* PRODUCTS PAGE*/
.category-bar {
  position: sticky;
  top: calc(var(--header-height, 150px));
  z-index: 998;
  background: var(--theme-white);
  padding: 15px 15px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

/* Hide scrollbar (optional) */
.category-bar::-webkit-scrollbar {
  display: none;
}

/* Buttons */
.category-bar button {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--theme-border-grey);
  background: var(--theme-white);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  height: 40px;
  font-size: 18px;
  color: var(--brand-black);
}

.category-bar button.active {
  background: var(--brand-red);
  color: var(--theme-white);
  border-color: var(--brand-red);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Product card */
.product-card {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
  display: flex;
  gap: 15px;
  box-shadow: 0 2px 6px var(--theme-shadow-black);
  border-radius: 10px;
  padding: 15px;
  background: var(--theme-white);
  flex-direction: column;
}

.product-card.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

/* Product image */
.image-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: end;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--theme-border-grey);
  border-radius: 5px;
}

.slides {
  width: 100%;
  height: 100%;
}

.slides img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  align-self: center;
  justify-self: center;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slides img.active {
  opacity: 1;
}

/* Navigation arrows */
.image-slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--theme-shadow-black);
  color: var(--theme-white);
  border: 1px solid var(--theme-border-grey);
  font-size: 30px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  text-align: center;
  margin-left: 3%;
  margin-right: 3%;
}

.image-slider .prev {
  left: 5px;
}

.image-slider .next {
  right: 5px;
}

/* Product info */
.product-info {
  flex: 1;
  flex-direction: column;
  display: flex;
  gap: 10px;
  text-align: left;
  padding-left: 20px;
}

.product-info h3 {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  color: var(--brand-black);
}

.product-info table {
  width: 100%;
  table-layout: auto;
  border: 1.5px solid var(--brand-black);
  margin-top: 10px;
  font-size: 14px;
  border-radius: 5px;
  max-width: 1200px;
  justify-self: start;
  align-self: start;
}

.product-info table td {
  padding: 6px 10px;
  vertical-align: top;
}

/* @keyframes pulseHighlight {
  0% {
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(227, 0, 15, 0.5);
  }

  50% {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(227, 0, 15, 0.5);
  }

  100% {
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(227, 0, 15, 0.5);
  }
}

.highlight-product {
  animation: pulseHighlight 1.5s ease-in-out 2;
} */

/* Grey separator between rows */
.product-info table tr:not(:last-child) td {
  border-bottom: 1px solid var(--theme-border-grey);
}

/* Left column (keys) */
.product-info table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--brand-black);
  border-right: 1px solid var(--theme-border-grey);
}

/* Right column (values) */
.product-info table td:last-child {
  color: var(--brand-black);
  width: 100%;
  word-break: break-word;
}

.product-info table td:nth-child(1) {
  background: var(--brand-grey);
}

@media(max-width:1000px) {
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
    gap: 20px;
    padding: 20px;
  }

  .product-card {
    flex-direction: column;
    text-align: center;
    height: auto;
  }

  .product-info {
    padding-left: 0;
  }

  .image-slider {
    width: 100%;
    height: 250px;
  }

  .product-info h3 {
    font-size: 18px;
  }
}

@media(max-width:600px) {
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 20px;
    padding: 20px;
  }
}