@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ─── Modern scrollbars (project-wide) ─────────────────────── */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 179, 24, 0.5) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(91, 179, 24, 0.4);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 179, 24, 0.65);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

/* ─── Override Bootstrap Blue → MIMBA Green ─────────────────
   Applies globally: frontend, vendor panel, admin panel
───────────────────────────────────────────────────────────── */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #5bb318;
    --bs-btn-border-color: #5bb318;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2d5a27;
    --bs-btn-hover-border-color: #2d5a27;
    --bs-btn-focus-shadow-rgb: 91, 179, 24;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2d5a27;
    --bs-btn-active-border-color: #2d5a27;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #5bb318;
    --bs-btn-disabled-border-color: #5bb318;
    font-weight: 600;
}

.btn-outline-primary {
    --bs-btn-color: #5bb318;
    --bs-btn-border-color: #5bb318;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5bb318;
    --bs-btn-hover-border-color: #5bb318;
    --bs-btn-focus-shadow-rgb: 91, 179, 24;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #5bb318;
    --bs-btn-active-border-color: #5bb318;
    --bs-btn-disabled-color: #5bb318;
    --bs-btn-disabled-border-color: #5bb318;
}

/* Bootstrap primary utility overrides */
.bg-primary {
    background-color: #5bb318 !important;
}

.bg-primary-subtle {
    background-color: #f0fdf4 !important;
}

.text-primary {
    color: #5bb318 !important;
}

.border-primary {
    border-color: #5bb318 !important;
}

.link-primary {
    color: #5bb318 !important;
}

.link-primary:hover {
    color: #2d5a27 !important;
}

