/*  ============================================================
    SFCSS Alumni Marketplace – Commerce Design System
    Inspired by Shopify, Jumia, Jiji structural clarity.
    Uses CSS custom properties for theming & dark mode.
    ============================================================ */

/* ----------------------------------------------------------
   1. MARKETPLACE TOKEN LAYER  (extends theme.css tokens)
   ---------------------------------------------------------- */
:root {
    /* ── Marketplace brand ── */
    --mp-brand:           #1a6b3c;
    --mp-brand-dark:      #0f4d2a;
    --mp-brand-light:     #22c55e;
    --mp-accent:          #f59e0b;
    --mp-accent-dark:     #d97706;

    /* ── Surface tokens ── */
    --mp-header-bg:       #ffffff;
    --mp-header-border:   #e5e7eb;
    --mp-hero-bg:         linear-gradient(135deg, #1a6b3c 0%, #15803d 50%, #166534 100%);
    --mp-category-bg:     #f9fafb;
    --mp-card-bg:         #ffffff;
    --mp-card-border:     #f3f4f6;
    --mp-card-hover:      #f9fafb;
    --mp-footer-bg:       #111827;
    --mp-footer-text:     #9ca3af;

    /* ── Text tokens ── */
    --mp-text:            #111827;
    --mp-text-secondary:  #6b7280;
    --mp-text-muted:      #9ca3af;
    --mp-price:           #059669;
    --mp-price-old:       #9ca3af;
    --mp-link:            #1a6b3c;
    --mp-link-hover:      #15803d;

    /* ── Interactive ── */
    --mp-btn-primary-bg:  #1a6b3c;
    --mp-btn-primary-text:#ffffff;
    --mp-btn-hover:       #15803d;
    --mp-badge-sale:      #ef4444;
    --mp-badge-new:       #3b82f6;
    --mp-badge-digital:   #8b5cf6;
    --mp-rating:          #f59e0b;

    /* ── Spacing & radius ── */
    --mp-radius-sm:       6px;
    --mp-radius:          10px;
    --mp-radius-lg:       14px;
    --mp-radius-xl:       20px;
    --mp-shadow-card:     0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
    --mp-shadow-hover:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --mp-shadow-navbar:   0 1px 3px rgba(0,0,0,.1);
    --mp-transition:      .2s cubic-bezier(.4,0,.2,1);
}

/* ── Dark mode overrides ── */
[data-theme="dark"] {
    --mp-header-bg:       #1a1a2e;
    --mp-header-border:   #2a2a3e;
    --mp-hero-bg:         linear-gradient(135deg, #0f4d2a 0%, #064e3b 50%, #052e1c 100%);
    --mp-category-bg:     #1e1e32;
    --mp-card-bg:         #1e1e32;
    --mp-card-border:     #2a2a3e;
    --mp-card-hover:      #252540;
    --mp-footer-bg:       #0a0a16;
    --mp-footer-text:     #6b7280;
    --mp-text:            #e5e7eb;
    --mp-text-secondary:  #9ca3af;
    --mp-text-muted:      #6b7280;
    --mp-price:           #34d399;
    --mp-link:            #4ade80;
    --mp-link-hover:      #22c55e;
    --mp-btn-primary-bg:  #15803d;
    --mp-btn-hover:       #16a34a;
    --mp-shadow-card:     0 1px 3px rgba(0,0,0,.2);
    --mp-shadow-hover:    0 4px 12px rgba(0,0,0,.3);
    --mp-shadow-navbar:   0 1px 3px rgba(0,0,0,.4);
}

/* ----------------------------------------------------------
   2. GLOBAL RESET
   ---------------------------------------------------------- */
.mp-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--mp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------
   3. HEADER / TOP BAR
   ---------------------------------------------------------- */

/* Announcement bar */
.mp-announce {
    background: var(--mp-brand);
    color: #fff;
    font-size: .78rem;
    font-weight: 500;
    padding: .35rem 0;
    text-align: center;
    letter-spacing: .02em;
}
.mp-announce a { color: #fef3c7; text-decoration: underline; font-weight: 600; }
.mp-announce .btn-close {
    filter: invert(1); opacity: .7; font-size: .6rem;
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
}

/* Top utility bar (above main header) */
.mp-topbar {
    background: var(--mp-header-bg);
    border-bottom: 1px solid var(--mp-header-border);
    font-size: .8rem;
    padding: .3rem 0;
    color: var(--mp-text-secondary);
}
.mp-topbar a {
    color: var(--mp-text-secondary);
    text-decoration: none;
    transition: color var(--mp-transition);
}
.mp-topbar a:hover { color: var(--mp-brand); }

/* Main header */
.mp-header {
    background: var(--mp-header-bg);
    border-bottom: 1px solid var(--mp-header-border);
    padding: .6rem 0;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: var(--mp-shadow-navbar);
    transition: box-shadow var(--mp-transition);
}
.mp-header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.mp-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Brand */
.mp-logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: var(--mp-text) !important;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.mp-logo img {
    height: 36px; width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mp-brand);
}
.mp-logo-text {
    display: flex; flex-direction: column; line-height: 1.15;
}
.mp-logo-text small {
    font-size: .62rem; font-weight: 400;
    color: var(--mp-text-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Search bar – prominent, commerce-style */
.mp-search {
    flex: 1;
    max-width: 560px;
    position: relative;
}
.mp-search-input {
    width: 100%;
    padding: .55rem 1rem .55rem 2.6rem;
    border: 2px solid var(--mp-header-border);
    border-radius: var(--mp-radius-xl);
    font-size: .9rem;
    background: var(--mp-card-bg);
    color: var(--mp-text);
    transition: border-color var(--mp-transition), box-shadow var(--mp-transition);
}
.mp-search-input:focus {
    border-color: var(--mp-brand);
    box-shadow: 0 0 0 3px rgba(26,107,60,.12);
    outline: none;
}
.mp-search-input::placeholder { color: var(--mp-text-muted); }
.mp-search-icon {
    position: absolute;
    left: .9rem; top: 50%; transform: translateY(-50%);
    color: var(--mp-text-muted);
    font-size: .9rem;
    pointer-events: none;
}
.mp-search-btn {
    position: absolute;
    right: 4px; top: 50%; transform: translateY(-50%);
    background: var(--mp-brand);
    color: #fff;
    border: none;
    border-radius: var(--mp-radius-xl);
    padding: .35rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--mp-transition);
}
.mp-search-btn:hover { background: var(--mp-btn-hover); }

/* Live search dropdown */
.mp-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow-hover);
    z-index: 2000;
    max-height: 380px;
    overflow-y: auto;
    display: none;
}

/* Header action buttons */
.mp-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.mp-header-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .7rem;
    border-radius: var(--mp-radius);
    color: var(--mp-text-secondary);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: all var(--mp-transition);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}
