/* =========================================================
   Orleno — styles for the feature modules
   (features-shop.js / features-admin.js)
   ========================================================= */
body.lock{overflow:hidden}
.nav a{white-space:nowrap}

/* ---------- top bar extras ---------- */
.topbar{align-items:center}
.tb-link{color:#fff;text-decoration:none;opacity:.92}
.tb-link:hover{opacity:1;text-decoration:underline}
.tb-lang{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:3px 12px;font-size:12.5px;font-weight:600}
.tb-lang:hover{background:rgba(255,255,255,.18)}

/* ---------- search suggestions ---------- */
.sbox{position:relative}
.sugg{position:absolute;top:calc(100% + 8px);right:0;width:min(380px,90vw);background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-lg);padding:8px;z-index:40;display:flex;flex-direction:column}
.sugg[hidden]{display:none}
@media (max-width:1180px){.sugg{left:0;right:auto}}
.sugg a{display:flex;align-items:center;gap:12px;padding:8px;border-radius:10px;text-decoration:none}
.sugg a:hover,.sugg a:focus{background:var(--sand);outline:none}
.sugg img{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:none}
.sugg span{display:flex;flex-direction:column;flex:1;min-width:0;font-size:14px}
.sugg span b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.sugg small{color:var(--muted);font-size:12px}
.sugg em{font-style:normal;font-weight:700;font-size:13.5px;white-space:nowrap}
.sugg-all{border:0;background:none;color:var(--teal);font-weight:600;font-size:13.5px;padding:10px 8px 6px;text-align:left;border-top:1px solid var(--line);margin-top:4px}
.sugg-none{padding:14px;color:var(--muted);font-size:14px}

