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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #222;
  --text: #e4e4e4;
  --muted: #666;
  --accent: #e8e8e8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-cart:hover {
  color: var(--text);
}

.nav-cart {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem !important;
}

/* ── Hero (video background on home) ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Reduce video opacity to ~30% — dark enough to read text, light enough to feel alive */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}

.hero-error {
  color: #e05555;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.hero-portfolio-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.hero-portfolio-link:hover {
  color: rgba(255,255,255,0.85);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ── Button ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: #555;
  opacity: 1;
}

/* ── Main content areas ── */
main {
  flex: 1;
}

.intro {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.intro p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.content-page {
  max-width: 680px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.content-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.content-page p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.content-page a { color: var(--text); }

/* ── Gallery grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.gallery-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.12s;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1a1a;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-card:hover .card-thumb img {
  transform: scale(1.04);
}

.card-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.card-label {
  padding: 1rem 1.25rem;
}

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--text); }
.breadcrumb-sep { color: #333; }

.gallery-card:hover {
  border-color: #444;
  transform: translateY(-2px);
}

.gallery-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.gallery-card .image-count {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Gallery page (image grid) ── */
.gallery-header {
  padding: 2.5rem 2rem 1rem;
}

.gallery-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gallery-header a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  padding: 1rem 2rem 3rem;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.image-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.image-item:hover img {
  transform: scale(1.03);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 1rem 0.75rem 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.image-item:hover .image-overlay {
  opacity: 1;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.55rem;
  background: rgba(232,232,232,0.9);
  color: #111;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── Product selection modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}

.modal-backdrop[hidden] { display: none; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}

.modal h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.product-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.product-btn:hover { border-color: #555; }

.product-price { color: var(--muted); font-size: 0.85rem; }

.modal-cancel {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Cart ── */
.cart-page {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.cart-page h1 { font-size: 1.8rem; margin-bottom: 2rem; }

.cart-item {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

/* Photo thumbnails in cart */
.cart-item-thumbs {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.cart-thumb-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-thumb-num {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.cart-item-info p { font-size: 0.82rem; color: var(--muted); }

/* ── Pending (incomplete) order block in cart ── */
.cart-pending-block {
  background: rgba(200,169,110,0.07);
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.cart-pending-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cart-pending-icon { font-size: 1.3rem; flex-shrink: 0; }
.cart-pending-header > div { flex: 1; }
.cart-pending-header strong { color: var(--fg); }
.cart-pending-status { font-size: 0.85rem; color: var(--muted); margin-left: 0.4rem; }
.cart-pending-price { font-weight: 600; white-space: nowrap; color: var(--muted); }
.cart-pending-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0.85rem 0;
}
.cart-pending-photos {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cart-pending-photo {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #c8a96e;
  position: relative;
  background: var(--surface);
}
.cart-pending-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-pending-photo--empty {
  border-style: dashed;
  border-color: rgba(200,169,110,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.cart-pending-photo-label {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.cart-pending-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cart-item-price { font-size: 0.95rem; min-width: 60px; text-align: right; }

.remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.cart-empty { color: var(--muted); text-align: center; padding: 4rem 0; }

/* ── Checkout ── */
.checkout-page {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.checkout-page h1 { font-size: 1.8rem; margin-bottom: 2rem; }

.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.3rem 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

#paypal-button-container { margin-top: 1.5rem; }

/* ── Order success ── */
.success-page {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.success-page h1 { font-size: 2rem; margin-bottom: 1rem; }
.success-page p { color: var(--muted); margin-bottom: 0.75rem; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: auto;
}

.site-footer a { color: var(--muted); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-nav { padding: 1rem; }
  .nav-brand { font-size: 0.85rem; }
  .gallery-grid, .image-grid { padding: 1rem; }
}

/* ── Access / Code Entry ── */
.code-entry-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.code-entry-form input {
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-align: center;
  width: 260px;
  font-family: monospace;
}

.code-entry-form input:focus {
  outline: none;
  border-color: #666;
}

.code-entry-form input::placeholder {
  color: #555;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

/* ── Access pages (email, verify, admin login) ── */
.access-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.access-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.access-box h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.access-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.access-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #bbb;
}

.access-form input {
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.access-form input:focus {
  outline: none;
  border-color: #555;
}

.access-error {
  background: rgba(220,50,50,0.1);
  border: 1px solid rgba(220,50,50,0.3);
  color: #e07070;
  padding: 0.65rem 1rem;
  border-radius: 5px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* OAuth provider buttons */
.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #dadce0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  box-sizing: border-box;
}

.btn-google {
  background: #fff;
  color: #3c3c3c;
}
.btn-google:hover {
  background: #f8f8f8;
  border-color: #bbb;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #444);
}

.access-back {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.access-back a {
  color: var(--muted);
  text-decoration: underline;
}

/* ── Bulk digital ─────────────────────────────────────────────────── */

/* Gold sequential-number overlay on bulk-selected photos */
.image-item.is-bulk-selected::after {
  content: attr(data-bulk-num);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: rgba(212, 175, 55, 0.55);
  pointer-events: none;
  border-radius: inherit;
}

/* "Next tier" nudge line in the banner */
.bulk-next-tier {
  display: block;
  font-size: 0.78rem;
  color: #d4af37;
  margin-top: 0.25rem;
}

/* Complete-order button inside the pending banner */
.bulk-complete-btn {
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  background: #d4af37;
  color: #111;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}
.bulk-complete-btn:hover { background: #c9a227; }

/* Bulk dialog info blocks */
.bulk-dialog-deal {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #50c878;
}
.bulk-dialog-tip {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Admin tier table */
.bulk-tier-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4rem;
  font-size: 0.88rem;
}
.bulk-tier-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.25rem 0.5rem 0.4rem;
  border-bottom: 1px solid var(--border);
}
.bulk-tier-table td {
  padding: 0.3rem 0.5rem;
}
.bulk-tier-editor {
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}

/* Cart bulk item badge */
.cart-bulk-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(80,200,120,.15);
  color: #50c878;
  margin-left: 0.5rem;
}

/* ── Admin panel ── */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.admin-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #bbb;
}

.admin-form input {
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.admin-success {
  background: rgba(40,180,80,0.1);
  border: 1px solid rgba(40,180,80,0.3);
  color: #7fc97f;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

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

.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #1a1a1a;
  vertical-align: middle;
}

.row-inactive { opacity: 0.5; }

.code-badge {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 500;
}

.status-active { background: rgba(40,180,80,0.15); color: #7fc97f; }
.status-inactive { background: rgba(150,150,150,0.1); color: #666; }

.action-cell { display: flex; gap: 0.5rem; align-items: center; }

.action-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.action-btn:hover { border-color: #555; color: var(--text); }
.action-btn--danger:hover { border-color: #a33; color: #e07070; }

@media (max-width: 700px) {
  .admin-form-row { grid-template-columns: 1fr; }
}

/* ── Heart / Favorites ── */
.heart-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  background: rgba(0,0,0,0.45);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s, color 0.15s;
  padding: 0.35rem;
  opacity: 0;
}

.image-item:hover .heart-btn,
.heart-btn.is-favorited {
  opacity: 1;
}

.heart-btn.is-favorited {
  color: #e05;
  background: rgba(0,0,0,0.55);
}

.heart-btn svg {
  width: 100%;
  height: 100%;
}

.nav-favorites {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav-favorites:hover { color: #e05; }

/* ── Admin orders ── */
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.order-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
}

.order-meta p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }
.order-meta strong { color: var(--text); }

.order-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.order-update {
  border-top: 1px solid var(--border);
}

.order-update summary {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.order-update summary:hover { color: var(--text); }

.order-update-form {
  padding: 0.75rem 1.25rem 1rem;
}

.order-update-form select,
.order-update-form input {
  padding: 0.5rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
}

.action-btn--active {
  border-color: var(--text);
  color: var(--text);
}

@media (max-width: 600px) {
  .order-card-body { grid-template-columns: 1fr; }
}

/* ── Download selection UI ───────────────────────────────── */
.img-select-wrap {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.img-select-wrap input[type=checkbox] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent, #c8a050);
}
.image-item.is-selected {
  outline: 3px solid var(--accent, #c8a050);
  outline-offset: -3px;
}

/* Download toolbar — fixed bottom bar */
.dl-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20,20,20,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.22s ease;
  z-index: 200;
}
.dl-toolbar--visible { transform: translateY(0); }
.dl-count { font-size: 0.9rem; color: var(--muted, #888); flex-shrink: 0; }
.dl-toolbar form { display: flex; align-items: center; margin: 0; }

/* ── Portfolio page ──────────────────────────────────── */
.portfolio-page {
  min-height: 100vh;
}

.portfolio-header {
  text-align: center;
  padding: 4rem 2rem 2.5rem;
}

.portfolio-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.portfolio-subhead {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.portfolio-empty {
  text-align: center;
  color: var(--muted);
  padding: 4rem 2rem;
  font-style: italic;
}

/* 2-up grid — large cinematic cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 0 0 3px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  cursor: default;
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.04);
}

.portfolio-card-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
}

/* Dark gradient from bottom — title readable over any image */
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.15) 40%,
    transparent 70%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
  transition: background 0.3s;
}

.portfolio-card:hover .portfolio-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.2) 50%,
    transparent 75%
  );
}

.portfolio-card-title {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* Odd card alone on a row spans full width */
.portfolio-grid > .portfolio-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 7;
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid > .portfolio-card:last-child:nth-child(odd) {
    grid-column: 1;
    aspect-ratio: 16 / 9;
  }

  .portfolio-card-overlay {
    padding: 1.25rem;
  }
}

/* ── Portfolio video grid ────────────────────────────── */
.portfolio-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 2rem 0;
}

.portfolio-video-item {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.portfolio-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  /* Native controls include a fullscreen button */
}

.portfolio-video-name {
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Lightbox ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  user-select: none;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 501;
  transition: color 0.15s;
}

.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 3rem;
  line-height: 1;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  z-index: 501;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* Lightbox heart button (top-right of lightbox) */
.lb-heart {
  position: fixed;
  top: 1.25rem;
  right: 4.5rem;
  z-index: 502;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, transform 0.15s;
  /* Always visible in lightbox — overrides the base .heart-btn opacity:0 */
  opacity: 1 !important;
}
.lb-heart:hover { color: #fff; transform: scale(1.15); }
/* Favorited: solid red fill */
.lb-heart.is-favorited { color: #e05; }
/* Not favorited: keep stroke white, ensure fill stays none */
.lb-heart:not(.is-favorited) svg path { fill: none; }
.lb-heart svg { width: 1.6rem; height: 1.6rem; }

/* Gallery image — show dblclick hint cursor */
.image-grid .image-item img { cursor: zoom-in; }

/* ── Order note (checkout) ──────────────────────────────────────────────────── */
.order-note-wrap {
  margin: 1.5rem 0 1.25rem;
}
.order-note-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg, #eee);
  margin-bottom: 0.4rem;
}
.order-note-hint {
  font-weight: 400;
  color: var(--muted, #888);
  font-size: 0.82rem;
}
.order-note-field {
  width: 100%;
  background: var(--surface, #1a1a1a);
  border: 1px solid var(--border, #333);
  border-radius: 6px;
  color: var(--fg, #eee);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s;
}
.order-note-field:focus {
  outline: none;
  border-color: var(--gold, #c8a96e);
}
.order-note-count {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted, #888);
  margin-top: 0.25rem;
}

/* Portfolio image grid — no-cart variant */
.portfolio-image-grid .image-item {
  cursor: pointer;
}

.portfolio-image-grid .image-overlay {
  display: none; /* no cart on portfolio */
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumbs a:hover { color: var(--text); }

.breadcrumb-sep {
  color: var(--border);
  padding: 0 0.15rem;
}

@media (max-width: 640px) {
  .portfolio-video-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* ── Pricelists admin ─────────────────────────────── */
.pricelist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.pricelist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--fg);
  display: block;
  transition: border-color 0.15s;
}
.pricelist-card:hover { border-color: #555; }
.pricelist-card h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.pricelist-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.pricelist-card-meta { margin-top: 0.75rem; display: flex; gap: 1rem; font-size: 0.8rem; color: var(--muted); }
.pl-section { margin-top: 2rem; }
.pl-section-header { font-size: 1rem; font-weight: 700; color: var(--fg); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.pl-item { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.6rem; }
.pl-item-row { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; }
.pl-item-desc { flex: 1; font-size: 0.9rem; }
.pl-item-price { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.pl-item-edit { background: var(--surface); border-radius: 0 0 6px 6px; padding: 1rem; border-top: 1px solid var(--border); }
.pl-item-edit.hidden { display: none; }
.type-badge { font-size: 0.72rem; padding: 0.15rem 0.45rem; border-radius: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.type-badge--print { background: rgba(127,201,127,.15); color: #7fc97f; }
.type-badge--digital { background: rgba(100,160,255,.15); color: #6da8ff; }
.type-badge--package { background: rgba(200,169,110,.15); color: #c8a96e; }
/* Package modal button */
.product-btn--package { flex-direction: column; align-items: stretch; gap: 0; }
.package-btn-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.package-btn-name { font-weight: 600; }
.package-btn-items { margin: 0.4rem 0 0; padding: 0 0 0 1.1rem; font-size: 0.8rem; color: var(--muted); text-align: left; }
.package-btn-items li { margin-bottom: 0.1rem; }
.modal-section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0.75rem 0 0.4rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }
.modal-section-label:first-child { border-top: none; margin-top: 0; padding-top: 0; }
/* Package items in cart */
.package-cart-items { margin: 0.3rem 0 0 1rem; padding: 0; list-style: disc; font-size: 0.8rem; color: var(--muted); }
.package-cart-items li { margin-bottom: 0.1rem; }

/* Product photo count badge in modal */
.product-photo-count { font-size: 0.72rem; color: #a078ff; margin-left: 0.4rem; font-weight: 600; }

/* ── Multi-photo pending banner ───────────────────────────────────────────── */
.pending-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(200, 169, 110, 0.12);
  border-bottom: 1px solid rgba(200, 169, 110, 0.35);
  backdrop-filter: blur(4px);
  padding: 0.65rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}
.pending-icon { font-size: 1.1rem; flex-shrink: 0; }
.pending-text { display: flex; align-items: center; gap: 0.6rem; flex: 1; flex-wrap: wrap; }
.pending-text strong { color: #c8a96e; }
.pending-text span { color: var(--muted); font-size: 0.83rem; }
.pending-dots { display: flex; gap: 5px; align-items: center; }
.pending-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid #c8a96e;
  background: transparent;
  transition: background 0.2s;
}
.pending-dot.filled { background: #c8a96e; }
.pending-cancel-btn {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(200,169,110,0.45);
  color: #c8a96e;
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}
.pending-cancel-btn:hover { background: rgba(200,169,110,0.1); }

/* Pending-mode "Add to Cart" button */
.add-to-cart-btn--pending {
  background: rgba(200,169,110,0.85) !important;
  color: #111 !important;
  font-weight: 700;
}

/* Selected photo checkmark overlay */
.image-item.is-pending-selected::after {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 1.6rem;
  height: 1.6rem;
  background: #c8a96e;
  color: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  z-index: 11;
  pointer-events: none;
}

/* Gallery flash toast */
.gallery-flash {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  border: 1px solid #c8a96e;
  color: #c8a96e;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  z-index: 700;
  white-space: nowrap;
  pointer-events: none;
  animation: flashIn 0.2s ease;
}
@keyframes flashIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Lightbox cart button */
.lb-cart-btn {
  position: fixed;
  top: 1.25rem;
  right: 7.5rem;
  z-index: 502;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, transform 0.15s;
  opacity: 1 !important;
}
.lb-cart-btn:hover { color: #fff; transform: scale(1.12); }
.lb-cart-btn--pending { color: #c8a96e; }
.lb-cart-btn svg { width: 1.5rem; height: 1.5rem; }
