/*
 * Shop Manager site: colours, buttons, header, menus and footer.
 * Loaded on every Shop Manager page (header-plugin.php). Plain CSS, no build step.
 * Dark mode is the `dark` class on <html>, set by the inline script in header-plugin.php.
 */
:root {
  --navy: #080056;
  --navy-2: #0a0070;
  --navy-3: #16127e;
  --sky: #00acf5;
  --sky-ink: #0072a8;
  --lav: #f1f0ff;
  --lav-2: #e6e4ff;

  --bg: #ffffff;
  --bg-soft: #f7f7ff;
  --surface: #ffffff;
  --ink: #12103a;
  --ink-2: #4a4870;
  --ink-3: #6f6d92;
  --line: #e5e4f4;
  --line-2: #d6d4ee;
  --pro: #6b4dff;
  --ok: #1f9d55;
  --shadow: 0 1px 2px rgba(8,0,86,.06), 0 12px 32px -12px rgba(8,0,86,.18);
  --shadow-lg: 0 2px 6px rgba(8,0,86,.08), 0 40px 80px -30px rgba(8,0,86,.45);
  --hero-bg: #080056;
  --hero-ink: #ffffff;
  --hero-ink-2: #c9c7f2;
  --btn-ink: #ffffff;
  color-scheme: light;
}
html.dark {
  --sky: #00b3ff; --sky-ink: #5ccbff; --lav: #17134a; --lav-2: #221d63;
  --bg: #07051f; --bg-soft: #0b0828; --surface: #110d36; --ink: #eeedff; --ink-2: #bebce4; --ink-3: #9593c0;
  --line: #241f58; --line-2: #2f2a6c; --pro: #a493ff; --ok: #3ccf7f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 40px 80px -30px rgba(0,0,0,.8);
  --hero-bg: #0a0636; --hero-ink-2: #b7b4e8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .15s; }
.btn-sky { background: var(--sky); color: var(--btn-ink); box-shadow: 0 1px 2px rgba(8,0,86,.1), 0 6px 16px -8px rgba(0,172,245,.7); }
.btn-sky:hover { background: #0a9fe3; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
html.dark .btn-navy { background: var(--sky); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-line-light { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-line-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }

.pro-badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--pro); background: color-mix(in srgb, var(--pro) 12%, transparent); letter-spacing: .01em; vertical-align: middle; }

/* ============ Header ============ */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 68px; }
/* Oxilab icon, a thin divider, then the Shop Manager logo */
.brand-row { display: flex; align-items: center; gap: 12px; flex: none; }
.oxi-mark { display: inline-flex; }
.oxi-mark img { width: 24px; height: 24px; }
.brand-sep { width: 1px; height: 22px; background: var(--line-2); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 26px; width: auto; }
.brand .logo-dark { display: none; }
html.dark .brand .logo-light { display: none; }
html.dark .brand .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > li { list-style: none; position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; white-space: nowrap; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--bg-soft); }
.nav-link.is-current { color: var(--ink); font-weight: 600; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 9px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
/* Right side, as on the oxilab.dev header: a bordered theme switch, then one dark Account button */
.head-actions { gap: 10px; }
.theme-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle svg.i { width: 18px; height: 18px; }
.theme-toggle .sun, html.dark .theme-toggle .moon { display: none; }
html.dark .theme-toggle .sun { display: block; }
.head-actions .acct { box-shadow: 0 10px 24px -12px rgba(8,0,86,.6); }
.head-actions .acct:hover { transform: translateY(-1px); }

/* Dropdown panels */
.drop { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility .16s; z-index: 60; }
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.drop.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop-features { width: 820px; display: grid; grid-template-columns: 1fr 250px; overflow: hidden; left: 0; transform: translate(-25%, 6px); }
.drop-features.open { transform: translate(-25%, 0); }
/* Equal rows, one-line descriptions: every item and its hover box are the same height */
.feat-menu { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 4px; padding: 14px; align-content: start; }
.menu-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.menu-item:hover { background: var(--bg-soft); }
.menu-item .mi-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--lav); color: var(--navy); flex: none; }
html.dark .menu-item .mi-ico { color: var(--sky); }
.menu-item .mi-ico svg { width: 18px; height: 18px; }
.mi-t { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; display: flex; align-items: center; gap: 6px; }
.mi-d { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.feat-side { background: var(--hero-bg); color: #fff; padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.feat-side::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(0,172,245,.45), transparent 65%); }
.feat-side h4 { margin: 0; font-size: 16px; line-height: 1.35; }
.feat-side p { margin: 0; font-size: 13.5px; color: var(--hero-ink-2); line-height: 1.5; }
.feat-side .btn { margin-top: auto; position: relative; z-index: 1; align-self: flex-start; }
.drop-list { width: 340px; padding: 10px; }
.drop-plugins { width: 340px; padding: 10px; }
.plug-ico { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.drop-foot { margin: 6px 4px 2px; padding: 10px 10px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.drop-foot a { color: var(--sky-ink); font-weight: 600; }

.menu-toggle { display: none; }
@media (max-width: 1140px) { .nav-link { padding: 0 9px; } }
@media (max-width: 1080px) {
  .nav, .head-actions .acct { display: none; }
  .menu-toggle { display: inline-grid; }
}
/* Smallest phones: everything still fits on one row */
@media (max-width: 380px) {
  .head-row { gap: 10px; }
  .brand-row { gap: 8px; }
  .brand img { height: 22px; }
  .head-actions { gap: 6px; }
}

/* Mobile panel */
.mpanel { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: none; flex-direction: column; }
.mpanel.open { display: flex; }
.mpanel-head { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.mpanel-body { overflow-y: auto; padding: 12px 16px 24px; flex: 1; }
.m-link, .m-acc > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.m-acc > summary::-webkit-details-marker { display: none; }
.m-acc[open] > summary .chev { transform: rotate(180deg); }
.m-acc .chev { width: 16px; height: 16px; transition: transform .2s; }
.m-sub { padding: 6px 0 10px; display: grid; gap: 2px; }
.m-sub a { padding: 9px 8px; border-radius: 8px; font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.m-sub a:hover { background: var(--bg-soft); }
.mpanel-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 64px 0 32px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--ink-3); margin: 14px 0 0; max-width: 300px; }
.foot h4 { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot ul a { color: var(--ink-2); }
.foot ul a:hover { color: var(--ink); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* The WordPress admin bar sits above the sticky header */
body.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-head { top: 46px; } }
