/* ═══════════════════════════════════════════════════
   LAYOUT — Navigation, Grids, Structural Elements
   InteriorsExpress Services Module
   ═══════════════════════════════════════════════════ */

/* ═══ TIER 1 — GLOBAL NAV ═══ */
#gtop { background: var(--white); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 900; box-shadow: var(--shadow-xs); }
.gt { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; height: var(--nav-h); padding: 0 1.5rem; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; margin-right: .75rem; }
.logo-mark { width: 38px; height: 38px; background: var(--charcoal); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--gold-l); letter-spacing: -1px; flex-shrink: 0; }
.logo-text .t1 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--charcoal); display: block; line-height: 1.1; }
.logo-text .t2 { font-size: 9.5px; letter-spacing: 3px; color: var(--pebble); text-transform: uppercase; font-family: 'Rajdhani', sans-serif; font-weight: 600; display: block; }
.gnav { display: flex; align-items: center; flex: 1; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.gnav::-webkit-scrollbar { display: none; }
.gnav a { display: flex; align-items: center; gap: 4px; padding: 0 10px; height: var(--nav-h); white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--stone); border-bottom: 2px solid transparent; transition: all .2s; flex-shrink: 0; }
.gnav a:hover { color: var(--charcoal); }
.gnav a.active { color: var(--svc); border-bottom-color: var(--svc); }
.g-act { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 1rem; flex-shrink: 0; }
.btn-login { background: transparent; border: 1.5px solid var(--border); color: var(--ink); padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 500; transition: all .2s; white-space: nowrap; cursor: pointer; }
.btn-login:hover { border-color: var(--charcoal); }
.btn-cta { background: var(--charcoal); color: var(--white); padding: 9px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: all .2s; white-space: nowrap; cursor: pointer; }
.btn-cta:hover { background: var(--svc); }
.g-msg-btn { position: relative; width: 38px; height: 38px; border: 1.5px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--stone); cursor: pointer; transition: all .2s; flex-shrink: 0; }
.g-msg-btn:hover { border-color: var(--svc-l); color: var(--svc); }
.msg-dot { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; background: var(--rust); border-radius: 50%; border: 2px solid var(--white); }
.g-ham { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; border: 1.5px solid var(--border); border-radius: 6px; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.g-ham span { width: 18px; height: 1.5px; background: var(--charcoal); border-radius: 2px; transition: all .3s; }
body.nav-open .g-ham span:nth-child(1) { transform: rotate(45deg) translate(4.8px,4.8px); }
body.nav-open .g-ham span:nth-child(2) { opacity: 0; }
body.nav-open .g-ham span:nth-child(3) { transform: rotate(-45deg) translate(4.8px,-4.8px); }

/* ─── Notification Bell + Dropdown ─── */
.g-matched-btn { display: flex; align-items: center; gap: 5px; padding: 7px 14px; border: 1.5px solid var(--svc-pale); border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--svc); background: var(--svc-bg); cursor: pointer; transition: all .2s; white-space: nowrap; flex-shrink: 0; }
.g-matched-btn:hover { background: var(--svc); color: #fff; border-color: var(--svc); }
.g-notif-btn { position: relative; width: 38px; height: 38px; border: 1.5px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--stone); cursor: pointer; transition: all .2s; flex-shrink: 0; background: none; }
.g-notif-btn:hover { border-color: var(--svc); color: var(--svc); }
.notif-dot { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; background: var(--rust); border-radius: 50%; border: 2px solid var(--white); }
.notif-dropdown { display: none; position: absolute; top: calc(var(--nav-h) + 6px); right: 120px; width: 360px; background: var(--white); border: 1px solid var(--border-light); border-radius: 10px; box-shadow: var(--shadow-xl); z-index: 950; overflow: hidden; animation: pageIn .18s ease; }
.notif-dropdown.open { display: block; }
.nd-head { padding: 14px 18px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.nd-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--charcoal); }
.nd-mark-all { font-size: 12px; color: var(--svc); cursor: pointer; font-weight: 500; }
.nd-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 18px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background .15s; }
.nd-item:hover { background: var(--off-white); }
.nd-item.unread { background: var(--svc-bg); }
.nd-ico { width: 32px; height: 32px; border-radius: 7px; background: var(--warm-white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.nd-body { flex: 1; min-width: 0; }
.nd-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; margin-bottom: 3px; }
.nd-time { font-size: 11.5px; color: var(--pebble); }
.nd-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--svc); flex-shrink: 0; margin-top: 5px; }
.nd-footer { padding: 12px 18px; text-align: center; font-size: 13px; font-weight: 600; color: var(--svc); cursor: pointer; border-top: 1px solid var(--border-light); }
.nd-footer:hover { background: var(--svc-bg); }

