@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('./fonts/dm-serif-display-v17-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url('./fonts/inter-v13-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('./fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('./fonts/inter-v13-latin-500.woff2') format('woff2');
}

/* ══════════════════════════════════════
   CSS RESET & VARIABLES
   ══════════════════════════════════════ */
:root {
  --bg: #fafaf8;
  --text: #1a1a1a;
  --text-light: #666;
  --accent: #a8863f;
  --accent-hover: #8f6f2e;
  --border: #e8e6e2;
  --edit-hl: rgba(168,134,63,0.12);
  --edit-border: #a8863f;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;
  --sidebar-w: 260px;
  --ease: 0.3s cubic-bezier(0.4,0,0.2,1);
  --danger: #c83737;
  --danger-hover: #a82020;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ── Skip to content link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
  z-index: 9999;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ── Global focus styles (accessibility) ── */
.nav-link:focus-visible,
.nav-child-link:focus-visible,
.hamburger:focus-visible,
.lb-close:focus-visible,
.lb-arrow:focus-visible,
.lang-btn:focus-visible,
.social-icon:focus-visible,
.bar-btn:focus-visible,
.BY-dot:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  padding: 48px 32px;
  overflow-y: auto;
  background: var(--bg);
  z-index: 100;
  transition: transform var(--ease);
  -webkit-overflow-scrolling: touch;
}
.site-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 48px;
  cursor: pointer;
  line-height: 1.3;
}
.nav-list { list-style: none; }
.nav-item { margin-bottom: 2px; position: relative; }
.nav-item--shop .nav-link { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; }
.nav-item--shop .nav-link::after { content: '◈'; font-size: 9px; opacity: 0.5; margin-left: 2px; }
.nav-item--shop .nav-link:hover, .nav-item--shop .nav-link.active { color: var(--accent); }
.nav-item--shop .nav-link:hover::after, .nav-item--shop .nav-link.active::after { opacity: 1; }
.nav-link, .nav-child-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  color: var(--text-light);
  cursor: pointer;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-link { padding: 6px 0; font-size: 12.5px; font-weight: 400; }
.nav-child-link { padding: 4px 0; font-size: 11.5px; letter-spacing: 0.5px; }
.nav-link:hover, .nav-link.active,
.nav-child-link:hover, .nav-child-link.active { color: var(--text); }
.nav-children {
  list-style: none;
  padding-left: 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.nav-children.open { max-height: 600px; }
.sidebar-footer {
  position: absolute;
  bottom: 32px; left: 32px;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.mobile-site-footer {
  display: none;
  position: static;
  left: auto;
  bottom: auto;
  width: 100%;
  box-sizing: border-box;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-align: center;
  padding: 48px 0 calc(env(safe-area-inset-bottom, 0px) + 8px);
  margin-top: auto;
  border-top: 1px solid var(--border);
}

/* ── Nav Edit Controls ── */
.nav-edit-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-edit-wrap .nav-link,
.nav-edit-wrap .nav-child-link { flex: 1; }
.nav-edit-btn {
  background: none; border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 3px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.edit-active .nav-edit-btn { opacity: 0.5; }
.edit-active .nav-edit-btn:hover { opacity: 1; color: var(--accent); }
.nav-move-btn {
  background: none; border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 10px;
  padding: 1px 2px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.edit-active .nav-move-btn { opacity: 0.4; }
.edit-active .nav-move-btn:hover { opacity: 1; color: var(--accent); }
.nav-move-btn span { display: block; font-size: 9px; line-height: 1; }
.nav-rename-input {
  background: var(--edit-hl);
  border: 1px solid var(--edit-border);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 4px 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text);
  border-radius: 3px;
  width: 100%;
}

/* ── Add Nav Button ── */
.add-nav-item {
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.2s;
}
.edit-active .add-nav-item { display: flex; }
.add-nav-item:hover { color: var(--accent); }

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.2s;
}
.lang-btn.active { color: var(--text); font-weight: 500; }
.lang-btn:hover { color: var(--text); }
.lang-sep { color: var(--border); font-size: 10px; }

/* ── Mobile Header ── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  padding: 14px 20px;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
}
.mobile-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.hamburger {
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text);
  padding: 10px 12px;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}
.mobile-overlay.active { display: block; }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 40px 90px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: var(--text-light);
  display: block;
}
.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ── Home Slideshow ── */
.BY-slideshow-wrap {
  position: fixed;
  top: 74px; left: var(--sidebar-w); right: 0; bottom: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.BY-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  padding: 0;
  z-index: 1;
}
.BY-slide.BY-active { opacity: 1; z-index: 1; }
.BY-slide img {
  width: 95%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  max-height: 100%;
}
.BY-slide-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #333; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
}
.BY-dots {
  position: absolute;
  left: var(--by-dots-left, 50%);
  bottom: var(--by-dots-bottom, 28px);
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  width: max-content;
  max-width: calc(100% - 24px);
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.BY-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.BY-dot.BY-active { background: #fff; transform: scale(1.4); }
.BY-edit-bar {
  position: absolute; top: 0; left: 0; right: 0;
  display: none;
  align-items: center; gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(rgba(0,0,0,0.6), transparent);
  z-index: 20;
}
.edit-active .BY-edit-bar { display: flex; }
.BY-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 11px;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 3px;
  cursor: pointer; font-family: var(--font-body);
  transition: background 0.2s;
  white-space: nowrap;
}
.BY-btn:hover { background: rgba(255,255,255,0.25); }
.BY-btn.BY-danger { border-color: rgba(220,70,70,0.5); }
.BY-btn.BY-danger:hover { background: rgba(180,40,40,0.5); }
.BY-counter {
  margin-left: auto;
  color: rgba(255,255,255,0.5);
  font-size: 11px; letter-spacing: 1px;
}


/* ── Project Description ── */
.project-description {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 40px;
  font-style: italic;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.edit-active .project-description:empty::before {
  content: 'Proje açıklaması eklemek için tıklayın...';
  color: var(--border);
}
.edit-active .project-description {
  outline: 1px dashed var(--edit-border);
  border-radius: 3px;
  padding: 8px;
  cursor: text;
}

/* ── Gallery Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.3s;
  background: #eee;
  aspect-ratio: 3 / 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.2,0,0.2,1);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item.dragging { opacity: 0.35; transform: scale(0.95); }
.gallery-item.drag-over { outline: 2px dashed var(--edit-border); outline-offset: -2px; }
.gallery-item.edit-mode { cursor: grab; }
.gallery-item.edit-mode:active { cursor: grabbing; }

.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.18);
  display: none;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px;
}
.edit-active .photo-overlay { display: flex; opacity: 0; transition: opacity 0.2s; }
.gallery-item:hover .photo-overlay { opacity: 1; }
.drag-handle {
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 16px;
  color: #333;
  cursor: grab;
  user-select: none;
}
.delete-photo {
  background: rgba(200,55,55,0.85);
  color: #fff; border: none;
  border-radius: 50%;
  width: 24px; height: 24px;
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.delete-photo:hover { background: rgba(200,35,35,1); }

.add-photo-card {
  border: 2px dashed var(--border);
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  break-inside: avoid;
  margin-bottom: 8px;
}
.edit-active .add-photo-card { display: flex; }
.add-photo-card:hover { border-color: var(--accent); background: var(--edit-hl); }
.add-photo-card.drag-hover { border-color: var(--accent); background: var(--edit-hl); }
.add-photo-inner { text-align: center; color: var(--text-light); pointer-events: none; }
.add-icon { display: block; font-size: 32px; margin-bottom: 4px; }
.add-subtext { font-size: 10px; color: var(--text-light); margin-top: 4px; display: block; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lb-close {
  position: fixed; top: 24px; right: 32px;
  background: none; border: none;
  color: #fff; font-size: 26px;
  cursor: pointer; opacity: 0.65;
  transition: opacity 0.2s; z-index: 10;
}
.lb-close:hover { opacity: 1; }
.lb-arrow {
  position: fixed; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #fff; font-size: 50px;
  cursor: pointer; opacity: 0.45;
  transition: opacity 0.2s; z-index: 10;
  padding: 20px;
}
.lb-arrow:hover { opacity: 1; }
.lb-arrow.left { left: 12px; }
.lb-arrow.right { right: 12px; }
.lb-counter {
  position: fixed; bottom: 24px;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 12px; letter-spacing: 2px;
}

/* ── Social Icons ── */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 0;
  flex-wrap: wrap;
}
.sidebar-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
}
.social-icon:hover { color: var(--text); transform: translateY(-1px); }
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* ── About Page ── */
.about-page { max-width: 900px; }
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.about-portrait-wrap { position: relative; }
.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: var(--border);
}
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  gap: 8px;
}
.portrait-placeholder:hover { background: #e0ddd8; }
.portrait-upload-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.edit-active .about-portrait-wrap:hover .portrait-upload-overlay { display: flex; }
.portrait-upload-label {
  color: #fff; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  text-align: center; pointer-events: none;
}
.about-name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 6px;
  line-height: 1.2;
}
.about-title-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.about-bio {
  font-size: 13.5px;
  line-height: 1.85;
  margin-bottom: 40px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ── Section headings & lists ── */
.section-heading {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 36px 0 16px;
}
.about-list { list-style: none; }
.about-list li {
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.7;
}
.year { font-weight: 500; color: var(--text); display: inline-block; width: 44px; }

/* ── Editable list add/remove buttons ── */
.list-add-btn {
  display: none;
  margin-top: 8px;
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-light);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
}
.edit-active .list-add-btn { display: inline-block; }
.list-add-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--edit-hl); }
.list-item-remove {
  display: none;
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
  vertical-align: middle;
  margin-left: 6px;
}
.edit-active .list-item-remove { display: inline; }
.list-item-remove:hover { opacity: 1; }