.mp-header-action:hover {
    background: var(--mp-card-hover);
    color: var(--mp-text);
    border-color: var(--mp-card-border);
}
.mp-header-action .badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--mp-badge-sale);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--mp-header-bg);
}
.mp-header-action i { font-size: 1.05rem; }

/* Theme toggle in header */
.mp-theme-btn {
    background: transparent;
    border: 1px solid var(--mp-header-border);
    color: var(--mp-text-secondary);
    padding: .4rem .5rem;
    border-radius: var(--mp-radius);
    cursor: pointer;
    font-size: .95rem;
    transition: all var(--mp-transition);
    display: inline-flex;
    align-items: center;
}
.mp-theme-btn:hover {
    background: var(--mp-card-hover);
    color: var(--mp-text);
}

/* Floating theme toggle FAB */
.mp-fab-theme {
    position: fixed;
    bottom: 80px; /* above mobile bottom nav */
    right: 16px;
    z-index: 1035;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--mp-card-border);
    background: var(--mp-card-bg);
    color: var(--mp-text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: all var(--mp-transition);
}
.mp-fab-theme:hover {
    background: var(--mp-card-hover);
    color: var(--mp-text);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transform: scale(1.08);
}
@media (min-width: 992px) {
    .mp-fab-theme { bottom: 24px; right: 24px; }
}

/* ----------------------------------------------------------
   4. CATEGORY NAVIGATION BAR
   ---------------------------------------------------------- */
.mp-catnav {
    background: var(--mp-category-bg);
    border-bottom: 1px solid var(--mp-header-border);
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mp-catnav::-webkit-scrollbar { display: none; }
.mp-catnav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    padding: 0;
}
.mp-catnav-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .65rem 1rem;
    font-size: .84rem;
    font-weight: 500;
    color: var(--mp-text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--mp-transition);
    white-space: nowrap;
}
.mp-catnav-item:hover,
.mp-catnav-item.active {
    color: var(--mp-brand);
    border-bottom-color: var(--mp-brand);
    background: rgba(26,107,60,.04);
}
.mp-catnav-item i {
    font-size: .8rem;
    opacity: .7;
}

