/* Bootstrap + icons load via partials/assets-head.blade.php */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bb-primary: #818cf8;
    --bb-primary-dark: #4f46e5;
    --bb-secondary: #f43f5e;
    --bb-ink: #0f172a;
    --bb-muted: #64748b;
    --bb-bg: #f8fafc;
    --bb-card: rgba(255, 255, 255, 0.95);
    --bb-border: #e2e8f0;
    --bb-radius: 1.5rem;
    --bb-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --bb-shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
    --bb-gradient-brand: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    --bb-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    background: var(--bb-bg);
    color: var(--bb-ink);
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100%;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

.opacity-100-hover:hover { opacity: 1 !important; }

.bb-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.bb-logo-link {
    align-items: center;
    flex: 0 0 auto;
    line-height: 1;
}

.bb-logo {
    display: block;
    object-fit: contain;
}

.bb-logo-nav {
    width: 164px;
    height: 52px;
    object-position: left center;
}

.bb-logo-footer {
    width: 230px;
    max-width: 100%;
    height: 74px;
    object-position: left center;
    border-radius: 0.4rem;
}

.bb-logo-sidebar {
    width: 100%;
    max-width: 140px;
    height: auto;
    max-height: 40px;
    object-position: left center;
    border-radius: 0.35rem;
}

.bb-logo-mark {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 0.35rem;
}
.text-bloom { color: var(--bb-primary-dark); }

.btn { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; z-index: 1; }
.btn::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.1); z-index: -1; transition: transform 0.4s ease; transform: translateY(100%); }
.btn:hover::after { transform: translateY(0); }

.btn-bloom {
    background: var(--bb-gradient-brand);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
.btn-bloom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
    color: white;
}

.btn-soft {
    background: rgba(238, 242, 255, 0.8);
    backdrop-filter: blur(5px);
    color: var(--bb-primary-dark);
    border: 1px solid rgba(224, 231, 255, 0.6);
    font-weight: 600;
}
.btn-soft:hover { background: #e0e7ff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15); }

.bb-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--bb-radius);
    box-shadow: 0 10px 40px -10px rgba(31, 38, 135, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.2); 
    border-color: rgba(255,255,255,1);
}

.bb-card-lite {
    background: #ffffff;
    border: 1px solid var(--bb-border);
    border-radius: 1.25rem;
    transition: all 0.4s ease;
}
.bb-card-lite:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--bb-shadow-hover); border-color: #cbd5e1; }

.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #fff;
    border-radius: 2rem;
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
    position: relative;
    overflow: hidden;
}
.hero::before { content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%; background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 60%); animation: pulseBg 15s infinite linear; }
@keyframes pulseBg { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.product-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.2);
    border-color: rgba(129, 140, 248, 0.3);
}
.product-img { aspect-ratio: 1 / 1; object-fit: contain; object-position: center; width: 100%; background: #f8fafc; }

.icon-btn { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--bb-border); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.icon-btn:hover { background: var(--bb-primary-dark); color: white !important; border-color: var(--bb-primary-dark); transform: scale(1.15) rotate(5deg); box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3); }

