/* ── Fonts ─────────────────────────────────────────── */
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/DMSerifDisplay-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/DMSerifDisplay-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Figtree-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Figtree-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Figtree-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Figtree-Bold.ttf") format("truetype");
}

/* ── Design tokens ───────────────────────────────
   Black & white — stark, minimal, no shades of gray.
   ─────────────────────────────────────────────────*/
:root {
  --ink: #0a0a0a;
  --ink-soft: #555;
  --ink-faint: #999;
  --paper: #ffffff;
  --paper-card: #f5f5f5;
  --border: #ddd;
  --accent: #0a0a0a;
  --accent-bg: #eee;
  --green-bg: #e6f0e6;
  --green-text: #2d6a4f;

  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 5rem;

  --content-w: 800px;
  --wide-w: 800px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ────────────────────────────────────── */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ── Site header ───────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm);
}

.site-title {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: normal;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.site-title:hover {
  opacity: 0.7;
}

/* ── Hero / intro ──────────────────────────────── */
.hero {
  padding: var(--space-2xl) 0 var(--space-lg);
  text-align: center;
}

.hero h1 {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.hero p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Section heading ───────────────────────────── */
.section-heading {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

/* ── Post list (homepage) ──────────────────────── */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-preview {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-sm);
}

.post-preview:first-child {
  padding-top: 0;
}

.post-preview:last-child {
  border-bottom: none;
}

.post-link {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}

.post-link:hover {
  color: var(--accent);
}

.post-date {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ── Single post ───────────────────────────────── */
.post {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.post-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.post-header .post-title {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.post-header .post-date {
  font-size: 0.8125rem;
}

/* ── Empty State ───────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) 0;
  color: var(--ink-faint);
  font-style: italic;
}

/* ── Admin layout ──────────────────────────────── */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.admin-header h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
}

/* Admin table */
.admin-table-wrapper {
  width: 100%;
  overflow-x: scroll;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.admin-table .col-title {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table .col-date {
  white-space: nowrap;
}

.admin-table th {
  padding: 0.75rem 0.5rem 0.5rem;
  text-align: left;
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table .actions {
  white-space: nowrap;
}

.admin-table .actions a {
  margin-right: var(--space-sm);
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.admin-table .actions a:hover {
  color: var(--ink);
  text-decoration: none;
}

.admin-table .actions button {
  margin-right: var(--space-sm);
  font-size: 0.875rem;
  color: #d32f2f;
}

.inline-form {
  display: inline;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.status-draft {
  background: var(--paper-card);
  color: var(--ink-soft);
}

.status-published {
  background: var(--green-bg);
  color: var(--green-text);
}

/* ── Forms ─────────────────────────────────────── */
.post-form {
  max-width: var(--content-w);
}

/* ── Compact Lexxy toolbar ───────────────────── */
.post-form {
  --lexxy-toolbar-button-size: 1.5lh;
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--sans);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.form-group lexxy-editor {
  display: block;
  min-height: 400px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.form-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-lg);
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  padding: 0.6rem 1.25rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1.4;
}

.btn:hover {
  background: var(--accent);
}

.btn-link {
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-family: var(--sans);
  padding: 0;
  transition: color 0.2s;
}

.btn-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  line-height: 1;
  text-decoration: none !important;
}

/* ── Site nav ──────────────────────────────────── */
.site-nav {
  display: flex;
  gap: var(--space-sm);
}

.site-nav-link {
  font-size: 0.875rem;
  color: var(--ink-faint);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.site-nav-link:hover {
  color: var(--ink);
}

.site-nav-link.active {
  color: var(--ink);
}

/* ── Admin sidebar ─────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.05);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 200;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-brand {
  padding: var(--space-md) var(--space-md) var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand a {
  font-family: var(--display);
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.sidebar-brand-label {
  display: block;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.1rem;
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0 0.375rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-link {
  display: block;
  padding: 0.4375rem var(--space-md);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1.35;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.03);
}

.sidebar-link.active {
  color: #fff;
  border-left-color: #fff;
  background: rgba(255,255,255,0.05);
}

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.sidebar-footer .sidebar-link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.sidebar-footer .sidebar-link:hover {
  color: rgba(255,255,255,0.7);
  background: transparent;
}

/* ── Admin content ────────────────────────────── */
.admin-content {
  flex: 1;
  padding: var(--space-md) var(--space-sm);
  min-height: 100vh;
  overflow-x: auto;
}

.admin-content h1 {
  margin-bottom: 0;
}

/* ── Sidebar backdrop ──────────────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}

.sidebar-backdrop.show {
  display: block;
}

/* ── Menu toggle ─────────────────────────────────── */
.menu-toggle {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  margin-bottom: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  line-height: 1;
}

.menu-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .sidebar {
    transform: none;
    transition: none;
    z-index: 100;
  }

  .sidebar.open {
    transform: none;
  }

  .admin-content {
    margin-left: 280px;
    padding: var(--space-md);
  }

  .menu-toggle {
    display: none;
  }
}

/* ── Product grid (public) ────────────────────── */
.product-grid {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.product-card:hover {
  opacity: 0.7;
}

.product-card + .product-card {
  border-top: 1px solid var(--border);
}

.product-card-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.product-card-body {
  flex: 1;
  min-width: 0;
}

.product-card-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.375rem;
  color: var(--ink);
}

.product-card-price {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-card);
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
}

/* ── Product detail (public) ───────────────────── */
.product-detail {
  padding: var(--space-xl) 0 var(--space-xl);
}

.product-detail-right {
  padding-top: 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  align-items: start;
}

.product-featured-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: var(--space-md);
}

.product-short-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.product-detail-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.product-detail-right .product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.product-description {
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 2fr 3fr;
    gap: var(--space-lg);
  }

  .product-detail-right {
    padding-top: var(--space-lg);
  }

  .product-detail-title {
    font-size: 2rem;
  }

  .product-description {
    margin-top: var(--space-lg);
  }
}

.product-cta {
  margin-top: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--accent);
  border-radius: 8px;
}

.product-cta .btn {
  background: #fff;
  color: var(--accent);
}

.product-cta .btn:hover {
  background: var(--accent);
  color: #fff;
  outline: 1px solid #fff;
}

/* ── Purchase form ─────────────────────────────── */
.purchase-form-section {
  margin-top: var(--space-lg);
}

.purchase-form-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}

.purchase-form-section h2 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.purchase-form .form-group {
  margin-bottom: 0.75rem;
}

.purchase-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.purchase-form input[type="text"],
.purchase-form input[type="email"],
.purchase-form input[type="tel"] {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: var(--sans);
  transition: border-color 0.2s;
}

.purchase-form input[type="text"]:focus,
.purchase-form input[type="email"]:focus,
.purchase-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--accent);
}

