/* ============================================================
   TERMINAL THEME — DARK monospace desktop-window chrome
   ============================================================
   
:root {
  --color-primary: #168A4A;
  --color-primary-dark: #0F6B39;
  --color-secondary: #B77900;
  --color-accent: #168A4A;
  --color-accent-2: #2677B8;

  --color-bg: #F7F9F8;
  --color-bg-elevated: #FFFFFF;
  --color-text: #1B2925;
  --color-text-light: #52635E;
  --color-muted: #7A8985;
  --color-border: #D5DEDB;

  --font-heading: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'JetBrains Mono', 'Courier New', monospace;

  --content-max-width: 860px;
  --radius: 6px;
}
======================================================================
TERMINAL THEME — LIGHT monospace desktop-window chrome
==================================================================


:root {
  --color-primary: #168A4A;
  --color-primary-dark: #0F6B39;
  --color-secondary: #B77900;
  --color-accent: #168A4A;
  --color-accent-2: #2677B8;

  --color-bg: #F7F9F8;
  --color-bg-elevated: #FFFFFF;
  --color-text: #1B2925;
  --color-text-light: #52635E;
  --color-muted: #7A8985;
  --color-border: #D5DEDB;

  --font-heading: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'JetBrains Mono', 'Courier New', monospace;

  --content-max-width: 860px;
  --radius: 6px;
}
   
   */
   
/* ============================================================
   TERMINAL THEME — warm coffee / maroon light chrome
   ============================================================ */

:root {
  --color-primary: #8F4E3A;
  --color-primary-dark: #713A2D;
  --color-secondary: #A8793E;
  --color-accent: #9A4F45;
  --color-accent-2: #7C6470;

  --color-bg: #FAF8F5;
  --color-bg-elevated: #F2EEEA;
  --color-text: #332825;
  --color-text-light: #6F625C;
  --color-muted: #9A8D86;
  --color-border: #DED6D0;

  --font-heading: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'JetBrains Mono', 'Courier New', monospace;

  --content-max-width: 860px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; color: var(--color-text); }

/* ---------- Titlebar ---------- */
.titlebar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 100;
}
.titlebar-dots { display: flex; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #FF5F57; } .dot-yellow { background: #FEBC2E; } .dot-green { background: #28C840; }
.titlebar-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-text); margin-right: auto; }
.titlebar-logo { width: 20px; height: 20px; border-radius: 4px; }

.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 6px 10px; border-radius: 4px; font-size: 0.85rem; color: var(--color-text-light); }
.nav-item > a:hover { background: var(--color-bg); color: var(--color-primary); text-decoration: none; }
.nav-item.active > a { color: var(--color-primary); }
.dropdown { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: 4px; display: none; z-index: 50; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 6px 10px; font-size: 0.8rem; color: var(--color-text-light); border-radius: 4px; }
.dropdown a:hover { background: var(--color-bg); color: var(--color-primary); text-decoration: none; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 6px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--color-text); }

/* ---------- Banner (looks like a file preview) ---------- */
.site-banner-frame { margin: 20px auto 0; max-width: var(--content-max-width); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.frame-bar { padding: 6px 12px; background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border); font-size: 0.75rem; color: var(--color-muted); }
.site-banner { height: 220px; background-size: cover; background-position: center; }

/* ---------- Console panel ---------- */
.page-content { max-width: var(--content-max-width); margin: 0 auto; padding: 32px 20px 64px; }
.console { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.console-bar { padding: 8px 14px; background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border); }
.console-path { font-size: 0.78rem; color: var(--color-muted); }
.console-body { padding: 28px 26px; }

.page-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.prompt-inline { color: var(--color-primary); font-weight: 700; }
.page-title { font-size: 1.4rem; margin: 0; }
.page-excerpt { color: var(--color-text-light); margin: 0 0 24px; font-size: 0.92rem; }

