/* ─────────────────────────────────────────────────────────────
   Best Sellers — page-best-sellers.css
   Variables: --fe-* only. Border-radius: 0 throughout.
   ───────────────────────────────────────────────────────────── */

/* ── Hero ──────────────────────────────────────────────────── */

.fe-bs-hero {
  background: var(--fe-cream-dark);
  padding: 140px 5% 48px;
  min-height: 28vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--fe-border);
}

.fe-bs-hero__eyebrow {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fe-gold);
  margin: 0 0 0.75rem;
}

.fe-bs-hero__title {
  font-family: var(--fe-font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  color: var(--fe-black);
  margin: 0 0 0.75rem;
  line-height: 1;
}

.fe-bs-hero__subtitle {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 14px;
  color: var(--fe-warm-gray);
  font-weight: 300;
  margin: 0;
}

/* ── Filter bar ────────────────────────────────────────────── */

.fe-bs-filters {
  position: sticky;
  top: var(--fe-nav-height);
  z-index: 90;
  background: var(--fe-white);
  border-bottom: 1px solid var(--fe-border);
}

.fe-bs-filters__inner {
  max-width: var(--fe-container-max);
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fe-bs-filters__inner::-webkit-scrollbar {
  display: none;
}

.fe-bs-filter-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-right: 1px solid var(--fe-border);
  padding: 0 20px;
}

.fe-bs-filter-group:first-child {
  padding-left: 0;
}

.fe-bs-filter-group:last-child {
  border-right: none;
}

.fe-bs-filter-group__label {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fe-warm-gray);
  margin-right: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fe-bs-filter-btn {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fe-warm-gray);
  background: none;
  border: none;
  border-radius: 0;
  padding: 18px 12px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.fe-bs-filter-btn:hover {
  color: var(--fe-black);
}

.fe-bs-filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--fe-gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.fe-bs-filter-btn.is-active {
  color: var(--fe-black);
  font-weight: 500;
}

.fe-bs-filter-btn.is-active::after {
  transform: scaleX(1);
}

/* Color dot — square per brand no-radius rule */
.fe-bs-filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Products section ──────────────────────────────────────── */

.fe-bs-section {
  background: var(--fe-white);
  padding: 48px 5% 80px;
}

.fe-bs-section__inner {
  max-width: var(--fe-container-max);
  margin: 0 auto;
}

/* ── Grid ──────────────────────────────────────────────────── */

.fe-bs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  background: var(--fe-white);
  transition: opacity 0.25s;
}

.fe-bs-grid.is-loading {
  opacity: 0.35;
  pointer-events: none;
}

/* ── Card ──────────────────────────────────────────────────── */

.fe-bs-card {
  background: var(--fe-white);
  border: none;
  box-shadow: none;
  padding-bottom: 1rem;
}

/* Image wrapper — linked, aspect-ratio square */
.fe-bs-card__image-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--fe-white);
  text-decoration: none;
}

/* The actual <img> */
.fe-bs-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fe-bs-card:hover .fe-bs-card__image {
  transform: scale(1.03);
}

/* Placeholder — shown when no product image exists */
.fe-bs-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--fe-cream-dark);
}

/* Badge — top left, outline gold */
.fe-bs-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--fe-font-body), sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fe-gold);
  border: 1px solid var(--fe-gold);
  padding: 3px 8px;
  pointer-events: none;
  z-index: 3;
  background: transparent;
}

/* Ranking number — top right, serif, gold, large */
.fe-bs-card__rank {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--fe-font-display), serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--fe-gold);
  opacity: 0.4;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
  letter-spacing: -0.02em;
}

/* Card info */
.fe-bs-card__info {
  padding: 0.75rem 0 0;
  background: transparent;
  border: none;
}

/* Name link */
.fe-bs-card__name {
  font-family: var(--fe-font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--fe-black);
  margin: 0 0 0.25rem;
  display: block;
  text-decoration: none;
  line-height: 1.3;
}

