:root {
    --market-ink: #171814;
    --market-muted: #6d7068;
    --market-cream: #f7f4ec;
    --market-sage: #dde6d6;
    --market-green: #395a46;
    --market-clay: #b96b4a;
    --market-line: #dedfd8;
}

/* The dashboard template locks html/body for panel scrolling; marketplace pages scroll as a document. */
html.marketplace-document { display: block; height: auto; min-height: 100%; overflow: visible; }
.marketplace-document body { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; color: var(--market-ink); background: #fff; font-family: Inter, sans-serif; }
.marketplace-document main { flex: 1 0 auto; min-width: 0; }
.marketplace-document .marketplace-footer { flex-shrink: 0; }
a { color: var(--market-green); }
.mw-500 { max-width: 500px; }
.marketplace-navbar { background: rgba(247,244,236,.96); border-bottom: 1px solid var(--market-line); backdrop-filter: blur(14px); }
.marketplace-wordmark { align-items: center; display: inline-flex; line-height: 1; }
.marketplace-navbar .navbar-brand { width: auto; flex: 0 0 auto; }
.marketplace-navbar .navbar-brand img { height: 2.25rem; width: auto; }
.marketplace-navbar .nav-link, .marketplace-navbar .btn { white-space: nowrap; }
.marketplace-logo { display: block; height: auto; max-width: 100%; }
.marketplace-logo-header { height: 2.25rem; width: auto; }
.marketplace-logo-footer { height: 2.8rem; width: auto; }
.marketplace-navbar .nav-link { color: var(--market-ink); font-weight: 500; }
.navbar-search { align-items: center; background: #f3f3ef; border: 1px solid transparent; border-radius: 999px; gap: .5rem; padding: .5rem .85rem; width: min(320px, 24vw); }
.navbar-search:focus-within { background: #fff; border-color: #a9b6a6; box-shadow: 0 0 0 3px rgba(57,90,70,.1); }
.navbar-search input { background: transparent; border: 0; min-width: 0; outline: none; width: 100%; }
.marketplace-footer { background: var(--market-cream); border-top: 1px solid #ebe6d9; }
.marketplace-footer a { color: var(--market-muted); display: block; margin: .4rem 0; }
.hero-market { background: linear-gradient(120deg, #f8f3e8 0%, #edf2e8 55%, #e4ebe0 100%); min-height: 560px; overflow: hidden; position: relative; }
.hero-market:after { background: radial-gradient(circle, rgba(255,255,255,.8), rgba(255,255,255,0) 65%); content: ''; height: 620px; position: absolute; right: -100px; top: -180px; width: 620px; }
.hero-content { position: relative; z-index: 1; }
.display-market { font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.055em; line-height: .96; }
.eyebrow { color: var(--market-green); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.search-panel { background: #fff; border: 1px solid rgba(23,24,20,.1); border-radius: 1.15rem; box-shadow: 0 18px 48px rgba(36,43,32,.12); padding: .75rem; }
.search-panel .form-control, .search-panel .form-select { border: 0; box-shadow: none; }
.boutique-card, .product-card { color: inherit; display: block; text-decoration: none; }
.media-frame { aspect-ratio: 4 / 3; background: #efefeb; border-radius: .8rem; overflow: hidden; position: relative; }
.media-frame.product { aspect-ratio: 4 / 5; }
.media-frame img { height: 100%; object-fit: cover; transition: transform .45s ease; width: 100%; }
.boutique-card:hover img, .product-card:hover img { transform: scale(1.035); }
.placeholder-art { align-items: center; background: linear-gradient(135deg, #dfe7d8, #f0e6d8); color: var(--market-green); display: flex; font-size: 3rem; height: 100%; justify-content: center; width: 100%; }
.verified-pill { align-items: center; background: #fff; border-radius: 999px; bottom: .75rem; box-shadow: 0 3px 16px rgba(0,0,0,.12); display: flex; font-size: .72rem; font-weight: 600; gap: .25rem; left: .75rem; padding: .35rem .55rem; position: absolute; }
.section-title { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.filter-bar { background: #fff; border: 1px solid var(--market-line); border-radius: .8rem; padding: 1rem; }
.business-hero { background: var(--market-cream); border-bottom: 1px solid #e9e2d4; }
.business-cover { aspect-ratio: 16 / 6; background: linear-gradient(135deg, #d5dfcf, #eadfce); border-radius: 1rem; overflow: hidden; }
.business-cover img { height: 100%; object-fit: cover; width: 100%; }
.price { font-variant-numeric: tabular-nums; font-weight: 650; }
.cart-group { border: 1px solid var(--market-line); border-radius: 1rem; overflow: hidden; }
.cart-group-header { background: var(--market-cream); border-bottom: 1px solid var(--market-line); padding: 1rem 1.25rem; }
.seller-subnav { background: #fafaf8; }
.seller-subnav-link { color: var(--market-muted); display: inline-flex; gap: .4rem; padding: .9rem 1rem; text-decoration: none; white-space: nowrap; }
.seller-subnav-link.active { box-shadow: inset 0 -2px var(--market-green); color: var(--market-green); font-weight: 600; }
.dashboard-stat { border: 1px solid var(--market-line); border-radius: .8rem; min-height: 125px; }
.status-dot { border-radius: 50%; display: inline-block; height: .55rem; margin-right: .35rem; width: .55rem; }
.status-dot.approved, .status-dot.active { background: #3b8c5a; }
.status-dot.pending { background: #d39931; }
.status-dot.rejected, .status-dot.inactive { background: #b84a4a; }
.auth-shell { min-height: min(42rem, calc(100svh - 75px)); }
.auth-card { border: 1px solid var(--market-line); border-radius: 1rem; box-shadow: 0 20px 60px rgba(28,35,25,.08); }
.form-control:focus, .form-select:focus { border-color: #7a9a82; box-shadow: 0 0 0 .2rem rgba(57,90,70,.12); }
.btn-market { background: var(--market-green); border-color: var(--market-green); color: #fff; }
.btn-market:hover { background: #284936; border-color: #284936; color: #fff; }
.empty-state { background: #fafaf7; border: 1px dashed #cfd1ca; border-radius: 1rem; padding: 3rem 1rem; text-align: center; }
@media (max-width: 991.98px) { .hero-market { min-height: auto; } .display-market { font-size: clamp(2.8rem, 12vw, 5rem); } .marketplace-logo-header { height: 2rem; } }
@media (max-width: 1199.98px) {
    .marketplace-navbar { position: static; }
    .marketplace-navbar .navbar-brand img { height: 2rem; }
    .marketplace-navbar .navbar-collapse { padding: .75rem 0; }
    .marketplace-navbar .navbar-nav { align-items: stretch; }
    .marketplace-navbar .nav-link { padding: .65rem 0; }
    .marketplace-navbar .navbar-nav .btn { display: inline-block; margin-top: .5rem; }
}
@media (max-width: 1199.98px) {
    .marketplace-document .container, .marketplace-document .container-xl { --gutter-x: 2rem; }
    .marketplace-document .container > .row, .marketplace-document .container-xl > .row { --gutter-x: 2rem; }
}