.content-wrapper h2 { font-size: 1.15rem; margin-top: 2em; color: var(--color-primary); }
.content-wrapper h2::before { content: "## "; color: var(--color-muted); }
.content-wrapper h3 { font-size: 1.02rem; margin-top: 1.6em; }
.content-wrapper h3::before { content: "### "; color: var(--color-muted); }
.content-wrapper p { margin: 1em 0; color: var(--color-text-light); }
.content-wrapper blockquote { margin: 1.5em 0; padding: 10px 16px; border-left: 3px solid var(--color-primary); background: var(--color-bg); color: var(--color-text-light); }
.content-wrapper strong { color: var(--color-text); }

/* ---------- ls-style post list ---------- */
.ls-list { display: flex; flex-direction: column; }
.ls-row { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.ls-row a { display: flex; align-items: baseline; gap: 10px; color: var(--color-text); }
.ls-row a:hover { text-decoration: none; }
.ls-row a:hover .ls-name { color: var(--color-primary); }
.ls-arrow { color: var(--color-muted); }
.ls-name { flex: 1; font-weight: 600; }
.ls-date { font-size: 0.78rem; color: var(--color-muted); }
.post-excerpt { margin: 4px 0 0 20px; font-size: 0.85rem; color: var(--color-text-light); }

/* ---------- File grid (gallery / shop) ---------- */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.file-tile { display: block; border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; background: var(--color-bg); }
.file-tile:hover { border-color: var(--color-primary); text-decoration: none; }
.file-tile-media { aspect-ratio: 4/3; background: var(--color-bg-elevated); overflow: hidden; }
.file-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { width: 100%; height: 100%; background: var(--color-border); }
.file-tile-body { padding: 8px 10px; display: flex; flex-direction: column; }
.file-tile-name { font-size: 0.82rem; font-weight: 600; color: var(--color-text); }
.file-tile-meta { font-size: 0.72rem; color: var(--color-muted); }

.photo-file-grid .photo-item { aspect-ratio: 1; border-radius: 4px; overflow: hidden; cursor: pointer; border: 1px solid var(--color-border); }
.photo-file-grid .photo-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Item details ---------- */
.item-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.item-gallery { display: flex; flex-direction: column; gap: 10px; }
.item-gallery img { border-radius: 4px; }
.item-price-tag { font-weight: 700; color: var(--color-primary); margin-bottom: 14px; }

/* ---------- Empty state ---------- */
.empty-state-card { padding: 32px; border: 1px dashed var(--color-border); border-radius: 4px; }
.empty-state { color: var(--color-muted); margin: 0; font-size: 0.88rem; }

/* ---------- Footer (shell prompt) ---------- */
.site-footer { max-width: var(--content-max-width); margin: 0 auto; padding: 0 20px 40px; font-size: 0.82rem; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prompt { color: var(--color-primary); }
.cursor { animation: term-blink 1s steps(1) infinite; color: var(--color-primary); }
@keyframes term-blink { 50% { opacity: 0; } }
.footer-meta { margin-left: auto; color: var(--color-muted); }

/* ---------- Lightbox ---------- */
.sp-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; z-index: 999; }
.sp-lightbox[aria-hidden="false"] { display: flex; }
.sp-lightbox-image { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
.sp-lightbox-close, .sp-lightbox-prev, .sp-lightbox-next {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid var(--color-border); color: var(--color-text);
  font-size: 1.6rem; cursor: pointer; padding: 6px 12px; border-radius: 4px;
}
.sp-lightbox-close { top: 20px; right: 20px; }
.sp-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.sp-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border); padding: 8px; }
  .nav-list.open { display: flex; }
  .titlebar { position: relative; }
  .console-body { padding: 20px 16px; }
  .item-details { grid-template-columns: 1fr; }
}

/* ============================================================
   SHORTCODE COMPONENTS — shared across every theme
   Styles every <<tag:...>> plugin's output classes (see
   src/shortcodes/plugins/*.ts) plus the auto-generated Shortcode
   Reference page. Reads only the common variable names every
   theme's :root already defines: --color-primary, --color-bg,
   --color-bg-elevated, --color-border, --color-text,
   --color-text-light, --color-muted, --color-accent (falls back
   to --color-primary if a theme has no separate accent), --radius,
   --font-heading, --font-body. Safe to append verbatim to any
   theme.css — nothing here is Aurora- or layout-specific.
   ============================================================ */

