/* J613 store UI. Every class is prefixed st- so it can't collide with the sites' themes.
   Sites can re-theme by overriding these variables (e.g. in their own CSS after this file). */
:root {
  --st-accent: #1b9ce3;
  --st-accent-dark: #1580bb;
  --st-accent-soft: #e8f5fc;
  --st-text: #1f2933;
  --st-muted: #6b7280;
  --st-border: #e3e6ea;
  --st-bg: #ffffff;
  --st-bg-soft: #f6f8fa;
  --st-success: #157347;
  --st-success-soft: #e7f5ee;
  --st-danger: #b42318;
  --st-danger-soft: #fdecea;
  --st-warning: #9a5b00;
  --st-warning-soft: #fff6e0;
  --st-radius: 10px;
  --st-radius-sm: 6px;
  --st-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --st-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.18);
}

/* ── Base ─────────────────────────────────────────── */
.st-section { padding: 2.5rem 0 4rem; color: var(--st-text); }
.st-section h1, .st-section h2, .st-section h3 { color: var(--st-text); }
.st-muted { color: var(--st-muted) !important; }
.st-small { font-size: 0.875rem; }
.st-strong { font-weight: 600; }
.st-text-danger { color: var(--st-danger); }
.st-text-success { color: var(--st-success); }
.st-text-warning { color: var(--st-warning); }
.st-icon { flex-shrink: 0; vertical-align: -0.15em; }
.st-rotate { transform: rotate(180deg); }
.st-narrow { max-width: 820px; }
.st-narrow-sm { max-width: 520px; }
.st-row-between { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.st-back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.25rem; font-weight: 500; }
.st-hero .breadcrumbs a, .st-hero .breadcrumbs span { color: #fff; }
.st-price { white-space: nowrap; font-variant-numeric: tabular-nums; }

.st-link-button {
  background: none; border: 0; padding: 0; color: var(--st-accent); font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.st-link-button:hover { text-decoration: underline; }
.st-link-button:disabled { opacity: 0.5; cursor: default; }

.st-icon-button {
  display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem;
  border: 0; border-radius: 50%; background: transparent; color: var(--st-muted); cursor: pointer;
}
.st-icon-button:hover { background: var(--st-bg-soft); color: var(--st-text); }
.st-icon-button:disabled { opacity: 0.4; }

.st-section .btn-primary { background-color: var(--st-accent); border-color: var(--st-accent); }
.st-section .btn-primary:hover, .st-section .btn-primary:focus { background-color: var(--st-accent-dark); border-color: var(--st-accent-dark); }
.st-section .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: var(--st-radius-sm); }
.st-section :focus-visible { outline: 3px solid color-mix(in srgb, var(--st-accent) 45%, transparent); outline-offset: 2px; }

/* ── Panels, alerts, notes ───────────────────────── */
.st-panel {
  background: var(--st-bg); border: 1px solid var(--st-border); border-radius: var(--st-radius);
  padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--st-shadow);
}
.st-panel-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 1rem; }
.st-subheading { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.75rem; }
.st-alert { border-radius: var(--st-radius-sm); padding: 0.85rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; }
.st-alert:focus { outline: none; }
.st-alert-danger { background: var(--st-danger-soft); color: var(--st-danger); border-color: color-mix(in srgb, var(--st-danger) 25%, transparent); }
.st-alert-warning { background: var(--st-warning-soft); color: var(--st-warning); }
.st-alert-info { background: var(--st-accent-soft); color: #0b5c87; }
.st-alert-success { background: var(--st-success-soft); color: var(--st-success); }
.st-alert ul { padding-left: 1.2rem; }
.st-note {
  display: flex; gap: 0.75rem; align-items: flex-start; background: var(--st-bg-soft);
  border-radius: var(--st-radius-sm); padding: 0.85rem 1rem; color: var(--st-text);
}
.st-note .st-icon { color: var(--st-accent); margin-top: 0.15rem; }
.st-notice { color: var(--st-warning); }

.st-empty { text-align: center; padding: 3rem 1rem; color: var(--st-muted); }
.st-empty .st-icon { color: var(--st-border); margin-bottom: 1rem; }
.st-empty h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }

