/* =====================================================================
   Bangalore Buys - Main Theme Stylesheet
   Brand colors: Blue (#0a4da3) + Orange (#ff7a00) from logo
   Mobile-first responsive, premium modern design
   ===================================================================== */

:root {
    --brand:        #0a4da3;
    --brand-dark:   #073a7d;
    --brand-light:  #2f6fc4;
    --brand-soft:   #e8f0fb;
    --accent:       #ff7a00;
    --accent-dark:  #e06a00;
    --accent-soft:  #fff1e4;
    --body-bg:      #f5f8fc;
    --white:        #ffffff;
    --text:         #2b3440;
    --text-muted:   #6c7a8d;
    --border:       #e3eaf2;
    --shadow:       0 6px 24px rgba(10, 77, 163, .08);
    --shadow-lg:    0 12px 40px rgba(10, 77, 163, .16);
    --radius:       14px;
    --radius-sm:    9px;
    --font:         'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--body-bg);
    color: var(--text);
    font-size: .95rem;
    overflow-x: hidden;
}

a { text-decoration: none; }

.brand-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

/* ============ TOP BAR ============ */
.topbar {
    background: var(--brand-dark);
    color: #dbe6f7;
    font-size: .8rem;
    padding: .4rem 0;
}
.topbar-left span { margin-right: 1.2rem; }
.topbar-link { color: #dbe6f7; margin-left: 1rem; }
.topbar-link:hover { color: var(--accent); }

/* ============ NAVBAR ============ */
.main-navbar {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
    padding: .55rem 0;
    box-shadow: 0 2px 16px rgba(7, 58, 125, .35);
    min-height: 66px;
}
.logo-img { height: 44px; width: auto; }
.main-navbar .nav-link {
    color: #e8f0fb;
    font-weight: 500;
    margin: 0 .35rem;
    position: relative;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: #fff; }
.main-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 15%; right: 15%; bottom: 2px;
    height: 3px; border-radius: 3px;
    background: var(--accent);
}
.main-navbar .dropdown-menu {
    border: 0;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    margin-top: .55rem;
}
.main-navbar .dropdown-item { font-size: .9rem; padding: .55rem 1rem; }
.main-navbar .dropdown-item:hover { background: var(--brand-soft); color: var(--brand); }

.btn-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    transition: all .25s;
}
.btn-icon:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--accent);
    color: #fff; font-size: .62rem; font-weight: 700;
    border-radius: 50%;
    min-width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--brand);
}

/* ============ BUTTONS ============ */
.btn { border-radius: var(--radius-sm); font-weight: 500; }
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff; border: 0;
    box-shadow: 0 6px 16px rgba(255, 122, 0, .35);
}
.btn-accent:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
.btn-brand {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff; border: 0;
    box-shadow: 0 6px 16px rgba(10, 77, 163, .3);
}
.btn-brand:hover { color: #fff; filter: brightness(1.1); }
.btn-outline-accent { border: 2px solid var(--accent); color: var(--accent); }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* ============ HERO ============ */
.hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(255,122,0,.25), transparent 40%),
        radial-gradient(circle at 88% 20%, rgba(47,111,196,.4), transparent 45%),
        linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 5rem 0 6.5rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: var(--body-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 0);
}
.hero h1 { font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.15; }
.hero .lead { color: #cfe0f7; max-width: 620px; }
.hero-search {
    background: #fff;
    border-radius: 60px;
    padding: 6px;
    box-shadow: 0 18px 50px rgba(0,0,0,.3);
    display: flex;
    flex-wrap: wrap;
}
.hero-search .form-control, .hero-search .form-select {
    border: 0; box-shadow: none;
    font-size: .95rem;
    background: transparent;
    padding: .65rem 1rem;
}
.hero-search .form-control:focus, .hero-search .form-select:focus { box-shadow: none; }
.hero-search .search-btn {
    border-radius: 50px;
    padding: .65rem 1.8rem;
}
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.hero-stats .lbl { font-size: .8rem; color: #b9cdf0; }

.hero-badges { position: absolute; right: 4%; top: 18%; font-size: .85rem; }
.hero-badges .badge-pill {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.25);
    padding: .55rem 1rem; border-radius: 50px;
    margin-bottom: .7rem; display: inline-flex; align-items: center; gap: .5rem;
}

/* ============ SECTION HEADS ============ */
.section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head .eyebrow {
    color: var(--accent); font-weight: 600; font-size: .8rem;
    text-transform: uppercase; letter-spacing: 2px;
}
.section-head h2 { font-weight: 700; color: var(--brand-dark); }
.section-head p { color: var(--text-muted); max-width: 560px; margin: .5rem auto 0; }
.section-head .divider { width: 60px; height: 4px; background: var(--accent); border-radius: 4px; margin: .7rem auto 0; }

/* ============ CATEGORY CARDS ============ */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 576px)  { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px)  { .category-grid { grid-template-columns: repeat(6, 1fr); } }

