/* ── Fair.goodness — Product Slider ── */
/* Designed to match ecosoap theme style */

.fg-product-slider-section {
  padding: 48px 16px;
  background: transparent;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Section Header ── */
.fg-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.fg-section-header__inner { flex: 1; }

.fg-section-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-gold);
  display: block;
  margin-bottom: 6px;
}
.fg-section-title {
  font-family: var(--fg-font-serif);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 400;
  color: #3a3a3a;
  margin: 0 0 4px;
  line-height: 1.2;
}
.fg-section-subtitle {
  font-size: 13px;
  color: #888;
  margin: 0;
  font-weight: 300;
}

/* ── Navigation arrows ── */
.fg-slider-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fg-slider-prev,
.fg-slider-next {
  width: 38px; height: 38px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}
.fg-slider-prev:hover,
.fg-slider-next:hover {
  border-color: var(--fg-brown);
  background: var(--fg-brown);
  color: #fff;
}

/* ── Category filter tabs ── */
.fg-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 24px;
  padding-bottom: 4px;
}
.fg-filter-tabs::-webkit-scrollbar { display: none; }

.fg-filter-tab {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid #ddd;
  background: transparent;
  color: #777;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 20px;
}
.fg-filter-tab:hover,
.fg-filter-tab.active {
  background: #3a3a3a;
  border-color: #3a3a3a;
  color: #fff;
}

/* ── Swiper container ── */
.fg-products-swiper {
  overflow: hidden;
  padding-bottom: 4px;
}

/* ── Product Card ── */
.fg-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.fg-product-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* Image */
.fg-product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f0ea;
}
.fg-product-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fg-product-card:hover .fg-product-card__image {
  transform: scale(1.05);
}
.fg-product-card__no-image {
  width: 100%; height: 100%;
  display: flex; align-items: center;
  justify-content: center;
  font-size: 36px;
  background: #f5f0ea;
}

/* Badge */
.fg-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.fg-badge--new      { background: #8A9E85; color: #fff; }
.fg-badge--sale     { background: #c0392b; color: #fff; }
.fg-badge--featured { background: #C9A96E; color: #fff; }

/* Quick view on hover */
.fg-product-card__hover-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
  display: flex;
  justify-content: center;
}
.fg-product-card:hover .fg-product-card__hover-actions {
  opacity: 1;
  transform: translateY(0);
}
.fg-product-card__view {
  background: rgba(255,255,255,0.92);
  border: none;
  color: #3a3a3a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.fg-product-card__view:hover { background: #fff; }

/* Card info */
.fg-product-card__info {
  padding: 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fg-product-card__cat {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-gold);
  display: block;
}
.fg-product-card__title {
  font-family: var(--fg-font-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
  flex: 1;
}
.fg-product-card__title a {
  color: #3a3a3a;
  text-decoration: none;
  transition: color 0.2s;
}
.fg-product-card__title a:hover { color: var(--fg-brown); }

/* Stars */
.fg-product-card__rating { display: flex; align-items: center; gap: 3px; }
.fg-stars { display: flex; gap: 1px; }
.fg-star { color: #ddd; font-size: 11px; line-height: 1; }
.fg-star.filled { color: #e8a838; }
.fg-rating-count { font-size: 11px; color: #aaa; margin-left: 3px; }

/* Footer: price + ATC */
.fg-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

/* Price */
.fg-price {
  font-family: var(--fg-font-serif);
  font-size: 17px;
  font-weight: 400;
  color: #3a3a3a;
}
.fg-price del {
  font-size: 13px;
  color: #aaa;
  font-weight: 300;
}
.fg-price ins {
  text-decoration: none;
  color: #c0392b;
}

/* Add to cart */
.fg-add-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #3a3a3a;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.25s;
  white-space: nowrap;
}
.fg-add-to-cart:hover {
  background: #3a3a3a;
  color: #fff;
}
.fg-add-to-cart.fg-adding {
  opacity: 0.5;
  pointer-events: none;
}
.fg-add-to-cart.fg-added {
  background: #8A9E85;
  border-color: #8A9E85;
  color: #fff;
}

/* ── No products message ── */
.fg-no-products {
  text-align: center;
  padding: 40px;
  color: #aaa;
  font-size: 14px;
}

/* ── Mobile specific ── */
@media (max-width: 480px) {
  .fg-product-slider-section {
    padding: 32px 12px;
  }
  .fg-section-title {
    font-size: 20px;
  }
  .fg-product-card__info {
    padding: 10px 10px 12px;
  }
  .fg-product-card__title {
    font-size: 13px;
  }
  .fg-price {
    font-size: 15px;
  }
  .fg-add-to-cart {
    padding: 6px 10px;
    font-size: 9px;
  }
  /* Hide filter tabs on very small screens - show scroll */
  .fg-filter-tabs {
    gap: 5px;
  }
  .fg-filter-tab {
    padding: 6px 12px;
    font-size: 10px;
  }
}