/* ══════════════════════════════════════════════
 * ALMA Swimwears — Cart Notification (Liquid Glass)
 * Style Belle des Pins × Glassmorphism
 * ══════════════════════════════════════════════ */

/* ── Hide default WooCommerce notices ── */
.woocommerce-message,
.woocommerce-info {
  display: none !important;
}

/* ── Notification container ── */
.alma-notif {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-16px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.alma-notif.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Liquid Glass card ── */
.alma-notif-inner {
  position: relative;
  width: 340px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.08),
    0 1.5px 0 rgba(255, 255, 255, 0.7) inset,
    0 -0.5px 0 rgba(0, 0, 0, 0.04) inset;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Subtle refraction highlight */
.alma-notif-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

/* ── Close button ── */
.alma-notif-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  color: #555 !important;
  padding: 0 !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  z-index: 2;
}

.alma-notif-close:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a1a !important;
}

/* ── Product row ── */
.alma-notif-product {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.alma-notif-img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(245, 245, 245, 0.6);
  flex-shrink: 0;
}

.alma-notif-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.alma-notif-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #1a1a1a;
  opacity: 0.5;
}

.alma-notif-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── Action buttons ── */
.alma-notif-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.alma-notif-btn {
  flex: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 0 !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  border: none !important;
  -webkit-font-smoothing: antialiased;
}

/* Primary — dark solid */
.alma-notif-btn-primary {
  background: rgba(26, 26, 26, 0.85) !important;
  color: #fff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.alma-notif-btn-primary:hover {
  background: rgba(26, 26, 26, 1) !important;
  opacity: 1 !important;
}

/* Ghost — glass outline */
.alma-notif-btn-ghost {
  background: rgba(255, 255, 255, 0.35) !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.alma-notif-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  opacity: 1 !important;
}

/* ── Exit animation ── */
.alma-notif.hiding {
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  pointer-events: none;
}

/* ── Progress bar (auto-dismiss) ── */
.alma-notif-progress {
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 1px;
  overflow: hidden;
  z-index: 1;
}

.alma-notif-progress-bar {
  height: 100%;
  background: rgba(26, 26, 26, 0.25);
  border-radius: 1px;
  width: 100%;
  transform-origin: left;
  animation: alma-notif-countdown 5s linear forwards;
}

@keyframes alma-notif-countdown {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Pause countdown on hover */
.alma-notif:hover .alma-notif-progress-bar {
  animation-play-state: paused;
}


/* ══════════════════════════════════════════════
 * RESPONSIVE
 * ══════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 768px) {
  .alma-notif {
    top: auto;
    bottom: 16px;
    right: 12px;
    left: 12px;
  }

  .alma-notif-inner {
    width: 100%;
  }
}

/* ── Small mobile ── */
@media (max-width: 380px) {
  .alma-notif {
    bottom: 12px;
    right: 8px;
    left: 8px;
  }

  .alma-notif-inner {
    padding: 16px;
    border-radius: 16px;
  }

  .alma-notif-img {
    width: 48px;
    height: 62px;
    border-radius: 8px;
  }

  .alma-notif-name {
    font-size: 12px;
  }

  .alma-notif-btn {
    padding: 9px 0 !important;
    font-size: 9px !important;
    border-radius: 10px !important;
  }

  .alma-notif-progress {
    left: 16px;
    right: 16px;
  }
}