.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.4rem .8rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all .3s;
    display: block; color: var(--text);
}
.category-card .icon-wrap {
    width: 58px; height: 58px;
    margin: 0 auto .8rem;
    border-radius: 16px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    transition: all .3s;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
    color: var(--text);
}
.category-card:hover .icon-wrap { background: var(--accent); color: #fff; }
.category-card small { color: var(--text-muted); }

/* ============ PRODUCT / SERVICE CARDS ============ */
.item-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
    height: 100%;
    display: flex; flex-direction: column;
}
.item-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.item-media { position: relative; height: 190px; overflow: hidden; background: #eef3f9; }
.item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.item-card:hover .item-media img { transform: scale(1.06); }
.item-media .badge-ribbon {
    position: absolute; top: 10px; left: 10px;
    background: var(--accent); color: #fff;
    font-size: .7rem; font-weight: 600;
    padding: .3rem .6rem; border-radius: 6px;
}
.item-media .wish-btn {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px;
    background: rgba(255,255,255,.92);
    border: 0; border-radius: 50%;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all .25s;
}
.item-media .wish-btn:hover, .item-media .wish-btn.active { color: #fff; background: #ef4444; }

.item-body { padding: 1rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.item-body .cat-label { color: var(--accent); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.item-body h5 { font-size: 1rem; font-weight: 600; margin: .3rem 0 .4rem; }
.item-body h5 a { color: var(--text); }
.item-body h5 a:hover { color: var(--brand); }
.item-body .item-desc { color: var(--text-muted); font-size: .82rem; flex: 1; }
.item-rating { font-size: .78rem; }
.item-rating i { color: #f6b100; }
.item-rating span { color: var(--text-muted); margin-left: .3rem; }

.price-row { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }
.price { color: var(--brand-dark); font-weight: 700; font-size: 1.05rem; }
.price-offer { text-decoration: line-through; color: var(--text-muted); font-size: .82rem; }

.item-footer { display: flex; gap: .5rem; margin-top: .9rem; }
.item-footer .btn { flex: 1; font-size: .8rem; padding: .45rem; }

.vendor-tag { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--border); }
.vendor-tag .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.vendor-tag .vname { font-size: .8rem; color: var(--text-muted); }
.vendor-tag .vname strong { display: block; color: var(--text); font-size: .83rem; }

/* ============ VENDOR CARDS ============ */
.vendor-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all .3s;
}
.vendor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vendor-card .avatar-lg {
    width: 78px; height: 78px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-soft);
    background: var(--brand-soft);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

/* ============ TESTIMONIAL SLIDER ============ */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    height: 100%;
    box-shadow: var(--shadow);
}
.testimonial-card .quote-icon { color: var(--accent); font-size: 1.6rem; opacity: .8; }
.testimonial-card .stars { color: #f6b100; font-size: .95rem; }
.testimonial-card p { color: var(--text-muted); font-style: italic; }
.testimonial-card .t-avatar {
    width: 52px; height: 52px;
    margin: 0 auto .6rem;
    border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* ============ WHY US / FEATURES ============ */
.feature-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    height: 100%;
    transition: all .3s;
}
.feature-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-box .f-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.feature-box h5 { font-weight: 600; }

/* ============ CTA BANNER ============ */
.cta-banner {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
}

/* ============ FOOTER ============ */
.site-footer { background: var(--brand-dark); color: #c7d7ef; margin-top: 4rem; padding-top: 3.5rem; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #c7d7ef; font-size: .9rem; transition: all .2s; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { margin-bottom: .7rem; font-size: .9rem; }
.footer-contact i { color: var(--accent); margin-right: .6rem; width: 16px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    margin-right: .5rem;
    transition: all .25s;
}
.social-links a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 1.2rem 0;
    font-size: .82rem;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    opacity: 0; visibility: hidden;
    transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); }

/* ============ BREADCRUMB ============ */
.page-hero {
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-light) 100%);
    color: #fff;
    padding: 2.6rem 0;
}
.page-hero h1 { font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin-bottom: 0; }
.breadcrumb a { color: #fff; opacity: .85; }
.breadcrumb a:hover { color: var(--accent); opacity: 1; }
.breadcrumb-item.active { color: rgba(255,255,255,.75); }

/* ============ CARDS / PANELS ============ */
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.filter-card .form-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.rating-filter .form-check { font-size: .88rem; }

/* ============ AUTH PAGES ============ */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; }
.auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.auth-side {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 3rem 2.2rem;
    display: none;
}
@media (min-width: 992px) { .auth-side { display: flex; flex-direction: column; justify-content: center; } }
.auth-side h3 { font-weight: 700; }
.auth-side .list-check li { list-style: none; margin-bottom: .8rem; }
.auth-side .list-check i { color: var(--accent); margin-right: .6rem; }
.auth-form { padding: 2.4rem 2.2rem; }
.auth-form .form-control, .auth-form .form-select { border-radius: 10px; padding: .7rem 1rem; }
.auth-form .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(10,77,163,.12); }
.password-wrap { position: relative; }
.password-wrap .toggle-pw {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--text-muted);
}

