:root {
  --spl-ink: #0f172a;
  --spl-muted: #526173;
  --spl-line: rgba(15, 23, 42, 0.12);
  --spl-bg: #f7f9fc;
  --spl-card: #ffffff;
  --spl-primary: #2457d6;
  --spl-teal: #0f766e;
  --spl-amber: #b45309;
  --spl-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

html,
body,
button,
input,
select,
textarea {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.product-page {
  margin: 0;
  color: var(--spl-ink);
  background:
    radial-gradient(900px 460px at 10% 0%, rgba(36, 87, 214, 0.10), transparent 60%),
    radial-gradient(720px 420px at 88% 8%, rgba(15, 118, 110, 0.10), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, var(--spl-bg) 100%);
  min-height: 100vh;
}

a { color: inherit; }

.spl-product-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.spl-product-nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.spl-product-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}

.spl-product-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.spl-product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.spl-product-btn,
.spl-product-linkbtn {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}

.spl-product-btn.primary,
.spl-product-linkbtn.primary {
  background: linear-gradient(135deg, var(--spl-primary), #0f766e);
  color: #fff;
  box-shadow: 0 12px 28px rgba(36, 87, 214, 0.22);
}

.spl-product-btn.secondary,
.spl-product-linkbtn.secondary {
  background: #fff;
  color: var(--spl-ink);
  border: 1px solid var(--spl-line);
}

.spl-product-btn.warn {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.spl-product-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 18px 72px;
}

.spl-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: center;
  padding: 26px 0 18px;
}

.spl-product-kicker {
  color: var(--spl-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spl-product-hero h1,
.spl-product-title {
  margin: 10px 0 12px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.spl-product-lead {
  margin: 0;
  max-width: 68ch;
  color: var(--spl-muted);
  font-size: 17px;
  line-height: 1.72;
}

.spl-product-panel,
.spl-product-card,
.spl-product-modal-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--spl-line);
  border-radius: 8px;
  box-shadow: var(--spl-shadow);
}

.spl-product-panel {
  padding: 22px;
}

.spl-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.spl-product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.spl-product-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.spl-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spl-product-media span {
  color: #334155;
  font-size: 34px;
  font-weight: 900;
}

.spl-product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.spl-product-card h3 {
  margin: 0;
  font-size: 18px;
}

.spl-product-card p {
  margin: 0;
  color: var(--spl-muted);
  line-height: 1.55;
}

.spl-product-price {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

.spl-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.spl-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.spl-field label {
  font-size: 13px;
  font-weight: 850;
  color: #243041;
}

.spl-field input,
.spl-field select,
.spl-field textarea {
  width: 100%;
  border: 1px solid var(--spl-line);
  border-radius: 8px;
  padding: 12px 13px;
  font-size: 15px;
  background: #fff;
  color: var(--spl-ink);
}

.spl-field textarea {
  min-height: 112px;
  resize: vertical;
}

.spl-field.full { grid-column: 1 / -1; }

.spl-status {
  display: none;
  margin-top: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 750;
  line-height: 1.45;
}

.spl-status.info { display: block; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.spl-status.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.spl-status.warn { display: block; background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.spl-status.error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.spl-dashboard-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.spl-product-list,
.spl-order-list {
  display: grid;
  gap: 12px;
}

.spl-order-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--spl-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.spl-product-empty {
  border: 1px dashed rgba(15, 23, 42, 0.20);
  border-radius: 8px;
  padding: 20px;
  color: var(--spl-muted);
  background: rgba(255, 255, 255, 0.72);
}

.spl-product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.spl-product-modal.is-open { display: flex; }

.spl-product-modal-card {
  width: min(620px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 20px;
}

.spl-product-footnote {
  color: var(--spl-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .spl-product-hero,
  .spl-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .spl-product-grid,
  .spl-form-grid {
    grid-template-columns: 1fr;
  }

  .spl-order-row {
    grid-template-columns: 1fr;
  }
}
