/* Frigate Bay Adventures — demo storefront stylesheet
 * Modern Caribbean-flavoured branding (teal + amber + sandy gold).
 * Distinct from SKN Pay's brand so the handoff to the SKN Pay payment
 * page is visually obvious.
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #0e7490;
  --brand-dark: #0c4a6e;
  --accent: #f59e0b;
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --green-500: #10b981;
  --red-500: #ef4444;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select {
  font-family: inherit; font-size: inherit;
  padding: 10px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: white;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.18);
}
label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--slate-700); }
label input, label textarea { margin-top: 4px; font-weight: 400; color: var(--ink); }

.muted { color: var(--slate-500); }
.small { font-size: 12.5px; }
.mono  { font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-size: 13px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  background: white;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hdr-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.primary-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.primary-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--slate-700);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  transition: background 0.15s;
}
.primary-nav a:hover { background: var(--slate-100); }
.primary-nav a.is-active { color: var(--brand); background: var(--slate-100); }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-badge {
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.inspector-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.inspector-toggle:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.inspector-toggle.is-on {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.demo-banner {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  font-size: 12.5px;
  text-align: center;
  padding: 8px 24px;
  border-bottom: 1px solid #fbbf24;
}
.demo-banner code {
  background: rgba(0,0,0,0.08);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 12px;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  min-height: calc(100vh - 240px);
}

.page-head {
  margin-bottom: 28px;
}
.page-head h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.page-head p {
  color: var(--slate-500);
  font-size: 16px;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.hero-text h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--ink);
}
.hero-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-700);
  margin-bottom: 24px;
}
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-card {
  border-radius: var(--radius-md);
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 130px;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
}
.hero-card:nth-child(2) { transform: translateY(20px); }
.hero-card .muted { color: rgba(255,255,255,0.85); }
.hero-card strong { font-size: 18px; font-weight: 700; }
.hero-icon { font-size: 32px; }

/* ── Featured + product cards ───────────────────────────────────────── */
.featured h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.product-card, .product-card-detailed {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.product-card:hover, .product-card-detailed:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.product-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-icon { font-size: 56px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.product-meta, .product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-body strong { font-size: 16px; }
.product-card-detailed .muted { font-size: 13px; line-height: 1.5; }
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  gap: 12px;
}
.product-card-detailed .product-body { flex: 1; }
.product-price {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  letter-spacing: 0;
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 1px 2px rgba(14, 116, 144, 0.18);
}
.btn-primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(14, 116, 144, 0.22);
}
.btn-large {
  padding: 14px 24px;
  font-size: 15px;
  width: 100%;
  margin-top: 16px;
}
.btn-text {
  background: none;
  color: var(--brand);
  padding: 6px 10px;
  font-size: 13px;
  border: none;
}
.btn-text.danger { color: var(--red-500); }
.btn-text:hover { background: var(--slate-100); }

/* ── Cart ───────────────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
.cart-table {
  width: 100%;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.cart-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  padding: 14px 16px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
.cart-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
  font-size: 14px;
}
.cart-table tbody tr:last-child td { border-bottom: 1px solid var(--slate-200); }
.cart-table tfoot td {
  background: var(--slate-50);
  font-size: 16px;
  padding: 16px;
}
.qty-form { display: flex; align-items: center; gap: 4px; }
.qty-input { width: 60px; padding: 6px 8px; }

.cart-aside {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  align-self: start;
  box-shadow: var(--shadow-sm);
}
.cart-aside h3 { font-size: 16px; margin-bottom: 8px; }

/* ── Checkout ───────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}
.checkout-form, .checkout-aside {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.checkout-form h3 { font-size: 17px; margin-bottom: 6px; }
.checkout-aside h3 { font-size: 16px; margin-bottom: 12px; }
.order-summary {
  list-style: none;
  border-top: 1px solid var(--slate-100);
  padding-top: 12px;
}
.order-summary li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 14px;
}
.order-summary li:last-child { border-bottom: none; }
.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 2px solid var(--slate-200);
  font-size: 18px;
  font-weight: 700;
}
.error-detail {
  background: #fef2f2;
  border-left: 3px solid var(--red-500);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #991b1b;
  margin: 16px 0;
}

/* ── Success page ───────────────────────────────────────────────────── */
.success {
  max-width: 560px;
  margin: 32px auto;
  text-align: center;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-md);
}
.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--green-500), #059669);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}
.success h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.success .lede { color: var(--slate-700); margin-bottom: 24px; font-size: 15px; }
.success-receipt {
  text-align: left;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 8px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.receipt-row span { color: var(--slate-500); }
.receipt-row hr,
.success-receipt hr {
  border: none;
  border-top: 1px solid var(--slate-200);
  margin: 12px 0;
}
.status-paid { color: var(--green-500); }
.status-requires_payment { color: var(--accent); }

/* ── Trust bar ──────────────────────────────────────────────────────── */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-item strong { font-size: 14px; }
.trust-item span { color: var(--slate-500); font-size: 13px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: white;
  border-top: 1px solid var(--slate-200);
  padding: 24px 0;
  margin-top: 40px;
}
.ftr-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--slate-500);
}
.ftr-links { display: flex; gap: 18px; }
.ftr-links a { color: var(--slate-500); }

