/* ═══════════════════════════════════════════════════════════════════
   NachtWinkel — stylesheet
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────────── */
:root {
    --bg:       #f5f5f3;
    --white:    #ffffff;
    --bd:       #e2e2e2;
    --bd2:      #c8c8c8;
    --text:     #111111;
    --sub:      #666666;
    --dim:      #aaaaaa;
    --orange:   #ff6900;
    --orange-l: #fff4ed;
    --orange-d: #e05d00;
    --green:    #1a7a3c;
    --green-bg: #edf7f1;
    --red:      #d32f2f;
    --sh:       0 1px 4px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
    --sh2:      0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
    --r:        8px;
    --r2:       12px;
    --hh:       64px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.5;
}
a      { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; }
input, select, textarea { font: inherit; }

/* ─── Layout ────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-main  { padding-bottom: 80px; }

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
    height: var(--hh);
    background: var(--white);
    border-bottom: 1px solid var(--bd);
    position: sticky;
    top: 0;
    z-index: 300;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-sq {
    width: 36px; height: 36px;
    border-radius: var(--r);
    background: var(--orange);
    color: #fff;
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.logo-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.hn-link {
    font-size: 14px; font-weight: 500; color: var(--sub);
    padding: 7px 12px; border-radius: var(--r);
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.hn-link:hover  { background: var(--bg); color: var(--text); }
.hn-link.active { color: var(--orange); font-weight: 600; }

/* Cart button */
.cart-trigger {
    display: flex; align-items: center; gap: 7px;
    background: var(--orange); color: #fff;
    padding: 9px 18px; border-radius: 999px;
    font-size: 14px; font-weight: 600;
    transition: background .15s;
    white-space: nowrap;
}
.cart-trigger:hover { background: var(--orange-d); }
.cart-n {
    background: rgba(255,255,255,.28); color: #fff;
    font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* Account dropdown */
.hn-account-wrap { position: relative; }
.hn-account-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 10px 5px 5px;
    border: 1.5px solid var(--bd);
    border-radius: 999px;
    background: var(--white);
    font-size: 13px; font-weight: 500; color: var(--text);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.hn-account-btn:hover { border-color: var(--orange); box-shadow: var(--sh); }
.hn-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--orange); color: #fff;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hn-account-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-account-menu {
    display: none;
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    box-shadow: var(--sh2);
    z-index: 400;
    overflow: hidden;
}
.hn-account-menu.open { display: block; }
.hn-menu-item {
    display: block; padding: 10px 16px;
    font-size: 13px; color: var(--text);
    transition: background .1s;
}
.hn-menu-item:hover { background: var(--orange-l); }
.hn-menu-item--danger { color: var(--red); }
.hn-menu-item--danger:hover { background: #fff0f0; }
.hn-menu-sep { height: 1px; background: var(--bd); margin: 2px 0; }

/* ─── Employee portal badge (shown in main nav when emp is logged in) ── */
.hn-emp-wrap {
    display: flex; align-items: center; gap: 2px;
}
.hn-emp-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    background: #1e293b;
    color: #fff;
    border-radius: 999px;
    font-size: 13px; font-weight: 500;
    transition: background .15s, box-shadow .15s;
    white-space: nowrap;
}
.hn-emp-btn:hover { background: #0f172a; box-shadow: var(--sh); color: #fff; }
.hn-emp-btn svg { flex-shrink: 0; opacity: .85; }
.hn-emp-role {
    font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    background: rgba(255,255,255,.18);
    padding: 1px 6px; border-radius: 999px;
    line-height: 1.6;
}
.hn-emp-logout {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: #1e293b; color: #fff;
    border-radius: 50%;
    border: none; cursor: pointer;
    opacity: .75;
    transition: opacity .15s, background .15s;
}
.hn-emp-logout:hover { opacity: 1; background: #c0392b; }

/* ─── Info strip ────────────────────────────────────────────────── */
.info-strip {
    background: var(--white);
    border-bottom: 1px solid var(--bd);
    padding: 9px 0;
}
.info-strip-inner {
    display: flex; align-items: center; gap: 20px;
    overflow-x: auto; scrollbar-width: none;
}
.info-strip-inner::-webkit-scrollbar { display: none; }
.info-chip {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: var(--sub); white-space: nowrap; flex-shrink: 0;
}
.info-chip:first-child {
    background: var(--green-bg); color: var(--green);
    padding: 3px 10px; border-radius: 999px;
    font-weight: 600;
}
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.info-divider { width: 1px; height: 14px; background: var(--bd); flex-shrink: 0; }

/* ─── Category bar ──────────────────────────────────────────────── */
.cat-bar {
    background: var(--white);
    border-bottom: 1px solid var(--bd);
    position: sticky;
    top: var(--hh);
    z-index: 200;
}
.cat-bar-inner {
    display: flex; align-items: center; gap: 6px;
    overflow-x: auto; scrollbar-width: none;
    padding: 10px 20px;  /* horizontal padding replaces .container */
    max-width: 1580px;
    margin: 0 auto;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-pill {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 999px;
    border: 1.5px solid var(--bd);
    background: var(--white);
    font-size: 13px; font-weight: 500; color: var(--sub);
    white-space: nowrap; flex-shrink: 0; cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.cat-pill:hover  { border-color: var(--bd2); color: var(--text); }
.cat-pill.active { border-color: var(--orange); background: var(--orange-l); color: var(--orange); font-weight: 600; }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--r);
    font-size: 14px; font-weight: 600;
    white-space: nowrap; cursor: pointer;
    transition: background .15s, border-color .15s, opacity .15s;
    border: 1.5px solid transparent;
}
.btn-solid {
    background: var(--orange); color: #fff;
    border-color: var(--orange);
    border-radius: var(--r2);
}
.btn-solid:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn-solid:disabled { background: var(--dim); border-color: var(--dim); cursor: not-allowed; }

.btn-ghost {
    background: var(--white); color: var(--text);
    border-color: var(--bd2);
    border-radius: var(--r2);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--bd2); }

.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b71c1c; border-color: #b71c1c; }

.btn-full { width: 100%; }
.btn-lg   { padding: 13px 28px; font-size: 15px; }
.btn-sm   { padding: 6px 14px; font-size: 12px; }

/* ─── Page title ─────────────────────────────────────────────────── */
.page-title {
    font-size: 22px; font-weight: 700;
    padding: 24px 0 20px;
    letter-spacing: -.4px;
}

/* ─── Product grid ──────────────────────────────────────────────── */
.page-wrap { padding: 24px 0; }

.cat-group { animation: fadeIn .25s ease both; }
.cat-group-title {
    font-size: 17px; font-weight: 700;
    margin-bottom: 14px; letter-spacing: -.2px;
    display: flex; align-items: center; gap: 7px;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

/* ─── Product card ──────────────────────────────────────────────── */
.product-card {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    animation: cardIn .3s ease both;
}
.product-card:hover {
    box-shadow: var(--sh2);
    transform: translateY(-3px);
    border-color: #d0d0d0;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.product-card:nth-child(1)   { animation-delay: .03s; }
.product-card:nth-child(2)   { animation-delay: .06s; }
.product-card:nth-child(3)   { animation-delay: .09s; }
.product-card:nth-child(4)   { animation-delay: .12s; }
.product-card:nth-child(5)   { animation-delay: .15s; }
.product-card:nth-child(n+6) { animation-delay: .18s; }

.product-card-link { display: block; color: inherit; }

.pc-img {
    height: 140px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    position: relative;
    background: var(--bg);
}
.pc-img[data-cat="energy"]  { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.pc-img[data-cat="noodles"] { background: linear-gradient(135deg, #fffde7, #fff9c4); }
.pc-img[data-cat="snacks"]  { background: linear-gradient(135deg, #f1f8e9, #dcedc8); }
.pc-img[data-cat="sweets"]  { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.pc-img[data-cat="drinks"]  { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }

.pc-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    padding: 3px 7px; border-radius: 5px;
}
.badge-hot { background: var(--orange); color: #fff; }
.badge-nl  { background: var(--white); color: var(--orange); border: 1px solid var(--orange); }
.badge-fav { background: var(--white); color: var(--sub); border: 1px solid var(--bd); }

.pc-body { padding: 14px 14px 0; flex: 1; }
.pc-name { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 3px; }
.pc-desc { font-size: 12px; color: var(--sub); line-height: 1.4; }

.pc-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
    border-top: 1px solid var(--bd);
    margin-top: 12px;
}
.pc-price {
    font-size: 15px; font-weight: 700; color: var(--text);
    font-variant-numeric: tabular-nums;
}
.pc-add {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--orange); color: #fff;
    font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255,105,0,.3);
}
.pc-add:hover  { background: var(--orange-d); transform: scale(1.08); }
.pc-add:active { transform: scale(.94); }
.pc-add.added  { background: var(--green); box-shadow: 0 2px 6px rgba(26,122,60,.25); }
.pc-add.age-restricted { background: var(--red); font-size: 10px; font-weight: 700; }
.pc-add.age-restricted:hover { background: #b71c1c; }

/* ─── Cart ──────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }

.cart-rows {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    overflow: hidden;
}
.cart-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bd);
    transition: background .1s;
}
.cart-row:last-child { border-bottom: none; }
.cart-row:hover { background: var(--bg); }

.cr-emoji { font-size: 2rem; width: 42px; text-align: center; flex-shrink: 0; }
.cr-info  { flex: 1; min-width: 0; }
.cr-name  { font-size: 14px; font-weight: 600; }
.cr-desc  { font-size: 12px; color: var(--sub); margin-top: 2px; }

.cr-qty {
    display: flex; align-items: center;
    border: 1.5px solid var(--bd2); border-radius: 999px;
    overflow: hidden; flex-shrink: 0;
}
.cr-qty-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: var(--sub);
    transition: background .1s, color .1s;
}
.cr-qty-btn:hover { background: var(--bg); color: var(--text); }
.cr-qty-n { min-width: 26px; text-align: center; font-size: 13px; font-weight: 600; }

.cr-price { font-size: 14px; font-weight: 700; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.cr-rm { color: var(--dim); padding: 4px; border-radius: 4px; transition: color .12s; }
.cr-rm:hover { color: var(--red); }

/* ─── Summary panel ─────────────────────────────────────────────── */
.summary-panel {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    padding: 20px;
    display: flex; flex-direction: column; gap: 10px;
    position: sticky; top: calc(var(--hh) + 16px);
}
.sp-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.sp-row   { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--sub); }
.sp-total {
    display: flex; justify-content: space-between;
    font-size: 15px; font-weight: 700;
    border-top: 1px solid var(--bd); padding-top: 10px;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.sp-upsell { font-size: 12px; color: var(--orange); font-weight: 500; }
.label-free { color: var(--green); font-weight: 600; }

/* Empty state */
.empty-wrap {
    background: var(--white); border: 1px solid var(--bd);
    border-radius: var(--r2); box-shadow: var(--sh);
    padding: 60px 20px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    grid-column: 1 / -1;
}
.empty-wrap h2 { font-size: 18px; font-weight: 700; }
.empty-wrap p  { font-size: 14px; color: var(--sub); }

/* ─── Checkout ──────────────────────────────────────────────────── */
.checkout-wrap   { max-width: 1000px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 310px; gap: 24px; align-items: start; }
.checkout-form   { display: flex; flex-direction: column; gap: 18px; }

.form-block {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    padding: 22px;
}
.form-block-title {
    font-size: 16px; font-weight: 700;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 1px solid var(--bd);
}
.form-2col  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
    font-size: 11.5px; font-weight: 600; color: var(--sub);
    text-transform: uppercase; letter-spacing: .5px;
}
.form-input {
    background: var(--white);
    border: 1.5px solid var(--bd);
    border-radius: var(--r);
    padding: 10px 12px;
    font-size: 14px; color: var(--text);
    transition: border-color .15s;
    width: 100%;
}
.form-input:focus { outline: none; border-color: var(--orange); }
.form-input::placeholder { color: var(--dim); }
.form-input[readonly] { background: var(--bg); color: var(--sub); cursor: default; }
.form-input.is-err { border-color: var(--red); }
.form-err { font-size: 12px; color: var(--red); display: block; }

/* Payment options */
.pay-list { display: flex; flex-direction: column; gap: 8px; }
.pay-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--bd); border-radius: var(--r);
    cursor: pointer; font-size: 14px; color: var(--sub);
    transition: border-color .15s, background .15s, color .15s;
}
.pay-opt:hover    { border-color: var(--bd2); color: var(--text); }
.pay-opt.selected { border-color: var(--orange); background: var(--orange-l); color: var(--text); }
.pay-opt input    { display: none; }
.pay-icon  { font-size: 17px; }
.pay-check {
    margin-left: auto;
    width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid var(--bd); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; color: transparent;
    transition: background .15s, border-color .15s, color .15s;
}
.pay-opt.selected .pay-check { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Checkout notices */
.checkout-autofill-notice {
    background: var(--green-bg);
    border: 1px solid #a8d5b5;
    border-radius: var(--r);
    padding: 10px 14px;
    font-size: 13px; color: var(--green);
    margin-bottom: 16px;
}
.checkout-login-nudge {
    background: var(--orange-l);
    border: 1px solid #ffc9a0;
    border-radius: var(--r);
    padding: 10px 14px;
    font-size: 13px; color: var(--text);
    margin-bottom: 16px;
}
.checkout-login-nudge a { color: var(--orange); font-weight: 600; }

/* ─── Order success ─────────────────────────────────────────────── */
.success-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 65vh; padding: 40px 20px;
}
.success-box {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: 16px;
    box-shadow: var(--sh2);
    padding: 48px 36px;
    text-align: center;
    max-width: 440px; width: 100%;
}
.success-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--green-bg); border: 2px solid #a8d5b5;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    font-size: 24px; color: var(--green);
}
.success-box h1    { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px; }
.success-sub       { font-size: 14px; color: var(--sub); margin-bottom: 6px; }
.success-order-id  { font-size: 12px; color: var(--dim); margin-bottom: 6px; letter-spacing: .3px; }
.success-total     { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.success-eta {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--bg); border: 1px solid var(--bd);
    border-radius: 999px; padding: 8px 16px;
    font-size: 13px; color: var(--sub);
    margin: 14px 0 0;
}
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.success-note { font-size: 12px; color: var(--dim); margin-top: 14px; }

/* ─── Toast ─────────────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 20px; right: 20px;
    background: var(--text); color: #fff;
    padding: 11px 16px; border-radius: var(--r);
    font-size: 13px; font-weight: 500;
    z-index: 9999; opacity: 0; pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    display: flex; align-items: center; gap: 8px;
    max-width: 280px;
}
.toast.show { opacity: 1; transform: none; }
.toast-icon { color: #4ade80; font-size: 14px; flex-shrink: 0; }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--bd);
    padding: 22px 0;
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.footer-left  { display: flex; flex-direction: column; gap: 2px; }
.footer-logo  { font-size: 14px; font-weight: 700; }
.footer-tag   { font-size: 12px; color: var(--sub); }
.footer-copy  { font-size: 12px; color: var(--dim); }

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════ */
.breadcrumb {
    display: flex; align-items: center; gap: 7px;
    padding: 16px 0; font-size: 13px; color: var(--sub);
}
.breadcrumb a         { color: var(--sub); transition: color .12s; }
.breadcrumb a:hover   { color: var(--text); }
.breadcrumb-sep       { color: var(--dim); }
.breadcrumb-current   { color: var(--text); font-weight: 500; }

.product-detail { margin-top: 20px; }
.product-hero   { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }

.product-image {
    height: 380px;
    display: flex; align-items: center; justify-content: center;
    font-size: 7rem;
    border-radius: var(--r2);
    border: 1px solid var(--bd);
    background: var(--bg);
    position: relative;
}
.product-image[data-cat="energy"]  { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.product-image[data-cat="noodles"] { background: linear-gradient(135deg, #fffde7, #fff9c4); }
.product-image[data-cat="snacks"]  { background: linear-gradient(135deg, #f1f8e9, #dcedc8); }
.product-image[data-cat="sweets"]  { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.product-image[data-cat="drinks"]  { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }

.product-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--orange); color: #fff;
    padding: 5px 10px; border-radius: var(--r);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
.product-info  { display: flex; flex-direction: column; gap: 20px; }
.product-title { font-size: 28px; font-weight: 700; letter-spacing: -.4px; line-height: 1.2; }
.product-desc  { font-size: 15px; color: var(--sub); line-height: 1.6; }
.product-meta  { display: flex; flex-direction: column; gap: 18px; }
.price-current { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

.product-actions { display: flex; align-items: center; gap: 12px; }
.qty-selector {
    display: flex; align-items: center;
    border: 1.5px solid var(--bd2); border-radius: var(--r2); overflow: hidden;
}
.qty-btn {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 600; color: var(--text);
    transition: background .12s;
}
.qty-btn:hover  { background: var(--bg); }
.qty-btn:active { background: var(--bd); }
.qty-input {
    width: 56px; height: 42px;
    text-align: center; font-size: 15px; font-weight: 600;
    border: none; background: var(--white); color: var(--text);
}
.qty-input:focus { outline: none; }
.add-to-cart-btn { flex: 1; padding: 12px 20px; font-size: 15px; }

.product-details h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.details-list { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--sub); }
.details-list strong { color: var(--text); }
.stock-available { color: var(--green); font-weight: 600; }

.product-related {
    margin-top: 48px; padding-top: 32px;
    border-top: 1px solid var(--bd);
}
.product-related h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

.related-card {
    background: var(--white); border: 1px solid var(--bd);
    border-radius: var(--r2); box-shadow: var(--sh);
    overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative;
}
.related-card:hover { box-shadow: var(--sh2); transform: translateY(-2px); border-color: #d0d0d0; }
.related-link  { display: flex; align-items: center; gap: 12px; padding: 14px; color: inherit; }
.related-img   { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 22px; border-radius: var(--r); background: var(--bg); }
.related-info  { flex: 1; min-width: 0; }
.related-name  { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.related-price { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.related-add {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--orange); color: #fff; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
    box-shadow: 0 2px 5px rgba(255,105,0,.3);
}
.related-add:hover  { background: var(--orange-d); transform: scale(1.08); }
.related-add:active { transform: scale(.94); }

/* ═══════════════════════════════════════════════════════════════════
   AUTH PAGES  (login / register)
   ═══════════════════════════════════════════════════════════════════ */
.auth-wrap {
    display: flex; justify-content: center;
    padding: 48px 20px 80px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh2);
    padding: 36px 32px;
}
.auth-logo          { text-align: center; margin-bottom: 18px; }
.auth-logo .logo-sq { width: 46px; height: 46px; border-radius: 12px; font-size: 22px; margin: 0 auto; }
.auth-title { font-size: 21px; font-weight: 700; text-align: center; margin-bottom: 4px; letter-spacing: -.3px; }
.auth-sub   { font-size: 13px; color: var(--sub); text-align: center; margin-bottom: 24px; }
.auth-link  { color: var(--orange); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-err {
    background: #fef2f2; border: 1px solid #fcc;
    border-radius: var(--r); color: var(--red);
    font-size: 13px; padding: 10px 14px;
    margin-bottom: 16px; text-align: center;
}
.auth-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0; color: var(--dim); font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--bd); }
.auth-emp-hint {
    margin-top: 18px;
    font-size: 12px; color: var(--dim); text-align: center; line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ═══════════════════════════════════════════════════════════════════ */
.account-wrap    { padding: 32px 0 80px; }
.account-welcome {
    background: var(--green-bg); border: 1px solid #a8d5b5;
    border-radius: var(--r); padding: 11px 16px;
    color: var(--green); font-size: 14px; margin-bottom: 24px;
}
.account-layout {
    display: grid; grid-template-columns: 220px 1fr;
    gap: 24px; align-items: start;
}
.account-sidebar {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    padding: 28px 20px;
    text-align: center;
    position: sticky; top: calc(var(--hh) + 16px);
}
.account-avatar {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--orange); color: #fff;
    font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.account-name  { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.account-email { font-size: 12px; color: var(--sub); margin-bottom: 20px; word-break: break-all; }
.account-links { display: flex; flex-direction: column; gap: 6px; }
.account-action-btn {
    display: block; padding: 9px 12px;
    border: 1.5px solid var(--bd); border-radius: var(--r);
    font-size: 13px; font-weight: 500; color: var(--text); text-align: center;
    transition: border-color .15s, background .15s;
}
.account-action-btn:hover { border-color: var(--orange); background: var(--orange-l); }
.account-action-btn--danger { color: var(--red); }
.account-action-btn--danger:hover { border-color: var(--red); background: #fff0f0; }

.account-main          { min-width: 0; }
.account-section-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.account-empty {
    background: var(--white); border: 1px solid var(--bd);
    border-radius: var(--r2); padding: 48px 20px;
    text-align: center; color: var(--sub);
}
.account-empty-icon { font-size: 36px; margin-bottom: 10px; }

/* Order cards (account page) */
.order-card {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    margin-bottom: 12px;
    overflow: hidden;
}
.order-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    padding: 12px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--bd);
}
.order-id   { font-size: 13px; font-weight: 700; margin-right: 6px; letter-spacing: .3px; }
.order-date { font-size: 12px; color: var(--sub); }
.order-items { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px; }
.order-item-chip {
    background: var(--bg); border: 1px solid var(--bd);
    border-radius: 999px; padding: 3px 10px;
    font-size: 12px;
}
.order-card-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 18px;
    border-top: 1px solid var(--bd);
    font-size: 12px; color: var(--sub);
}
.order-total { font-size: 14px; font-weight: 700; color: var(--text); }

/* Status badges */
.order-status-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.status-waiting    { background: #f3e5f5; color: #6a1b9a; }
.status-new        { background: #e8f4fd; color: #1565c0; }
.status-prep       { background: #fff8e1; color: #e65100; }
.status-on-the-way { background: #e8f5e9; color: #2e7d32; }
.status-done       { background: var(--green-bg); color: var(--green); }
.status-cancelled  { background: #ffebee; color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════
   AGE VERIFICATION MODAL
   ═══════════════════════════════════════════════════════════════════ */
.age-verification-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    align-items: center; justify-content: center;
}
.age-verification-modal.show { display: flex; }
.age-modal-content {
    background: var(--white);
    border-radius: var(--r2);
    border: 1px solid var(--bd);
    box-shadow: var(--sh2);
    padding: 36px 28px 28px;
    max-width: 400px; width: 90%;
    text-align: center;
    position: relative;
}
.age-modal-close {
    position: absolute; top: 14px; right: 14px;
    color: var(--dim); font-size: 20px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r);
    transition: background .12s, color .12s;
}
.age-modal-close:hover { background: var(--bg); color: var(--text); }
.age-modal-icon { margin-bottom: 18px; }
.age-modal-icon svg { width: 52px; height: 52px; color: var(--orange); }
.age-modal-body h2 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.age-modal-body > p { font-size: 14px; color: var(--sub); margin-bottom: 16px; line-height: 1.5; }
.age-requirements {
    list-style: none; margin-bottom: 20px;
    text-align: left; display: flex; flex-direction: column; gap: 8px;
}
.age-requirements li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--sub); }
.check-icon { width: 16px; height: 16px; min-width: 16px; color: var(--green); margin-top: 1px; flex-shrink: 0; }
.age-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.age-modal-actions .btn { width: 100%; }
.age-modal-actions .btn-secondary {
    background: var(--bg); color: var(--sub);
    border: 1.5px solid var(--bd); border-radius: var(--r2);
}
.age-modal-actions .btn-secondary:hover { background: var(--bd); }
.age-modal-actions .btn-primary { background: var(--orange); color: #fff; border-radius: var(--r2); border-color: var(--orange); }
.age-modal-actions .btn-primary:hover { background: var(--orange-d); }
.age-restricted-detail { background: var(--red) !important; border-color: var(--red) !important; }
.age-restricted-detail:hover { background: #b71c1c !important; }

/* ═══════════════════════════════════════════════════════════════════
   SHOP LAYOUT  (products + optional ad columns)
   ═══════════════════════════════════════════════════════════════════ */

/* Default — no ads active: standard centred container */
.shop-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* With ads active on wide screens: flex row.
   Double-class selector (specificity 0,2,0) beats the single-class
   .shop-wrap above so max-width and display always win. */
.shop-wrap.shop-wrap--ads {
    display: flex;
    gap: 20px;
    max-width: 1580px;
    align-items: flex-start;
}

/* Revert to block on narrow screens */
@media (max-width: 1200px) {
    .shop-wrap.shop-wrap--ads {
        display: block;
        max-width: 1120px;
    }
}

/* Product area: flex-grow fills all space the ad cols don't need */
.shop-products {
    flex: 1 1 0;
    min-width: 0;      /* prevent flex blowout */
    padding: 24px 0;
}

/* Ad columns */
.ad-col {
    flex: 0 0 190px;   /* fixed 190 px, never grow/shrink */
    width: 190px;
    position: sticky;
    top: calc(var(--hh) + 58px);
    padding-top: 24px;
    align-self: flex-start;
}

/* Inactive ad col: remove from flex flow entirely */
.ad-col:not(.ad-col--active) { display: none; }

/* Hide ads entirely below the breakpoint */
@media (max-width: 1200px) {
    .ad-col { display: none !important; }
}

/* The ad card itself */
.ad-spot {
    border-radius: var(--r2);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--sh);
    padding: 20px 16px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    transition: box-shadow .2s;
}
.ad-spot:hover { box-shadow: var(--sh2); }

.ad-badge {
    display: inline-block;
    font-size: 9px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px;
}
.ad-emoji { font-size: 2.6rem; line-height: 1; }
.ad-title  { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.ad-body   { font-size: 12px; color: var(--sub); line-height: 1.5; }
.ad-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 16px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
}
.ad-btn:hover { opacity: .85; }


/* ── Ad editor (employee portal) ─────────────────────────────────── */
.ad-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.ad-editor-col {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    padding: 22px;
    display: flex; flex-direction: column; gap: 14px;
}
.ad-editor-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bd);
}
.ad-editor-label { font-size: 16px; font-weight: 700; }

/* Toggle switch */
.ad-toggle {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.ad-toggle input { display: none; }
.ad-toggle-track {
    width: 38px; height: 22px; border-radius: 999px;
    background: var(--bd2);
    position: relative; flex-shrink: 0;
    transition: background .2s;
}
.ad-toggle-track::after {
    content: ''; position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform .2s;
}
.ad-toggle input:checked ~ .ad-toggle-track { background: var(--orange); }
.ad-toggle input:checked ~ .ad-toggle-track::after { transform: translateX(16px); }
.ad-toggle-text { font-size: 13px; color: var(--sub); font-weight: 500; }

/* Preview box */
.ad-preview-wrap {
    background: var(--bg);
    border: 1.5px dashed var(--bd2);
    border-radius: var(--r2);
    padding: 16px;
    display: flex; align-items: center; justify-content: center;
    min-height: 160px;
}
.ad-preview-wrap .ad-spot { width: 100%; max-width: 200px; }

/* Color swatch input */
.ad-color-input {
    width: 38px; height: 38px; border-radius: var(--r);
    border: 1.5px solid var(--bd); padding: 2px; cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .ad-editor-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   ORDER TRACKER  (order_success.php)
   ═══════════════════════════════════════════════════════════════════ */
.track-card {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    padding: 22px 24px;
}
.track-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.track-title  { font-size: 15px; font-weight: 700; }
.track-badge  {
    background: var(--orange-l); color: var(--orange);
    border: 1px solid #ffc9a0;
    border-radius: 999px; font-size: 12px; font-weight: 700;
    padding: 3px 12px;
}

/* Steps row */
.track-steps {
    display: flex; align-items: center;
    margin-bottom: 18px;
}
.track-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex-shrink: 0;
}
.track-step-icon {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--bd);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: background .3s, border-color .3s;
    filter: grayscale(1); opacity: .45;
}
.track-step.done .track-step-icon {
    background: var(--green-bg); border-color: #a8d5b5;
    filter: none; opacity: 1;
}
.track-step.current .track-step-icon {
    background: var(--orange-l); border-color: var(--orange);
    filter: none; opacity: 1;
    box-shadow: 0 0 0 4px rgba(255,105,0,.12);
    animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
    0%,100% { box-shadow: 0 0 0 4px rgba(255,105,0,.12); }
    50%      { box-shadow: 0 0 0 8px rgba(255,105,0,.06); }
}
.track-step-label {
    font-size: 11px; font-weight: 600; color: var(--dim);
    white-space: nowrap;
    transition: color .3s;
}
.track-step.done    .track-step-label { color: var(--green); }
.track-step.current .track-step-label { color: var(--orange); }

/* Connector line between steps */
.track-connector {
    flex: 1; height: 2px; background: var(--bd);
    margin: 0 4px; margin-bottom: 22px;
    transition: background .3s;
}
.track-connector.done { background: #a8d5b5; }

/* Footer notes */
.track-note {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: var(--sub);
}
.track-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--orange); flex-shrink: 0;
    animation: blink 2s ease-in-out infinite;
}
.track-cancelled {
    font-size: 13px; color: var(--red); font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   EMPLOYEE PORTAL
   ═══════════════════════════════════════════════════════════════════ */
.emp-body {
    background: #f0f2f5;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Employee login */
.emp-login-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
    background: var(--bg);
}
.emp-login-back { margin-top: 20px; text-align: center; font-size: 13px; color: var(--sub); }
.emp-login-back a { color: var(--orange); }

/* Employee header */
.emp-header {
    background: var(--white);
    border-bottom: 1px solid var(--bd);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    position: sticky; top: 0; z-index: 100;
}
.emp-header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 24px; height: 56px;
    display: flex; align-items: center; justify-content: space-between;
}
.emp-header-left  { display: flex; align-items: center; gap: 10px; }
.emp-header-title { font-size: 15px; font-weight: 700; }
.emp-header-right { display: flex; align-items: center; gap: 16px; }
.emp-greeting     { font-size: 13px; color: var(--sub); }
.emp-logout {
    font-size: 13px; font-weight: 600; color: var(--red);
    padding: 5px 13px; border: 1.5px solid var(--red);
    border-radius: 999px; transition: background .15s;
}
.emp-logout:hover { background: #fff0f0; }

/* Stats bar */
.emp-stats-bar { background: var(--white); border-bottom: 1px solid var(--bd); }
.emp-stats-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; overflow-x: auto; scrollbar-width: none;
}
.emp-stats-inner::-webkit-scrollbar { display: none; }
.emp-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 20px; gap: 1px;
    border-bottom: 3px solid transparent;
    color: var(--sub); font-size: 12px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    text-decoration: none;
}
.emp-stat:hover  { color: var(--text); background: var(--bg); }
.emp-stat.active { border-bottom-color: var(--orange); color: var(--orange); }
.emp-stat-n { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.1; }
.emp-stat.active .emp-stat-n { color: var(--orange); }
.emp-stat-l { font-size: 11px; }

/* Orders list */
.emp-main   { max-width: 1280px; margin: 0 auto; padding: 24px; }
.emp-empty  { text-align: center; color: var(--sub); padding: 60px 20px; font-size: 15px; }
.emp-orders { display: flex; flex-direction: column; gap: 14px; }

.emp-order-card {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    overflow: hidden;
}
.emp-order-head {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--bd);
}
.emp-order-id   { font-size: 13.5px; font-weight: 700; flex: 1; letter-spacing: .2px; }
.emp-order-time { font-size: 12px; color: var(--sub); }

.emp-order-body {
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 16px 18px; gap: 18px;
}
.emp-order-customer { padding-right: 18px; border-right: 1px solid var(--bd); }
.emp-detail-row { font-size: 13px; color: var(--text); margin-bottom: 5px; }

.emp-order-items { padding-left: 0; }
.emp-item-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; padding: 4px 0;
    border-bottom: 1px solid var(--bd); gap: 8px;
}
.emp-item-row span:first-child { flex: 1; }
.emp-item-total { margin-top: 8px; font-size: 13px; color: var(--sub); text-align: right; }

/* Status action buttons */
.emp-order-actions {
    display: flex; flex-wrap: wrap; gap: 7px;
    padding: 12px 18px;
    border-top: 1px solid var(--bd);
    background: var(--bg);
}
.emp-status-btn {
    padding: 5px 13px;
    border: 1.5px solid var(--bd);
    border-radius: 999px;
    font-size: 12px; font-weight: 600; color: var(--sub);
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.emp-status-btn:hover:not([disabled]) { border-color: var(--orange); color: var(--orange); background: var(--orange-l); }
.emp-status-btn.current { border-color: var(--orange); background: var(--orange); color: #fff; cursor: default; }
.emp-status-btn[disabled]:not(.current) { opacity: .38; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .cart-layout     { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .summary-panel   { position: static; }
    .product-hero    { grid-template-columns: 1fr; gap: 24px; }
    .product-image   { height: 280px; font-size: 6rem; }
    .product-title   { font-size: 24px; }
    .emp-order-body  { grid-template-columns: 1fr; }
    .emp-order-customer { padding-right: 0; border-right: none; border-bottom: 1px solid var(--bd); padding-bottom: 12px; margin-bottom: 4px; }
}
@media (max-width: 700px) {
    .account-layout  { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .product-grid    { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
    .form-2col       { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .add-to-cart-btn { width: 100%; }
}
@media (max-width: 540px) {
    .container   { padding: 0 14px; }
    .header-nav  { gap: 2px; }
    .hn-link     { padding: 6px 9px; font-size: 13px; }
    .cart-trigger { padding: 8px 14px; font-size: 13px; }
    .logo-sq     { width: 30px; height: 30px; font-size: 14px; }
    .logo-name   { font-size: 15px; }
    .hn-account-name { display: none; }
    .hn-emp-role { display: none; }
    .hn-emp-btn  { padding: 5px 9px; gap: 5px; }
    .pc-img      { height: 120px; font-size: 3rem; }
    .pc-body     { padding: 11px 11px 0; }
    .pc-foot     { padding: 10px 11px; }
    .pc-add      { width: 30px; height: 30px; font-size: 17px; }
    .product-image { height: 240px; font-size: 5rem; }
    .success-box { padding: 36px 20px; }
    .auth-card   { padding: 28px 20px; }
    .emp-header-inner { padding: 0 14px; }
    .emp-main    { padding: 14px; }
    .emp-order-body { padding: 12px 14px; }
    .emp-order-actions { padding: 10px 14px; }
    .portal-stats { grid-template-columns: repeat(2, 1fr); }
    .portal-table-wrap { overflow-x: auto; }
    .analyse-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   UNIFIED PORTAL — nav, stats, tables, product admin, modals, analyse
   ═══════════════════════════════════════════════════════════════════ */

/* Portal header adjustments */
.emp-logo { display: flex; }
.emp-role-badge {
    background: var(--orange-l);
    color: var(--orange);
    border: 1px solid #ffc9a0;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    padding: 2px 9px;
    letter-spacing: .3px;
}

/* Portal nav (tabs below header) */
.emp-nav {
    border-top: 1px solid var(--bd);
    background: var(--white);
}
.emp-nav-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 24px;
    display: flex; overflow-x: auto; scrollbar-width: none;
}
.emp-nav-inner::-webkit-scrollbar { display: none; }
.emp-nav-tab {
    display: block; padding: 11px 16px;
    font-size: 13.5px; font-weight: 500; color: var(--sub);
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    text-decoration: none;
}
.emp-nav-tab:hover  { color: var(--text); }
.emp-nav-tab.active { color: var(--orange); border-bottom-color: var(--orange); font-weight: 600; }
.emp-nav-tab--store { margin-left: auto; color: var(--dim); font-size: 13px; }
.emp-nav-tab--store:hover { color: var(--text); }

/* Override emp-main to be a content area (not the old stats bar) */
.emp-main { max-width: 1280px; margin: 0 auto; padding: 24px; }

/* Portal KPI stats row */
.portal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.pstat-card {
    background: var(--white);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: var(--sh);
    padding: 18px 20px;
}
.pstat-val {
    font-size: 26px; font-weight: 700;
    color: var(--text); font-variant-numeric: tabular-nums;
    line-height: 1.1; margin-bottom: 4px;
}
.pstat-lbl { font-size: 12px; color: var(--sub); }
.pstat-card--alert .pstat-val { color: var(--orange); }

/* Filter pills (dashboard status filter) */
.emp-filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 20px;
}
.emp-filter-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px;
    border: 1.5px solid var(--bd); background: var(--white);
    font-size: 13px; font-weight: 500; color: var(--sub);
    transition: border-color .15s, background .15s, color .15s;
    text-decoration: none;
}
.emp-filter-pill:hover  { border-color: var(--bd2); color: var(--text); }
.emp-filter-pill.active { border-color: var(--orange); background: var(--orange-l); color: var(--orange); font-weight: 600; }
.emp-filter-n {
    background: var(--bg); color: var(--sub);
    font-size: 11px; font-weight: 700;
    padding: 1px 6px; border-radius: 999px; min-width: 20px; text-align: center;
}
.emp-filter-pill.active .emp-filter-n { background: var(--orange); color: #fff; }

/* Toolbar (orders table, products page) */
.portal-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.ptb-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.ptb-select {
    padding: 8px 12px;
    border: 1.5px solid var(--bd); border-radius: var(--r);
    font-size: 13px; background: var(--white); color: var(--text);
    transition: border-color .15s;
}
.ptb-select:focus { outline: none; border-color: var(--orange); }
.ptb-search {
    padding: 8px 12px; flex: 1; min-width: 160px; max-width: 300px;
    border: 1.5px solid var(--bd); border-radius: var(--r);
    font-size: 13px; background: var(--white);
    transition: border-color .15s;
}
.ptb-search:focus { outline: none; border-color: var(--orange); }
.ptb-count { font-size: 13px; color: var(--sub); white-space: nowrap; }

/* Orders table */
.portal-table-wrap {
    background: var(--white);
    border: 1px solid var(--bd); border-radius: var(--r2);
    box-shadow: var(--sh); overflow: hidden;
}
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table th {
    background: var(--bg);
    padding: 10px 14px;
    font-size: 11px; font-weight: 700; color: var(--sub);
    text-transform: uppercase; letter-spacing: .5px;
    text-align: left; border-bottom: 1px solid var(--bd);
    white-space: nowrap;
}
.portal-table td {
    padding: 11px 14px;
    font-size: 13px; color: var(--text);
    border-bottom: 1px solid var(--bd); vertical-align: top;
}
.portal-table tbody tr:last-child td { border-bottom: none; }
.portal-table tbody tr:hover td { background: var(--bg); }
.pt-id    { font-weight: 700; font-size: 12px; color: var(--orange); white-space: nowrap; }
.pt-date  { font-size: 12px; color: var(--sub); white-space: nowrap; }
.pt-name  { font-weight: 600; }
.pt-email { font-size: 11px; color: var(--sub); }
.pt-addr  { font-size: 12px; color: var(--sub); }
.pt-items { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-item  { background: var(--bg); border: 1px solid var(--bd); border-radius: 999px; padding: 2px 8px; font-size: 11px; white-space: nowrap; }
.pt-total { font-weight: 700; white-space: nowrap; }
.pt-pay   { font-size: 12px; color: var(--sub); white-space: nowrap; }
.pt-status-sel {
    padding: 5px 8px; border: 1.5px solid var(--bd);
    border-radius: var(--r); font-size: 12px; font-weight: 600;
    background: var(--bg); color: var(--text);
    cursor: pointer; transition: border-color .15s;
}
.pt-status-sel:focus { outline: none; border-color: var(--orange); }

/* Products admin grid */
.prod-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.prod-admin-card {
    background: var(--white);
    border: 1px solid var(--bd); border-radius: var(--r2);
    box-shadow: var(--sh); overflow: hidden;
    display: flex; flex-direction: column;
}
.pac-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--bd);
    background: var(--bg);
}
.pac-emoji { font-size: 26px; flex-shrink: 0; }
.pac-info  { flex: 1; min-width: 0; }
.pac-name  { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pac-cat   { font-size: 12px; color: var(--sub); }
.pac-18    { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.pac-body  { padding: 14px 16px; flex: 1; }
.pac-desc  { font-size: 12px; color: var(--sub); margin-bottom: 8px; }
.pac-price { font-size: 17px; font-weight: 700; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pac-tag   { background: var(--orange-l); color: var(--orange); border: 1px solid #ffc9a0; border-radius: 999px; font-size: 11px; font-weight: 600; padding: 2px 8px; }
.pac-foot  { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--bd); }

/* Flash message */
.portal-flash { padding: 11px 16px; border-radius: var(--r); font-size: 13px; margin-bottom: 18px; }
.portal-flash--success { background: var(--green-bg); color: var(--green); border: 1px solid #a8d5b5; }
.portal-flash--info    { background: var(--orange-l); color: var(--orange-d); border: 1px solid #ffc9a0; }
.portal-flash--error   { background: #fef2f2; color: var(--red); border: 1px solid #fcc; }

/* Portal modal */
.portal-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 500;
    align-items: center; justify-content: center;
    padding: 20px;
}
.portal-modal.open { display: flex; }
.portal-modal-box {
    background: var(--white);
    border: 1px solid var(--bd); border-radius: var(--r2);
    box-shadow: var(--sh2);
    width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto;
}
.portal-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--bd);
    position: sticky; top: 0; background: var(--white); z-index: 1;
}
.portal-modal-title { font-size: 16px; font-weight: 700; }
.portal-modal-close {
    width: 28px; height: 28px; border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--sub);
    transition: background .12s, color .12s;
}
.portal-modal-close:hover { background: var(--bg); color: var(--text); }
.portal-modal-box form { padding: 20px 22px; }
.portal-modal-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 22px; border-top: 1px solid var(--bd);
}

/* Analyse page */
.analyse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.analyse-card {
    background: var(--white);
    border: 1px solid var(--bd); border-radius: var(--r2);
    box-shadow: var(--sh); padding: 20px;
}
.analyse-card--wide { grid-column: 1 / -1; }
.analyse-card-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.analyse-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.analyse-table th {
    text-align: left; padding: 7px 10px;
    font-size: 11px; font-weight: 700; color: var(--sub);
    text-transform: uppercase; letter-spacing: .4px;
    border-bottom: 1px solid var(--bd);
}
.analyse-table td { padding: 8px 10px; border-bottom: 1px solid var(--bd); }
.analyse-table tbody tr:last-child td { border-bottom: none; }
.analyse-table tbody tr:hover td { background: var(--bg); }