:root {
    --bb-green: #087f5b;
    --bb-green-dark: #056747;
    --bb-gold: #c8a24a;
    --bb-cream: #fbf7ef;
    --bb-soft-green: #eef8f3;
    --bb-text: #10231c;
    --bb-muted: #6b7772;
    --bb-border: #e8eee9;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    color: var(--bb-text);
    background: radial-gradient(circle at top right, rgba(8,127,91,0.08), transparent 35%), linear-gradient(180deg, #fffdf8 0%, #ffffff 45%);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.bb-header {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.bb-brand,
.bb-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bb-text);
}

    .bb-brand:hover {
        color: var(--bb-green);
    }

    .bb-brand strong,
    .bb-footer-brand strong {
        display: block;
        font-size: 1.15rem;
        font-weight: 900;
        line-height: 1;
    }

    .bb-brand small,
    .bb-footer-brand small {
        display: block;
        font-size: .65rem;
        color: var(--bb-muted);
        letter-spacing: 1px;
    }

.bb-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--bb-green), var(--bb-gold));
    box-shadow: 0 12px 25px rgba(8,127,91,.22);
}

.nav-link {
    color: var(--bb-text);
    font-weight: 600;
}

    .nav-link:hover {
        color: var(--bb-green);
    }

.bb-btn-soft {
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 700;
}

.bb-btn-primary {
    background: linear-gradient(135deg, var(--bb-green), var(--bb-gold));
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(8,127,91,.20);
}

    .bb-btn-primary:hover {
        color: white;
        transform: translateY(-1px);
    }

.bb-btn-light {
    background: white;
    color: var(--bb-text);
    border: 1px solid var(--bb-border);
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,0,0,.05);
}

.bb-section {
    padding: 70px 0;
}

.bb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bb-soft-green);
    color: var(--bb-green);
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .95rem;
}

.bb-card {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--bb-border);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(10, 45, 30, .08);
}

.bb-input {
    border-radius: 16px;
    min-height: 48px;
    border: 1px solid #dde7e1;
}

    .bb-input:focus {
        border-color: var(--bb-green);
        box-shadow: 0 0 0 .2rem rgba(8,127,91,.12);
    }

.bb-form-label {
    font-weight: 800;
    margin-bottom: 7px;
}

.bb-form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    margin-bottom: 18px;
}

    .bb-form-section-title span {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        background: var(--bb-soft-green);
        color: var(--bb-green);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.bb-hero-title {
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
}

    .bb-hero-title .bb-square {
        display: inline-block;
        width: 86px;
        height: 86px;
        background: linear-gradient(135deg, var(--bb-green), var(--bb-gold));
        border-radius: 6px;
        vertical-align: middle;
        margin: 0 10px;
    }

.bb-hero-text {
    color: var(--bb-muted);
    font-size: 1.2rem;
    line-height: 1.9;
}

.bb-hero-image {
    width: 100%;
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(8,127,91,.16);
    object-fit: cover;
}

.bb-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bb-muted);
    font-weight: 700;
}

    .bb-feature i {
        color: var(--bb-green);
    }

.bb-category-card {
    background: white;
    border: 1px solid var(--bb-border);
    border-radius: 24px;
    padding: 22px;
    text-align: center;
    transition: .2s ease;
}

    .bb-category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(0,0,0,.07);
    }

.bb-category-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: var(--bb-soft-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bb-green);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.bb-footer {
    background: #fbfaf7;
    border-top: 1px solid var(--bb-border);
}

    .bb-footer h6 {
        font-weight: 900;
        margin-bottom: 16px;
    }

    .bb-footer a {
        display: block;
        color: var(--bb-muted);
        margin-bottom: 8px;
    }

        .bb-footer a:hover {
            color: var(--bb-green);
        }

.alert {
    border-radius: 18px;
}

.fw-black {
    font-weight: 900;
}

.bb-link {
    color: var(--bb-green);
    font-weight: 800;
}

    .bb-link:hover {
        color: var(--bb-green-dark);
    }

.bb-empty-card {
    background: white;
    border: 1px dashed #d6e5dc;
    border-radius: 28px;
    padding: 50px 24px;
}

.bb-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: var(--bb-soft-green);
    color: var(--bb-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 18px;
}

.bb-family-card,
.bb-product-card {
    background: white;
    border: 1px solid var(--bb-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 45, 30, .06);
    transition: .2s ease;
    height: 100%;
}

    .bb-family-card:hover,
    .bb-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 24px 70px rgba(10, 45, 30, .10);
    }

