/*
 * Script & Poly catalog template overrides
 *
 * Ultra-minimal: transparent everywhere, no borders, no shadows, no radius.
 * Pure typographic hierarchy with Inter.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

html[data-template-theme="scriptandpoly"] {
  --page-bg: #ffffff;
  --panel-bg: transparent;
  --panel-border: transparent;
  --text-main: #111111;
  --text-subtle: #777777;
  --link: #111111;
  --link-hover: #000000;
  --backdrop: rgba(0, 0, 0, 0.55);
  --modal-bg: #ffffff;
  --modal-shadow: none;
  --modal-border: transparent;
  --radius: 0px;
}

html[data-template-theme="scriptandpoly"],
html[data-template-theme="scriptandpoly"] body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #ffffff;
  margin: 0;
  color: var(--text-main);
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
html[data-template-theme="scriptandpoly"] body {
  padding: 48px 0 72px;
}

html[data-template-theme="scriptandpoly"] .shell {
  max-width: 960px;
  gap: 48px;
  padding: 0 32px;
}

/* ── Eyebrow / brand ──────────────────────────────────────────────────────── */
html[data-template-theme="scriptandpoly"] .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ── Headings ─────────────────────────────────────────────────────────────── */
html[data-template-theme="scriptandpoly"] h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ── Body copy ────────────────────────────────────────────────────────────── */
html[data-template-theme="scriptandpoly"] .lede,
html[data-template-theme="scriptandpoly"] .panel-copy,
html[data-template-theme="scriptandpoly"] .configurator-meta,
html[data-template-theme="scriptandpoly"] .modal-subtitle,
html[data-template-theme="scriptandpoly"] .empty-state {
  color: var(--text-subtle);
}

/* ── Panel: frameless ─────────────────────────────────────────────────────── */
html[data-template-theme="scriptandpoly"] .panel {
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

html[data-template-theme="scriptandpoly"] .panel-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ── Configurator list ────────────────────────────────────────────────────── */
html[data-template-theme="scriptandpoly"] .configurator-list {
  gap: 0;
  border-top: none;
}

html[data-template-theme="scriptandpoly"] .configurator-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px 0;
  background: transparent;
  border: none;
  border-bottom: none;
  border-radius: 0;
}

html[data-template-theme="scriptandpoly"] .configurator-name,
html[data-template-theme="scriptandpoly"] .panel-title,
html[data-template-theme="scriptandpoly"] .modal-title {
  color: var(--text-main);
}

html[data-template-theme="scriptandpoly"] .configurator-name {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ── Open button ──────────────────────────────────────────────────────────── */
html[data-template-theme="scriptandpoly"] .configurator-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  min-height: 36px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

html[data-template-theme="scriptandpoly"] .configurator-link::after {
  content: '→';
  font-size: 13px;
  font-weight: 300;
}

html[data-template-theme="scriptandpoly"] .configurator-link:hover,
html[data-template-theme="scriptandpoly"] .configurator-link:focus-visible {
  color: var(--text-main);
  background: transparent;
  text-decoration: none;
}

html[data-template-theme="scriptandpoly"] .configurator-link:focus-visible {
  outline: 1px solid rgba(0, 0, 0, 0.2);
  outline-offset: 2px;
}

/* ── Modal chrome ─────────────────────────────────────────────────────────── */
html[data-template-theme="scriptandpoly"] .modal-window {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Gradient background behind the viewer inside the modal */
html[data-template-theme="scriptandpoly"] .modal-body vertcie-client {
  background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
}

html[data-template-theme="scriptandpoly"] .modal-header {
  background: #ffffff;
  border-bottom: none;
}

html[data-template-theme="scriptandpoly"] .modal-close {
  background: transparent;
  color: var(--text-subtle);
  border: none;
}

html[data-template-theme="scriptandpoly"] .modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  html[data-template-theme="scriptandpoly"] .shell {
    padding: 0 20px;
  }

  html[data-template-theme="scriptandpoly"] .configurator-item {
    grid-template-columns: 1fr;
  }
}
