/* ==========================================================
   BRIJWASI HOMEPAGE "BUY NOW" POPUP - PREMIUM CARD STYLES
   Save this file as: css/brijwasi-popup.css
   ========================================================== */

#brijwasi-buy-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 5, 0.72);
  backdrop-filter: blur(2px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#brijwasi-buy-popup-overlay.active {
  display: flex;
  animation: brijwasiFadeIn 0.25s ease-out;
}

@keyframes brijwasiFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.brijwasi-popup-card {
  background: #fffdf8;
  border-radius: 18px;
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(122, 31, 31, 0.06);
  font-family: 'Segoe UI', Arial, sans-serif;
  animation: brijwasiPopIn 0.3s cubic-bezier(0.17, 0.89, 0.32, 1.28);
}

@keyframes brijwasiPopIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.brijwasi-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 0;
  cursor: pointer;
  z-index: 3;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}

.brijwasi-popup-close:hover {
  background: #fff;
  transform: scale(1.08);
}

/* Whole image is a clickable link */
.brijwasi-popup-image-link {
  display: block;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.brijwasi-popup-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.brijwasi-popup-image-link:hover .brijwasi-popup-image {
  transform: scale(1.03);
}

/* Small "Order Now" ribbon badge on the image, signals it's clickable */
.brijwasi-popup-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: linear-gradient(135deg, #7a1f1f, #a52a2a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(122, 31, 31, 0.4);
}

.brijwasi-popup-content {
  padding: 18px 18px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fffdf8 0%, #fff6ea 100%);
}

.brijwasi-popup-buttons {
  display: flex;
  gap: 10px;
}

.brijwasi-popup-btn {
  flex: 1;
  color: #fff;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.brijwasi-popup-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.brijwasi-popup-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

.brijwasi-popup-btn.swiggy {
  background: linear-gradient(135deg, #fc8019, #ff9a3d);
}

.brijwasi-popup-btn.zomato {
  background: linear-gradient(135deg, #e23744, #ff5a67);
}

/* Mobile tweak */
@media (max-width: 380px) {
  .brijwasi-popup-buttons {
    flex-direction: column;
  }
}

