/* ═══════════════════════════════════════════════════════════════
   ACBIZ GLOBAL — Marketplace Stylesheet v1.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Marketplace-specific colour aliases (complement design-system.css) ── */
/* NOTE: Core tokens (--primary, --dark, --text, --border etc.)
   are defined in design-system.css and must NOT be overridden here. */
:root {
    /* Marketplace-only aliases */
    --blue:      var(--primary, #0d6efd);
    --blue-l:    var(--primary-light, #3d8bfd);
    --accent-mkt: var(--accent, #f5a623);
    --font-head: var(--font-body);
}

/* ── Common Marketplace Inner ────────────────────────────────── */
.mkt-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Marketplace Hero ────────────────────────────────────────── */
.mkt-hero {
    position: relative; padding: 100px 24px 70px;
    text-align: center; overflow: hidden;
    background: linear-gradient(180deg, #060912 0%, #0a0e1a 100%);
}
.mkt-hero-bg { position: absolute; inset: 0; }
.mkt-hero-inner { position: relative; z-index: 2; max-width: 740px; margin: 0 auto; }
.mkt-hero-inner h1 { font-family: var(--font-head); font-size: clamp(30px,5vw,56px); font-weight: 800; line-height: 1.1; letter-spacing: -1px; color: #fff; margin-bottom: 18px; }
.mkt-hero-inner > p { font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 32px; line-height: 1.7; }

.mkt-search-form { max-width: 580px; margin: 0 auto 28px; }
.mkt-search-wrap {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color .2s;
}
.mkt-search-wrap:focus-within { border-color: rgba(59,130,246,0.5); }
.mkt-search-icon { padding: 0 14px; color: rgba(255,255,255,0.35); font-size: 15px; flex-shrink: 0; }
.mkt-search-input { flex: 1; background: transparent; border: none; outline: none; padding: 14px 0; font-size: 15px; color: #fff; font-family: var(--font-body); }
.mkt-search-input::placeholder { color: rgba(255,255,255,0.3); }
.mkt-search-btn { background: linear-gradient(135deg, var(--blue), #2563eb); color: #fff; border: none; padding: 14px 22px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: opacity .2s; white-space: nowrap; }
.mkt-search-btn:hover { opacity: 0.9; }

.mkt-hero-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mkt-htab {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75); transition: background .2s, color .2s;
}
.mkt-htab:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Page Hero (smaller for listing/detail pages) ────────────── */
.mkt-page-hero { position: relative; padding: 80px 24px 50px; overflow: hidden; background: linear-gradient(180deg,#060912,#0a0e1a); }
.mkt-page-hero-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; text-align: center; }
.mkt-page-hero-inner h1 { font-family: var(--font-head); font-size: clamp(26px,4vw,44px); font-weight: 800; line-height: 1.1; letter-spacing: -0.8px; color: #fff; margin-bottom: 12px; }
.mkt-page-hero-inner > p { font-size: 16px; color: rgba(255,255,255,0.45); margin-bottom: 20px; line-height: 1.65; }
.mkt-page-meta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.mkt-page-meta span { font-size: 13px; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 6px; }
.mkt-page-meta i { color: #22c55e; }

/* ── Category Strip ──────────────────────────────────────────── */
.mkt-cats-strip { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 14px 0; }
.mkt-cats-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 24px; max-width: 1200px; margin: 0 auto; }
.mkt-cats-scroll::-webkit-scrollbar { display: none; }
.mkt-cat-pill {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 30px;
    font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.45); white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all .15s;
}
.mkt-cat-pill:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.mkt-cat-pill.active { background: rgba(29,78,216,0.2); color: #93c5fd; border-color: rgba(29,78,216,0.35); }
.mkt-cat-pill span { font-size: 11px; background: rgba(255,255,255,0.1); border-radius: 10px; padding: 1px 7px; }

/* ── Sections ────────────────────────────────────────────────── */
.mkt-section { background: var(--dark); padding: 60px 0; }
.mkt-section-alt { background: var(--dark-2); }
.mkt-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.mkt-section-head h2 { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.mkt-section-head h2 i { color: var(--blue-l); font-size: 17px; }
.mkt-section-head p { font-size: 13px; color: rgba(255,255,255,0.4); }
.mkt-see-all { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--blue-l); white-space: nowrap; flex-shrink: 0; transition: gap .15s; }
.mkt-see-all:hover { gap: 10px; }

/* ── Featured Grid ───────────────────────────────────────────── */
.mkt-featured-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mkt-feat-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
    display: flex; flex-direction: column;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.mkt-feat-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.mkt-feat-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 24px 20px 0; }
.mkt-feat-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mkt-cat-tag { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
.mkt-feat-body h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: #fff; }
.mkt-feat-body > p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.55; flex: 1; }
.mkt-feat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.mkt-stars { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #f59e0b; }
.mkt-stars span { color: rgba(255,255,255,0.35); margin-left: 4px; font-size: 11px; }
.mkt-from { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.7); }
.mkt-card-badge { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg,#1d4ed8,#06b6d4); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* ── Product Card (Grid) ─────────────────────────────────────── */
.mkt-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mkt-product-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 0;
    display: flex; flex-direction: column; position: relative;
    overflow: hidden; transition: transform .2s, box-shadow .2s;
    box-shadow: var(--shadow);
}
.mkt-product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.mpc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.mpc-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mpc-type-badge { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.mpc-saas { background: rgba(5,150,105,0.1); color: #059669; border: 1px solid rgba(5,150,105,0.2); }
.mpc-ent  { background: rgba(217,119,6,0.1);  color: #d97706; border: 1px solid rgba(217,119,6,0.2); }
.mpc-cat { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; padding: 0 16px 6px; display: flex; align-items: center; gap: 5px; }
.mpc-name { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--text); padding: 0 16px 6px; }
.mpc-tagline { font-size: 13px; color: var(--text-3); padding: 0 16px 14px; line-height: 1.55; flex: 1; }
.mpc-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); background: #f8fafc; margin-top: auto; }
.mpc-stars { display: flex; align-items: center; gap: 2px; font-size: 11px; color: #f59e0b; }
.mpc-rating-count { color: var(--text-3); margin-left: 4px; font-size: 11px; }
.mpc-price { font-size: 13.5px; font-weight: 700; color: var(--text); }
.mpc-price-label { font-size: 11px; font-weight: 400; color: var(--text-3); }
.mpc-per { font-size: 11px; font-weight: 400; color: var(--text-3); }
.mpc-price-custom { font-size: 12px; color: var(--text-3); font-style: italic; }
.mkt-product-card .mkt-card-badge { top: 10px; right: 10px; }

/* ── Marketplace Layout (sidebar + main) ─────────────────────── */
.mkt-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 32px 24px 60px; align-items: start; }
.mkt-main { display: flex; flex-direction: column; gap: 20px; }

/* Toolbar */
.mkt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.mkt-toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mkt-toolbar-right { display: flex; align-items: center; gap: 8px; }
.mkt-result-count { font-size: 14px; font-weight: 600; color: var(--text-2); }
.mkt-search-tag { display: flex; align-items: center; gap: 6px; background: rgba(29,78,216,0.08); color: var(--blue); border: 1px solid rgba(29,78,216,0.2); border-radius: 20px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.mkt-search-tag a { color: var(--text-3); font-weight: 700; transition: color .15s; }
.mkt-search-tag a:hover { color: #dc2626; }
.mkt-sort-sel { padding: 7px 28px 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: var(--font-body); color: var(--text-2); background: var(--bg); outline: none; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.mkt-view-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all .15s; }
.mkt-view-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Sidebar */
.mkt-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.msb-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.msb-card h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.msb-search-wrap { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.msb-search-wrap i { padding: 0 10px; color: var(--text-3); font-size: 13px; }
.msb-search-wrap input { flex: 1; border: none; outline: none; background: transparent; padding: 9px 8px 9px 0; font-size: 13.5px; font-family: var(--font-body); color: var(--text); }
.msb-cats { display: flex; flex-direction: column; gap: 2px; }
.msb-cat { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s; }
.msb-cat i { font-size: 13px; width: 18px; text-align: center; color: var(--text-3); flex-shrink: 0; }
.msb-cat span { margin-left: auto; font-size: 11px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1px 7px; color: var(--text-3); }
.msb-cat:hover { background: var(--bg); color: var(--text); }
.msb-cat.active { background: rgba(29,78,216,0.08); color: var(--blue); font-weight: 600; }
.msb-cat.active i { color: var(--blue); }
.msb-filters { display: flex; flex-direction: column; gap: 8px; }
.msb-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.msb-check span { flex: 1; }
.msb-ratings { display: flex; flex-direction: column; gap: 6px; }
.msb-rating-opt { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-3); padding: 4px 0; transition: color .15s; }
.msb-rating-opt i { font-size: 12px; color: #f59e0b; }
.msb-rating-opt:hover { color: var(--text); }
.msb-cta-card { background: linear-gradient(135deg, #0d1635, #1e1b4b); border-radius: var(--radius-lg); padding: 20px; text-align: center; color: #fff; }
.msb-cta-card i { font-size: 24px; color: #93c5fd; margin-bottom: 10px; display: block; }
.msb-cta-card h4 { font-family: var(--font-head); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.msb-cta-card p { font-size: 12.5px; color: rgba(255,255,255,0.5); margin-bottom: 14px; line-height: 1.5; }
.msb-cta-card a { display: inline-block; background: linear-gradient(135deg,var(--blue),#2563eb); color: #fff; padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; transition: opacity .2s; }
.msb-cta-card a:hover { opacity: 0.9; }

/* Empty state */
.mkt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); gap: 10px; }
.mkt-empty i { font-size: 40px; color: var(--text-3); opacity: 0.4; }
.mkt-empty h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); }
.mkt-empty p  { font-size: 14px; color: var(--text-3); }
.mkt-empty a  { color: var(--blue); font-weight: 600; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.mkt-breadcrumb { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 12px 0; }
.mkt-breadcrumb .mkt-inner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.mkt-breadcrumb a { color: var(--blue); transition: color .15s; }
.mkt-breadcrumb a:hover { color: var(--blue-dark, #1e3a8a); }
.mkt-breadcrumb i { font-size: 9px; }
.mkt-breadcrumb span { color: var(--text-2); font-weight: 500; }

/* ── Product Header ──────────────────────────────────────────── */
.mkt-prod-header { background: var(--card); border-bottom: 1px solid var(--border); padding: 28px 0; }
.mph-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.mph-left { display: flex; align-items: flex-start; gap: 20px; flex: 1; }
.mph-icon { width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.06); }
.mph-info { flex: 1; min-width: 0; }
.mph-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.mph-cat { font-size: 12px; font-weight: 600; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.mph-type-pill { font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.pill-saas { background: rgba(5,150,105,0.1); color: #059669; border: 1px solid rgba(5,150,105,0.2); }
.pill-ent  { background: rgba(217,119,6,0.1);  color: #d97706; border: 1px solid rgba(217,119,6,0.2); }
.mph-badge { background: linear-gradient(135deg,var(--blue),var(--accent)); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.mph-info h1 { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -0.3px; }
.mph-info > p { font-size: 15px; color: var(--text-2); margin-bottom: 12px; }
.mph-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); }
.mph-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #f59e0b; }
.mph-rating strong { color: var(--text); font-weight: 700; margin-left: 4px; }
.mph-rating span   { color: var(--text-3); font-size: 13px; }
.mph-stat-sep { color: var(--text-3); }
.mph-stats span { display: flex; align-items: center; gap: 5px; }
.mph-stats i { font-size: 12px; }
.mph-right { flex-shrink: 0; }
.mph-demo-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg,var(--blue),#2563eb); color: #fff; padding: 11px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 700; transition: opacity .2s; box-shadow: 0 4px 14px rgba(29,78,216,0.3); }
.mph-demo-btn:hover { opacity: 0.9; }

/* ── Product Layout ──────────────────────────────────────────── */
.mkt-prod-layout { background: var(--bg); padding: 32px 0 60px; }
.mpl-inner { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

/* Tab Nav */
.mpl-tabs { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px; margin-bottom: 20px; flex-wrap: wrap; }
.mpl-tab { padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); border: none; background: none; cursor: pointer; font-family: var(--font-body); transition: background .15s, color .15s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.mpl-tab:hover { background: var(--bg); color: var(--text); }
.mpl-tab.active { background: var(--blue); color: #fff; }
.mpl-tab-count { background: rgba(255,255,255,0.4); border-radius: 10px; padding: 1px 7px; font-size: 11px; }
.mpl-tab:not(.active) .mpl-tab-count { background: var(--bg); color: var(--text-3); }

/* Tab Content */
.mpl-tab-content { display: none; }
.mpl-tab-content.active { display: block; }
.mpl-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.mpl-section h3 { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.mpl-section h3 i { color: var(--blue); font-size: 15px; }
.mpl-description { font-size: 14.5px; color: var(--text-2); line-height: 1.75; white-space: pre-wrap; }

/* System requirements */
.mpl-requirements { display: flex; flex-direction: column; gap: 8px; }
.mpl-req-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.mpl-req-item i { color: #22c55e; font-size: 13px; }

/* Features grid */
.mpl-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mpl-feat-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); padding: 8px; background: #f8fafc; border-radius: 8px; }
.mpl-feat-item i { color: #22c55e; font-size: 12px; flex-shrink: 0; }

/* Screenshots */
.mpl-screenshots-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mpl-screen-thumb { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: transform .2s; aspect-ratio: 16/9; background: var(--bg); }
.mpl-screen-thumb:hover { transform: scale(1.02); }
.mpl-screen-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.mpl-faqs { display: flex; flex-direction: column; gap: 6px; }

/* Changelog */
.mpl-changelog { display: flex; flex-direction: column; gap: 16px; }
.mpl-cl-entry { padding: 16px; background: #f8fafc; border-radius: var(--radius); border-left: 3px solid var(--blue); }
.mpl-cl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mpl-cl-ver { background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.mpl-cl-date { font-size: 12.5px; color: var(--text-3); }
.mpl-cl-notes { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mpl-cl-notes li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.mpl-cl-notes i { color: var(--blue); font-size: 10px; margin-top: 4px; flex-shrink: 0; }

/* Reviews */
.mpl-rating-summary { display: flex; gap: 28px; align-items: flex-start; padding: 20px; background: #f8fafc; border-radius: var(--radius); margin-bottom: 24px; flex-wrap: wrap; }
.mpl-rating-big { text-align: center; }
.mpl-rating-big strong { font-family: var(--font-head); font-size: 52px; font-weight: 800; color: var(--text); display: block; line-height: 1; }
.mpl-rating-stars { display: flex; gap: 3px; font-size: 20px; color: #f59e0b; justify-content: center; margin: 6px 0; }
.mpl-rating-big > span { font-size: 12px; color: var(--text-3); }
.mpl-rating-bars { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 180px; }
.mpl-rb-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.mpl-rb-row > span:first-child { width: 30px; display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.mpl-rb-row i { font-size: 10px; color: #f59e0b; }
.mpl-rb-track { flex: 1; height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; }
.mpl-rb-fill  { height: 100%; background: #f59e0b; border-radius: 6px; transition: width .5s; }
.mpl-rb-row > span:last-child { width: 20px; text-align: right; }

.mpl-reviews-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.mpl-review { padding: 18px; background: #f8fafc; border-radius: var(--radius); border: 1px solid var(--border); }
.mpl-rev-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.mpl-rev-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--accent)); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; }
.mpl-rev-meta { flex: 1; }
.mpl-rev-meta strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.mpl-rev-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #059669; font-weight: 600; }
.mpl-rev-stars { display: flex; gap: 2px; font-size: 12px; color: #f59e0b; margin-top: 3px; }
.mpl-rev-date { font-size: 12px; color: var(--text-3); margin-left: auto; }
.mpl-rev-title { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.mpl-rev-body  { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.mpl-no-reviews { text-align: center; padding: 32px; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mpl-no-reviews i { font-size: 32px; opacity: 0.3; }
.mpl-login-to-review { text-align: center; padding: 16px; }
.mpl-login-to-review a { color: var(--blue); font-weight: 600; }

/* Write Review Form */
.mpl-write-review { background: #f0f4f8; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-top: 16px; }
.mpl-write-review h4 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.mwr-stars-select { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 16px; }
.mwr-stars-select input { display: none; }
.mwr-stars-select label { font-size: 26px; color: #cbd5e1; cursor: pointer; transition: color .15s; }
.mwr-stars-select input:checked ~ label,
.mwr-stars-select label:hover,
.mwr-stars-select label:hover ~ label { color: #f59e0b; }
.mwr-input, .mwr-textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-family: var(--font-body); color: var(--text);
    background: #fff; outline: none; margin-bottom: 12px;
    transition: border-color .2s;
}
.mwr-input:focus, .mwr-textarea:focus { border-color: var(--blue); }
.mwr-textarea { resize: vertical; }
.mwr-submit { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg,var(--blue),#2563eb); color: #fff; padding: 11px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 700; border: none; cursor: pointer; font-family: var(--font-body); transition: opacity .2s; }
.mwr-submit:hover { opacity: 0.9; }

/* ── Right Sidebar (Product Detail) ─────────────────────────── */
.mpl-right { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }

.mpl-price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.mpl-pc-head { margin-bottom: 16px; }
.mpl-pc-plan-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin-bottom: 6px; }
.mpl-pc-price { display: flex; align-items: baseline; gap: 2px; }
.mpl-pc-curr { font-size: 20px; font-weight: 700; color: var(--text-2); margin-top: 4px; }
.mpl-pc-price strong { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--text); }
.mpl-pc-per { font-size: 14px; color: var(--text-3); margin-left: 2px; }
.mpl-pc-annual { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.mpl-pc-custom-price { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--text); margin: 8px 0; }
.mpl-buy-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg,var(--blue),#2563eb); color: #fff; font-size: 15px; font-weight: 700; transition: opacity .2s, transform .1s; box-shadow: 0 4px 18px rgba(29,78,216,0.3); margin-bottom: 10px; }
.mpl-buy-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.mpl-demo-btn-sm { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--text-2); font-size: 14px; font-weight: 600; transition: background .15s; margin-bottom: 12px; }
.mpl-demo-btn-sm:hover { background: var(--bg); }
.mpl-trial-note { font-size: 12px; color: var(--text-3); text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; }

.mpl-plans-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.mpl-plans-card h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.mpl-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 9px; position: relative; transition: background .15s; margin-bottom: 4px; }
.mpl-plan-row:hover { background: var(--bg); }
.mpl-plan-featured { background: rgba(29,78,216,0.06); border: 1px solid rgba(29,78,216,0.15); }
.mpl-plan-rec { position: absolute; top: -8px; left: 10px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.mpl-plan-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.mpl-plan-info span   { font-size: 11.5px; color: var(--text-3); }
.mpl-plan-price strong { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--text); }
.mpl-plan-price span   { font-size: 11.5px; color: var(--text-3); }
.mpl-plan-custom { font-size: 13px; color: var(--text-3); font-style: italic; }
.mpl-compare-plans { display: block; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--blue); margin-top: 10px; }

.mpl-info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.mpl-info-card h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.4px; }
.mpl-info-rows { display: flex; flex-direction: column; gap: 10px; }
.mpl-ir { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.mpl-ir span  { color: var(--text-3); }
.mpl-ir strong { color: var(--text); font-weight: 600; }
.mpl-support-active  { color: #16a34a !important; display: flex; align-items: center; gap: 5px; }
.mpl-support-active i { font-size: 8px; }
.mpl-support-limited { color: #d97706 !important; }
.mpl-support-ended   { color: #dc2626 !important; }

.mpl-tags-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.mpl-tags-card h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.mpl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mpl-tag { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 12.5px; color: var(--text-2); transition: background .15s, color .15s; }
.mpl-tag:hover { background: rgba(29,78,216,0.08); color: var(--blue); border-color: rgba(29,78,216,0.2); }

/* Related */
.mpl-related { grid-column: 1 / -1; margin-top: 28px; }
.mpl-related h3 { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 20px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .mkt-grid { grid-template-columns: repeat(3,1fr); }
    .mkt-featured-grid { grid-template-columns: repeat(2,1fr); }
    .mpl-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .mkt-layout { grid-template-columns: 1fr; }
    .mkt-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .msb-cta-card { grid-column: 1/-1; }
    .mkt-grid { grid-template-columns: repeat(2,1fr); }
    .mpl-inner { grid-template-columns: 1fr; }
    .mpl-right { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .mpl-price-card { grid-column: 1/-1; }
    .mph-icon { width: 56px; height: 56px; font-size: 24px; }
    .mph-info h1 { font-size: 22px; }
}
@media (max-width: 640px) {
    .mkt-grid { grid-template-columns: 1fr; }
    .mkt-featured-grid { grid-template-columns: 1fr; }
    .mkt-sidebar { grid-template-columns: 1fr; }
    .mpl-right { grid-template-columns: 1fr; }
    .mpl-screenshots-grid { grid-template-columns: 1fr 1fr; }
    .mph-left { flex-direction: column; }
    .mkt-toolbar { flex-direction: column; align-items: flex-start; }
    .mpl-features-grid { grid-template-columns: 1fr; }
}

/* ═══ UMWEKA Resource Marketplace — Extended Styles ═══════════
   Appended for commerce engine compatibility                    */

/* DRM Viewer */
.drm-viewer-wrap { min-height: 80vh; background: #0a0e1a; }
.drm-watermark {
    pointer-events: none;
    z-index: 9998;
    user-select: none;
    -webkit-user-select: none;
}

/* Shop card (shared between shop.php inline and this file) */
.shop-card {
    background: var(--dark-3, #1a2236);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}
.shop-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.15); }

/* Product page sticky buy card */
.mkt-buy-card {
    position: sticky;
    top: 80px;
    background: var(--dark-3, #1a2236);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    overflow: hidden;
}

/* Vendor portal */
.vendor-stat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 16px; }

/* Resource viewer controls */
.drm-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 8px 14px;
    flex-wrap: wrap;
}
.drm-ctrl-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 12px;
    color: #c5d0e6;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    transition: .15s;
}
.drm-ctrl-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Responsive product page */
@media (max-width: 860px) {
    .mkt-product-grid { grid-template-columns: 1fr !important; }
    .mkt-buy-card { position: static; }
}

/* ══════════════════════════════════════════════════════════════
   STAGE 6 — Unified shop component classes
   (replaces inline styles across cart, orders, wishlist, order-detail, shop)
══════════════════════════════════════════════════════════════ */

/* ── Page wrapper ─────────────────────────────────────────────── */
.shop-page { max-width: 840px; }

/* ── Page header row ──────────────────────────────────────────── */
.shop-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-page-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.shop-page-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}
.shop-back-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.shop-back-link:hover { color: var(--primary-light); }

/* ── Cart item row ────────────────────────────────────────────── */
.shop-items-card { padding: 0; overflow: hidden; margin-bottom: 16px; }
.shop-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}
.shop-cart-item--bordered { border-bottom: 1px solid rgba(255,255,255,0.04); }
.shop-cart-thumb {
    width: 60px;
    height: 46px;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(13,110,253,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-size: cover;
    background-position: center;
}
.shop-cart-info { flex: 1; min-width: 0; }
.shop-cart-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-cart-name:hover { color: var(--primary-light); }
.shop-cart-type {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: capitalize;
    margin-top: 2px;
}
.shop-cart-price {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
.shop-cart-remove {
    color: rgba(248,113,113,0.5);
    font-size: 16px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.shop-cart-remove:hover { color: #f87171; background: rgba(248,113,113,0.1); }

/* ── Price variants ───────────────────────────────────────────── */
.shop-price       { font-size: 14px; font-weight: 800; color: #fff; }
.shop-price-free  { font-size: 13px; font-weight: 800; color: #4ade80; }
.shop-price-old   { font-size: 10px; color: #f87171; text-decoration: line-through; margin-right: 3px; }
.shop-price-sale  { font-size: 14px; font-weight: 800; color: #4ade80; }

/* ── Cart / checkout summary ──────────────────────────────────── */
.shop-summary-card { margin-bottom: 16px; }
.shop-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.shop-summary-discount { color: #4ade80; }
.shop-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

/* ── Coupon block ─────────────────────────────────────────────── */
.shop-coupon-card { margin-bottom: 16px; }
.shop-coupon-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.shop-coupon-row {
    display: flex;
    gap: 8px;
}
.shop-coupon-msg {
    font-size: 12px;
    margin-top: 8px;
    min-height: 16px;
}
.shop-coupon-success { color: #4ade80; }
.shop-coupon-error   { color: #f87171; }

/* ── Checkout CTA ─────────────────────────────────────────────── */
.shop-checkout-btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
}

/* ── Orders table view link ───────────────────────────────────── */
.shop-order-view-link {
    font-size: 11px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}
.shop-order-view-link:hover { text-decoration: underline; }

/* ── Order detail status card ─────────────────────────────────── */
.shop-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.shop-status-emoji  { font-size: 36px; flex-shrink: 0; }
.shop-status-info   { flex: 1; }
.shop-status-label  { margin-bottom: 4px; }
.shop-status-meta   { font-size: 12px; color: var(--text-muted); }
.shop-gift-badge    { margin-left: auto; }

/* ── Order detail items ───────────────────────────────────────── */
.shop-items-heading {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.shop-order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.shop-order-item:last-child { border-bottom: none; }
.shop-order-item-icon {
    width: 50px;
    height: 40px;
    border-radius: 8px;
    background: rgba(13,110,253,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.shop-order-item-info  { flex: 1; min-width: 0; }
.shop-order-item-title { font-size: 13px; font-weight: 600; color: #fff; }
.shop-order-item-type  { font-size: 10px; color: var(--text-muted); text-transform: capitalize; margin-top: 2px; }
.shop-order-item-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.shop-access-link      { font-size: 10px; color: var(--primary-light); text-decoration: none; }
.shop-access-link--granted { color: #4ade80; }

/* ── Refund card ──────────────────────────────────────────────── */
.shop-refund-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    background: rgba(239,68,68,0.05);
    border-color: rgba(239,68,68,0.2);
}
.shop-refund-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

/* ── Wishlist grid ────────────────────────────────────────────── */
.shop-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.shop-wish-card { padding: 0; overflow: hidden; }
.shop-wish-thumb {
    height: 100px;
    background: linear-gradient(135deg,rgba(13,110,253,.15),rgba(111,66,193,.1));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background-size: cover;
    background-position: center;
}
.shop-wish-type-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 7px;
    border-radius: 100px;
    text-transform: capitalize;
}
.shop-wish-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #f87171;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}
.shop-wish-remove:hover { background: rgba(239,68,68,0.6); }
.shop-wish-body  { padding: 14px; }
.shop-wish-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
}
.shop-wish-title:hover { color: var(--primary-light); }
.shop-wish-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.shop-wish-price { font-size: 13px; font-weight: 800; }

/* ── Shop featured section ────────────────────────────────────── */
.shop-featured-section { margin-bottom: 28px; }

/* ── Hero label spacing ───────────────────────────────────────── */
.mkt-hero-label { margin-bottom: 10px; }

/* ── Order detail wrapper ─────────────────────────────────────── */
.shop-order-detail { max-width: 680px; }

/* ══════════════════════════════════════════════════════════════
   SHOP.PHP COMPONENT CLASSES
   These were originally in shop.php inline <style> block,
   restored here as proper dark-theme CSS after Stage 6 cleanup.
══════════════════════════════════════════════════════════════ */

/* ── Hero layout ──────────────────────────────────────────────── */
.mkt-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.mkt-hero-text { flex: 1; }

.mkt-hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.mkt-hero-accent {
    background: linear-gradient(135deg, var(--primary, #0d6efd), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mkt-hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 540px;
}

/* ── Hero stats ───────────────────────────────────────────────── */
.mkt-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px 28px;
    min-width: 160px;
}
.mkt-stat { text-align: center; }
.mkt-stat-num {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}
.mkt-stat-lbl {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 4px;
    font-weight: 600;
}

/* ── Search form (standalone, not inside mkt-search-wrap) ─────── */
.mkt-search-form {
    display: flex;
    gap: 0;
    max-width: 520px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.mkt-search-form:focus-within {
    border-color: rgba(13,110,253,0.5);
}
.mkt-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    color: #fff;
    font-family: inherit;
    min-width: 0;
}
.mkt-search-input::placeholder { color: rgba(255,255,255,0.4); }
.mkt-search-btn {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.mkt-search-btn:hover { opacity: 0.88; }

/* ── Type tabs bar ────────────────────────────────────────────── */
.mkt-type-bar {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 10;
}
.mkt-type-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    scrollbar-width: none;
}
.mkt-type-tabs::-webkit-scrollbar { display: none; }
.mkt-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    min-height: 36px;
}
.mkt-type-tab:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mkt-type-tab.active {
    background: rgba(13,110,253,0.15);
    color: #60a5fa;
    border: 1px solid rgba(13,110,253,0.25);
}

/* ── Main layout (sidebar + content) ─────────────────────────── */
.mkt-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}
.mkt-sidebar {
    position: sticky;
    top: 56px;
}
.mkt-filter-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.mkt-filter-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}
.mkt-filter-option {
    display: block;
    padding: 6px 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}
.mkt-filter-option:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mkt-filter-option.active {
    background: rgba(13,110,253,0.12);
    color: #60a5fa;
    font-weight: 600;
}
.mkt-clear-btn {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #f87171;
    text-decoration: none;
    border: 1px solid rgba(248,113,113,0.2);
    border-radius: 8px;
    margin-top: 8px;
    transition: background 0.15s;
}
.mkt-clear-btn:hover { background: rgba(248,113,113,0.08); }

/* ── Results header ───────────────────────────────────────────── */
.mkt-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.mkt-results-count { font-size: 13px; color: rgba(255,255,255,0.55); }
.mkt-results-count strong { color: #fff; }
.mkt-sort-wrap { display: flex; align-items: center; gap: 8px; }
.mkt-sort-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}
.mkt-sort-select option { background: #1a2236; color: #fff; }

/* ── Section header ───────────────────────────────────────────── */
.mkt-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mkt-section-title  { font-size: 14px; font-weight: 700; color: #fff; }
.mkt-see-all { font-size: 12px; color: #f5a623; text-decoration: none; }

/* ── Featured grid ────────────────────────────────────────────── */
.mkt-featured-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.mkt-featured-card {
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.2s, border-color 0.2s;
    display: block;
}
.mkt-featured-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.14); }
.mkt-featured-thumb {
    height: 90px;
    background: linear-gradient(135deg, rgba(13,110,253,0.15), rgba(111,66,193,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.mkt-featured-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 7px;
    border-radius: 100px;
}
.mkt-featured-body { padding: 10px 12px; }
.mkt-featured-title { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.mkt-featured-price { font-size: 12px; font-weight: 700; color: #f5a623; }

/* ── Products grid ────────────────────────────────────────────── */
.mkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.mkt-card {
    background: rgba(26,34,54,0.9);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.mkt-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.14); }
.mkt-card-img-link { text-decoration: none; }
.mkt-card-thumb {
    height: 120px;
    background: linear-gradient(135deg, rgba(13,110,253,0.12), rgba(111,66,193,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.mkt-badge-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 800;
    background: #dc2626;
    color: #fff;
    padding: 2px 7px;
    border-radius: 100px;
}
.mkt-badge-featured {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    color: #f5a623;
    background: rgba(245,166,35,0.15);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.mkt-card-type {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 7px;
    border-radius: 100px;
}
.mkt-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mkt-card-cat    { font-size: 10px; font-weight: 700; color: #f5a623; text-transform: uppercase; letter-spacing: 0.05em; }
.mkt-card-title  { font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; line-height: 1.4; display: block; }
.mkt-card-title:hover { color: #60a5fa; }
.mkt-card-author { font-size: 11px; color: rgba(255,255,255,0.55); }
.mkt-card-rating { font-size: 11px; color: rgba(255,255,255,0.55); }
.mkt-stars       { color: #f5a623; }
.mkt-rating-count { font-size: 10px; }
.mkt-card-level  { font-size: 10px; font-weight: 600; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.55); padding: 2px 7px; border-radius: 100px; display: inline-block; }
.mkt-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.mkt-price       { font-size: 14px; font-weight: 800; color: #fff; }
.mkt-price-free  { font-size: 13px; font-weight: 800; color: #4ade80; }
.mkt-price-old   { font-size: 10px; color: #f87171; text-decoration: line-through; margin-right: 3px; }
.mkt-price-sale  { font-size: 14px; font-weight: 800; color: #4ade80; }
.mkt-cart-btn {
    background: rgba(13,110,253,0.1);
    border: 1px solid rgba(13,110,253,0.2);
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    color: inherit;
}
.mkt-cart-btn:hover { background: rgba(13,110,253,0.25); }

/* ── Pagination ───────────────────────────────────────────────── */
.mkt-pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 20px 0; }
.mkt-page-btn   { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.15s; }
.mkt-page-btn:not(.active) { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.07); }
.mkt-page-btn.active  { background: #0d6efd; color: #fff; }
.mkt-page-btn:hover:not(.active) { background: rgba(255,255,255,0.08); color: #fff; }

/* ── Toast ────────────────────────────────────────────────────── */
.mkt-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e2d45;
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 13px;
    color: #4ade80;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    display: none;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .mkt-hero-inner  { grid-template-columns: 1fr; text-align: center; }
    .mkt-hero-stats  { flex-direction: row; justify-content: center; }
    .mkt-hero-desc   { margin: 0 auto 24px; }
    .mkt-layout      { grid-template-columns: 1fr; }
    .mkt-sidebar     { display: none; }
    .mkt-featured-grid { grid-template-columns: repeat(2,1fr); }
    .mkt-grid        { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 600px) {
    .mkt-hero        { padding: 56px 16px 40px; }
    .mkt-hero-title  { font-size: 28px; }
    .mkt-hero-stats  { flex-wrap: wrap; gap: 12px; }
    .mkt-grid        { grid-template-columns: 1fr 1fr; }
    .mkt-featured-grid { grid-template-columns: 1fr 1fr; }
    .mkt-type-tab    { font-size: 11px; padding: 8px 10px; }
    .mkt-search-form { border-radius: 8px; }
}

/* ── Product detail page responsive grid ──────────────────────── */
.prd-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    /* Stack sidebar below main content on tablet and mobile */
    .prd-detail-grid {
        grid-template-columns: 1fr;
    }
}
