/* Marketplace Stores listing — /marketplace/items */
.mp-stores-page {
    --mp-navy: #282a46;
    --mp-navy-dark: #1f2138;
    --mp-red: #c52327;
    --mp-red-dark: #a81d21;
    --mp-surface: #f3f4f6;
    --mp-border: #e5e7eb;
    background: var(--mp-surface);
    padding-bottom: 48px;
}

.mp-stores-shell {
    padding-top: 28px;
    padding-bottom: 8px;
}

.mp-stores-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, var(--mp-navy-dark) 0%, var(--mp-navy) 48%, #3a3d5c 100%);
    color: #fff;
    padding: 28px 24px 32px;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(40, 42, 70, 0.14);
}

.mp-stores-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.35) 0, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.2) 0, transparent 40%);
    pointer-events: none;
}

.mp-stores-hero__mosque {
    position: absolute;
    right: 8%;
    bottom: 0;
    font-size: clamp(6rem, 14vw, 11rem);
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
    pointer-events: none;
}

.mp-stores-hero__lantern {
    position: absolute;
    font-size: 2.2rem;
    color: rgba(197, 35, 39, 0.55);
    pointer-events: none;
}

.mp-stores-hero__lantern--left {
    left: 6%;
    top: 18%;
}

.mp-stores-hero__lantern--mid {
    left: 14%;
    top: 42%;
    font-size: 1.6rem;
    opacity: 0.7;
}

.mp-stores-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 20px;
}

.mp-stores-hero__copy {
    flex: 1 1 280px;
    min-width: 0;
}

.mp-stores-hero__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.15;
}

.mp-stores-hero__subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.92;
    max-width: 420px;
    line-height: 1.5;
}

.mp-stores-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 1 auto;
}

.mp-stores-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 148px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    color: var(--mp-navy);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.mp-stores-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    color: var(--mp-navy);
}

.mp-stores-stat__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(197, 35, 39, 0.08);
    color: var(--mp-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.mp-stores-stat__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.mp-stores-stat__value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--mp-navy);
}

.mp-stores-filter {
    background: #fff;
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 0;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(40, 42, 70, 0.06);
}

.mp-stores-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 16px;
}

.mp-stores-filter__field {
    flex: 1 1 160px;
    min-width: 140px;
}

.mp-stores-filter__field--search {
    flex: 2 1 220px;
    min-width: 180px;
}

.mp-stores-filter__field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 5px;
}

.mp-stores-filter__field .form-control {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.mp-stores-filter__search-wrap {
    position: relative;
}

.mp-stores-filter__search-wrap .form-control {
    padding-left: 40px;
}

.mp-stores-filter__search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.mp-stores-filter__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
}

.mp-stores-filter__btn-apply {
    height: 42px;
    padding: 0 22px;
    border-radius: 10px;
    background: var(--mp-red);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
}

.mp-stores-filter__btn-apply:hover {
    background: var(--mp-red-dark);
    color: #fff;
}

.mp-stores-filter__btn-reset {
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid var(--mp-red);
    color: var(--mp-red);
    background: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.mp-stores-filter__btn-reset:hover {
    background: #fff5f5;
    color: var(--mp-red-dark);
}

.mp-stores-layout {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.mp-stores-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mp-stores-widget {
    background: #fff;
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(40, 42, 70, 0.05);
}

.mp-stores-widget__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mp-navy);
    margin: 0 0 14px;
}

.mp-stores-widget__title i {
    color: var(--mp-red);
}

.mp-stores-bestseller {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
}

.mp-stores-bestseller:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.mp-stores-bestseller:first-of-type {
    padding-top: 0;
}

.mp-stores-bestseller:hover {
    color: inherit;
}

.mp-stores-bestseller img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--mp-border);
    flex-shrink: 0;
}

.mp-stores-bestseller__name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--mp-navy);
    line-height: 1.3;
    margin-bottom: 2px;
}

