/* BoutikLink - mobile first custom styles (Tailwind CDN handles utilities) */
:root {
  --brand:#0b5ed6; --brand-dark:#0a4db0; --bg:#f7f9fc;
  --card:#ffffff; --muted:#6b7280; --danger:#dc2626;
  --success:#16a34a; --warn:#d97706; --line:#e5e7eb;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; text-size-adjust: 100%; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; background:var(--bg); color:#111827; line-height:1.5; -webkit-font-smoothing:antialiased; }
a { color: var(--brand); text-decoration:none; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  width:100%; border:0; border-radius:12px; padding:.9rem 1rem;
  font-size:1rem; font-weight:800; cursor:pointer; text-decoration:none;
  background:var(--brand); color:#fff; box-shadow:0 2px 7px rgba(11,94,214,.2);
}
.btn:active{ transform:scale(0.98); }
.btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }
.btn-secondary{ background:#f3f4f6; color:#111827; box-shadow:none; border:1px solid var(--line); }
.btn-outline{ background:transparent; color:var(--brand); box-shadow:none; border:1px solid var(--brand); }
.btn-danger{ background:var(--danger); color:#fff; box-shadow:none; border:none; width:auto; padding:.55rem .85rem; font-size:.85rem; border-radius:8px; }
.btn-success{ background:var(--success); color:#fff; box-shadow:none; border:none; width:auto; padding:.55rem .85rem; font-size:.85rem; border-radius:8px; }
.btn-sm{ padding:.6rem .85rem; font-size:.88rem; border-radius:10px; width:auto; }
.input{
  width:100%; border:1px solid #d1d5db; border-radius:10px; padding:.85rem;
  font-size:1rem; background:#fff; color:#111827;
}
.input:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 2px var(--brand); }
textarea.input{ min-height:90px; resize:vertical; }
.card{
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:1rem; margin-bottom:.9rem; box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.card-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.75rem; }
.label{ font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin-bottom:.4rem; display:block; }
.small{ font-size:.85rem; color:var(--muted); }
.muted{ color:var(--muted); }
.badge{
  display:inline-block; font-size:.7rem; font-weight:900; padding:.18rem .55rem;
  border-radius:999px; text-transform:uppercase; letter-spacing:.05em;
}
.badge-active{ background:#dcfce7; color:#166534; }
.badge-suspended{ background:#fee2e2; color:#991b1b; }
.badge-draft{ background:#e5e7eb; color:#374151; }
.badge-available{ background:#dcfce7; color:#166534; }
.badge-unavailable{ background:#fee2e2; color:#991b1b; }
.navbar{ position:sticky; top:0; z-index:40; background:#fff; border-bottom:1px solid var(--line); }
.navbar .bar{ display:flex; align-items:center; justify-content:space-between; padding:.65rem 1rem; gap:.5rem; }
.navbar .bar .brand{ font-weight:900; font-size:1.05rem; color:#111827; display:flex; align-items:center; gap:.45rem; }
.app{ max-width:560px; margin:0 auto; padding:0 0.75rem 5rem; }
.page-title{ font-size:1.15rem; font-weight:900; margin:.4rem 0 1rem; display:flex; align-items:center; gap:.5rem; }
.form-row{ margin-bottom:.85rem; }
.grid-2{ display:grid; grid-template-columns: 1fr; gap:.75rem; }
.stat{ background:var(--card); border:1px solid var(--line); border-radius:12px; padding:.85rem 1rem; text-align:center; }
.stat .v{ font-size:1.5rem; font-weight:900; color:#111827; }
.stat .l{ font-size:.78rem; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.table-wrap{ overflow:auto; border:1px solid var(--line); border-radius:12px; margin-bottom:.9rem; }
table{ width:100%; border-collapse:collapse; font-size:.9rem; }
th,td{ text-align:left; padding:.65rem .75rem; border-bottom:1px solid var(--line); }
th{ background:#f9fafb; font-weight:800; color:var(--muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
tr:last-child td{ border-bottom:none; }
.tr-actions{ display:flex; gap:.4rem; }
.empty{ text-align:center; color:var(--muted); padding:2rem 1rem; font-size:.95rem; }
.modal{ position:fixed; inset:0; z-index:60; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.45); padding:1rem; }
.modal.open{ display:flex; }
.modal .panel{ background:#fff; width:100%; max-width:460px; border-radius:16px; padding:1.2rem; box-shadow:0 10px 30px rgba(0,0,0,.18); }
.modal .close{ float:right; background:none; border:0; font-size:1.5rem; line-height:1; color:var(--muted); cursor:pointer; }
.cart-badge{ position:relative; }
.cart-badge .n{ position:absolute; top:-8px; right:-8px; background:var(--brand); color:#fff; border-radius:50%; width:20px; height:20px; font-size:.7rem; font-weight:900; display:flex; align-items:center; justify-content:center; }
@media (min-width: 480px){
  .grid-2{ grid-template-columns: 1fr 1fr; }
  .app{ padding:0 1rem 5rem; }
  .navbar .bar{ padding:.65rem 1.25rem; }
}

/* WhatsApp floating action on catalog */
.fab-wrap{ position:fixed; bottom:1rem; right:1rem; z-index:50; }
.fab{ width:56px; height:56px; border-radius:50%; background:#25d366; color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(37,211,102,.35); font-size:1.6rem; border:none; cursor:pointer; }
.fab:active{ transform:scale(0.92); }