/* Mega-menu dropdown */
.mp-mega-trigger { position: relative; }
.mp-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 600px;
    max-width: 800px;
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-card-border);
    border-radius: 0 0 var(--mp-radius-lg) var(--mp-radius-lg);
    box-shadow: var(--mp-shadow-hover);
    padding: 1.25rem;
    z-index: 1050;
    display: none;
}
.mp-mega-trigger:hover .mp-mega-menu,
.mp-mega-menu:hover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mp-mega-col h6 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--mp-brand);
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid rgba(26,107,60,.15);
}
.mp-mega-col a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem;
    border-radius: var(--mp-radius-sm);
    color: var(--mp-text);
    text-decoration: none;
    font-size: .85rem;
    transition: all var(--mp-transition);
}
.mp-mega-col a:hover {
    background: rgba(26,107,60,.06);
    color: var(--mp-brand);
    padding-left: .75rem;
}
.mp-mega-col a i {
    color: var(--mp-text-muted);
    width: 20px;
    text-align: center;
    font-size: .82rem;
}

/* ----------------------------------------------------------
   5. HERO / BANNER SECTION
   ---------------------------------------------------------- */
.mp-hero {
    background: var(--mp-hero-bg);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.mp-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.344 0L13.858 8.485 15.272 9.9l9.9-9.9h-2.828zM27.998 0l-9.9 9.9 1.415 1.414L29.412 1.415 27.998 0zM33.656 0l9.9 9.9-1.414 1.414-9.9-9.9L33.656 0zM0 5.373l.828-.83 1.415 1.415L0 8.2V5.374zm0 5.656l.828-.829 7.072 7.071-1.414 1.415L0 12.24v-1.21zm0 5.656l.828-.828 12.728 12.728-1.414 1.414L0 17.898v-1.213z' fill='rgba(255,255,255,.03)' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.mp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.mp-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}
.mp-hero p {
    font-size: 1.05rem;
    opacity: .85;
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.mp-hero-search {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}
.mp-hero-search input {
    width: 100%;
    padding: .75rem 1.25rem .75rem 3rem;
    border: none;
    border-radius: var(--mp-radius-xl);
    font-size: 1rem;
    background: rgba(255,255,255,.95);
    color: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.mp-hero-search input:focus { outline: none; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.mp-hero-search input::placeholder { color: #9ca3af; }
.mp-hero-search .search-icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 1rem;
}
.mp-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin-top: 1rem;
}
.mp-hero-tag {
    padding: .25rem .65rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--mp-radius-xl);
    color: rgba(255,255,255,.9);
    font-size: .75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--mp-transition);
}
.mp-hero-tag:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
}
@media (max-width: 767px) {
    .mp-hero { padding: 2rem 0; }
    .mp-hero h1 { font-size: 1.5rem; }
    .mp-hero p { font-size: .9rem; }
}

/* ----------------------------------------------------------
   6. STATS BAR
   ---------------------------------------------------------- */
.mp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin: -1.5rem auto 2rem;
    position: relative;
    z-index: 10;
    max-width: 800px;
}
.mp-stat-card {
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--mp-shadow-card);
    border: 1px solid var(--mp-card-border);
}
.mp-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--mp-brand);
    line-height: 1.2;
}
.mp-stat-label {
    font-size: .72rem;
    font-weight: 500;
    color: var(--mp-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .15rem;
}
@media (max-width: 575px) {
    .mp-stats { grid-template-columns: repeat(2, 1fr); margin-top: -1rem; }
}

/* ----------------------------------------------------------
   7. SECTION HEADERS
   ---------------------------------------------------------- */
.mp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.mp-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mp-text);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.mp-section-title i {
    color: var(--mp-text-muted);
    font-size: .95rem;
}
.mp-section-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--mp-brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: color var(--mp-transition);
}
.mp-section-link:hover { color: var(--mp-btn-hover); }
.mp-section-link i { font-size: .7rem; }

/* ----------------------------------------------------------
   8. CATEGORY GRID  (Shopify-style category cards)
   ---------------------------------------------------------- */
.mp-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .75rem;
}
.mp-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 1.25rem .75rem;
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius);
    text-decoration: none;
    color: var(--mp-text);
    transition: all var(--mp-transition);
    text-align: center;
}
.mp-cat-card:hover {
    border-color: var(--mp-brand);
    box-shadow: var(--mp-shadow-hover);
    transform: translateY(-2px);
    color: var(--mp-brand);
}
.mp-cat-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--mp-radius);
    background: rgba(26,107,60,.08);
    color: var(--mp-brand);
    font-size: 1.15rem;
    transition: all var(--mp-transition);
}
[data-theme="dark"] .mp-cat-icon {
    background: rgba(74,222,128,.1);
}
.mp-cat-card:hover .mp-cat-icon {
    background: var(--mp-brand);
    color: #fff;
}
.mp-cat-name {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
}
.mp-cat-count {
    font-size: .7rem;
    color: var(--mp-text-muted);
}