/* ---------- wishlist hearts ---------- */
.wish{position:absolute;top:10px;right:10px;z-index:2;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;color:var(--ink);box-shadow:var(--sh-sm)}
.wish svg{width:19px;height:19px}
.wish:hover{transform:scale(1.08);color:var(--coral)}
.wish.on{color:var(--coral)}
.wish-big{height:50px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:#fff;display:inline-flex;align-items:center;gap:8px;font-weight:600;box-shadow:var(--sh-xs)}
.wish-big:hover{border-color:var(--coral);color:var(--coral)}
.wish-big.on{color:var(--coral);border-color:#F5C2C3;background:#FFF5F5}

/* ---------- empty states ---------- */
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:56px 24px;border:1px dashed var(--line);border-radius:var(--r-lg);background:var(--sand);color:var(--muted)}
.empty-state svg{width:44px;height:44px;color:var(--teal);opacity:.6}
.empty-state h2,.empty-state h3{margin:4px 0 0;color:var(--ink);font-size:22px}
.empty-state p{margin:0 0 8px;max-width:420px}
.empty-state.small{padding:40px 16px;border:0;background:none}
.empty-state.small h3{font-size:18px}

/* ---------- cart drawer & modal ---------- */
.dr-back{position:fixed;inset:0;background:rgba(10,16,35,.45);backdrop-filter:blur(2px);z-index:70;animation:fadeIn .2s}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(440px,100vw);background:#fff;z-index:71;display:flex;flex-direction:column;box-shadow:-20px 0 60px rgba(10,16,35,.2);animation:slideIn .28s var(--ease)}
.dr-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}
.dr-head h2{margin:0;font-size:20px;display:flex;align-items:center;gap:10px}
.dr-head h2 span{background:var(--mint);color:var(--teal);font-size:13px;border-radius:999px;padding:2px 10px}
.dr-x{width:40px;height:40px;border-radius:50%;border:0;background:var(--sand);font-size:15px}
.dr-x:hover{background:var(--mint)}
.dr-ship{padding:14px 24px;font-size:13.5px;display:flex;flex-direction:column;gap:8px;background:#FBFCFE;border-bottom:1px solid var(--line)}
.dr-ship i{display:block;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.dr-ship i b{display:block;height:100%;background:linear-gradient(90deg,var(--teal),#3B5BCC);border-radius:3px;transition:width .4s var(--ease)}
.dr-body{flex:1;overflow-y:auto;padding:8px 24px}
.dr-line{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.dr-line img{width:76px;height:76px;border-radius:12px;object-fit:cover;flex:none}
.dr-t{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0;font-size:14px}
.dr-t a{font-weight:600;text-decoration:none}
.dr-t a:hover{color:var(--teal);text-decoration:underline}
.dr-t small{color:var(--muted)}
.dr-q{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;align-self:flex-start;margin-top:4px}
.dr-q button{width:32px;height:32px;border:0;background:none;font-size:16px;border-radius:50%}
.dr-q button:hover{color:var(--teal);background:var(--sand)}
.dr-q span{min-width:22px;text-align:center;font-weight:700;font-size:14px}
.dr-r{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;font-size:14px}
.dr-foot{padding:20px 24px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px;background:#fff}
.dr-foot>div{display:flex;justify-content:space-between;font-size:17px}
.dr-foot small{color:var(--muted)}
.modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:var(--r-lg);z-index:71;box-shadow:var(--sh-lg);animation:pop .22s var(--ease)}
.sg-tip{margin:0;padding:16px 24px 0;color:var(--muted);font-size:14px}
.sg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px 24px 24px}
.sg-grid table{border:1px solid var(--line);border-radius:12px;overflow:hidden;border-collapse:separate;border-spacing:0}
.sg-grid td{padding:9px 14px}
@keyframes fadeIn{from{opacity:0}}
@keyframes slideIn{from{transform:translateX(100%)}}
@keyframes pop{from{opacity:0;transform:translate(-50%,-46%) scale(.97)}}

/* ---------- order tracking ---------- */
.trk{max-width:760px;padding-top:48px;padding-bottom:80px;display:flex;flex-direction:column;gap:20px}
.trk-form h1{margin:0;font-size:30px}
.sub-p{margin:0;color:var(--muted);font-size:14px}
.trk-err{background:#FFF1F1;border:1px solid #F5C9CA;color:#9B1C1F;border-radius:12px;padding:12px 14px;font-size:14px}
.trk-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.trk-top h2{margin:2px 0 0;font-size:24px}
.tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tl li{position:relative;padding:0 0 22px 34px;display:flex;flex-direction:column;gap:2px;font-size:14.5px}
.tl li::before{content:'';position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;border:2px solid var(--line);background:#fff;box-sizing:border-box}
.tl li::after{content:'';position:absolute;left:8px;top:22px;bottom:2px;width:2px;background:var(--line)}
.tl li:last-child{padding-bottom:0}.tl li:last-child::after{display:none}
.tl li small{color:var(--muted)}
.tl li.done::before{background:var(--teal);border-color:var(--teal);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");background-size:12px;background-position:center;background-repeat:no-repeat}
.tl li.done::after{background:var(--teal)}
.tl li.now::before{border-color:var(--teal);box-shadow:0 0 0 5px var(--ring);background:var(--teal);background-clip:content-box;padding:3px}
.tl li.now b{color:var(--teal)}
.trk-items{display:flex;flex-direction:column;gap:12px}

/* ---------- mobile buy bar ---------- */
.mbar{display:none}
@media (max-width:720px){
  .mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:45;gap:12px;align-items:center;justify-content:space-between;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(15,22,41,.08)}
  .mbar div{display:flex;flex-direction:column;line-height:1.2}
  .mbar small{color:var(--muted);font-size:12px}
  .mbar b{font-size:18px}
  .mbar .btn{height:46px;flex:0 0 auto;padding:0 26px}
  body[data-page="product"] .demo{bottom:80px}
  body[data-page="product"] .foot{padding-bottom:72px}
  .topbar .tb-link{display:none}
  .sugg{position:fixed;left:16px;right:16px;top:120px;width:auto}
}

/* ---------- image skeletons ---------- */
@keyframes shimmer{to{background-position:-200% 0}}
.card .im,.cat,.mainimg,.hero-grid img{background:linear-gradient(90deg,#EEF1F6 0%,#F7F9FC 40%,#EEF1F6 80%) 0 0/200% 100%;animation:shimmer 1.4s linear infinite}
img.fade{opacity:0;transition:opacity .45s var(--ease)}
img.fade.in{opacity:1}

/* ---------- login ---------- */
.login{min-height:100vh;display:flex;flex-wrap:wrap;background:var(--admin-bg)}
.login-art{flex:1 1 420px;background:radial-gradient(600px 400px at 20% 0%,#2B4BB8 0,transparent 60%),linear-gradient(160deg,#0A1B57,#071338);color:#C9D2EE;padding:56px;display:flex;flex-direction:column;justify-content:center;gap:16px}
.login-art .brand{font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;color:#fff;letter-spacing:.05em;font-size:20px}
.login-art .brand span{color:#FF5A5F}
.login-art h1{margin:0;color:#fff;font-size:44px;letter-spacing:-.03em}
.login-art p{margin:0;font-size:16px;max-width:380px}
.login-art ul{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;font-size:14.5px}
.login-art li::before{content:'✓';display:inline-flex;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;align-items:center;justify-content:center;font-size:12px;margin-right:10px}
.login-card{flex:1 1 420px;max-width:520px;margin:auto;padding:48px 40px;display:flex;flex-direction:column;gap:16px}
.login-card h2{margin:0;font-size:30px}
.login-card .sub{color:var(--muted);font-size:14px;margin:-8px 0 4px}
.login-card .btn{width:100%}
.login-card small a{color:var(--teal);font-weight:600}
.perm-peek{font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:12px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.perm-peek b{color:var(--ink);margin-right:2px}
.perm-peek span{background:var(--mint);color:var(--teal);border-radius:999px;padding:3px 9px;font-size:12px;font-weight:500}

/* ---------- sidebar footer ---------- */
.side-foot{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:2px}
.side .me{display:flex;align-items:center;gap:10px;padding:6px 12px 10px}
.side .av{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#E10E14,#FF6B6F);color:#fff;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;flex:none}
.side .me span:last-child{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.side .me b{color:#fff;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side .me small{color:#8F9AC0;font-size:12px}
.side .side-btn{display:flex;align-items:center;min-height:38px;padding:0 12px;border-radius:10px;border:0;background:none;color:#AEB8DA;font-size:13.5px;text-align:left;text-decoration:none}
.side .side-btn:hover{background:rgba(255,255,255,.06);color:#fff}

/* ---------- orders toolbar, bulk, rows ---------- */
.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.amain .search{width:280px;max-width:100%;background-color:var(--surface)}
.bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;border-radius:14px;background:var(--teal);color:#fff;box-shadow:var(--sh-md);position:sticky;top:12px;z-index:5;animation:fadeIn .2s}
.bulk b{margin-right:6px}
.bulk .act{background:#fff;color:var(--teal);border-color:#fff}
.bulk .act.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}
.bulk .act.ghost:hover{border-color:#fff;color:#fff}
.bulk .x{color:#C9D2EE;margin-left:auto;align-self:center}
.ck{width:18px;height:18px;accent-color:var(--teal);cursor:pointer}
tr.rowlink{cursor:pointer}
tr.sel td{background:#F2F5FD}

/* ---------- charts ---------- */
.chart-box{position:relative;height:240px;display:none}
.chart-box.donut{height:190px}
.has-chart .chart-box{display:block}
.has-chart .chart-fallback{display:none}

/* ---------- order details ---------- */
.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;font-size:14px}
.kv span{color:var(--muted)}
.kv b{font-weight:600;text-align:right}
.note-in{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--surface);resize:vertical;font-size:14px}
.note-in:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 4px var(--ring)}
.crumbs a{color:var(--muted)}
.print-only{display:none}
@media print{
  .side,.demo,.toast,.ahead .abtn,.amain>.crumbs,.amain .row2>div:last-child,.tl,.amain .card2:not(.invoice){display:none!important}
  .adm,.amain{background:#fff!important;padding:0!important;display:block}
  .print-only{display:inline;font-weight:700}
  .card2{box-shadow:none!important;border:0!important}
}

/* ---------- dark mode (backoffice) ---------- */
:root[data-theme="dark"]{--ink:#E7EBF5;--muted:#98A1B8;--line:#273049;--admin-bg:#0D1324;--surface:#151C30;--mint:#1C2744;--sand:#1A2236;--ring:rgba(124,156,255,.28);--teal:#4F6FE0;--teal-d:#3E5BC4}
:root[data-theme="dark"] body{background:var(--admin-bg);color:var(--ink)}
:root[data-theme="dark"] .kpi,:root[data-theme="dark"] .card2,:root[data-theme="dark"] .tbl,:root[data-theme="dark"] .abtn,:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .act.ghost,:root[data-theme="dark"] .stepper button,:root[data-theme="dark"] .empty-state,:root[data-theme="dark"] .login-card .fld input,
:root[data-theme="dark"] .fld input,:root[data-theme="dark"] .fld select,:root[data-theme="dark"] .fld textarea,:root[data-theme="dark"] select,:root[data-theme="dark"] .btn-o{background:var(--surface);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .abtn.p,:root[data-theme="dark"] .chip.on,:root[data-theme="dark"] .act:not(.ghost){background:var(--teal);border-color:var(--teal);color:#fff}
:root[data-theme="dark"] th{background:#111830;color:#8E97AF}
:root[data-theme="dark"] td{border-top-color:#222A40}
:root[data-theme="dark"] tbody tr:hover,:root[data-theme="dark"] tr.sel td{background:#1A2238}
:root[data-theme="dark"] .side{background:linear-gradient(180deg,#0B1022,#080C1A)}
:root[data-theme="dark"] .bars i{background:#2A3557}
:root[data-theme="dark"] .lowlist div,:root[data-theme="dark"] .line{border-color:var(--line)}
:root[data-theme="dark"] .sum{border-color:var(--line)}
:root[data-theme="dark"] .st-Pending{background:#3A2E12;color:#F2C36B}:root[data-theme="dark"] .st-Confirmed{background:#16294A;color:#8DB4F2}
:root[data-theme="dark"] .st-Packed{background:#13302F;color:#7FCACA}:root[data-theme="dark"] .st-Shipped{background:#2A1F45;color:#BFA6F0}
:root[data-theme="dark"] .st-Delivered,:root[data-theme="dark"] .st-In{background:#14301F;color:#86D4A3}
:root[data-theme="dark"] .st-Cancelled,:root[data-theme="dark"] .st-Out{background:#3A1717;color:#F09A9A}:root[data-theme="dark"] .st-Low{background:#3A2E12;color:#F2C36B}
:root[data-theme="dark"] .tl li:not(.done):not(.now)::before{background:var(--surface)}
:root[data-theme="dark"] .trk-err{background:#3A1717;border-color:#5A2323;color:#F4B4B4}
:root[data-theme="dark"] .demo{background:rgba(21,28,48,.92);border-color:var(--line)}
:root[data-theme="dark"] .toast{background:#E7EBF5!important;color:#0D1324}
:root[data-theme="dark"] .login{background:var(--admin-bg)}
@media (max-width:960px){.side-foot{flex-direction:row;margin:0;padding:0 0 0 8px;border:0;align-items:center}.side .me{display:none}.side .side-btn{white-space:nowrap}}
