 /*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Category Section
--------------------------------------------------------------*/
.category-section {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
}

.left-column {
  width: 25%;
  background: #ffffff;
  overflow-y: auto;
  padding: 20px;
  border-right: 2px solid #d1d1d1;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.right-column {
  width: 75%;
  padding: 30px;
  overflow-y: auto;
  background: #f9f9f9;
  position: relative;
}

/* Category styles */
.category {
  font-weight: bold;
  margin-top: 15px;
  cursor: pointer;
  position: relative;
  padding: 10px 14px;
  background: #7cc4f7;
  color: white;
  border-radius: 4px;
  transition: background 0.3s;
}

.category:hover {
  background: #62b3e5;
}

.category::after {
  content: '+';
  position: absolute;
  right: 15px;
}

.category.active::after {
  content: '-';
}

/* Subcategory title */
.category-title {
  font-weight: bold;
  margin-top: 15px;
  cursor: pointer;
  position: relative;
  padding: 10px;
  border: 1px solid #7cc4f7;
  border-radius: 4px;
  background: #ffffff;
}

.subcategory-list {
  list-style: none;
  padding-left: 20px;
  display: none;
  margin: 5px 0;
}

.subcategory-list li {
  padding: 6px 0;
  color: #333;
  cursor: pointer;
}

.subcategory-list li:hover {
  text-decoration: underline;
}

/* Custom scrollbar */
.left-column::-webkit-scrollbar {
  width: 6px;
}
.left-column::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 6px;
}

/*--------------------------------------------------------------
# Products Section
--------------------------------------------------------------*/
#products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  justify-content: flex-start;
  align-items: stretch;
}

.product-card {
  flex: 0 0 calc(25% - 20px);
  box-sizing: border-box;
  background: white;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.2s;
  min-height: 360px;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-name {
  font-weight: bold;
  margin-bottom: 6px;
}

.product-price {
  color: #0073aa;
  font-weight: bold;
  font-size: 18px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.view-product,
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  color: white;
  transition: background-color 0.3s ease;
}

.view-product {
  background-color: #0073aa;
}
.view-product:hover {
  background-color: #005f8a;
  color: white;
}

.whatsapp-button {
  background-color: #25D366;
}
.whatsapp-button:hover {
  background-color: #1ebe5d;
  color: white;
}

.view-product i,
.whatsapp-button i {
  margin-right: 8px;
  font-size: 16px;
}

/* Loading and error */
#loading {
  margin-bottom: 20px;
  font-style: italic;
}

#error {
  color: red;
  margin-bottom: 20px;
}

#showMoreBtn {
  margin: 20px auto;
  display: block;
  padding: 10px 20px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
#showMoreBtn:hover {
  background-color: #005f8a;
}

.products-wrapper {
  position: relative;
  min-height: 200px;
}

.loader-text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.2rem;
  color: #dbdbdb;
  font-weight: 500;
}

/*--------------------------------------------------------------
# Responsive Product Grid
--------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
  .product-card {
    flex: 0 0 calc(33.33% - 20px);
  }
}

@media screen and (max-width: 768px) {
  .left-column {
    display: none;
  }

  .right-column {
    width: 100%;
  }

  .product-card {
    flex: 0 0 calc(50% - 20px); /* Two products per row */
  }

  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

@media screen and (max-width: 480px) {
  .product-card {
    flex: 0 0 100%;
  }
}