/* ── Chips & badges ──────────────────────────────── */
.st-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.st-chip-button {
  border: 1px solid var(--st-border); background: var(--st-bg); color: var(--st-text);
  border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.9rem; cursor: pointer;
}
.st-chip-button:hover { border-color: var(--st-accent); }
.st-chip-button.active { background: var(--st-accent); border-color: var(--st-accent); color: #fff; }
.st-chip {
  display: inline-flex; align-items: center; gap: 0.25rem; background: var(--st-accent-soft); color: #0b5c87;
  border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.78rem; font-weight: 600;
}
.st-chip-lg { font-size: 0.9rem; padding: 0.35rem 0.8rem; }
.st-format {
  display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--st-muted);
}
.st-format-digital { color: var(--st-accent-dark); }
.st-status {
  display: inline-block; border-radius: 999px; padding: 0.15rem 0.65rem; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.st-status-info { background: var(--st-accent-soft); color: #0b5c87; }
.st-status-success { background: var(--st-success-soft); color: var(--st-success); }
.st-status-warning { background: var(--st-warning-soft); color: var(--st-warning); }
.st-status-danger { background: var(--st-danger-soft); color: var(--st-danger); }
.st-status-muted { background: var(--st-bg-soft); color: var(--st-muted); }

/* ── Catalog ─────────────────────────────────────── */
.st-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-bottom: 1.25rem; }
.st-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.st-search .st-icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--st-muted); }
.st-search .form-control { padding-left: 2.3rem; border-radius: 999px; }
.st-sort { display: flex; align-items: center; margin-left: auto; }
.st-sort .form-select { width: auto; }

.st-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.st-card {
  display: flex; flex-direction: column; background: var(--st-bg); border: 1px solid var(--st-border);
  border-radius: var(--st-radius); overflow: hidden; box-shadow: var(--st-shadow); transition: box-shadow 0.15s, transform 0.15s;
}
.st-card:hover { box-shadow: var(--st-shadow-lg); transform: translateY(-2px); }
.st-card-cover { display: block; }
.st-card-body { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem 1rem; flex: 1; }
.st-card-title { font-size: 1rem; font-weight: 600; line-height: 1.3; margin: 0.15rem 0 0; }
.st-card-title a { color: var(--st-text); }
.st-card-title a:hover { color: var(--st-accent); }
.st-card-author { color: var(--st-muted); font-size: 0.875rem; margin: 0; }
.st-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.75rem; }
.st-card-price { font-weight: 700; font-size: 1.05rem; }

/* Covers never crop: books come in many shapes */
.st-cover {
  display: flex; align-items: center; justify-content: center; background: var(--st-bg-soft);
  aspect-ratio: 3 / 4; padding: 0.75rem; overflow: hidden;
}
.st-cover img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.st-cover-placeholder { color: var(--st-border); }
.st-cover-lg { border-radius: var(--st-radius); padding: 1.5rem; }
.st-cover-sm { width: 84px; border-radius: var(--st-radius-sm); padding: 0.35rem; }
.st-cover-xs { width: 56px; border-radius: var(--st-radius-sm); padding: 0.25rem; }

