:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --card-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --card-shadow-hover: 0 10px 25px rgba(0,0,0,.12);
    --radius: 12px;
}

body { background: var(--bg); font-family: 'Segoe UI', system-ui, sans-serif; }

/* ── Topbar ── */
.topbar { background: var(--primary-dark); color: #fff; font-size: .82rem; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ── Brand ── */
.brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.brand-icon-sm { width: 30px; height: 30px; font-size: .9rem; border-radius: 8px; }
.brand-text { font-size: 1.4rem; font-weight: 800; color: var(--secondary); letter-spacing: -.5px; }
.brand-dot { color: var(--primary); }

/* ── Buttons ── */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* ── Navbar ── */
.navbar { padding: .75rem 0; }
.nav-link { font-weight: 500; color: var(--secondary) !important; padding: .5rem .9rem !important; border-radius: 8px; transition: background .15s; }
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary) !important; }

/* ── User nav account ── */
.user-nav-avatar {
    width: 28px; height: 28px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; flex-shrink: 0;
    transition: background .15s;
}
.user-nav-link:hover .user-nav-avatar,
.user-nav-link[aria-expanded="true"] .user-nav-avatar {
    background: var(--primary); color: #fff;
}
.user-nav-link::after { display: none; }

/* ── Mega Menu ── */
.mega-menu-wrapper { position: static !important; }
.mega-chev { transition: transform .22s ease; }

.mega-menu {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    border-top: 2px solid var(--primary-light);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.10);
    z-index: 1040;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.mega-menu-wrapper.mega-open .mega-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease;
}
@media (max-width: 991px) {
    .mega-menu { display: none !important; }
}

.mega-inner {
    display: flex;
    min-height: 290px;
}

/* Left: category list */
.mega-cats {
    width: 210px;
    flex-shrink: 0;
    border-right: 1px solid #f1f5f9;
    padding: .75rem 0;
}
.mega-cat-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1.25rem;
    text-decoration: none;
    color: #374151;
    font-size: .875rem;
    font-weight: 500;
    transition: background .13s, color .13s;
}
.mega-cat-item > i:first-child { width: 16px; text-align: center; color: var(--primary); font-size: .95rem; }
.mega-arrow { font-size: .6rem; opacity: .35; margin-left: auto; transition: opacity .13s; }
.mega-cat-item:hover,
.mega-cat-item.active { background: var(--primary-light); color: var(--primary); }
.mega-cat-item.active .mega-arrow,
.mega-cat-item:hover .mega-arrow { opacity: .65; }

/* Middle: sub-category panels */
.mega-subs {
    flex: 1;
    padding: .75rem 1.5rem;
    min-width: 180px;
}
.mega-sub-panel { display: none; flex-direction: column; }
.mega-sub-panel.active { display: flex; }
.mega-sub-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    padding: .5rem 0 .55rem;
}
.mega-sub-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    text-decoration: none;
    color: #374151;
    font-size: .875rem;
    border-radius: 8px;
    transition: background .13s, color .13s;
}
.mega-sub-item:hover { background: var(--primary-light); color: var(--primary); }

/* Right: promo banner */
.mega-promo {
    width: 210px;
    flex-shrink: 0;
    border-left: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 0 14px 0;
}
.mega-promo-img { width: 100%; height: 148px; object-fit: cover; object-position: center top; }
.mega-promo-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.mega-promo-badge {
    font-size: .68rem; font-weight: 600;
    color: var(--primary); background: var(--primary-light);
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .2rem .55rem; border-radius: 50px;
    width: fit-content;
}
.mega-promo-title { font-size: .88rem; font-weight: 700; color: #0f2d13; margin: 0; }
.mega-promo-text  { font-size: .76rem; color: #6b7280; margin: 0; line-height: 1.4; }

/* Mobile accordion */
.mega-mobile { padding: .25rem 0 .5rem .5rem; }
.mega-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .4rem .6rem;
    text-decoration: none;
    color: #374151;
    font-size: .9rem;
    border-radius: 6px;
    transition: background .12s, color .12s;
}
.mega-mobile-link:hover { background: var(--primary-light); color: var(--primary); }
.mega-mobile-subs { padding-left: 1.25rem; }
.mega-mobile-sub {
    display: block;
    padding: .35rem .6rem;
    text-decoration: none;
    color: #6b7280;
    font-size: .84rem;
    border-radius: 6px;
    transition: background .12s, color .12s;
}
.mega-mobile-sub:hover { background: var(--primary-light); color: var(--primary); }

/* ── Hero Split ── */
.hero-split {
    position: relative;
    height: 540px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #f0fdf4 100%);
    overflow: hidden;
}
.hs-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity .65s ease;
    height: 100%;
}
.hs-slide.active { opacity: 1; z-index: 1; }

