/* ============================================================
   RIZU BAKES — STYLES
   ------------------------------------------------------------
   All colors & fonts live in :root below. Change them once and
   the whole site (public + admin) updates.
   ============================================================ */

:root {
  /* ---- Rose & Cocoa palette: premium patisserie cream, blush, and cocoa ---- */
  --pink-pastel: #f7e9e5;   /* blush wash for section backgrounds */
  --pink-soft:   #f1dadd;   /* pale rose accents and surfaces      */
  --pink-mid:    #d09a9d;   /* muted rose details                  */
  --rose:        #b66c70;   /* soft rose accent                    */
  --burgundy:    #712f3c;   /* rose-cocoa primary                  */
  --burgundy-dark: #54222d; /* deeper cocoa button hover           */
  --cream:       #fbf7f1;   /* warm patisserie cream               */
  --white:       #fffdf9;
  --ink:         #38272a;   /* cocoa body text                     */
  --ink-soft:    #887578;   /* muted cocoa text                    */
  --border:      #ead9d6;   /* warm blush borders                  */
  --success:     #4a8f5f;
  --danger:      #b23a3a;

  /* ---- Fonts ---- */
  --font-script: "Great Vibes", cursive;            /* elegant headings */
  --font-serif:  "Cormorant Garamond", Georgia, serif; /* sub-headings  */
  --font-body:   "Poppins", -apple-system, "Segoe UI", sans-serif;

  /* ---- Misc ---- */
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(56, 39, 42, 0.08);
  --shadow-md: 0 12px 34px rgba(56, 39, 42, 0.14);
  --max-width: 1120px;
}

/* ============================ RESET ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Leave room under the sticky navbar when jumping to a section */
section[id] { scroll-margin-top: 84px; }

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

img { max-width: 100%; display: block; }

a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--burgundy); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--burgundy-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--burgundy);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { background: var(--pink-pastel); color: var(--burgundy); }

.btn-wa {
  background: #25d366;
  color: #ffffff;
}
.btn-wa:hover { background: #1ebe5b; color: #ffffff; }

.btn-block { width: 100%; }

/* ============================ NAVBAR ============================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-script {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--burgundy);
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose);
  padding-left: 3px;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a.nav-link:hover { color: var(--burgundy); }
.nav-links a.nav-link:hover::after { width: 100%; }

.nav-cta { margin-left: 6px; }

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--burgundy);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-link { padding: 12px 4px; border-bottom: 1px dashed var(--border); }
  .nav-links a.nav-link::after { display: none; }
  .nav-cta { margin: 10px 0 0; }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(241, 218, 221, 0.68), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(241, 218, 221, 0.48), transparent 45%),
    var(--cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 84px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 4.6rem);
  line-height: 1.08;
  color: var(--burgundy);
  margin-bottom: 10px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--rose);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { color: var(--pink-mid); }

/* Hero art — floating berry-cake SVG over the soft rose patisserie backdrop */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero-blob {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  max-width: 440px;
  background: linear-gradient(145deg, var(--pink-soft), var(--pink-pastel));
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  animation: blobFloat 7s ease-in-out infinite;
}
.hero-cake-art {
  position: relative;
  display: block;
  width: min(62%, 270px);
  min-width: 190px;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(56, 39, 42, 0.16));
  animation: cakeFloat 5s ease-in-out infinite;
}
.hero-ring {
  position: absolute;
  border: 2px dashed var(--pink-mid);
  border-radius: 50%;
  opacity: 0.55;
}
.hero-ring.r1 { width: 96%; max-width: 470px; aspect-ratio: 1; animation: spin 40s linear infinite; }
.hero-ring.r2 { width: 74%; max-width: 360px; aspect-ratio: 1; animation: spin 30s linear infinite reverse; }

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.03); }
}
@keyframes cakeFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 36px; padding-bottom: 56px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-art { order: -1; min-height: 210px; margin-bottom: 6px; }
  .hero-blob { max-width: 230px; }
  .hero-ring.r1 { max-width: 250px; }
  .hero-ring.r2 { max-width: 195px; }
  .hero-cake-art { width: min(58%, 165px); min-width: 135px; }
  .hero-eyebrow { margin-bottom: 16px; }
}