/* Price */
.fe-bs-card__price {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 13px;
  color: var(--fe-warm-gray);
}

.fe-bs-card__price del {
  opacity: 0.5;
  margin-right: 8px;
}

.fe-bs-card__price ins {
  text-decoration: none;
}

/* ── Empty state ───────────────────────────────────────────── */

.fe-bs-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  grid-column: 1 / -1;
  background: var(--fe-white);
}

.fe-bs-empty.is-visible {
  display: flex;
}

.fe-bs-empty__grifo {
  width: 60px;
  height: 60px;
  margin-bottom: 28px;
  opacity: 0.5;
}

.fe-bs-empty__grifo svg {
  width: 100%;
  height: 100%;
}

.fe-bs-empty__grifo--lg {
  width: 80px;
  height: 80px;
}

.fe-bs-empty__title {
  font-family: var(--fe-font-display), serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fe-black);
  margin: 0 0 16px;
}

.fe-bs-empty__sub {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--fe-warm-gray);
  margin: 0 0 36px;
  max-width: 400px;
  text-align: center;
}

.fe-bs-empty__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.fe-bs-empty__btn {
  display: inline-block;
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fe-white);
  background: var(--fe-black);
  border: 1px solid var(--fe-black);
  border-radius: 0;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.fe-bs-empty__btn:hover {
  background: var(--fe-gold);
  border-color: var(--fe-gold);
  color: var(--fe-white);
}

.fe-bs-empty__btn--outline {
  color: var(--fe-black);
  background: transparent;
  border-color: var(--fe-black);
}

.fe-bs-empty__btn--outline:hover {
  background: var(--fe-black);
  color: var(--fe-white);
}

/* ── Social proof ──────────────────────────────────────────── */

.fe-bs-proof {
  background: var(--fe-white);
  border-top: 1px solid var(--fe-border);
  padding: 88px 5%;
}

.fe-bs-proof__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.fe-bs-proof__eyebrow {
  display: block;
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fe-gold);
  margin-bottom: 52px;
}

.fe-bs-proof__quotes {
  display: flex;
  flex-direction: column;
}

.fe-bs-proof__divider {
  width: 40px;
  height: 1px;
  background: var(--fe-gold);
  margin: 40px auto;
  opacity: 0.6;
}

.fe-bs-proof__quote {
  margin: 0;
  padding: 0;
}

.fe-bs-proof__text {
  font-family: var(--fe-font-display), serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--fe-black);
  line-height: 1.65;
  margin: 0 0 16px;
}

.fe-bs-proof__author {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fe-warm-gray);
  font-style: normal;
}

/* ── CTA final ─────────────────────────────────────────────── */

.fe-bs-cta {
  background: var(--fe-cream-dark);
  padding: 96px 5%;
  text-align: center;
  border-top: 1px solid var(--fe-border);
}

.fe-bs-cta__title {
  font-family: var(--fe-font-display), serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 400;
  color: var(--fe-black);
  margin: 0 0 36px;
}

.fe-bs-cta__btn {
  display: inline-block;
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fe-white);
  background: var(--fe-black);
  border: 1px solid var(--fe-black);
  border-radius: 0;
  padding: 15px 44px;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s;
}

.fe-bs-cta__btn:hover {
  background: var(--fe-gold);
  border-color: var(--fe-gold);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .fe-bs-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }

  .fe-bs-card__rank {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .fe-bs-hero {
    padding: 3rem 1.5rem 2rem;
  }

  .fe-bs-section {
    padding: 32px 0 64px;
  }

  .fe-bs-filter-group {
    padding: 0 12px;
  }

  .fe-bs-filter-group__label {
    display: none;
  }

  .fe-bs-filter-btn {
    padding: 16px 8px;
    font-size: 0.66rem;
  }

  .fe-bs-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .fe-bs-card__info {
    padding: 0.75rem 0 0;
  }

  .fe-bs-proof {
    padding: 64px 5%;
  }

  .fe-bs-proof__text {
    font-size: 1.05rem;
  }
}