/* Skeleton loading */
.st-skeleton .st-cover, .st-skeleton span {
  background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 37%, #eef0f3 63%); background-size: 400% 100%;
  animation: st-shimmer 1.4s ease infinite;
}
.st-skeleton span { display: block; height: 0.9rem; border-radius: 4px; margin: 0.6rem 0; }
.st-skeleton span:nth-child(2) { width: 60%; }
.st-skeleton span:nth-child(3) { width: 80%; }
@keyframes st-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── Book details ────────────────────────────────── */
.st-details { display: grid; gap: 2.5rem; grid-template-columns: minmax(220px, 380px) 1fr; align-items: start; }
.st-details-title { font-size: 2rem; font-weight: 700; margin: 0.35rem 0; }
.st-details-author { color: var(--st-muted); font-size: 1.05rem; }
.st-details-price { display: block; font-size: 1.6rem; font-weight: 700; margin: 0.75rem 0 1.25rem; }
.st-buy-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.st-perks { list-style: none; padding: 1rem 0; margin: 1.5rem 0; border-top: 1px solid var(--st-border); border-bottom: 1px solid var(--st-border); }
.st-perks li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.3rem 0; }
.st-perks .st-icon { color: var(--st-accent); margin-top: 0.2rem; }
.st-section-title { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.st-prose p { margin-bottom: 0.75rem; line-height: 1.65; }

/* ── Quantity stepper ────────────────────────────── */
.st-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); overflow: hidden; background: var(--st-bg); }
.st-stepper-btn { border: 0; background: var(--st-bg-soft); width: 2.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--st-text); }
.st-stepper-btn:hover:not(:disabled) { background: var(--st-border); }
.st-stepper-btn:disabled { color: #c3c7cd; cursor: default; }
.st-stepper-input { width: 3rem; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.st-stepper-input::-webkit-inner-spin-button, .st-stepper-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.st-stepper { height: 2.6rem; }
.st-stepper-sm { height: 2rem; }
.st-stepper-sm .st-stepper-btn { width: 2rem; }
.st-stepper-sm .st-stepper-input { width: 2.25rem; font-size: 0.9rem; }

/* ── Cart button (header) & drawer ───────────────── */
.st-cart-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0;
  color: inherit; padding: 0.25rem; cursor: pointer;
}
.st-cart-count {
  position: absolute; top: -0.3rem; right: -0.55rem; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem;
  border-radius: 999px; background: #dc3545; color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1.25rem; text-align: center;
}
.st-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); opacity: 0; visibility: hidden; transition: opacity 0.2s; z-index: 1080;
}
.st-drawer-backdrop.show { opacity: 1; visibility: visible; }
.st-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--st-bg); color: var(--st-text);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease, visibility 0.25s;
  visibility: hidden; z-index: 1090; box-shadow: var(--st-shadow-lg);
}
.st-drawer.show { transform: translateX(0); visibility: visible; }
.st-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--st-border); }
.st-drawer-title { font-size: 1.15rem; font-weight: 600; margin: 0; color: var(--st-text); }
.st-drawer-lines { list-style: none; margin: 0; padding: 0.5rem 1.25rem; overflow-y: auto; flex: 1; }
.st-drawer-line { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid var(--st-border); }
.st-drawer-line-body { flex: 1; min-width: 0; }
.st-just-added { animation: st-flash 1.6s ease; }
@keyframes st-flash { 0% { background: var(--st-accent-soft); } 100% { background: transparent; } }
.st-line-title { display: block; font-weight: 600; color: var(--st-text); line-height: 1.3; }
.st-line-title:hover { color: var(--st-accent); }
.st-drawer-footer { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--st-border); background: var(--st-bg-soft); }
.st-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; color: var(--st-muted); }

/* ── Toasts ──────────────────────────────────────── */
.st-toasts { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; gap: 0.5rem; width: min(480px, calc(100vw - 2rem)); }
.st-toast {
  display: flex; align-items: center; gap: 0.75rem; background: #1f2933; color: #fff; border-radius: var(--st-radius-sm);
  padding: 0.6rem 0.6rem 0.6rem 1rem; box-shadow: var(--st-shadow-lg); animation: st-toast-in 0.2s ease;
}
.st-toast-error { background: var(--st-danger); }
.st-toast-message { flex: 1; }
.st-toast .st-link-button { color: #8fd3fb; }
.st-toast .st-icon-button { color: rgba(255, 255, 255, 0.75); width: 1.75rem; height: 1.75rem; }
.st-toast .st-icon-button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
@keyframes st-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Two-column layouts ──────────────────────────── */
.st-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.st-layout-checkout { grid-template-columns: minmax(0, 1fr) 380px; }
.st-sticky { position: sticky; top: var(--st-sticky-top, 5rem); }

/* Cart page */
.st-cart-lines { list-style: none; margin: 0; padding: 0; }
.st-cart-line {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 1rem; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--st-border);
}
.st-cart-line:last-child { border-bottom: 0; }
.st-cart-line-qty { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.st-cart-line-total { min-width: 5.5rem; text-align: right; }
.st-price-changed { color: var(--st-warning); margin-left: 0.25rem; }

/* Totals */
.st-totals { margin: 0; }
.st-totals-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.st-totals dt { font-weight: 400; }
.st-totals dd { margin: 0; text-align: right; }
.st-totals .st-discount dd { color: var(--st-success); }
.st-total { border-top: 1px solid var(--st-border); margin-top: 0.5rem; padding-top: 0.75rem; font-size: 1.15rem; }
.st-total dt, .st-total dd { font-weight: 700; }

/* ── Checkout ────────────────────────────────────── */
.st-step-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; font-weight: 600; margin: 0 0 1rem; }
.st-step-number {
  display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--st-accent); color: #fff; font-size: 0.9rem;
}
.st-field { margin-bottom: 0.9rem; border: 0; padding: 0; min-width: 0; }
.st-field .form-label, .st-field legend.form-label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.3rem; }
.st-field-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-field-grid-3 { grid-template-columns: 2fr 1.4fr 1fr; }
.st-field-error { color: var(--st-danger); font-size: 0.85rem; margin-top: 0.25rem; }
.st-section .form-control.is-invalid, .st-section .form-select.is-invalid { border-color: var(--st-danger); }