.mp-stores-bestseller__price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--mp-red);
}

.mp-stores-widget__link {
    display: block;
    margin-top: 14px;
    padding: 10px 14px;
    text-align: center;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid var(--mp-border);
    color: var(--mp-navy);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.mp-stores-widget__link:hover {
    background: #f3f4f6;
    color: var(--mp-navy);
}

.mp-stores-widget__link i {
    margin-left: 4px;
    font-size: 0.75em;
}

.mp-stores-apply {
    background: linear-gradient(145deg, #fff8f9 0%, #fff0f2 100%);
    border-color: rgba(197, 35, 39, 0.12);
    position: relative;
    overflow: hidden;
}

.mp-stores-apply__bg {
    position: absolute;
    right: -10px;
    bottom: -8px;
    font-size: 5rem;
    color: rgba(40, 42, 70, 0.06);
    pointer-events: none;
}

.mp-stores-apply__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mp-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.mp-stores-apply h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mp-navy);
    margin: 0 0 6px;
}

.mp-stores-apply p {
    font-size: 0.84rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 14px;
}

.mp-stores-apply__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--mp-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
}

.mp-stores-apply__btn:hover {
    background: var(--mp-red-dark);
    color: #fff;
}

.mp-stores-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mp-store-card {
    background: #fff;
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 22px rgba(40, 42, 70, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.mp-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(40, 42, 70, 0.12);
}

.mp-store-card__media {
    position: relative;
    height: 168px;
    background: #e5e7eb;
}

.mp-store-card__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-store-card__count {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mp-navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mp-store-card__logo {
    position: absolute;
    left: 14px;
    bottom: -22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(40, 42, 70, 0.15);
    z-index: 2;
}

.mp-store-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-store-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 30px 16px 16px;
    min-height: 0;
}

.mp-store-card__type {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mp-store-card__type--organization {
    background: #fce7f3;
    color: #9d174d;
}

.mp-store-card__type--mosque {
    background: #d1fae5;
    color: #047857;
}

.mp-store-card__type--school {
    background: #dbeafe;
    color: #1d4ed8;
}

.mp-store-card__name {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1a1d36;
    margin: 0 0 6px;
    line-height: 1.25;
}

.mp-store-card__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 8px;
}

.mp-store-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.mp-store-card__desc {
    font-size: 0.84rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 3.9em;
}

.mp-store-card__read-more {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mp-red);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.mp-store-card__read-more:hover {
    text-decoration: underline;
}

.mp-store-card__desc-full {
    display: none;
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.5;
    margin-top: 6px;
}

.mp-store-card__desc-full.is-open {
    display: block;
}

.mp-store-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.mp-store-card__actions--single {
    grid-template-columns: 1fr;
}

.mp-store-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.25;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-store-card__btn i {
    font-size: 0.85em;
    flex-shrink: 0;
}

/* View Products — dark blue, white text (UI mockup) */
.mp-stores-page a.mp-store-card__btn--primary,
.mp-store-card__btn--primary {
    background: var(--mp-navy);
    color: #fff !important;
    border: 1px solid var(--mp-navy);
    box-shadow: 0 4px 14px rgba(40, 42, 70, 0.22);
}

.mp-stores-page a.mp-store-card__btn--primary:hover,
.mp-stores-page a.mp-store-card__btn--primary:focus,
.mp-stores-page a.mp-store-card__btn--primary:visited,
.mp-store-card__btn--primary:hover,
.mp-store-card__btn--primary:focus,
.mp-store-card__btn--primary:visited {
    background: var(--mp-navy-dark);
    color: #fff !important;
    border-color: var(--mp-navy-dark);
    box-shadow: 0 6px 18px rgba(40, 42, 70, 0.28);
}

.mp-stores-page a.mp-store-card__btn--primary i,
.mp-store-card__btn--primary i {
    color: #fff !important;
}

/* Visit Website — white outline */
.mp-store-card__btn--outline {
    background: #fff;
    color: var(--mp-navy);
    border: 1px solid var(--mp-navy);
    box-shadow: none;
}

.mp-store-card__btn--outline:hover {
    background: #f9fafb;
    color: var(--mp-navy-dark);
    border-color: var(--mp-navy-dark);
}

.mp-stores-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed var(--mp-border);
}