/* ---------- Notice callout ---------- */
.sp-notice {
  display: flex; align-items: flex-start; gap: 0.7em;
  padding: 1em 1.2em; margin: 1.5em 0;
  border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary);
  border-radius: var(--radius); background: var(--color-bg-elevated);
}
.sp-notice-icon { flex-shrink: 0; font-size: 1.1em; line-height: 1.4; }
.sp-notice-text { color: var(--color-text-light); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Button ---------- */
.sp-button {
  display: inline-block;
  padding: 0.65em 1.4em;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.sp-button:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; color: #fff; }

/* ---------- Banner (in-content hero) ---------- */
.sp-banner {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 1.5em 0;
}
.sp-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.38); }
.sp-banner-content { position: relative; text-align: center; padding: 2em; color: #fff; max-width: 620px; }
.sp-banner-headline { font-family: var(--font-heading); font-size: 1.8rem; margin: 0 0 0.4em; color: #fff; }
.sp-banner-subtext { margin: 0; color: rgba(255,255,255,0.9); }

/* ---------- Color swatch chip ---------- */
.sp-color-chip { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.3em 0.7em 0.3em 0.3em; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-bg-elevated); }
.sp-color-swatch { width: 1.6em; height: 1.6em; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); flex-shrink: 0; }
.sp-color-info { display: flex; flex-direction: column; line-height: 1.25; }
.sp-color-label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.sp-color-hex { font-size: 0.75rem; color: var(--color-muted); font-family: monospace; }

/* ---------- Countdown ---------- */
.sp-countdown { display: inline-flex; flex-direction: column; align-items: center; gap: 0.2em; padding: 1em 1.6em; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-elevated); }
.sp-countdown-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.sp-countdown-value { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--color-primary); font-variant-numeric: tabular-nums; }

/* ---------- Feedback widget ---------- */
.sp-feedback { padding: 1.2em 1.4em; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-elevated); }
.sp-feedback-question { font-weight: 600; margin-bottom: 0.8em; color: var(--color-text); }
.sp-feedback-options { display: flex; flex-wrap: wrap; gap: 0.6em; }
.sp-feedback-btn { padding: 0.5em 1.1em; border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: 0.15s; }
.sp-feedback-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.sp-feedback-btn.selected { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.sp-feedback-thanks { display: none; margin-top: 0.8em; font-size: 0.9rem; color: var(--color-muted); }
.sp-feedback-thanks.visible { display: block; }

/* ---------- Flip card ---------- */
.sp-flipcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.5em 0; }
.sp-flipcard { perspective: 1200px; height: 260px; }
.sp-flipcard-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.sp-flipcard:hover .sp-flipcard-inner { transform: rotateY(180deg); }
.sp-flipcard-front, .sp-flipcard-back {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border);
  display: flex; flex-direction: column;
}
.sp-flipcard-front { background: var(--color-bg-elevated); }
.sp-flipcard-front img { width: 100%; flex: 1; object-fit: cover; }
.sp-flipcard-title { padding: 0.7em 0.9em; font-weight: 600; color: var(--color-text); }
.sp-flipcard-back {
  transform: rotateY(180deg);
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 1.4em;
}
.sp-flipcard-back-text { font-size: 0.95rem; text-align: center; }

/* ---------- Glossary tooltip ---------- */
.sp-glossary { position: relative; border-bottom: 1px dashed var(--color-muted); cursor: help; }
.sp-glossary-mark { font-size: 0.7em; color: var(--color-primary); margin-left: 0.1em; }
.sp-glossary::after {
  content: attr(data-tooltip);
  position: absolute; left: 50%; bottom: 130%; transform: translateX(-50%) translateY(4px);
  background: var(--color-text); color: var(--color-bg); font-size: 0.8rem; line-height: 1.4;
  padding: 0.5em 0.8em; border-radius: 8px; width: max-content; max-width: 240px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; z-index: 20;
}
.sp-glossary:hover::after, .sp-glossary:focus::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Link card ---------- */
.sp-link-card { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.5em 1em; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-primary); font-weight: 600; text-decoration: none; }
.sp-link-card:hover { border-color: var(--color-primary); text-decoration: none; }
.sp-link-arrow { transition: transform 0.15s; }
.sp-link-card:hover .sp-link-arrow { transform: translate(2px, -2px); }

