/* =============================================
   Buren Trade Marketplace Styles — Modern Edition
   ============================================= */

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--base-rgb), .25); }
    50%      { box-shadow: 0 0 0 10px rgba(var(--base-rgb), 0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* --- Hero Section --- */
.marketplace-hero {
    background: linear-gradient(160deg, var(--header-bg) 0%, rgba(var(--base-rgb), .12) 50%, rgba(var(--base-rgb), .04) 100%);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}
.marketplace-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--base-rgb), .08) 0%, transparent 70%);
    pointer-events: none;
}
.marketplace-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--base-rgb), .06) 0%, transparent 70%);
    pointer-events: none;
}

.marketplace-hero .hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--base-title);
    letter-spacing: -.02em;
    line-height: 1.2;
}

.marketplace-hero .hero-content p {
    font-size: 1.12rem;
    color: #5a6270;
    margin-bottom: 28px;
    line-height: 1.7;
}

.dark-theme .marketplace-hero .hero-content p {
    color: #9aa8b5;
}

.marketplace-hero .hero-search {
    max-width: 640px;
}

.marketplace-hero .hero-search .input-group {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08), 0 1px 3px rgba(0,0,0,.04);
    border-radius: 60px;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.marketplace-hero .hero-search .input-group:focus-within {
    border-color: rgba(var(--base-rgb), .35);
    box-shadow: 0 8px 32px rgba(var(--base-rgb), .12), 0 1px 3px rgba(0,0,0,.04);
}

.dark-theme .marketplace-hero .hero-search .input-group {
    background: #1a2a38;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

.marketplace-hero .hero-search .form-control {
    border: none;
    padding: 16px 26px;
    font-size: 1rem;
    background: transparent;
}

.dark-theme .marketplace-hero .hero-search .form-control {
    color: #ddd;
}

.marketplace-hero .hero-search .form-control:focus {
    box-shadow: none;
}

.marketplace-hero .hero-search .btn-search {
    background: var(--base-clr);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: .01em;
}
.marketplace-hero .hero-search .btn-search:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.hero-stats {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid rgba(var(--base-rgb), .08);
    transition: transform .3s, box-shadow .3s;
}
.dark-theme .hero-stats .stat-item {
    background: rgba(26,42,56,.7);
    border-color: rgba(255,255,255,.05);
}
.hero-stats .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--base-rgb), .1);
}

.hero-stats .stat-item .stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--base-clr);
    display: block;
    line-height: 1.2;
}

.hero-stats .stat-item .stat-label {
    font-size: 0.82rem;
    color: #6c7580;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dark-theme .hero-stats .stat-item .stat-label {
    color: #8aa;
}

/* --- Section Common --- */
.mp-section {
    padding: 60px 0;
}

.mp-section-sm {
    padding: 36px 0;
}

.mp-section-bg {
    background: linear-gradient(180deg, #f6f8fb 0%, #f0f2f6 100%);
}

.dark-theme .mp-section-bg {
    background: linear-gradient(180deg, #0c1820 0%, #0f1e28 100%);
}

.mp-section-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--base-title);
    letter-spacing: -.01em;
}

.mp-section-subtitle {
    color: #6c7580;
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dark-theme .mp-section-subtitle {
    color: #8aa;
}

.mp-view-all {
    color: var(--base-clr);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(var(--base-rgb), .06);
}
.mp-view-all:hover {
    background: rgba(var(--base-rgb), .14);
    color: var(--base-clr);
    transform: translateX(3px);
}

/* --- Slide Icon --- */
.slide-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--base-rgb), .08);
    color: var(--base-clr);
    transition: .25s;
}
.slide-icon:hover {
    background: var(--base-clr);
    color: #fff;
}

/* --- Category Cards --- */
.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px 20px;
    text-align: center;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid #e8ecf1;
    text-decoration: none;
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--base-rgb), .04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .35s;
}
.category-card:hover::before { opacity: 1; }

.dark-theme .category-card {
    background: #1a2a38;
    border-color: #283e50;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(var(--base-rgb), .14), 0 2px 8px rgba(0,0,0,.04);
    border-color: rgba(var(--base-rgb), .3);
}

