/* Reuse your testimonial look, add the bits we need for products */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  text-align: center !important;
}

.product-card .product-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 14px;
}

.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.product-card .product-media:hover img { transform: scale(1.04); }

.product-card .sale-badge {
  position: absolute;
  inset-inline-start: 10px; inset-block-start: 10px; /* RTL-safe */
  background: #e60023; color: #fff; font-weight: 600;
  padding: 4px 8px; border-radius: 999px; font-size: 12px;
}

.product-card .testimonial-content { padding-inline: 2px; text-align: center; font-size: 24px; }
.product-card .product-title { font-size: 1.25rem; margin: 0 0 6px; line-height: 1.4; }
.product-card .product-title a { text-decoration: none; color: var(--accent-color); }

.product-card .price { font-weight: 400; }
.product-card .rating-stars { display: flex; align-items: center; gap: 6px; }

.product-card .product-actions { margin-top: auto; }
.product-card .actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Make bullets sit nicely below cards if needed */
#products-carousel .swiper-pagination { margin-top: 18px; }

/* Accent */
:root { --accent-green: var(--accent-color, #16a34a); }

/* Smaller cards (so 4 fit nicely), centered text, lighter weights */
.product-card { font-size: 0.95rem; }
.product-card .testimonial-content { text-align: center; }
.product-card .product-title { font-weight: 500; text-align: center; }
.product-card .price { font-weight: 400; color: #818589; text-align: center; font-size: 1.25rem; }

/* Media + badge */
.product-card .product-media { aspect-ratio: 4/3; }
.product-card .sale-badge {
  color: #fff;
}

/* Rating color nudge */
.product-card .rating-stars .star-rating,
.product-card .rating-stars .star-rating span { color: var(--accent-green); }

/* Actions: keep Bootstrap look, but override any .container .btn weirdness */
.testimonials.section .product-card .actions-grid .btn{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100% !important;
  padding: .55rem .75rem;
  line-height: 1.2;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap; /* avoid two-line labels */
  color: #fff;
}

/* Light button styled as accent-green */
.btn-accent {
  color: var(--accent-green);
  border-color: rgba(0,0,0,.08);
  background: rgba(22,163,74,.08);
}
.btn-accent:hover,
.btn-accent:focus {
  color: #fff;
  background: rgba(22,163,74,.12);
  border-color: rgba(0,0,0,.12);
}

/* Button icons */
.testimonials.section .product-card .actions-grid .btn i{
  font-size: 1.2rem;
  margin-inline-end: 3px; /* RTL-safe spacing before text */
  color: #000000;
}


/* Pagination bullets in accent */
#products-carousel .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--accent-green) !important;
}

/* Tighter overall spacing for 4-up layout */
#products-carousel .swiper-wrapper { padding-block-end: 4px; }
#products-carousel .swiper-pagination { margin-top: 24px; }

/* Mobile: stack the two buttons; slightly smaller font to prevent wrapping */
@media (max-width: 576px) {
  .product-card .actions-grid { grid-template-columns: 1fr; }
  .testimonials.section .product-card .actions-grid .btn {
    font-size: 0.95rem;
  }
}

#products-carousel.section{
    padding: 0;
}


.testimonials.section .product-card .actions-grid .btn{
    outline: 2px solid transparent;
    outline-offset: 0;
    color: #000000;
    border: 1px solid #6c757d;
}
.testimonials.section .product-card .actions-grid .btn:hover{
  border: 1px solid #bbbbbb;
  box-shadow:0 22px 60px rgba(0,0,0,.14)!important;
}

.actions-grid .ajax_add_to_cart{
  background: #f8f9fa !important;
  color: #000000;
  border: 1px solid #6c757d !important;
}
.actions-grid .ajax_add_to_cart:hover{
  border: 1px solid #bbbbbb !important;
  background: #d3d4d5 !important;
  box-shadow:0 22px 60px rgba(0,0,0,.14)!important;

}