/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --cream:        #fff5f8;
  --cream-dark:   #fce4ec;
  --rose:         #e8729a;
  --rose-dark:    #c44f7a;
  --rose-light:   #fde0ea;
  --brown:        #3b1a28;
  --brown-mid:    #7a3a58;
  --brown-light:  #b06888;
  --text:         #2d1520;
  --text-muted:   #8a5a70;
  --border:       #f0c8d8;
  --white:        #ffffff;
  --shadow:       0 4px 24px rgba(61,16,36,.10);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   .25s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--brown);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ── Header / Nav ───────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(61,31,16,.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.site-logo .logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
}
.site-logo .logo-sub {
  font-size: .78rem;
  color: var(--text-muted);
  display: block;
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.main-nav a {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--rose-light);
  color: var(--rose-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,114,154,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; }
.hero-tagline {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: var(--rose-dark);
  font-style: italic;
  margin-top: .75rem;
  letter-spacing: .04em;
}

/* ── Section ────────────────────────────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section-title {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--rose-light), transparent);
  border-radius: 2px;
}

/* ── Category cards (homepage) ──────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(61,31,16,.16);
}
.category-card a { display: block; }

.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.category-card:hover .card-image img { transform: scale(1.07); }

.card-placeholder {
  font-size: 3rem;
  opacity: .35;
}

.card-body {
  padding: 1.1rem 1.25rem 1.25rem;
}
.card-title {
  font-size: 1.15rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--brown);
  margin-bottom: .25rem;
}
.card-count {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Photo grid (category page) ─────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.photo-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(61,31,16,.08);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(61,31,16,.14);
}

.photo-thumb {
  aspect-ratio: 1;
  overflow: hidden;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.photo-item:hover .photo-thumb img { transform: scale(1.08); }

.photo-meta {
  padding: .6rem .8rem .75rem;
}
.photo-cake-id {
  font-size: .82rem;
  font-weight: 700;
  color: var(--rose-dark);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-title {
  font-size: .82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .1rem;
}
.photo-weight {
  font-size: .78rem;
  color: var(--brown-mid);
  margin-top: .1rem;
  font-weight: 600;
}

/* ── Photo admin bar (gallery page) ─────────────────────────────────────────── */
.photo-item { position: relative; }

.photo-admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding: .35rem .6rem;
  background: #2d1520;
  border-top: 1px solid rgba(255,255,255,.08);
}
.photo-id-label {
  font-size: .7rem;
  font-family: monospace;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.photo-admin-actions { display: flex; gap: .3rem; flex-shrink: 0; }
.pab-btn {
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.75);
  border-radius: 4px;
  padding: .25rem .5rem;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.pab-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.pab-delete:hover { background: rgba(231,76,60,.5); color: #fff; }
.pab-hidden-active { background: rgba(232,114,154,.3); color: #f9c; }

/* Hidden photo */
.photo-hidden .photo-thumb img { opacity: .45; filter: grayscale(.4); }
.hidden-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 50px;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Lightbox ───────────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.85);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,.5);
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 2.8rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
  user-select: none;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-prev.hidden,
.lightbox-next.hidden { display: none; }
.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .9rem;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Category tabs ──────────────────────────────────────────────────────────── */
.cat-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cat-tab {
  padding: .45rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  background: var(--white);
}
.cat-tab:hover,
.cat-tab.active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

/* ── Contact strip ──────────────────────────────────────────────────────────── */
.contact-strip {
  background: linear-gradient(135deg, #3b1a28 0%, #5c2040 100%);
  color: var(--cream);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.contact-strip h2 { color: var(--rose-light); margin-bottom: 1rem; }
.contact-items {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .95rem;
}
.contact-item {
  opacity: .9;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  text-align: left;
}
.contact-icon { font-size: 1.4rem; line-height: 1; margin-top: .1rem; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--rose-light); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }
.contact-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  transition: border-color var(--transition), color var(--transition);
}
.contact-link:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.7);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1e0e07;
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: .82rem;
}
.site-footer a { color: var(--rose-light); }
.site-footer { background: #26101c; }

/* ── Pricing page ────────────────────────────────────────────────────────────── */
.price-hero {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(232,114,154,.3);
}
.price-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .5rem;
}
.price-big span { font-size: .45em; opacity: .8; }
.price-hero p { font-size: 1rem; opacity: .92; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(61,16,36,.08);
  border-top: 3px solid var(--rose-light);
}
.price-card h3 {
  font-size: 1.05rem;
  margin-bottom: .25rem;
  color: var(--rose-dark);
}
.card-note {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  font-style: italic;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.price-table tr { border-bottom: 1px solid var(--border); }
.price-table tr:last-child { border-bottom: none; }
.price-table td { padding: .45rem .2rem; color: var(--text); }
.price-val { text-align: right; font-weight: 700; color: var(--rose-dark); white-space: nowrap; }

.flavor-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}
.flavor-list span {
  background: var(--cream-dark);
  color: var(--brown-mid);
  border-radius: 50px;
  padding: .25rem .75rem;
  font-size: .82rem;
  font-weight: 600;
}

