/* =====================================================================
   wwwroot/css/ec-store.css                                  (NEW FILE)
   Store bar + store popup + menu "Stores" dropdown + product page stock
   ===================================================================== */
:root { --ecs-or: #f5a10b; --ecs-or-d: #d98a00; --ecs-ok: #2e7d32; --ecs-bad: #c62828; --ecs-line: #e6e6e6; --ecs-mut: #6b6b6b; }

/* ---------- top bar ---------- */
.ecs-bar { background: #111; color: #ddd; font-size: 13px; position: relative; z-index: 60; }
.ecs-bar-in { max-width: 1400px; margin: auto; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ecs-bar svg { width: 16px; height: 16px; fill: var(--ecs-or); flex: none; }
.ecs-bar b { color: #fff; }
.ecs-bar .ecs-addr { color: #aaa; }
.ecs-chips span { font-size: 11px; border: 1px solid #444; border-radius: 10px; padding: 1px 8px; margin-left: 4px; color: #ccc; }
.ecs-bar button { background: none; border: 1px solid var(--ecs-or); color: var(--ecs-or); border-radius: 20px; padding: 4px 14px; font-weight: 600; font-size: 12px; cursor: pointer; }
.ecs-bar button:hover { background: var(--ecs-or); color: #111; }

/* ---------- menu dropdown (_MenuBar) ---------- */
/* theme menu ke li ko position:static deta hai (mega menu ke liye) -
   isliye !important: dropdown "Stores" ke theek neeche khule */
li.menu-item.ec-stores-menu {
    position: relative !important;
}

    li.menu-item.ec-stores-menu > .ecs-dd {
        display: none;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        margin: 0 !important;
        z-index: 999;
        width: 340px;
        background: #fff;
        border: 1px solid var(--ecs-line);
        box-shadow: 0 10px 30px rgba(0,0,0,.12);
        padding: 8px;
        text-align: left;
    }
    li.menu-item.ec-stores-menu:hover > .ecs-dd,
    li.menu-item.ec-stores-menu.ecs-open > .ecs-dd {
        display: block !important;
    }
.ecs-dd-row { display: flex; gap: 10px; padding: 10px; border-radius: 6px; cursor: pointer; align-items: flex-start; }
.ecs-dd-row:hover { background: #fafafa; }
.ecs-dd-pin { width: 28px; height: 28px; border-radius: 50%; background: #fff3dc; display: grid; place-items: center; flex: none; }
.ecs-dd-pin svg { width: 15px; fill: var(--ecs-or); }
.ecs-dd-row b { font-size: 14px; display: block; color: #1d1d1d; }
.ecs-dd-row small { color: var(--ecs-mut); font-size: 12px; display: block; line-height: 1.5; font-weight: 400; }
.ecs-dd-cur { margin-left: auto; font-size: 11px; color: var(--ecs-ok); font-weight: 700; white-space: nowrap; }
.ecs-dd-all { display: block; text-align: center; border-top: 1px solid var(--ecs-line); margin-top: 6px; padding: 10px; color: var(--ecs-or-d) !important; font-weight: 700; font-size: 13px; cursor: pointer; }

/* ---------- popup ---------- */
.ecs-ov { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: flex-start; justify-content: center; z-index: 100000; padding: 40px 16px; overflow: auto; }
.ecs-ov.ecs-show { display: flex; }
body.ecs-lock { overflow: hidden; }
.ecs-md { background: #fff; width: 100%; max-width: 820px; padding: 22px; position: relative; }
.ecs-md h3 { margin: 0 0 14px; font-size: 20px; }
.ecs-x { position: absolute; right: 14px; top: 8px; border: 0; background: none; font-size: 28px; cursor: pointer; color: #777; line-height: 1; }
.ecs-zip { display: flex; align-items: center; gap: 8px; border: 1px solid #ccc; border-radius: 30px; padding: 10px 16px; }
.ecs-zip svg { width: 18px; fill: #555; }
.ecs-zip input { border: 0; outline: 0; font-size: 15px; flex: 1; background: transparent; }
.ecs-loc { display: inline-flex; gap: 6px; align-items: center; margin: 12px 0 16px; font-size: 13px; font-weight: 600; border: 0; background: none; cursor: pointer; padding: 0; color: #1d1d1d; }
.ecs-loc svg { width: 14px; fill: var(--ecs-or); }
.ecs-sc { border: 1px solid var(--ecs-line); padding: 16px; margin-bottom: 14px; position: relative; }
.ecs-sc.ecs-cur { border: 2px solid var(--ecs-or); }
.ecs-lbl { position: absolute; top: -1px; left: -1px; background: var(--ecs-or); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; padding: 3px 10px; }
.ecs-sc.ecs-cur .ecs-head { margin-top: 14px; }
.ecs-head { display: flex; align-items: center; gap: 10px; }
.ecs-num { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ecs-or); color: var(--ecs-or-d); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.ecs-sc.ecs-cur .ecs-num { background: var(--ecs-or); color: #fff; }
.ecs-head b { font-size: 16px; }
.ecs-dist { margin-left: auto; font-size: 12px; color: var(--ecs-mut); }
.ecs-sc p { margin: 8px 0 4px; font-size: 13px; }
.ecs-hrs { font-size: 13px; color: var(--ecs-mut); }
.ecs-hrs b { color: #1d1d1d; }
.ecs-open { color: var(--ecs-ok); font-weight: 700; }
.ecs-closed { color: var(--ecs-bad); font-weight: 700; }
.ecs-badges { margin: 8px 0 12px; }
.ecs-badges span { font-size: 11px; background: #f3f3f3; border-radius: 10px; padding: 2px 9px; margin-right: 4px; }
.ecs-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ecs-btns a, .ecs-btns button { flex: 1; min-width: 120px; text-align: center; border: 1px solid #333; background: #fff; border-radius: 24px; padding: 9px 12px; font-weight: 600; font-size: 13px; color: #222; text-decoration: none; cursor: pointer; }
.ecs-btns .ecs-go { flex: 2; background: var(--ecs-or); border-color: var(--ecs-or); color: #fff; }
.ecs-btns .ecs-go:hover { background: var(--ecs-or-d); }
.ecs-btns .ecs-go[disabled] { opacity: .6; cursor: wait; }
.ecs-empty { color: #777; font-size: 14px; }

/* confirm */
.ecs-cf { background: #fff; max-width: 420px; width: 100%; padding: 24px; text-align: center; margin-top: 12vh; }
.ecs-cf-ic { font-size: 34px; }
.ecs-cf h4 { margin: 6px 0 8px; font-size: 18px; }
.ecs-cf p { font-size: 14px; color: #555; margin: 0 0 18px; }

/* ---------- product page: other stores ---------- */
.ec-store-avail { margin-top: 24px; border: 1px solid var(--ecs-line); padding: 16px 18px; }
.ec-store-avail h4 { margin: 0 0 10px; font-size: 15px; }
.ecs-av-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px dashed var(--ecs-line); font-size: 13px; gap: 10px; }
.ecs-av-row:first-of-type { border-top: 0; }
.ecs-in { color: var(--ecs-ok); }
.ecs-out { color: var(--ecs-bad); }
.ecs-av-row a { color: var(--ecs-or-d); font-weight: 700; cursor: pointer; font-size: 12px; margin-left: 10px; }

@media (max-width: 700px) {
    .ecs-bar .ecs-addr, .ecs-chips { display: none; }
    .ecs-md { padding: 18px 14px; }
}