/* ═══ TIER 2 — MODULE NAV ═══ */
#mnav { background: var(--off-white); border-bottom: 1px solid var(--border); position: sticky; top: var(--nav-h); z-index: 899; }
.mn { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; height: var(--mnav-h); gap: 0; }
.mn-id { display: flex; align-items: center; gap: 7px; padding-right: 1.2rem; margin-right: 1.2rem; border-right: 1px solid var(--border); flex-shrink: 0; }
.mn-ico { font-size: 18px; }
.mn-label { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--svc); }
.mn-links { display: flex; align-items: center; flex: 1; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.mn-links::-webkit-scrollbar { display: none; }
.mn-link { padding: 0 13px; height: var(--mnav-h); display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--stone); white-space: nowrap; border-bottom: 2px solid transparent; transition: all .2s; flex-shrink: 0; cursor: pointer; }
.mn-link:hover { color: var(--ink); }
.mn-link.active { color: var(--svc); border-bottom-color: var(--svc); font-weight: 500; }
.mn-link-ico { font-size: 14px; }
.mn-r { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; padding-left: 1rem; }
.mn-list-btn { background: var(--svc); color: var(--white); padding: 7px 16px; border-radius: 5px; font-size: 12.5px; font-weight: 600; letter-spacing: .3px; cursor: pointer; transition: all .2s; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.mn-list-btn:hover { background: var(--charcoal); }
.mn-arr { font-size: 10px; transition: transform .2s; margin-left: 3px; }
.mn-has-mega.mega-open .mn-arr { transform: rotate(180deg); }

/* ═══ MOBILE NAV DRAWER ═══ */
.mobile-nav-drawer { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--border); z-index: 898; padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
body.nav-open .mobile-nav-drawer { display: block; }
.mnd-section { margin-bottom: 1.2rem; }
.mnd-title { font-family: 'Rajdhani', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--pebble); margin-bottom: .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border-light); }
.mnd-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mnd-links a, .mnd-links span { padding: 8px 10px; font-size: 13px; color: var(--stone); border-radius: 5px; transition: background .15s; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.mnd-links a:hover, .mnd-links span:hover, .mnd-links a.active, .mnd-links span.active { background: var(--svc-bg); color: var(--svc); }

/* ═══ MEGA MENU ═══ */
.mega-backdrop { display: none; position: fixed; inset: 0; top: calc(var(--nav-h) + var(--mnav-h)); background: rgba(26,24,20,.4); z-index: 88; backdrop-filter: blur(3px); }
.mega-backdrop.open { display: block; }
.mega-panel { display: none; position: fixed; top: calc(var(--nav-h) + var(--mnav-h)); left: 0; right: 0; z-index: 89; background: var(--white); border-bottom: 2px solid var(--border); box-shadow: var(--shadow-xl); max-height: 75vh; overflow-y: auto; }
.mega-panel.open { display: block; animation: pageIn .2s ease; }
.mega-inner { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.5rem; display: grid; grid-template-columns: 220px 1fr 280px; gap: 2.5rem; }
.mega-col-left { border-right: 1px solid var(--border-light); padding-right: 2rem; }
.mega-cat-head { font-family: 'Rajdhani', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--pebble); margin-bottom: 10px; }
.mega-cat-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; cursor: pointer; margin-bottom: 2px; transition: all .15s; border: 1.5px solid transparent; }
.mega-cat-row:hover, .mega-cat-row.active { background: var(--svc-bg); border-color: var(--svc-pale); }
.mega-cat-row.active { border-left: 3px solid var(--svc); }
.mega-cat-ico { font-size: 17px; width: 24px; text-align: center; flex-shrink: 0; }
.mega-cat-name { font-size: 13.5px; font-weight: 500; color: var(--ink); flex: 1; }
.mega-cat-row:hover .mega-cat-name, .mega-cat-row.active .mega-cat-name { color: var(--svc); font-weight: 600; }
.mega-cat-ct { font-size: 11.5px; color: var(--pebble); font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.mega-sub-title { font-family: 'Rajdhani', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--pebble); margin-bottom: 12px; }
.mega-sub-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mega-sub-item { padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 8px; cursor: pointer; transition: all .15s; display: flex; align-items: flex-start; gap: 9px; }
.mega-sub-item:hover { border-color: var(--svc); background: var(--svc-bg); }
.msi-ico { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.msi-name { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 2px; line-height: 1.25; }
.msi-desc { font-size: 11.5px; color: var(--pebble); line-height: 1.4; }
.mega-col-right { background: var(--gold-bg); border: 1px solid var(--gold-pale); border-radius: 10px; padding: 1.2rem; }
.mega-feat-head { font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-rich); margin-bottom: 12px; }
.mega-feat-row { display: flex; align-items: center; gap: 9px; padding: 9px; background: var(--white); border-radius: 7px; margin-bottom: 7px; cursor: pointer; transition: all .15s; border: 1px solid var(--gold-pale); }
.mega-feat-row:hover { border-color: var(--gold-l); box-shadow: var(--shadow-xs); }
.mfr-ava { width: 34px; height: 34px; border-radius: 7px; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.mfr-name { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 1px; }
.mfr-cat { font-size: 11.5px; color: var(--pebble); }
.mfr-rating { margin-left: auto; font-size: 12px; color: var(--gold-rich); font-weight: 700; white-space: nowrap; }

/* ═══ BROWSE LAYOUT ═══ */
.browse-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-lg); align-items: start; padding: var(--sp-xl) 0; }
.filter-panel { background: var(--white); border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; position: sticky; top: calc(var(--nav-h) + var(--mnav-h) + 16px); }
.fp-head { padding: 14px 18px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.fp-title { font-size: 14px; font-weight: 700; color: var(--charcoal); }
.fp-clear { font-size: 12px; color: var(--svc); cursor: pointer; font-weight: 500; }
.fp-clear:hover { text-decoration: underline; }
.filter-group { padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
.fg-title { font-size: 12px; font-weight: 700; color: var(--charcoal); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; font-family: 'Rajdhani', sans-serif; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.fg-toggle { font-size: 11px; color: var(--pebble); transition: transform .2s; }
.fg-toggle.open { transform: rotate(180deg); }
.filter-options { display: flex; flex-direction: column; gap: 5px; }
.filter-opt { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 0; }
.filter-opt input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--svc); cursor: pointer; flex-shrink: 0; }
.filter-opt-label { font-size: 13px; color: var(--stone); flex: 1; }
.filter-opt-ct { font-size: 11.5px; color: var(--pebble); }
.filter-opt:hover .filter-opt-label { color: var(--charcoal); }

/* ─── Content Area ─── */
.content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-md); flex-wrap: wrap; gap: 12px; }
.ch-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ch-results { font-size: 14px; color: var(--stone); }
.ch-results strong { color: var(--charcoal); font-weight: 600; }
.ch-right { display: flex; align-items: center; gap: 8px; }
.sort-select { border: 1.5px solid var(--border); border-radius: 5px; padding: 7px 30px 7px 12px; font-size: 13px; color: var(--stone); appearance: none; background: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%238C867E' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.view-toggle { display: flex; border: 1.5px solid var(--border); border-radius: 5px; overflow: hidden; }
.vt-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--pebble); cursor: pointer; transition: all .15s; }
.vt-btn.active { background: var(--charcoal); color: var(--white); }
.active-filters-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.af-chip { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; background: var(--svc-bg); color: var(--svc); border: 1px solid var(--svc-pale); cursor: pointer; }
.af-chip:hover { background: var(--svc-pale); }

