/*==========================================================
MIDAL Marketplace
marketplace.css
==========================================================*/

/*----------------------------------------------------------
Variables
----------------------------------------------------------*/

:root {

    --market-sidebar-width: 280px;
    --market-gap: 2.5rem;

}

/*----------------------------------------------------------
Page Hero
----------------------------------------------------------*/

.market-hero {

    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);

}

.market-hero .container {

    max-width: 1400px;
    margin: auto;

}

.market-hero-content {

    max-width: 760px;

}

.market-hero h1 {

    margin: .8rem 0 1rem;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.1;

}

.market-hero p {

    max-width: 650px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);

}

.market-actions {

    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;

}

/*----------------------------------------------------------
Two Column Layout
----------------------------------------------------------*/

.market-layout {

    display: grid;
    grid-template-columns: var(--market-sidebar-width) minmax(0, 1fr);
    gap: var(--market-gap);
    align-items: start;

    max-width: 1400px;
    margin: auto;
    padding: 5rem 0;

}

/*----------------------------------------------------------
Sidebar
----------------------------------------------------------*/

.market-sidebar {

    position: sticky;
    top: 130px;
    align-self: start;

}

.market-sidebar .sidebar-card {

    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    padding: 1.5rem;

    box-shadow: 0 12px 35px rgba(0, 0, 0, .05);

}

.market-sidebar h3 {

    margin-bottom: .5rem;

}

.market-sidebar p {

    margin-bottom: 1.5rem;
    color: var(--text-light);

}

.market-sidebar ul {

    list-style: none;
    margin: 0;
    padding: 0;

}

.market-sidebar li {

    margin-bottom: .35rem;

}

.market-sidebar a {

    display: flex;
    align-items: center;
    gap: .8rem;

    padding: .8rem 1rem;

    border-radius: 10px;

    color: var(--text-dark);

    text-decoration: none;

    transition: .25s;

}

.market-sidebar a:hover {

    background: #eef5ff;
    color: var(--primary);

}

.market-sidebar a.active {

    background: var(--primary);
    color: #fff;

}

.market-sidebar i {

    width: 20px;
    text-align: center;

}

/*----------------------------------------------------------
Content
----------------------------------------------------------*/

.market-content {

    min-width: 0;

}

.market-section {

    margin-bottom: 6rem;

}

.market-section:last-child {

    margin-bottom: 0;

}

.market-section>.section-header {

    margin-bottom: 2.5rem;

}

.market-section h2 {

    margin-top: .6rem;

}

/*==========================================================
MARKETPLACE COMPONENTS
==========================================================*/

/*----------------------------------------------------------
Marketplace Grid
----------------------------------------------------------*/

.market-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;

}

/*----------------------------------------------------------
Marketplace Cards
----------------------------------------------------------*/

.market-card {

    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;

    padding: 2rem;

    transition: .3s ease;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);

    display: flex;
    flex-direction: column;
    height: 100%;

}

.market-card:hover {

    transform: translateY(-8px);

    border-color: var(--primary);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .10);

}

.market-card i {

    width: 70px;
    height: 70px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.8rem;

    color: #fff;

    background: var(--primary);

    margin-bottom: 1.5rem;

}

.market-card h3 {

    margin-bottom: .75rem;

}

.market-card p {

    color: var(--text-light);

    line-height: 1.8;

    flex: 1;

}

.market-card a {

    margin-top: 1.5rem;

    font-weight: 600;

    color: var(--primary);

}

/*==========================================================
FEATURED SECTION
==========================================================*/

.featured-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;

}

.featured-card {

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    border: 1px solid #e8edf3;

    transition: .3s;

}

.featured-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);

}

.featured-card img {

    width: 100%;

    aspect-ratio: 16/9;

    object-fit: cover;

}

.featured-content {

    padding: 1.75rem;

}

.featured-content h3 {

    margin-bottom: .75rem;

}

/*==========================================================
VENDOR SECTION
==========================================================*/

.vendor-box {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 3rem;

    background: #fff;

    border-radius: 20px;

    padding: 3rem;

    border: 1px solid #e8edf3;

}

.vendor-steps {

    display: grid;

    gap: 1.25rem;

}

.vendor-step {

    display: flex;

    gap: 1rem;

    align-items: flex-start;

}

.vendor-number {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: var(--primary);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    flex-shrink: 0;

}

/*==========================================================
STATISTICS
==========================================================*/

.market-stats {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 1.5rem;

}

.market-stat {

    background: #fff;

    border-radius: 18px;

    padding: 2rem;

    text-align: center;

    border: 1px solid #e8edf3;

}

.market-stat h3 {

    font-size: 2.4rem;

    color: var(--primary);

    margin-bottom: .5rem;

}

/*==========================================================
FAQ
==========================================================*/

.faq-list {

    display: grid;

    gap: 1rem;

}

.faq-item {

    border: 1px solid #e8edf3;

    border-radius: 14px;

    overflow: hidden;

}

.faq-item summary {

    cursor: pointer;

    padding: 1.2rem 1.5rem;

    font-weight: 600;

    list-style: none;

}

.faq-item summary::-webkit-details-marker {

    display: none;

}

.faq-item p {

    padding: 0 1.5rem 1.5rem;

    color: var(--text-light);

}

/*==========================================================
CTA
==========================================================*/

.market-cta {

    text-align: center;

    padding: 5rem 2rem;

    border-radius: 24px;

    background: linear-gradient(135deg, var(--primary), #123b8f);

    color: #fff;

}

.market-cta h2 {

    color: #fff;

    margin-bottom: 1rem;

}

.market-cta p {

    max-width: 720px;

    margin: 0 auto 2rem;

    color: rgba(255, 255, 255, .9);

}

.market-cta .btn {

    margin: .5rem;

}

/*==========================================================
RESPONSIVE
==========================================================*/

@media(max-width:992px) {

    .market-layout {

        display: block;

    }

    .market-sidebar {

        display: none;

    }

    .market-content {

        width: 100%;

    }

    .vendor-box {

        grid-template-columns: 1fr;

        padding: 2rem;

    }

}

@media(max-width:768px) {

    .market-hero {

        padding: 4rem 0 3rem;

    }

    .market-actions {

        flex-direction: column;

        align-items: stretch;

    }

    .market-actions .btn {

        width: 100%;

    }

    .market-card,

    .market-stat,

    .featured-card {

        border-radius: 16px;

    }

}