/* ── Custom Page (Sergiler / Yayın) ── */
.custom-page-content {
  max-width: 640px;
  font-size: 13.5px;
  line-height: 2;
  white-space: pre-wrap;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ════════════════════════════════════
   YAYINLAR (PUBLICATIONS) PAGE — editorial split
   ════════════════════════════════════ */

#pageYayinlar {
  position: relative;
  overflow: visible;
  display: none;
  flex-direction: column;
  animation: fadeIn 0.35s ease;
}
#pageYayinlar.active {
  display: flex;
}

.publications-page {
  max-width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

#pageYayinlar .page-title {
  padding: 0;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.books-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  overflow: visible;
}

/* ── Book card: 2-column — large cover left, editorial column right ── */
.book-card {
  position: relative;
  display: flex;
  flex-direction: row;
  min-height: 520px;
  height: auto;
  overflow: hidden;
  background: var(--bg);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  transition: none;
  transform: none !important;
  box-shadow: none !important;
  margin-bottom: 0;
  max-width: 1600px;
}

/* Alternate cover side on even cards */
.book-card:nth-child(even) { direction: rtl; }
.book-card:nth-child(even) > * { direction: ltr; }

/* ── LEFT: clean canvas — book aligns to the top with "monograph" eyebrow ── */
.book-cover-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--bg);
  overflow: hidden;
  width: 40%;
  min-width: 320px;
  max-width: 520px;
  flex-shrink: 0;
  padding: 64px 40px 48px;
}

