/* Best Sellers Immersive Rail Slider Widget Styles */
.tbe-bs-section {
  position: relative;
  width: 100%;
  padding: 2.5rem 0;
  box-sizing: border-box;
  background: transparent;
}

/* Immersive Snap-Scroll Rail */
.tbe-bs-rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 1rem;
  padding: 1rem clamp(1.5rem, 5vw, 5rem) 2.5rem;
  box-sizing: border-box;
}

.tbe-bs-rail::-webkit-scrollbar {
  display: none;
}

.tbe-bs-card {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  width: clamp(200px, 20vw, 280px);
  height: clamp(340px, 52vh, 520px);
  scroll-snap-align: center;
  border-radius: 16px;
  background: #25201c;
  cursor: pointer;
  transition: width 500ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 300ms ease, transform 200ms ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.tbe-bs-card.is-active {
  width: clamp(260px, 28vw, 380px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tbe-bs-card.is-hovered:not(.is-active) {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
  transform: translateY(-4px);
}

.tbe-bs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tbe-bs-card:hover .tbe-bs-card-img {
  transform: scale(1.04);
}

.tbe-bs-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.20) 50%, transparent 100%);
  pointer-events: none;
}

.tbe-bs-card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #a67c52;
  opacity: 0.5;
  transition: opacity 400ms ease;
}

.tbe-bs-card.is-active .tbe-bs-card-accent-bar {
  opacity: 1;
}

.tbe-bs-badge-top-left {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
}

.tbe-bs-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

.tbe-bs-price-top-right {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2;
}

.tbe-bs-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
}

.tbe-bs-card-bottom {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  right: 1.4rem;
  z-index: 2;
}

.tbe-bs-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.3rem 0;
}

.tbe-bs-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.tbe-bs-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  transition: font-size 500ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tbe-bs-card.is-active .tbe-bs-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.tbe-bs-add-btn {
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1613;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms ease, transform 150ms ease;
  white-space: nowrap;
}

.tbe-bs-add-btn:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.tbe-bs-add-btn.added {
  background: #a67c52;
  color: #ffffff;
}

/* Slider Navigation Controls */
.tbe-bs-nav-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 clamp(1.5rem, 5vw, 5rem) 1.25rem;
}

.tbe-bs-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(139, 115, 85, 0.3);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #8b7355;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
}

.tbe-bs-nav-btn:hover {
  background: #8b7355;
  color: #ffffff;
  border-color: #8b7355;
  transform: translateY(-2px);
}
