.mb-catalog-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); gap:20px; align-items:start; }
/* IMPORTANT: .button { display:inline-flex } overskriver HTML [hidden] — admin-link skal være skjult for kunder. */
#mbAdminCatalogLink[hidden],
a.button[hidden] {
  display: none !important;
}
.mb-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:14px; }
.mb-book { border:1px solid rgba(74,222,128,.32); border-radius:12px; background:#102218; overflow:hidden; text-align:left; cursor:pointer; color:inherit; padding:0; }
.mb-book:hover,.mb-book:focus-visible,.mb-book.is-selected { border-color:#4ade80; box-shadow:0 0 16px rgba(74,222,128,.42); outline:none; }
.mb-book img { display:block; width:100%; aspect-ratio:3/4; object-fit:cover; background:#1a1a1a; }
.mb-book-copy { display:block; padding:10px; }.mb-book-copy strong,.mb-book-copy small { display:block; }.mb-book-copy small { margin-top:4px; opacity:.78; }
.mb-selection-cover { width:130px; max-height:180px; object-fit:cover; border-radius:8px; float:right; margin:0 0 12px 12px; }
.mb-qty-options { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.mb-qty-option { border:1px solid rgba(74,222,128,.45); background:#16311f; color:inherit; padding:9px 12px; border-radius:8px; cursor:pointer; }
.mb-qty-option.is-selected { border-color:#4ade80; box-shadow:0 0 13px rgba(74,222,128,.62); background:#1e4a2a; }
.mb-quantity-field { display:flex; align-items:center; gap:10px; border:1px solid rgba(74,222,128,.7); background:#16311f; border-radius:9px; padding:8px 10px; color:#fff; box-shadow:0 0 10px rgba(74,222,128,.25); }
.mb-quantity-field span { font-weight:700; }
.mb-quantity-field input { width:92px; min-height:38px; margin:0; padding:6px 9px; font-size:18px; font-weight:700; text-align:center; color:#fff; background:#0c1c14; border:1px solid rgba(74,222,128,.45); border-radius:7px; box-sizing:border-box; }
.mb-quantity-field input:focus { outline:none; border-color:#4ade80; box-shadow:0 0 10px rgba(74,222,128,.65); }
.mb-package-prices { display:grid; gap:5px; margin:12px 0; padding:10px; border:1px solid rgba(74,222,128,.42); border-radius:9px; background:rgba(22,49,31,.58); }
.mb-package-prices strong { color:#bbf7d0; }.mb-package-prices span { display:flex; justify-content:space-between; gap:8px; font-size:.92em; }.mb-package-prices b { color:#fff; }
.mb-sale-note { margin:10px 0; padding:9px 10px; border:1px solid rgba(251,191,36,.72); border-radius:9px; color:#fff3b0; background:linear-gradient(120deg,rgba(146,64,14,.6),rgba(251,191,36,.2)); box-shadow:0 0 13px rgba(251,191,36,.3); }
.mb-package-prices s,.mb-price-box s { color:rgba(255,255,255,.7); margin-right:6px; }
.mb-admin-profit { display:grid; gap:5px; margin-top:14px; padding:10px; border:1px solid rgba(96,165,250,.52); border-radius:9px; background:rgba(30,58,138,.2); font-size:.9em; }
.mb-admin-profit strong { color:#bfdbfe; }.mb-admin-profit span { display:flex; justify-content:space-between; gap:8px; }
.mb-profit-positive { color:#86efac; }.mb-profit-negative { color:#fca5a5; }
.mb-quantity-modal[hidden] { display:none !important; }
.mb-quantity-modal { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:18px; }
.mb-quantity-backdrop { position:absolute; inset:0; background:rgba(2,8,5,.76); backdrop-filter:blur(5px); }
.mb-quantity-dialog { position:relative; z-index:1; width:min(340px,100%); padding:26px; border:1px solid rgba(74,222,128,.85); border-radius:18px; background:linear-gradient(145deg,#22422d,#0b1b12 58%,#061109); box-shadow:0 24px 55px rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.14), 0 0 25px rgba(74,222,128,.32); transform:perspective(800px) rotateX(2deg); text-align:center; }
.mb-quantity-dialog h3 { margin:7px 0 18px; }
.mb-quantity-dialog input { display:block; width:150px; height:72px; margin:0 auto 18px; padding:8px; border:1px solid #4ade80; border-radius:13px; color:#fff; background:#07140d; box-shadow:inset 0 3px 10px rgba(0,0,0,.5),0 0 15px rgba(74,222,128,.35); font-size:34px; font-weight:800; text-align:center; box-sizing:border-box; }
.mb-quantity-close { position:absolute; top:9px; right:11px; border:0; background:transparent; color:#fff; font-size:28px; cursor:pointer; }
.mb-price-box { clear:both; border-top:1px solid rgba(255,255,255,.14); padding-top:12px; margin-top:14px; }.mb-price-box div { display:flex; justify-content:space-between; gap:12px; padding:3px 0; }.mb-price-box .mb-total { font-size:1.1em; font-weight:700; }
.mb-preview-body { min-height:420px; display:grid; place-items:center; padding:16px; background:#111; }.mb-preview-body canvas { max-width:100%; max-height:68vh; box-shadow:0 5px 20px rgba(0,0,0,.45); }.mb-preview-nav { display:flex; justify-content:center; align-items:center; gap:16px; }
@media (max-width:780px) { .mb-catalog-layout { grid-template-columns:1fr; }.mb-selection-cover { width:96px; } .mb-preview-body { min-height:260px; } }
