/* ============================
   FAB — плавающая кнопка чата
   ============================ */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab__toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-pink);
  color: white;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(255, 80, 129, 0.42);
  transition: transform var(--t-base);
}
.fab__toggle:hover { transform: scale(1.08); }
.fab__toggle:active { transform: scale(0.95); }
.fab__icon-open, .fab__icon-close {
  position: absolute;
  transition: all var(--t-base);
}
.fab__icon-close { opacity: 0; transform: rotate(-90deg); }
.fab.open .fab__icon-open { opacity: 0; transform: rotate(90deg); }
.fab.open .fab__icon-close { opacity: 1; transform: rotate(0); }

.fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pink-400);
  opacity: 0.6;
  animation: fabPulse 2s ease-out infinite;
  pointer-events: none;
}
.fab.open .fab__pulse { display: none; }
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

.fab__menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--t-base);
}
.fab.open .fab__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--ink-900);
  padding: 10px 16px 10px 12px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: all var(--t-fast);
  opacity: 0;
  transform: translateX(20px);
}
.fab.open .fab__btn { opacity: 1; transform: translateX(0); }
.fab.open .fab__btn:nth-child(1) { transition-delay: 50ms; }
.fab.open .fab__btn:nth-child(2) { transition-delay: 100ms; }
.fab.open .fab__btn:nth-child(3) { transition-delay: 150ms; }
.fab.open .fab__btn:nth-child(4) { transition-delay: 200ms; }

.fab__btn svg {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}
.fab__btn:hover { transform: translateX(-4px) scale(1.03); box-shadow: 0 10px 28px rgba(0,0,0,0.18); }

.fab__btn--wa svg   { background: #25D366; }
.fab__btn--tg svg   { background: #229ED9; }
.fab__btn--ig svg   { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.fab__btn--call svg { background: var(--grad-pink); }

.fab__hint {
  position: absolute;
  right: 70px;
  bottom: 14px;
  background: var(--ink-900);
  color: white;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-base);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.fab__hint::after {
  content: '';
  position: absolute;
  right: -6px; bottom: 18px;
  width: 0; height: 0;
  border-left: 6px solid var(--ink-900);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.fab__hint.visible {
  opacity: 1;
  transform: translateX(-4px);
}

@media (max-width: 540px) {
  .fab { bottom: 16px; right: 14px; }
  .fab__toggle { width: 54px; height: 54px; }
  .fab__hint { display: none; }
}

/* ============================
   Social Proof popup
   ============================ */
.social-proof {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 150;
  background: white;
  border-radius: 16px;
  padding: 12px 36px 12px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(26, 19, 37, 0.18);
  border: 1px solid var(--ink-100);
  text-decoration: none;
  color: inherit;
  max-width: 320px;
  opacity: 0;
  transform: translateX(-20px) scale(0.95);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-proof.show { opacity: 1; transform: translateX(0) scale(1); }
.social-proof:hover { box-shadow: 0 16px 40px rgba(255, 80, 129, 0.22); border-color: var(--pink-200); }
.social-proof img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--ink-50);
  flex-shrink: 0;
}
.social-proof__body { min-width: 0; }
.social-proof__top {
  font-size: 11px;
  color: var(--ink-500);
}
.social-proof__top strong { color: var(--ink-900); font-weight: 700; }
.social-proof__top span { color: var(--pink-500); font-weight: 600; }
.social-proof__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-proof__ago {
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.social-proof__ago::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint-300);
}
.social-proof__close {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: transparent;
  border: none;
  color: var(--ink-300);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.social-proof__close:hover { color: var(--ink-900); }

@media (max-width: 540px) {
  .social-proof { left: 12px; right: 12px; max-width: none; bottom: 80px; }
}

/* ============================
   Sticky bottom add-to-cart
   ============================ */
.sticky-cart {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: white;
  border-top: 1px solid var(--ink-100);
  box-shadow: 0 -8px 24px rgba(26, 19, 37, 0.08);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  transform: translateY(120%);
  transition: transform var(--t-base);
}
.sticky-cart.visible { transform: translateY(0); }
.sticky-cart__info { flex: 1; min-width: 0; }
.sticky-cart__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cart__price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--pink-500);
  font-size: 17px;
  margin-top: 2px;
}
.sticky-cart__btn {
  background: var(--grad-pink);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 80, 129, 0.4);
  flex-shrink: 0;
}
.sticky-cart__btn:active { transform: scale(0.96); }

@media (min-width: 800px) {
  .sticky-cart { display: none; }
}

/* ============================
   Trust badges (footer)
   ============================ */
.trust-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-badges__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-right: 6px;
}
.trust-badge {
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-badge svg { width: 16px; height: 16px; }

/* ============================
   Promo countdown banner
   ============================ */
.promo-bar {
  background: linear-gradient(90deg, #1a1325 0%, #3d2e51 100%);
  color: white;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.promo-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  animation: promoShine 4s linear infinite;
}
@keyframes promoShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.promo-bar__content {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.promo-bar__badge {
  background: var(--grad-pink);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.promo-bar__timer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 540px) {
  .promo-bar { font-size: 12px; padding: 8px 12px; }
  .promo-bar__content { gap: 8px; }
}