.st-options { display: grid; gap: 0.5rem; }
.st-option {
  display: flex; align-items: center; gap: 0.75rem; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm);
  padding: 0.75rem 1rem; cursor: pointer; margin: 0;
}
.st-option:hover { border-color: var(--st-accent); }
.st-option.selected { border-color: var(--st-accent); background: var(--st-accent-soft); box-shadow: inset 0 0 0 1px var(--st-accent); }
.st-option input { accent-color: var(--st-accent); }
.st-option-body { display: flex; flex-direction: column; flex: 1; }
.st-option-title { font-weight: 600; }
.st-option-price { font-weight: 600; }

.st-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.st-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; border: 1px solid var(--st-border);
  background: var(--st-bg); border-radius: var(--st-radius-sm); padding: 0.65rem 1rem; font-weight: 600; cursor: pointer; color: var(--st-text);
}
.st-tab.active { border-color: var(--st-accent); background: var(--st-accent-soft); box-shadow: inset 0 0 0 1px var(--st-accent); }
.st-card-fields { background: var(--st-bg-soft); border-radius: var(--st-radius-sm); padding: 1rem; }
.st-cc-brand { float: right; color: var(--st-muted); font-weight: 600; font-size: 0.85rem; }
.st-place-order { margin: 1.25rem 0 2rem; }
.st-place-button { padding: 0.85rem 1rem; font-size: 1.1rem; }
.st-paypal { min-height: 50px; max-width: 100%; }

.st-summary-toggle { display: none; }
.st-summary-lines { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.st-summary-lines li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; }
.st-summary-thumb { position: relative; }
.st-summary-qty {
  position: absolute; top: -0.4rem; right: -0.4rem; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; background: var(--st-muted);
  color: #fff; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 0.3rem;
}
.st-summary-title { flex: 1; min-width: 0; font-size: 0.92rem; line-height: 1.3; }
.st-promo { display: flex; gap: 0.5rem; align-items: center; margin: 1rem 0 0.4rem; }
.st-promo .form-control { flex: 1; }

