/* =================================================================
   vCard & WhatsApp Store Master Premium Template CSS
   ================================================================= */

body.vcard-page-body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #f8fafc;
  overflow-x: hidden;
  min-height: 100vh;
  background: #080c14;
}

.vcard-wrapper-desktop {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
}

/* Backlight glow behind the card — gives 3D raised depth */
.vcard-wrapper-desktop::before {
  content: '';
  position: fixed;
  width: 520px;
  height: 820px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 40px;
  background: rgba(99, 102, 241, 0.18);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

.vcard-wrapper-desktop::after { display: none; }
.vcard-orb-extra { display: none; }


.text-gradient-person {
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 75%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(165, 180, 252, 0.3));
}

.vcard-card-frame {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-bottom: 85px;

  /* Multi-layer 3D depth shadow */
  box-shadow:
    /* core depth */
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.5),
    0 24px 48px rgba(0, 0, 0, 0.4),
    /* far ambient spread */
    0 60px 120px rgba(0, 0, 0, 0.35),
    /* backlight halo rim on left & right edges */
    -1px 0 30px rgba(99, 102, 241, 0.12),
     1px 0 30px rgba(99, 102, 241, 0.12),
    /* glass top-edge shine */
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* ── Social Media Icons Strip ── */
.social-strip {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.social-strip-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.social-strip-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--sc-raw);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

.social-icon-btn:hover {
  color: #ffffff;
  background: var(--sc-raw);
  border-color: var(--sc-raw);
  transform: translateY(-3px) scale(1.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* Twitter/X: light color needs dark hover bg */
.social-icon-btn[title="X / Twitter"]:hover {
  background: #14171a;
  border-color: #e2e8f0;
  color: #ffffff;
}

/* ── Call Modal Phone Options ── */
.call-option-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.18s ease;
}
.call-option-btn:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: #ffffff;
  transform: translateX(3px);
}
.call-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}
.call-option-info { flex: 1; }
.call-option-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.45);
  line-height: 1;
}
.call-option-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

/* ── Share Modal ── */
.share-card-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.share-preview-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.share-preview-img-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.share-preview-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.share-preview-title {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}
.share-preview-company {
  font-size: 0.75rem;
  color: #818cf8;
  font-weight: 600;
}

.share-social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.share-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 0.25rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  transition: all 0.18s ease;
}
.share-social-btn i {
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--spbg);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  transition: all 0.18s ease;
}
.share-social-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--spbg);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.share-social-btn:hover i {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.share-qr-wrap {
  display: inline-block;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
}

.btn-qr-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.3px;
}
.btn-qr-download:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
  transform: translateY(-1px);
}
.btn-qr-download:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Cover Image Banner */
.vcard-banner {
  height: 180px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.vcard-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(0, 0, 0, 0.25) 85%, rgba(15, 23, 42, 0.95) 100%);
  pointer-events: none;
}

/* Profile Photo & Avatar Position */
.vcard-profile-header {
  margin-top: -65px;
  position: relative;
  z-index: 5;
}

/* Animated Avatar Glow Ring & High-End Aura */
.vcard-avatar-container {
  position: relative;
  display: inline-block;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #10b981, #3b82f6);
  background-size: 300% 300%;
  animation: avatarGlowGradient 4s ease infinite;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4), 0 0 50px rgba(139, 92, 246, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vcard-avatar-container::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  filter: blur(10px);
  opacity: 0.6;
  z-index: -1;
  animation: avatarPulse 2.5s ease-in-out infinite alternate;
}

.vcard-avatar-container:hover {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.7), 0 0 65px rgba(236, 72, 153, 0.5);
}

.vcard-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #0f172a;
  object-fit: cover;
  background: #1e293b;
  display: block;
}

@keyframes avatarGlowGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes avatarPulse {
  0% { opacity: 0.35; transform: scale(0.97); }
  100% { opacity: 0.85; transform: scale(1.05); }
}

.vcard-logo-badge {
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(35px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #0f172a;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Verified Badge */
.verified-badge {
  color: #38bdf8;
  font-size: 0.9rem;
}

/* Compact & Sleek Action Buttons Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 1.1rem 0;
}

.action-btn-item {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.38rem 0.35rem;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.action-btn-item span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.action-btn-item:hover,
.action-btn-item:focus,
.action-btn-item:active {
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Individual Brand Glow Accents */
.action-btn-item.btn-act-whatsapp {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.05));
  border-color: rgba(16, 185, 129, 0.3);
}
.action-btn-item.btn-act-whatsapp .action-icon-circle {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.action-btn-item.btn-act-whatsapp:hover {
  border-color: #10b981;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
}

.action-btn-item.btn-act-call {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(29, 78, 216, 0.05));
  border-color: rgba(59, 130, 246, 0.3);
}
.action-btn-item.btn-act-call .action-icon-circle {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}
.action-btn-item.btn-act-call:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

