/* CROM_PUBLIC_MARKETPLACE_DESIGN_V1_START */

:root {
    --crom-purple-950: #2e1065;
    --crom-purple-800: #5b21b6;
    --crom-purple-700: #6d28d9;
    --crom-purple-100: #ede9fe;
    --crom-orange: #f97316;
    --crom-text: #171329;
    --crom-muted: #706b7d;
    --crom-border: #e9e4f2;
    --crom-surface: #ffffff;
    --crom-background: #f8f6fc;
    --crom-shadow: 0 18px 45px rgba(50, 25, 90, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--crom-background);
    color: var(--crom-text);
    font-family: "Cairo", sans-serif;
}

a {
    color: inherit;
}

.crom-market-container {
    width: min(1180px, calc(100% - 28px));
    margin-inline: auto;
}

.crom-market-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(91, 33, 182, .08);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
}

.crom-market-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.crom-market-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.crom-market-brand__logo {
    color: var(--crom-purple-800);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 1px;
}

.crom-market-brand__label {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--crom-purple-100);
    color: var(--crom-purple-800);
    font-size: 10px;
    font-weight: 800;
}

.crom-market-seller-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    border: 1px solid #ddd4ec;
    border-radius: 999px;
    background: #fff;
    color: var(--crom-purple-800);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.crom-market-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 72px;
    background:
        radial-gradient(
            circle at 15% 18%,
            rgba(255, 255, 255, .18),
            transparent 24%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(249, 115, 22, .26),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #2e1065 0%,
            #5b21b6 55%,
            #7c3aed 100%
        );
    color: #fff;
}

.crom-market-hero::before,
.crom-market-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.crom-market-hero::before {
    width: 260px;
    height: 260px;
    top: -130px;
    left: -80px;
}

.crom-market-hero::after {
    width: 190px;
    height: 190px;
    right: -80px;
    bottom: -90px;
}

.crom-market-hero__content {
    position: relative;
    z-index: 1;
    max-width: 730px;
}

.crom-market-hero__badge {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 11px;
    font-weight: 800;
}

.crom-market-hero h1 {
    margin: 15px 0 10px;
    font-size: clamp(31px, 7vw, 53px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -.8px;
}

.crom-market-hero h1 span {
    display: block;
    color: #ffd89d;
}

.crom-market-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.95;
}

.crom-market-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.crom-market-stat {
    min-width: 135px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 15px;
    background: rgba(255, 255, 255, .09);
}

.crom-market-stat strong,
.crom-market-stat span {
    display: block;
}

.crom-market-stat strong {
    font-size: 20px;
    font-weight: 900;
}

.crom-market-stat span {
    margin-top: 2px;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 700;
}

.crom-market-directory {
    position: relative;
    z-index: 2;
    padding: 0 0 60px;
}

.crom-market-filter {
    margin-top: -31px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--crom-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--crom-shadow);
}

.crom-market-field label {
    display: block;
    margin-bottom: 7px;
    color: #635c70;
    font-size: 11px;
    font-weight: 800;
}

.crom-market-field input,
.crom-market-field select {
    width: 100%;
    height: 48px;
    border: 1px solid #ddd7e8;
    border-radius: 13px;
    outline: none;
    background: #faf9fc;
    color: var(--crom-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 0 13px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.crom-market-field input:focus,
.crom-market-field select:focus {
    border-color: #8b5cf6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .11);
}

.crom-market-search-button,
.crom-market-reset-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    border-radius: 13px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.crom-market-search-button {
    border: 0;
    background: linear-gradient(
        135deg,
        var(--crom-purple-800),
        var(--crom-purple-700)
    );
    color: #fff;
    box-shadow: 0 10px 24px rgba(91, 33, 182, .22);
}

.crom-market-reset-button {
    border: 1px solid #ded8e8;
    background: #fff;
    color: #6b6475;
}

.crom-market-results-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin: 34px 0 17px;
}

.crom-market-results-head__eyebrow {
    color: var(--crom-orange);
    font-size: 10px;
    font-weight: 900;
}

.crom-market-results-head h2 {
    margin: 3px 0 0;
    font-size: 23px;
    font-weight: 900;
}

.crom-market-results-count {
    flex: none;
    padding: 7px 11px;
    border: 1px solid var(--crom-border);
    border-radius: 999px;
    background: #fff;
    color: var(--crom-muted);
    font-size: 10px;
    font-weight: 700;
}

.crom-market-results-count b {
    color: var(--crom-purple-800);
    font-size: 12px;
}

.crom-market-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.crom-store-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--crom-border);
    border-radius: 21px;
    background: var(--crom-surface);
    box-shadow: 0 9px 28px rgba(43, 25, 72, .055);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.crom-store-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 17px 0;
}