.book-cover-top {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: visible;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Specs block — now sits inside .book-info, under the description */
.book-cover-bottom {
  width: 100%;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  margin-bottom: 28px;
}

.book-specs-heading {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.book-specs-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

.book-spec-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.book-spec-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.book-spec-item:last-child {
  border-bottom: none;
}
.book-spec-label {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  flex-shrink: 0;
  font-weight: 600;
}
.book-spec-value {
  font-size: 12.5px;
  color: var(--text);
  text-align: left;
  line-height: 1.5;
  font-family: var(--font-body);
}
.edit-active .book-spec-value[contenteditable="true"],
.edit-active .book-spec-label[contenteditable="true"] {
  border-bottom: 1px dashed rgba(196,168,130,0.45);
  cursor: text;
  outline: none;
}
.edit-active .book-spec-value[contenteditable="true"]:focus,
.edit-active .book-spec-label[contenteditable="true"]:focus {
  border-bottom-color: rgba(196,168,130,0.9);
  background: rgba(196,168,130,0.08);
  border-radius: 2px;
}

.book-cover-meta {
  width: 100%;
  padding: 24px 32px;
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* Decorative pseudo-elements removed for a minimal canvas */
.book-cover-wrap::after,
.book-cover-wrap::before { content: none; }

/* ── Book Cover Slideshow ── */
.book-cover-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.book-cover-slide.bc-active {
  opacity: 1;
  pointer-events: auto;
}
/* Thumbnail strip — absolutely positioned inside .book-cover-top, just below the rendered image */
.book-cover-thumbs {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.book-cover-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.book-cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-cover-thumb:hover { opacity: 1; }
.book-cover-thumb.bct-active {
  opacity: 1;
  border-color: var(--accent);
}

.bc-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}
.bc-remove-btn {
  display: none;
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  background: rgba(200,55,55,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.edit-active .bc-remove-btn { display: flex; }

/* Book cover image — clean, no shadow, top-aligned within its panel */
.book-cover {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
}

.book-cover-placeholder {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 290px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  gap: 10px;
  text-align: center;
  box-shadow: -12px 16px 40px rgba(0,0,0,0.4);
}

.book-cover-upload {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.edit-active .book-cover-wrap:hover .book-cover-upload { display: flex; }
.book-cover-upload span {
  color: #fff;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── RIGHT: editorial column with title, story, specs, CTA ── */
.book-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 64px 56px 56px 56px;
  position: relative;
  background: var(--bg);
  min-width: 0;
  flex: 1;
  height: auto;
}

/* Thin vertical rule on the seam */
.book-info::before {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 30%, var(--border) 70%, transparent);
  display: none;
}

/* Eyebrow / category tag */
.book-eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.book-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.book-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--text);
}

.book-author {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.book-author span:first-child {
  opacity: 0.55;
  margin-right: 4px;
}

.book-description {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 36px;
  white-space: pre-wrap;
  font-style: italic;
  font-family: var(--font-body);
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  align-items: center;
}

.book-buy-label {
  width: 100%;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.book-buy-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* Store links — CTA button style */
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 28px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--text);
  border-radius: 2px;
  color: var(--text);
  background: transparent;
  transition: all 0.25s ease;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 transparent;
}
.store-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.store-link:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
/* First real store link (immediately after label) gets accent fill — primary CTA */
.book-buy-label + .store-link-wrap .store-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.book-buy-label + .store-link-wrap .store-link:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.store-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.store-link-logo {
  height: 22px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  display: inline-block;
}
/* Button that contains only a logo — no text — needs different padding */
.store-link.store-link--logo-only {
  padding: 9px 22px;
  gap: 0;
}

/* Per-vendor brand colors — applied on top of the default styles so they
 * win regardless of whether the link is the primary CTA or a secondary one. */
.book-links .store-link-wrap .store-link[href*="shopier."],
.store-link[href*="shopier."] {
  background: #5e3aff;
  border-color: #5e3aff;
  color: #fff;
}
.book-links .store-link-wrap .store-link[href*="shopier."]:hover,
.store-link[href*="shopier."]:hover {
  background: #4a2bd6;
  border-color: #4a2bd6;
  color: #fff;
}
/* The Shopier SVG wordmark is solid black on transparent — recolor to white
   so it reads on the brand-purple button. */
.store-link[href*="shopier."] .store-link-logo {
  filter: brightness(0) invert(1);
}
.store-link[href*="hepsiburada"] {
  background: #fff;
  border-color: #e7e2d8;
  color: #ff6000;
}
.store-link[href*="hepsiburada"]:hover {
  background: #faf9f6;
  border-color: #ff6000;
  color: #ff6000;
}
.store-link[href*="n11."] {
  background: #fff;
  border-color: #e7e2d8;
  color: #1c1c1e;
}
.store-link[href*="n11."]:hover {
  background: #faf9f6;
  border-color: #1c1c1e;
  color: #1c1c1e;
}
.store-link-add {
  display: none;
  border: 1.5px dashed var(--border);
  color: var(--text-light);
  background: transparent;
  cursor: pointer;
  border-radius: 40px;
}
.edit-active .store-link-add { display: inline-flex; }
.store-link-add:hover { border-color: var(--accent); color: var(--accent); }
.store-link-remove {
  display: none;
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.edit-active .store-link-remove { display: flex; }
.store-link-wrap {
  position: relative;
  display: inline-flex;
}

/* ── Delete button ── */
.book-card-remove {
  display: none;
  position: absolute;
  top: 20px; right: 20px;
  width: 30px; height: 30px;
  background: rgba(200,55,55,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background 0.2s;
}
.edit-active .book-card-remove { display: flex; }
.book-card-remove:hover { background: var(--danger-hover); }

/* ── Add new book ── */
.add-book-card {
  border: none;
  border-top: 2px dashed var(--border);
  border-radius: 0;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.25s;
  background: transparent;
  flex-shrink: 0;
}
.edit-active .add-book-card { display: flex; }
.add-book-card:hover { background: var(--edit-hl); border-color: var(--accent); }
.add-book-inner {
  text-align: center;
  color: var(--text-light);
  pointer-events: none;
}
.add-book-inner .add-icon { font-size: 40px; margin-bottom: 8px; }

/* ════════════════════════════════════
   SERGİLER (EXHIBITIONS/GALLERIES) PAGE
   ════════════════════════════════════ */
.sergiler-page { max-width: 1044px; }
.exhibition-block {
  margin-bottom: 56px;
  position: relative;
}
.exhibition-header {
  margin-bottom: 20px;
}
.exhibition-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.exhibition-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
}
.exhibition-description {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
  white-space: pre-wrap;
}
.exhibition-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
.exhibition-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
  border-radius: 2px;
}
.exhibition-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.exhibition-photo:hover img { transform: scale(1.04); }
.exhibition-photo-remove {
  display: none;
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  background: rgba(200,55,55,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.edit-active .exhibition-photo-remove { display: flex; }
.exhibition-add-photo {
  display: none;
  aspect-ratio: 4/3;
  border: 2px dashed var(--border);
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}
.edit-active .exhibition-add-photo { display: flex; }
.exhibition-add-photo:hover { border-color: var(--accent); background: var(--edit-hl); color: var(--accent); }
.exhibition-block-remove {
  display: none;
  position: absolute;
  top: 0; right: 0;
  background: none;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.edit-active .exhibition-block-remove { display: block; }
.exhibition-block-remove:hover { background: var(--danger); color: #fff; }
.add-exhibition-block {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 24px;
}
.edit-active .add-exhibition-block { display: flex; }
.add-exhibition-block:hover { border-color: var(--accent); background: var(--edit-hl); }

/* ── Contact ── */
.contact-page { max-width: 640px; }
.contact-text { font-size: 13.5px; line-height: 1.85; margin-bottom: 32px; white-space: pre-wrap; }
.contact-info-row { display: flex; gap: 48px; margin-bottom: 0; }
.contact-item { margin-bottom: 14px; }
.contact-label {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
  color: var(--text-light);
  margin-bottom: 2px;
}
.contact-value { color: var(--text); }
.contact-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ── Contact Form ── */
.contact-form-wrap { display: flex; flex-direction: column; gap: 20px; }
.contact-form-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cf-char-count {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.2s;
}
.cf-input, .cf-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: none;
}
.cf-input::placeholder, .cf-textarea::placeholder { color: var(--border); }
.cf-input:focus, .cf-textarea:focus { border-color: var(--accent); }
.cf-textarea { line-height: 1.7; }
.cf-footer { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.cf-submit {
  background: none;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 32px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 0;
}
.cf-submit:hover {
  background: var(--text);
  color: var(--bg);
}
.cf-success {
  display: none;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.cf-error {
  display: none;
  font-size: 12px;
  color: #c83737;
  letter-spacing: 0.5px;
}
.cf-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cf-captcha-wrap {
  margin-top: 16px;
  margin-bottom: 4px;
}

/* ── Editable Fields ── */
[data-editable] {
  transition: outline-color 0.2s, background 0.2s;
  outline: 1px dashed transparent;
  border-radius: 3px;
}
.edit-active [data-editable] { cursor: text; padding: 2px 4px; }
.edit-active [data-editable]:hover {
  outline-color: var(--edit-border);
  background: var(--edit-hl);
}
.edit-active [data-editable]:focus {
  outline-color: var(--edit-border);
  background: var(--edit-hl);
}

/* ── Editor Bar ── */
.editor-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  z-index: 500;
  font-size: 12px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
}
.editor-left { display: flex; align-items: center; gap: 16px; }
.edit-toggle {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; background: none; border: none;
  color: #fff; font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.5px;
  -webkit-tap-highlight-color: transparent;
}
.toggle-track {
  width: 38px; height: 20px;
  background: #444; border-radius: 10px;
  position: relative; transition: background 0.3s;
}
.toggle-track.on { background: var(--accent); }
.toggle-track::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  top: 2px; left: 2px;
  transition: left 0.3s;
}
.toggle-track.on::after { left: 20px; }
.edit-hint {
  color: rgba(255,255,255,0.45);
  font-size: 11px; font-style: italic;
}
.bar-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.bar-btn:hover { background: rgba(255,255,255,0.2); }
.bar-sep { width: 1px; background: #333; align-self: stretch; margin: 0 4px; flex-shrink: 0; }
.bar-btn.save-btn { background: var(--accent); border-color: var(--accent); }
.bar-btn.save-btn:hover { background: var(--accent-hover); }
.bar-btn.export-btn { background: #2a6e3f; border-color: #2a6e3f; color: #fff; }
.bar-btn.export-btn:hover { background: #1f5430; border-color: #1f5430; }
.save-loc-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
}
.save-loc-info span { overflow: hidden; text-overflow: ellipsis; }
.save-loc-change {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.save-loc-change:hover { color: #fff; }
.editor-right { display: flex; gap: 8px; align-items: center; }

/* ── Help Modal ── */
.help-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.help-modal.open { display: flex; }
.help-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.help-box h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.help-section { margin-bottom: 24px; }
.help-section h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text);
}
.help-section p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-light);
}
.help-section pre {
  font-size: 11.5px;
  background: #f0eeeb;
  padding: 12px 16px;
  border-radius: 4px;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
}
.help-section code {
  background: #f0eeeb;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}
.help-section a { color: var(--accent); }
.help-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: var(--text-light);
}
.help-close:hover { color: var(--text); }



/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 64px; left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 12px;
  z-index: 600;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
  opacity: 1;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(10px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* ── Cart added notification ── */
/* ── Cart Added Modal ── */
.cam {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cam-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}
.cam-box {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 900px;
  background: #111;
  border: 1px solid #252525;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  border-radius: 4px;
  overflow: hidden;
  transform: translateY(28px) scale(0.98);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22,1,0.36,1), opacity 0.26s ease;
}
.cam--open .cam-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.cam-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #555;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  padding: 6px;
  transition: color 0.15s;
}
.cam-close:hover { color: #fff; }
.cam-preview {
  width: 420px;
  flex-shrink: 0;
  position: relative;
  background: #0d0d0d;
  overflow: hidden;
  align-self: stretch;
}
.cam-preview .artwork-composite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.cam-body {
  flex: 1;
  min-width: 0;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.cam-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.cam-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.cam-heading {
  font-family: var(--font-nav);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
}
.cam-series {
  display: block;
  font-family: var(--font-nav);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.cam-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
  font-style: italic;
}
.cam-meta { margin-bottom: 14px; }
.cam-meta-row { font-size: 11px; color: #777; line-height: 1.75; }
.cam-meta-label { color: #555; }
.cam-meta-price { color: #888; }
.cam-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 14px;
}
.cam-price-label {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  flex: 1;
}
.cam-price {
  font-family: var(--font-nav);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.cam-disclaimer {
  font-size: 9.5px;
  line-height: 1.65;
  color: #4a4a4a;
  margin-bottom: 18px;
  padding-left: 10px;
  border-left: 2px solid #222;
}
.cam-actions { display: flex; gap: 10px; margin-top: auto; }
.cam-btn {
  flex: 1;
  padding: 11px 10px;
  font-family: var(--font-nav);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cam-btn--primary { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.cam-btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cam-btn--ghost { background: transparent; color: #666; border: 1.5px solid #2a2a2a; }
.cam-btn--ghost:hover { border-color: #555; color: #bbb; }
@media (max-width: 760px) {
  .cam-box { flex-direction: column; max-width: 100%; }
  .cam-preview { width: 100%; min-height: 160px; }
  .cam-body { padding: 22px 18px 20px; }
  .cam-title { font-size: 15px; }
}

/* Cart item mockup thumbnail */
.cart-item-mockup {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--border);
  position: relative;
}
.cart-item-mockup .artwork-composite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.cart-mockup-disclaimer {
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-light);
  margin-top: 14px;
  padding: 8px 12px;
  border-left: 2px solid var(--border);
  opacity: 0.7;
}


/* ── Sergi Photo Strip ── */
.sergi-strip {
  display: flex;
  gap: 4px;
  margin-bottom: 56px;
  height: 260px;
}
.sergi-strip-item {
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.sergi-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2,0,0.2,1), filter 0.4s ease;
  filter: grayscale(20%);
}
.sergi-strip-item:hover img { transform: scale(1.05); filter: grayscale(0%); }
.sergi-strip-remove {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.edit-active .sergi-strip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sergi-strip-remove:hover {
  background: rgba(176, 123, 61, 0.92);
}
.sergi-strip-add {
  display: none;
  min-width: 110px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-light);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.edit-active .sergi-strip-add {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sergi-strip-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--edit-hl);
}

/* ── Sergi Timeline ── */
.sergi-timeline { display: flex; flex-direction: column; gap: 0; }
.sergi-timeline-item {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.sergi-timeline-item:first-child { border-top: 1px solid var(--border); }
.sergi-year {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 2px;
  min-width: 48px;
  flex-shrink: 0;
}
.sergi-details { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.sergi-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}
.sergi-venue {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
}
.sergi-timeline-add {
  display: none;
  margin-top: 16px;
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-light);
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.edit-active .sergi-timeline-add { display: inline-flex; }
.sergi-timeline-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--edit-hl);
}

/* PUBLICATIONS — proportional zoom-out on short laptop displays so the
   whole card fits in a typical 15.6" 1920x1080 viewport (~880-930px usable). */
@media (min-width: 769px) and (max-height: 920px) {
  .books-grid { zoom: 0.78; }
}
@media (min-width: 769px) and (max-height: 820px) {
  .books-grid { zoom: 0.7; }
}
@media (min-width: 769px) and (max-height: 720px) {
  .books-grid { zoom: 0.62; }
}

/* ══════════════════════════════════
   RESPONSIVE — SMOOTH DESKTOP TRANSITION (1025–1280)
   Linearly interpolate sidebar width and main-content padding so the
   tablet→desktop step (sidebar 220→260, padding 28→40) happens
   gradually instead of jumping in one frame.
   ══════════════════════════════════ */
@media (min-width: 1025px) and (max-width: 1280px) {
  :root {
    --sidebar-w: clamp(220px, calc(220px + (100vw - 1024px) * 0.156), 260px);
  }
  .main-content {
    padding-top:    clamp(36px, calc(36px + (100vw - 1024px) * 0.047), 48px);
    padding-left:   clamp(28px, calc(28px + (100vw - 1024px) * 0.047), 40px);
    padding-right:  clamp(28px, calc(28px + (100vw - 1024px) * 0.047), 40px);
  }
}

/* ══════════════════════════════════
   RESPONSIVE — LARGE DESKTOP (1440+)
   ══════════════════════════════════ */
@media (min-width: 1440px) {
  .book-info {
    padding: 80px 80px 64px 72px;
  }
  .book-description {
    font-size: 15px;
    line-height: 2;
  }
  .book-cover-wrap {
    padding: 80px 56px 64px;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — DESKTOP (1024+)
   ══════════════════════════════════ */
@media (min-width: 1024px) {
  .BY-slide { align-items: flex-start; justify-content: flex-start; padding: 0 40px 24px; }
  .BY-slide img { width: 1100px; max-width: calc(100% - 80px); }
}

@media (max-height: 760px) {
  .sidebar {
    display: flex;
    flex-direction: column;
  }
  .site-title {
    margin-bottom: 28px;
  }
  .sidebar-footer {
    position: static;
    left: auto;
    bottom: auto;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
}

/* ══════════════════════════════════
   RESPONSIVE — TABLET (769–1024)
   ══════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {
  :root {
    --sidebar-w: 220px;
  }
  .BY-slideshow-wrap {
    top: 59px;
  }
  .sidebar {
    padding: 36px 24px;
  }
  .site-title {
    font-size: 17px;
    letter-spacing: 2px;
    margin-bottom: 36px;
  }
  .main-content {
    padding: 36px 28px 90px;
  }
  .book-cover-wrap {
    width: 45%;
    min-width: 320px;
    max-width: 480px;
    padding: 44px 32px 40px;
  }
  .book-info {
    padding: 44px 36px 44px 40px;
  }
  .book-title {
    font-size: clamp(26px, 3.4vw, 40px);
  }
  .book-description {
    font-size: 13px;
    line-height: 1.85;
    margin-bottom: 28px;
  }
  .book-author {
    padding-bottom: 22px;
    margin-bottom: 26px;
  }
  .about-layout {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════
   RESPONSIVE — MOBILE (<=768)
   ══════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --mobile-footer-space: 104px;
  }
  .mobile-header { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 300;
    padding-top: 72px;
    box-shadow: none;
  }
  .sidebar-footer { display: none; }
  .mobile-site-footer { display: block; }
  .BY-slideshow-wrap {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
    margin-left: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }
  .BY-slide {
    align-items: center;
  }
  .BY-dots {
    bottom: var(--by-dots-bottom, 14px);
    max-width: calc(100% - 20px);
  }
  .BY-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: auto;
    object-fit: cover;
    box-sizing: border-box;
    z-index: 2;
    margin-left: 0;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
  }
  .sidebar.open ~ .main-content .mobile-site-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .main-content {
    margin-left: 0 !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 72px 24px 0;
  }
  #pageHome.page-section.active {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 72px - var(--mobile-footer-space));
    margin-bottom: auto;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .home-gallery { grid-template-columns: 1fr; }
  .editor-bar { padding: 8px 12px; }
  .edit-hint { display: none !important; }
  .editor-right { gap: 4px; }
  .bar-btn { padding: 6px 10px; font-size: 10px; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-portrait { max-height: 380px; aspect-ratio: unset; }

  /* Publications page — stack on mobile */
  #pageYayinlar { position: relative; left: 0; top: 0; overflow-y: auto; height: auto; }
  .publications-page { margin: 0; height: auto; }
  #pageYayinlar .page-title { padding: 0; }
  #pageHome .BY-slideshow-wrap { flex: 0 0 auto; }
  .books-grid { flex: none; overflow: visible; }
  .book-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    direction: ltr !important;
    margin-bottom: 40px;
    width: 100%;
  }
  .book-card:nth-child(even) { direction: ltr; }
  .book-cover-wrap {
    height: 420px;
    min-height: 360px;
    max-height: 480px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 36px 28px 52px;
  }
  .book-cover-top { max-height: 100%; }
  .book-cover-bottom { display: block; margin-bottom: 32px; }
  .book-cover { max-height: 100%; max-width: 100%; }
  .book-info {
    height: auto;
    max-height: none;
    padding: 36px 20px 40px 20px;
    overflow-y: visible;
  }
  .book-info::before { display: none; }
  .store-link { padding: 13px 22px; font-size: 10.5px; }
  .book-title { font-size: 30px; }
  .book-author { padding-bottom: 20px; margin-bottom: 24px; }
  .book-description { font-size: 13px; line-height: 1.85; margin-bottom: 28px; }
  .book-spec-item { grid-template-columns: 90px 1fr; gap: 14px; padding: 9px 0; }
  .book-spec-value { font-size: 12px; }
  .exhibition-gallery { grid-template-columns: repeat(2, 1fr); }
  .sergi-timeline-item {
    gap: 18px;
    align-items: flex-start;
    padding: 10px 0;
  }
  .sergi-year {
    min-width: 42px;
    font-size: 12px;
    letter-spacing: 1.2px;
    line-height: 1.3;
    padding-top: 2px;
  }
  .sergi-details {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    align-items: baseline;
  }
  .sergi-name {
    font-size: 16px;
    line-height: 1.2;
  }
  .sergi-venue {
    font-size: 10px;
    letter-spacing: 0.9px;
    line-height: 1.35;
  }
  .lb-arrow { font-size: 36px; padding: 10px; }
  .lb-arrow.left { left: 4px; }
  .lb-arrow.right { right: 4px; }
  .cf-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-info-row { flex-direction: column; gap: 12px; }
}

@media (max-height: 640px) {
  .BY-dots {
    bottom: var(--by-dots-bottom, 12px);
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .BY-slideshow-wrap {
    width: min(calc(100% + 48px), calc((100dvh - 190px) * 3 / 2));
    margin-left: -24px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .mobile-site-footer {
    padding-top: 32px;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — SMALL MOBILE (<=480)
   ══════════════════════════════════ */
@media (max-width: 480px) {
  .main-content { padding: 88px 24px 0; }
  #pageHome.page-section.active { min-height: calc(100dvh - 88px - var(--mobile-footer-space)); }
  .gallery-grid { grid-template-columns: 1fr; }
  .exhibition-gallery { grid-template-columns: 1fr; }
  .sergi-timeline-item { gap: 14px; }
  .sergi-year { min-width: 38px; font-size: 11px; }
  .sergi-details {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .sergi-name { font-size: 15px; }
  .sergi-venue {
    font-size: 9.5px;
    letter-spacing: 0.75px;
  }
  .book-info { padding: 30px 16px 32px; }
  .book-title { font-size: 26px; }
  .book-description { font-size: 12.5px; padding-left: 14px; margin-bottom: 24px; }
  .book-cover-wrap { height: 360px; min-height: 280px; max-height: 420px; padding: 32px 24px 44px; }
  .book-cover-bottom { margin-bottom: 26px; }
  .book-spec-item { grid-template-columns: 78px 1fr; gap: 12px; padding: 8px 0; }
  .about-name { font-size: 22px; }
  .about-bio { font-size: 13px; }
  .editor-bar { flex-direction: column; gap: 6px; padding: 6px 12px; }
  .editor-left, .editor-right { width: 100%; justify-content: center; }
  .store-link { padding: 10px 18px; font-size: 9px; }
  .help-box { padding: 24px 20px; }
  .help-box h2 { font-size: 18px; }
}

/* ══════════════════════════════════
   RESPONSIVE — VERY SMALL (<=360)
   ══════════════════════════════════ */
@media (max-width: 360px) {
  .main-content { padding: 88px 20px 0; }
  #pageHome.page-section.active { min-height: calc(100dvh - 88px - var(--mobile-footer-space)); }
  .book-title { font-size: 22px; }
  .book-description { font-size: 11.5px; line-height: 1.75; }
  .book-cover-bottom { font-size: 11px; margin-bottom: 22px; }
  .book-spec-label { font-size: 8.5px; }
  .book-spec-value { font-size: 11px; }
  .book-spec-item { grid-template-columns: 66px 1fr; gap: 10px; padding: 7px 0; }
  .about-name { font-size: 20px; }
  .page-title { font-size: 12px; letter-spacing: 2px; }
  .sidebar {
    width: 260px;
  }
}

/* ── Print ── */
@media print {
  .editor-bar, .mobile-header, .lightbox, .help-modal, .toast { display: none !important; }
  .sidebar { position: relative; width: auto; border: none; }
  .main-content { margin-left: 0 !important; }
}

/* ══════════════════════════════════════
   ARTWORKS / ESERLER PAGE
   ══════════════════════════════════════ */

.artworks-page { padding: 0; }

.artworks-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-pill {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.artworks-grid {
  display: grid;
  /* Auto-fill: column count adjusts smoothly with viewport width — no
   * abrupt jumps when crossing arbitrary media-query breakpoints. Each
   * card is at least 260px wide, giving larger, more impactful cards.
   * Roughly: ~3 on 1366px laptop, ~4 on 1440–1600, ~5 on 1920. */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.artwork-card {
  position: relative;
  cursor: pointer;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--border);
}
.artwork-card:hover { box-shadow: var(--shadow-md); }
.artwork-card:hover .artwork-card-img { transform: scale(1.03); }

.artwork-card[draggable] { cursor: grab; }
.artwork-card[draggable]:active { cursor: grabbing; }
.artwork-card.dragging { opacity: 0.4; }
.artwork-card.drag-over { outline: 2px solid var(--accent); outline-offset: -2px; }

.artwork-add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  background: #fafaf8;
  color: #bbb;
  font-size: 48px;
  font-weight: 300;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.artwork-add-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f7f4ef;
  box-shadow: none;
}
.artwork-add-card span { pointer-events: none; line-height: 1; }

.artwork-card-del {
  position: absolute;
  top: 5px; right: 5px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  z-index: 2;
}
.artwork-card:hover .artwork-card-del { opacity: 1; }
.artwork-card-del:hover { background: #c0392b; }

.artwork-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
}
.artwork-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.artwork-card-meta {
  padding: 12px 14px 14px;
}
.artwork-series-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.artwork-title-el {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.artwork-from-price {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

/* ── Artwork Detail Full Page ── */
.artwork-detail-page { padding: 0 0 80px; }

.artwork-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.artwork-back-btn,
.artwork-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--ease);
}
.artwork-back-btn:hover,
.artwork-nav-btn:hover { color: var(--accent); }

.artwork-nav-btns { display: flex; gap: 20px; }

.artwork-detail-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: calc(100vh - 200px);
}

/* Left: image column */
.artwork-detail-img-col {
  flex: 1 1 38%;
  min-width: 0;
  position: sticky;
  top: 0;
  background: #111;
  display: flex;
  flex-direction: column;
}

.artwork-detail-img-wrap {
  /* Locked to the mockup native aspect (1290:832 ≈ 1.55) so the composite
   * background never stretches when the window is resized. The plain art
   * letterboxes inside via object-fit: contain. */
  width: 100%;
  aspect-ratio: 1290 / 832;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #111;
}

.artwork-detail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.artwork-zoom-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 5px 10px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.artwork-zoom-btn:hover { background: rgba(0,0,0,0.65); color: #fff; }

.artwork-detail-caption {
  padding: 16px 24px;
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.artwork-detail-heading {
  font-family: var(--font-display);
  font-size: 17px;
  color: #fff;
  font-weight: 400;
  margin-bottom: 4px;
}
.artwork-detail-heading-title { font-weight: 700; }
.artwork-detail-heading-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* Right: order info column — sized big enough that the image-col stays
 * compact on wide screens (15.6" laptop / 1920 desktop). */
.artwork-detail-info-col {
  flex: 0 0 clamp(440px, 42vw, 820px);
  overflow-y: auto;
  max-height: calc(100vh - 57px);
  padding: 26px 48px 48px;
  border-left: 1px solid var(--border);
  background: #fafaf8;
}

.artwork-detail-series {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.artwork-detail-title {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.25;
}

.artwork-detail-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 24px;
}

/* ── Purchase block header ── */
.artwork-detail-section-h {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.artwork-detail-shipping {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

/* ── Print option dropdown ── */
.artwork-select-wrap {
  position: relative;
  margin-bottom: 10px;
}

.artwork-select-styled {
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 13px 36px 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  transition: border-color var(--ease), box-shadow var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.artwork-select-styled:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168,134,63,0.15);
}

.artwork-option-desc {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 8px;
  margin-bottom: 24px;
  line-height: 1.65;
  padding: 10px 14px;
  background: #f0ede8;
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
}

/* ── Option groups (paper / matting / frame / glass …) ── */
.artwork-option-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 4px 0 20px;
}
.artwork-option-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.artwork-option-group--disabled { opacity: 0.45; }
.artwork-option-group--disabled select { cursor: not-allowed; }

/* ── Price row (label + total) ── */
.artwork-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}
.artwork-price-row-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.artwork-price-display {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}
.artwork-price-display::after { display: none; }

/* ── Admin editor for option groups ── */
body:not(.edit-active) .artwork-groups-editor { display: none !important; }
.artwork-groups-editor {
  margin: 20px 0 24px;
  padding: 14px;
  border: 1.5px dashed var(--accent);
  border-radius: 6px;
  background: #fbf9f6;
}
.groups-editor-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.group-edit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
}
.group-edit-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.group-edit-row label,
.group-edit-option input[placeholder] {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.group-edit-row label { width: 24px; }
.group-edit-card input[type="text"],
.group-edit-card input[type="number"] {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
}
.opt-edit-price { max-width: 90px; text-align: right; }
.group-edit-option {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.group-edit-del,
.opt-edit-del {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  background: #fff;
  color: #a33;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.group-edit-del:hover,
.opt-edit-del:hover { background: #fbecec; border-color: #d8b0b0; }
.group-edit-add-opt,
.group-edit-add-group,
.group-edit-reset {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  border-radius: 3px;
  cursor: pointer;
  margin-right: 6px;
  letter-spacing: 0.04em;
}
.group-edit-add-opt { margin-top: 4px; }
.group-edit-add-group { margin-top: 6px; }
.group-edit-add-opt:hover,
.group-edit-add-group:hover,
.group-edit-reset:hover { background: var(--accent); color: #fff; }
.group-edit-reset { border-color: #bbb; color: #666; }

/* ── Cart: per-line selected options list ── */
.cart-item-extra {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 2px;
}
.cart-item-extra-price {
  color: var(--accent);
  font-weight: 600;
}
.cart-item-edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #1a1a1a;
  border-radius: 3px;
  padding: 3px 8px;
  margin-top: 5px;
  margin-bottom: 6px;
}
.cart-message-summary {
  font-size: 11px;
  color: var(--text-light);
  background: #f5f5f3;
  cursor: default;
  resize: none;
}
.cart-field-label {
  display: block;
  font-family: var(--font-nav);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════
   ADMIN PANELS — overlay + artwork info editor + print options
   All stripped on export via .admin-only selector
   ══════════════════════════════════════════════════════════════ */

/* Shared overlay base */
.adm-panel-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: none; align-items: center; justify-content: center;
}
.adm-panel-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  cursor: pointer;
}
.adm-panel-box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 6px;
  width: min(520px, 94vw); max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}
.adm-panel-box--wide { width: min(740px, 94vw); }
.adm-panel-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #e8e8e4;
  flex-shrink: 0;
}
.adm-panel-title { font-family: var(--font-nav); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.adm-panel-close {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: #f0ede8; cursor: pointer;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.adm-panel-close:hover { background: #e0ddd8; }
.adm-panel-body { flex: 1; overflow-y: auto; padding: 20px; }
.adm-panel-ftr {
  padding: 14px 20px; border-top: 1px solid #e8e8e4;
  display: flex; justify-content: flex-end; flex-shrink: 0;
}
.adm-panel-save-btn {
  font-family: var(--font-nav); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: #1a1a1a; color: #fff;
  border: none; border-radius: 4px;
  padding: 10px 22px; cursor: pointer;
}
.adm-panel-save-btn:hover { background: #333; }

/* Print Options Panel — add button bar */
.pop-add-bar {
  padding: 12px 20px; border-bottom: 1px solid #e8e8e4;
  flex-shrink: 0;
}
.pop-add-btn {
  width: 100%; padding: 11px 0;
  font-family: var(--font-nav); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: #fff; color: #1a1a1a;
  border: 2px dashed #c8c4be; border-radius: 5px;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pop-add-btn:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* New Artwork Panel — image upload slots */
.nap-section-label {
  font-family: var(--font-nav); font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light); margin: 16px 0 8px;
}
.nap-section-label:first-child { margin-top: 0; }
.nap-img-row { display: flex; gap: 10px; margin-bottom: 4px; }
.nap-img-slot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nap-img-lbl { font-size: 9px; color: var(--text-light); text-align: center; }
.nap-img-single { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.nap-upload-btn {
  width: 100%; aspect-ratio: 1; border: 2px dashed #ccc;
  border-radius: 5px; background: #fafafa;
  cursor: pointer; font-size: 11px; color: #888;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.nap-img-single .nap-upload-btn { width: auto; aspect-ratio: unset; padding: 8px 14px; white-space: nowrap; }
.nap-upload-btn:hover { border-color: #999; color: #333; }
.nap-preview { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.nap-preview-single { width: 72px; height: 48px; aspect-ratio: unset; flex-shrink: 0; }
.nap-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.nap-field-triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.nap-input {
  width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px;
  font-size: 12px; font-family: inherit; box-sizing: border-box;
}
.nap-input:focus { outline: none; border-color: #999; }
.nap-input--full { width: 100%; display: block; margin-bottom: 4px; }

/* Print Options Panel */
.pop-card {
  border: 1px solid #e8e8e4; border-radius: 5px;
  padding: 12px 14px; margin-bottom: 10px;
}
.pop-card-hdr { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.pop-card-del {
  flex-shrink: 0; margin-left: auto;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; background: transparent; color: #bbb;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.pop-card-del:hover { background: #c0392b; color: #fff; }
.pop-card-num {
  flex-shrink: 0; width: 20px; height: 20px; background: #1a1a1a; color: #fff;
  border-radius: 50%; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.pop-label-pair { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pop-card-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pop-lbl { font-size: 10px; color: var(--text-light); flex-shrink: 0; min-width: 100px; }
.pop-field {
  flex: 1; padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px;
  font-size: 11px; font-family: inherit;
}
.pop-field--sm { flex: 0 0 120px; }
.pop-dim-input { flex: 0 0 80px; text-align: right; }
.pop-field:focus { outline: none; border-color: #999; }
.pop-limited-chk { width: 16px; height: 16px; cursor: pointer; }
.pop-card-row--col { align-items: flex-start; flex-direction: column; gap: 4px; }
.pop-card-row--col .pop-lbl { min-width: 0; }
.pop-textarea { resize: vertical; min-height: 52px; line-height: 1.5; }
.pop-card-divider { border: none; border-top: 1px dashed #e0ddd8; margin: 8px 0; }
.pop-dim-unit { font-size: 10px; color: var(--text-light); flex-shrink: 0; }
.pop-dim-sep  { font-size: 11px; color: var(--text-light); flex-shrink: 0; padding: 0 2px; }
.pop-dim-area {
  font-size: 11px; font-weight: 600; color: #444;
  flex-shrink: 0; margin-left: 6px;
  background: #f4f4f0; border-radius: 3px;
  padding: 3px 7px; white-space: nowrap;
}

/* Artwork Info Editor (admin-only, in detail info col) */
.artwork-info-editor {
  margin-top: 16px; padding: 14px;
  border: 1px dashed #ccc; border-radius: 5px;
  background: #fafaf8;
}
.aie-title {
  font-family: var(--font-nav); font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 12px;
}
.aie-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.aie-label {
  flex-shrink: 0; min-width: 54px;
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-light);
  padding-top: 8px;
}
.aie-inputs { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.aie-field {
  width: 100%; padding: 7px 9px; border: 1px solid #ddd; border-radius: 4px;
  font-size: 11px; font-family: inherit; box-sizing: border-box;
}
.aie-field:focus { outline: none; border-color: #999; }
.aie-img-row { margin-top: 6px; }
.aie-replace-img-btn {
  padding: 7px 14px; border: 1px solid #ccc; border-radius: 4px;
  background: #fff; cursor: pointer; font-size: 11px;
}
.aie-replace-img-btn:hover { background: #f0ede8; }
.aie-danger-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
.aie-delete-btn {
  padding: 7px 14px; border: none; border-radius: 4px;
  background: #fee; color: #c00; cursor: pointer;
  font-size: 11px; font-weight: 600;
}
.aie-delete-btn:hover { background: #fcc; }

/* ── Edition badge (injected by JS when limited) ── */
.artwork-edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #1a1a1a;
  border-radius: 3px;
  padding: 4px 10px;
  margin-bottom: 22px;
}

/* ── CTA / Inquire button ── */
.artwork-inquire-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.artwork-inquire-btn:hover {
  background: #111;
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(0,0,0,0.22);
}
.artwork-inquire-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,0.18); }

/* Trust strip under CTA */
.artwork-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.artwork-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.artwork-trust-item svg { opacity: 0.6; flex-shrink: 0; }

/* ── Inline inquiry form ── */
.artwork-inquiry-form {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.artwork-inquiry-form.open { display: flex; }

.artwork-inquiry-form label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}
.artwork-inquiry-form input,
.artwork-inquiry-form textarea {
  font-family: var(--font-body);
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  transition: border-color var(--ease);
}
.artwork-inquiry-form input:focus,
.artwork-inquiry-form textarea:focus { outline: none; border-color: var(--accent); }
.artwork-inquiry-form textarea { min-height: 80px; resize: vertical; }

.artwork-inquiry-submit {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  padding: 9px 16px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: opacity var(--ease);
  align-self: flex-start;
}
.artwork-inquiry-submit:hover { opacity: 0.8; }

/* ── Print type info text ── */
.artwork-print-info {
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 14px;
}
.artwork-print-info strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── Print info text blocks ── */
.artwork-print-info-heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}
.artwork-print-info-text {
  font-size: 11px;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ── Payment info ── */
.artwork-payment-info { margin-top: 4px; }
.artwork-payment-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.artwork-payment-text {
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-light);
}

/* ── Fullscreen zoom overlay ── */
.artwork-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.artwork-zoom-overlay.open { display: flex; }
.artwork-zoom-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color var(--ease);
}
.artwork-zoom-close:hover { color: #fff; }
.artwork-zoom-img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  display: block;
}

/* ── Artworks responsive ── */
@media (max-width: 1280px) {
  .artwork-detail-info-col { padding: 40px 40px 48px; }
}
@media (max-width: 1024px) {
  .artwork-detail-info-col { padding: 32px 28px 40px; }
  .artwork-detail-title { font-size: 26px; }
  .artwork-price-display { font-size: 38px; }
}

@media (max-width: 900px) {
  .artwork-detail-layout { flex-direction: column; min-height: auto; }
  .artwork-detail-img-col {
    position: sticky;
    top: 56px;
    z-index: 10;
    flex: none;
    width: 100%;
  }
  .artwork-detail-caption {
    overflow: hidden;
    max-height: 120px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  }
  .artwork-mockups-strip {
    overflow: hidden;
    max-height: 120px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  }
  /* Caption and thumb strip collapse as user scrolls into options */
  .artwork-detail-img-col.caption-collapsed .artwork-detail-caption,
  .artwork-detail-img-col.caption-collapsed .artwork-mockups-strip {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .artwork-detail-info-col { flex: none; max-height: none; width: 100%; border-left: none; border-top: 1px solid var(--border); padding: 32px 28px 48px; }
  .artwork-detail-toolbar { padding: 14px 24px; }
  .artwork-price-display { font-size: 40px; }

  /* Swipe hint arrows — injected by JS into #artworkDetailImgWrap */
  .artwork-swipe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    background: rgba(0,0,0,0.36);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.88);
    cursor: pointer;
    transition: opacity 0.3s ease, background 0.2s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .artwork-swipe-arrow--left  { left: 10px; }
  .artwork-swipe-arrow--right { right: 10px; }
  .artwork-swipe-arrow:active { background: rgba(0,0,0,0.62); }
  .artwork-swipe-arrow.faded  { opacity: 0; pointer-events: none; }
}

@media (max-width: 768px) {
  .artworks-page { padding: 0; }
  /* Grid column count is handled by auto-fill minmax — no override needed */
  .artwork-detail-title { font-size: 20px; }
  /* Break the sticky image col out of main-content's 24px side padding */
  .artwork-detail-img-col {
    margin-left: -24px;
    width: calc(100% + 48px);
  }
  .artwork-live-preview-badge { top: 24px; left: 18px; }
}

@media (max-width: 480px) {
  .artwork-detail-toolbar { padding: 12px 16px; }
  .artwork-detail-info-col { padding: 20px 16px 32px; }
  .artwork-detail-title { font-size: 18px; }
}

/* ── Artwork metadata (location · date · camera · photo #) ── */
.artwork-detail-meta {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.artwork-meta-sep { margin: 0 5px; opacity: 0.5; }
.artwork-meta-location,
.artwork-meta-date { font-weight: 400; }
.artwork-meta-camera { font-style: italic; }
.artwork-meta-num { opacity: 0.6; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Mockup / context photos strip ── */
.artwork-mockups-strip {
  display: flex;
  flex-direction: row;
  gap: 6px;
  padding: 10px 20px;
  overflow-x: auto;
  background: #111;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.artwork-mockups-strip::-webkit-scrollbar { height: 4px; }
.artwork-mockups-strip::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }

.artwork-mockup-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #222;
  position: relative;
  transition: border-color 0.2s;
}
.artwork-mockup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Auto-composite: artwork overlaid on scene template ── */
.artwork-composite {
  width: 100%;
  height: 100%;
  background-size: 100% 100%;   /* stretch template to fill exactly → slot % coords are consistent at all sizes */
  background-position: center;
  background-color: #ccc; /* visible while template image loads */
  position: relative;
  overflow: hidden;
}
.artwork-composite-img {
  position: absolute;
  object-fit: cover;
  display: block;
  /* Subtle inner shadow to blend artwork edges into the scene */
  box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
}
/* Paper finish — applied to the composite artwork image to suggest the
 * selected paper type. Glossy = punchier, slight sheen highlight via
 * box-shadow; Matte = softer, slightly desaturated. */
.artwork-composite-img.artwork-paper--glossy {
  filter: contrast(1.07) saturate(1.10) brightness(1.02);
  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.25),
    inset 18% 18% 38% rgba(255,255,255,0.06);
}
.artwork-composite-img.artwork-paper--matte {
  filter: contrast(0.94) saturate(0.90) brightness(0.99);
}

/* Glass sheen overlay — decorative hint of the selected glass option */
.artwork-glass-overlay {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
  border-radius: inherit;
}
.artwork-glass-overlay--classic {
  background:
    linear-gradient(125deg,
      rgba(255,255,255,0)    0%,
      rgba(255,255,255,0.40) 18%,
      rgba(255,255,255,0.05) 38%,
      rgba(255,255,255,0)    55%,
      rgba(255,255,255,0.22) 75%,
      rgba(255,255,255,0)   100%);
}
.artwork-glass-overlay--mirogard {
  background:
    linear-gradient(125deg,
      rgba(255,255,255,0)    0%,
      rgba(255,255,255,0.08) 45%,
      rgba(255,255,255,0)    75%);
}
/* When the composite fills the main detail image area */
.artwork-composite-main {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0;
}

/* Swipe arrows: hidden on desktop, shown only on mobile via media query */
.artwork-swipe-arrow { display: none; }

/* "Live Preview" badge — shown only on the interactive composite view */
.artwork-live-preview-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(320px, calc(100% - 28px));
  padding: 8px 12px;
  background: rgba(0,0,0,0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  color: #fff;
  pointer-events: none;
  font-family: var(--font-body);
}
.artwork-live-preview-badge .lp-dot {
  width: 7px; height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5fd07a;
  box-shadow: 0 0 0 0 rgba(95,208,122,0.6);
  animation: lp-pulse 1.8s ease-out infinite;
}
.artwork-live-preview-badge .lp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.artwork-live-preview-badge .lp-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.artwork-live-preview-badge .lp-note {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.78;
  margin-top: 2px;
}
@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(95,208,122,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(95,208,122,0);    }
  100% { box-shadow: 0 0 0 0   rgba(95,208,122,0);    }
}
.artwork-composite-main .artwork-composite-img {
  box-shadow: inset 0 0 24px rgba(0,0,0,0.3);
}
.artwork-mockup-thumb--active { border-color: var(--accent); }
.artwork-mockup-thumb:hover { border-color: rgba(168,134,63,0.6); }

.mockup-del-btn {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: rgba(200,55,55,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.artwork-mockup-thumb:hover .mockup-del-btn { opacity: 1; }

.artwork-mockup-add-btn {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 2px dashed #444;
  border-radius: 3px;
  background: transparent;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.artwork-mockup-add-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── More from this gallery ── */
.artwork-more-section {
  padding: 40px 40px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.artwork-more-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 20px;
}
.artwork-more-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  padding-bottom: 4px;
}
.artwork-more-row::-webkit-scrollbar { height: 4px; }
.artwork-more-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.artwork-more-card {
  flex: 0 0 auto;
  width: 140px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.artwork-more-card img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.artwork-more-card:hover img { opacity: 0.8; }
.artwork-more-card span {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .artwork-more-section { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 480px) {
  .artwork-more-section { padding-left: 16px; padding-right: 16px; }
  .artwork-more-card { width: 110px; }
  .artwork-more-card img { width: 110px; height: 78px; }
}

/* ══════════════════════════════════════
   CART
   ══════════════════════════════════════ */

/* ── Sidebar cart button ── */
.cart-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 0;
  font-family: var(--font-nav);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  margin-top: 2px;
}
.cart-sidebar-btn:hover { color: var(--accent); }
.cart-sidebar-btn svg { flex-shrink: 0; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

/* ── Add to Cart / Inquiry buttons on artwork detail ── */
.artwork-add-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 18px 24px;
  margin-top: 22px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}
.artwork-add-cart-btn:hover {
  background: #111;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.artwork-add-cart-btn.added {
  background: #2a7a2a;
  box-shadow: 0 4px 14px rgba(42,122,42,0.30);
  transform: translateY(-1px);
}
.artwork-inquire-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 24px;
  background: none;
  color: var(--text-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-align: center;
}
.artwork-inquire-btn:hover { border-color: var(--text-light); color: var(--text); }

/* ── Cart page ── */
.cart-page { padding: 0; }
.cart-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 32px;
}
.cart-items-col { flex: 1 1 0; min-width: 0; }
.cart-summary-col {
  flex: 0 0 340px;
  position: sticky;
  top: 32px;
}

/* Empty state */
.cart-empty {
  padding: 64px 0;
  text-align: center;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 14px;
}
.cart-empty-icon { margin-bottom: 16px; opacity: 0.3; }
.cart-browse-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-browse-btn:hover { background: #333; }

/* Cart item row */
.cart-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:first-child { border-top: 1px solid var(--border); }
.cart-item-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--border);
}
.cart-item-info { flex: 1 1 0; min-width: 0; }
.cart-item-series {
  font-family: var(--font-nav);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.cart-item-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cart-item-option {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 6px;
  line-height: 1.5;
}
.cart-item-price {
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.cart-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn:hover { background: var(--border); }
.cart-qty-val {
  width: 28px;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 3px;
  transition: color 0.2s;
  display: flex;
}
.cart-remove-btn:hover { color: #c0392b; }

/* Cart summary box */
.cart-summary-box {
  background: #fafaf8;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
}
.cart-summary-heading {
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 18px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.cart-total-label {
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.cart-total-amount {
  font-family: var(--font-nav);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.cart-note {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 22px;
}
.cart-form-heading {
  font-family: var(--font-nav);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.cart-field {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.cart-field:focus { outline: none; border-color: var(--text-light); }
textarea.cart-field { min-height: 90px; resize: vertical; }
.cart-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.cart-submit-btn:hover { background: #111; transform: translateY(-1px); }
.cart-success-msg {
  display: none;
  padding: 12px 14px;
  background: #eaf6ea;
  border-radius: var(--radius);
  font-size: 12px;
  color: #2a7a2a;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .cart-layout { flex-direction: column; }
  .cart-summary-col { flex: none; width: 100%; position: static; }
  .cart-page { padding: 0; }
}

/* ── Cart Shipping & Returns strip ── */
.cart-shipping-info {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.csi-heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}
.csi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.csi-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.csi-block-title svg { flex-shrink: 0; color: var(--accent); }
.csi-delivery-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.csi-delivery-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.csi-delivery-list li:last-child { border-bottom: none; }
.csi-region { font-size: 11px; color: var(--text); }
.csi-days { font-size: 11px; color: var(--text-light); white-space: nowrap; }
.csi-note {
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.55;
  margin-top: 8px;
  font-style: italic;
}
.csi-text {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .csi-grid { grid-template-columns: 1fr; gap: 24px; }
  .cart-shipping-info { margin-top: 40px; }
}

/* ── Order success modal ── */
.order-success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.order-success-box {
  background: #fff;
  max-width: 440px;
  width: 100%;
  padding: 52px 44px 44px;
  text-align: center;
  animation: osIn .22s ease;
}
@keyframes osIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.order-success-check {
  font-size: 44px;
  color: #111;
  line-height: 1;
  margin-bottom: 20px;
}
.order-success-title {
  font-size: 18px;
  font-family: var(--font-heading);
  color: #111;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.order-success-body {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 32px;
}
.order-success-body strong {
  color: #111;
}
.order-success-close {
  display: inline-block;
  background: #111;
  color: #fff;
  border: none;
  padding: 13px 36px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.order-success-close:hover { background: #333; }
@media (max-width: 480px) {
  .cart-item-thumb { width: 64px; height: 48px; }
  .cart-item-mockup { width: 64px; height: 48px; }
}

/* ════════════════════════════
   IMAGE PROCESSING PANEL
   ════════════════════════════ */
.img-process-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ipp-inner {
  background: #fff;
  border-radius: 8px;
  padding: 28px 28px 20px;
  max-width: 460px;
  width: calc(100vw - 40px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
.ipp-title {
  font-family: var(--font-nav);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ipp-title.is-processing::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: #555;
  border-radius: 50%;
  animation: ippSpin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes ippSpin { to { transform: rotate(360deg); } }
.ipp-status {
  font-size: 0.82rem;
  color: var(--text-light);
  min-height: 18px;
  margin-bottom: 16px;
}
.ipp-results { margin-bottom: 16px; }
.ipp-preview-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}
#ippPreview {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.ipp-sizes {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.8;
}
.ipp-size-row { display: flex; justify-content: space-between; gap: 8px; }
.ipp-size-label { color: var(--text-light); }
.ipp-size-val { font-weight: 500; }
.ipp-warns {
  font-size: 0.78rem;
  color: #7a5a00;
  background: #fffbee;
  border: 1px solid #e8d080;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 10px;
  white-space: pre-line;
}
.ipp-warns:empty { display: none; }
.ipp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.ipp-actions button {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: background 0.15s;
}
.ipp-actions button:hover { background: #f5f5f5; }
#ippConfirmBtn {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
#ippConfirmBtn:hover { background: #333; border-color: #333; }

/* ════════════════════════════════════════════════════════════
   Artworks page — conversion & UX enhancements (v1.7.2)
   ════════════════════════════════════════════════════════════ */

/* ── Grid card: "from ₺X" price + hover "View" overlay ── */
.artwork-card-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,26,26,0.30);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.artwork-card:hover .artwork-card-view { opacity: 1; }
.artwork-from-price {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
  margin-top: 3px;
}
.artwork-from-price .afp-label {
  color: var(--text-light);
  font-weight: 400;
}

/* ── Uniform control modules: type toggle, size select, edition strip ──
   All three share one height so the stack reads as a single tidy rhythm. */
:root { --mod-h: 46px; }

.artwork-print-type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.artwork-type-seg {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--mod-h);
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.artwork-type-seg:hover { border-color: var(--accent); }
.artwork-type-seg.active {
  border-color: var(--accent);
  background: var(--edit-hl);
  box-shadow: 0 0 0 3px rgba(168,134,63,0.12);
}
.artwork-type-seg .seg-name {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.artwork-type-seg.active .seg-name { color: var(--accent-hover); }
.artwork-type-seg .seg-price {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}
.artwork-type-seg--empty { display: none; }

/* Size dropdown shares the module height */
.artwork-select-wrap .artwork-select-styled {
  height: var(--mod-h);
  padding: 0 36px 0 14px;
}

/* ── Edition / scarcity strip (single info module) ── */
.artwork-edition-line {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--mod-h);
  padding: 0 14px;
  margin: 0;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.artwork-edition-line svg { flex-shrink: 0; }
.artwork-edition-line--limited {
  color: var(--accent-hover);
  font-weight: 600;
  border-color: var(--accent);
  background: var(--edit-hl);
}
.artwork-edition-line--open { color: var(--text-light); }

/* ── Chip hover tooltips (anchored to the group row so they never clip) ── */
@media (hover: hover) {
  .artwork-option-group { position: relative; }
  .artwork-chip[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    width: max-content;
    max-width: 260px;
    padding: 8px 11px;
    background: var(--text);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: normal;
    border-radius: 5px;
    box-shadow: var(--shadow-md);
    pointer-events: none;
    z-index: 30;
  }
}

/* ── Framing & paper options: compact chip selectors (all visible) ──
   The native <select>s stay in the DOM as the value source but are hidden. */
.artwork-option-group-select { display: none; }
.artwork-option-groups {
  padding: 16px;
  gap: 2px;
  margin: 14px 0 4px;
  background: #f7f4ef;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.artwork-option-group {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,0.055);
}
.artwork-option-groups .artwork-option-group:first-child { padding-top: 2px; }
.artwork-option-groups .artwork-option-group:last-child { border-bottom: none; padding-bottom: 2px; }
.artwork-option-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-top: 7px;
  margin: 0;
}
.artwork-option-group--disabled { opacity: 0.5; }

.artwork-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.artwork-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text);
  line-height: 1.2;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.artwork-chip:hover { border-color: var(--accent); }
.artwork-chip.active {
  border-color: var(--accent);
  background: var(--edit-hl);
  box-shadow: 0 0 0 2px rgba(168,134,63,0.14);
}
.artwork-chip.active .chip-label { color: var(--accent-hover); font-weight: 600; }
.artwork-chip.disabled { cursor: not-allowed; opacity: 0.5; }
.artwork-chip .chip-price { font-size: 10.5px; color: var(--text-light); }
.artwork-chip.active .chip-price { color: var(--accent-hover); }
.chip-sw {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.chip-sw--none { background: #fff; position: relative; overflow: hidden; }
.chip-sw--none::after {
  content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px;
  background: #c0392b; transform: rotate(45deg); transform-origin: center;
}

/* ── Merged Total + Add-to-Cart row (removes duplicated price) ── */
.artwork-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 12px;
  padding-top: 18px;
  border-top: 2px solid var(--accent);
}
.artwork-buy-total { display: flex; flex-direction: column; gap: 3px; }
.artwork-buy-total-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-light);
}
.artwork-buy-row .artwork-price-display { font-size: 34px; line-height: 1; }
.artwork-buy-row .artwork-add-cart-btn { width: auto; margin-top: 0; padding: 15px 26px; flex-shrink: 0; }
@media (max-width: 480px) {
  .artwork-buy-row { flex-direction: column; align-items: stretch; }
  .artwork-buy-row .artwork-add-cart-btn { width: 100%; }
}

/* ── Ship-estimate microcopy under the CTA ── */
.artwork-ship-note {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin: 4px 0 2px;
  letter-spacing: 0.02em;
}

/* ── Mobile sticky purchase bar (hidden on desktop) ── */
.artwork-sticky-bar { display: none; }
.edit-active .artwork-sticky-bar { display: none !important; }
@media (max-width: 900px) {
  body:not(.edit-active) .artwork-sticky-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
  }
  .artwork-sticky-price {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text);
    line-height: 1;
  }
  .artwork-sticky-add-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  /* Room so page content clears the fixed bar */
  body:not(.edit-active) .artwork-detail-info-col { padding-bottom: 96px; }
}