/* ---------- Logo block/row ---------- */
.sp-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2em; margin: 1.5em 0; }
.sp-logo-block { display: inline-flex; }
.sp-logo-image { max-height: 40px; width: auto; opacity: 0.75; transition: opacity 0.15s; }
.sp-logo-image:hover { opacity: 1; }

/* ---------- PDF embed ---------- */
.sp-pdf-embed { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; margin: 1.5em 0; }
.sp-pdf-embed iframe { width: 100%; height: 480px; border: none; display: block; }
.sp-pdf-download { display: block; padding: 0.8em 1em; background: var(--color-bg-elevated); color: var(--color-primary); font-weight: 600; text-decoration: none; text-align: center; border-top: 1px solid var(--color-border); }

/* ---------- Product card ---------- */
.sp-productcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.5em 0; }
.sp-productcard { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-bg-elevated); }
.sp-productcard-image { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg); }
.sp-productcard-image img { width: 100%; height: 100%; object-fit: cover; }
.sp-productcard-body { padding: 1em 1.1em; }
.sp-productcard-title { font-weight: 600; color: var(--color-text); margin-bottom: 0.3em; }
.sp-productcard-description { font-size: 0.88rem; color: var(--color-text-light); margin-bottom: 0.5em; }
.sp-productcard-price { font-weight: 700; color: var(--color-primary); }
.sp-productcard-horizontal { display: flex; }
.sp-productcard-horizontal .sp-productcard-image { width: 220px; aspect-ratio: auto; flex-shrink: 0; }

/* ---------- Profile card ---------- */
.sp-profilecard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; margin: 1.5em 0; }
.sp-profilecard { text-align: center; padding: 1.6em 1.2em; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-elevated); }
.sp-profilecard-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.8em; }
.sp-profilecard-name { font-weight: 700; color: var(--color-text); }
.sp-profilecard-role { font-size: 0.85rem; color: var(--color-primary); margin: 0.15em 0 0.6em; }
.sp-profilecard-bio { font-size: 0.85rem; color: var(--color-text-light); }

/* ---------- Progress bar ---------- */
.sp-progress { position: relative; height: 10px; border-radius: 999px; background: var(--color-border); overflow: hidden; margin: 1em 0; }
.sp-progress-bar { height: 100%; background: var(--color-primary); border-radius: 999px; transition: width 0.4s; }
.sp-progress-label { position: absolute; right: 0; top: -1.5em; font-size: 0.8rem; font-weight: 600; color: var(--color-muted); }

/* ---------- Rating stars ---------- */
.sp-rating { display: inline-flex; align-items: center; gap: 0.5em; }
.sp-star { position: relative; display: inline-block; width: 1.1em; color: var(--color-border); font-family: inherit; }
.sp-star::before { content: "★"; }
.sp-star-fill { position: absolute; inset: 0; overflow: hidden; color: var(--color-primary); }
.sp-star-fill::before { content: "★"; }
.sp-rating-text { font-size: 0.85rem; color: var(--color-muted); }

/* ---------- Slider ---------- */
.sp-slider { position: relative; border-radius: var(--radius); overflow: hidden; margin: 1.5em 0; background: var(--color-bg-elevated); }
.sp-slider-track { position: relative; aspect-ratio: 16/9; }
.sp-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.4s; }
.sp-slide.active { opacity: 1; visibility: visible; }
.sp-slide img { width: 100%; height: 100%; object-fit: cover; }
.sp-slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.8em 1em; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.88rem; }
.sp-slider-prev, .sp-slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(0,0,0,0.4); color: #fff; border: none; width: 36px; height: 36px;
  border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.sp-slider-prev { left: 12px; } .sp-slider-next { right: 12px; }
