:root{
  --maroon:#8c2f2a; --maroon-d:#6d2420; --maroon-l:#a8453f;
  --green:#1f5a34; --green-l:#2f7a47;
  --cream:#f7f1e6; --paper:#fffdf8; --ink:#241c18; --muted:#7a6f63;
  --line:#e6dcca; --gold:#c69a4b;
  --ok:#1f7a46; --warn:#b4701f; --bad:#b23a30; --sec:#7a3ba8;
  --radius:14px; --shadow:0 10px 30px rgba(60,40,20,.10);
  --mw:1120px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--cream); color:var(--ink);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
h1,h2,h3,.serif{font-family:Georgia,"Times New Roman",serif}
a{color:var(--maroon); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
.wrap{max-width:var(--mw); margin:0 auto; padding:0 20px}
.muted{color:var(--muted)}
.center{text-align:center}

/* ---------- demo ribbon ---------- */
.demo-ribbon{
  background:repeating-linear-gradient(45deg,#2a2320,#2a2320 14px,#332a26 14px,#332a26 28px);
  color:#f3e9d6; font-size:12.5px; letter-spacing:.3px; text-align:center; padding:7px 14px;
}
.demo-ribbon b{color:#fff}
.demo-ribbon a{color:var(--gold)}

/* ---------- top nav ---------- */
header.site{position:sticky; top:0; z-index:40; background:rgba(255,253,248,.92);
  backdrop-filter:saturate(1.3) blur(8px); border-bottom:1px solid var(--line)}
.nav{display:flex; align-items:center; gap:22px; height:70px}
.brand{display:flex; align-items:center; gap:12px; font-family:Georgia,serif; font-weight:700;
  font-size:21px; color:var(--ink)}
.brand:hover{text-decoration:none}
.brand .mark{width:40px; height:40px; border-radius:10px; flex:0 0 auto;
  background:linear-gradient(145deg,var(--maroon),var(--maroon-d)); color:#fff;
  display:grid; place-items:center; font-weight:700; box-shadow:var(--shadow)}
.brand small{display:block; font:400 11px/1 system-ui; color:var(--muted); letter-spacing:.4px; margin-top:3px}
.nav nav{display:flex; gap:20px; margin-left:8px}
.nav nav a{color:var(--ink); font-weight:500; font-size:15px}
.nav .spacer{flex:1}
.cartlink{display:inline-flex; align-items:center; gap:7px; font-weight:600; color:var(--ink);
  border:1px solid var(--line); background:var(--paper); padding:8px 14px; border-radius:999px}
.cartlink .count{background:var(--maroon); color:#fff; border-radius:999px; font-size:12px;
  min-width:20px; height:20px; display:grid; place-items:center; padding:0 5px}

/* ---------- buttons ---------- */
.btn{display:inline-flex; align-items:center; gap:8px; justify-content:center; cursor:pointer;
  border:none; border-radius:10px; padding:11px 18px; font:600 15px system-ui; text-decoration:none}
.btn:hover{text-decoration:none}
.btn-primary{background:linear-gradient(145deg,var(--maroon-l),var(--maroon)); color:#fff;
  box-shadow:0 6px 16px rgba(140,47,42,.28)}
.btn-primary:hover{background:var(--maroon-d)}
.btn-green{background:linear-gradient(145deg,var(--green-l),var(--green)); color:#fff}
.btn-ghost{background:var(--paper); color:var(--ink); border:1px solid var(--line)}
.btn-sm{padding:7px 12px; font-size:13.5px; border-radius:8px}
.btn-block{width:100%}

/* ---------- hero ---------- */
.hero{position:relative; overflow:hidden; background:
  radial-gradient(1000px 500px at 80% -10%, rgba(198,154,75,.18), transparent 60%),
  linear-gradient(160deg,#2a1512,#431d18 45%,#5c2620)}
.hero .wrap{padding:70px 20px 80px; color:#f6ebd8; position:relative; z-index:2}
.hero h1{font-size:clamp(34px,5vw,56px); margin:.2em 0 .25em; color:#fff; line-height:1.08}
.hero p.lead{font-size:clamp(16px,2vw,20px); max-width:620px; color:#ecdcc3}
.hero .eyebrow{text-transform:uppercase; letter-spacing:3px; font-size:13px; color:var(--gold); font-weight:700}
.hero .cta{display:flex; gap:14px; margin-top:28px; flex-wrap:wrap}
.hero .meatstripe{position:absolute; inset:0; opacity:.08; z-index:1;
  background:repeating-linear-gradient(135deg,#fff,#fff 2px,transparent 2px,transparent 22px)}
.hero-video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0}
.hero-scrim{position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(90deg, rgba(28,14,11,.94) 0%, rgba(40,20,16,.78) 42%, rgba(40,20,16,.42) 100%),
    linear-gradient(0deg, rgba(18,10,8,.65), rgba(18,10,8,0) 55%)}
.trust{display:flex; gap:26px; flex-wrap:wrap; margin-top:34px; color:#e7d6bd; font-size:14px}
.trust span{display:inline-flex; align-items:center; gap:8px}
.trust .dot{width:8px; height:8px; border-radius:50%; background:var(--gold)}

/* ---------- sections ---------- */
section.block{padding:58px 0}
.sec-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:26px; flex-wrap:wrap}
.sec-head h2{font-size:30px; margin:0}
.sec-head p{margin:4px 0 0; color:var(--muted)}

/* ---------- product grid ---------- */
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:22px}
.card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--shadow); transition:transform .15s, box-shadow .15s}
.card:hover{transform:translateY(-3px); box-shadow:0 16px 36px rgba(60,40,20,.16)}
.card .ph{height:150px; position:relative; display:flex; align-items:flex-end; padding:14px;
  color:#fff; font-family:Georgia,serif}
.card .ph .cat{position:absolute; top:12px; left:12px; background:rgba(0,0,0,.28); color:#fff;
  font:600 11px/1 system-ui; letter-spacing:.6px; text-transform:uppercase; padding:5px 9px; border-radius:999px}
.card .ph .wt{position:absolute; top:12px; right:12px; background:rgba(255,255,255,.9); color:var(--ink);
  font:600 11px system-ui; padding:5px 9px; border-radius:999px}
.card .ph .stripe{position:absolute; inset:0; opacity:.14;
  background:repeating-linear-gradient(115deg,#fff,#fff 3px,transparent 3px,transparent 26px)}
.card .body{padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1}
.card .body h3{margin:0; font-size:19px}
.card .body .blurb{color:var(--muted); font-size:14px; flex:1}
.card .row{display:flex; align-items:center; justify-content:space-between; margin-top:6px}
.price{font-family:Georgia,serif; font-size:22px; font-weight:700; color:var(--maroon)}
.stock-tag{font-size:12.5px; color:var(--ok); font-weight:600}
.stock-tag.low{color:var(--warn)}
.stock-tag.out{color:var(--bad)}

/* ---------- filters ---------- */
.filters{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px}
.chip{border:1px solid var(--line); background:var(--paper); color:var(--ink); padding:8px 16px;
  border-radius:999px; font-size:14px; font-weight:600}
.chip.active{background:var(--maroon); color:#fff; border-color:var(--maroon)}
.chip:hover{text-decoration:none}

/* ---------- product detail ---------- */
.pdp{display:grid; grid-template-columns:1.1fr 1fr; gap:36px; align-items:start}
.pdp .hero-img{height:320px; border-radius:var(--radius); position:relative; overflow:hidden;
  display:flex; align-items:flex-end; padding:22px; color:#fff; font-family:Georgia,serif; box-shadow:var(--shadow)}
.pdp .hero-img .stripe{position:absolute; inset:0; opacity:.13;
  background:repeating-linear-gradient(115deg,#fff,#fff 3px,transparent 3px,transparent 28px)}
.pdp h1{font-size:34px; margin:.1em 0}
.contents{list-style:none; padding:0; margin:14px 0}
.contents li{padding:9px 0; border-bottom:1px dashed var(--line); display:flex; gap:10px}
.contents li::before{content:"\2714"; color:var(--green); font-weight:700}
.qty{display:flex; align-items:center; gap:10px; margin:18px 0}
.qty input{width:70px; padding:10px; border:1px solid var(--line); border-radius:8px; font-size:16px; text-align:center}

/* ---------- cart / checkout ---------- */
.panel{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px}
.lines{width:100%; border-collapse:collapse}
.lines th{text-align:left; font:600 12px system-ui; text-transform:uppercase; letter-spacing:.5px;
  color:var(--muted); padding:10px 8px; border-bottom:2px solid var(--line)}
.lines td{padding:14px 8px; border-bottom:1px solid var(--line); vertical-align:middle}
.lines .sw{width:46px; height:46px; border-radius:9px; display:inline-block; vertical-align:middle; margin-right:10px}
.co-grid{display:grid; grid-template-columns:1.3fr .8fr; gap:28px; align-items:start}
.field{margin-bottom:15px}
.field label{display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:5px}
.field input,.field textarea,.field select{width:100%; padding:11px 13px; border:1px solid var(--line);
  border-radius:9px; font:15px system-ui; background:#fff}
.field textarea{min-height:72px; resize:vertical}
.summary .sr{display:flex; justify-content:space-between; padding:7px 0}
.summary .total{border-top:2px solid var(--line); margin-top:8px; padding-top:12px; font-weight:700; font-size:20px}
.radio-row{display:flex; gap:12px}
.radio-card{flex:1; border:1px solid var(--line); border-radius:10px; padding:12px; cursor:pointer; background:#fff}
.radio-card input{margin-right:7px}

/* ---------- confirm ---------- */
.confirm-hero{text-align:center; padding:28px; background:linear-gradient(160deg,#f0f7f0,#e3f0e6);
  border:1px solid #cfe6d3; border-radius:var(--radius)}
.check{width:64px; height:64px; border-radius:50%; background:var(--green); color:#fff;
  display:grid; place-items:center; font-size:34px; margin:0 auto 12px}

/* ---------- info / notices ---------- */
.note{background:#fff8e8; border:1px solid #ecdcb0; border-radius:10px; padding:12px 14px; color:#6d5a2a; font-size:14px}
.notice{background:#eef6f0; border:1px solid #cfe6d3; border-radius:10px; padding:12px 14px; color:#28603c; font-size:14px}

/* ---------- footer ---------- */
footer.site{background:#241c18; color:#d8cbb8; margin-top:60px}
footer.site .wrap{padding:40px 20px; display:grid; grid-template-columns:2fr 1fr 1fr; gap:30px}
footer.site h4{color:#fff; font-family:Georgia,serif; margin:0 0 10px}
footer.site a{color:#e8d9c2}
footer.site .legal{border-top:1px solid #3a2f28; text-align:center; padding:16px; font-size:13px; color:#9b8d7c}
.tcb{color:var(--gold); font-weight:600}

/* ================= ADMIN ================= */
.admin{display:flex; min-height:100vh; background:#f4efe6}
.side{width:235px; flex:0 0 auto; background:#241c18; color:#cdbfad; position:sticky; top:0; height:100vh;
  display:flex; flex-direction:column; padding:18px 0}
.side .logo{display:flex; align-items:center; gap:10px; padding:0 20px 18px; color:#fff;
  font-family:Georgia,serif; font-weight:700; border-bottom:1px solid #3a2f28; margin-bottom:12px}
.side .logo .mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(145deg,var(--maroon-l),var(--maroon));
  display:grid;place-items:center;color:#fff}
.side a.item{display:flex; align-items:center; gap:11px; padding:11px 20px; color:#cdbfad; font-weight:500; font-size:14.5px}
.side a.item:hover{background:#2f2621; color:#fff; text-decoration:none}
.side a.item.active{background:var(--maroon); color:#fff}
.side a.item .ic{width:18px; text-align:center; opacity:.9}
.side .grow{flex:1}
.side .who{padding:12px 20px; border-top:1px solid #3a2f28; font-size:13px; color:#b4a692}
.side .who b{color:#fff; display:block}
.side .role{display:inline-block; margin-top:4px; font-size:11px; background:#3a2f28; padding:2px 8px; border-radius:999px}
.main{flex:1; min-width:0; padding:26px 30px 60px}
.topbar{display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; gap:14px; flex-wrap:wrap}
.topbar h1{font-size:25px; margin:0}
.kpis{display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:16px; margin-bottom:24px}
.kpi{background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 18px; box-shadow:var(--shadow)}
.kpi .l{font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; font-weight:600}
.kpi .v{font-family:Georgia,serif; font-size:30px; font-weight:700; margin-top:6px; color:var(--ink)}
.kpi.flag .v{color:var(--warn)}
.cols{display:grid; grid-template-columns:1.4fr 1fr; gap:22px; align-items:start}
.panelc{background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); overflow:hidden}
.panelc .ph{padding:14px 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center}
.panelc .ph h3{margin:0; font-size:16px}
.panelc .pb{padding:6px 0}
table.data{width:100%; border-collapse:collapse}
table.data th{text-align:left; font:600 11.5px system-ui; text-transform:uppercase; letter-spacing:.4px;
  color:var(--muted); padding:11px 16px; border-bottom:1px solid var(--line); background:#faf6ee}
table.data td{padding:12px 16px; border-bottom:1px solid var(--line); font-size:14px; vertical-align:middle}
table.data tr:hover td{background:#faf7f0}
.badge{display:inline-block; font:600 11.5px system-ui; padding:4px 10px; border-radius:999px; white-space:nowrap}
.b-pending{background:#f2e7d0; color:#8a6412}
.b-paid{background:#dcebf7; color:#1f5a86}
.b-packing{background:#f6e6d2; color:#95571a}
.b-ready{background:#e6f1e0; color:#3a6a20}
.b-fulfilled{background:#dff0e4; color:#1f7a46}
.b-cancelled{background:#f3dcda; color:#9c322a}
.sev{display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:7px}
.sev-info{background:#9ab0c2}.sev-notice{background:var(--green-l)}.sev-warning{background:var(--warn)}.sev-security{background:var(--sec)}
tr.row-security td{background:#faf4ff}
.mono{font-family:ui-monospace,"SF Mono",Consolas,monospace; font-size:12.5px; color:#5a4f45}
.inline-form{display:flex; gap:7px; align-items:center}
.inline-form input[type=number]{width:70px; padding:7px; border:1px solid var(--line); border-radius:7px; font-size:14px}
.pillbar{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px}
.pill{border:1px solid var(--line); background:#fff; color:var(--ink); padding:6px 13px; border-radius:999px; font-size:13px; font-weight:600}
.pill.active{background:var(--ink); color:#fff; border-color:var(--ink)}
.pill:hover{text-decoration:none}

/* ---------- admin login ---------- */
.login-wrap{min-height:100vh; display:grid; place-items:center; padding:24px;
  background:radial-gradient(900px 500px at 50% -10%, rgba(198,154,75,.2), transparent 60%),
  linear-gradient(160deg,#2a1512,#431d18)}
.login-card{width:100%; max-width:400px; background:var(--paper); border-radius:16px; box-shadow:0 24px 60px rgba(0,0,0,.4); overflow:hidden}
.login-card .top{background:linear-gradient(145deg,var(--maroon-l),var(--maroon-d)); color:#fff; padding:26px; text-align:center}
.login-card .top .mark{width:52px;height:52px;border-radius:13px;background:rgba(255,255,255,.14);display:grid;place-items:center;margin:0 auto 10px;font-family:Georgia,serif;font-size:24px}
.login-card .bd{padding:26px}
.login-card .err{background:#fbe6e3; border:1px solid #e6b3ad; color:#9c322a; padding:10px 13px; border-radius:9px; font-size:14px; margin-bottom:16px}
.or-split{display:flex; align-items:center; gap:12px; margin:18px 0; color:var(--muted); font-size:13px}
.or-split::before,.or-split::after{content:""; flex:1; height:1px; background:var(--line)}
.cred-hint{margin-top:18px; background:#f6f0e4; border:1px dashed var(--gold); border-radius:10px; padding:12px 14px; font-size:13px; color:#6d5a2a}
.cred-hint b{color:var(--ink)}
.cred-hint code{background:#fff; border:1px solid var(--line); padding:1px 6px; border-radius:5px}

/* ---------- how it works ---------- */
.hiw-hero{background:linear-gradient(160deg,#241c18,#3a2a24); color:#f3e7d4; border-radius:var(--radius); padding:40px; margin-bottom:34px}
.feature-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px}
.feat{background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:20px; box-shadow:var(--shadow)}
.feat .ic{width:42px;height:42px;border-radius:10px;background:linear-gradient(145deg,var(--maroon-l),var(--maroon));color:#fff;display:grid;place-items:center;font-size:20px;margin-bottom:12px}
.feat h3{margin:.1em 0 .3em; font-size:17px}
.feat p{margin:0; color:var(--muted); font-size:14px}
.codebox{background:#241c18; color:#e8dcc8; border-radius:12px; padding:18px 20px; font-family:ui-monospace,Consolas,monospace; font-size:13px; overflow-x:auto}
.codebox .k{color:var(--gold)} .codebox .g{color:#8fbf8f}

/* ---------- responsive ---------- */
@media(max-width:860px){
  .pdp,.co-grid,.cols{grid-template-columns:1fr}
  .nav nav{display:none}
  footer.site .wrap{grid-template-columns:1fr}
  .side{position:fixed; left:0; top:0; z-index:50; transform:translateX(-100%); transition:transform .2s}
  .side.open{transform:none}
  .main{padding:18px}
  .burger{display:inline-grid !important}
}
.burger{display:none; place-items:center; width:42px;height:42px;border-radius:9px;border:1px solid var(--line);background:#fff;cursor:pointer}
