/* TrendyPicker "Today's Pick" hero panel
   Ported from prototype styles/hero.css (.today-pick / .mini-pick blocks) and
   responsive-hero.css. The collapsible panel overlays the right side of the
   desktop main banner and shares its product data with the Special Deals grid
   (trendypicker-deals.js). Desktop only; hidden at <= 1120px.
   --purple is defined on #layout_body by trendypicker-deals.css. */

/* The PC banner becomes the positioning context for the overlay. */
#main-slide.wide_visual_slider.pc {
  position: relative;
}

.today-pick-toggle svg {
  display: block;
  width: 14px;
  height: 14px;
}

.today-pick-toggle svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.today-pick {
  --today-pick-height: 170.5px;
  --today-pick-collapsed-height: var(--today-pick-height);
  position: absolute;
  top: 200px;
  /* Flush to the right edge of the screen. */
  right: 0;
  z-index: 4;
  box-sizing: border-box;
  width: 318px;
  height: var(--today-pick-height);
  padding: 18px 20px 18px 24px;
  color: #fff;
  /* The hero slider is centered; keep the panel's text left-aligned. */
  text-align: left;
  background: rgba(16, 16, 16, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    width 0.3s ease,
    height 0.3s ease,
    padding 0.3s ease,
    border-radius 0.3s ease;
}

.today-pick.is-collapsed {
  width: 28px;
  height: var(--today-pick-height);
  padding: 0;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}

.today-pick.is-collapsed .today-pick-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 318px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s, 0.2s;
}

.today-pick-toggle {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: var(--today-pick-height);
  padding: 0;
  border: 0;
  border-radius: 8px 0 0 8px;
  color: #fff;
  background: rgba(16, 16, 16, 0.95);
  transform: translate(-100%, -50%);
  cursor: pointer;
  transition:
    left 0.3s ease,
    width 0.3s ease,
    height 0.3s ease,
    transform 0.3s ease,
    border-radius 0.3s ease;
}

.today-pick.is-collapsed .today-pick-toggle {
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 8px 0 0 8px;
  transform: translate(-50%, -50%);
}

.today-pick.is-collapsed .today-pick-toggle svg {
  transform: rotate(180deg);
}

.today-pick-panel {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease 0.08s,
    visibility 0s linear 0s;
}

.today-pick strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 20px;
}

.today-pick-viewport {
  overflow: hidden;
}

.today-pick-track {
  display: flex;
  transition: transform 0.45s ease;
}

.today-pick-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.mini-pick {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-thumb {
  display: grid;
  place-items: center;
  height: 68px;
  overflow: hidden;
  color: #fff;
  background: #202020;
  font-size: 12px;
  font-weight: 800;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-pick p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.25;
}

.mini-pick b {
  display: inline-block;
  margin-right: 6px;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  font-size: 11px;
  font-weight: 500;
}

.mini-pick em {
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.today-pick-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.today-pick-sold {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  text-align: left;
}

.today-pick-sold span[aria-hidden="true"] {
  color: var(--purple);
}

.today-pick-progress {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.today-pick-progress button {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.today-pick-progress button.is-active {
  background: var(--purple);
}

/* Desktop only — the deals grid carries Today's Pick on phone/tablet. */
@media only screen and (max-width: 1120px) {
  .today-pick {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .today-pick-track {
    transition: none;
  }
}