.sp-slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.sp-slider-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; }
.sp-slider-dot.active { background: #fff; }

/* ---------- Social badge ---------- */
.sp-social-badge { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.45em 0.9em; border-radius: 999px; border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; font-size: 0.88rem; font-weight: 600; margin: 0.2em; }
.sp-social-badge:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.sp-social-icon { font-size: 1em; }
.sp-social-unknown { color: var(--color-muted); border-style: dashed; }

/* ---------- Embeds (video/audio/soundcloud/tiktok/youtube/pdf) ---------- */
.video-embed, .sp-video-embed { position: relative; border-radius: var(--radius); overflow: hidden; margin: 1.5em 0; background: #000; }
.video-embed { aspect-ratio: 16/9; }
.video-embed iframe { width: 100%; height: 100%; border: none; display: block; }
.sp-video-embed video { width: 100%; display: block; }
.sp-audio-embed { margin: 1.5em 0; }
.sp-audio-embed audio { width: 100%; }
.sp-soundcloud-embed { margin: 1.5em 0; border-radius: var(--radius); overflow: hidden; }
.sp-tiktok-embed { margin: 1.5em 0; display: flex; justify-content: center; }
.sp-tiktok-embed iframe { width: 325px; height: 578px; border: none; border-radius: var(--radius); }

/* ---------- Typing effect ---------- */
.sp-typing { color: var(--color-primary); font-weight: 600; }
.sp-typing::after { content: "|"; margin-left: 2px; animation: sp-typing-blink 0.9s steps(1) infinite; }
@keyframes sp-typing-blink { 50% { opacity: 0; } }

/* ---------- Card horizontal modifier (solo card) ---------- */
.sp-card-horizontal { display: flex; }
.sp-card-horizontal .sp-card-image { width: 220px; aspect-ratio: auto; flex-shrink: 0; }
.sp-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.5em 0; }
.sp-card-image { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg); }
.sp-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Shortcode Reference page ---------- */
.sp-shortcode-ref-intro { max-width: 720px; margin: 0 0 1.75rem; color: var(--color-text-light); }
.sp-shortcode-ref-intro code { font-size: 0.85em; }
.sp-shortcode-ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }
.sp-shortcode-ref-item {
  display: flex; flex-direction: column; padding: 1.3rem 1.4rem;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-bg-elevated); transition: transform 0.15s, box-shadow 0.15s;
}
.sp-shortcode-ref-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.06); }
.sp-shortcode-ref-header { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.sp-shortcode-ref-name { font-family: monospace; font-size: 0.88rem; font-weight: 700; padding: 0.25rem 0.55rem; border-radius: 6px; background: var(--color-primary); color: #fff; white-space: nowrap; }
.sp-shortcode-ref-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); border: 1px solid var(--color-border); border-radius: 999px; padding: 0.2rem 0.55rem; white-space: nowrap; }
.sp-shortcode-ref-desc { font-size: 0.88rem; color: var(--color-text-light); margin: 0 0 0.9rem; }
.sp-shortcode-ref-example { margin: 0 0 1rem; padding: 0.7rem 0.85rem; border-radius: 8px; background: var(--color-bg); border: 1px solid var(--color-border); overflow-x: auto; }
.sp-shortcode-ref-example code { font-family: monospace; font-size: 0.8rem; color: var(--color-text); white-space: pre-wrap; word-break: break-word; }
.sp-shortcode-ref-preview { margin-top: auto; padding-top: 0.85rem; border-top: 1px dashed var(--color-border); }
.sp-shortcode-ref-preview-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.5rem; }
.sp-shortcode-ref-preview-body { font-size: 0.88rem; }
.sp-shortcode-ref-error { color: #c0392b; font-size: 0.85rem; }

@media (max-width: 640px) {
  .sp-productcard-horizontal, .sp-card-horizontal { flex-direction: column; }
  .sp-productcard-horizontal .sp-productcard-image, .sp-card-horizontal .sp-card-image { width: 100%; aspect-ratio: 4/3; }
  .sp-tiktok-embed iframe { width: 100%; max-width: 325px; }
}