/* ----------------------------------------------------------
   9. PRODUCT CARDS  (Jumia-style commerce cards)
   ---------------------------------------------------------- */
.mp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
}
.mp-product-card {
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
    transition: all var(--mp-transition);
    text-decoration: none;
    color: var(--mp-text);
    display: flex;
    flex-direction: column;
    position: relative;
}
.mp-product-card:hover {
    box-shadow: var(--mp-shadow-hover);
    transform: translateY(-3px);
    border-color: transparent;
}
.mp-product-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--mp-category-bg);
}
.mp-product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.mp-product-card:hover .mp-product-img img { transform: scale(1.05); }
.mp-product-img .placeholder-icon {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--mp-text-muted);
    font-size: 2.5rem;
    opacity: .3;
}
.mp-product-badges {
    position: absolute;
    top: .5rem; left: .5rem;
    display: flex; flex-direction: column; gap: .3rem;
}
.mp-badge {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .15rem .5rem;
    border-radius: var(--mp-radius-sm);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mp-badge-sale { background: var(--mp-badge-sale); color: #fff; }
.mp-badge-new { background: var(--mp-badge-new); color: #fff; }
.mp-badge-digital { background: var(--mp-badge-digital); color: #fff; }
.mp-badge-featured { background: var(--mp-accent); color: #000; }

/* Wishlist / quick-add on hover */
.mp-product-actions {
    position: absolute;
    top: .5rem; right: .5rem;
    display: flex; flex-direction: column; gap: .3rem;
    opacity: 0;
    transform: translateX(6px);
    transition: all var(--mp-transition);
}
.mp-product-card:hover .mp-product-actions {
    opacity: 1; transform: translateX(0);
}
.mp-product-action-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-card-border);
    color: var(--mp-text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    cursor: pointer;
    transition: all var(--mp-transition);
    box-shadow: var(--mp-shadow-card);
}
.mp-product-action-btn:hover {
    background: var(--mp-brand);
    color: #fff;
    border-color: var(--mp-brand);
}

.mp-product-body {
    padding: .75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mp-product-store {
    font-size: .7rem;
    font-weight: 500;
    color: var(--mp-text-muted);
    margin-bottom: .2rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.mp-product-name {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mp-text);
    margin-bottom: .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mp-product-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-top: auto;
}
.mp-product-price .current {
    font-size: 1rem;
    font-weight: 800;
    color: var(--mp-price);
}
.mp-product-price .original {
    font-size: .78rem;
    font-weight: 400;
    color: var(--mp-price-old);
    text-decoration: line-through;
}
.mp-product-rating {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: .3rem;
}
.mp-product-rating .stars {
    color: var(--mp-rating);
    font-size: .7rem;
    display: flex;
    gap: .05rem;
}
.mp-product-rating .count {
    font-size: .7rem;
    color: var(--mp-text-muted);
}

/* ----------------------------------------------------------
   10. SERVICE CARDS
   ---------------------------------------------------------- */
.mp-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .75rem;
}
.mp-service-card {
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
    transition: all var(--mp-transition);
    text-decoration: none;
    color: var(--mp-text);
    display: flex;
    flex-direction: column;
}
.mp-service-card:hover {
    box-shadow: var(--mp-shadow-hover);
    transform: translateY(-2px);
    border-color: transparent;
}
.mp-service-header {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.mp-service-icon {
    width: 48px; height: 48px;
    border-radius: var(--mp-radius);
    background: rgba(26,107,60,.08);
    color: var(--mp-brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
[data-theme="dark"] .mp-service-icon { background: rgba(74,222,128,.1); }
.mp-service-info { flex: 1; min-width: 0; }
.mp-service-name {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: .15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mp-service-store {
    font-size: .72rem;
    color: var(--mp-text-muted);
}
.mp-service-body { padding: 0 1rem 1rem; flex: 1; }
.mp-service-desc {
    font-size: .82rem;
    color: var(--mp-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .75rem;
}
.mp-service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.mp-service-tag {
    padding: .15rem .5rem;
    border-radius: var(--mp-radius-xl);
    font-size: .68rem;
    font-weight: 600;
}
.mp-service-tag-virtual { background: rgba(59,130,246,.1); color: #3b82f6; }
.mp-service-tag-person { background: rgba(16,185,129,.1); color: #10b981; }
.mp-service-tag-flex { background: rgba(107,114,128,.1); color: #6b7280; }
.mp-service-footer {
    padding: .75rem 1rem;
    border-top: 1px solid var(--mp-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mp-service-price {
    font-size: .95rem;
    font-weight: 700;
    color: var(--mp-price);
}
.mp-service-duration {
    font-size: .72rem;
    color: var(--mp-text-muted);
}

/* ----------------------------------------------------------
   11. STORE CARDS (Featured stores on homepage)
   ---------------------------------------------------------- */
.mp-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: .75rem;
}
.mp-store-card {
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
    transition: all var(--mp-transition);
    text-decoration: none;
    color: var(--mp-text);
}
.mp-store-card:hover {
    box-shadow: var(--mp-shadow-hover);
    transform: translateY(-2px);
}
.mp-store-banner {
    height: 100px;
    position: relative;
    overflow: hidden;
}
.mp-store-banner img { width: 100%; height: 100%; object-fit: cover; }
.mp-store-banner .placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--mp-text-muted); opacity: .2;
}
.mp-store-banner-gradient {
    background: linear-gradient(135deg, var(--mp-brand) 0%, #15803d 100%);
}
.mp-store-avatar {
    width: 48px; height: 48px;
    border-radius: var(--mp-radius);
    object-fit: cover;
    border: 3px solid var(--mp-card-bg);
    margin-top: -24px;
    margin-left: 1rem;
    position: relative;
    z-index: 2;
    background: var(--mp-card-bg);
}
.mp-store-avatar-fallback {
    width: 48px; height: 48px;
    border-radius: var(--mp-radius);
    border: 3px solid var(--mp-card-bg);
    margin-top: -24px;
    margin-left: 1rem;
    position: relative;
    z-index: 2;
    background: var(--mp-brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.mp-store-body { padding: .25rem 1rem 1rem; }
.mp-store-name {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .1rem;
}
.mp-store-tagline {
    font-size: .78rem;
    color: var(--mp-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .5rem;
}
.mp-store-stats {
    display: flex;
    gap: .75rem;
    font-size: .72rem;
    color: var(--mp-text-muted);
}
.mp-store-stats i {
    color: var(--mp-text-secondary);
    margin-right: .2rem;
}

/* ----------------------------------------------------------
   12. VENDOR CTA STRIP
   ---------------------------------------------------------- */
.mp-vendor-cta {
    background: linear-gradient(90deg, var(--mp-accent) 0%, var(--mp-accent-dark) 100%);
    color: #000;
    padding: .6rem 0;
    text-align: center;
    font-size: .85rem;
    font-weight: 500;
}
[data-theme="dark"] .mp-vendor-cta {
    background: linear-gradient(90deg, #92400e 0%, #78350f 100%);
    color: #fbbf24;
}
.mp-vendor-cta a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* ----------------------------------------------------------
   13. FOOTER (Professional commerce footer)
   ---------------------------------------------------------- */
.mp-footer {
    background: var(--mp-footer-bg);
    color: var(--mp-footer-text);
    padding: 3rem 0 0;
    margin-top: 3rem;
}
.mp-footer-heading {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid rgba(26,107,60,.5);
    display: inline-block;
}
[data-theme="dark"] .mp-footer-heading { color: #e5e7eb; }
.mp-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mp-footer-links li { margin-bottom: .4rem; }
.mp-footer-links a {
    color: var(--mp-footer-text);
    text-decoration: none;
    font-size: .84rem;
    transition: color var(--mp-transition), padding-left var(--mp-transition);
    display: inline-flex;
    align-items: center;
}
.mp-footer-links a:hover {
    color: #fff;
    padding-left: 3px;
}
.mp-footer-links a i {
    font-size: .72rem;
    opacity: .6;
    width: 18px;
    margin-right: .25rem;
}
.mp-footer-brand {
    color: #fff;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .75rem;
}
.mp-footer-brand img {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.2);
}
.mp-footer-tagline {
    font-size: .84rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 300px;
}
.mp-footer-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .9rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--mp-radius);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--mp-transition);
}
.mp-footer-back:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.mp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
    margin-top: 1.5rem;
    font-size: .78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    color: #6b7280;
}
.mp-footer-bottom a {
    color: #6b7280;
    text-decoration: none;
}
.mp-footer-bottom a:hover { color: #fff; }

/* ----------------------------------------------------------
   14. TRUST BADGES (below hero or in footer)
   ---------------------------------------------------------- */
.mp-trust-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    font-size: .78rem;
    color: rgba(255,255,255,.7);
}
.mp-trust-item {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.mp-trust-item i { font-size: 1rem; }

/* ----------------------------------------------------------
   15. BREADCRUMBS
   ---------------------------------------------------------- */
.mp-breadcrumb {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .75rem 0;
    font-size: .82rem;
    color: var(--mp-text-muted);
    flex-wrap: wrap;
}
.mp-breadcrumb a {
    color: var(--mp-text-secondary);
    text-decoration: none;
    transition: color var(--mp-transition);
}
.mp-breadcrumb a:hover { color: var(--mp-brand); }
.mp-breadcrumb .separator {
    color: var(--mp-text-muted);
    font-size: .7rem;
}
.mp-breadcrumb .current {
    color: var(--mp-text);
    font-weight: 600;
}

/* ----------------------------------------------------------
   16. MOBILE NAVIGATION
   ---------------------------------------------------------- */
.mp-mobile-nav {
    display: none;
}
.mp-mobile-toggle {
    background: transparent;
    border: 1px solid var(--mp-header-border);
    color: var(--mp-text);
    padding: .35rem .55rem;
    border-radius: var(--mp-radius-sm);
    font-size: 1.15rem;
    cursor: pointer;
}
.mp-mobile-drawer {
    position: fixed;
    top: 0; left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--mp-card-bg);
    z-index: 2050;
    transition: left .3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
.mp-mobile-drawer.open { left: 0; }
.mp-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2040;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}
.mp-mobile-overlay.open { opacity: 1; visibility: visible; }
.mp-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--mp-card-border);
}
.mp-mobile-drawer-close {
    background: transparent; border: none;
    color: var(--mp-text-secondary);
    font-size: 1.2rem; cursor: pointer;
}
.mp-mobile-links {
    padding: .5rem 0;
}
.mp-mobile-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    color: var(--mp-text);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: all var(--mp-transition);
}
.mp-mobile-link:hover,
.mp-mobile-link.active {
    background: rgba(26,107,60,.06);
    color: var(--mp-brand);
}
.mp-mobile-link i {
    width: 20px;
    text-align: center;
    color: var(--mp-text-muted);
}
.mp-mobile-divider {
    border: none;
    border-top: 1px solid var(--mp-card-border);
    margin: .5rem 1rem;
}
.mp-mobile-section-label {
    padding: .5rem 1rem .25rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mp-text-muted);
}

/* Mobile bottom nav bar */
.mp-mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--mp-card-bg);
    border-top: 1px solid var(--mp-card-border);
    display: none;
    z-index: 1030;
    padding: .3rem 0 env(safe-area-inset-bottom, .3rem);
    box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.mp-mobile-bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
}
.mp-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    padding: .4rem .2rem;
    color: var(--mp-text-muted);
    text-decoration: none;
    font-size: .6rem;
    font-weight: 500;
    transition: color var(--mp-transition);
    position: relative;
}
.mp-bottom-nav-item.active,
.mp-bottom-nav-item:hover { color: var(--mp-brand); }
.mp-bottom-nav-item i { font-size: 1.1rem; }
.mp-bottom-nav-item .badge {
    position: absolute;
    top: 0; right: 50%; transform: translateX(12px);
    background: var(--mp-badge-sale);
    color: #fff;
    font-size: .55rem;
    border-radius: 50%;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 991px) {
    .mp-mobile-nav { display: flex; }
    .mp-mobile-bottom-nav { display: block; }
    /* Pad body for bottom nav */
    .mp-body-wrap { padding-bottom: 60px; }
}
@media (min-width: 992px) {
    .mp-mobile-nav { display: none !important; }
}

/* ----------------------------------------------------------
   17. UTILITIES
   ---------------------------------------------------------- */
.mp-container { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.mp-body-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.mp-body-wrap > main { flex: 1; }
.border-hover { transition: all var(--mp-transition); }
.border-hover:hover { border-color: var(--mp-brand) !important; }

/* Skeleton loading */
.mp-skeleton {
    background: linear-gradient(90deg, var(--mp-category-bg) 25%, var(--mp-card-hover) 50%, var(--mp-category-bg) 75%);
    background-size: 200% 100%;
    animation: mp-shimmer 1.5s infinite;
    border-radius: var(--mp-radius-sm);
}
@keyframes mp-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Smooth theme transition */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}

/* ----------------------------------------------------------
   18. STORE-LEVEL THEMING (CSS custom properties per store)
   ---------------------------------------------------------- */
.mp-store-themed {
    --store-accent: var(--mp-brand);
    --store-theme: var(--mp-text);
}
.mp-store-themed .mp-product-name:hover { color: var(--store-accent); }
.mp-store-themed .mp-section-link { color: var(--store-accent); }
.mp-store-themed .mp-product-price .current { color: var(--store-accent); }

/* ----------------------------------------------------------
   19. CHECKOUT / CART PAGE THEMING
   ---------------------------------------------------------- */

/* ── Checkout step card ── */
.mp-checkout-card {
    border: none;
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    box-shadow: var(--mp-shadow-card);
    background: var(--mp-card-bg);
    margin-bottom: 1.25rem;
}

/* ── Section header with gradient ── */
.mp-step-header {
    background: linear-gradient(135deg, var(--mp-brand) 0%, var(--mp-brand-dark) 100%);
    color: #fff;
    padding: .85rem 1.25rem;
    border: none;
}
.mp-step-header-inner {
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* ── Step number badge ── */
.mp-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: var(--mp-brand-dark);
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Step title ── */
.mp-step-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
.mp-step-title .mp-step-subtitle {
    font-weight: 400;
    opacity: .75;
    font-size: .85rem;
    margin-left: .35rem;
}

/* ── Card body ── */
.mp-checkout-body {
    padding: 1.25rem;
    background: var(--mp-card-bg);
    color: var(--mp-text);
}

/* ── Form labels ── */
.mp-form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--mp-text);
    margin-bottom: .25rem;
}
.mp-form-label .text-danger { color: var(--mp-badge-sale); }

/* ── Payment option cards ── */
.mp-payment-option {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem 1rem;
    border-radius: var(--mp-radius);
    cursor: pointer;
    transition: all var(--mp-transition);
}
.mp-payment-option--active {
    border: 2px solid var(--mp-brand);
    background: rgba(26, 107, 60, .06);
}
[data-theme="dark"] .mp-payment-option--active {
    background: rgba(74, 222, 128, .08);
}
.mp-payment-option--disabled {
    border: 1px solid var(--mp-card-border);
    background: var(--mp-category-bg);
    opacity: .55;
    cursor: not-allowed;
}
.mp-payment-option__icon {
    font-size: 1.35rem;
    margin-top: .1rem;
    flex-shrink: 0;
}
.mp-payment-option--active .mp-payment-option__icon {
    color: var(--mp-brand);
}
.mp-payment-option__title {
    font-weight: 700;
    color: var(--mp-text);
    font-size: .92rem;
}
.mp-payment-option__desc {
    font-size: .82rem;
    color: var(--mp-text-secondary);
    margin-top: .1rem;
}

/* ── Bank details info box ── */
.mp-info-box {
    padding: .85rem 1rem;
    border-radius: var(--mp-radius);
    margin-top: 1rem;
}
.mp-info-box--success {
    background: rgba(22, 163, 74, .08);
    border: 1px dashed rgba(22, 163, 74, .35);
}
[data-theme="dark"] .mp-info-box--success {
    background: rgba(52, 211, 153, .08);
    border-color: rgba(52, 211, 153, .25);
}
.mp-info-box--warning {
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .18);
    border-radius: var(--mp-radius-lg);
}
[data-theme="dark"] .mp-info-box--warning {
    background: rgba(245, 158, 11, .06);
    border-color: rgba(245, 158, 11, .15);
}
.mp-info-box__header {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .5rem;
    font-weight: 600;
    font-size: .85rem;
}
.mp-info-box--success .mp-info-box__header { color: var(--mp-price); }
.mp-info-box__row {
    display: flex;
    font-size: .85rem;
    padding: .15rem 0;
}
.mp-info-box__label {
    width: 42%;
    color: var(--mp-text-secondary);
    flex-shrink: 0;
}
.mp-info-box__value {
    font-weight: 600;
    color: var(--mp-text);
}

/* ── Order summary card ── */
.mp-summary-card {
    border: none;
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    box-shadow: var(--mp-shadow-card);
    background: var(--mp-card-bg);
    margin-bottom: 1.25rem;
}
.mp-summary-item {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--mp-card-border);
}
.mp-summary-item:last-child { border-bottom: none; }
.mp-summary-img {
    width: 48px;
    height: 48px;
    border-radius: var(--mp-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--mp-category-bg);
}
.mp-summary-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-text-muted);
}
.mp-summary-name {
    font-size: .86rem;
    font-weight: 600;
    color: var(--mp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-summary-meta {
    font-size: .75rem;
    color: var(--mp-text-muted);
}
.mp-summary-price {
    font-size: .86rem;
    font-weight: 600;
    color: var(--mp-text);
    flex-shrink: 0;
    text-align: right;
}
.mp-summary-footer {
    padding: 1rem 1.25rem;
    background: var(--mp-card-bg);
    border-top: 1px solid var(--mp-card-border);
}
.mp-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: .86rem;
    color: var(--mp-text-secondary);
    margin-bottom: .35rem;
}
.mp-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
    color: var(--mp-text);
    padding-top: .5rem;
    margin-top: .35rem;
    border-top: 1px solid var(--mp-card-border);
}
.mp-summary-total .mp-total-amount {
    font-size: 1.2rem;
    color: var(--mp-brand);
}