/* Left text column */
.hs-text {
    padding: 2.5rem 2rem 2.5rem 0;
    display: flex; flex-direction: column; justify-content: center;
    height: 100%;
    position: relative; z-index: 3;
}
.hs-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #dcfce7; color: var(--primary);
    border: 1px solid #bbf7d0; border-radius: 50px;
    font-size: .78rem; font-weight: 600;
    padding: .3rem .9rem; margin-bottom: 1rem;
    width: fit-content;
}
.hs-title {
    font-size: clamp(2.4rem, 4.2vw, 3.5rem);
    font-weight: 800; line-height: 1.15;
    color: #0f2d13; margin-bottom: .9rem;
    letter-spacing: -.02em;
}
.hs-green { color: var(--primary); }
.hs-sub {
    font-size: 1.05rem; color: #4b5563;
    line-height: 1.65; margin-bottom: 1.5rem; max-width: 440px;
}

/* Search box */
.hs-search {
    display: flex; align-items: center;
    background: #fff;
    border: 2px solid #d1fae5;
    border-radius: 50px;
    overflow: hidden;
    max-width: 460px;
    box-shadow: 0 4px 16px rgba(22,163,74,.1);
    margin-bottom: 1.5rem;
}
.hs-search input {
    flex: 1; border: none; outline: none;
    padding: .75rem 1.25rem;
    font-size: .95rem; background: transparent; color: #111;
}
.hs-search button {
    background: var(--primary); color: #fff; border: none;
    padding: .75rem 1.4rem; font-size: .9rem; font-weight: 600;
    border-radius: 0 50px 50px 0; cursor: pointer;
    transition: background .2s; white-space: nowrap;
}
.hs-search button:hover { background: var(--primary-dark); }

/* Stats */
.hs-stats {
    display: flex; gap: 2rem;
}
.hs-stats div {
    display: flex; flex-direction: column;
    font-size: .8rem; color: #6b7280;
}
.hs-stats div span {
    font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1;
}

/* Right image column */
.hs-img-col {
    position: relative;
    height: 100%;
    padding: 0;
}
/* Gradient fade: blends image left edge into text background */
.hs-img-col::before {
    content: '';
    position: absolute;
    left: -60px; top: 0; bottom: 0;
    width: 240px;
    background: linear-gradient(to right, #f0fdf4 0%, rgba(240,253,244,.75) 35%, rgba(240,253,244,0) 100%);
    z-index: 2;
    pointer-events: none;
}
.hs-img {
    position: absolute;
    top: 0; left: -60px; right: 0; bottom: 0;
    width: calc(100% + 60px);
    height: 100%;
    object-fit: cover; object-position: center top;
    border-radius: 0;
}

/* Arrows */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(255,255,255,.8); border: 1px solid #e2e8f0;
    color: var(--primary); width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer; transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.hero-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }

/* Dots */
.hero-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 7px;
}
.hero-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #cbd5e1; cursor: pointer;
    transition: background .3s, transform .3s;
}
.hero-dot.active { background: var(--primary); transform: scale(1.35); }

/* Tablet */
@media (max-width: 991px) {
    .hero-split { height: auto; min-height: 380px; }
    .hs-slide { position: relative; }
    .hs-slide:not(.active) { display: none; }
    .hs-text { padding: 2rem 1rem; }
    .hs-title { font-size: 2rem; letter-spacing: -.01em; }
    .hs-sub  { font-size: 1rem; }
}
/* Mobile */
@media (max-width: 576px) {
    .hs-title { font-size: 1.65rem; letter-spacing: 0; }
    .hs-sub  { font-size: .95rem; }
}

/* ── Promo Cards ── */
.promo-section {
    background: #f8fafc;
    padding: 3.5rem 0;
}
.promo-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
    height: 100%;
    display: flex; flex-direction: column;
}
.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.promo-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.promo-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform .4s ease;
    display: block;
}
.promo-card:hover .promo-img-wrap img { transform: scale(1.06); }
.promo-body {
    position: relative;
    padding: 1.25rem 1.4rem 1.4rem;
    background: #fff;
    display: flex; align-items: flex-end;
    justify-content: space-between; gap: 1rem;
    flex: 1;
}
.promo-text h3 {
    font-size: 1.05rem; font-weight: 700;
    color: #0f2d13; line-height: 1.35; margin-bottom: .3rem;
}
.promo-text p {
    font-size: .8rem; color: #6b7280; margin: 0; line-height: 1.5;
}
.promo-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--primary); color: #fff;
    border-radius: 50px; padding: .5rem 1.1rem;
    font-size: .82rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}
.promo-btn:hover {
    background: var(--primary-dark); color: #fff;
    transform: scale(1.04);
}

