/* =========================================================
   SehVarta Marketplace — Phase H2 premium e-commerce layer
   Additive, scoped to .mp-* classes so it can't leak onto
   unrelated pages that reuse the generic .product-card/.product-grid.
   ========================================================= */

.mp-category-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scrollbar-width: thin;
}
.mp-category-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e5e7eb);
    color: var(--ink, #111827);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mp-category-chip.is-active {
    background: var(--primary, #0f766e);
    border-color: var(--primary, #0f766e);
    color: #fff;
}
.mp-category-icon { font-size: 16px; }

.mp-offers-banner {
    background: linear-gradient(135deg, rgba(220,38,38,.12), rgba(245,158,11,.14));
    border: 1px solid rgba(245,158,11,.35);
}
.mp-offers-banner a {
    display: block;
    font-weight: 800;
    color: var(--ink, #111827);
    text-decoration: none;
}

.mp-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.mp-sponsored-card {
    flex: 0 0 200px;
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e5e7eb);
    text-decoration: none;
    color: var(--ink, #111827);
}
.mp-sponsored-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.mp-sponsored-card strong {
    display: block;
    padding: 8px 10px 10px;
    font-size: 13px;
}

.mp-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    letter-spacing: .02em;
}
.mp-badge-sponsored {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(17,24,39,.75);
    color: #fff;
}
.mp-badge-deal {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent, #dc2626);
    color: #fff;
}

.mp-product-card { position: relative; }
.mp-card-media { position: relative; }
.mp-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.mp-card-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: var(--soft, #eef7f6);
    color: var(--muted, #667085);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.mp-wishlist-btn-form {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}
.mp-wishlist-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.92);
    color: #dc2626;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,23,42,.18);
}
.mp-wishlist-btn.is-active { background: #fff; }

.mp-price-row s { color: var(--muted, #667085); margin-right: 6px; }

.mp-store-banner {
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15,118,110,.85), rgba(37,99,235,.65));
    background-size: cover;
    background-position: center;
    padding: 40px 20px 20px;
    margin-bottom: 16px;
    color: #fff;
}
.mp-store-head {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mp-store-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background-color: rgba(255,255,255,.2);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    border: 3px solid #fff;
    flex-shrink: 0;
}
.mp-store-head h1 { margin: 0; font-size: 24px; }
.mp-store-head p { margin: 4px 0 0; opacity: .9; }

/* Bottom nav is rendered on marketplace-family pages via the shared
   .mobile-icon-nav.instagram-mobile-nav component (see 84-design-tokens-bottomnav.css) —
   no extra positioning needed here, just label-width safety for 4 tabs. */
@media (max-width: 760px) {
    .mp-bottom-nav a small { font-size: 10.5px; }
}

.mp-earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.mp-earnings-card {
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    padding: 16px 18px;
}
.mp-earnings-card small { color: var(--muted, #667085); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.mp-earnings-card strong { display: block; font-size: 24px; margin-top: 6px; }
.mp-earnings-card span { display: block; color: var(--muted, #667085); font-size: 12px; margin-top: 4px; }
.mp-earnings-highlight { background: linear-gradient(135deg, rgba(15,118,110,.1), rgba(37,99,235,.08)); border-color: rgba(15,118,110,.3); }

/* Desktop: premium wider grid + larger carousel cards, equally polished */
@media (min-width: 1024px) {
    .mp-shell .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    .mp-sponsored-card { flex-basis: 240px; }
    .mp-category-carousel { padding-bottom: 18px; }
}