/* ── Pricing inline edit controls ────────────────────────────────────────────── */
.pe-field[contenteditable="true"] {
  border-radius: 3px;
  outline: 2px dashed rgba(232,114,154,.5);
  background: rgba(232,114,154,.06);
  cursor: text;
  min-width: 30px;
  display: inline-block;
  padding: 0 2px;
}
.pe-field[contenteditable="true"].editable-focus {
  outline: 2px solid var(--rose);
  background: rgba(232,114,154,.12);
}
.pe-section-title[contenteditable="true"] {
  border-radius: 3px;
  outline: 2px dashed rgba(232,114,154,.5);
  background: rgba(232,114,154,.06);
  cursor: text;
  padding: 0 4px;
}
.pc-del-item, .pc-del-section {
  background: #fde8ec;
  border: none;
  color: #c0392b;
  border-radius: 4px;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .35rem;
  white-space: nowrap;
  transition: background .15s;
}
.pc-del-item:hover, .pc-del-section:hover { background: #f9c4cb; }
.btn-add-item-inline {
  display: none;
  margin-top: .4rem;
  background: var(--cream-dark);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: .3rem .85rem;
  font-size: .8rem;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.btn-add-item-inline:hover { background: var(--rose-light); color: var(--rose-dark); }
.price-hero .btn-add-item-inline { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.8); }
.price-hero .btn-add-item-inline:hover { background: rgba(255,255,255,.25); color: #fff; }
.price-hero .pc-del-item,
.price-hero .pc-del-section { background: rgba(231,76,60,.3); color: #fff; }
.price-hero .pc-del-item:hover,
.price-hero .pc-del-section:hover { background: rgba(231,76,60,.6); }

.price-note {
  background: var(--cream-dark);
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--rose);
  color: var(--white);
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn-secondary {
  background: var(--white);
  color: var(--rose-dark);
  border: 2px solid var(--rose);
}
.btn-secondary:hover { background: var(--rose-light); }
.btn-danger {
  background: #e74c3c;
  color: var(--white);
}
.btn-danger:hover { background: #c0392b; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--cream-dark); color: var(--text); }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }
.btn-icon { padding: .45rem .6rem; }

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

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--brown);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand .logo-text { color: var(--cream); font-size: 1.1rem; }
.sidebar-brand .logo-sub { color: rgba(255,255,255,.5); }

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,.1);
  color: var(--cream);
  border-left-color: var(--rose);
}
.sidebar-nav .nav-icon { font-size: 1.1rem; width: 1.4rem; text-align: center; }
.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: .5rem 1.25rem;
}
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.admin-main {
  flex: 1;
  min-width: 0;
  background: #f5ede5;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-topbar h1 { font-size: 1.4rem; }

.admin-content { padding: 2rem; }

/* ── Admin cards / stats ─────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(61,31,16,.07);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rose);
  font-family: 'Cormorant Garamond', serif;
}
.stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .1rem;
}

/* ── Admin table ─────────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(61,31,16,.07);
  overflow: hidden;
}
.table-head {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.table-head h2 { font-size: 1.1rem; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.admin-table th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #fdf5ef;
}
.admin-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid #f0e5d8;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fdf5ef; }

.thumb-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.thumb-cell img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}
.has-wm { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #27ae60; margin-left: .4rem; vertical-align: middle; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(61,31,16,.08);
  padding: 2rem;
  max-width: 680px;
}

.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--brown-mid);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.form-input,
.form-select,
select.form-select {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201,130,107,.18);
}

.file-input-wrap {
  position: relative;
}
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.file-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: .92rem;
  color: var(--text-muted);
}
.file-label:hover { border-color: var(--rose); background: var(--rose-light); color: var(--rose-dark); }
.file-icon { font-size: 1.5rem; }
.file-name { font-style: italic; }

.check-group {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .9rem;
  cursor: pointer;
}
.check-item .form-checkbox { width: 16px; height: 16px; accent-color: var(--rose); cursor: pointer; }
.check-todo { opacity: .55; font-style: italic; font-size: .78rem; }

.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }

/* ── Watermark editor ────────────────────────────────────────────────────────── */
.wm-editor-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .wm-editor-layout { grid-template-columns: 1fr; }
}