/* ── Trust Bar ── */
.trust-bar {
    background: #fff; border-top: 1px solid #e8f5e9;
    border-bottom: 1px solid #e8f5e9; padding: 1rem 0;
}
.trust-icon { font-size: 1.6rem; color: var(--primary); flex-shrink: 0; }

/* ── Hero badge ── */
.hero-badge { background: rgba(22,163,74,.2); border: 1px solid rgba(22,163,74,.4); color: #4ade80; display: inline-block; padding: .3rem .8rem; border-radius: 20px; font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }

/* ── Section ── */
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--secondary); }
.section-title span { color: var(--primary); }
.section-subtitle { color: #64748b; font-size: .95rem; }
.see-all { font-size: .875rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.see-all:hover { text-decoration: underline; }

/* ── Nested dropdown submenu ── */
.dropdown-submenu .dropdown-menu { top:0; left:100%; margin-top:-2px; display:none; min-width:200px; }
.dropdown-submenu:hover > .dropdown-menu { display:block; }
.dropdown-submenu > .dropdown-toggle::after { float:right; margin-top:4px; }
@media(max-width:991px) {
    .dropdown-submenu .dropdown-menu { position:static; left:0; box-shadow:none!important; padding-left:1rem; display:block; }
}

/* ── Verified badge ── */
.verified-badge { color: #2563eb; font-size:.9em; vertical-align:middle; margin-left:3px; }
.verified-badge-lg { color: #2563eb; font-size:1.1em; vertical-align:middle; margin-left:4px; }
.product-vendor .verified-badge { font-size:.8em; }

/* ── Category section ── */
.cat-section { background: #fff; padding: 3.5rem 0; }

/* ── Category cards ── */
.cat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.6rem 1rem 1.3rem;
    text-align: center;
    text-decoration: none;
    color: var(--secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: all .28s cubic-bezier(.4,0,.2,1);
    display: block;
    border: 1.5px solid #f1f5f9;
}
.cat-card:hover {
    box-shadow: 0 10px 28px rgba(22,163,74,.15);
    border-color: #bbf7d0;
    transform: translateY(-6px);
    background: #f0fdf4;
    color: var(--primary);
}
.cat-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--primary);
    font-size: 1.65rem;
    margin-bottom: .75rem;
    transition: transform .28s cubic-bezier(.4,0,.2,1), background .28s;
}
.cat-card:hover .cat-icon-wrap {
    transform: scale(1.12);
    background: var(--primary);
    color: #fff;
}
.cat-name {
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.3;
}

/* ── Product cards ── */
.product-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--card-shadow); transition: all .25s;
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    border: 1px solid #f1f5f9;
}
.product-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1; background: #f8fafc; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge { position: absolute; top: 10px; left: 10px; font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; }
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: .75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-size: .95rem; font-weight: 600; color: var(--secondary); margin: .25rem 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.product-original-price { font-size: .8rem; color: #94a3b8; text-decoration: line-through; }
.product-vendor { font-size: .75rem; color: #64748b; }
.product-actions { margin-top: auto; padding-top: .75rem; display: flex; gap: .5rem; }
.product-actions .btn { flex: 1; font-size: .85rem; }
.product-actions .btn-wishlist { flex: none; }

/* ── Auth pages ── */
.auth-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.08); padding: 2.5rem; }
.auth-brand { font-size: 2rem; font-weight: 800; color: var(--secondary); }
.auth-brand span { color: var(--primary); }
.role-tab { cursor: pointer; border-radius: 10px; padding: .75rem 1.5rem; border: 2px solid #e2e8f0; font-weight: 600; transition: all .2s; }
.role-tab.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* ── Sidebar filters ── */
.filter-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 1.25rem; }
.filter-title { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #64748b; margin-bottom: 1rem; }
.filter-item { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .9rem; cursor: pointer; }

/* ── Radio-style filter options ── */
.filter-opt {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .44rem .5rem;
    color: #374151;
    font-size: .875rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background .13s, color .13s;
    line-height: 1.3;
}
.filter-opt::before {
    content: '';
    width: 16px; height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.filter-opt:hover { background: var(--primary-light); color: var(--primary); }
.filter-opt:hover::before { border-color: var(--primary); }
.filter-opt.fopt-active { color: var(--primary); font-weight: 600; }
.filter-opt.fopt-active::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px #fff;
}

/* ── Category nav sidebar ── */
.cat-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .6rem 1.1rem;
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s;
}
a.cat-nav-item { text-decoration: none; color: #374151; font-size: .875rem; font-weight: 500; }

/* Hover — works for both div and a variants */
.cat-nav-item:hover,
a.cat-nav-item:hover {
    background: var(--primary-light);
    border-left-color: rgba(22, 163, 74, .35);
}
a.cat-nav-item:hover { color: var(--primary); font-weight: 600; }

/* Active — green left border + tinted bg */
.cat-nav-item.cat-nav-active,
a.cat-nav-item.cat-nav-active {
    background: var(--primary-light);
    border-left-color: var(--primary);
}
a.cat-nav-item.cat-nav-active { color: var(--primary); font-weight: 600; }

/* Inner link (categories rendered as div wrapper + a link) */
.cat-nav-link {
    color: #374151;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    transition: color .15s;
}
.cat-nav-item:hover .cat-nav-link,
.cat-nav-item.cat-nav-active .cat-nav-link { color: var(--primary); font-weight: 600; }

.cat-nav-right { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }

/* Count badge */
.cat-nav-count {
    font-size: .7rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: .1rem .5rem;
    border-radius: 50px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.cat-nav-item:hover .cat-nav-count,
.cat-nav-item.cat-nav-active .cat-nav-count,
a.cat-nav-item:hover .cat-nav-count,
a.cat-nav-item.cat-nav-active .cat-nav-count { background: rgba(255,255,255,.85); color: var(--primary); }

/* Expand/collapse toggle arrow */
.cat-nav-toggle {
    background: none;
    border: none;
    padding: .15rem .25rem;
    color: #cbd5e1;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    transition: color .15s;
}
.cat-nav-item:hover .cat-nav-toggle,
.cat-nav-item.cat-nav-active .cat-nav-toggle { color: var(--primary); }
/* Arrow points RIGHT (▶) by default; rotates DOWN (▼) when open */
.cat-nav-toggle i { font-size: .65rem; display: block; transform: rotate(-90deg); transition: transform .25s ease; }
.cat-nav-toggle.open i { transform: rotate(0deg); }

/* Subcategory list — subtle tint to nest visually */
.cat-nav-subs { background: #f8fafc; }
.cat-nav-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .42rem 1rem .42rem 2.75rem;
    color: #64748b;
    font-size: .835rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .13s, color .13s, border-color .13s;
}
.cat-nav-sub:hover { background: var(--primary-light); color: var(--primary); border-left-color: rgba(22,163,74,.35); }
.cat-nav-sub:hover .cat-nav-count,
.cat-nav-sub.cat-nav-sub-active .cat-nav-count { background: rgba(255,255,255,.85); color: var(--primary); }
.cat-nav-sub.cat-nav-sub-active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* Group separators */
.cat-nav-group { border-top: 1px solid #f1f5f9; }
.cat-nav-group:first-of-type { border-top: none; }

/* ── Cart ── */
.cart-item { background: #fff; border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; box-shadow: var(--card-shadow); }
.cart-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; background: #f1f5f9; }
.cart-summary { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--card-shadow); position: sticky; top: 80px; }

/* ── Dashboard ── */
.stat-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--secondary); }
.stat-label { font-size: .85rem; color: #64748b; }

/* ── Tables ── */
.table-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.table-card table { margin: 0; }
.table-card th { background: #f8fafc; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #64748b; font-weight: 600; border-bottom: 1px solid #e2e8f0 !important; }

/* ── Status badges ── */
.status-pending    { background: #fef3c7; color: #92400e; }
.status-confirmed  { background: #dbeafe; color: #1e40af; }
.status-processing { background: #ede9fe; color: #6d28d9; }
.status-shipped    { background: #e0f2fe; color: #0369a1; }
.status-delivered  { background: #dcfce7; color: #166534; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-badge { font-size: .75rem; padding: .25rem .6rem; border-radius: 20px; font-weight: 600; display: inline-block; }

/* ── Footer ── */
.footer { background: var(--secondary); }
.footer-top { border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-links li:not(li:has(a)) { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: .95rem; transition: all .2s; }
.social-btn:hover { background: var(--primary); color: #fff; }

/* ── Misc ── */
.page-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 2.5rem 0; margin-bottom: 2rem; }
.breadcrumb-item a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.5); }

.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i { font-size: 4rem; color: #cbd5e1; margin-bottom: 1rem; }
.empty-state h5 { color: #64748b; font-weight: 600; }
.empty-state p { color: #94a3b8; }

.price-highlight { color: var(--primary); font-weight: 700; font-size: 1.4rem; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp .4s ease-out; }

/* Sidebar vendor/admin */
.sidebar { background: var(--secondary); min-height: 100vh; width: 250px; position: fixed; top: 0; left: 0; z-index: 1000; overflow-y: auto; }
.sidebar-logo { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-nav { padding: 1rem 0; }
.sidebar-nav a { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem; color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; font-weight: 500; transition: all .2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(22,163,74,.15); color: #fff; border-left: 3px solid var(--primary); padding-left: calc(1.5rem - 3px); }
.sidebar-nav a i { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-section { padding: .5rem 1.5rem; margin-top: 1rem; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.3); }
.main-content { margin-left: 250px; min-height: 100vh; }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
}
