
// .q-products {
//   margin-top: var(--margin-top, 80px);
//   margin-bottom: var(--margin-bottom, 80px);
// }

.q-products.product-slider .container {
  overflow: hidden;
}

/* Header Styles */
.q-products .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.q-products .section-title {
  // font-size: clamp(1.125rem, 2vw + 0.5rem, 2.2rem);
  // font-weight: 700;
  margin: 0;
  // line-height: 1.2;
  color: var(--products-title-color);
}

.q-products .section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* View All Button Styles */
.q-products .view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: clamp(0.875rem, 1.5vw + 0.3rem, 1.4rem);
  font-weight: 500;
  transition: all 0.3s ease;
  direction: rtl;
  white-space: nowrap;
  color: var(--products-link-color);
}

.q-products .view-all-link:hover {
  opacity: 0.8;
  transform: translateX(-3px);
}

.q-products .view-all-link svg {
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.q-products .view-all-link:hover svg {
  transform: translateX(-3px);
}

[dir="ltr"] .q-products .view-all-link {
  direction: ltr;
  flex-direction: row-reverse;
}

[dir="ltr"] .q-products .view-all-link:hover {
  transform: translateX(3px);
}

[dir="ltr"] .q-products .view-all-link:hover svg {
  transform: translateX(3px) scaleX(-1);
}

[dir="ltr"] .q-products .view-all-link svg {
  transform: scaleX(-1);
}


/* Swiper Navigation Buttons */
.q-products .btns {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.q-products .swiper-button-prev-custom-products,
.q-products .swiper-button-next-custom-products {
  position: static;
  width: 42px;
  height: 42px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--white-color);
  font-size: 1.5rem;
  background-color: var(--primary-color) !important;
  opacity: 1;
  transform: none;
}


// .q-products .swiper-button-prev-custom-products {
//   background-color: #5b1f63;
// }

.q-products .swiper-button-prev-custom-products:hover,
.q-products .swiper-button-next-custom-products:hover {
  opacity: 0.9;
}

.q-products .swiper-button-disabled,
.q-products  .swiper-button-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background-color: var(--secondary-color-alt13) !important;

}

/* Swiper Container */
.q-products .products-swiper {
  direction: rtl;
  overflow: hidden;
  padding-top: 8px;
}

.q-products .products-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.q-products .products-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.q-products .custom-thumb-item {
  margin-bottom: 10px;
}

.q-products .prod-col,
.q-products .cards {
  height: 100%;
}

.q-products .cards {
  display: flex;
  padding: 0;
}

.q-products .product-card {
  // height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height:440px ;
}

.q-products .product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  flex-shrink: 0;
}

.q-products .product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.q-products .product-card:hover .product-card-image {
  transform: scale(1.05);
}

.q-products .product-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}

.q-products .product-title-text {
  min-height: 1.4em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.q-products .content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.q-products .product-card-rating-wrapper {
  min-height: 20px;
}

.q-products .product-crd-spec {
  // min-height: 78px;
}

.q-products .add-to-cart {
  margin-top: auto;
}

.q-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.q-products .product-grid .prod-col {
  display: flex;
  height: 100%;
}

.q-products .no-products {
  text-align: center;
  padding: 40px 0;
  color: var(--secondary-color-alt0);
  font-size: clamp(0.9rem, 1.2vw + 0.4rem, 1.1rem);
}

/* Popup Product Details */
.q-products .popup-product-details {
  right: -125px;
  width: 3%;
}

.q-products .popup-product-details .popup-content {
  width: 30%;
}

/* Responsive Design */
@media (max-width: 992px) {
  .q-products .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .q-products .row_prod .prod_item {
    aspect-ratio: 1 / 2 !important;
  }
}

@media (max-width: 768px) {
  .q-products .popup-product-details {
    right: -445px;
  }
}

@media (max-width: 767px) {
  .q-products .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }

  .q-products .section-head {
    margin-bottom: 20px;
  }

  .q-products .view-all-link {
    padding: 8px 16px;
  }
  
  .q-products .view-all-link svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .q-products .view-all-link {
    padding: 6px 12px;
    gap: 6px;
  }
  
  .q-products .view-all-link svg {
    width: 16px;
    height: 16px;
  }
}