.action-btn-item.btn-act-email {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.15), rgba(14, 116, 144, 0.05));
  border-color: rgba(6, 182, 212, 0.3);
}
.action-btn-item.btn-act-email .action-icon-circle {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}
.action-btn-item.btn-act-email:hover {
  border-color: #06b6d4;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
}

.action-btn-item.btn-act-location {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.15), rgba(225, 29, 72, 0.05));
  border-color: rgba(244, 63, 94, 0.3);
}
.action-btn-item.btn-act-location .action-icon-circle {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}
.action-btn-item.btn-act-location:hover {
  border-color: #f43f5e;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4);
  transform: translateY(-3px);
}

.action-btn-item.btn-act-save {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.05));
  border-color: rgba(245, 158, 11, 0.3);
}
.action-btn-item.btn-act-save .action-icon-circle {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.action-btn-item.btn-act-save:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
}

.action-btn-item.btn-act-share {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.15), rgba(126, 34, 206, 0.05));
  border-color: rgba(168, 85, 247, 0.3);
}
.action-btn-item.btn-act-share .action-icon-circle {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}
.action-btn-item.btn-act-share:hover {
  border-color: #a855f7;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
  transform: translateY(-3px);
}

.action-btn-item:hover .action-icon-circle {
  transform: scale(1.1) rotate(5deg);
}

/* Card Sections */
.vcard-section-box {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 1.5rem 1.6rem !important;
  margin-left: 1rem !important;
  margin-right: 1rem !important;
  margin-bottom: 1.25rem;
}

.vcard-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ── Product Cards (Equal Height Grid) ── */
.product-card-vcard {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s ease;
}
.product-card-vcard:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Image wrapper */
.prod-img-wrap {
  position: relative;
  height: 185px;
  max-height: 200px;
  overflow: hidden;
  background: #0f172a;
}
.prod-gallery-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.prod-gallery-img.d-none { display: none !important; }

/* Discount badge */
.prod-discount-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

