/* ── DEMO MODE STYLES ─────────────────────────────────────────────────────── */

/* Demo banner — upgraded to sales pitch */
.demo-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 3px solid #e2b04a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-banner .demo-tag {
  background: #e2b04a;
  color: #1a1a2e;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.demo-banner .demo-pitch {
  flex-shrink: 1;
}
.demo-banner .demo-cta-link {
  background: #e2b04a;
  color: #1a1a2e;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
}
.demo-banner .demo-cta-link:hover {
  background: #f0c95a;
  transform: scale(1.05);
}
.demo-banner a.demo-back-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.demo-banner a.demo-back-link:hover {
  color: #e2b04a;
}

/* Adjust header position when demo banner is present */
.demo-banner + .pdm-breadcrumb {
  /* breadcrumb sits right below banner */
}
.demo-banner + .pdm-breadcrumb + .jw-header,
.demo-banner + .jw-header {
  position: relative;
}

/* ── PDM Breadcrumb ───────────────────────────────────────────────────────── */
.pdm-breadcrumb {
  background: #f8f4eb;
  padding: 6px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #888;
  border-bottom: 1px solid #e8e0d0;
}
.pdm-breadcrumb .jw-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pdm-breadcrumb .breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pdm-breadcrumb a {
  color: #b8860b;
  text-decoration: none;
  font-weight: 600;
}
.pdm-breadcrumb a:hover {
  text-decoration: underline;
}
.pdm-breadcrumb .breadcrumb-sep {
  color: #ccc;
}
.pdm-breadcrumb .breadcrumb-current {
  color: #666;
  font-weight: 500;
}
.pdm-breadcrumb .back-to-pdm {
  color: #b8860b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
}
.pdm-breadcrumb .back-to-pdm:hover {
  text-decoration: underline;
}

/* ── Back to PDM in nav ───────────────────────────────────────────────────── */
.nav-pdm-back {
  color: #b8860b !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-pdm-back:hover {
  opacity: 1;
}

/* ── Floating Cart Button (mobile) ────────────────────────────────────────── */
.floating-cart-btn {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8860b, #daa520);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(184,134,11,0.4);
  z-index: 1050;
  cursor: pointer;
  font-size: 1.6rem;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.floating-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(184,134,11,0.5);
}
.floating-cart-btn .floating-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  border: 2px solid #fff;
}
.floating-cart-btn .floating-badge:empty,
.floating-cart-btn .floating-badge[data-count="0"] {
  display: none;
}

@media (max-width: 768px) {
  .floating-cart-btn { display: flex; }
}

/* ── Post-overlay "Back to PDM" prompt ────────────────────────────────────── */
.post-overlay-prompt {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 16px 20px;
  text-align: center;
  z-index: 1090;
  animation: slideUpPrompt 0.5s ease-out;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  font-family: 'Inter', sans-serif;
}
.post-overlay-prompt.visible { display: block; }
.post-overlay-prompt p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.post-overlay-prompt .prompt-cta {
  display: inline-block;
  background: #e2b04a;
  color: #1a1a2e;
  padding: 8px 24px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  margin: 0 6px;
  transition: transform 0.2s;
}
.post-overlay-prompt .prompt-cta:hover { transform: scale(1.05); }
.post-overlay-prompt .prompt-dismiss {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  margin: 0 6px;
  font-family: 'Inter', sans-serif;
}
.post-overlay-prompt .prompt-dismiss:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
@keyframes slideUpPrompt {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ── Notification Preview Overlay ─────────────────────────────────────────── */
.demo-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.demo-overlay.active { display: flex; justify-content: center; align-items: flex-start; }

.demo-preview-container {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  margin: 40px auto;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-preview-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 28px 24px;
  text-align: center;
}
.demo-preview-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 6px;
}
.demo-preview-header p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin: 0;
}

.demo-preview-body {
  padding: 24px;
}

/* ── Phone Mockup ─────────────────────────────────────────────────────────── */
.phone-mockup {
  background: #f0f0f5;
  border-radius: 28px;
  padding: 12px;
  margin: 16px 0;
  border: 3px solid #d1d1d6;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.phone-screen {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}
.phone-status-bar {
  background: #f8f8f8;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #333;
  font-weight: 600;
}
.sms-header {
  background: #f8f8f8;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e5ea;
  text-align: center;
}
.sms-header .contact-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
}
.sms-header .contact-number {
  font-size: 0.75rem;
  color: #8e8e93;
}
.sms-body {
  padding: 16px;
  min-height: 200px;
}
.sms-bubble {
  background: #e5e5ea;
  border-radius: 18px;
  padding: 12px 16px;
  max-width: 90%;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #000;
  white-space: pre-line;
  animation: fadeIn 0.3s ease-in 0.5s both;
}
.sms-time {
  text-align: center;
  font-size: 0.7rem;
  color: #8e8e93;
  margin-bottom: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Email Mockup ─────────────────────────────────────────────────────────── */
.email-mockup {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.email-toolbar {
  background: #f5f5f5;
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e0e0e0;
}
.email-dot { width: 10px; height: 10px; border-radius: 50%; }
.email-dot.red { background: #ff5f57; }
.email-dot.yellow { background: #febc2e; }
.email-dot.green { background: #28c840; }
.email-header-row {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.8rem;
  color: #555;
}
.email-header-row strong { color: #000; }
.email-subject {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid #f0f0f0;
}
.email-body-content {
  padding: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333;
}
.email-order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.email-order-table th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 2px solid #e2b04a;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #666;
}
.email-order-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
}
.email-order-table .total-row td {
  font-weight: 700;
  border-top: 2px solid #333;
  padding-top: 10px;
}

/* ── Notification Labels ──────────────────────────────────────────────────── */
.notif-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a2e;
}
.notif-label .notif-icon {
  font-size: 1.3rem;
}

/* ── CTA at bottom of preview ─────────────────────────────────────────────── */
.demo-cta {
  background: linear-gradient(135deg, #b8860b, #daa520);
  padding: 24px;
  text-align: center;
}
.demo-cta h3 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.demo-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  margin: 0 0 16px;
}
.demo-cta-btn {
  display: inline-block;
  background: #fff;
  color: #1a1a2e;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s;
}
.demo-cta-btn:hover { transform: scale(1.05); }

/* ── Close button ─────────────────────────────────────────────────────────── */
.demo-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}
.demo-close-btn:hover { background: rgba(255,255,255,0.3); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .demo-preview-container { margin: 20px auto; border-radius: 16px; }
  .demo-preview-header { padding: 20px 16px; }
  .demo-preview-header h2 { font-size: 1.3rem; }
  .phone-mockup { padding: 8px; }
  .demo-preview-body { padding: 16px; }
}
