/* ===========================================
   STICKY ADD TO CART — Premium Mobile Bar
   =========================================== */

.afif-sticky-atc {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
  padding: var(--space-sm) var(--space-md);
  transition: bottom var(--duration-normal) var(--ease-out);
  display: none;
}

.afif-sticky-atc.is-visible {
  bottom: 0;
}

/* Content layout */
.afif-sticky-atc__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 480px;
  margin: 0 auto;
}

/* Product info */
.afif-sticky-atc__info {
  flex: 1;
  min-width: 0;
}

.afif-sticky-atc__title {
  font-family: var(--afif-font);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--afif-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.afif-sticky-atc__price {
  font-family: var(--afif-font);
  font-weight: 800;
  font-size: 1rem;
  color: var(--afif-accent);
  line-height: 1.3;
}

.afif-sticky-atc__price del {
  color: var(--afif-text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  margin-right: 4px;
  opacity: 0.5;
}

.afif-sticky-atc__price ins {
  text-decoration: none;
  color: var(--afif-accent);
}

/* CTA Button */
.afif-sticky-atc__btn {
  background: var(--gradient-cta) !important;
  color: #fff !important;
  font-family: var(--afif-font);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-cta);
  position: relative;
  overflow: hidden;
}

/* Shine effect */
.afif-sticky-atc__btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.afif-sticky-atc__btn:hover::after {
  animation: afif-shine 0.6s ease-out;
}

@keyframes afif-shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

.afif-sticky-atc__btn:hover {
  background: var(--gradient-cta-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta-hover);
}

.afif-sticky-atc__btn:active {
  transform: translateY(0);
}

/* --- Mobile Only --- */
@media (max-width: 768px) {
  .afif-sticky-atc {
    display: block;
  }
}

/* --- Large Screens: Hidden --- */
@media (min-width: 769px) {
  .afif-sticky-atc {
    display: none !important;
  }
}

/* --- Extra Small --- */
@media (max-width: 380px) {
  .afif-sticky-atc__btn {
    padding: 10px 18px;
    font-size: 0.82rem;
  }

  .afif-sticky-atc__title {
    font-size: 0.75rem;
  }

  .afif-sticky-atc__price {
    font-size: 0.88rem;
  }
}