/* ── Orders ──────────────────────────────────────── */
.st-confirmation {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--st-success-soft); border-radius: var(--st-radius);
  padding: 1.25rem; margin-bottom: 1rem; color: var(--st-text);
}
.st-confirmation h2 { font-size: 1.3rem; margin: 0 0 0.25rem; }
.st-confirmation p { margin: 0; }
.st-confirmation-icon { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--st-success); color: #fff; flex-shrink: 0; }
.st-confirmation-review { background: var(--st-warning-soft); }
.st-confirmation-review .st-confirmation-icon { background: var(--st-warning); }
.st-order-head { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-bottom: 1.25rem; }
.st-order-number { font-weight: 700; font-size: 1.1rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.st-order-details { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.st-order-details .st-subheading { margin-top: 0; }
.st-order-details address { margin: 0; font-style: normal; line-height: 1.5; }
.st-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.st-cta { background: var(--st-accent-soft); border-color: transparent; }

.st-timeline { display: flex; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.st-timeline-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 0.85rem; }
.st-timeline-step::before {
  content: ""; position: absolute; top: 0.55rem; left: -50%; width: 100%; height: 3px; background: var(--st-border); z-index: 0;
}
.st-timeline-step:first-child::before { display: none; }
.st-timeline-dot { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--st-bg); border: 3px solid var(--st-border); z-index: 1; margin-bottom: 0.4rem; }
.st-timeline-step.done .st-timeline-dot { background: var(--st-success); border-color: var(--st-success); }
.st-timeline-step.done::before, .st-timeline-step.current::before { background: var(--st-success); }
.st-timeline-step.current .st-timeline-dot { border-color: var(--st-accent); }
.st-timeline-step.stopped .st-timeline-dot { background: var(--st-danger); border-color: var(--st-danger); }
.st-timeline-label { font-weight: 600; }
.st-timeline-date { color: var(--st-muted); font-size: 0.78rem; }

.st-order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.st-order-card {
  display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; background: var(--st-bg);
  border: 1px solid var(--st-border); border-radius: var(--st-radius); padding: 1rem 1.25rem; color: var(--st-text); box-shadow: var(--st-shadow);
}
.st-order-card:hover { border-color: var(--st-accent); color: var(--st-text); text-decoration: none; }

/* ── Admin ───────────────────────────────────────── */
.st-admin { padding-top: 2rem; }
.st-admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1rem; }
.st-admin-title { font-size: 1.6rem; font-weight: 700; margin: 0; }
.st-admin-filters { display: grid; gap: 0.75rem; grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr auto; align-items: end; margin-bottom: 0.75rem; }
.st-admin-filter-actions { display: flex; gap: 0.5rem; }
.st-quick-filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.st-table { font-size: 0.92rem; }
.st-table th { font-weight: 600; color: var(--st-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.st-table td, .st-table th { padding: 0.65rem 0.9rem; vertical-align: middle; }
.st-clickable { cursor: pointer; }
.st-clickable:hover { background: var(--st-bg-soft); }
.st-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.st-admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.st-events { list-style: none; padding: 0; margin: 0; }
.st-events li { padding: 0.5rem 0; border-bottom: 1px solid var(--st-border); }
.st-events li:last-child { border-bottom: 0; }

/* ── Modal ───────────────────────────────────────── */
.st-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 1095; }
.st-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100vw - 2rem));
  background: var(--st-bg); border-radius: var(--st-radius); padding: 1.5rem; z-index: 1096; box-shadow: var(--st-shadow-lg); color: var(--st-text);
}
.st-modal-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.75rem; }
.st-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 991.98px) {
  .st-layout, .st-layout-checkout { grid-template-columns: minmax(0, 1fr); }
  .st-sticky { position: static; }
  .st-details { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .st-details-media { max-width: 360px; margin: 0 auto; width: 100%; }

  /* Checkout: compact summary first, expandable */
  .st-layout-checkout .st-summary { order: -1; padding: 0; }
  .st-summary-toggle {
    display: flex; align-items: center; gap: 0.5rem; width: 100%; background: var(--st-bg-soft); border: 0;
    border-radius: var(--st-radius); padding: 0.9rem 1.25rem; color: var(--st-accent-dark); font-weight: 600;
  }
  .st-summary-body { display: none; padding: 1.25rem; }
  .st-summary-body.open { display: block; }
  .st-admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .st-section { padding: 1.5rem 0 3rem; }
  .st-panel { padding: 1rem; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .st-card-body { padding: 0.75rem; }
  .st-card-footer { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .st-sort { margin-left: 0; width: 100%; }
  .st-sort .form-select { flex: 1; }
  .st-cart-line { grid-template-columns: 64px minmax(0, 1fr); padding: 1rem; }
  .st-cart-line .st-cover-sm { width: 64px; }
  .st-cart-line-qty { grid-column: 2; flex-direction: row; justify-content: space-between; }
  .st-cart-line-total { grid-column: 2; text-align: left; }
  .st-field-grid, .st-field-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .st-details-title { font-size: 1.5rem; }
  .st-order-card { grid-template-columns: 1fr auto; }
  .st-order-card .st-status { grid-row: 2; }
  .st-timeline-step { font-size: 0.75rem; }
  .st-admin-filters { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .st-card, .st-drawer, .st-drawer-backdrop, .st-toast, .st-skeleton * { transition: none !important; animation: none !important; }
}