/* password strength meter */
.pw-meter { display: flex; gap: 5px; margin-top: 8px; }
.pw-meter span { height: 5px; flex: 1; border-radius: 4px; background: var(--border); transition: all .3s; }
.pw-hint { font-size: .75rem; color: var(--text-muted); }

/* ============ SIDEBAR (dashboards) ============ */
.dash-wrap { display: flex; gap: 1.4rem; margin-top: 1.8rem; align-items: flex-start; }
.dash-sidebar {
    width: 260px; flex-shrink: 0;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky; top: 86px;
}
.dash-user {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: #fff;
    padding: 1.4rem;
    text-align: center;
}
.dash-user .avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); margin: 0 auto .6rem; }
.dash-user h6 { margin: 0; font-weight: 600; }
.dash-user small { color: rgba(255,255,255,.8); }
.dash-menu { list-style: none; padding: .6rem 0; margin: 0; }
.dash-menu li a {
    display: flex; align-items: center; gap: .8rem;
    padding: .72rem 1.4rem;
    color: var(--text);
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.dash-menu li a i { width: 20px; text-align: center; color: var(--brand); }
.dash-menu li a:hover { background: var(--brand-soft); color: var(--brand); }
.dash-menu li a.active { background: var(--brand-soft); color: var(--brand); border-left-color: var(--accent); }
.dash-menu li a.text-danger i { color: var(--accent); }

.dash-content { flex: 1; min-width: 0; }
@media (max-width: 991px) {
    .dash-wrap { flex-direction: column; }
    .dash-sidebar { width: 100%; position: static; }
    .dash-menu { display: flex; flex-wrap: wrap; gap: .2rem; }
    .dash-menu li { flex: 1 1 33%; }
    .dash-menu li a { padding: .6rem .6rem; font-size: .8rem; justify-content: center; flex-direction: column; gap: .3rem; text-align: center; border-left: 0; border-bottom: 3px solid transparent; }
    .dash-menu li a.active { border-left: 0; border-bottom-color: var(--accent); }
}

/* stat cards */
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow);
    transition: all .3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card .s-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.stat-card .s-num { font-size: 1.5rem; font-weight: 700; color: var(--brand-dark); line-height: 1; }
