/* ═══════════════════════════════════════════════════
   Fair.goodness — Home Widgets CSS
   ═══════════════════════════════════════════════════ */

:root {
  --fg-olive:      #4f6f52;
  --fg-olive-dark: #2f4a33;
  --fg-olive-lt:   #eef3ee;
  --fg-sand:       #C4A882;
  --fg-parchment:  #F5F0E8;
  --fg-beige:      #e8e0d5;
  --fg-text-dark:  #1a1a1a;
  --fg-text-mid:   #4b5563;
  --fg-text-light: #9ca3af;
  --fg-sans:       'Plus Jakarta Sans', system-ui, sans-serif;
  --fg-serif:      'Cormorant Garamond', Georgia, serif;
}

/* ═══════════════════════════════════════════════════
   SHARED SECTION HEADER
   ═══════════════════════════════════════════════════ */
.fg-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.fg-section-eyebrow {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-olive);
  background: var(--fg-olive-lt);
  border: 1px solid rgba(79,111,82,.2);
  border-radius: 50px; padding: 4px 12px;
  margin-bottom: 8px;
}
.fg-section-title {
  font-family: var(--fg-sans);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700; color: var(--fg-text-dark);
  margin: 0; line-height: 1.25;
}
.fg-section-subtitle {
  font-size: 14px; color: var(--fg-text-light);
  margin: 6px 0 0; line-height: 1.5;
}

/* Slider nav buttons */
.fg-slider-nav {
  display: flex; gap: 8px; flex-shrink: 0;
}
.fg-slider-prev,
.fg-slider-next {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-beige);
  background: #fff;
  color: var(--fg-text-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.fg-slider-prev:hover,
.fg-slider-next:hover {
  background: var(--fg-olive);
  border-color: var(--fg-olive);
  color: #fff;
}
.fg-slider-prev.swiper-button-disabled,
.fg-slider-next.swiper-button-disabled {
  opacity: .35; cursor: default;
}

/* ═══════════════════════════════════════════════════
   CATEGORY SLIDER — already in widget file
   Additional overrides if needed
   ═══════════════════════════════════════════════════ */
.fg-cats-section { font-family: var(--fg-sans); }

/* ═══════════════════════════════════════════════════
   PRODUCT SLIDER / CARDS
   ═══════════════════════════════════════════════════ */
.fg-product-slider-section {
  font-family: var(--fg-sans);
  padding: 20px 0;
}

/* Filter tabs */
.fg-filter-tabs {
  display: flex; flex-wrap: nowrap;
  gap: 8px; overflow-x: auto;
  padding-bottom: 4px; margin-bottom: 20px;
  scrollbar-width: none;
}
.fg-filter-tabs::-webkit-scrollbar { display: none; }
.fg-filter-tab {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--fg-beige);
  background: #fff;
  font-family: var(--fg-sans);
  font-size: 12px; font-weight: 600;
  color: var(--fg-text-mid);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.fg-filter-tab:hover { border-color: var(--fg-olive); color: var(--fg-olive); }
.fg-filter-tab.active {
  background: var(--fg-olive); border-color: var(--fg-olive);
  color: #fff;
}

/* Product card */
.fg-product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--fg-beige);
  transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
}
.fg-product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

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

/* Badge */
.fg-product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--fg-olive); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 50px;
  z-index: 1;
}
.fg-product-badge--new   { background: #3b82f6; }
.fg-product-badge--sale  { background: #ef4444; }

/* Hover actions */
.fg-product-card__hover-actions {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18);
  opacity: 0; transition: opacity .25s;
}
.fg-product-card:hover .fg-product-card__hover-actions { opacity: 1; }
.fg-product-card__view {
  background: #fff; color: var(--fg-olive);
  font-size: 12px; font-weight: 700;
  padding: 9px 22px; border-radius: 50px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.fg-product-card__view:hover {
  background: var(--fg-olive); color: #fff;
}

/* Info */
.fg-product-card__info {
  padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.fg-product-card__cat {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-olive);
}
.fg-product-card__title {
  font-size: 13px; font-weight: 600;
  color: var(--fg-text-dark);
  margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.fg-product-card__title a {
  color: inherit; text-decoration: none;
}
.fg-product-card__title a:hover { color: var(--fg-olive); }

/* Rating */
.fg-product-card__rating {
  display: flex; align-items: center; gap: 4px;
}
.fg-stars { color: #f59e0b; font-size: 11px; letter-spacing: .5px; }
.fg-rating-count { font-size: 10px; color: var(--fg-text-light); }

/* Footer: price + ATC */
.fg-product-card__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: auto; padding-top: 8px;
}
.fg-price {
  font-size: 15px; font-weight: 700; color: var(--fg-text-dark);
}
.fg-price del {
  font-size: 12px; font-weight: 400; color: var(--fg-text-light);
  margin-right: 4px; text-decoration: line-through;
}
.fg-price ins { text-decoration: none; }

/* ATC circle button */
.fg-add-to-cart {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--fg-olive);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  transition: background .2s, transform .1s;
}
.fg-add-to-cart:hover  { background: var(--fg-olive-dark); }
.fg-add-to-cart:active { transform: scale(.93); }
.fg-add-to-cart.fg-adding { opacity: .6; }
.fg-add-to-cart.fg-added  { background: #22c55e; }

/* No products */
.fg-no-products {
  text-align: center; color: var(--fg-text-light);
  padding: 40px; font-size: 14px;
}