.bb-family-cover {
    height: 120px;
    background: radial-gradient(circle at top left, rgba(200,162,74,.45), transparent 35%), linear-gradient(135deg, var(--bb-green), #0ea574);
}

.bb-family-logo {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: white;
    color: var(--bb-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-top: -56px;
    box-shadow: 0 16px 35px rgba(0,0,0,.12);
    border: 1px solid var(--bb-border);
}

.bb-product-image {
    height: 190px;
    background: radial-gradient(circle at top right, rgba(200,162,74,.30), transparent 35%), linear-gradient(135deg, #f7efe0, #eef8f3);
    color: var(--bb-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
}

.bb-how-card {
    background: radial-gradient(circle at top right, rgba(8,127,91,.10), transparent 40%), linear-gradient(135deg, #fffaf1, #ffffff);
    border: 1px solid var(--bb-border);
    border-radius: 36px;
    padding: 50px 28px;
    box-shadow: 0 25px 80px rgba(10, 45, 30, .07);
}

.bb-step-card {
    position: relative;
    background: white;
    border: 1px solid var(--bb-border);
    border-radius: 28px;
    padding: 34px 24px;
    text-align: center;
    height: 100%;
}

.bb-step-number {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bb-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.bb-step-icon {
    width: 74px;
    height: 74px;
    border-radius: 26px;
    background: var(--bb-soft-green);
    color: var(--bb-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 18px;
}

.bb-step-card h5 {
    font-weight: 900;
}

.bb-step-card p {
    color: var(--bb-muted);
    margin-bottom: 0;
}

.bb-lang-switch {
    min-width: 48px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--bb-border);
    color: var(--bb-green);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

    .bb-lang-switch:hover {
        color: #fff;
        background: var(--bb-green);
    }

.bb-admin-table {
    margin-bottom: 0;
}

    .bb-admin-table thead th {
        color: var(--bb-muted);
        font-size: .9rem;
        font-weight: 900;
        border-bottom: 1px solid var(--bb-border);
        padding: 16px 12px;
    }

    .bb-admin-table tbody td {
        padding: 18px 12px;
        border-bottom: 1px solid #f0f3f1;
    }

.bb-mini-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--bb-soft-green);
    color: var(--bb-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.bb-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 800;
}

.bb-status-approved {
    background: #e8f7ef;
    color: #087f5b;
}

.bb-status-pending {
    background: #fff4d8;
    color: #9a6a00;
}

.bb-product-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body {
    font-family: 'Tajawal', sans-serif;
    background: #fbfaf6;
    color: #222;
}

a {
    text-decoration: none;
}

.bb-main-header {
    background: #fff;
    border-bottom: 1px solid #eee6d8;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

.bb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d2a23 !important;
}

    .bb-brand strong {
        display: block;
        font-size: 22px;
        font-weight: 900;
    }

    .bb-brand small {
        display: block;
        font-size: 11px;
        letter-spacing: 1px;
        color: #8a7a5a;
    }

.bb-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #edf7ef;
    color: #198754;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.navbar .nav-link {
    color: #3a352b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .navbar .nav-link:hover {
        color: #198754;
    }

.bb-btn-primary {
    background: #198754;
    color: #fff;
    border: 1px solid #198754;
    border-radius: 14px;
    padding: 8px 15px;
    font-weight: 800;
}

    .bb-btn-primary:hover {
        background: #157347;
        color: #fff;
    }

.bb-btn-soft {
    border-radius: 14px;
    padding: 8px 14px;
    font-weight: 800;
}

.bb-role-header {
    background: #f8f4ea;
    border-bottom: 1px solid #eadfcb;
}

.bb-role-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

    .bb-role-nav a {
        color: #3a352b;
        background: #fff;
        border: 1px solid #eee2cf;
        border-radius: 999px;
        padding: 8px 14px;
        font-weight: 800;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .bb-role-nav a:hover {
            color: #198754;
            border-color: #198754;
        }

.bb-admin-header {
    background: #fff4f4;
}

    .bb-admin-header .bb-role-nav a {
        border-color: #f0caca;
    }

.bb-seller-header {
    background: #f1f8f3;
}

.bb-customer-header {
    background: #f7fbff;
}

.bb-guest-header {
    background: #fffaf0;
}

.bb-footer {
    background: #fff;
    border-top: 1px solid #eee6d8;
}

.bb-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .bb-footer-brand strong {
        display: block;
        font-size: 22px;
        font-weight: 900;
    }

    .bb-footer-brand small {
        display: block;
        font-size: 11px;
        color: #8a7a5a;
    }

.bb-footer h6 {
    font-weight: 900;
    margin-bottom: 14px;
}

.bb-footer a {
    display: block;
    color: #5e5648;
    margin-bottom: 8px;
    font-weight: 600;
}

    .bb-footer a:hover {
        color: #198754;
    }

.bb-section {
    padding: 50px 0;
}
.bb-main-header {
    background: #fff;
    border-bottom: 1px solid #eee6d8;
}

.bb-role-header {
    background: #f8f4ea;
    border-bottom: 1px solid #eadfcb;
}

.bb-role-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

    .bb-role-nav a {
        color: #3a352b;
        background: #fff;
        border: 1px solid #eee2cf;
        border-radius: 999px;
        padding: 8px 14px;
        font-weight: 800;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .bb-role-nav a:hover {
            color: #198754;
            border-color: #198754;
        }

.bb-admin-header {
    background: #fff4f4;
}

.bb-seller-header {
    background: #f1f8f3;
}

.bb-customer-header {
    background: #f7fbff;
}

.bb-guest-header {
    background: #fffaf0;
}
.bb-cart-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #198754;
    background: #ffffff;
    border: 1px solid rgba(25, 135, 84, 0.25);
    text-decoration: none;
    font-size: 1.25rem;
    transition: 0.2s ease;
}

    .bb-cart-icon:hover {
        color: #ffffff;
        background: #198754;
        border-color: #198754;
    }

.bb-cart-count {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}