/* ============================ SECTION HEADERS ============================ */
section { padding: 84px 0; }
.section-alt { background: var(--pink-pastel); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  line-height: 1.15;
  color: var(--burgundy);
  margin-bottom: 12px;
}
.section-desc { color: var(--ink-soft); font-size: 0.98rem; }

/* Decorative divider under headings */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--rose);
  margin-top: 14px;
}
.divider::before, .divider::after {
  content: "";
  width: 54px; height: 1px;
  background: var(--pink-mid);
}
.divider span { font-size: 0.85rem; }

@media (max-width: 640px) { section { padding: 60px 0; } }

/* ============================ MENU ============================ */
.custom-order-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto 30px;
  padding: 24px 28px;
  max-width: 920px;
  border: 1px solid var(--pink-mid);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--white), var(--pink-pastel));
  box-shadow: var(--shadow-sm);
}
.custom-order-copy { max-width: 590px; }
.custom-order-kicker {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.custom-order-copy h3 {
  margin: 2px 0 4px;
  color: var(--burgundy);
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.2;
}
.custom-order-copy > p:last-child { color: var(--ink-soft); font-size: 0.9rem; }
.custom-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.custom-order-actions .btn { font-size: 0.85rem; padding: 11px 18px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--pink-mid);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--rose); color: var(--burgundy); }
.filter-btn.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}

/* On phones, keep card photos shorter so more of the menu fits on screen */
@media (max-width: 640px) {
  .custom-order-box { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .custom-order-actions { justify-content: stretch; }
  .custom-order-actions .btn { flex: 1 1 auto; }
  .card-img { aspect-ratio: 16 / 9; }
  .menu-grid { gap: 20px; }
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-pastel), var(--pink-soft));
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.menu-card:hover .card-img img { transform: scale(1.06); }

.card-img .emoji-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.6rem;
}

.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--burgundy);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  flex: 1;
}

.card-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 14px;
}

.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; padding: 11px 12px; font-size: 0.85rem; }

/* Loading / empty states */
.grid-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 10px;
  font-size: 0.95rem;
}
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--pink-soft);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.9s linear infinite;
}

/* ============================ GALLERY ============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item .g-emoji {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem;
  background: linear-gradient(135deg, var(--pink-pastel), var(--pink-soft));
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 460px) {
  .gallery-grid { grid-auto-rows: 150px; gap: 10px; }
}

/* ============================ HOW TO ORDER ============================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 26px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step-num {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow-sm);
}

.step-icon { font-size: 2.2rem; margin-bottom: 14px; }
.step-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.step-text { font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 820px) {
  .steps-grid { grid-template-columns: 1fr; gap: 40px; max-width: 420px; margin: 0 auto; }
}

/* ============================ CONTACT ============================ */
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--burgundy);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-main {
  padding: 56px 50px;
  color: var(--pink-pastel);
}
.contact-main .section-title { color: var(--white); }
.contact-main p { color: rgba(255, 248, 242, 0.82); max-width: 420px; }

.contact-list { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item .c-icon {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 1.15rem;
}
.contact-item small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: 2px;
}
.contact-item a, .contact-item span.val {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
}
.contact-item a:hover { color: var(--pink-soft); }

.contact-side {
  background:
    radial-gradient(circle at 80% 20%, rgba(241, 218, 221, 0.35), transparent 55%),
    linear-gradient(160deg, #8b4c55, #54222d);
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.contact-side h3 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1.2;
}
.contact-side p { color: rgba(255, 248, 242, 0.75); font-size: 0.9rem; }

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-main { padding: 44px 28px; }
  .contact-side { padding: 40px 28px; }
}

/* ============================ FOOTER ============================ */
footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 34px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
footer .footer-script {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--burgundy);
  display: block;
  margin-bottom: 4px;
}
footer .footer-links { display: flex; justify-content: center; gap: 20px; margin: 10px 0 12px; flex-wrap: wrap; }
footer .footer-links a { color: var(--rose); font-weight: 500; }