/* ── Place order button ── */
.mp-btn-place-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .85rem 1.5rem;
    background: var(--mp-brand);
    color: #fff;
    border: none;
    border-radius: var(--mp-radius);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--mp-transition), box-shadow var(--mp-transition);
    box-shadow: var(--mp-shadow-card);
}
.mp-btn-place-order:hover {
    background: var(--mp-btn-hover);
    box-shadow: var(--mp-shadow-hover);
}
.mp-btn-place-order:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ── Trust badges ── */
.mp-trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}
.mp-trust-badge {
    text-align: center;
}
.mp-trust-badge i {
    font-size: 1.3rem;
    display: block;
    margin-bottom: .15rem;
}
.mp-trust-badge span {
    font-size: .7rem;
    color: var(--mp-text-muted);
}

/* ── Page heading ── */
.mp-page-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.5rem;
}
.mp-page-heading__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mp-brand);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.mp-page-heading__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mp-text);
    margin: 0;
    line-height: 1.2;
}
.mp-page-heading__subtitle {
    font-size: .85rem;
    color: var(--mp-text-muted);
    margin: 0;
}

/* ── Steps list (what happens next) ── */
.mp-steps-list {
    counter-reset: mp-step;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mp-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .5rem 0;
    font-size: .86rem;
    color: var(--mp-text);
}
.mp-steps-list li::before {
    counter-increment: mp-step;
    content: counter(mp-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mp-brand);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ----------------------------------------------------------
   20. CART PAGE THEMING
   ---------------------------------------------------------- */

/* ── Cart item card ── */
.mp-cart-card {
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius);
    padding: 1rem;
    margin-bottom: .75rem;
    transition: box-shadow var(--mp-transition);
}
.mp-cart-card:hover {
    box-shadow: var(--mp-shadow-hover);
}
.mp-cart-item {
    display: flex;
    gap: .85rem;
}
.mp-cart-img {
    width: 80px;
    height: 80px;
    border-radius: var(--mp-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--mp-category-bg);
}
.mp-cart-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-text-muted);
}
.mp-cart-details {
    flex: 1;
    min-width: 0;
}
.mp-cart-name {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .15rem;
}
.mp-cart-name a {
    color: var(--mp-text);
    text-decoration: none;
    transition: color var(--mp-transition);
}
.mp-cart-name a:hover { color: var(--mp-brand); }
.mp-cart-store {
    font-size: .78rem;
    color: var(--mp-text-muted);
}
.mp-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .6rem;
}

