/* ==========================================================================
   NEXTGEN RECOMMENDED PRODUCTS SECTION STYLES
   ========================================================================== */

.ng-prod-wrapper {
  width: min(100% - 2rem, 1170px);
  margin: 4rem auto;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Section Header */
.ng-prod-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.ng-prod-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ng-prod-title {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #000000;
  margin: 0;
}

.ng-prod-subtitle {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ng-coral, #FEAC97);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Desktop Arrow Navigation Controls */
.ng-prod-nav-arrows {
  display: flex;
  gap: 0.75rem;
}

.ng-prod-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000000;
  transition: all 0.3s ease;
}

.ng-prod-arrow-btn:hover {
  background: var(--ng-coral, #FEAC97);
  color: #ffffff;
  border-color: var(--ng-coral, #FEAC97);
  transform: translateY(-2px);
}

.ng-prod-arrow-btn svg {
  width: 18px;
  height: 18px;
}

/* Horizontal Slider Track Container */
.ng-prod-slider-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.ng-prod-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  width: 100%;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.ng-prod-grid::-webkit-scrollbar {
  display: none;
}

/* Card Container */
.ng-prod-card {
  flex: 0 0 320px;
  min-width: 320px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 340px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.ng-prod-card:hover {
  transform: translateY(-4px);
}

/* Product Background Image */
.ng-prod-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* White Pill Button Overlay at Bottom */
.ng-prod-pill-btn {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 50px;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  color: #000000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ng-prod-pill-btn:hover {
  background: #f8f8f8;
  transform: scale(1.02);
}

.ng-prod-icon {
  width: 18px;
  height: 18px;
  color: var(--ng-coral, #FEAC97);
  flex-shrink: 0;
}

/* Modal Specific Adjustments */
.ng-prod-modal-card {
  max-width: 540px;
}

.ng-prod-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ng-prod-modal-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.ng-prod-modal-title {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: #000000;
  margin: 0 0 0.2rem 0;
}

.ng-prod-modal-badge {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: #43c0ca;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ng-prod-modal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ng-prod-detail-block h4 {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ng-coral, #FEAC97);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.3rem 0;
}

.ng-prod-detail-block p {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  line-height: 1.5;
  color: #333333;
  margin: 0;
  font-weight: 500;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .ng-prod-wrapper {
    width: min(100% - 1rem, 1170px);
  }
  .ng-prod-nav-arrows {
    display: none;
  }
  .ng-prod-card {
    flex: 0 0 260px;
    min-width: 260px;
    height: 300px;
    padding: 0.6rem;
  }
  .ng-prod-pill-btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.72rem;
  }
}

/* Hide arrows by default */
.ng-testi-nav-arrows {
  display: none !important;
}

/* Show arrows ONLY when overflowing on desktop */
.ng-testi-nav-arrows.has-overflow {
  display: flex !important;
}

/* Completely force hidden on mobile */
@media (max-width: 768px) {
  .ng-testi-nav-arrows,
  .ng-testi-nav-arrows.has-overflow {
    display: none !important;
  }
}
/* Hide arrows by default */
.ng-prod-nav-arrows {
  display: none !important;
}

/* Show arrows ONLY when overflowing on desktop */
.ng-prod-nav-arrows.has-overflow {
  display: flex !important;
}

/* Completely force hidden on mobile */
@media (max-width: 768px) {
  .ng-prod-nav-arrows,
  .ng-prod-nav-arrows.has-overflow {
    display: none !important;
  }
}
/* Screen-reader accessible image descriptions */
.ng-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}