/* css/concierge/bottle-rails.css */
/* Clean White + Black Rails Layout for Bottle Service Takeover */

.bt-rails-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 24px 0 70px 0;
  box-sizing: border-box;
}

/* Rail Header */
.bt-rail-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.bt-rail-header {
  padding: 0 20px 14px 20px;
  box-sizing: border-box;
}

.bt-rail-title {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111317;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.bt-rail-title span {
  white-space: nowrap;
}

.bt-rail-arrow {
  color: #8E929B;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.bt-rail-title:hover .bt-rail-arrow {
  transform: translateX(3px);
  color: #111317;
}

.bt-rail-desc {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #717680;
  line-height: 1.35;
}

/* Horizontal Scroller (Peek Effect) */
.bt-rail-scroller {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.bt-rail-scroller::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Bottle Card */
.bt-bottle-card {
  flex: 0 0 178px;
  width: 178px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Wider Card for Duo Bottle Combinations to comfortably fit pair images and titles */
.bt-bottle-card.is-duo-card {
  flex: 0 0 215px;
  width: 215px;
}

/* Card Media Stage (Clean white background, transparent bottle stage) */
.bt-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 0.2s ease;
}

.bt-bottle-card:hover .bt-card-media {
  transform: translateY(-2px);
}

.bt-bottle-img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.12));
  transition: transform 0.28s ease;
}

.bt-bottle-card:hover .bt-bottle-img {
  transform: scale(1.06);
}

/* Staggered Dual-Bottle Presentation Stage */
.bt-duo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-duo-primary {
  position: relative;
  z-index: 2;
  transform: translateX(-16%) translateY(2%) scale(0.92);
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.16));
  transition: transform 0.28s ease;
}

.bt-duo-secondary {
  position: absolute;
  z-index: 1;
  transform: translateX(18%) translateY(-4%) scale(0.85);
  opacity: 0.95;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.12));
  transition: transform 0.28s ease;
}

.bt-bottle-card:hover .bt-duo-primary {
  transform: translateX(-18%) translateY(0) scale(0.98);
}

.bt-bottle-card:hover .bt-duo-secondary {
  transform: translateX(20%) translateY(-6%) scale(0.90);
}

/* Flat Deal Badge (Clean top-left pill, no animations) */
.bt-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #FFE600;
  color: #111317;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Favorite Heart Button (Top right of stage) */
.bt-favorite-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #8E929B;
  transition: transform 0.15s ease, color 0.15s ease;
  z-index: 2;
  padding: 0;
  outline: none;
}

.bt-favorite-btn:hover {
  transform: scale(1.15);
  color: #111317;
}

.bt-favorite-btn.active {
  color: #E02424;
}

.bt-favorite-btn.active svg {
  fill: #E02424;
}

/* Bottle Typography & Details (Clean vertical stacking, generous breathing room) */
.bt-card-info {
  padding: 12px 2px 0 2px;
  display: flex;
  flex-direction: column;
}

.bt-card-title {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.28;
  color: #111317;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.45em;
}

.bt-card-meta {
  margin: 3px 0 0 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-card-price-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.bt-price-was {
  text-decoration: line-through;
  color: #9CA3AF;
  font-size: 0.8rem;
  font-weight: 500;
}

.bt-price-now {
  font-weight: 800;
  color: #111317;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.bt-card-perk {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #4B5563;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Spacer */
.bt-rail-bottom-spacer {
  height: 40px;
  width: 100%;
}

/* Responsive Scaling for Tablets/Desktops */
@media (min-width: 640px) {
  .bt-bottle-card {
    flex: 0 0 205px;
    width: 205px;
  }

  .bt-bottle-card.is-duo-card {
    flex: 0 0 245px;
    width: 245px;
  }

  .bt-card-media {
    height: 230px;
  }

  .bt-rail-title {
    font-size: 1.5rem;
  }

  .bt-card-title {
    font-size: 1.08rem;
  }

  .bt-price-now {
    font-size: 1.15rem;
  }
}