/* ─── Modern toggle switch (Bootstrap form-switch, project-wide) ────────── */
.form-check.form-switch {
    --toggle-track-width: 52px;
    --toggle-track-height: 28px;
    --toggle-knob-size: 22px;
    --toggle-knob-offset: 3px;
    --toggle-primary: #5bb318;
    --toggle-primary-hover: #2d5a27;
    min-height: auto;
    padding-left: 0;
}
.form-check.form-switch .form-check-input {
    position: relative;
    width: var(--toggle-track-width);
    height: var(--toggle-track-height);
    margin: 0;
    margin-right: 0.75rem;
    background-color: #e5e7eb;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.25s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    background-image: none;
}
.form-check.form-switch .form-check-input:hover {
    background-color: #d1d5db;
}
.form-check.form-switch .form-check-input:checked {
    background-color: var(--toggle-primary);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.form-check.form-switch .form-check-input:checked:hover {
    background-color: var(--toggle-primary-hover);
}
.form-check.form-switch .form-check-input::after {
    content: "";
    position: absolute;
    top: var(--toggle-knob-offset);
    left: var(--toggle-knob-offset);
    width: var(--toggle-knob-size);
    height: var(--toggle-knob-size);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-check.form-switch .form-check-input:checked::after {
    transform: translateX(calc(var(--toggle-track-width) - var(--toggle-knob-size) - 2 * var(--toggle-knob-offset)));
}
.form-check.form-switch .form-check-input:focus {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 0.25rem rgba(91, 179, 24, 0.25);
}
.form-check.form-switch .form-check-input:checked:focus {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 0.25rem rgba(91, 179, 24, 0.25);
}
.form-check.form-switch .form-check-label {
    cursor: pointer;
    user-select: none;
}

/* ========== Global focus: group vs standalone ==========
 * When an input/select/textarea is inside a "group" wrapper (icon+input, button+input, etc.),
 * the focus effect (border + box-shadow) applies to the PARENT wrapper, not the field.
 * Standalone fields keep the focus ring on themselves.
 * Accessibility: visible focus ring, good contrast; invalid/disabled states preserved.
 * ========================================================= */

:root {
    --focus-border-color: #5bb318;
    --focus-ring-shadow: 0 0 0 0.25rem rgba(91, 179, 24, 0.25);
}

/* Standalone fields (not inside a group): focus ring on the field */
.form-control:focus,
.form-select:focus,
.form-control:focus-visible,
.form-select:focus-visible,
textarea.form-control:focus,
textarea.form-control:focus-visible {
    border-color: var(--focus-border-color) !important;
    box-shadow: var(--focus-ring-shadow) !important;
    outline-color: var(--primary-color) !important;
}

.input-group .form-control:focus,
.input-group .form-select:focus,
.input-group .form-control:focus-visible,
.input-group .form-select:focus-visible,
.input-group textarea.form-control:focus,
.input-group textarea.form-control:focus-visible,
.shop-search-bar .form-control:focus,
.shop-search-bar .form-select:focus,
.shop-search-bar .form-control:focus-visible,
.shop-search-bar .form-select:focus-visible,
.shop-search-bar textarea.form-control:focus,
.shop-search-bar textarea.form-control:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 0.25rem rgba(91, 179, 24, 0) !important;
    background-color: transparent !important;
}

.shop-search-bar .form-control {
    color: var(--bg-light);
}

/* ----- Group wrappers: focus effect on the container -----
 * Supported patterns: .input-group, .auth-input-wrap, .nav-search-combo, .shop-search-bar,
 * .header-search-wrap (wraps input-group), .vendor-header-search (wraps input-group),
 * and any element with .focus-within-group utility.
 */
.input-group:focus-within,
.shop-search-bar:focus-within,
.focus-within-group:focus-within {
    border-radius: 50rem;
    border-color: var(--focus-border-color) !important;
    box-shadow: var(--focus-ring-shadow) !important;
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 3px !important;
}

.nav-search-combo .input-group:focus-within,
.nav-search-combo .shop-search-bar:focus-within,
.nav-search-combo .focus-within-group:focus-within {
    border-radius: unset;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    outline-offset: unset !important;
}

/* Border on group children when wrapper has focus (exclude invalid so validation styles win) */
.input-group:focus-within .form-select:not(.is-invalid),
.input-group:focus-within > .btn,
.auth-input-wrap:focus-within .form-control:not(.is-invalid),
.auth-input-wrap:focus-within .form-select:not(.is-invalid),
.shop-search-bar:focus-within input:not([disabled]):not([readonly]),
.focus-within-group:focus-within .form-control:not(.is-invalid),
.focus-within-group:focus-within .form-select:not(.is-invalid),
.focus-within-group:focus-within > .btn {
    border-color: transparent !important;
}

.auth-input-wrap .form-control:focus,
.auth-input-wrap .form-select:focus,
.auth-input-wrap textarea.form-control:focus,
.nav-search-combo .form-control:focus,
.nav-search-combo .form-select:focus,
.nav-search-combo select:focus,
.shop-search-bar input:focus,
.focus-within-group .form-control:focus,
.focus-within-group .form-select:focus,
.focus-within-group textarea.form-control:focus {
    box-shadow: none !important;
}

/* Disabled/readonly: no focus highlight (browser does not focus them; this reinforces no ring if any) */
.input-group .form-control:disabled,
.input-group .form-select:disabled,
.auth-input-wrap .form-control:disabled,
.auth-input-wrap .form-select:disabled {
    border-color: var(--bs-border-color) !important;
}

/* Form check (checkbox/radio/switch) checked */
.form-check-input:checked,
.form-switch .form-check-input:checked {
    background-color: #5bb318 !important;
    border-color: #5bb318 !important;
}

/* ─── Modern Admin/Vendor Action Buttons ──────────────────── */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-action-view {
    background: #f0fdf4;
    color: #15803d;
}

.btn-action-view:hover {
    background: #15803d;
    color: #fff;
}

.btn-action-edit {
    background: #eff6ff;
    color: #2563eb;
}

.btn-action-edit:hover {
    background: #2563eb;
    color: #fff;
}

.btn-action-approve {
    background: #f0fdf4;
    color: #16a34a;
}

.btn-action-approve:hover {
    background: #16a34a;
    color: #fff;
}

.btn-action-reject {
    background: #fff7ed;
    color: #ea580c;
}

.btn-action-reject:hover {
    background: #ea580c;
    color: #fff;
}

.btn-action-delete {
    background: #fef2f2;
    color: #dc2626;
}

.btn-action-delete:hover {
    background: #dc2626;
    color: #fff;
}

.btn-action-suspend {
    background: #fffbeb;
    color: #d97706;
}

.btn-action-suspend:hover {
    background: #d97706;
    color: #fff;
}

.btn-action-reply {
    background: #f0f9ff;
    color: #0284c7;
}

.btn-action-reply:hover {
    background: #0284c7;
    color: #fff;
}

/* Panel Filter Button – minimum width (content-sized) */
.btn-filter {
    background: #5bb318;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.45rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: auto;
    min-width: 0;
}
.btn-filter.w-100 {
    width: auto !important;
}

.btn-filter:hover {
    background: #2d5a27;
    color: #fff;
    transform: translateY(-1px);
}

/* Panel Add/New Button */
.btn-panel-primary {
    background: linear-gradient(135deg, #5bb318, #2d5a27);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-panel-primary:hover {
    background: linear-gradient(135deg, #2d5a27, #5bb318);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 179, 24, 0.35);
}

:root {
    --primary-color: #5bb318;
    /* MIMBA Green */
    --primary-rgb: 91, 179, 24;
    --primary-light: #f7fee7;
    --primary-dark: #2d5a27;
    --secondary-color: #d97706;
    /* Amber */
    --secondary-hover: #b45309;
    --accent-color: #78350f;
    /* Earth Brown */
    --text-dark: #1a2e1a;
    /* Deep Forest */
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;

    /* Elevation System */
    --shadow-sm: 0 4px 6px -1px rgba(91, 179, 24, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(91, 179, 24, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(91, 179, 24, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(91, 179, 24, 0.15);
    --shadow-primary: 0 12px 24px -6px rgba(91, 179, 24, 0.3);

    /* Spacing & Transitions */
    --transition-base: all 0.2s ease-in-out;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Glass / Navbar */
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Modern Mobile Sidebar (no border-radius) ── */
.mobile-sidebar-modern.offcanvas,
#mobileSidebar.offcanvas {
    width: min(360px, 92vw) !important;
    max-width: 92vw;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 16px 0 56px rgba(0, 0, 0, 0.18);
}

.mobile-sidebar-modern .offcanvas-header,
#mobileSidebar .offcanvas-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    border-radius: 0;
}

.mobile-sidebar-modern .btn-close,
#mobileSidebar .btn-close {
    padding: 0.5rem;
    opacity: 0.7;
}

.mobile-sidebar-modern .btn-close:hover,
#mobileSidebar .btn-close:hover {
    opacity: 1;
}

/* Mobile sidebar search */
.mobile-sidebar-search .input-group {
    border-radius: 0;
}

.mobile-sidebar-search .form-control:focus {
    box-shadow: none;
}

.mobile-sidebar-suggestions {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1050;
    max-height: 280px;
    overflow-y: auto;
}

/* Mobile header search + suggestions (in navbar) */
.mobile-header-row {
    min-width: 0; /* allow flex shrink to prevent overflow */
}

.mobile-header-search {
    position: relative;
    min-width: 0;
    flex: 1 1 0;
}

.mobile-header-search .input-group {
    min-width: 0;
}

.mobile-header-search .form-control {
    min-width: 0;
    font-size: 0.9rem;
}

.mobile-header-suggestions {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 1060;
    max-height: min(320px, 60vh);
    overflow-y: auto;
}

@media (max-width: 575.98px) {
    .home-alt-nav .container {
        flex-wrap: nowrap;
    }

    .home-alt-nav .mobile-header-search {
        flex: 1 1 auto;
        min-width: 0;
    }

    .home-alt-nav .mobile-header-search .form-control {
        font-size: 0.85rem;
    }

    .home-alt-nav .d-lg-none.d-flex {
        gap: 0.5rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        min-width: 0;
    }

    .home-alt-nav .navbar-toggler {
        padding: 0.35rem;
        flex-shrink: 0;
    }
}

/* Mobile sidebar category tree */
.mobile-cat-tree {
    padding: 0 0.75rem;
}

.mobile-cat-item,
.mobile-cat-parent {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.mobile-cat-item:hover,
.mobile-cat-parent:hover {
    background: rgba(91, 179, 24, 0.06);
}

.mobile-cat-item.active,
.mobile-cat-parent.active {
    background: rgba(91, 179, 24, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.mobile-cat-parent {
    cursor: pointer;
    user-select: none;
}

.mobile-cat-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.mobile-cat-parent[aria-expanded="true"] .mobile-cat-chevron {
    transform: rotate(180deg);
}

.mobile-cat-children {
    padding-left: 2rem;
    padding-bottom: 0.25rem;
}

.mobile-cat-child {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.mobile-cat-child:hover {
    color: var(--primary-color);
    background: rgba(91, 179, 24, 0.04);
}

.mobile-cat-child.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(91, 179, 24, 0.08);
}

/* Mobile sidebar menu links */
.mobile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.mobile-sidebar-link:hover {
    background: rgba(91, 179, 24, 0.06);
    color: #111;
}

.mobile-sidebar-link.active {
    background: rgba(91, 179, 24, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.mobile-sidebar-link iconify-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Navbar Customization */
/* Glassmorphism Navbar */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.05) 0%, rgba(45, 90, 39, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary-color);
}

/* Global Button System */
.btn-primary-custom {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 2.2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-custom:hover {
    background-color: var(--text-dark);
    /* Non-green hover */
    border-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.8rem 2.2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-secondary-custom:hover {
    background-color: var(--text-dark);
    /* Unified non-green hover */
    border-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.15);
}

.btn-outline-primary-custom {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Nav icon buttons (cart, wishlist, compare) */
.nav-icon-btn {
    background: rgba(91, 179, 24, 0.08);
    transition: var(--transition-smooth);
    height: 45px;
    width: 45px;
    display: grid;
    place-items: center;
    padding: 0 !important;
}

.nav-icon-btn:hover {
    background: rgba(91, 179, 24, 0.15);
    color: var(--primary-color) !important;
}

.nav-icon-btn.active {
    background: rgba(91, 179, 24, 0.2);
    color: var(--primary-color) !important;
}

.nav-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--primary-color);
    color: white;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-badge:empty,
.nav-icon-badge[style*="display: none"] {
    display: none !important;
}

/* Customer notification panel (dropdown) */
.dropdown-notification .dropdown-menu {
    min-width: 360px;
    max-width: min(400px, calc(100vw - 24px));
    width: 100%;
}

.customer-notification-panel {
    padding: 0 !important;
    overflow: hidden;
}

.customer-notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.customer-notification-panel-header h6 {
    color: #0f172a;
    font-size: 1rem;
}

.customer-notification-panel-body {
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.customer-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s;
}

.customer-notification-item:hover {
    background: rgba(91, 179, 24, 0.06);
}

.customer-notification-item--unread {
    background: rgba(91, 179, 24, 0.04);
}

.customer-notification-item--unread .customer-notification-title {
    font-weight: 600;
}

.customer-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(91, 179, 24, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.customer-notification-content {
    flex: 1;
    min-width: 0;
}

.customer-notification-title {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.customer-notification-message {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

.customer-notification-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    display: inline-block;
}

.customer-notification-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.customer-notification-empty-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.75rem;
}

.customer-notification-panel-footer {
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.customer-notification-view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.customer-notification-view-all:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 576px) {
    .dropdown-notification .dropdown-menu {
        min-width: 300px;
        max-width: calc(100vw - 24px);
    }
}

/* Ensure perfect circles for icons */
.rounded-circle.btn {
    padding: 0 !important;
    width: 45px !important;
    height: 45px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* Modern Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(91, 179, 24, 0.2);
}

.quantity-input {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    background: transparent;
}

.quantity-input:focus {
    outline: none;
}

/* Cards */
/* Modern Cards */
.card-custom {
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
    height: 100%;
}

/* No hover transform for generic cards - only product cards get lift effect */
.card-custom:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* Product cards: subtle lift on hover (no scale) */
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(91, 179, 24, 0.12);
}

.card-img-container {
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}


/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* Newsletter */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    border-radius: 30px;
    margin-top: 50px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Footer - Modern Design */
.footer-modern {
    margin-top: 5rem;
    background: linear-gradient(165deg, #0f1f0f 0%, #1a2e1a 35%, #0d1b0d 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 179, 24, 0.4), transparent);
    opacity: 0.6;
}

.footer-modern .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-modern .footer-desc {
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-modern .footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 1.25rem;
}

.footer-modern .footer-link {
    display: inline-block;
    color: rgba(226, 232, 240, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
}

.footer-modern .footer-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-modern .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-modern .footer-contact-item i {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-modern .footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-modern .footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(91, 179, 24, 0.15);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-modern .footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-modern .footer-newsletter {
    background: rgba(91, 179, 24, 0.08);
    border: 1px solid rgba(91, 179, 24, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.footer-modern .footer-newsletter .form-control {
    background: rgba(15, 31, 15, 0.6);
    border: 1px solid rgba(91, 179, 24, 0.25);
    color: #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.footer-modern .footer-newsletter .form-control::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

.footer-modern .footer-newsletter .form-control:focus {
    border-color: var(--focus-border-color);
    box-shadow: var(--focus-ring-shadow);
}

.footer-modern .footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.08);
    padding-top: 1.5rem;
}

.footer-modern .footer-badges {
    display: flex;
    flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.footer-modern .footer-badges img {
    height: 24px;
    opacity: 0.7;
    filter: grayscale(1) brightness(1.5);
}

.footer-modern .footer-copyright {
    color: rgba(226, 232, 240, 0.5);
    font-size: 0.875rem;
}

.footer-payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 991.98px) {
    .footer-modern .footer-desc {
        max-width: 100%;
    }

    .footer-modern .footer-social {
        justify-content: flex-start;
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .sticky-lg-top {
        position: static !important;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .card-img-container {
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        margin-bottom: 10px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }
}

/* Fix for horizontal scroll on some mobile browsers */
.row {
    margin-right: -10px;
    margin-left: -10px;
}

/* Offcanvas Mobile Sidebar Styling */
.offcanvas {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    border-radius: 0 30px 30px 0;
}

.offcanvas-header {
    border-bottom: 1px solid var(--glass-border);
}

.offcanvas .nav-link {
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Page Link Section Styling */
.pages-grid .card-custom {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: none;
}

/* --- Product Detail Overhaul (pd-) --- */

/* Gallery Layout */
.pd-gallery-container {
    display: flex;
    gap: 20px;
}

.pd-main-img-box {
    flex-grow: 1;
    height: 420px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
}

.pd-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.pd-thumbnails-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: var(--white);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-thumb.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(91, 179, 24, 0.2);
}

.pd-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pd-gallery-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.pd-gallery-prev {
    left: 15px;
}

.pd-gallery-next {
    right: 15px;
}

/* Variant Selection */
.pd-variant-chip {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    background: var(--white);
}

.pd-variant-chip:hover {
    border-color: var(--primary-color);
}

.pd-variant-chip.is-active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ─── MIMBA Toaster (modern) – success / error / warning / info ──────────── */
.toast-container,
.mimba-toaster-container {
    position: fixed;
    top: 24px;
    right: 24px;
    left: auto;
    bottom: auto;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(400px, calc(100vw - 40px));
    pointer-events: none;
}

.mimba-toaster-container {
    pointer-events: auto;
}

.mimba-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    padding-bottom: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: none;
    opacity: 0;
    transform: translateX(100%) scale(0.96);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    overflow: hidden;
}

.mimba-toast--visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.mimba-toast--exiting {
    opacity: 0;
    transform: translateX(100%) scale(0.96);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.mimba-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.35;
    transform-origin: left;
    animation: mimba-toast-progress-shrink 5s linear forwards;
}

@keyframes mimba-toast-progress-shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.mimba-toast-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.mimba-toast-message {
    flex: 1;
    font-size: 0.9375rem;
    color: #111827;
    line-height: 1.5;
    font-weight: 500;
    padding-top: 2px;
}

.mimba-toast-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin: -6px -6px 0 0;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6b7280;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.mimba-toast-close:hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.06);
}

.mimba-toast--success {
    box-shadow: 0 24px 48px rgba(22, 163, 74, 0.12), 0 0 0 1px rgba(22, 163, 74, 0.08);
}

.mimba-toast--success .mimba-toast-icon {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.14);
}

.mimba-toast--success .mimba-toast-progress { color: #16a34a; }

.mimba-toast--error {
    box-shadow: 0 24px 48px rgba(220, 38, 38, 0.1), 0 0 0 1px rgba(220, 38, 38, 0.08);
}

.mimba-toast--error .mimba-toast-icon {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.mimba-toast--error .mimba-toast-progress { color: #dc2626; }

.mimba-toast--warning {
    box-shadow: 0 24px 48px rgba(217, 119, 6, 0.1), 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.mimba-toast--warning .mimba-toast-icon {
    color: #d97706;
    background: rgba(245, 158, 11, 0.14);
}

.mimba-toast--warning .mimba-toast-progress { color: #d97706; }

.mimba-toast--info {
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.mimba-toast--info .mimba-toast-icon {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.12);
}

.mimba-toast--info .mimba-toast-progress { color: #2563eb; }

@media (max-width: 576px) {
    .toast-container,
    .mimba-toaster-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .mimba-toast {
        padding: 16px 18px;
        padding-bottom: 12px;
    }
}

/* Form hint (replaces Bootstrap alert for inline tips) */
.form-hint-box {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

@media (max-width: 991.98px) {
    .pd-gallery-container {
        flex-direction: column;
    }

    .pd-thumbnails-grid {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
        order: 2;
    }

    .pd-main-img-box {
        height: 320px;
        order: 1;
    }

    .pd-thumb {
        flex-shrink: 0;
    }
}

.col,
[class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* --- Checkout & Utility Overrides --- */
.checkout-card {
    height: auto !important;
    transform: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    transition: none !important;
}

.checkout-card:hover {
    transform: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
}

/* ── Modern Checkout Sidebar ── */
.checkout-sidebar-modern {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(45, 90, 39, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.checkout-sidebar-modern.card-custom,
.checkout-sidebar-modern.checkout-card {
    transform: none !important;
}

.checkout-sidebar-modern:hover {
    transform: none !important;
}

.checkout-sidebar-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, #3d7a2e 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-sidebar-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.checkout-sidebar-icon iconify-icon {
    color: white;
}

.checkout-sidebar-body {
    overflow: visible;
}

.checkout-sidebar-no-scroll {
    max-height: none !important;
    overflow: visible !important;
}

.checkout-product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 14px;
    border: 1px solid rgba(91, 179, 24, 0.08);
    transition: var(--transition-base);
}

.checkout-product-item:hover {
    background: var(--primary-light);
    border-color: rgba(91, 179, 24, 0.15);
}

.checkout-product-img-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.checkout-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.checkout-product-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checkout-product-price {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.checkout-totals {
    padding: 1rem 0;
    border-top: 1px dashed rgba(91, 179, 24, 0.2);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkout-total-row.checkout-total-final {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    margin-bottom: 0;
}

.checkout-place-btn {
    box-shadow: 0 8px 20px rgba(91, 179, 24, 0.35);
}

.checkout-place-btn:hover {
    box-shadow: 0 12px 28px rgba(91, 179, 24, 0.4);
}

.checkout-trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(91, 179, 24, 0.06) 100%);
    border-radius: 14px;
    border: 1px solid rgba(91, 179, 24, 0.12);
}

.checkout-trust-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.transition-hover {
    transition: var(--transition-smooth) !important;
}

.transition-hover:hover {
    transform: translateY(-3px);
}

.cursor-pointer {
    cursor: pointer;
}

.extra-small {
    font-size: 0.75rem;
}

/* Vendor Hub Layout */
:root {
    --sidebar-width: 280px;
}

.vendor-wrapper {
    display: flex;
    min-height: 100vh;
}

.vendor-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: 85vw;
    background: linear-gradient(180deg, #fff 0%, #f8fdf5 100%);
    border-right: 1px solid rgba(91, 179, 24, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 1002;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    box-shadow: 4px 0 20px rgba(45, 90, 39, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vendor-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: #f8fafc;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Vendor header: single row [toggle | search | notif | profile] – no wrap, sticky on admin/vendor panels */
.vendor-top-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .vendor-top-header {
        padding: 0.875rem 1rem;
    }
}

@media (min-width: 992px) {
    .vendor-top-header {
        margin-bottom: 2rem;
        padding: 0.875rem 1.25rem;
    }
}

.vendor-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

@media (min-width: 768px) {
    .vendor-header-inner {
        gap: 0.75rem;
    }
}

.vendor-nav-toggle {
    padding: 0.5rem 0.75rem;
}

.vendor-header-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 400px;
}

.vendor-header-search .vendor-search-input-group {
    min-width: 0;
}

.vendor-header-search .input-group-text {
    padding-left: 0.75rem;
}

@media (min-width: 768px) {
    .vendor-header-search .input-group-text {
        padding-left: 1rem;
    }
}

.vendor-header-search .form-control {
    min-width: 0;
}

.vendor-header-notif {
    flex-shrink: 0;
    line-height: 1;
}

/* Vendor header search: dropdown positioning (same as .header-search-wrap) */
.vendor-header-search {
    position: relative;
    overflow: visible;
}

.vendor-header-search .search-suggestions-box {
    max-height: min(420px, 70vh);
    min-width: 280px;
    width: 100%;
}

@media (max-width: 768px) {
    .vendor-header-search .search-suggestions-box {
        left: 0;
        right: 0;
        min-width: 0;
    }
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    transition: var(--transition-base);
    border-radius: 12px;
    margin: 0.2rem 1rem;
    font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-link i {
    width: 24px;
    margin-right: 12px;
}

/* Sidebar brand & modern badge (admin / vendor) */
.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sidebar-logo {
    display: block;
}

.sidebar-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(91, 179, 24, 0.14) 0%, rgba(91, 179, 24, 0.06) 100%);
    border: 1px solid rgba(91, 179, 24, 0.22);
    padding: 0.32rem 0.65rem;
    border-radius: 50px;
    box-shadow: 0 1px 2px rgba(91, 179, 24, 0.08);
}

.sidebar-brand-badge i {
    font-size: 0.75rem;
    opacity: 0.95;
}

.sidebar-brand-badge-vendor {
    color: #0d6efd;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.14) 0%, rgba(13, 110, 253, 0.06) 100%);
    border-color: rgba(13, 110, 253, 0.28);
    box-shadow: 0 1px 2px rgba(13, 110, 253, 0.08);
}

.sidebar-brand-badge-vendor i {
    opacity: 0.95;
}

/* Sidebar tree menu – groups; only nav scrolls, sidebar does not */
.sidebar-nav {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.sidebar-group {
    margin-bottom: 0.15rem;
}

.sidebar-group-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin: 0.2rem 1rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-base);
}

.sidebar-group-toggle:hover {
    background: rgba(91, 179, 24, 0.08);
    color: var(--primary-color);
}

.sidebar-group-toggle i:first-of-type {
    width: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.sidebar-group-toggle .sidebar-group-chevron {
    margin-left: auto;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.sidebar-group-toggle[aria-expanded="true"] .sidebar-group-chevron {
    transform: rotate(180deg);
}

.sidebar-group-toggle[aria-expanded="true"] {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-collapse {
    border: none;
}

.sidebar-group-inner {
    padding: 0.25rem 0 0.5rem 0;
}

.sidebar-link-child {
    padding-left: 2.75rem !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    margin: 0 1rem !important;
    font-size: 0.9rem;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Shrunk footer buttons (admin & vendor sidebars) */
.sidebar-footer .btn-view-market,
.sidebar-footer .btn-aside-logout {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    border-radius: 10px;
}

.sidebar-footer .btn-view-market-icon {
    width: 24px;
    height: 24px;
}

.sidebar-footer .btn-view-market-icon i {
    font-size: 0.95rem;
}

.sidebar-footer .btn-view-market-arrow {
    font-size: 1.25rem;
}

.sidebar-footer .btn-aside-logout-icon i {
    font-size: 0.95rem;
}

.sidebar-footer .vendor-sidebar-share {
    margin-bottom: 0.5rem;
}

.sidebar-panel .vendor-sidebar-mobile-profile {
    flex-shrink: 0;
}

/* View Market button – modern CTA in vendor sidebar */
.btn-view-market {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    background: linear-gradient(135deg, #5bb318 0%, #4a9a14 50%, #3d8212 100%);
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(91, 179, 24, 0.35), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.btn-view-market:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 179, 24, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-view-market:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(91, 179, 24, 0.3);
}

.btn-view-market-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.btn-view-market-icon i {
    font-size: 1.1rem;
}

.btn-view-market-text {
    flex: 1;
    text-align: left;
}

.btn-view-market-arrow {
    font-size: 1.5rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.btn-view-market:hover .btn-view-market-arrow {
    transform: translateX(4px);
}

/* Vendor/Admin header avatar */
.vendor-header-avatar,
.admin-header-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

/* Vendor aside mobile profile avatar */
.vendor-aside-avatar {
    width: 48px;
    height: 48px;
}

.admin-aside-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

/* Modern aside logout button (vendor & admin) */
.btn-aside-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-aside-logout:hover {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.btn-aside-logout:active {
    transform: translateY(0);
}

.btn-aside-logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-aside-logout-icon i {
    font-size: 1.1rem;
}

.btn-aside-logout-text {
    flex: 1;
    text-align: left;
}

/* Backdrop overlay for mobile sidebar (click to close) */
.vendor-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 991.98px) {
    .vendor-sidebar-overlay.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .vendor-sidebar {
        transform: translateX(-100%);
    }

    .vendor-main {
        margin-left: 0;
        padding: 1rem 1rem 1.5rem;
    }

    .vendor-sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    }

    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Prevent body scroll when sidebar is open on mobile */
    .vendor-panel-body.vendor-sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .profile-avatar-wrapper {
        left: 50% !important;
        transform: translateX(-50%);
        bottom: -60px !important;
    }

    .profile-avatar {
        width: 120px !important;
        height: 120px !important;
        border-radius: 28px !important;
    }
}

.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-lg);
}

.vendor-wrapper .mobile-nav-toggle {
    display: none !important;
}

/* Profile Elements */
.profile-cover {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 24px 24px 0 0;
    position: relative;
}

.profile-avatar-wrapper {
    position: absolute;
    bottom: -60px;
    left: 40px;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border: 6px solid #fff;
    border-radius: 36px;
    box-shadow: var(--shadow-md);
    background: #fff;
}

.btn-upload-cover {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: var(--transition-base);
}

.btn-upload-cover:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-custom {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-success-subtle {
    background-color: rgba(91, 179, 24, 0.1) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

.op-50 {
    opacity: 0.5;
}

.bg-primary-subtle {
    background-color: rgba(91, 179, 24, 0.1) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-light-subtle {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.sticky-lg-top {
    z-index: 10;
}

/* Payment field grouping */
.payment-fields {
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

/* --- Success Page Animations --- */
.success-check-anim {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.order-detail-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.confetti-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.success-container {
    animation: slideUpFade 0.8s ease-out forwards;
}

@keyframes slideUpFade {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* --- Modern Global Refinements --- */
.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

/* Section Title Refinement */
.section-title {
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-pill);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- Home Page Specific Styles --- */

/* Promo Banner */
.promo-img-container {
    transition: var(--transition-smooth);
    transform: rotate(2deg);
}

.promo-img-container:hover {
    transform: rotate(0deg);
}

/* Card Action Overlay */
.card-img-container {
    position: relative;
    overflow: hidden;
}

.card-action-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    display: flex;
    justify-content: center;
    transition: var(--transition-smooth);
    opacity: 0;
}

.product-card:hover .card-action-overlay {
    bottom: 0;
    opacity: 1;
}

.product-card-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-action-btn:hover {
    background: var(--primary-color, #5bb318);
    color: #fff;
    border-color: var(--primary-color, #5bb318);
    transform: scale(1.1);
}

.product-action-btn.active {
    background: var(--primary-color, #5bb318);
    color: #fff;
    border-color: var(--primary-color, #5bb318);
}

.product-action-btn.wishlist-toggle-btn.in-wishlist,
.product-action-btn.wishlist-toggle-btn.active {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.product-action-btn.wishlist-toggle-btn.in-wishlist:hover,
.product-action-btn.wishlist-toggle-btn.active:hover {
    background: #c82333;
    border-color: #bd2130;
}

.product-action-btn.compare-toggle-btn.in-compare {
    background: var(--primary-color, #5bb318);
    color: #fff;
    border-color: var(--primary-color, #5bb318);
}

.btn-white-custom {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.btn-white-custom:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2;
}

.wishlist-btn:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.wishlist-btn iconify-icon.text-danger,
.wishlist-btn.in-wishlist iconify-icon {
    color: #e74c3c !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin-animation {
    animation: spin 0.8s linear infinite;
}

/* Compare Button (product cards) */
.compare-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2;
}

.compare-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.compare-btn.in-compare {
    color: var(--primary-color);
}

/* --- Shop Page Modernization --- */

/* Top Category Menu */
.category-top-menu {
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.cat-menu-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    color: var(--text-muted);
    cursor: pointer;
}

.cat-menu-item:hover,
.cat-menu-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Sidebar Category Tree */
.category-tree .nav-link {
    padding: 0.8rem 0;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-base);
}

.category-tree .nav-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.sub-tree .nav-link {
    border-bottom: none;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sub-tree .nav-link::before {
    content: '•';
    margin-right: 10px;
    color: var(--primary-color);
    opacity: 0.5;
}

.transition-rotate {
    transition: transform 0.3s ease;
}

.rotate-90 {
    transform: rotate(90deg);
}

/* Search Glass */
.search-glass {
    background: #f1f5f9;
    transition: var(--transition-base);
}

/* .search-glass is used with .input-group; group focus is global above. Only background change here. */
.search-glass:focus-within {
    background: var(--white);
}

/* Site-wide rounding override for pill buttons */
.btn.rounded-pill {
    border-radius: 999px !important;
    padding-left: 1.8rem !important;
    padding-right: 1.8rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Premium Newsletter Overrides */
.newsletter-modern {
    background: var(--primary-light);
    border-radius: 2rem;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.newsletter-modern::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
}

/* Modern Focus States */
:focus-visible {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 3px !important;
}

/* Link Button Hover */
.btn-link {
    text-decoration: none !important;
    transition: var(--transition-base) !important;
    font-weight: 500 !important;
}

.btn-link:hover {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

/* Sorting Dropdown Customization */
.shop-sort-select {
    border-radius: 50px !important;
    padding-left: 1.5rem !important;
    padding-right: 2.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: var(--shadow-sm) !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* Sidebar Active Highlighting */
.category-tree .nav-link.active-cat {
    background: var(--primary-light);
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    border-radius: 8px;
    padding-left: 10px !important;
}

/* sidebar-glass Styling */
.sidebar-glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
}

/* Category Tree count badges */
.category-tree .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    background-color: var(--bg-light) !important;
    color: var(--text-muted) !important;
    border-radius: 6px;
}

/* Rating Heart/Star Styles */
.rating-filter-item {
    cursor: pointer;
    transition: var(--transition-base);
}

.rating-filter-item:hover {
    color: var(--primary-color);
}

.filter-check-group .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Active Filter Chips */
.active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.filter-chip {
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-chip:hover {
    background: var(--primary-color);
    color: var(--white);
}

.filter-chip i {
    font-size: 0.7rem;
}

/* Modernized Category Tree */
.category-tree .nav-link {
    border-left: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark) !important;
    padding: 0.8rem 1rem !important;
}

.category-tree .nav-link:hover {
    padding-left: 1.5rem !important;
    background: rgba(30, 41, 59, 0.02);
}

.category-tree .nav-link.active-cat {
    border-left-color: var(--primary-color);
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    padding-left: 1.2rem !important;
}

/* ─── Live Search Suggestions ────────────────────────────── */
.search-suggestions-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    /*background: #fff;*/
    background: var(--primary-light);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    z-index: 1060; /* above Bootstrap dropdowns (1055) and mega menu */
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    max-height: min(420px, 70vh);
    overflow-y: auto;
}

.search-suggestions-box .sug-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
    padding: 0.6rem 1rem 0.3rem;
}

.search-suggestions-box .sug-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 1rem;
    text-decoration: none;
    color: #1f2937;
    font-size: 0.875rem;
    transition: background 0.15s;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.search-suggestions-box .sug-item:hover {
    background: #f0fdf4;
    color: #5bb318;
}

.search-suggestions-box .sug-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.search-suggestions-box .sug-item-info {
    text-align: left;
    min-width: 0;
}

.search-suggestions-box .sug-item-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestions-box .sug-item-sub {
    font-size: 0.77rem;
    color: #6b7280;
}

.search-suggestions-box .sug-icon {
    font-size: 1.1rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.search-suggestions-box .sug-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0.25rem 0;
}

.search-suggestions-box .sug-footer {
    display: block;
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #5bb318;
    text-align: center;
    text-decoration: none;
    border-top: 1px solid #f3f4f6;
}

.search-suggestions-box .sug-footer:hover {
    background: #f0fdf4;
}

.search-suggestions-box .sug-empty {
    padding: 1.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.search-suggestions-box .sug-item-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.search-suggestions-box .sug-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header search (admin/vendor) – responsive */
.header-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 420px;
    z-index: 1060; /* so .search-suggestions-box (inside) appears above header/sidebar */
    overflow: visible;
}

.header-search-wrap .search-suggestions-box {
    max-height: min(420px, 70vh);
    min-width: 280px;
    width: 100%;
}

@media (max-width: 767.98px) {
    .header-search-wrap {
        max-width: 100%;
    }

    .header-search-wrap .search-suggestions-box {
        left: 0;
        right: 0;
        min-width: 0;
    }
}

/* Frontend nav search – consistent suggestion panel */
.nav-search-combo .search-suggestions-box {
    max-height: min(420px, 70vh);
}

.search-suggestions-box .sug-item {
    transition: background 0.2s ease, color 0.2s ease;
}

/* ─── MIMBA Custom Pagination ─────────────────────────────── */
.mimba-pagination-nav {
    margin-top: 2.5rem;
}

.mimba-pagination-nav .pagination {
    gap: 6px;
    flex-wrap: wrap;
}

/* Base page link */
.mimba-page-link {
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
    color: #374151 !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    text-decoration: none;

    /* Override Bootstrap 5 CSS variables */
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
    --bs-pagination-active-color: #fff;
    --bs-pagination-hover-bg: var(--primary-light);
    --bs-pagination-hover-color: var(--primary-color);
    --bs-pagination-focus-bg: var(--primary-light);
    --bs-pagination-focus-color: var(--primary-color);
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(91, 179, 24, 0.25);
    --bs-pagination-color: #374151;
    --bs-pagination-bg: #fff;
    --bs-pagination-border-color: rgba(0, 0, 0, 0.08);
    --bs-pagination-disabled-bg: #f8f9fa;
    --bs-pagination-disabled-color: #adb5bd;
    --bs-pagination-disabled-border-color: rgba(0, 0, 0, 0.05);
}

/* Hover state */
.mimba-page-link:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(91, 179, 24, 0.3) !important;
    transform: translateY(-2px);
}

/* Active (current) page */
.page-item.active .mimba-page-link,
.mimba-page-active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(91, 179, 24, 0.35) !important;
}

/* Disabled state */
.page-item.disabled .mimba-page-link {
    background: #f8f9fa !important;
    color: #c0c6cd !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed;
}

/* Prev/Next nav buttons — slightly wider */
.mimba-page-nav {
    width: auto !important;
    padding: 0 1rem !important;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* "..." dots */
.mimba-page-dots {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #9ca3af !important;
    cursor: default;
}

.mimba-page-dots:hover {
    transform: none !important;
    background: transparent !important;
    color: #9ca3af !important;
}

/* Info text */
.mimba-pagination-info {
    font-size: 0.82rem;
    color: #6b7280;
}

/* Backward compatibility for plain Bootstrap pagination classes */
.pagination .page-link {
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
    --bs-pagination-active-color: #fff;
    --bs-pagination-hover-bg: var(--primary-light, #f7fee7);
    --bs-pagination-hover-color: var(--primary-color);
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(91, 179, 24, 0.25);
    --bs-pagination-color: #374151;
}

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.page-link:focus {
    box-shadow: 0 0 0 3px rgba(91, 179, 24, 0.25) !important;
    outline: none !important;
}

/* Role Selector Cards */
.role-selector-card {
    transition: var(--transition-smooth);
    background: #fff;
    border: 2px solid #eee !important;
}

.role-selector-card:hover {
    border-color: var(--primary-color) !important;
    background: var(--primary-light);
}

.role-selector-card.active {
    border-color: var(--primary-color) !important;
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.cursor-pointer {
    cursor: pointer;
}

.uppercase {
    text-transform: uppercase;
}

.extra-small {
    font-size: 0.75rem;
}

.card-icon {
    height: 60px;
    width: 60px;
    display: grid;
    place-items: center;
    padding: 0 !important;
}