.crom-store-logo {
    position: relative;
    width: 64px;
    height: 64px;
    flex: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e3dcf1;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at top left,
            rgba(249, 115, 22, .18),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            #f4efff,
            #ffffff
        );
    color: var(--crom-purple-800);
    font-size: 24px;
    font-weight: 900;
}

.crom-store-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 6px;
    background: #fff;
    object-fit: contain;
}

.crom-store-status {
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 9px;
    font-weight: 900;
}

.crom-store-status--ready {
    background: #ecfdf5;
    color: #047857;
}

.crom-store-card__body {
    flex: 1;
    padding: 15px 17px 14px;
}

.crom-store-card h3 {
    margin: 0;
    overflow: hidden;
    color: #211a31;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crom-store-location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 7px 0 0;
    color: var(--crom-muted);
    font-size: 11px;
    font-weight: 700;
}

.crom-store-location span {
    color: var(--crom-orange);
    font-size: 16px;
}

.crom-store-products {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #f8f6fc;
    color: #777080;
    font-size: 10px;
    font-weight: 700;
}

.crom-store-products strong {
    color: var(--crom-purple-800);
    font-size: 14px;
    font-weight: 900;
}

.crom-store-visit {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 17px;
    border-top: 1px solid #eee9f4;
    color: var(--crom-purple-800);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease;
}

.crom-store-visit span:last-child {
    font-size: 20px;
}

.crom-market-empty {
    padding: 45px 20px;
    border: 1px dashed #d9d0e8;
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

.crom-market-empty__icon {
    font-size: 36px;
}

.crom-market-empty h2 {
    margin: 10px 0 5px;
    font-size: 20px;
}

.crom-market-empty p {
    margin: 0;
    color: var(--crom-muted);
    font-size: 12px;
}

.crom-market-empty a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--crom-purple-800);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.crom-market-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 26px;
}

.crom-market-pagination a,
.crom-market-pagination > span:not(
    .crom-market-pagination__current
) {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid var(--crom-border);
    border-radius: 11px;
    background: #fff;
    color: var(--crom-purple-800);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.crom-market-pagination .is-disabled {
    opacity: .45;
}

.crom-market-pagination__current {
    color: var(--crom-muted);
    font-size: 10px;
    font-weight: 700;
}

.crom-market-footer {
    padding: 24px 0;
    border-top: 1px solid var(--crom-border);
    background: #fff;
}

.crom-market-footer .crom-market-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--crom-muted);
    font-size: 10px;
    text-align: center;
}

.crom-market-footer strong {
    color: var(--crom-purple-800);
    font-size: 17px;
    font-weight: 900;
}

@media (min-width: 600px) {
    .crom-market-filter {
        grid-template-columns:
            minmax(0, 1.4fr)
            minmax(170px, .8fr)
            110px;
        align-items: end;
    }

    .crom-market-reset-button {
        grid-column: 1 / -1;
    }

    .crom-market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 860px) {
    .crom-market-container {
        width: min(1180px, calc(100% - 48px));
    }

    .crom-market-header__inner {
        min-height: 76px;
    }

    .crom-market-hero {
        padding: 70px 0 94px;
    }

    .crom-market-filter {
        grid-template-columns:
            minmax(0, 1.7fr)
            minmax(190px, .8fr)
            120px
            90px;
        padding: 19px;
    }

    .crom-market-reset-button {
        grid-column: auto;
    }

    .crom-market-results-head {
        margin-top: 42px;
    }

    .crom-market-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .crom-store-card:hover {
        transform: translateY(-5px);
        border-color: #d8ccef;
        box-shadow: 0 19px 42px rgba(58, 31, 98, .12);
    }

    .crom-store-visit:hover {
        background: var(--crom-purple-800);
        color: #fff;
    }
}

@media (min-width: 1120px) {
    .crom-market-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* CROM_PUBLIC_MARKETPLACE_DESIGN_V1_END */