.canvas-wrap {
  background: #1a1a1a;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
#editorCanvas {
  max-width: 100%;
  display: block;
  cursor: crosshair;
}

.wm-controls {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 14px rgba(61,31,16,.08);
  position: sticky;
  top: 80px;
}
.wm-controls h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.wm-instruction {
  font-size: .85rem;
  color: var(--text-muted);
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.scale-group { margin-bottom: 1.25rem; }
.scale-label {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  font-weight: 700;
  color: var(--brown-mid);
  margin-bottom: .4rem;
}
input[type=range] {
  width: 100%;
  accent-color: var(--rose);
  cursor: pointer;
}
.wm-status {
  font-size: .82rem;
  padding: .6rem .9rem;
  border-radius: var(--radius-sm);
  background: var(--cream-dark);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.wm-status.placed { background: #d4edda; color: #1a5c32; }
.wm-actions { display: flex; flex-direction: column; gap: .6rem; }
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  flex-shrink: 0;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--rose-dark); transform: scale(1.15); }

/* ── Messages ────────────────────────────────────────────────────────────────── */
.messages { list-style: none; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.message {
  padding: .75rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
}
.message.success { background: #d4edda; color: #1a5c32; }
.message.error { background: #fde8e8; color: #8b1a1a; }
.message.info { background: #dbeafe; color: #1e3a5f; }

/* ── Empty states ────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state p { margin-bottom: 1.5rem; }

/* ── Login page ──────────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 60%);
  padding: 2rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(61,31,16,.14);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo .logo-text { font-size: 1.5rem; }
.login-logo .logo-sub { font-size: .85rem; color: var(--text-muted); margin-top: .2rem; }
.login-title { font-size: 1.2rem; margin-bottom: 1.5rem; }
.error-box {
  background: #fde8e8;
  color: #8b1a1a;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .88rem;
  margin-bottom: 1.25rem;
}

/* ── Admin bar (bottom) ──────────────────────────────────────────────────────── */
.admin-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #1a0f07;
  border-top: 2px solid var(--rose);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 48px;
  font-size: .82rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.has-admin-bar {
  padding-bottom: 48px;
}
.admin-bar-left,
.admin-bar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.admin-bar-center {
  flex: 1;
  text-align: center;
}
.admin-bar-label {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: .25rem;
}
.admin-bar-link {
  color: rgba(255,255,255,.7);
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 4px;
  transition: var(--transition);
}
.admin-bar-link:hover { background: rgba(255,255,255,.1); color: var(--white); }
.admin-bar-status {
  font-size: .82rem;
  font-weight: 600;
  min-width: 160px;
  display: inline-block;
}
.admin-bar-btn {
  background: rgba(201,130,107,.2);
  border: 1.5px solid rgba(201,130,107,.4);
  color: var(--rose-light);
  border-radius: 4px;
  padding: .3rem .85rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.admin-bar-btn:hover,
.admin-bar-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

/* ── Editable text (in-page editor) ─────────────────────────────────────────── */
.editable-text {
  border-radius: 3px;
  transition: outline .15s, background .15s;
  outline: 2px dashed transparent;
  cursor: default;
}
[contenteditable="true"].editable-text {
  cursor: text;
  outline: 2px dashed rgba(201,130,107,.5);
  background: rgba(201,130,107,.08);
  border-radius: 3px;
}
[contenteditable="true"].editable-text.editable-focus {
  outline: 2px solid var(--rose);
  background: rgba(201,130,107,.12);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  .header-inner { flex-wrap: wrap; height: auto; padding: .75rem 1.25rem; }
  .hamburger { display: flex; }

  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: .75rem; }
  .sidebar-brand { display: none; }
  .sidebar-nav { display: flex; padding: 0; flex: 1; }
  .sidebar-nav a { padding: .5rem .75rem; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar-nav a.active, .sidebar-nav a:hover { border-left: none; border-bottom-color: var(--rose); }
  .sidebar-footer { display: none; }
  .admin-content { padding: 1rem; }
  .admin-topbar { padding: .75rem 1rem; }

  .wm-editor-layout { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