.mp-stores-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.mp-stores-pagination .pagination {
    gap: 6px;
    margin: 0;
}

.mp-stores-pagination .page-link {
    border-radius: 8px;
    border: 1px solid var(--mp-border);
    color: var(--mp-navy);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    padding: 8px 12px;
}

.mp-stores-pagination .page-item.active .page-link {
    background: var(--mp-red);
    border-color: var(--mp-red);
    color: #fff;
}

.mp-stores-pagination .page-link:hover {
    background: #f3f4f6;
    color: var(--mp-navy);
}

.mp-stores-bottom-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
    margin-top: 36px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--mp-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(40, 42, 70, 0.06);
}

.mp-stores-bottom-cta__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(197, 35, 39, 0.1);
    color: var(--mp-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.mp-stores-bottom-cta__text {
    flex: 1 1 260px;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

.mp-stores-bottom-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--mp-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    margin-left: auto;
}

.mp-stores-bottom-cta__btn:hover {
    background: var(--mp-red-dark);
    color: #fff;
}

/* Product grid (store detail on same page) */
.mp-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mp-product-card {
    background: #fff;
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(40, 42, 70, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mp-product-card__media {
    position: relative;
    height: 180px;
    background: #eef1f6;
}

.mp-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-product-card__body {
    padding: 14px 16px 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.mp-product-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp-navy);
    margin: 0 0 6px;
}

.mp-product-card__price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--mp-red);
    margin-bottom: 12px;
}

.mp-product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.mp-stores-category-link {
    display: flex;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--mp-navy);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}

.mp-stores-category-link:hover,
.mp-stores-category-link.is-active {
    background: #f3f4f6;
    color: var(--mp-red);
}

.wishlist-popup {
    position: fixed;
    right: 22px;
    bottom: 22px;
    min-width: 260px;
    background: var(--mp-navy);
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 16px 30px rgba(40, 42, 70, 0.35);
}

.wishlist-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-popup.error {
    background: #7b1f44;
}

.wishlist-fab {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.wishlist-fab.is-active {
    color: var(--mp-red);
}

@media (max-width: 1199.98px) {
    .mp-stores-grid,
    .mp-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .mp-stores-layout {
        grid-template-columns: 1fr;
    }

    .mp-stores-sidebar {
        order: 2;
    }

    .mp-stores-main {
        order: 1;
    }

    .mp-stores-hero__stats {
        width: 100%;
    }

    .mp-stores-stat {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 120px;
    }
}

@media (max-width: 767.98px) {
    .mp-stores-hero {
        padding: 28px 0 36px;
    }

    .mp-stores-hero__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .mp-stores-stat {
        flex: 1 1 100%;
    }

    .mp-stores-shell {
        padding-top: 20px;
    }

    .mp-stores-hero {
        padding: 20px 16px 24px;
        margin-bottom: 20px;
    }

    .mp-stores-filter {
        margin-top: 0;
        padding: 14px 16px;
    }

    .mp-stores-filter__field,
    .mp-stores-filter__field--search {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .mp-stores-filter__actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .mp-stores-filter__btn-apply,
    .mp-stores-filter__btn-reset {
        flex: 1 1 auto;
        justify-content: center;
    }

    .mp-stores-grid,
    .mp-products-grid {
        grid-template-columns: 1fr;
    }

    .mp-store-card__actions {
        grid-template-columns: 1fr;
    }

    .mp-stores-bottom-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .mp-stores-bottom-cta__btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}
