.section-head {
  margin-bottom: 2rem;
}

.g-products .g-products-arrows {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
  justify-content: flex-end;
}

/* Products arrows - scoped to prevent Swiper global conflicts */
.g-products .g-products-arrows [class*="g-products-"] {
  width: 44px;
  height: 44px;
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.g-products .g-products-arrows [class*="g-products-prev-"],
.g-products .g-products-arrows [class*="g-products-next-"] {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
}

.g-products .g-products-arrows [class*="g-products-"] i {
  color: var(--primary-color);
  font-size: 18px;
  transition: color 0.25s ease;
}

.g-products .g-products-arrows [class*="g-products-"]:hover {
  border-color: var(--sub-primary-color-light);
}

.g-products .g-products-arrows [class*="g-products-"]:hover i {
  color: var(--primary-color);
}

.g-products-section .g-products-arrows [class*="g-products-"] .swiper-button-disabled {
  border: 1px solid gray;
  color: gray;
  opacity: 0.6;
}

.center-products {
  display: flex;
  justify-content: center;
}

.g-products-section h2 {
  display: flex;
  justify-content: center;
}

.g-products-section .show-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}

.show-all-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
}

.g-products-section {
  margin-bottom: 25px;
}

.g-products-section .swiper {
  padding-bottom: 10px;
}

.swiper-pagination-bullet {
  background-color: var(--color-primary);
}

.show-all-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
}

.show-all-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: clamp(1.5rem, 2vw, 1rem);
    text-decoration: none;
    transition: all .3s ease;
}

.image-title {
  background-image: url('{{ settings.section_title_background_title_background }}');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RTL/LTR support */
.ltr .g-products .g-products-arrows [class*="g-products-"] i {
  transform: rotate(180deg);
}

/* Hide Swiper default arrow content - scoped to Products section only */
.g-products .g-products-arrows [class*="g-products-"]::after {
  display: none !important;
}


/* Hide arrows on mobile */
@media (max-width: 768px) {
  .g-products .g-products-arrows {
    display: none !important;
  }

  .g-products {
    height: auto;
  }
}

.g-products .products-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Grid 4 columns */
.products-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .products-grid-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .products-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Swiper general fixes */
.products-slider .swiper-slide {
  height: 100%;
  display: flex;
}

.products-slider .swiper-slide>div {
  height: 100%;
  width: 100%;
}

.swiper,
swiper-container {
  height: 100%;
  overflow: hidden;
}



@media (max-width: 768px) {
  .content_img {
    height: 214px !important;
  }
}

.product-grid .container .row {
  display: grid !important;
}