/* ============================ FLOATING WHATSAPP ============================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
  animation: waPulse 2.6s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45), 0 10px 26px rgba(37,211,102,0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 26px rgba(37,211,102,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 26px rgba(37,211,102,0.45); }
}

/* ============================ LIGHTBOX ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(74, 43, 49, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 860px);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================ REVEAL ANIMATION ============================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   ADMIN PANEL STYLES (admin.html only)
   ============================================================ */
.admin-body { background: var(--cream); }

/* ---------- Login screen ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(241, 218, 221, 0.6), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(241, 218, 221, 0.45), transparent 45%),
    var(--cream);
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 44px 36px 38px;
  text-align: center;
}
.login-card .brand-script { font-size: 2.6rem; }
.login-card h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 6px 0 26px;
  font-weight: 600;
}

/* ---------- Forms (shared by login + dashboard) ---------- */
.field { margin-bottom: 16px; text-align: left; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(182, 108, 112, 0.12);
}
.field textarea { resize: vertical; min-height: 84px; }
.field .hint { font-size: 0.75rem; color: var(--ink-soft); margin-top: 4px; }

.form-msg {
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: none;
  text-align: left;
}
.form-msg.error   { display: block; background: #fdeaea; color: var(--danger); }
.form-msg.success { display: block; background: #eaf6ee; color: var(--success); }

/* ---------- Dashboard shell ---------- */
.admin-header {
  background: var(--burgundy);
  color: var(--white);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.admin-header .brand-script { color: var(--white); font-size: 1.8rem; }
.admin-header .brand-sub { color: var(--pink-soft); }
.admin-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--pink-pastel);
}
.admin-user .email { opacity: 0.75; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.2s ease;
}
.btn-logout:hover { background: rgba(255, 255, 255, 0.24); }

.admin-main { padding: 40px 0 80px; }

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.admin-tab {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-tab.active { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }

.admin-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 26px;
  align-items: start;
}
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.panel h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--burgundy);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.panel h3 .count { font-family: var(--font-body); font-size: 0.75rem; color: var(--ink-soft); font-weight: 500; }

.panel-subtitle {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: -8px 0 16px;
}

/* Image upload preview */
.img-preview-wrap {
  position: relative;
  margin-top: 8px;
}
.img-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1.5px dashed var(--pink-mid);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
}
.img-preview-wrap .img-preview { margin-top: 0; }
.img-preview.has-image { padding: 0; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 253, 249, 0.94);
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.img-clear:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  transform: scale(1.06);
}

/* Field label + inline action (e.g. "+ Add category") */
.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.field-head label { margin-bottom: 0; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--burgundy);
  cursor: pointer;
  transition: color 0.15s ease;
}
.link-btn:hover { color: var(--rose); text-decoration: underline; }

.inline-add {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.inline-add input {
  flex: 1;
  width: auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inline-add input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(182, 108, 112, 0.12);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Category management chips */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 14px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
}
.cat-chip-del {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.cat-chip-del:hover {
  background: #fdeaea;
  color: var(--danger);
}
.empty-note-inline {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-actions .btn { flex: 1; padding: 12px 16px; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

/* Admin item rows */
.admin-list { display: flex; flex-direction: column; gap: 12px; max-height: 620px; overflow-y: auto; padding-right: 4px; }

.admin-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
}
.admin-item .thumb {
  width: 58px; height: 58px;
  flex: 0 0 58px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pink-pastel);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.admin-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item .info { flex: 1; min-width: 0; }
.admin-item .info .name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-item .info .meta { font-size: 0.75rem; color: var(--ink-soft); }
.admin-item .row-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.icon-btn:hover { border-color: var(--rose); background: var(--pink-pastel); }
.icon-btn.danger:hover { border-color: var(--danger); background: #fdeaea; }

.empty-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 30px 10px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
}

/* Admin gallery grid */
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.g-admin-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--pink-pastel);
}
.g-admin-item img { width: 100%; height: 100%; object-fit: cover; }
.g-admin-item .del {
  position: absolute;
  top: 6px; right: 6px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--danger);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.g-admin-item .del:hover { background: var(--danger); color: #fff; }

/* Hidden helper — used instead of [hidden] to beat display rules */
.is-hidden { display: none !important; }

/* Small toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--burgundy);
  color: #fff;
  font-size: 0.87rem;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }
