/* ============================================================
   MOCA-E-MIELE — app.css
   Extends the base design: cart, modal, gallery filters,
   lightbox, checkout, success page, admin panel, toasts.
   ============================================================ */

/* ---------- Navbar cart ---------- */
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(246, 241, 231, 0.35);
  font-size: 1.15rem; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.cart-link:hover { border-color: var(--gold); background: rgba(200, 155, 75, 0.12); transform: translateY(-2px); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .cart-link { margin-left: auto; }
}

/* ---------- Menu item clickable ---------- */
.menu-item-clickable { cursor: pointer; border-radius: 10px; padding: 4px 6px; margin: -4px -6px; transition: background 0.3s; }
.menu-item-clickable:hover { background: rgba(200, 155, 75, 0.08); }
.menu-item-clickable:hover h4 { color: var(--gold-light); }
.menu-item-clickable h4 { transition: color 0.3s; }
.menu-item-clickable::after {
  content: "View details ↗"; display: block;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); opacity: 0; transform: translateY(4px);
  transition: 0.35s var(--ease); margin-top: 4px;
}
.menu-item-clickable:hover::after { opacity: 0.9; transform: none; }

.htmx-request { opacity: 0.55; transition: opacity 0.2s; }

/* ---------- Gallery filters ---------- */
.gallery-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.gallery-filter {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.05em; padding: 10px 22px; border-radius: 999px;
  background: transparent; color: var(--muted);
  border: 1.5px solid rgba(25, 23, 20, 0.18); cursor: pointer;
  transition: all 0.35s var(--ease);
}
.gallery-filter:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.gallery-filter.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(12, 10, 7, 0.94); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; animation: fadeIn 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(920px, 92vw); max-height: 78vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-caption { color: var(--gold-light); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin-top: 18px; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; background: none; border: 0;
  color: var(--cream); font-size: 1.6rem; cursor: pointer; opacity: 0.8; transition: opacity 0.3s, transform 0.3s;
}
.lightbox-close:hover { opacity: 1; transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Item modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(12, 10, 7, 0.82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn 0.3s var(--ease);
}
.modal-card {
  position: relative; width: min(880px, 96vw); max-height: 90vh; overflow: auto;
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr;
  animation: modalUp 0.45s var(--ease);
}
@keyframes modalUp { from { opacity: 0; transform: translateY(36px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(25, 23, 20, 0.75); color: var(--cream); font-size: 1rem;
  transition: background 0.3s, transform 0.3s;
}
.modal-close:hover { background: var(--ink); transform: rotate(90deg); }

.modal-media { background: var(--ink); position: relative; }
.modal-main-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.modal-thumbs { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.modal-thumb { width: 52px; height: 52px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; opacity: 0.75; transition: 0.3s; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb.active, .modal-thumb:hover { border-color: var(--gold); opacity: 1; }

/* ---------- Modal title placeholder (no image) ---------- */
.modal-title-placeholder {
  width: 100%; height: 100%; min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 30px; text-align: center;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink-3) 100%);
  position: relative; overflow: hidden;
}
.modal-title-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 155, 75, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(180, 99, 58, 0.06), transparent 50%);
  pointer-events: none;
}
.mtp-ornament {
  font-size: 1.4rem; color: var(--gold); opacity: 0.7;
  animation: mtpPulse 3s ease-in-out infinite;
}
.mtp-ornament:last-child { animation-delay: 1.5s; }
@keyframes mtpPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.mtp-title {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 600;
  color: var(--cream); margin: 16px 0 0; line-height: 1.2;
  text-shadow: 0 2px 20px rgba(200, 155, 75, 0.3);
}
.mtp-line {
  width: 60px; height: 2px; margin: 18px 0 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.mtp-subtitle {
  font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-light); opacity: 0.8;
}

.modal-body { padding: 34px 32px; }
.modal-cat { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.modal-title { font-size: 1.9rem; margin: 6px 0 2px; }
.modal-price { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--terracotta); margin-bottom: 14px; }
.modal-desc { color: #5c554b; font-size: 0.98rem; }
.modal-ingredients { margin-top: 18px; background: var(--cream-2); border-radius: 12px; padding: 14px 16px; }
.modal-ingredients h5 { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; font-family: var(--font-body); }
.modal-ingredients p { font-size: 0.92rem; color: #5c554b; margin: 0; }

.modal-add { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.qty-picker {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--cream-2); border-radius: 999px; padding: 4px;
}
.qty-picker button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--ink); font-size: 1.15rem; line-height: 1;
  transition: background 0.25s;
}
.qty-picker button:hover { background: rgba(200, 155, 75, 0.25); }
.qty-picker input {
  width: 44px; text-align: center; border: 0; background: transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.qty-picker input::-webkit-outer-spin-button, .qty-picker input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 720px) {
  .modal-card { grid-template-columns: 1fr; }
  .modal-main-img { max-height: 280px; }
  .modal-title-placeholder { min-height: 220px; }
  .mtp-title { font-size: 1.7rem; }
}

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast-msg {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream);
  border: 1px solid rgba(200, 155, 75, 0.5);
  padding: 13px 26px; border-radius: 999px;
  font-size: 0.92rem; letter-spacing: 0.04em;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s var(--ease), toastOut 0.4s var(--ease) 2.4s forwards;
}
.toast-icon {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); font-size: 0.75rem; font-weight: 700;
}
.toast-err { border-color: #d9534f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }

/* ---------- Checkout ---------- */
.checkout-page { padding-top: 130px; }
.checkout-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

.checkout-cart {
  background: var(--ink-2); border: 1px solid rgba(246, 241, 231, 0.1);
  border-radius: var(--radius); padding: 28px;
}
.cart-empty { color: var(--muted-dark); text-align: center; padding: 30px 0; }
.link-gold { color: var(--gold-light); border-bottom: 1px dotted var(--gold-light); }

.cart-row {
  display: grid; grid-template-columns: 62px 1fr auto auto 30px;
  gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(246, 241, 231, 0.08);
}
.cart-row-img { width: 62px; height: 62px; object-fit: cover; border-radius: 12px; }
.cart-row-info h4 { font-size: 1.02rem; }
.cart-row-price { font-size: 0.82rem; color: var(--muted-dark); margin-top: 2px; }
.cart-row-line { font-family: var(--font-display); font-style: italic; color: var(--gold-light); white-space: nowrap; }
.cart-row-remove {
  background: none; border: 0; color: var(--muted-dark); font-size: 1rem; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; transition: 0.3s;
}
.cart-row-remove:hover { color: #e07a5f; background: rgba(224, 122, 95, 0.12); }

/* ---------- Mobile: reflow cart rows so nothing overflows ---------- */
@media (max-width: 640px) {
  .checkout-cart { padding: 18px; }
  .cart-row {
    grid-template-columns: 54px 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty   line";
    gap: 10px 12px;
  }
  .cart-row-img { grid-area: img; width: 54px; height: 54px; }
  .cart-row-info { grid-area: info; min-width: 0; }
  .cart-row-info h4 { font-size: 0.95rem; }
  .cart-row-remove { grid-area: remove; }
  .cart-row .qty-picker { grid-area: qty; justify-self: start; }
  .cart-row-line { grid-area: line; justify-self: end; }
}

.qty-picker-sm button { width: 28px; height: 28px; font-size: 1rem; color: var(--cream); }
.qty-picker-sm { background: rgba(246, 241, 231, 0.08); }
.qty-picker-sm input { color: var(--cream); width: 36px; }

.cart-totals { margin-top: 22px; display: grid; gap: 8px; }
.cart-total-line { display: flex; justify-content: space-between; color: var(--muted-dark); font-size: 0.98rem; }
.cart-total-grand {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--cream);
  border-top: 1.5px dotted rgba(246, 241, 231, 0.25); padding-top: 14px; margin-top: 6px;
}
.cart-total-grand span:last-child { color: var(--gold-light); font-style: italic; }
.cart-total-note { font-size: 0.8rem; color: var(--muted); text-align: right; }

.checkout-form {
  background: var(--ink-2); border: 1px solid rgba(246, 241, 231, 0.1);
  border-radius: var(--radius); padding: 28px;
}
.checkout-form h3 { color: var(--gold-light); margin-bottom: 20px; font-size: 1.4rem; }
.field { display: block; margin-bottom: 18px; }
.field > span {
  display: block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 8px;
}
.field em { color: var(--gold); font-style: normal; }
.field small { letter-spacing: 0.05em; text-transform: none; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid rgba(246, 241, 231, 0.18);
  background: rgba(246, 241, 231, 0.05); color: var(--cream);
  font-family: var(--font-body); font-size: 0.98rem;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(246, 241, 231, 0.08); }
.field textarea { resize: vertical; }

.btn-loc { padding: 11px 20px; font-size: 0.8rem; width: 100%; }
.loc-status { font-size: 0.85rem; margin-top: 10px; color: var(--muted-dark); min-height: 1.2em; }
.loc-status.ok { color: #9ec49a; }
.loc-status.ok a { color: #9ec49a; border-bottom: 1px dotted #9ec49a; }
.loc-status.err { color: #e07a5f; }

.btn-checkout-submit { width: 100%; padding: 16px; font-size: 1rem; margin-top: 6px; }
.btn-checkout-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.checkout-note { font-size: 0.85rem; color: var(--muted-dark); text-align: center; margin-top: 16px; }
.checkout-note a { color: var(--gold-light); border-bottom: 1px dotted var(--gold-light); }

.checkout-errors {
  max-width: 640px; margin: 0 auto 30px; padding: 16px 22px;
  border-radius: 12px; background: rgba(224, 122, 95, 0.12);
  border: 1px solid rgba(224, 122, 95, 0.5); color: #e8a390;
}
.checkout-errors p { margin: 4px 0; font-size: 0.95rem; }

/* ---------- Order success ---------- */
.success-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.success-stamp {
  width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.4rem;
  background: rgba(200, 155, 75, 0.14); border: 2px solid var(--gold);
  animation: modalUp 0.6s var(--ease);
}
.success-card {
  margin: 30px 0; background: var(--ink-2); border: 1px solid rgba(246, 241, 231, 0.12);
  border-radius: var(--radius); padding: 26px; text-align: left;
}
.success-line { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted-dark); font-size: 0.96rem; }
.success-total {
  border-top: 1.5px dotted rgba(246, 241, 231, 0.25); margin-top: 10px; padding-top: 14px;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--cream);
}
.success-total span:last-child { color: var(--gold-light); font-style: italic; }
.success-meta { border-top: 1px solid rgba(246, 241, 231, 0.1); margin-top: 14px; padding-top: 14px; }
.success-meta p { color: var(--muted-dark); font-size: 0.92rem; margin: 6px 0; }
.success-meta a { color: var(--gold-light); border-bottom: 1px dotted var(--gold-light); }

.btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.5);
  font-size: 1rem; padding: 16px 34px;
}
.btn-wa:hover { box-shadow: 0 18px 36px -10px rgba(37, 211, 102, 0.65); color: #fff; }

.success-preview { margin: 26px auto 0; max-width: 480px; text-align: left; }
.success-preview summary { cursor: pointer; color: var(--muted-dark); font-size: 0.88rem; border-bottom: 1px dotted var(--muted-dark); display: inline-block; }
.success-preview pre {
  margin-top: 12px; padding: 18px; border-radius: 12px;
  background: var(--ink-2); border: 1px solid rgba(246, 241, 231, 0.1);
  color: var(--muted-dark); font-size: 0.8rem; white-space: pre-wrap; word-break: break-word;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-shell { min-height: 100svh; background: var(--cream); }
.admin-topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--cream);
  padding: 14px 0; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.admin-topbar-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.admin-brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(246, 241, 231, 0.7); }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 8px; }