.category-card .cat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 14px;
    border: 2px solid rgba(var(--base-rgb), 0.1);
    background: rgba(var(--base-rgb), .04);
    padding: 4px;
    transition: transform .35s;
}
.category-card:hover .cat-icon {
    transform: scale(1.08);
}

.category-card .cat-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #2d3748;
    margin-bottom: 4px;
    display: block;
    position: relative;
}

.dark-theme .category-card .cat-name {
    color: #e2e8f0;
}

.category-card .cat-count {
    font-size: 0.78rem;
    color: #8c95a1;
    font-weight: 500;
}

/* --- Service Cards --- */
.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid #e8ecf1;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
}

.dark-theme .service-card {
    background: #1a2a38;
    border-color: #283e50;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1), 0 2px 8px rgba(0,0,0,.03);
    border-color: rgba(var(--base-rgb), .2);
}

.service-card .service-thumb {
    position: relative;
    overflow: hidden;
    height: 190px;
}
.service-card .service-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(0,0,0,.06));
    pointer-events: none;
}

.service-card .service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}

.service-card:hover .service-thumb img {
    transform: scale(1.08);
}

.service-card .service-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--base-clr);
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.service-card .service-badge.discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.service-card .service-badge.trending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Service Card Actions (Add to Cart + Wishlist) */
.service-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 14px;
}
.sc-action-btn {
    width: 38px;
    height: 38px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    color: #64748b;
    font-size: 18px;
}
.sc-action-btn:hover {
    background: var(--base-clr);
    color: #fff;
    border-color: var(--base-clr);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(var(--base-rgb), .3);
}
.sc-action-btn.wishlisted { color: #ef4444; border-color: #fca5a5; }
.sc-action-btn.wishlisted:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

.service-card .service-body {
    padding: 16px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card .service-category {
    font-size: 0.72rem;
    color: var(--base-clr);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.service-card .service-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.dark-theme .service-card .service-name {
    color: #f1f5f9;
}

.service-card .service-desc {
    font-size: 0.84rem;
    color: #64748b;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    line-height: 1.55;
}

.dark-theme .service-card .service-desc {
    color: #94a3b8;
}

.service-card .service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}

.dark-theme .service-card .service-footer {
    border-top-color: #283e50;
}

.service-card .service-price {
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--base-clr);
}

.service-card .service-price .old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.82rem;
    margin-left: 6px;
}

.service-card .service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.84rem;
    color: #f59e0b;
    font-weight: 600;
    background: #fffbeb;
    padding: 3px 8px;
    border-radius: 6px;
}
.dark-theme .service-card .service-rating {
    background: rgba(245,158,11,.1);
}

.service-card .service-rating .rating-count {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 400;
}

/* --- Banner/Campaign Section --- */
.banner-carousel .banner-slide {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    transition: transform .3s;
}
.banner-carousel .banner-slide:hover { transform: scale(1.01); }

.banner-carousel .banner-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
}

.campaign-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.campaign-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .5s;
}
.campaign-card:hover img {
    transform: scale(1.05);
}

.campaign-card .campaign-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, .75) 100%);
    padding: 28px 18px 18px;
    color: #fff;
}

.campaign-card .campaign-overlay h5 {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.campaign-card .campaign-overlay .discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* --- Provider Cards --- */
.provider-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid #e8ecf1;
    text-decoration: none;
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.provider-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(var(--base-rgb), .03) 0%, transparent 100%);
    pointer-events: none;
}

.dark-theme .provider-card {
    background: #1a2a38;
    border-color: #283e50;
}

.provider-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .1);
    border-color: rgba(var(--base-rgb), .3);
}

.provider-card .provider-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 3px solid rgba(var(--base-rgb), 0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: transform .3s;
}
.provider-card:hover .provider-logo {
    transform: scale(1.08);
}

.provider-card .provider-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
    margin-bottom: 6px;
    display: block;
}

.dark-theme .provider-card .provider-name {
    color: #f1f5f9;
}

