/**
 * Pricing Slider Custom CSS
 * Contains styling for pricing product slider
 */

.pricing-section .pricing-box-items {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-section .pricing-box-items .pricing-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 0;
}

.pricing-section .pricing-box-items .pricing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.pricing-section .pricing-box-items .pricing-content {
  padding: 20px;
  margin: 0 20px;
  margin-top: -30px;
  position: relative;
  z-index: 9;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pricing-section .pricing-box-items .pricing-content::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  content: "";
  background-color: var(--white);
  box-shadow: var(---box-shadow);
  z-index: -1;
  height: 83%;
  border-radius: 5px;
}

.pricing-section .pricing-box-items .pricing-content h3 {
  margin-bottom: 5px;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  max-height: 2.8em;
  line-height: 1.4;
}

.pricing-section .pricing-box-items .pricing-content h3 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.pricing-section .pricing-box-items .pricing-content h3 a:hover {
  color: var(--theme);
}

.pricing-section .pricing-box-items .pricing-content p {
  flex-grow: 1;
  margin-bottom: 0;
}

.pricing-section .pricing-box-items .pricing-content h4 {
  background-color: var(--theme);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 5px;
  display: inline-block;
  margin-top: auto;
  margin-bottom: -25px;
}

/* Pricing slider nav buttons */
.pricing-section .pricing-array-button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.pricing-section .pricing-array-button .pricing-array-prev,
.pricing-section .pricing-array-button .pricing-array-next {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--white);
  color: var(--header);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pricing-section .pricing-array-button .pricing-array-prev:hover,
.pricing-section .pricing-array-button .pricing-array-next:hover {
  background-color: var(--theme);
  border-color: var(--theme);
  color: var(--white);
}

@media (max-width: 575px) {
  .pricing-section .pricing-array-button {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .pricing-section .pricing-array-button {
    display: none;
  }

  .pricing-section .pricing-slider-dot {
    margin-top: 24px;
  }
}

/* ============================================
   Products By Category Section
   ============================================ */

/* ============================================
  Products By Category Section
  ============================================ */

.products-by-category-section {
  background-color: #f9f9f9;
}

/* Category Tabs */
.category-tabs-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.category-tabs-scroll {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

.child-category-tabs-wrapper {
  width: 100%;
  display: none;
}

.child-category-tabs-scroll {
  display: none;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  padding: 8px 10px;
  -webkit-overflow-scrolling: touch;
}

.child-category-tabs-scroll.active {
  display: flex;
}

.category-tab {
  padding: 10px 20px;
  border: 2px solid var(--border);
  background-color: var(--white);
  color: var(--text);
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.child-category-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background-color: var(--white);
  color: var(--text);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.category-tab:hover {
  border-color: var(--theme);
  color: var(--theme);
}

.category-tab.active {
  background-color: var(--theme);
  color: var(--white);
  border-color: var(--theme);
}

.child-category-tab:hover,
.child-category-tab.active {
  background-color: var(--theme);
  color: var(--white);
  border-color: var(--theme);
}

/* Products Grid */
.products-grid-wrapper {
  width: 100%;
}

.product-item {
  animation: fadeInUp 0.5s ease-out;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.product-item.hidden {
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  animation: none;
  pointer-events: none;
  display: none;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  .product-item {
    /* col-lg-4 is handled by Bootstrap */
  }
}

@media (max-width: 991px) {
  .category-tabs-scroll {
    gap: 8px;
    padding: 8px;
  }

  .child-category-tabs-scroll {
    gap: 8px;
    padding: 8px;
  }

  .category-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .child-category-tab {
    padding: 7px 14px;
    font-size: 12px;
  }

  /* col-md-6 is handled by Bootstrap */
}

@media (max-width: 767px) {
  .category-tabs-scroll {
    gap: 6px;
    padding: 6px;
  }

  .child-category-tabs-scroll {
    gap: 6px;
    padding: 6px;
  }

  .category-tab {
    padding: 6px 12px;
    font-size: 12px;
  }

  .child-category-tab {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* col-sm-6 is handled by Bootstrap */
}

@media (max-width: 575px) {
  .category-tabs-scroll {
    gap: 4px;
    padding: 4px;
    justify-content: flex-start;
  }

  .child-category-tabs-scroll {
    gap: 4px;
    padding: 4px;
  }

  .category-tab {
    padding: 5px 10px;
    font-size: 11px;
  }

  .products-by-category-section .section-title h2 {
    font-size: 24px;
  }
}