/* ── Inspector panel ────────────────────────────────────────────────── */
.inspector-panel {
  position: fixed;
  top: 0;
  right: -560px;
  width: 540px;
  max-width: 100vw;
  height: 100vh;
  background: #0b1220;
  color: #e2e8f0;
  z-index: 100;
  box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
}
.inspector-panel[aria-hidden="false"] { right: 0; }
.inspector-head {
  padding: 14px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  background: #0f172a;
}
.inspector-head button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
}
.inspector-head button:hover { color: white; }
.inspector-tip {
  padding: 12px 20px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}
.inspector-tip em { color: #fbbf24; font-style: normal; }
.inspector-events {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.inspector-events .small { font-family: 'Plus Jakarta Sans', sans-serif; padding: 12px; }

.evt {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 12px;
  overflow: hidden;
}
.evt-head {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.evt-head:hover { background: #1e293b; }
.evt-type {
  font-weight: 600;
  flex: 1;
  color: #e2e8f0;
}
.evt-meta {
  font-size: 11px;
  color: #64748b;
}
.evt-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.evt-tag.outbound { background: #1e3a8a; color: #93c5fd; }
.evt-tag.inbound  { background: #14532d; color: #86efac; }
.evt-tag.redirect { background: #78350f; color: #fcd34d; }
.evt-tag.cart     { background: #1e293b; color: #94a3b8; }
.evt-tag.error    { background: #7f1d1d; color: #fca5a5; }

.evt-body {
  padding: 0 14px 12px;
  display: none;
  border-top: 1px solid #1e293b;
}
.evt[data-open="true"] .evt-body { display: block; }
.evt[data-open="true"] .evt-head::after { content: '−'; color: #64748b; }
.evt-head::after { content: '+'; color: #64748b; }

.evt-row {
  font-size: 11px;
  padding: 4px 0;
  display: flex;
  gap: 10px;
}
.evt-row span:first-child { color: #64748b; min-width: 100px; }
.evt-row span:last-child { color: #cbd5e1; word-break: break-all; }

.evt-json {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 10px;
  font-size: 11px;
  margin-top: 6px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #cbd5e1;
  max-height: 240px;
  overflow-y: auto;
}
.evt-json .key { color: #93c5fd; }
.evt-json .str { color: #86efac; }
.evt-json .num { color: #fcd34d; }
.evt-json .bool, .evt-json .null { color: #f87171; }

.inspector-status {
  padding: 12px 20px;
  border-top: 1px solid #1e293b;
  background: #0f172a;
  font-size: 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
}
.inspector-status span:nth-child(odd) { color: #64748b; }
.inspector-status span:nth-child(even) { color: #cbd5e1; word-break: break-all; }
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: 1px;
}
.dot.green { background: var(--green-500); }
.dot.amber { background: var(--accent); }
.dot.red   { background: var(--red-500); }

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .hero-inner, .cart-layout, .checkout-layout {
    grid-template-columns: 1fr;
  }
  .hero-text h1 { font-size: 32px; }
  .trust-bar { grid-template-columns: 1fr; }
  .primary-nav a { padding: 6px 10px; font-size: 13px; }
  .inspector-toggle span { display: none; }
  .site-main { padding: 20px 16px; }
}