.stat-card .s-lbl { font-size: .8rem; color: var(--text-muted); }

/* chat */
.chat-layout { display: flex; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; min-height: 70vh; box-shadow: var(--shadow); }
.chat-list { width: 300px; border-right: 1px solid var(--border); flex-shrink: 0; }
.chat-list-head { padding: 1rem; border-bottom: 1px solid var(--border); }
.chat-item { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid #f1f5fa; cursor: pointer; transition: all .2s; }
.chat-item:hover, .chat-item.active { background: var(--brand-soft); }
.chat-item .c-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.chat-item .c-name { font-weight: 600; font-size: .9rem; }
.chat-item .c-msg { color: var(--text-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.chat-item .c-time { font-size: .7rem; color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.chat-item .unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.chat-window { flex: 1; display: flex; flex-direction: column; }
.chat-head { padding: .9rem 1.2rem; border-bottom: 1px solid var(--border); background: #fbfdff; }
.chat-messages { flex: 1; padding: 1.2rem; overflow-y: auto; background: #f7fafd; display: flex; flex-direction: column; gap: .8rem; max-height: 56vh; }
.msg-bubble { max-width: 75%; padding: .65rem 1rem; border-radius: 16px; font-size: .9rem; position: relative; word-break: break-word; }
.msg-bubble .msg-time { display: block; font-size: .66rem; opacity: .65; margin-top: .3rem; text-align: right; }
.msg-mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg-theirs { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.seen-tick { color: #7de0a3; font-size: .7rem; }
.chat-input { display: flex; gap: .6rem; padding: .9rem 1rem; border-top: 1px solid var(--border); background: #fff; }
.chat-input .form-control { border-radius: 30px; padding: .6rem 1.1rem; }
.chat-input .form-control:focus { border-color: var(--brand); box-shadow: none; }

/* notifications list */
.notif-item { display: flex; gap: .9rem; padding: 1rem 1.2rem; border-bottom: 1px solid #f1f5fa; transition: all .2s; }
.notif-item:hover { background: #fafcff; }
.notif-item .n-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-item.unread { background: var(--brand-soft); }
.notif-item .n-time { font-size: .75rem; color: var(--text-muted); }

/* enquiry / table */
.table thead th { background: var(--brand); color: #fff; font-weight: 500; font-size: .82rem; border: 0; white-space: nowrap; }
.table td { vertical-align: middle; font-size: .87rem; }
.table { --bs-table-hover-bg: var(--brand-soft); }
.status-pill { padding: .3rem .7rem; border-radius: 30px; font-size: .72rem; font-weight: 600; }

/* ============ FORMS ============ */
.form-control, .form-select { border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(10,77,163,.12); }

/* ============ ADMIN LAYOUT ============ */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; flex-shrink: 0;
    background: linear-gradient(180deg, var(--brand-dark) 0%, #041c3c 100%);
    color: #c7d7ef;
    position: fixed; top: 0; bottom: 0; left: 0;
    overflow-y: auto;
    z-index: 1040;
}
.admin-sidebar .brand { padding: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.admin-sidebar .brand img { height: 40px; }
.admin-menu { list-style: none; padding: 1rem .8rem; margin: 0; }
.admin-menu li a {
    display: flex; align-items: center; gap: .8rem;
    color: #b9cdf0;
    padding: .68rem 1rem;
    border-radius: 10px;
    font-size: .88rem;
    transition: all .2s;
}
.admin-menu li a i { width: 20px; text-align: center; }
.admin-menu li a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu li a.active { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255,122,0,.35); }

.admin-main { flex: 1; margin-left: 250px; background: var(--body-bg); min-height: 100vh; }
.admin-topbar {
    background: #fff;
    padding: .8rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; justify-content: space-between;
}
.admin-content { padding: 1.5rem; }
@media (max-width: 991px) {
    .admin-sidebar { width: 220px; transform: translateX(-100%); transition: transform .3s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}

/* charts */
.chart-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }

/* ============ RESPONSIVE ============ */
@media (max-width: 767px) {
    .section { padding: 2.8rem 0; }
    .hero { padding: 3.4rem 0 5rem; }
    .hero-search .search-btn { width: 100%; border-radius: 40px; }
    .dash-menu li { flex: 1 1 50%; }
    .chat-list { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
    .chat-layout { flex-direction: column; }
    .chat-window { min-height: 60vh; }
    .auth-form { padding: 1.8rem 1.3rem; }
    .admin-content { padding: 1rem; }
}

/* animations */
[data-aos] { transition-timing-function: ease-out; }

/* image gallery on detail page */
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--accent); }

/* misc */
.text-accent { color: var(--accent) !important; }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-brand-soft { background: var(--brand-soft) !important; }
.bg-accent-soft { background: var(--accent-soft) !important; }
.badge-off { position: absolute; top: 10px; right: 10px; background: #ef4444; color: #fff; font-size: .7rem; border-radius: 6px; padding: .3rem .55rem; }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; }
.object-cover { object-fit: cover; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3.5rem; color: #d3ddec; }

/* ============ ADDITIONS (panels, chats, vendor storefront) ============ */

/* status ribbon used inside item-body too */
.badge-ribbon {
    display: inline-block;
    background: var(--accent); color: #fff;
    font-size: .7rem; font-weight: 600;
    padding: .3rem .6rem; border-radius: 6px;
}

/* image manager (vendor product edit) */
.img-manager-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.img-manager-card img { width: 100%; height: 150px; object-fit: cover; display: block; }

/* soft avatar */
.avatar-soft {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700; flex-shrink: 0;
}

/* small star row */
.stars-sm { color: #f6b100; font-size: .8rem; letter-spacing: 1px; }
.stars-sm i { margin-right: 1px; }

/* vendor profile logo */
.vendor-logo {
    width: 110px; height: 110px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--brand-soft);
    background: #fff;
}

/* chat cards (list) */
.chat-card { transition: all .2s; border-left: 3px solid transparent; }
.chat-card:hover { border-left-color: var(--accent); box-shadow: var(--shadow); }

/* chat bubbles (thread) */
.chat-row { display: flex; margin-bottom: .4rem; }
.chat-bubble {
    max-width: 70%; padding: .6rem .9rem; border-radius: 14px;
    font-size: .9rem; line-height: 1.45; word-wrap: break-word;
}
.chat-bubble.theirs { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble.mine { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-text { white-space: pre-wrap; }
.chat-time { font-size: .68rem; opacity: .7; margin-top: .25rem; text-align: right; }

/* admin mobile sidebar overlay */
.admin-sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(10,30,60,.5);
    z-index: 1040;
}
.admin-sidebar-overlay.show { display: block; }

/* admin login */
.login-logo { height: 64px; }

/* auth / account utility */
.text-bg-brand { background: var(--brand); color: #fff; }
.text-bg-accent { background: var(--accent); color: #fff; }

/* ============ HOMEPAGE BANNER SLIDER ============ */
.banner-slider .carousel-item { position: relative; }
.banner-slider .banner-img {
    height: clamp(220px, 42vw, 520px);
    object-fit: cover;
}
.banner-slider .carousel-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4,20,45,.72) 0%, rgba(4,20,45,.28) 55%, transparent 100%);
    pointer-events: none;
}
.banner-slider .banner-caption {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    z-index: 2; pointer-events: none;
}
.banner-slider .banner-title {
    color: #fff; font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    text-shadow: 0 3px 18px rgba(0,0,0,.4);
    max-width: 620px;
}
.banner-slider .banner-subtitle {
    color: #dbe6f7; font-size: clamp(.95rem, 1.6vw, 1.15rem);
    max-width: 560px; text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.banner-slider .carousel-indicators { margin-bottom: 1rem; }
.banner-slider .carousel-control-prev,
.banner-slider .carousel-control-next { z-index: 3; }
