:root {
  --bg-dark: #180d1e;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-soft: #ffe4e6;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
}
.hidden { display: none !important; }

/* UNIVERSAL SACAPPS PRO ECOSYSTEM SIDE NAVIGATION DRAWER */
.sac-drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
  flex-shrink: 0;
}
.sac-drawer-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
}
.sac-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 31, 0.62);
  backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.sac-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.sac-side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 330px;
  max-width: 88vw;
  background: #0b1120;
  color: #f8fafc;
  z-index: 1000;
  transform: translateX(-104%);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.5);
}
.sac-side-drawer.open { transform: translateX(0); }
.sac-drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sac-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.sac-drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}
.sac-drawer-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 14px 8px 8px;
}
.sac-drawer-label:first-child { margin-top: 2px; }
.sac-drawer-link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
  margin-bottom: 4px;
}
.sac-drawer-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sac-drawer-link.active {
  background: rgba(225, 29, 72, 0.22);
  border: 1px solid rgba(251, 113, 133, 0.4);
  color: #fff;
}
.sac-drawer-link small {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}
.sac-drawer-sublinks {
  margin: 2px 0 10px 34px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 10px;
}
.sac-drawer-sublinks a {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
}
.sac-drawer-sublinks a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sac-drawer-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.8rem;
}

/* FLOATING WHATSAPP PILL */
.wa-float-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 850;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.16s ease;
}
.wa-float-btn:hover { transform: translateY(-2px); background: #15803d; }

/* TOP NAVBAR */
.top-hook {
  background: linear-gradient(90deg, #9f1239 0%, #e11d48 50%, #d97706 100%);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.81rem;
  font-weight: 700;
}
.slp-nav {
  background: rgba(20, 12, 28, 0.96);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
  flex-wrap: wrap;
}
.slp-brand-wrap { display: flex; align-items: center; gap: 12px; }
.slp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}
.slp-brand img { width: 32px; height: 32px; border-radius: 8px; }
.hub-back-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fda4af;
  background: rgba(225, 29, 72, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.hub-back-pill:hover { background: rgba(225, 29, 72, 0.32); color: #fff; }
.slp-nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.slp-nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}
.slp-nav-links a:hover { color: #fda4af; }
@media (max-width: 960px) { .slp-nav-links { display: none; } }

.nav-select {
  padding: 6px 9px;
  border-radius: 8px;
  background: #271730;
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* BUTTONS & BADGES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.91rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 13px; font-size: 0.81rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 0.98rem; border-radius: 12px; }
.btn-primary { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); color: #fff; box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3); }
.btn-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: #fff; }
.btn-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; box-shadow: 0 8px 20px rgba(5, 150, 105, 0.28); }
.btn-outline { background: #fff; color: var(--text-main); border-color: #cbd5e1; }
.btn-outline:hover { background: #f1f5f9; }
.btn-dark { background: #0f172a; color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-rose { background: var(--primary-soft); color: #be123c; }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-slate { background: #e2e8f0; color: #334155; }

/* DISTINCT ARTISAN RETAIL & COMMERCE HERO */
.slp-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(244, 63, 94, 0.28), transparent 44%),
    radial-gradient(circle at 15% 85%, rgba(217, 119, 6, 0.22), transparent 40%),
    linear-gradient(125deg, #1a0b1e 0%, #2a1029 52%, #3b0d28 100%);
  color: #fff;
  padding: 62px 24px 74px;
}
.container { max-width: 1220px; margin: 0 auto; }
.slp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 960px) { .slp-hero-grid { grid-template-columns: 1fr; } }

.slp-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.14;
  margin: 14px 0 16px;
  letter-spacing: -0.02em;
}
.slp-hero p.lead {
  color: #fce7f3;
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 590px;
}

/* LIVE INTERACTIVE STOREFRONT SIMULATOR IN HERO */
.hero-store-sim {
  background: #fff;
  color: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.sim-topbar {
  background: #0f172a;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sim-tab-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #cbd5e1;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.sim-tab-btn.active { background: #e11d48; color: #fff; }
.sim-banner {
  height: 162px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.sim-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.75) 100%);
}
.sim-banner-txt { position: relative; z-index: 2; color: #fff; }
.swatch-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
}
.swatch-pill.active { background: #e11d48; color: #fff; border-color: #e11d48; }

/* SECTIONS & GRIDS */
.section { padding: 70px 24px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 2.9vw, 2.25rem); font-weight: 800; margin-bottom: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

/* SHOWCASE STORE CARDS */
.showcase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.showcase-card:hover { transform: translateY(-5px); box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12); }
.showcase-img { height: 195px; background-size: cover; background-position: center; position: relative; }
.showcase-body { padding: 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

/* PRICING */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 16px 38px rgba(225, 29, 72, 0.14);
}
.pricing-price { font-size: 2.5rem; font-weight: 900; margin: 12px 0 6px; color: #0f172a; }
.pricing-list { list-style: none; margin: 18px 0 24px; }
.pricing-list li { padding: 7px 0; font-size: 0.9rem; color: #334155; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; padding: 17px 22px; background: none; border: none; text-align: left;
  font-size: 0.98rem; font-weight: 700; display: flex; justify-content: space-between; cursor: pointer;
}
.faq-a { display: none; padding: 0 22px 18px; color: var(--text-muted); font-size: 0.92rem; }
.faq-item.open .faq-a { display: block; }

/* =========================================================================
   LIVE CUSTOMER E-COMMERCE STOREFRONT (?store=bakery | ?store=boutique)
   ========================================================================= */
.demo-switcher-ribbon {
  background: #0f172a;
  color: #e2e8f0;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cust-store-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cust-hero-banner {
  height: 270px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px 24px;
}
.cust-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.18) 0%, rgba(15,23,42,0.82) 100%);
}
.cust-cat-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.cat-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.cat-pill.active { background: var(--store-accent, #e11d48); color: #fff; border-color: var(--store-accent, #e11d48); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
  padding-bottom: 60px;
}
.prd-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(15,23,42,0.05);
}
.prd-img {
  height: 215px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.prd-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.prd-body { padding: 18px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

/* SLIDE-OUT SHOPPING BAG DRAWER */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 900;
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 430px;
  max-width: 94vw;
  background: #fff;
  z-index: 910;
  display: flex;
  flex-direction: column;
  box-shadow: -14px 0 40px rgba(15, 23, 42, 0.25);
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.9rem;
  font-family: inherit;
}
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: #334155; margin-bottom: 4px; }

/* MERCHANT ADMIN DASHBOARD */
.admin-topbar {
  background: #0f172a;
  color: #fff;
  padding: 13px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-tabs {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.admin-tab {
  padding: 13px 16px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.kpi-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.kpi-box:hover { border-color: var(--primary); transform: translateY(-2px); }
.kanban-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(235px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
}
.kanban-col {
  background: #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  min-height: 360px;
}
.kanban-order-card {
  background: #fff;
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  border-left: 4px solid var(--primary);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}