.provider-card .provider-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #f59e0b;
    margin-bottom: 6px;
    font-weight: 600;
    background: #fffbeb;
    padding: 2px 8px;
    border-radius: 6px;
}
.dark-theme .provider-card .provider-rating {
    background: rgba(245,158,11,.1);
}

.provider-card .provider-services {
    font-size: 0.8rem;
    color: #8c95a1;
    font-weight: 500;
}

.provider-card .provider-bookings {
    font-size: 0.8rem;
    color: #8c95a1;
    margin-top: 4px;
}

/* --- Offers Section --- */
.offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(239,68,68,.3);
}

/* --- Advertisement Section --- */
.ad-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.ad-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .5s;
}
.ad-card:hover img {
    transform: scale(1.04);
}

.ad-card .ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, .8) 100%);
    padding: 36px 24px 24px;
    color: #fff;
}

.ad-card .ad-overlay h4 {
    font-weight: 800;
    margin-bottom: 6px;
}

.ad-card .ad-overlay p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* --- Search Results --- */
.search-results-section {
    padding: 40px 0 60px;
}

.search-filters {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e8ecf1;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.dark-theme .search-filters {
    background: #1a2a38;
    border-color: #283e50;
}

.search-filters h5 {
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--base-title);
    font-size: 1.05rem;
}

.search-filters .filter-group {
    margin-bottom: 20px;
}

.search-filters .filter-group label {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 8px;
    display: block;
    color: #475569;
}

.filter-category-item {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #475569;
    transition: all 0.2s;
    border-radius: 8px;
    margin-bottom: 2px;
}

.dark-theme .filter-category-item {
    color: #94a3b8;
}

.filter-category-item:hover {
    background: rgba(var(--base-rgb), .06);
    color: var(--base-clr);
}
.filter-category-item.active {
    color: var(--base-clr);
    background: rgba(var(--base-rgb), .08);
    font-weight: 600;
}

/* --- Service Detail Page --- */
.service-detail-hero {
    padding: 28px 0 0;
}

.service-detail-cover {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

.service-detail-body {
    padding: 36px 0 72px;
}

.service-detail-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--base-title);
    letter-spacing: -.01em;
    line-height: 1.25;
}

.service-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.service-detail-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #64748b;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.dark-theme .service-detail-meta .meta-item {
    color: #94a3b8;
    background: #1e2d3d;
}

.service-detail-meta .meta-item i {
    color: var(--base-clr);
    font-size: 1.1rem;
}

.variation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf1;
}

.dark-theme .variation-table {
    border-color: #283e50;
}

.variation-table th {
    background: rgba(var(--base-rgb), 0.06);
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #475569;
}

.variation-table td {
    padding: 12px 18px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
}

.dark-theme .variation-table td {
    border-top-color: #283e50;
    color: #cbd5e1;
}

.faq-item {
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.faq-item.active,
.faq-item:hover {
    border-color: rgba(var(--base-rgb), .2);
    box-shadow: 0 4px 16px rgba(var(--base-rgb), .06);
}

.dark-theme .faq-item {
    border-color: #283e50;
}

.faq-item .faq-question {
    padding: 16px 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
    transition: all 0.25s;
    font-size: 0.95rem;
}

.dark-theme .faq-item .faq-question {
    background: #1a2a38;
}

.faq-item .faq-question:hover {
    background: rgba(var(--base-rgb), 0.04);
}

.faq-item .faq-answer {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    line-height: 1.7;
    color: #64748b;
}

.faq-item.active .faq-answer {
    padding: 16px 18px;
    max-height: 500px;
}

.faq-item .faq-question i {
    transition: transform 0.35s;
    color: var(--base-clr);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Review Cards --- */
.review-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e8ecf1;
    margin-bottom: 12px;
    transition: box-shadow .3s;
}
.review-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.dark-theme .review-card {
    background: #1a2a38;
    border-color: #283e50;
}

.review-card .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-card .reviewer-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}
.dark-theme .review-card .reviewer-name {
    color: #e2e8f0;
}

