/* Devers PTO Storefront - Shared Styles
   Palette: primary #800b1a (burgundy)  |  gold #eab308 (accent)  |  soft rose #fdeaec  |  ink #1f2937
   Font: Mulish (Google Fonts) with system fallback
*/
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800;900&display=swap');

:root{
  /* Legacy variable names preserved for backwards compatibility — values are now burgundy */
  --navy:#800b1a;
  --navy-2:#a71425;
  --primary:#800b1a;
  --primary-2:#a71425;
  --primary-dark:#5a0712;
  --gold:#eab308;
  --gold-2:#f59e0b;
  --ink:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#faf7f7;
  --soft:#fdeaec;
  --ok:#16a34a;
  --warn:#d97706;
  --danger:#dc2626;
  --radius:14px;
  --shadow:0 6px 24px rgba(128,11,26,.10);
  --shadow-sm:0 2px 8px rgba(128,11,26,.07);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:'Mulish','Segoe UI',system-ui,-apple-system,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
a{color:var(--navy);text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4,h5{margin:0 0 .5rem;color:var(--navy);letter-spacing:-.01em}
h1{font-size:1.6rem}
h2{font-size:1.25rem}
h3{font-size:1.05rem}
p{margin:0 0 .75rem;line-height:1.55}
.container{max-width:1180px;margin:0 auto;padding:0 16px}
.container-sm{max-width:760px;margin:0 auto;padding:0 16px}

/* ------- Buttons ------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1.1rem;border-radius:999px;border:1px solid transparent;font-weight:600;cursor:pointer;font-size:.92rem;transition:all .15s ease;background:#fff;color:var(--navy);white-space:nowrap}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:var(--navy-2)}
.btn-gold{background:var(--gold);color:#111}
.btn-gold:hover{background:var(--gold-2)}
.btn-outline{background:#fff;border-color:var(--line);color:var(--navy)}
.btn-outline:hover{border-color:var(--navy);background:var(--soft)}
.btn-danger{background:#fff;border-color:#fecaca;color:var(--danger)}
.btn-danger:hover{background:#fef2f2}
.btn-ghost{background:transparent;color:var(--navy)}
.btn-ghost:hover{background:var(--soft)}
.btn-sm{padding:.4rem .7rem;font-size:.82rem}
.btn-lg{padding:.95rem 1.4rem;font-size:1rem}
.btn-block{width:100%;justify-content:center}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* ------- Chips / Tags / Filters ------- */
.chip{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .75rem;border-radius:999px;background:#fff;color:var(--navy);border:1px solid var(--line);font-size:.82rem;font-weight:600;cursor:pointer;transition:all .15s}
.chip:hover{border-color:var(--navy)}
.chip.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.tag{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .55rem;border-radius:6px;background:var(--soft);color:var(--navy);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.tag-gold{background:#fef3c7;color:#92400e}
.tag-ok{background:#dcfce7;color:#166534}
.tag-warn{background:#ffedd5;color:#9a3412}
.tag-danger{background:#fee2e2;color:#991b1b}
.tag-muted{background:#f1f5f9;color:#475569}

/* ------- Storefront header ------- */
.site-header{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%);color:#fff;padding:14px 0}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:12px;color:#fff}
.brand-logo{width:44px;height:44px;border-radius:12px;background:#fff;color:var(--primary);display:grid;place-items:center;font-weight:900;font-size:1.05rem;overflow:hidden;flex-shrink:0;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.brand-logo img{width:100%;height:100%;object-fit:contain;padding:4px}
.brand-title{font-weight:800;font-size:1.05rem;line-height:1.1}
.brand-sub{opacity:.75;font-size:.78rem}
.cart-btn{position:relative;background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.15);padding:.55rem .9rem;border-radius:999px;display:inline-flex;align-items:center;gap:.5rem;font-weight:600;cursor:pointer}
.cart-btn:hover{background:rgba(255,255,255,.18)}
.cart-count{position:absolute;top:-6px;right:-6px;background:var(--gold);color:#111;font-size:.7rem;font-weight:800;min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;padding:0 4px}

/* ------- Hero ------- */
.hero{background:linear-gradient(180deg,var(--navy-2),var(--navy));color:#fff;padding:34px 0 44px}
.hero h1{color:#fff;font-size:1.85rem;margin-bottom:.35rem}
.hero p{opacity:.85;margin:0}
.hero .announce{margin-top:16px;background:rgba(255,255,255,.08);border:1px dashed rgba(234,179,8,.5);padding:12px 14px;border-radius:12px;display:flex;gap:12px;align-items:flex-start}
.hero .announce .icon{color:var(--gold);font-size:1.1rem;margin-top:2px}

/* ------- Filters bar (sticky) ------- */
.filters{position:sticky;top:0;z-index:20;background:rgba(247,249,252,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);padding:12px 0}
.filters .row{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.filters .row::-webkit-scrollbar{display:none}

/* ------- Product grid ------- */
.grid{display:grid;gap:16px}
.grid-products{grid-template-columns:repeat(auto-fill,minmax(370px,1fr))}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:all .18s;box-shadow:var(--shadow-sm)}
.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.card .thumb{position:relative;aspect-ratio:4/3;background:var(--soft);display:grid;place-items:center;color:var(--navy);font-size:2.4rem;overflow:hidden}
.card .thumb .badge{position:absolute;top:10px;left:10px;background:var(--gold);color:#111;padding:.25rem .5rem;border-radius:6px;font-size:.7rem;font-weight:800;text-transform:uppercase}
.card .thumb .status{position:absolute;top:10px;right:10px}
.card .body{padding:14px;display:flex;flex-direction:column;gap:8px;flex:1}
.card .title{font-weight:700;color:var(--navy)}
.card .desc{font-size:.85rem;color:var(--muted);line-height:1.45;min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .price{font-weight:800;color:var(--navy);font-size:1.05rem}
.card .foot{margin-top:auto;display:flex;gap:8px;align-items:center;justify-content:space-between}
.featured-band{background:linear-gradient(135deg,#fef3c7,#fde68a);border:1px solid #f59e0b33;padding:14px;border-radius:var(--radius);margin-bottom:16px;display:flex;gap:12px;align-items:center}
.featured-band i{color:#92400e}

/* ------- Footer ------- */
.site-footer{background:var(--navy);color:#cbd5e1;margin-top:60px;padding:30px 0 22px}
.site-footer a{color:#e2e8f0}
.site-footer .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:22px}
.site-footer h4{color:#fff;margin-bottom:.5rem}
.social{display:flex;gap:10px;margin-top:8px}
.social a{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.08);display:grid;place-items:center;color:#fff}
.site-footer .copy{border-top:1px solid rgba(255,255,255,.08);margin-top:22px;padding-top:14px;font-size:.82rem;opacity:.7;text-align:center}

/* ------- Forms ------- */
.form-row{margin-bottom:14px}
.form-row label{display:block;font-weight:600;font-size:.85rem;margin-bottom:6px;color:var(--navy)}
.form-row label .req{color:var(--danger)}
.input,.select,.textarea{width:100%;padding:.75rem .9rem;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;color:var(--ink);transition:all .15s}
.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(11,37,69,.1)}
.textarea{min-height:110px;resize:vertical}
.help{color:var(--muted);font-size:.78rem;margin-top:4px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
@media (max-width:640px){.grid-2,.grid-3{grid-template-columns:1fr}}

/* ------- Cart / Line items ------- */
.line{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.line:last-child{border-bottom:0}
.line .thumb{width:80px;height:80px;border-radius:10px;background:var(--soft);display:grid;place-items:center;flex-shrink:0;color:var(--navy);font-size:1.6rem}
.line .info{flex:1;min-width:0}
.line .opts{color:var(--muted);font-size:.8rem;margin-top:2px}
/* ------- Quantity stepper (universal) ------- */
.qty{
  display:inline-flex;align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
  transition:border-color .15s ease, box-shadow .15s ease;
  user-select:none;
  width:fit-content;
}
.qty:hover{border-color:var(--primary);box-shadow:0 2px 6px rgba(128,11,26,.08)}
.qty:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(128,11,26,.12)}
.qty button{
  background:transparent;border:0;cursor:pointer;
  width:36px;height:36px;
  color:var(--primary);font-weight:800;font-size:1.1rem;line-height:1;
  display:grid;place-items:center;
  transition:background .15s ease, color .15s ease, transform .08s ease;
  padding:0;
  font-family:inherit;
}
.qty button:hover{background:var(--soft)}
.qty button:active{transform:scale(.92);background:#fdd4d9}
.qty button[disabled]{opacity:.35;cursor:not-allowed;color:var(--muted)}
.qty button[disabled]:hover{background:transparent}
.qty button[data-qty="-"]{border-radius:999px 0 0 999px}
.qty button[data-qty="+"]{border-radius:0 999px 999px 0}
.qty > span,
.qty > input[type="number"]{
  min-width:40px;
  text-align:center;
  font-weight:700;
  font-size:.95rem;
  color:var(--primary);
  padding:0 6px;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
  background:#fafafa;
  line-height:36px;
  height:36px;
  box-sizing:border-box;
}
.qty > input[type="number"]{
  border-top:0;border-bottom:0;outline:none;
  width:60px;
  -moz-appearance:textfield;
  appearance:textfield;
}
.qty > input[type="number"]::-webkit-inner-spin-button,
.qty > input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.qty > input[type="number"]:focus{background:#fff;color:var(--primary)}

/* Compact variant for dense tables */
.qty.qty-sm button{width:28px;height:28px;font-size:.95rem}
.qty.qty-sm > span,
.qty.qty-sm > input[type="number"]{min-width:30px;height:28px;line-height:28px;font-size:.85rem}
.qty.qty-sm > input[type="number"]{width:48px}

/* Large variant for primary CTAs */
.qty.qty-lg button{width:44px;height:44px;font-size:1.3rem}
.qty.qty-lg > span,
.qty.qty-lg > input[type="number"]{min-width:52px;height:44px;line-height:44px;font-size:1.05rem}

/* Inside a cart .line row, keep the stepper tight */
.line .qty{box-shadow:none}
.line .qty button{width:30px;height:30px;font-size:1rem}
.line .qty > span,
.line .qty > input[type="number"]{min-width:34px;height:30px;line-height:30px;font-size:.88rem}
.summary{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;position:sticky;top:80px}
.summary .row{display:flex;justify-content:space-between;padding:6px 0;font-size:.92rem;color:var(--muted)}
.summary .row.total{color:var(--navy);font-size:1.15rem;font-weight:800;border-top:1px solid var(--line);padding-top:12px;margin-top:6px}

/* ------- Steps ------- */
.steps{display:flex;align-items:center;gap:8px;margin:0 0 22px}
.step{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.85rem}
.step .num{width:24px;height:24px;border-radius:999px;background:#e5e7eb;color:var(--muted);display:grid;place-items:center;font-weight:700;font-size:.75rem}
.step.active .num{background:var(--navy);color:#fff}
.step.done .num{background:var(--ok);color:#fff}
.step .bar{width:22px;height:2px;background:var(--line)}
.step.done .bar{background:var(--ok)}

/* ------- Admin layout ------- */
.admin{display:grid;grid-template-columns:260px 1fr;min-height:100vh}
.sidebar{background:var(--navy);color:#fff;padding:18px 12px;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;transition:scrollbar-color .2s ease}
.sidebar::-webkit-scrollbar{width:0;background:transparent}
.sidebar:hover{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.35) transparent}
.sidebar:hover::-webkit-scrollbar{width:6px}
.sidebar:hover::-webkit-scrollbar-track{background:transparent}
.sidebar:hover::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border-radius:999px}
.sidebar:hover::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.5)}
.sidebar .brand{margin:0 6px 20px}
.sidebar .brand-title{color:#fff}
.side-section{margin:10px 0}
.side-section .lbl{color:rgba(255,255,255,.65);font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;padding:8px 10px}
.side-link{display:flex;align-items:center;gap:10px;padding:.6rem .8rem;border-radius:10px;color:#fff;font-weight:500;font-size:.9rem;margin:2px 0}
.side-link i{width:18px;text-align:center;color:#fff}
.side-link:hover{background:rgba(255,255,255,.08);color:#fff}
.side-link.active{background:rgba(234,179,8,.18);color:#fff}
.side-link.active i{color:var(--gold)}
.admin-main{background:var(--bg);padding:22px 24px 60px;min-width:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.topbar h1{margin:0;font-size:1.35rem}
.topbar .search{flex:1;max-width:420px;position:relative}
.topbar .search input{padding-left:38px}
.topbar .search i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted)}
.user-pill{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);padding:6px 10px 6px 6px;border-radius:999px}
.avatar{width:32px;height:32px;border-radius:999px;background:var(--gold);color:#111;display:grid;place-items:center;font-weight:800;font-size:.8rem}

/* Stat cards */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow-sm)}
.stat .lbl{color:var(--muted);font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.stat .val{font-size:1.6rem;font-weight:800;color:var(--navy)}
.stat .delta{font-size:.78rem;color:var(--ok);margin-top:4px;font-weight:600}
.stat .delta.down{color:var(--danger)}
.stat .icon{float:right;width:38px;height:38px;border-radius:10px;background:var(--soft);color:var(--navy);display:grid;place-items:center}

/* Panels */
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);margin-bottom:18px}
.panel .panel-head{padding:14px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.panel .panel-head h2{margin:0;font-size:1.05rem}
.panel .panel-body{padding:16px 18px}
.panel .panel-body.tight{padding:0}

/* Table */
.table{width:100%;border-collapse:collapse;font-size:.9rem}
.table th,.table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:#fafbfc;font-weight:700}
.table tbody tr:hover{background:#fafbfc}
.table .actions{display:flex;gap:6px}
.table a{color:var(--navy);font-weight:600}
.table-wrap{overflow-x:auto}

/* Filter row above tables */
.filter-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 18px;background:#fafbfc;border-bottom:1px solid var(--line)}
.filter-row .input,.filter-row .select{padding:.5rem .7rem;font-size:.85rem}

/* Toggle */
.switch{position:relative;display:inline-block;width:42px;height:24px}
.switch input{display:none}
.switch .slider{position:absolute;inset:0;background:#cbd5e1;border-radius:999px;cursor:pointer;transition:.2s}
.switch .slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;top:3px;background:#fff;border-radius:999px;transition:.2s}
.switch input:checked + .slider{background:var(--ok)}
.switch input:checked + .slider:before{transform:translateX(18px)}

/* Login card */
.auth-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,var(--navy),var(--navy-2));padding:20px}
.auth-card{background:#fff;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:32px;width:100%;max-width:420px}
.auth-card h1{text-align:center;margin-bottom:6px}
.auth-card .sub{text-align:center;color:var(--muted);margin-bottom:22px}

/* Utilities */
.mb-0{margin-bottom:0!important}
.mb-1{margin-bottom:6px}.mb-2{margin-bottom:12px}.mb-3{margin-bottom:18px}.mb-4{margin-bottom:24px}
.mt-2{margin-top:12px}.mt-3{margin-top:18px}.mt-4{margin-top:24px}
.text-muted{color:var(--muted)}
.text-right{text-align:right}
.text-center{text-align:center}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-3{gap:12px}
.hidden{display:none!important}
.pill{display:inline-flex;align-items:center;gap:6px;padding:.28rem .6rem;background:var(--soft);border-radius:999px;font-size:.78rem;font-weight:600;color:var(--navy)}
.divider{height:1px;background:var(--line);margin:14px 0}
.kbd{padding:2px 6px;background:#f1f5f9;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;font-size:.75rem;font-family:ui-monospace,monospace}

/* Two-col layout (checkout, cart) */
.two-col{display:grid;grid-template-columns:1.4fr .9fr;gap:22px}
@media (max-width:900px){.two-col{grid-template-columns:1fr}.summary{position:static}}

/* Mobile admin */
@media (max-width:900px){
  .admin{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto;display:none}
  .sidebar.open{display:block;position:fixed;inset:0;z-index:50;height:100vh}
  .mobile-topbar{display:flex!important}
}
.mobile-topbar{display:none;align-items:center;justify-content:space-between;background:var(--navy);color:#fff;padding:12px 16px;position:sticky;top:0;z-index:30}
.mobile-topbar .brand-title{color:#fff}

/* Rich-text content (admin-authored HTML from Quill editor) */
.prose{color:var(--ink);font-size:.98rem}
.prose > *:first-child{margin-top:0}
.prose > *:last-child{margin-bottom:0}
.prose h2{font-size:1.3rem;margin:1.1em 0 .4em;color:var(--navy)}
.prose h3{font-size:1.1rem;margin:1em 0 .4em;color:var(--navy)}
.prose p{margin:.6em 0;line-height:1.65}
.prose ul,.prose ol{margin:.6em 0;padding-left:1.4em}
.prose li{margin:.25em 0;line-height:1.55}
.prose a{color:var(--primary);text-decoration:underline}
.prose a:hover{color:var(--primary-dark)}
.prose strong{font-weight:700;color:var(--navy)}
.prose blockquote{margin:.8em 0;padding:.6em 1em;border-left:3px solid var(--primary);background:var(--soft);color:var(--ink);border-radius:0 10px 10px 0}
.prose code{background:#f3f4f6;padding:.1em .35em;border-radius:4px;font-size:.92em}

/* Modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(11,37,69,.55);backdrop-filter:blur(3px);z-index:60;display:none;align-items:center;justify-content:center;padding:20px}
.modal-backdrop.open{display:flex}
.modal{background:#fff;border-radius:16px;width:100%;max-width:520px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden;max-height:90vh;display:flex;flex-direction:column}
.modal .modal-head{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.modal .modal-body{padding:18px;overflow-y:auto}
.modal .modal-foot{padding:14px 18px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#fafbfc}

/* Notice / callouts */
.notice{padding:12px 14px;border-radius:12px;background:#fef3c7;border:1px solid #fde68a;color:#78350f;display:flex;gap:10px;align-items:flex-start;font-size:.9rem}
.notice.info{background:#dbeafe;border-color:#bfdbfe;color:#1e3a8a}
.notice.ok{background:#dcfce7;border-color:#bbf7d0;color:#14532d}

/* Ticket numbers list */
.tickets{display:flex;flex-wrap:wrap;gap:8px}
.ticket{padding:.4rem .7rem;background:var(--soft);color:var(--navy);border:1px dashed #93c5fd;border-radius:8px;font-family:ui-monospace,monospace;font-weight:700;font-size:.88rem}