/* Gallery dots */
.prod-gallery-dots {
  position: absolute;
  bottom: 5px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.prod-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.prod-dot.active { background: #ffffff; width: 12px; border-radius: 3px; }

/* Info section (Strict Equal Height Layout) */
.prod-info-wrap {
  padding: 0.55rem 0.6rem 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.prod-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-short-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  margin-bottom: 0.3rem;
}
.prod-price-sell {
  font-size: 1rem;
  font-weight: 800;
  color: #10b981;
}
.prod-price-mrp {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

/* old class kept for compat */
.product-img-vcard { width: 100%; height: 120px; object-fit: cover; }

/* Sticky Bottom Bar */
.sticky-bottom-vcard {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  padding: 0.8rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

/* ── View + Order row ── */
  .prod-btn-row {
    display: flex;
    gap: 0.45rem;
    align-items: stretch !important;
    width: 100%;
    margin-top: auto;
    padding-top: 0.4rem;
  }
  .btn-prod-view,
  .prod-btn-row .btn-whatsapp-saas {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    padding: 0 0.75rem !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .btn-prod-view {
    border: 1px solid rgba(99,102,241,0.5) !important;
    background: rgba(99,102,241,0.15) !important;
    color: #a5b4fc !important;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
  }
  .btn-prod-view:hover {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
  }
  .prod-btn-row .btn-whatsapp-saas {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  }
.flex-1 { flex: 1; }

/* ── Product Detail Modal ── */
.prod-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: background 0.15s;
}
.prod-modal-close:hover { background: rgba(0,0,0,0.9); }

.prod-modal-slider {
  position: relative;
  aspect-ratio: 1;
  background: #080c14;
  overflow: hidden;
}
.prod-modal-imgs { width:100%; height:100%; }
.prod-modal-img {
  width: 100%; height: 100%;
}

/* ── Gallery Thumbnails & Lightbox CSS ── */
.gallery-thumb-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.gallery-thumb-card:hover {
  transform: scale(1.04);
  border-color: #ff6b00;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}
.gallery-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  padding: 0.35rem 0.4rem;
  font-size: 0.63rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Custom Fullscreen Lightbox Zoom Overlay ── */
.custom-lightbox-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.custom-lightbox-overlay.d-none { display: none !important; }

.lightbox-content-box {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-zoom-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.lightbox-caption {
  margin-top: 0.8rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.85);
  padding: 0.45rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-close-btn {
  position: absolute;
  top: 20px; right: 25px;
  font-size: 2.5rem;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100000;
  line-height: 1;
  transition: color 0.15s;
}
.lightbox-close-btn:hover { color: #ff6b00; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100000;
}
.lightbox-arrow:hover {
  background: #ff6b00;
  border-color: #ff6b00;
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── YouTube Video Cards ── */
.vcard-yt-video-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.vcard-yt-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000000;
}
.vcard-yt-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
  object-fit: cover;
  display: block;
}
.prod-modal-img.d-none { display: none !important; }

.prod-modal-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s;
}
.prod-modal-arrow:hover { background: rgba(0,0,0,0.85); }
.prod-modal-arrow.left  { left: 8px; }
.prod-modal-arrow.right { right: 8px; }

/* Thumbnails */
.prod-modal-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  overflow-x: auto;
}
.prod-modal-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}
.prod-modal-thumb.active { border-color: #6366f1; }
.prod-modal-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* Body */
.prod-modal-body { padding: 1rem 1.1rem 1.2rem; }
.prod-modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Stock badge */
.badge-in-stock {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 700;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 20px; padding: 2px 10px;
}
.badge-out-stock {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 700;
  color: #f87171;
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 20px; padding: 2px 10px;
}

/* Price row in modal */
.prod-modal-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.pm-price-sell {
  font-size: 1.35rem;
  font-weight: 900;
  color: #4ade80;
}
.pm-price-mrp {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
}
.pm-price-save {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fb923c;
  background: rgba(251,146,60,0.12);
  border-radius: 20px;
  padding: 2px 8px;
}

.prod-modal-short {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-bottom: 0;
}
.prod-modal-full-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}

/* Floating Cart Button (Bottom Right) */
.vcard-floating-cart-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.vcard-floating-cart-btn:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6), 0 6px 15px rgba(0, 0, 0, 0.45);
}

.vcard-floating-cart-btn:active {
  transform: scale(0.95);
}

.vcard-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

@keyframes vcardCartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(-12deg); }
  75% { transform: scale(0.9) rotate(6deg); }
  100% { transform: scale(1); }
}

.vcard-cart-bounce {
  animation: vcardCartBounce 0.6s ease-in-out;
}

@media (max-width: 991.98px) {
  .vcard-floating-cart-btn {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.25rem;
  }
}

/* Non-blocking Floating Toast */
.vcard-toast-notify {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 10000;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #22c55e;
  border-left: 4px solid #22c55e;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.vcard-toast-notify.show {
  opacity: 1;
  transform: translateY(0);
}

/* Shopping Cart Modal Item Cards */
.vcard-cart-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vcard-cart-item-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(99, 102, 241, 0.3);
}

.vcard-cart-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.3;
}

.vcard-cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4ade80;
}

.vcard-cart-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px 8px;
}

.vcard-stepper-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vcard-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.vcard-stepper-qty {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 22px;
  text-align: center;
}

.vcard-cart-trash-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ── LUXURY WARM CREAM LIGHT THEME (.template-light) ── */
body.template-light {
  background: linear-gradient(135deg, #f7f3ed 0%, #faf6f0 50%, #f2ece3 100%) !important;
  background-attachment: fixed !important;
  color: #0f172a !important;
}

body.template-light .vcard-card-frame {
  background: #fdfbf7 !important;
  border: 1px solid #e6e0d4 !important;
  box-shadow: 0 25px 50px -12px rgba(180, 160, 140, 0.12), 0 0 35px rgba(253, 251, 247, 0.8) !important;
}

body.template-light .vcard-desktop-left {
  background: #fdfbf7 !important;
  border-right: 1px solid #e8e2d7 !important;
}

body.template-light .vcard-desktop-right {
  background: #faf6f0 !important;
}

/* Typography & Subtitles */
body.template-light .vcard-owner-name,
body.template-light .vcard-section-title,
body.template-light h1, body.template-light h2, body.template-light h3,
body.template-light h4, body.template-light h5, body.template-light h6 {
  color: #0f172a !important;
}

body.template-light .vcard-designation {
  color: #2563eb !important; /* Deep Blue for high contrast */
  font-weight: 700 !important;
}

body.template-light .vcard-business-name {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.template-light .vcard-bio-text,
body.template-light .text-light-muted,
body.template-light .text-white-50,
body.template-light .text-muted {
  color: #475569 !important;
}

/* Gallery Photo Overlay Text (MUST BE WHITE) */
body.template-light .gallery-thumb-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%) !important;
}

