/* Fresh AOV Bump – Add To Cart Popup */
.fab-atc-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.fab-atc-popup.fab-atc-popup--open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-atc-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  cursor: pointer;
}

.fab-atc-popup__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--fab-radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fab-popup-in .2s ease;
}

@keyframes fab-popup-in {
  from { opacity: 0; transform: scale(.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.fab-atc-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0;
  z-index: 1;
  transition: color var(--fab-transition);
}

.fab-atc-popup__close:hover {
  color: #333;
}

.fab-atc-popup__content {
  padding: 20px 20px 12px;
  overflow-y: auto;
  flex: 1;
}

.fab-atc-popup__added {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fff5;
  border: 1px solid #b2dfcb;
  border-radius: var(--fab-radius);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.fab-atc-popup__added-icon {
  width: 28px;
  height: 28px;
  background: var(--fab-success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.fab-atc-popup__added-msg {
  font-weight: 600;
  color: #1e5e38;
  margin: 0;
  font-size: 15px;
}

.fab-atc-popup__cross-sells-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.fab-atc-popup__cross-sells-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.fab-atc-popup__cs-item {
  border: 1px solid var(--fab-border);
  border-radius: var(--fab-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow var(--fab-transition);
}

.fab-atc-popup__cs-item:hover {
  box-shadow: var(--fab-shadow);
}

.fab-atc-popup__cs-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.fab-atc-popup__cs-info {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.fab-atc-popup__cs-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fab-atc-popup__cs-name:hover {
  color: var(--fab-primary);
}

.fab-atc-popup__cs-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--fab-primary);
}

.fab-atc-popup__cs-atc {
  margin-top: auto;
  font-size: 11px !important;
  padding: 5px 6px !important;
  width: 100%;
  text-align: center;
}

.fab-atc-popup__loading {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 13px;
}

.fab-atc-popup__footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--fab-border);
  background: #fafafa;
}

.fab-atc-popup__continue {
  flex: 1;
  text-align: center;
}

.fab-atc-popup__cart {
  flex: 1;
  text-align: center;
}

body.fab-popup-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .fab-atc-popup__footer {
    flex-direction: column-reverse;
  }

  .fab-atc-popup__cross-sells-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