.checkbox-group {
  margin-bottom: 0.5rem;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.375rem;
  font-weight: 400 !important;
  font-size: 0.875rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.required {
  color: #d32f2f;
}

@keyframes flash-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes flash-out {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

.flash-notice,
.flash-error {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  max-width: 380px;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: flash-in 0.35s ease-out;
}

.flash-notice.fade-out,
.flash-error.fade-out {
  animation: flash-out 0.3s ease-in forwards;
}

.flash-notice {
  background: var(--green-bg);
  border: 1px solid var(--green-text);
  color: var(--green-text);
}

.flash-error {
  background: #fdecea;
  border: 1px solid #d32f2f;
  color: #d32f2f;
}

.purchase-form .form-actions {
  margin-top: 1.5rem;
}

/* ── Purchase detail / payment page ──────────────── */
.purchase-detail {
  padding: var(--space-xl) 0;
  max-width: 600px;
}

.purchase-detail h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.purchase-detail p {
  margin-bottom: var(--space-xs);
  font-size: 0.9375rem;
}

.purchase-paid {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--green-bg);
  border-radius: 6px;
}

.purchase-paid p {
  color: var(--green-text);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.payment-instructions {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--paper-card);
  border-radius: 6px;
}

.payment-instructions h2 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.payment-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ── Thank you page ──────────────────────────────── */
.thank-you {
  padding: var(--space-2xl) 0;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.thank-you h1 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.thank-you p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}

.thank-you .btn {
  margin-top: var(--space-md);
}

/* ── Price input ──────────────────────────────── */
.price-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.price-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.price-currency {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--paper-card);
  border-right: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1;
  align-self: stretch;
}

.price-input input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.75rem !important;
  font-size: 1rem;
  font-family: var(--sans);
  outline: none;
  background: #fff;
}

.form-row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-end;
}

.form-row .form-group {
  flex: 1;
}

.input-short {
  width: 100% !important;
  resize: none;
}

.input-short,
.post-form textarea.input-short {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-short:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

/* ── Product thumb in admin table ────────────────── */
.admin-table .col-image {
  width: 48px;
  padding-right: 0;
}

.admin-table .col-desc {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.product-thumb {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.product-thumb-empty {
  background: var(--paper-card);
}

/* ── Image upload ─────────────────────────────── */
.image-upload {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.image-upload-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--paper-card);
}

.image-upload-btn {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.2s;
}

.image-upload-btn:hover {
  border-color: var(--accent);
}

/* ── Order page (public) ────────────────────────── */
.order-page {
  padding: var(--space-xl) 0;
  max-width: 600px;
  margin: 0 auto;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.order-card h1 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.order-item-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.order-item-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  gap: var(--space-sm);
}

.order-item-name {
  font-size: 0.9375rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-price {
  font-size: 0.875rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

.order-email {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.order-paid {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--green-bg);
  border-radius: 8px;
}

.order-paid svg {
  color: var(--green-text);
  margin-bottom: var(--space-sm);
}

.order-paid p {
  color: var(--green-text);
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
}

.order-instructions {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.order-instructions h2 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.order-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Cart page ──────────────────────────────────── */
.cart-page {
  padding: var(--space-lg) 0;
  max-width: 600px;
}

.cart-page h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.cart-page .empty-state {
  padding: var(--space-md) 0 var(--space-sm);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.cart-item-body {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
}

.cart-item-price {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.cart-total {
  text-align: right;
  padding: var(--space-sm) 0;
  font-size: 1.125rem;
}

/* ── Checkout page ──────────────────────────────── */
.cart-checkout {
  padding: var(--space-xl) 0;
}

.cart-checkout h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.cart-checkout .purchase-form {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}

.checkout-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.checkout-summary {
}

.checkout-product {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.checkout-product-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.checkout-product-body {
  flex: 1;
  min-width: 0;
}

.checkout-product-name {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
}

.checkout-product-price {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .checkout-product {
    display: block;
  }
  .checkout-product-img {
    width: 100%;
    height: auto;
    margin-bottom: var(--space-sm);
  }
  .checkout-product-name {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
  }
  .checkout-product-price {
    font-size: 1rem;
  }
}

.checkout-summary h2 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 400;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0 0;
  margin-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

/* ── Product actions (show page) ──────────────── */
.product-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.added-text {
  font-size: 0.875rem;
  color: var(--ink-faint);
}