/* ── Quantity stepper ── */
.mp-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius-sm);
    overflow: hidden;
}
.mp-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mp-category-bg);
    border: none;
    color: var(--mp-text);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--mp-transition), color var(--mp-transition);
    padding: 0;
    line-height: 1;
}
.mp-qty-btn:hover:not(:disabled) {
    background: var(--mp-brand);
    color: #fff;
}
.mp-qty-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.mp-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--mp-card-border);
    border-right: 1px solid var(--mp-card-border);
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    background: var(--mp-card-bg);
    color: var(--mp-text);
    -moz-appearance: textfield;
}
.mp-qty-input::-webkit-outer-spin-button,
.mp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Cart item price ── */
.mp-cart-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp-price);
}

/* ── Cart remove button ── */
.mp-cart-remove {
    background: transparent;
    border: none;
    color: var(--mp-text-muted);
    cursor: pointer;
    padding: .25rem;
    font-size: .95rem;
    transition: color var(--mp-transition);
}
.mp-cart-remove:hover {
    color: var(--mp-badge-sale);
}

/* ── Cart summary sidebar ── */
.mp-cart-summary {
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
}
.mp-cart-summary__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--mp-card-border);
    color: var(--mp-text);
}
.mp-cart-summary__header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--mp-text);
}
.mp-cart-summary__body {
    padding: 1rem 1.25rem;
}

/* ── Loading overlay for AJAX operations ── */
.mp-cart-loading {
    position: relative;
    pointer-events: none;
    opacity: .55;
    transition: opacity .15s;
}
.mp-cart-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--mp-card-bg);
    opacity: .3;
    border-radius: var(--mp-radius);
}

/* ── Empty state reusable ── */
.mp-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}
.mp-empty-state__icon {
    font-size: 3.5rem;
    color: var(--mp-text-muted);
    margin-bottom: .75rem;
}
.mp-empty-state__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mp-text);
    margin-bottom: .35rem;
}
.mp-empty-state__text {
    font-size: .9rem;
    color: var(--mp-text-secondary);
    margin-bottom: 1rem;
}