body.template-light .gallery-thumb-overlay span,
body.template-light .gallery-thumb-overlay * {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

/* Action Buttons Grid (WhatsApp, Call, Email, Location, Save Contact, Share) */
body.template-light .action-btn-item {
  background: #fdfbf7 !important;
  border: 1px solid #e2dacd !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(180, 160, 140, 0.08) !important;
}

body.template-light .action-btn-item span,
body.template-light .action-btn-text {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.template-light .action-btn-item:hover {
  background: #f5efe6 !important;
  border-color: #d8cebc !important;
  transform: translateY(-2px);
}

/* Social Media Circular Buttons */
body.template-light .social-icon-btn {
  background: #fdfbf7 !important;
  border: 1px solid #e2dacd !important;
  color: #334155 !important;
  box-shadow: 0 2px 6px rgba(180, 160, 140, 0.08) !important;
}

body.template-light .social-icon-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

body.template-light .connect-heading {
  color: #64748b !important;
  font-weight: 700 !important;
}

/* Working Hours Box */
body.template-light .vcard-hours-badge,
body.template-light .hours-item-box {
  background: #f7f2ea !important;
  border: 1px solid #e3dbc9 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

body.template-light .hours-item-box * {
  color: #0f172a !important;
}

/* Luxury Cream Section Cards & Containers */
body.template-light .vcard-section-box,
body.template-light .product-card-vcard,
body.template-light .service-card-vcard,
body.template-light .vcard-info-card {
  background: #fcf9f4 !important;
  border: 1px solid #e8e1d5 !important;
  box-shadow: 0 4px 15px rgba(160, 140, 120, 0.06) !important;
}

/* Product & Service Text & Buttons */
body.template-light .prod-name-vcard,
body.template-light .serv-name-vcard {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.template-light .prod-desc-vcard,
body.template-light .serv-desc-vcard {
  color: #475569 !important;
}

body.template-light .prod-price-vcard {
  color: #16a34a !important;
  font-weight: 800 !important;
}

body.template-light .btn-prod-view {
  background: #fdfbf7 !important;
  border: 1px solid #e2dacd !important;
  color: #0f172a !important;
}

body.template-light .btn-prod-view:hover {
  background: #f5efe6 !important;
  color: #2563eb !important;
}

body.template-light .btn-prod-order {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* Tab Navigation Bar & Sticky Quick Nav */
body.template-light .vcard-nav-tabs,
body.template-light .nav-tabs-vcard {
  background: #f5efe6 !important;
  border: 1px solid #e2dacd !important;
  border-radius: 50px !important;
  padding: 4px !important;
}

body.template-light .vcard-nav-tabs .nav-link,
body.template-light .nav-tabs-vcard .nav-link {
  color: #475569 !important;
  font-weight: 600 !important;
  border: none !important;
}

body.template-light .vcard-nav-tabs .nav-link.active,
body.template-light .nav-tabs-vcard .nav-link.active {
  background: #fdfbf7 !important;
  color: #2563eb !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(180, 160, 140, 0.12) !important;
  border-radius: 50px !important;
}

body.template-light .vcard-quick-nav {
  background: #fdfbf7 !important;
  border-bottom: 1px solid #e8e1d5 !important;
  box-shadow: 0 4px 15px rgba(180, 160, 140, 0.08) !important;
}

body.template-light .vcard-quick-nav .btn-outline-light {
  background: #f7f2ea !important;
  border: 1px solid #e3dbc9 !important;
  color: #0f172a !important;
}

body.template-light .vcard-quick-nav .btn-outline-light:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Footer & Branding */
body.template-light .vcard-footer-p {
  color: #475569 !important;
}

body.template-light .vcard-footer-span {
  color: #0f172a !important;
}

body.template-light .vcard-footer-btn {
  border-color: #e2dacd !important;
  background: #fdfbf7 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(180, 160, 140, 0.08) !important;
}

/* Person Name & Services High Contrast */
body.template-light .text-gradient-person {
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
}

body.template-light .serv-card-inner,
body.template-light .serv-col {
  background: #fcf9f4 !important;
  border-color: #e8e1d5 !important;
}

body.template-light .serv-title,
body.template-light .serv-desc,
body.template-light .serv-card-inner * {
  color: #0f172a !important;
}

/* Office Address & Descriptions Light Mode Fix */
body.template-light #addressSection,
body.template-light #addressSection p,
body.template-light #addressSection .small,
body.template-light .vcard-section-box p,
body.template-light .vcard-section-box span,
body.template-light .vcard-section-box div {
  color: #0f172a !important;
}

/* Buttons in Light Mode (Google Maps, Social Network Badges, etc.) */
body.template-light .btn-outline-saas {
  background: #fdfbf7 !important;
  border: 1px solid #e2dacd !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(180, 160, 140, 0.06) !important;
}

body.template-light .btn-outline-saas:hover {
  background: #f5efe6 !important;
  border-color: #d8cebc !important;
  color: #2563eb !important;
}

/* Social Online Connect Badges */
body.template-light #inquirySection,
body.template-light #inquirySection label,
body.template-light #inquirySection p {
  color: #0f172a !important;
}

body.template-light .form-control,
body.template-light input.form-control,
body.template-light textarea.form-control {
  background: #fdfbf7 !important;
  border: 1px solid #e2dacd !important;
  color: #0f172a !important;
}

body.template-light .form-control::placeholder {
  color: #94a3b8 !important;
}

body.template-light .form-control:focus {
  background: #fdfbf7 !important;
  border-color: #2563eb !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

body.template-light .bg-dark,
body.template-light .bg-dark.bg-opacity-50 {
  background: #fcf9f4 !important;
  border-color: #e8e1d5 !important;
  color: #0f172a !important;
}

body.template-light .text-light,
body.template-light .text-white {
  color: #0f172a !important;
}

/* ── ABSOLUTE OVERRIDE: FORCE PURE WHITE TEXT ON GALLERY OVERLAYS IN ALL THEMES ── */
.gallery-thumb-overlay,
.gallery-thumb-overlay span,
.gallery-thumb-overlay *,
body.template-light .gallery-thumb-overlay,
body.template-light .gallery-thumb-overlay span,
body.template-light .gallery-thumb-overlay *,
body.template-light .vcard-section-box .gallery-thumb-overlay,
body.template-light .vcard-section-box .gallery-thumb-overlay span,
body.template-light .vcard-section-box .gallery-thumb-overlay * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95) !important;
}

/* Service View Eye Button */
.btn-serv-view {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-serv-view:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  transform: scale(1.08);
}

/* Light Theme Override for Service View Eye Button */
body.template-light .btn-serv-view {
  background: #fdfbf7 !important;
  border: 1px solid #e2dacd !important;
  color: #2563eb !important;
  box-shadow: 0 2px 6px rgba(180, 160, 140, 0.08) !important;
}

body.template-light .btn-serv-view:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Modal Light Theme Overrides */
body.template-light #serviceModal .modal-content,
body.template-light #productModal .modal-content {
  background: #fdfbf7 !important;
  color: #0f172a !important;
  border: 1px solid #e8e2d7 !important;
  box-shadow: 0 25px 50px rgba(180, 160, 140, 0.15) !important;
}

body.template-light #serviceModal .prod-modal-title,
body.template-light #productModal .prod-modal-title,
body.template-light #serviceModal .prod-modal-short,
body.template-light #productModal .prod-modal-short,
body.template-light #serviceModal .prod-modal-full,
body.template-light #productModal .prod-modal-full,
body.template-light #serviceModal p,
body.template-light #productModal p {
  color: #0f172a !important;
}

/* ── PRESERVE ORIGINAL BUTTON TEXT COLORS ON HOVER IN ALL THEMES ── */
.action-btn-item:hover span,
.action-btn-item:hover .action-btn-text,
.action-btn-item:focus span,
.action-btn-item:active span {
  color: #ffffff !important;
}

body.template-light .action-btn-item:hover,
body.template-light .action-btn-item:hover span,
body.template-light .action-btn-item:hover .action-btn-text,
body.template-light .btn-outline-saas:hover,
body.template-light .btn-outline-saas:hover span,
body.template-light .btn-prod-view:hover,
body.template-light .btn-prod-view:hover span,
body.template-light .vcard-quick-nav .btn-outline-light:hover,
body.template-light .vcard-quick-nav .btn-outline-light:hover span {
  color: #0f172a !important;
  background: #f5efe6 !important;
  border-color: #d8cebc !important;
}