/* ═══ MOBILE SIDEBAR DRAWER ═══ */
.sidebar-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(26,24,20,.5); z-index: 1000; backdrop-filter: blur(3px); }
.sidebar-drawer { position: fixed; top: 0; left: -100%; width: min(320px,90vw); height: 100%; background: var(--white); z-index: 1001; transition: left .3s var(--ease); overflow-y: auto; box-shadow: var(--shadow-xl); }
.sidebar-drawer.open { left: 0; }
.sidebar-drawer-overlay.open { display: block; }
.sd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; background: var(--white); z-index: 2; }
.sd-head-title { font-size: 16px; font-weight: 700; color: var(--charcoal); }
.sd-close { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--stone); cursor: pointer; }
.sd-close:hover { background: var(--cream); }

/* ═══ DASHBOARD LAYOUT ═══ */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-lg); padding: var(--sp-xl) 0; align-items: start; }
.dash-sidebar { background: var(--white); border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; position: sticky; top: calc(var(--nav-h) + var(--mnav-h) + 16px); }
.dash-profile { padding: 20px; border-bottom: 1px solid var(--border-light); text-align: center; background: var(--svc-bg); }
.dp-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--svc); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; font-weight: 700; margin: 0 auto 10px; font-family: 'Playfair Display', serif; }
.dp-name { font-size: 15px; font-weight: 700; color: var(--charcoal); margin-bottom: 3px; }
.dp-role { font-size: 12px; color: var(--pebble); }
.dash-nav { padding: 8px 0; }
.dn-item { padding: 10px 18px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--stone); transition: all .15s; }
.dn-item:hover { background: var(--off-white); color: var(--charcoal); }
.dn-item.active { background: var(--svc-bg); color: var(--svc); font-weight: 600; border-right: 3px solid var(--svc); }
.dn-ico { font-size: 16px; width: 20px; text-align: center; }
.dn-badge { margin-left: auto; background: var(--rust); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 20px; }
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: var(--sp-lg); }
.ds-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 10px; padding: 20px; text-align: center; }
.dsc-ico { font-size: 28px; margin-bottom: 10px; }
.dsc-val { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.dsc-label { font-size: 12px; color: var(--pebble); text-transform: uppercase; letter-spacing: .5px; font-family: 'Rajdhani', sans-serif; }

/* ═══ FOOTER ═══ */
.site-footer { background: var(--charcoal); color: var(--white); padding: var(--sp-2xl) 0 var(--sp-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-xl); }
.footer-brand .fb-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo-mark { background: var(--gold-rich); }
.footer-brand .t1 { color: var(--white); }
.footer-brand .t2 { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: var(--sp-md); max-width: 280px; }
.footer-col h4 { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,.65); transition: color .2s; cursor: pointer; }
.footer-col a:hover { color: var(--gold-l); }
.footer-bottom { margin-top: var(--sp-xl); padding-top: var(--sp-lg); border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.fb-copy { font-size: 12.5px; color: rgba(255,255,255,.4); }
.fb-links { display: flex; gap: 16px; }
.fb-links a { font-size: 12.5px; color: rgba(255,255,255,.4); cursor: pointer; transition: color .2s; }
.fb-links a:hover { color: rgba(255,255,255,.7); }