.badge-soft { background: #eef2ff; color: var(--bb-primary-dark); font-weight: 600; padding: 0.5em 1em; }

/* Interactive star rating */
.bb-star-rating { display: inline-flex; align-items: center; gap: 0.15rem; }
.bb-star-rating .bb-star { font-size: 1.5rem; color: #d1d5db; cursor: pointer; transition: color 0.15s, transform 0.15s; }
.bb-star-rating .bb-star.active, .bb-star-rating .bb-star.bi-star-fill { color: #f59e0b; }
.bb-star-rating .bb-star:hover { transform: scale(1.2); }
.bb-star-label { font-size: 0.8rem; color: #64748b; font-weight: 500; }

/* Dashboard core */
.dashboard-shell {
    min-height: 100vh;
    background: #f1f5f9;
    --bb-dash-sidebar-top: 5.5rem;
}
.bb-storefront:has(.bb-marquee-bar) .dashboard-shell {
    --bb-dash-sidebar-top: 8.25rem;
}
.dashboard-layout-row {
    align-items: flex-start !important;
}
.dashboard-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    min-width: 0;
}
.dashboard-sidebar .sidebar-section-label { color: rgba(255,255,255,0.4); font-size: 0.6rem; letter-spacing: 0.08em; margin-top: 0.25rem; margin-bottom: 0.35rem; padding-left: 0.5rem; }
.dashboard-sidebar .nav-link { color: rgba(255,255,255,.65); border-radius: 0.5rem; margin-bottom: 0; transition: all 0.2s ease; padding: 0.32rem 0.55rem; font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex !important; align-items: center; gap: 0.45rem; }
.dashboard-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.dashboard-sidebar .nav-link.active { color: #fff; background: linear-gradient(135deg, #4f46e5, #6366f1); font-weight: 600; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35); }
.dashboard-sidebar .nav-link i { font-size: 0.85rem; min-width: 1rem; text-align: center; flex-shrink: 0; }
.dashboard-sidebar .nav.flex-column { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 0.125rem !important; width: 100%; }

.stat-card { border-radius: 1rem; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.form-control, .form-select { border-radius: 1rem; border-color: #cbd5e1; padding: 0.8rem 1rem; transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02) inset; }
.form-control:focus, .form-select:focus { border-color: var(--bb-primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }
.bb-password-field { position: relative; }
.bb-password-field > .form-control { padding-right: 2.85rem; }
.bb-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0.35rem 0.45rem;
    line-height: 1;
    border-radius: 0.5rem;
    z-index: 2;
}
.bb-password-toggle:hover { color: var(--bb-primary-dark, #4f46e5); }
.bb-password-toggle:focus-visible {
    outline: 2px solid var(--bb-primary-dark, #4f46e5);
    outline-offset: 2px;
}

.bb-upload-size-hint {
    margin-top: 0.35rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    line-height: 1.45;
}
.bb-upload-guide-card {
    background: linear-gradient(135deg, #fafbff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}
.bb-upload-guide-table th,
.bb-upload-guide-table td {
    padding: 0.35rem 0.5rem;
    vertical-align: top;
}
.hero-carousel-img { height: 420px; object-fit: cover; filter: brightness(0.9); transition: transform 0.8s ease; }
.carousel-item.active .hero-carousel-img { transform: scale(1.02); }
@media (max-width: 767px) { .hero-carousel-img { height: 280px; } }
.hero-carousel-overlay { background: linear-gradient(to top, rgba(15,23,42,0.8) 0%, transparent 100%); }

.admin-role-badge { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border: none; font-size: 0.7rem; }
.admin-stat-tile { border-left: 3px solid #4f46e5; position: relative; overflow: hidden; }
.admin-stat-tile::after { content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%; background: radial-gradient(circle, rgba(79,70,229,0.04) 0%, transparent 70%); pointer-events: none; }
.admin-stat-tile .text-muted { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-stat-tile .h3 { font-size: 1.5rem; margin-top: 0.25rem; margin-bottom: 0; }
.admin-workspace { border-radius: 1rem; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; }
@media (max-width: 767px) { .admin-workspace { border-radius: 0.6rem; padding: 0.75rem !important; } .admin-workspace.p-3 { padding: 0.6rem !important; } }

/* Dashboard page refinements */
.dashboard-main h1 { font-size: 1.4rem; }
.dashboard-main .h3, .dashboard-main h3 { font-size: 1rem; }
.dashboard-main h4, .dashboard-main .h4 { font-size: 0.95rem; }
.dashboard-main .badge { font-size: 0.65rem; padding: 0.35em 0.65em; }
.dashboard-main .btn-bloom { font-size: 0.8rem; padding: 0.45rem 0.9rem; border-radius: 0.5rem; }
.dashboard-main .btn-sm { font-size: 0.72rem; padding: 0.3rem 0.6rem; border-radius: 0.4rem; }
.dashboard-main .btn-outline-danger.btn-sm { border-color: #fecaca; color: #dc2626; background: #fff5f5; }
.dashboard-main .btn-outline-danger.btn-sm:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.dashboard-main .btn-soft { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.dashboard-main .btn-soft:hover { background: #e2e8f0; }
.admin-console .row.g-3 .stat-card { border-radius: 0.75rem; }

/* Vendor & admin stat cards */
.stat-card { padding: 1.25rem !important; }
.stat-card .h2 { font-size: 1.5rem; color: #1e293b; margin-bottom: 0; }
.stat-card .text-muted.small { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* Dashboard content cards */
.dashboard-main .bb-card { border-radius: 0.75rem; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0,0,0,0.03); padding: 1.25rem !important; }
.dashboard-main .bb-card h3 { font-size: 0.9rem; margin-bottom: 0.75rem; }
.dashboard-main .bb-card .text-muted.small { font-size: 0.75rem; }

/* Dashboard forms */
.dashboard-main .form-control, .dashboard-main .form-select { border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.8rem; }
.dashboard-main .form-label { font-size: 0.72rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.25rem; }
.dashboard-main .bg-light { background: #f8fafc !important; border: 1px solid #f1f5f9; }

/* Dashboard tables */
.dashboard-main .table { font-size: 0.8rem; }
.dashboard-main .table th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; color: #64748b; padding: 0.6rem 0.75rem; background: #f8fafc; border-bottom: 2px solid #e2e8f0; }
.dashboard-main .table td { padding: 0.6rem 0.75rem; vertical-align: middle; color: #334155; }
.dashboard-main .table-card { border-radius: 0.75rem; overflow: hidden; }
.dashboard-main .table-card .p-4 { padding: 1rem 1.25rem !important; }
.dashboard-main .table-card h4 { font-size: 0.9rem; }

/* Resell card */
.resell-dashboard-card { border-left: 3px solid var(--bb-primary); }

/* Resell catalog */
.resell-hub-title { font-size: 1.35rem; }
.resell-product-img { height: 200px; object-fit: contain; object-position: center; background: #f1f5f9; }
.resell-mode-icon { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.resell-product-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.resell-product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); }
.resell-product-card .badge { font-size: 0.65rem; max-width: calc(100% - 1rem); overflow: hidden; text-overflow: ellipsis; }
.resell-filter-card .form-control-sm, .resell-filter-card .form-select-sm { min-height: 2.5rem; }
.resell-pagination .pagination { flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin-bottom: 0; }
.resell-pagination .page-link { font-size: 0.8rem; padding: 0.35rem 0.65rem; }

/* Vendor dashboard section titles */
.dashboard-main .display-6 { font-size: 2rem !important; }

/* Customer dashboard */
.customer-dash-hero {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255,255,255,0.1);
}
.customer-stat-tile { border-radius: 1.5rem; border: none; border-left: 4px solid #818cf8; transition: all 0.3s; }
.customer-stat-tile:hover { transform: translateY(-4px); box-shadow: var(--bb-shadow-hover); }
.customer-wish-row { transition: all 0.2s ease; border-radius: 1rem; padding-inline: 1rem; }
.customer-wish-row:hover { background: #f8fafc; transform: translateX(4px); }

.table-card { border-radius: 1rem; border: 1px solid #e2e8f0; background: #fff; overflow: hidden; }
.table-card .table { margin-bottom: 0; }
.table thead th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.75rem 1rem; border-bottom: 1px solid #e2e8f0; }
.table tbody td { padding: 0.65rem 1rem; font-size: 0.8125rem; vertical-align: middle; }

/* Home specific cards */
.feature-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}
.feature-icon-wrapper {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--bb-gradient-brand);
    color: white;
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn.btn-light.active, .btn.btn-soft.active {
    background: var(--bb-gradient-brand);
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

@media (min-width: 992px) {
    .dropdown-cart:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Horizontal Timeline */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 3.5rem;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}
.timeline-horizontal .timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 20%;
}
.timeline-horizontal .timeline-dot {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 4px solid #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    color: transparent;
}
.timeline-horizontal .timeline-step.active .timeline-dot {
    border-color: #4f46e5;
    background: #4f46e5;
    color: white;
    box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.2);
}
.timeline-horizontal .timeline-step.active::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -50%;
    width: 100%;
    height: 4px;
    background: #4f46e5;
    z-index: -1;
}
.timeline-horizontal .timeline-step:first-child::before { display: none; }

@media (max-width: 768px) {
    .timeline-horizontal {
        flex-direction: column;
        padding-left: 2rem;
    }
    .timeline-horizontal::before {
        top: 0; left: 3rem; bottom: 0; right: auto; height: 100%; width: 4px;
    }
    .timeline-horizontal .timeline-step { width: 100%; text-align: left; margin-bottom: 2rem; display: flex; align-items: flex-start; }
    .timeline-horizontal .timeline-dot { margin-right: 1.5rem; margin-bottom: 0; flex-shrink: 0; }
    .timeline-horizontal .timeline-step.active::before {
        top: -100%; left: 1rem; height: 100%; width: 4px;
    }
}

/* ── Back-to-Top Button ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bb-gradient-brand);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.5);
}

/* ── Scroll Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Sticky Product Add-to-Cart Bar ── */
.sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--bb-border);
    padding: 0.75rem 0;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.08);
}
.sticky-product-bar.visible { transform: translateY(0); }

/* ── Utility: border-bloom ── */
.border-bloom { border-color: var(--bb-primary-dark) !important; }

/* Multipurpose marketplace home */
.marketplace-intro {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.marketplace-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.marketplace-title {
    max-width: 720px;
    margin: 1rem 0;
    color: #111827;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.marketplace-copy {
    color: #4b5563;
    font-size: 1.05rem;
    max-width: 650px;
}

.marketplace-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.marketplace-category-grid div {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 1rem;
    background: #f9fafb;
}

.marketplace-category-grid i {
    color: #dc2626;
    font-size: 1.8rem;
}

.marketplace-category-grid span {
    color: #111827;
    font-weight: 800;
}

.ad-slot {
    display: grid;
    gap: 1rem;
}

.ad-slot:empty,
.ad-card.is-hidden {
    display: none;
}

.ad-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.ad-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 4;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
}

.ad-creative {
    display: grid;
    grid-template-columns: minmax(140px, 28%) 1fr;
    min-height: 150px;
    color: inherit;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.ad-creative img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
}

.ad-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.25rem 3.5rem 1.25rem 1.25rem;
}

.ad-copy small {
    color: #dc2626;
    font-weight: 800;
    text-transform: uppercase;
}

.ad-copy strong {
    color: #111827;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    line-height: 1.05;
}

.ad-copy em {
    color: #4b5563;
    font-style: normal;
}

.ad-copy b {
    color: #4f46e5;
}

.ad-code {
    min-height: 70px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

@media (max-width: 575px) {
    .ad-creative {
        grid-template-columns: 1fr;
    }

    .ad-creative img {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .ad-copy {
        padding: 1rem 3rem 1rem 1rem;
    }
}

/* Category filter chips — horizontal scroll on mobile */
.bb-category-rail {
    max-width: 100%;
    overflow: hidden;
}

.bb-category-rail-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.bb-category-rail-track::-webkit-scrollbar {
    display: none;
}

.bb-category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 0.42rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bb-category-chip i {
    font-size: 0.95rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.bb-category-chip span {
    flex-shrink: 0;
}

.bb-category-chip:hover {
    border-color: #c7d2fe;
    color: var(--bb-primary-dark);
    background: #f8fafc;
}

.bb-category-chip.is-active {
    background: var(--bb-gradient-brand);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.bb-category-chip.is-active i {
    opacity: 1;
}

@media (max-width: 767px) {
    .marketplace-category-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .marketplace-category-grid::-webkit-scrollbar {
        display: none;
    }

    .marketplace-category-grid > div {
        flex: 0 0 auto;
        min-width: 7.5rem;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.45rem;
        padding: 0.55rem 0.7rem;
    }

    .marketplace-category-grid i {
        font-size: 1.05rem;
        flex-shrink: 0;
    }

    .marketplace-category-grid span {
        font-size: 0.72rem;
        font-weight: 600;
        white-space: nowrap;
        line-height: 1.15;
    }

    .marketplace-intro .marketplace-title {
        font-size: 1.65rem;
    }

    .marketplace-copy {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .marketplace-category-grid {
        grid-template-columns: unset;
    }
}

/* Vendor membership application */
.vendor-application-page {
    background: #f7f5ef;
}

.vendor-application-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 7rem 0 4rem;
    color: #fff;
}

.vendor-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(19, 23, 16, 0.92) 0%, rgba(47, 33, 14, 0.7) 48%, rgba(47, 33, 14, 0.18) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.05));
}

.vendor-kicker,
.vendor-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.vendor-kicker {
    color: #fef3c7;
    background: rgba(120, 53, 15, 0.55);
    border-color: rgba(253, 230, 138, 0.55);
}

.vendor-application-hero h1 {
    max-width: 760px;
    margin: 1rem 0;
    font-size: clamp(2.4rem, 5rem, 5rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0;
}

.vendor-hero-copy {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
}

.vendor-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.75rem;
}

.vendor-fee-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 700;
}

.vendor-brand-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.93);
    color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.vendor-emblem {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.vendor-info-panel,
.vendor-application-card {
    background: #fff;
    border: 1px solid #eadfca;
    border-radius: 1rem;
    box-shadow: 0 24px 55px rgba(82, 57, 21, 0.09);
}

.vendor-info-panel {
    position: sticky;
    top: 110px;
    padding: 1.5rem;
}

.vendor-application-card {
    padding: 1.5rem;
}

.vendor-wordmark {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee2cf;
    border-radius: 0.75rem;
}

.vendor-focus-list {
    display: grid;
    gap: 0.9rem;
}

.vendor-focus-list div {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: #374151;
    font-weight: 600;
}

.vendor-focus-list i {
    color: #15803d;
    font-size: 1.25rem;
}

.vendor-trust-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.85rem;
}

.vendor-trust-strip img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.vendor-trust-strip span {
    display: block;
    color: #4b5563;
    font-size: 0.9rem;
}

.vendor-review-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    align-self: flex-start;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 800;
    padding: 0.45rem 0.9rem 0.45rem 0.45rem;
}

.vendor-review-mark img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 0.35rem;
    background: #fff;
}

.vendor-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.vendor-steps div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #fafaf9;
}

.vendor-steps strong {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #166534;
    color: #fff;
    flex: 0 0 auto;
}

.vendor-steps span {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
}

.vendor-form-heading {
    color: #111827;
    border-bottom: 1px solid #eadfca;
    padding-bottom: 0.65rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.vendor-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.85rem;
}

@media (max-width: 991px) {
    .vendor-application-hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }

    .vendor-info-panel {
        position: static;
    }

    .vendor-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .vendor-application-card,
    .vendor-info-panel {
        padding: 1rem;
    }

    .vendor-brand-panel,
    .vendor-trust-strip {
        align-items: flex-start;
    }
}

/* ── Recently Viewed Horizontal Scroller ── */
.horizontal-scroller {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bb-primary) transparent;
    scroll-snap-type: x mandatory;
}
.horizontal-scroller > * { scroll-snap-align: start; flex-shrink: 0; }
.horizontal-scroller::-webkit-scrollbar { height: 5px; }
.horizontal-scroller::-webkit-scrollbar-track { background: transparent; }
.horizontal-scroller::-webkit-scrollbar-thumb { background: var(--bb-primary); border-radius: 10px; }

/* ── Trust badges row ── */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.7);
    border-radius: 1rem;
    border: 1px solid var(--bb-border);
    transition: all 0.3s ease;
}
.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.trust-badge i { font-size: 1.5rem; }

/* Print Styles */
@media print {
    body > :not(#printable-invoice) {
        display: none !important;
    }
    #printable-invoice {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    @page { margin: 0.5cm; }
}

/* —— Compact professional typography (site-wide) —— */
html { font-size: 14px; }
@media (min-width: 992px) { html { font-size: 14.5px; } }

body { font-size: 0.9375rem; line-height: 1.5; }
h1, .h1 { font-size: 1.65rem; }
h2, .h2 { font-size: 1.4rem; }
h3, .h3 { font-size: 1.2rem; }
h4, .h4 { font-size: 1.05rem; }
h5, .h5 { font-size: 0.95rem; }
.display-5 { font-size: 1.75rem !important; }
.lead { font-size: 1rem; }
.small, small { font-size: 0.8125rem; }

.form-control, .form-select { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.btn { font-size: 0.875rem; }
.btn-lg { font-size: 0.9375rem; padding: 0.5rem 1rem; }

/* —— Slim header —— */
.bb-navbar-compact { padding-top: 0.35rem; padding-bottom: 0.35rem; }
.bb-navbar-compact .container { --bs-navbar-padding-y: 0; }
.bb-logo-nav { width: 118px; height: 38px; }
.bb-search-input { font-size: 0.8125rem; padding: 0.35rem 0.75rem; }
.bb-navbar-compact .input-group-text { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
.bb-nav-links .nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.55rem !important;
    color: #334155;
}
.bb-nav-links .nav-link:hover { color: var(--bb-primary-dark); }
.bb-nav-links .dropdown-menu { font-size: 0.8125rem; }
.bb-navbar-compact .navbar-brand { margin-right: 0.75rem !important; }

/* —— Site header: marquee + navbar stick together —— */
.bb-site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1040;
    width: 100%;
}

/* —— Scrolling news-style marquee (admin: Header marquee) —— */
.bb-marquee-bar {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(90deg, #b91c1c 0%, #dc2626 45%, #991b1b 100%);
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    min-height: 32px;
    display: flex;
    align-items: center;
}
.bb-marquee-track {
    display: flex;
    width: max-content;
    max-width: none;
    will-change: transform;
    animation: bbMarqueeScroll 28s linear infinite;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0;
}
.bb-marquee-item { display: inline-flex; align-items: center; padding-right: 2.5rem; }
.bb-marquee-link {
    color: inherit;
    text-decoration: none;
}
.bb-marquee-link:hover {
    color: #fef2f2;
    text-decoration: none;
}
.bb-marquee-bar a,
.bb-marquee-bar a:hover,
.bb-marquee-bar a:focus {
    text-decoration: none;
}
.bb-marquee-dot { opacity: 0.65; margin-left: 2.5rem; }
@keyframes bbMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}
.bb-marquee-bar:hover .bb-marquee-track { animation-play-state: paused; }

.bb-site-header-sticky .bb-navbar-compact {
    position: relative;
    top: auto;
    z-index: 1;
}

@media (max-width: 767px) {
    .bb-marquee-track {
        font-size: 0.7rem;
        animation-duration: 36s;
    }
    .bb-marquee-bar {
        min-height: 30px;
    }
}

/* —— Fixed autoplay video widget —— */
.bb-site-video {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    width: min(300px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.bb-site-video.is-minimized {
    transform: translateY(calc(100% - 36px));
}
.bb-site-video-card {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}
.bb-site-video-minimize {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
}
.bb-site-video-minimize:hover { background: rgba(0,0,0,0.75); }
.bb-site-video-frame iframe {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.bb-main {
    padding-bottom: 0;
    max-width: 100%;
    overflow-x: clip;
}

/* —— Site footer —— */
.bb-footer {
    position: relative;
    margin-top: 4rem;
    background: linear-gradient(180deg, #0f172a 0%, #0a0f1a 100%);
    color: #cbd5e1;
    max-width: 100%;
    overflow-x: clip;
}

.bb-footer-accent {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--bb-primary, #6366f1) 35%, #a78bfa 65%, transparent 100%);
    opacity: 0.85;
}

.bb-footer-body {
    padding-top: 2.75rem;
    padding-bottom: 2rem;
}

.bb-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
    gap: 2.25rem 2rem;
}

.bb-footer-col--brand {
    padding-right: 0.5rem;
}

.bb-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bb-footer-brand:hover {
    color: #fff;
    transform: translateY(-1px);
    opacity: 0.95;
}

.bb-footer-mark {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.bb-footer-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.bb-footer-tagline {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.65;
    max-width: 20rem;
    margin: 0 0 1.1rem;
}

.bb-footer-social {
    display: flex;
    gap: 0.5rem;
}

.bb-footer-social-link {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-footer-social-link:hover {
    color: #fff;
    border-color: rgba(129, 140, 248, 0.5);
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

.bb-footer-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f1f5f9;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.bb-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.bb-footer-links a {
    display: inline-block;
    color: #94a3b8;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bb-footer-links a:hover {
    color: #f1f5f9;
    transform: translateX(3px);
}

.bb-footer-link-highlight {
    color: #c7d2fe !important;
    font-weight: 600;
}

.bb-footer-link-highlight:hover {
    color: #e0e7ff !important;
}

.bb-footer-ref {
    margin-top: 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.bb-footer-ref-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #818cf8;
    margin-bottom: 0.35rem;
}

.bb-footer-ref-value {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bb-footer-ref-value code {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
}

.bb-footer-ref-copy {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.15rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.bb-footer-ref-copy:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
}

.bb-footer-heading--inline {
    margin-bottom: 0.35rem;
    padding-bottom: 0;
    border-bottom: none;
}

.bb-footer-newsletter {
    margin-top: 2rem;
    padding: 1.25rem 1.35rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.bb-footer-newsletter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.bb-footer-newsletter-copy {
    flex: 1 1 16rem;
    min-width: 0;
}

.bb-footer-newsletter-text {
    margin: 0;
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.55;
    max-width: 26rem;
}

.bb-footer-newsletter-action {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    flex: 1 1 18rem;
    max-width: 28rem;
}

.bb-footer-newsletter-input {
    flex: 1 1 12rem;
    min-width: 0;
    height: 2.5rem;
    padding: 0 0.85rem;
    font-size: 0.8125rem;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bb-footer-newsletter-input::placeholder {
    color: #475569;
}

.bb-footer-newsletter-input:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.bb-footer-newsletter-btn {
    flex-shrink: 0;
    height: 2.5rem;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: var(--bb-gradient-brand, linear-gradient(135deg, #6366f1 0%, #818cf8 100%));
    border: none;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-footer-newsletter-btn:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.bb-footer-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.bb-footer-feature {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.bb-footer-feature:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(129, 140, 248, 0.25);
    transform: translateY(-2px);
}

.bb-footer-feature-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(129, 140, 248, 0.15) 100%);
    color: #a5b4fc;
    font-size: 0.95rem;
}

.bb-footer-feature-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.3;
}

.bb-footer-feature:hover .bb-footer-feature-text {
    color: #e2e8f0;
}

.bb-footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.bb-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    padding: 1rem 0;
    font-size: 0.75rem;
    color: #475569;
    text-align: center;
}

.bb-footer-bottom-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
}

.bb-footer-bottom-meta a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.bb-footer-bottom-meta a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #818cf8;
    transition: width 0.2s ease;
}

.bb-footer-bottom-meta a:hover {
    color: #cbd5e1;
}

.bb-footer-bottom-meta a:hover::after {
    width: 100%;
}

/* Category strip - Flipkart/Meesho style */
.bb-category-strip {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bb-category-strip::-webkit-scrollbar { display: none; }

.bb-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 4.5rem;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.75rem;
    transition: background 0.2s, transform 0.2s;
}
.bb-cat-item:hover,
.bb-cat-item.is-active {
    background: #f1f5f9;
    transform: translateY(-2px);
    color: var(--bb-primary-dark);
}
.bb-cat-item.is-active .bb-cat-icon {
    background: linear-gradient(135deg, var(--bb-primary), var(--bb-primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.bb-cat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    font-size: 1.25rem;
    color: var(--bb-primary-dark);
    transition: box-shadow 0.2s;
}
.bb-cat-item:hover .bb-cat-icon {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.bb-cat-icon--accent {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

@media (min-width: 768px) {
    .bb-category-strip {
        justify-content: center;
        gap: 0.5rem;
    }
    .bb-cat-item {
        min-width: 5.5rem;
        font-size: 0.75rem;
    }
    .bb-cat-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.4rem;
    }
}

.bb-footer-credit {
    font-weight: 600;
    color: #94a3b8 !important;
}

.bb-footer-credit:hover {
    color: #e2e8f0 !important;
}

.bb-visitor-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.bb-visitor-counter i {
    color: #10b981;
    font-size: 1rem;
}

.bb-visitor-counter strong {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Product price display (MRP + sale + % off) */
.bb-price-display {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.bb-price-inline {
    display: inline-flex;
}

.bb-price-sm .bb-price-sale { font-size: 0.875rem; font-weight: 700; color: var(--bb-primary, #6366f1); }
.bb-price-sm .bb-price-mrp { font-size: 0.75rem; color: #94a3b8; text-decoration: line-through; }
.bb-price-sm .bb-price-off { font-size: 0.65rem; font-weight: 700; color: #fff; background: #ef4444; padding: 0.1rem 0.4rem; border-radius: 0.25rem; }

.bb-price-md .bb-price-sale { font-size: 1.125rem; font-weight: 700; color: var(--bb-primary, #6366f1); }
.bb-price-md .bb-price-mrp { font-size: 0.8125rem; color: #94a3b8; text-decoration: line-through; }
.bb-price-md .bb-price-off { font-size: 0.6875rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); padding: 0.15rem 0.45rem; border-radius: 999px; }

.bb-price-lg .bb-price-sale { font-size: 1.75rem; font-weight: 800; color: var(--bb-primary, #6366f1); letter-spacing: -0.02em; }
.bb-price-lg .bb-price-mrp { font-size: 1.125rem; color: #94a3b8; text-decoration: line-through; }
.bb-price-lg .bb-price-off { font-size: 0.8125rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); padding: 0.2rem 0.55rem; border-radius: 999px; }

.bb-price-dp {
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.bb-price-dp-label { display: block; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #16a34a; }
.bb-price-dp-value { font-size: 1.125rem; font-weight: 800; color: #15803d; }
.bb-price-dp-off { font-size: 0.7rem; color: #16a34a; margin-left: 0.35rem; }
.bb-price-dp-retail { margin-top: 0.25rem; }

/* Product image carousel (cards + product page) */
.bb-card-carousel {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    background: #f1f5f9;
}

.bb-card-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.bb-card-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.bb-card-carousel-dots,
.bb-gallery-dots {
    display: flex;
    gap: 0.35rem;
    z-index: 5;
}

.bb-card-carousel-dot,
.bb-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    transition: transform 0.2s ease, background 0.2s ease;
}

.bb-card-carousel-dot.is-active,
.bb-gallery-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.bb-card-carousel-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    z-index: 4;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.65);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.bb-product-gallery-stage {
    aspect-ratio: 1 / 1;
    width: 100%;
    min-height: 280px;
    max-height: min(72vh, 560px);
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-product-gallery-stage .bb-gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.bb-product-gallery-stage .bb-gallery-slide.is-active {
    position: absolute;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Product card badges */
.bb-product-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.bb-product-badge--sale { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; }
.bb-product-badge--new { background: #4f46e5; color: #fff; }
.bb-product-badge--stock { background: #f59e0b; color: #1e293b; }
.bb-product-badge--hot { background: #1e293b; color: #fff; }

.bb-trust-strip { border-bottom: 1px solid rgba(15, 23, 42, 0.06); margin-bottom: 1rem; }

.vendor-notify-unread { background: rgba(99, 102, 241, 0.06); }
.vendor-notify-item:hover { background: rgba(15, 23, 42, 0.03); }

.bb-coin-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 999px !important;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #92400e !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-coin-pill:hover {
    color: #78350f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
}

.bb-coin-amount {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 991px) {
    .bb-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 2rem;
    }

    .bb-footer-col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .bb-footer-tagline {
        max-width: 28rem;
    }
}

@media (max-width: 575px) {
    .bb-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0.75rem;
    }

    .bb-footer-features {
        gap: 0.4rem;
    }
}

/* Prevent horizontal page scroll on mobile */
@media (max-width: 767px) {
    .bb-site-video {
        width: min(260px, calc(100% - 20px));
        max-width: calc(100% - 20px);
        right: max(10px, env(safe-area-inset-right, 0px));
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
    }

    .bb-logo-nav { width: 100px; height: 32px; }

    .back-to-top {
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: max(4.5rem, calc(env(safe-area-inset-bottom, 0px) + 4.5rem));
        width: 44px;
        height: 44px;
    }

    #bb-toasts {
        left: 0;
        right: 0;
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .bb-footer-body {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .bb-footer-newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .bb-footer-newsletter-action {
        flex: none;
        max-width: none;
        width: 100%;
        align-items: stretch;
    }

    .bb-footer-newsletter-input {
        flex: none;
        width: 100%;
    }

    .bb-footer-newsletter-btn {
        width: 100%;
    }

    .bb-footer-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .marketplace-category-grid {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

/* Bootstrap Icons — reliable glyphs on buttons, nav, cards, trust badges */
.bi::before,
[class*=" bi-"]::before,
[class^="bi-"]::before {
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -0.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.marketplace-category-grid i.bi,
.bb-category-chip i.bi,
.btn i.bi,
.nav-link i.bi {
    display: inline-block;
    font-size: 1.15rem;
}

/* Ads — product-card style & video embeds */
.ad-slot-as-card .ad-card-product-style {
    border-radius: var(--bb-radius, 1rem);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.ad-product-card {
    display: block;
    background: #fff;
    border-radius: var(--bb-radius, 1rem);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    height: 100%;
}

.ad-product-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
}

.ad-youtube iframe,
.ad-iframe-wrap iframe {
    width: 100%;
    border: 0;
    border-radius: 0.75rem;
}

.bb-share-menu .bb-share-link[href="#"] {
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST STOREFRONT — bottom nav, touch UI, compact layout
   ═══════════════════════════════════════════════════════════════ */

.bb-storefront {
    --bb-mobile-nav-h: 4.25rem;
    --bb-mobile-search-h: 3.25rem;
}

.bb-storefront .bb-main {
    padding-bottom: calc(var(--bb-mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
}

@media (min-width: 992px) {
    .bb-storefront .bb-main {
        padding-bottom: 0;
    }
}

/* —— Sticky mobile search —— */
.bb-mobile-search {
    position: sticky;
    top: 0;
    z-index: 1025;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.bb-mobile-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    min-height: 2.75rem;
}

.bb-mobile-search-icon {
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
}

.bb-mobile-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 0.9375rem;
    padding: 0.25rem 0;
    outline: none;
}

.bb-mobile-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
}

/* —— Bottom tab navigation —— */
.bb-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0.15rem;
    min-height: var(--bb-mobile-nav-h);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
}

.bb-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 3rem;
    min-width: 3rem;
    padding: 0.2rem 0.25rem;
    border-radius: 0.85rem;
    color: #64748b;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

.bb-mobile-nav-item i {
    font-size: 1.25rem;
    line-height: 1;
}

.bb-mobile-nav-item.is-active {
    color: var(--bb-primary-dark);
    background: rgba(238, 242, 255, 0.85);
}

.bb-mobile-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    line-height: 1;
}

.bb-mobile-nav-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.55rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.bb-mobile-nav-badge--muted {
    background: var(--bb-secondary);
}

/* —— Product cards (mobile) —— */
.product-card {
    border-radius: 1rem;
}

.product-card-media-wrap {
    border-radius: 1rem 1rem 0 0;
    background: #f8fafc;
}

.product-card-body {
    padding: 0.75rem !important;
}

.product-card-category {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-rating {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #f59e0b;
    flex-shrink: 0;
}

.product-card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

.product-card-wishlist {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0.5rem !important;
}

.product-card-share {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

.product-card-quick-add {
    padding: 0.5rem 0.65rem 0.65rem;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 70%, transparent);
}

.product-card-add-btn {
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
    min-height: 2.5rem;
}

@media (min-width: 992px) {
    .product-card-body {
        padding: 1rem !important;
    }

    .product-card-title {
        font-size: 0.95rem;
    }

    .product-card-quick-add {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0.75rem;
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .product-card:hover .product-card-quick-add,
    .product-card-media-wrap:focus-within .product-card-quick-add {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* —— Home: sort pills + sections —— */
.bb-sort-rail {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    max-width: 100%;
}

.bb-sort-rail::-webkit-scrollbar {
    display: none;
}

.bb-sort-rail .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.bb-section-head {
    margin-bottom: 0.75rem;
}

/* —— Feature grid mobile —— */
@media (max-width: 575px) {
    .bb-feature-grid .feature-card {
        padding: 1rem 0.75rem !important;
        border-radius: 1rem;
    }

    .bb-feature-grid .feature-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 0.65rem;
        font-size: 1.1rem;
    }

    .bb-feature-grid .h5 {
        font-size: 0.8125rem !important;
        margin-bottom: 0.35rem !important;
    }

    .bb-feature-grid .small {
        font-size: 0.6875rem !important;
        line-height: 1.35;
    }
}

/* —— Cart page —— */
.bb-cart-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: box-shadow 0.2s;
}
.bb-cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.bb-cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
    border-radius: 0.5rem;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.bb-cart-remove-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    background: #fff;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}
.bb-cart-remove-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.bb-cart-summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    position: sticky;
    top: 110px;
}

@media (max-width: 767px) {
    .bb-cart-item-img {
        width: 56px;
        height: 56px;
    }

    .bb-cart-item {
        padding: 0.65rem;
    }

    .bb-cart-summary {
        position: static;
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .bb-qty-control {
        height: 2rem;
    }

    .bb-qty-btn {
        width: 2rem;
        font-size: 0.9rem;
    }

    .bb-qty-value {
        width: 2rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 768px) {
    .bb-cart-item-img {
        width: 80px;
        height: 80px;
    }

    .bb-cart-item {
        padding: 1rem;
    }
}

/* —— Dashboard offcanvas mobile —— */
.dashboard-offcanvas.offcanvas-lg {
    --bs-offcanvas-width: min(16rem, 88vw);
}

@media (max-width: 991.98px) {
    .dashboard-offcanvas .dashboard-sidebar {
        border-radius: 0;
        min-height: auto;
        max-height: none;
        position: static;
    }

    .dashboard-main {
        width: 100%;
    }

    .dashboard-mobile-toggle {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 992px) {
    .dashboard-sidebar-col {
        align-self: flex-start !important;
        position: sticky;
        top: var(--bb-dash-sidebar-top);
        z-index: 1020;
    }

    .dashboard-offcanvas.offcanvas-lg {
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        background: transparent;
        border: 0;
        display: block !important;
    }

    .dashboard-sidebar-panel {
        display: flex;
        flex-direction: column;
        max-height: calc(100dvh - var(--bb-dash-sidebar-top) - 1.25rem);
        overflow: hidden;
        padding: 0 !important;
    }

    .dashboard-sidebar {
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(100dvh - var(--bb-dash-sidebar-top) - 1.25rem);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    }

    .dashboard-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .dashboard-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 4px;
    }

    .dashboard-sidebar::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }
}

@media (max-width: 991.98px) {
    .dashboard-sidebar-panel {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 100%;
    }

    .dashboard-sidebar {
        overflow: visible;
        max-height: none;
    }
}

/* —— Sticky bars vs bottom nav —— */
@media (max-width: 991.98px) {
    .sticky-product-bar {
        bottom: calc(var(--bb-mobile-nav-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: 0.5rem;
    }

    .sticky-product-bar.visible {
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    }

    .sticky-bar-title {
        font-size: 0.8125rem;
    }

    .sticky-bar-actions .btn {
        font-size: 0.8125rem;
        padding: 0.45rem 0.85rem;
        min-height: 2.5rem;
    }

    .back-to-top {
        bottom: calc(var(--bb-mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 4.5rem);
    }

    .bb-site-video {
        bottom: calc(var(--bb-mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
    }
}

/* —— Navbar collapse (mobile menu) —— */
@media (max-width: 991.98px) {
    .bb-navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .bb-navbar-compact .navbar-collapse {
        background: #fff;
        border-radius: 1rem;
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
        max-height: min(70vh, 520px);
        overflow-y: auto;
    }

    .bb-navbar-compact .navbar-collapse form.d-flex {
        max-width: none !important;
        margin: 0 0 0.75rem !important;
    }

    .bb-nav-links {
        gap: 0.15rem;
    }

    .bb-nav-links .nav-link {
        padding: 0.65rem 0.75rem !important;
        border-radius: 0.65rem;
        min-height: 2.75rem;
    }

    .bb-nav-links .nav-link:hover {
        background: #f8fafc;
    }

    .bb-nav-links .btn {
        width: 100%;
        min-height: 2.75rem;
        margin-top: 0.25rem;
    }
}

/* —— Touch devices: no hover lift —— */
@media (hover: none) {
    .product-card:hover,
    .bb-card:hover,
    .bb-card-lite:hover,
    .feature-card:hover,
    .stat-card:hover {
        transform: none;
        box-shadow: inherit;
    }

    .btn:hover {
        transform: none;
    }
}

/* —— Marketplace intro + hero mobile —— */
@media (max-width: 767px) {
    .marketplace-intro {
        padding: 1rem;
        border-radius: 1rem;
        margin-bottom: 1.25rem !important;
    }

    .marketplace-intro .marketplace-title {
        font-size: 1.45rem;
        line-height: 1.15;
        margin: 0.65rem 0;
    }

    .marketplace-intro .marketplace-copy {
        font-size: 0.875rem;
        margin-bottom: 0.85rem;
    }

    .marketplace-intro .btn {
        width: 100%;
        min-height: 2.75rem;
    }

    .marketplace-intro .d-flex.flex-wrap.gap-2 {
        flex-direction: column;
    }

    .hero-carousel-img {
        height: 220px;
    }

    .hero-carousel-overlay h2 {
        font-size: 1.35rem !important;
    }

    .hero-carousel-overlay .lead {
        display: none !important;
    }

    .store-filter-card .btn {
        min-height: 2.75rem;
    }

    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    #products .d-flex.flex-wrap.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 575px) {
    .bb-category-chip {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }

    .bb-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bb-footer-col--brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .bb-footer-social {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PROFESSIONAL UX: spinners, transitions, quantity control
   ═══════════════════════════════════════════════════════════════ */

/* Loading spinner on buttons */
.bb-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: bbSpin 0.6s linear infinite;
    vertical-align: middle;
}

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

.bb-loading {
    pointer-events: none;
    opacity: 0.7;
}

.bb-spin {
    animation: bbSpin 0.6s linear infinite;
}

/* Quantity control (cart) */
.bb-qty-control {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    background: #f8fafc;
    height: 2.5rem;
}

.bb-qty-btn {
    width: 2.5rem;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bb-ink);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.bb-qty-btn:hover {
    background: var(--bb-primary);
    color: #fff;
}

.bb-qty-btn:active {
    transform: scale(0.9);
}

.bb-qty-value {
    width: 2.5rem;
    text-align: center;
    border: 0;
    background: transparent;
    font-weight: 700;
    font-size: 0.9375rem;
    -moz-appearance: textfield;
    padding: 0;
}

.bb-qty-value::-webkit-outer-spin-button,
.bb-qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Wishlist active heart */
.bb-wishlist-active i {
    color: var(--bb-secondary) !important;
}

/* Toast popup */
.bb-toast-popup {
    font-size: 0.875rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}
.bb-toast-native {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    background: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    font-size: 0.875rem;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 320px;
}
.bb-toast-native.show {
    transform: translateX(0);
}

/* Smooth page scroll */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Better touch targets */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 2.75rem;
        min-width: 2.75rem;
    }

    .form-control, .form-select {
        min-height: 2.75rem;
        font-size: 1rem !important;
    }

    input[type="number"] {
        font-size: 1rem;
    }
}

/* Responsive text and spacing */
@media (max-width: 575px) {
    h1, .h1 { font-size: 1.4rem !important; }
    h2, .h2 { font-size: 1.2rem !important; }
    h3, .h3 { font-size: 1.05rem !important; }
    .display-5 { font-size: 1.5rem !important; }
    .display-6 { font-size: 1.3rem !important; }
    .lead { font-size: 0.9375rem !important; }

    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .bb-card, .bb-card-lite {
        border-radius: 1rem;
    }

    .rounded-4 {
        border-radius: 1rem !important;
    }
}

/* Checkout responsive */
@media (max-width: 767px) {
    .checkout-col-summary {
        position: static !important;
    }

    #checkoutForm .row.g-2 {
        row-gap: 0.5rem !important;
    }
}

/* Tablet view */
@media (min-width: 768px) and (max-width: 991px) {
    .bb-product-grid .col-6 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .bb-product-rail-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* Product detail mobile */
@media (max-width: 767px) {
    .product-hero-card {
        padding: 0.5rem !important;
        border-radius: 1rem;
    }

    .product-detail-img {
        border-radius: 0.75rem;
    }

    .product-thumb {
        width: 56px !important;
        height: 56px !important;
    }

    .product-vendor-meta {
        font-size: 0.8125rem;
    }

    .sticky-product-bar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Skeleton loading placeholder */
.bb-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bbShimmer 1.5s infinite linear;
    border-radius: 0.5rem;
}

@keyframes bbShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* All buttons: active feedback */
.btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s !important;
}

/* Image aspect ratios — keep full photo inside the frame */
.product-img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    width: 100%;
    background: #f8fafc;
}

/* Prevent content shifting on load */
.product-card-media-wrap {
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
}

.product-card-media-wrap > a,
.product-card-media-wrap .bb-card-carousel {
    display: block;
    width: 100%;
    height: 100%;
}

.product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
}

.product-thumb,
.sticky-bar-thumb {
    object-fit: contain !important;
    object-position: center;
    background: #f8fafc;
}

.product-thumb {
    width: 80px;
    height: 80px;
}

.sticky-bar-thumb {
    width: 44px;
    height: 44px;
}

.bb-order-card-img {
    object-fit: contain !important;
    object-position: center;
    background: #f8fafc;
}

.bb-storefront img.rounded-3.object-fit-cover,
.bb-storefront .object-fit-cover,
.bb-cart-item-img {
    object-fit: contain !important;
    object-position: center;
    background: #f8fafc;
}

/* Smooth page transitions */
.bb-main {
    animation: bbFadeIn 0.3s ease-out;
}

@keyframes bbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bb-mobile-nav {
        padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    }

    .sticky-product-bar {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .bb-mobile-nav {
        min-height: 3rem;
        padding: 0.25rem 0.5rem;
    }

    .bb-mobile-nav-item {
        min-height: 2.5rem;
        font-size: 0.5625rem;
    }

    .bb-mobile-nav-item i {
        font-size: 1rem;
    }

    .bb-mobile-search {
        padding: 0.35rem 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE PRODUCT PAGE — tight spacing, no excess whitespace
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .product-hero-card {
        padding: 0 !important;
        border-radius: 0.75rem !important;
        box-shadow: none !important;
        border: 1px solid #e2e8f0;
        margin-bottom: 0.5rem !important;
    }

    .product-hero-card .bb-product-gallery-stage {
        border-radius: 0.75rem !important;
        min-height: 200px;
    }

    .product-detail-img {
        border-radius: 0.75rem;
    }

    section.container.py-1,
    section.container.py-2 {
        padding-top: 0.25rem !important;
        padding-bottom: 0 !important;
    }

    section.container .breadcrumb {
        margin-bottom: 0.4rem !important;
        font-size: 0.75rem;
    }

    .product-vendor-meta {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem !important;
    }

    .product-rating-meta {
        font-size: 0.8125rem;
    }

    #productPriceBlock {
        margin-bottom: 0.75rem !important;
    }

    #productPriceBlock .bb-price-sale {
        font-size: 1.5rem;
    }

    .col-lg-6 > .badge.badge-soft {
        margin-bottom: 0.5rem !important;
        font-size: 0.7rem;
    }

    .col-lg-6 > h1.display-6 {
        font-size: 1.35rem !important;
        margin-bottom: 0.35rem !important;
    }

    .col-lg-6 .mb-4 {
        margin-bottom: 1rem !important;
    }

    .col-lg-6 .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    #addToCartForm {
        gap: 0.5rem !important;
    }

    #addToCartForm .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
    }

    #addToCartForm input[type="number"] {
        max-width: 70px;
        min-height: 2.5rem;
    }

    .product-info-tabs .nav-link {
        font-size: 0.8125rem;
        padding: 0.5rem 0.4rem;
    }

    .tab-content.bb-card-lite {
        padding: 1rem !important;
    }

    .tab-content .lead {
        font-size: 0.875rem;
    }

    .product-thumb {
        width: 56px !important;
        height: 56px !important;
    }

    .trust-badge {
        padding: 0.65rem 0.5rem;
        border-radius: 0.75rem;
        gap: 0.5rem;
    }

    .trust-badge i {
        font-size: 1.25rem;
    }

    .trust-badge .fw-bold {
        font-size: 0.75rem;
    }

    .row.g-2.mt-2,
    .row.g-3.mt-5 {
        margin-top: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    .row.g-2.mt-2 .col-6,
    .row.g-3.mt-5 .col-6 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    hr.my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .horizontal-scroller {
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .horizontal-scroller > div {
        width: 180px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE FOOTER — compact, organized, no excess padding
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .bb-footer-body {
        padding-top: 1.25rem !important;
        padding-bottom: 0.75rem !important;
    }

    .bb-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0.75rem;
    }

    .bb-footer-col--brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        margin-bottom: 0.25rem;
    }

    .bb-footer-heading {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
        padding-bottom: 0.3rem;
    }

    .bb-footer-links {
        gap: 0.2rem;
    }

    .bb-footer-links li {
        margin-bottom: 0;
    }

    .bb-footer-links a {
        font-size: 0.8rem;
        padding: 0.1rem 0;
        line-height: 1.6;
    }

    .bb-footer-newsletter {
        margin-top: 1rem;
        padding: 0.85rem;
    }

    .bb-footer-newsletter-copy {
        flex: none;
        width: 100%;
    }

    .bb-footer-newsletter-text {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .bb-footer-newsletter-action {
        flex: none !important;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: none;
    }

    .bb-footer-newsletter-input {
        height: 2.75rem;
        font-size: 0.875rem;
        flex: none;
        width: 100%;
    }

    .bb-footer-newsletter-btn {
        height: 2.75rem;
        font-size: 0.875rem;
        border-radius: 0.75rem;
        width: 100%;
    }

    .bb-footer-features {
        margin-top: 1rem;
        padding-top: 1rem;
        gap: 0.5rem;
    }

    .bb-footer-feature {
        padding: 0.5rem 0.65rem;
        font-size: 0.75rem;
    }

    .bb-footer-feature-icon {
        font-size: 1rem;
    }

    .bb-footer-bottom {
        padding: 0.75rem 0 calc(var(--bb-mobile-nav-h, 4.25rem) + env(safe-area-inset-bottom, 0px) + 0.75rem);
    }

    .bb-footer-bottom-inner {
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .bb-footer-col--brand .bb-footer-mark {
        width: 36px;
        height: 36px;
    }

    .bb-footer-name {
        font-size: 1.1rem;
    }

    .bb-footer-tagline {
        font-size: 0.75rem;
    }

    .bb-footer-social-link {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE STICKY BAR — proper spacing above bottom nav
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .sticky-product-bar {
        padding: 0.5rem 0;
    }

    .sticky-product-bar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .sticky-bar-thumb {
        width: 36px !important;
        height: 36px !important;
        border-radius: 0.5rem !important;
    }

    .sticky-bar-title {
        font-size: 0.75rem;
        max-width: 120px;
    }

    .sticky-bar-actions .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        min-height: 2.25rem;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SEARCH + NAV — remove duplicate search appearance
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .bb-mobile-search {
        padding: 0.4rem 0.75rem;
        border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    }

    .bb-mobile-search-form {
        min-height: 2.5rem;
        padding: 0.25rem 0.75rem;
    }

    .bb-mobile-search-input {
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   GENERAL MOBILE TIGHTENING — spacing, font sizes, whitespace
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .display-6 {
        font-size: 1.35rem !important;
    }

    .h4, h4 {
        font-size: 1.1rem;
    }

    .py-md-4, .py-lg-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .g-4 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .mt-5 {
        margin-top: 1.5rem !important;
    }

    .product-card {
        border-radius: 0.75rem;
    }

    .bb-card {
        border-radius: 0.75rem;
    }

    /* Dashboard mobile */
    .dashboard-shell { background: #f8fafc; }
    .dashboard-main { padding: 0.75rem !important; }
    .dashboard-main h1 { font-size: 1.1rem; }
    .dashboard-main .h3, .dashboard-main h3 { font-size: 0.9rem; }
    .dashboard-main h4 { font-size: 0.85rem; }
    .dashboard-main .stat-card { padding: 0.75rem !important; border-radius: 0.6rem; }
    .dashboard-main .stat-card .h2 { font-size: 1.1rem; }
    .dashboard-main .stat-card .text-muted.small { font-size: 0.58rem; }
    .dashboard-main .bb-card { padding: 0.85rem !important; border-radius: 0.6rem; }
    .dashboard-main .bb-card h3 { font-size: 0.82rem; }
    .dashboard-main .table-card { border-radius: 0.6rem; }
    .dashboard-main .table-card .p-3 { padding: 0.6rem !important; }
    .dashboard-main .table { font-size: 0.72rem; }
    .dashboard-main .table th { font-size: 0.6rem; padding: 0.4rem 0.5rem; }
    .dashboard-main .table td { padding: 0.4rem 0.5rem; font-size: 0.72rem; }
    .dashboard-main .btn-sm { font-size: 0.65rem; padding: 0.25rem 0.5rem; }
    .dashboard-main .btn-bloom { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
    .dashboard-main .form-control, .dashboard-main .form-select { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
    .dashboard-main .form-label { font-size: 0.65rem; }
    .dashboard-main .badge { font-size: 0.58rem; }
    .dashboard-main .display-6 { font-size: 1.5rem !important; }
    .dashboard-main canvas { max-height: 150px !important; }

    /* Admin stat tiles mobile */
    .admin-stat-tile { padding: 0.75rem !important; }
    .admin-stat-tile .h3 { font-size: 1.1rem; }
    .admin-stat-tile .text-muted { font-size: 0.6rem !important; }

    /* Table responsive mobile */
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .table-card .table th, .table-card .table td { white-space: nowrap; }

    /* Product page mobile */
    .container.py-4 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .product-detail-section { padding: 0 !important; }

    /* Review stars mobile */
    .bb-star-rating .bb-star { font-size: 1.3rem; }

    /* Cards general mobile */
    .bb-card.p-4 { padding: 0.85rem !important; }
    .bb-card.p-3 { padding: 0.65rem !important; }
    .rounded-4 { border-radius: 0.75rem !important; }

    /* Row gutters mobile */
    .g-3 { --bs-gutter-y: 0.5rem; --bs-gutter-x: 0.5rem; }
    .row.g-4 { --bs-gutter-y: 0.6rem; --bs-gutter-x: 0.6rem; }
    .mb-4 { margin-bottom: 0.75rem !important; }
    .mb-3 { margin-bottom: 0.6rem !important; }
    .p-4 { padding: 0.85rem !important; }
    .p-3 { padding: 0.65rem !important; }

    /* Live snapshot card */
    .admin-console .bb-card, .admin-console .table-card { margin-bottom: 0.5rem; }

    /* Offcanvas mobile */
    .dashboard-offcanvas.offcanvas-lg { width: 260px; }
    .dashboard-offcanvas .offcanvas-body { padding: 0.75rem !important; }

    /* Resell catalog mobile */
    .resell-hub-title { font-size: 1.1rem; }
    .resell-hub-header .badge { font-size: 0.6rem; }
    .resell-product-img { height: 160px; }
    .resell-product-card:hover { transform: none; }
    .resell-product-card .p-3 { padding: 0.75rem !important; }
    .resell-product-card .h6 { font-size: 0.9rem; }
    .resell-product-card .d-grid .btn { min-height: 2.5rem; }
    .resell-filter-card { padding: 0.75rem !important; }
    .resell-pagination { margin-bottom: calc(var(--bb-mobile-nav-h, 4.25rem) + 0.5rem); }

    /* Mobile stack tables (admin / customer orders) */
    .bb-mobile-stack-table thead { display: none; }
    .bb-mobile-stack-table tbody tr {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 0.6rem;
        margin-bottom: 0.5rem;
        padding: 0.5rem 0.65rem;
        background: #fff;
    }
    .bb-mobile-stack-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        border: none;
        padding: 0.35rem 0;
        white-space: normal;
    }
    .bb-mobile-stack-table tbody td::before {
        content: attr(data-label);
        font-size: 0.62rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        flex-shrink: 0;
        min-width: 4.5rem;
    }
    .bb-mobile-stack-table tbody td:last-child { border-top: 1px solid #f1f5f9; padding-top: 0.5rem; margin-top: 0.25rem; }
    .bb-mobile-stack-table tbody td:last-child::before { display: none; }
    .admin-order-actions { flex-direction: column !important; align-items: stretch !important; }
    .admin-order-actions .form-select,
    .admin-order-actions .form-control { min-width: 0 !important; width: 100%; }

    /* Checkout mobile */
    .bb-checkout-page .bb-checkout-summary { position: static !important; }
    .bb-checkout-page .form-control-lg { font-size: 0.875rem; padding: 0.5rem 0.75rem; }
    .bb-checkout-page .payment-option { padding: 0.75rem !important; }
    .bb-checkout-page #placeOrderBtn { font-size: 0.9rem; padding: 0.65rem 1rem !important; }
    .bb-checkout-address { min-height: auto; }

    /* Customer dashboard mobile */
    .customer-dash-title { font-size: 1.25rem; }
    .customer-stat-tile .h3 { font-size: 1.1rem; }
    .customer-stat-tile { padding: 0.75rem !important; }

    /* Account pages */
    .bb-account-page { padding-bottom: calc(var(--bb-mobile-nav-h, 4.25rem) + 0.75rem) !important; }
    .bb-order-card-img { width: 64px; height: 64px; object-fit: contain; object-position: center; background: #f8fafc; }
    .bb-order-card .btn { font-size: 0.72rem; padding: 0.35rem 0.65rem; }

    /* Wishlist mobile */
    .bb-wishlist-title { font-size: 1.35rem; }
}

/* Extra-small screens (max 400px) */
@media (max-width: 400px) {
    .dashboard-main .stat-card { padding: 0.6rem !important; }
    .dashboard-main .stat-card .h2 { font-size: 1rem; }
    .dashboard-main .stat-card .text-muted.small { font-size: 0.55rem; }
    .bb-star-rating .bb-star { font-size: 1.1rem; }
    .container { padding-left: 0.5rem; padding-right: 0.5rem; }
    h1, .h1 { font-size: 1.1rem !important; }
    h2, .h2 { font-size: 1rem !important; }
    .btn { font-size: 0.75rem; }
    .dashboard-main .table th, .dashboard-main .table td { font-size: 0.62rem; padding: 0.3rem 0.4rem; }
    .bb-mobile-stack-table tbody td::before { min-width: 3.5rem; font-size: 0.58rem; }
}