.admin-nav a {
  padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  color: var(--muted-dark); letter-spacing: 0.04em; transition: 0.3s;
}
.admin-nav a:hover { color: var(--cream); background: rgba(246, 241, 231, 0.08); }
.admin-nav a.active { background: var(--gold); color: var(--ink); }
.admin-topbar .spacer { margin-left: auto; }
.admin-user { font-size: 0.85rem; color: var(--muted-dark); }
.admin-logout {
  background: none; border: 1px solid rgba(246, 241, 231, 0.3); color: var(--cream);
  padding: 8px 18px; border-radius: 999px; font-family: var(--font-body); font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: 0.3s;
}
.admin-logout:hover { border-color: #e07a5f; color: #e07a5f; }

.admin-main { width: min(1100px, 94%); margin: 0 auto; padding: 40px 0 80px; }
.admin-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { font-size: 2rem; }
.admin-head .spacer { margin-left: auto; }

.admin-flash {
  background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.5);
  color: #1d7a45; padding: 12px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 0.95rem;
}

/* login */
.admin-login-wrap { min-height: 100svh; display: grid; place-items: center; background: var(--ink); padding: 20px; }
.admin-login {
  width: min(420px, 94vw); background: var(--ink-2);
  border: 1px solid rgba(246, 241, 231, 0.12); border-radius: var(--radius);
  padding: 40px 34px; text-align: center;
}
.admin-login img { width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(246, 241, 231, 0.7); margin: 0 auto 14px; }
.admin-login h1 { color: var(--cream); font-size: 1.6rem; margin-bottom: 4px; }
.admin-login .sub { color: var(--muted-dark); font-size: 0.9rem; margin-bottom: 26px; }
.admin-login .field { text-align: left; }
.admin-login-error { background: rgba(224, 122, 95, 0.12); border: 1px solid rgba(224, 122, 95, 0.5); color: #e8a390; padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 18px; }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 34px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff; border-radius: 14px; padding: 22px;
  border: 1px solid rgba(25, 23, 20, 0.07); box-shadow: var(--shadow-sm);
}
.stat-card .num { font-family: var(--font-display); font-size: 2rem; color: var(--ink); }
.stat-card .lbl { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* tables */
.admin-card {
  background: #fff; border-radius: var(--radius); border: 1px solid rgba(25, 23, 20, 0.07);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 30px;
}
.admin-card-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid rgba(25, 23, 20, 0.08);
}
.admin-card-head h2 { font-size: 1.25rem; }
.admin-card-head .spacer { margin-left: auto; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.admin-table th {
  text-align: left; padding: 12px 16px; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid rgba(25, 23, 20, 0.08);
  font-family: var(--font-body); font-weight: 600;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid rgba(25, 23, 20, 0.05); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(200, 155, 75, 0.05); }
.tbl-img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.tbl-title { font-weight: 600; }
.tbl-sub { font-size: 0.8rem; color: var(--muted); }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.badge-new { background: rgba(200, 155, 75, 0.18); color: #9a742c; }
.badge-confirmed { background: rgba(70, 130, 180, 0.15); color: #33608a; }
.badge-completed { background: rgba(76, 175, 80, 0.15); color: #2e7d32; }
.badge-cancelled { background: rgba(224, 122, 95, 0.15); color: #a34a2f; }
.badge-featured { background: rgba(200, 155, 75, 0.2); color: #8a6524; }
.badge-off { background: rgba(25, 23, 20, 0.08); color: var(--muted); }

/* buttons */
.btn-sm { padding: 9px 18px; font-size: 0.78rem; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-3); color: var(--cream); }
.btn-danger { background: transparent; border-color: #d9534f; color: #d9534f; }
.btn-danger:hover { background: #d9534f; color: #fff; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid rgba(25, 23, 20, 0.15); background: #fff;
  cursor: pointer; font-size: 0.85rem; transition: 0.25s; text-decoration: none; color: var(--ink);
}
.icon-btn:hover { border-color: var(--gold); background: rgba(200, 155, 75, 0.1); }
.icon-btn.danger:hover { border-color: #d9534f; background: rgba(217, 83, 79, 0.08); color: #d9534f; }

/* forms */
.admin-form { display: grid; gap: 18px; }
.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .admin-form .row2 { grid-template-columns: 1fr; } }
.a-field label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.a-field input[type="text"], .a-field input[type="number"], .a-field input[type="email"],
.a-field input[type="password"], .a-field select, .a-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid rgba(25, 23, 20, 0.15); background: #fff;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.3s;
}
.a-field input:focus, .a-field select:focus, .a-field textarea:focus { outline: none; border-color: var(--gold); }
.a-field textarea { resize: vertical; }
.a-check { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.a-check input { width: 18px; height: 18px; accent-color: var(--gold); }

/* image upload chips */
.img-chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.img-chip { position: relative; width: 90px; height: 90px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(25, 23, 20, 0.1); }
.img-chip img { width: 100%; height: 100%; object-fit: cover; }
.img-chip button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; border: 0; background: rgba(25, 23, 20, 0.8); color: #fff;
  font-size: 0.65rem; cursor: pointer;
}

/* gallery admin grid */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; padding: 20px; }
.gal-cell { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(25, 23, 20, 0.08); }
.gal-cell img { width: 100%; height: 160px; object-fit: cover; }
.gal-cell-meta { padding: 10px 12px; background: #fff; }
.gal-cell-meta .cap { font-size: 0.88rem; font-weight: 600; }
.gal-cell-meta .cat { font-size: 0.75rem; color: var(--muted); }
.gal-cell-actions { display: flex; gap: 8px; margin-top: 8px; }

/* inline add-category forms */
.inline-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-add input[type="text"] {
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid rgba(25, 23, 20, 0.15);
  font-family: var(--font-body); font-size: 0.88rem;
}
.inline-add input:focus { outline: none; border-color: var(--gold); }

.admin-foot { text-align: center; padding: 26px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid rgba(25, 23, 20, 0.08); }
.admin-foot a { color: var(--terracotta); border-bottom: 1px dotted var(--terracotta); }

.order-items-cell { font-size: 0.85rem; color: var(--muted); }
.order-items-cell b { color: var(--ink); }

@media (max-width: 700px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 1px solid rgba(25, 23, 20, 0.1); padding: 10px 0; }
  .admin-table td { border: 0; padding: 6px 16px; }
}