.review-card .review-stars {
    color: #f59e0b;
    font-size: 0.9rem;
}

.review-card .review-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
}

.dark-theme .review-card .review-text {
    color: #94a3b8;
}

/* --- Provider Detail Page --- */
.provider-detail-header {
    padding: 48px 0;
    background: linear-gradient(160deg, var(--header-bg) 0%, rgba(var(--base-rgb), 0.08) 100%);
    position: relative;
    overflow: hidden;
}
.provider-detail-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--base-rgb), .06), transparent 70%);
}

.provider-detail-logo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(var(--base-rgb), 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.provider-detail-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.provider-detail-stats .stat {
    text-align: center;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(var(--base-rgb), .08);
}
.dark-theme .provider-detail-stats .stat {
    background: rgba(26,42,56,.6);
}

.provider-detail-stats .stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--base-clr);
    display: block;
}

.provider-detail-stats .stat-lbl {
    font-size: 0.78rem;
    color: #6c7580;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
}

/* --- Pagination --- */
.mp-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
}

.mp-pagination .page-link {
    border-radius: 10px;
    padding: 9px 16px;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s;
    background: #fff;
}

.dark-theme .mp-pagination .page-link {
    border-color: #283e50;
    color: #94a3b8;
    background: #1a2a38;
}

.mp-pagination .page-link:hover {
    background: rgba(var(--base-rgb), .08);
    color: var(--base-clr);
    border-color: rgba(var(--base-rgb), .2);
}
.mp-pagination .page-link.active {
    background: var(--base-clr);
    color: #fff;
    border-color: var(--base-clr);
    box-shadow: 0 4px 12px rgba(var(--base-rgb), .3);
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #1a2a38 25%, #243a4d 50%, #1a2a38 75%);
    background-size: 200% 100%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .marketplace-hero .hero-content h1 {
        font-size: 1.9rem;
    }
    .marketplace-hero { padding: 52px 0 40px; }

    .hero-stats {
        gap: 10px;
    }
    .hero-stats .stat-item { padding: 10px 16px; }

    .mp-section { padding: 44px 0; }

    .mp-section-title {
        font-size: 1.35rem;
    }

    .service-card .service-thumb {
        height: 160px;
    }

    .banner-carousel .banner-slide img {
        height: 160px;
    }
    .campaign-card img { height: 180px; }
}

@media (max-width: 576px) {
    .marketplace-hero {
        padding: 40px 0 30px;
    }

    .marketplace-hero .hero-content h1 {
        font-size: 1.55rem;
    }

    .hero-stats {
        gap: 8px;
    }

    .hero-stats .stat-item .stat-number {
        font-size: 1.2rem;
    }
    .hero-stats .stat-item { padding: 10px 14px; }

    .service-detail-cover { height: 200px; border-radius: 14px; }
    .service-detail-info h1 { font-size: 1.4rem; }
}

/* --- Empty State --- */
.mp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.mp-empty-state i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.35;
    color: var(--base-clr);
}

/* --- Breadcrumb --- */
.mp-breadcrumb {
    padding: 16px 0;
    font-size: 0.88rem;
    font-weight: 500;
}

.mp-breadcrumb a {
    color: var(--base-clr);
    text-decoration: none;
    transition: opacity .2s;
}

.mp-breadcrumb a:hover {
    opacity: .75;
}

.mp-breadcrumb .separator {
    margin: 0 10px;
    color: #cbd5e1;
}

.mp-breadcrumb .current {
    color: #64748b;
}

.dark-theme .mp-breadcrumb .current {
    color: #94a3b8;
}

/* --- Sorting --- */
.mp-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.mp-sort-bar .sort-label {
    font-weight: 700;
    font-size: 0.9rem;
}

.mp-sort-bar select {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 0.88rem;
    background: #fff;
    font-weight: 500;
    transition: border-color .2s;
}
.mp-sort-bar select:focus {
    border-color: rgba(var(--base-rgb), .4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--base-rgb), .1);
}

.dark-theme .mp-sort-bar select {
    background: #1a2a38;
    border-color: #283e50;
    color: #e2e8f0;
}
