/* ==========================================================================
   Sticky Add-to-Cart Bar — product pages only
   Appears when the main ATC button scrolls out of view
   ========================================================================== */

.sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 22, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

/* JS adds this class when main ATC is out of view */
.sticky-atc.visible {
  transform: translateY(0);
}

.sticky-atc__product {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
  flex: 1;
}

.sticky-atc__image {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-atc__info {
  min-width: 0;
}

.sticky-atc__title {
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-atc__price {
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 0.2rem;
}

.sticky-atc__button {
  flex-shrink: 0;
  white-space: nowrap;
}

@media screen and (max-width: 749px) {
  .sticky-atc {
    padding: 1rem 1.6rem;
    gap: 1.2rem;
  }

  .sticky-atc__image {
    display: none;
  }
}
