:root {
    --aq-midnight: #0b1120;
    --aq-navy: #111a33;

    --aq-primary: #4f46e5;
    --aq-primary-dark: #3730a3;

    --aq-secondary: #7c3aed;
    --aq-accent: #06b6d4;

    --aq-bg: #f8fafc;
    --aq-surface: #ffffff;

    --aq-text: #111827;
    --aq-muted: #64748b;

    --aq-border: #e2e8f0;

    --aq-success: #059669;
    --aq-danger: #dc2626;

    --aq-radius-sm: 10px;
    --aq-radius: 16px;
    --aq-radius-lg: 22px;

    --aq-shadow-sm:
        0 4px 15px rgba(15, 23, 42, .05);

    --aq-shadow-md:
        0 12px 35px rgba(15, 23, 42, .08);
}


/* ============================================================
   GLOBAL
   ============================================================ */

html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background:
        var(--aq-bg);

    color:
        var(--aq-text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    max-width: 100%;
}


/* ============================================================
   HEADER
   ============================================================ */

.marketplace-header {
    position: relative;

    background:
        rgba(255,255,255,.94);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    border-bottom:
        1px solid rgba(226,232,240,.8);

    z-index: 1020;
}


.header-main {
    min-height: 74px;

    display: grid;

    grid-template-columns:
        auto minmax(260px, 1fr) auto;

    gap: 28px;

    align-items: center;
}


/* ============================================================
   BRAND / LOGO
   ============================================================ */

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-logo-full {
    display: block !important;

    height: 46px !important;
    width: auto !important;

    max-height: 46px !important;
    max-width: 150px !important;

    object-fit: contain;
}

/* ============================================================
   SEARCH
   ============================================================ */

.market-search {
    height: 46px;

    padding:
        0 15px;

    display: flex;

    gap: 10px;

    align-items: center;

    border:
        1px solid var(--aq-border);

    border-radius:
        14px;

    background:
        #f8fafc;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.market-search:focus-within {
    border-color:
        rgba(79,70,229,.45);

    background:
        #ffffff;

    box-shadow:
        0 0 0 4px rgba(79,70,229,.08);
}


.market-search i {
    color:
        var(--aq-muted);

    font-size:
        .95rem;
}


.market-search input {
    flex: 1;

    min-width: 0;

    border: 0;

    outline: none;

    background: transparent;

    color:
        var(--aq-text);

    font-size:
        .9rem;
}


.market-search input::placeholder {
    color:
        #94a3b8;
}


/* ============================================================
   DESKTOP NAVIGATION
   ============================================================ */

.desktop-nav {
    display: flex;

    gap: 24px;

    align-items: center;

    font-size: .9rem;

    font-weight: 600;
}


.desktop-nav a {
    position: relative;

    color:
        #475569;

    transition:
        color .2s ease;
}


.desktop-nav a:hover {
    color:
        var(--aq-primary);
}


/* ============================================================
   HERO
   ============================================================ */

.hero-marketplace {
    position: relative;

    overflow: hidden;

    padding:
        86px 0;

    color: white;

    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(34,211,238,.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(139,92,246,.25),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #0b1120,
            #312e81
        );
}


.hero-marketplace::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -260px;
    right: -160px;

    border-radius: 50%;

    background:
        rgba(6,182,212,.08);

    filter:
        blur(10px);

    pointer-events: none;
}


.hero-marketplace::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    left: -220px;
    bottom: -280px;

    border-radius: 50%;

    background:
        rgba(124,58,237,.10);

    pointer-events: none;
}


.hero-content {
    position: relative;

    max-width:
        760px;

    z-index: 2;
}


.hero-eyebrow,
.section-eyebrow {
    font-size: .72rem;

    font-weight: 800;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.hero-eyebrow {
    color:
        #67e8f9;
}


.hero-content h1 {
    margin-top:
        16px;

    max-width:
        700px;

    font-size:
        clamp(
            2.5rem,
            7vw,
            5rem
        );

    font-weight:
        900;

    letter-spacing:
        -.055em;

    line-height:
        .98;
}


.hero-content h1 span {
    background:
        linear-gradient(
            90deg,
            #67e8f9,
            #c4b5fd
        );

    background-clip:
        text;

    -webkit-background-clip:
        text;

    color:
        transparent;
}


.hero-content p {
    max-width:
        590px;

    margin-top:
        24px;

    margin-bottom: 0;

    color:
        #cbd5e1;

    font-size:
        1.08rem;

    line-height:
        1.75;
}


.hero-actions {
    display: flex;

    gap: 12px;

    margin-top: 28px;
}


/* ============================================================
   SECTIONS
   ============================================================ */

.section-marketplace {
    padding:
        38px 0;
}


.section-heading {
    margin-bottom:
        20px;

    display: flex;

    justify-content:
        space-between;

    align-items:
        end;

    gap:
        20px;
}


.section-heading h2 {
    margin:
        4px 0 0;

    font-size:
        clamp(
            1.35rem,
            3vw,
            1.8rem
        );

    font-weight:
        800;

    letter-spacing:
        -.035em;
}


.section-eyebrow {
    color:
        var(--aq-primary);
}


/* ============================================================
   CATEGORY
   ============================================================ */

.category-scroll {
    display: flex;

    gap: 12px;

    overflow-x: auto;

    padding:
        4px 2px 10px;

    scrollbar-width:
        none;
}


.category-scroll::-webkit-scrollbar {
    display: none;
}


.category-card {
    flex:
        0 0 150px;

    min-height:
        112px;

    padding:
        18px;

    border:
        1px solid var(--aq-border);

    border-radius:
        var(--aq-radius);

    background:
        white;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.category-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(79,70,229,.20);

    box-shadow:
        var(--aq-shadow-md);
}


.category-icon {
    width: 38px;
    height: 38px;

    margin-bottom:
        12px;

    display: grid;

    place-items: center;

    border-radius:
        11px;

    color:
        var(--aq-primary);

    background:
        #eef2ff;
}


/* ============================================================
   PRODUCT CARD
   ============================================================ */

.product-card-public {
    display: block;

    height: 100%;

    overflow: hidden;

    border:
        1px solid var(--aq-border);

    border-radius:
        var(--aq-radius);

    background:
        white;

    box-shadow:
        var(--aq-shadow-sm);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


.product-card-public:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(79,70,229,.16);

    box-shadow:
        var(--aq-shadow-md);
}


.product-image-wrap {
    position: relative;

    overflow: hidden;

    aspect-ratio:
        1 / 1;

    background:
        #f1f5f9;
}


.product-image-wrap img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.product-card-public:hover
.product-image-wrap img {
    transform:
        scale(1.025);
}


.availability-badge {
    position: absolute;

    top: 10px;
    left: 10px;

    padding:
        5px 8px;

    border-radius:
        7px;

    color: white;

    font-size:
        .65rem;

    font-weight:
        800;

    letter-spacing:
        .01em;

    box-shadow:
        0 4px 12px rgba(15,23,42,.08);
}


.availability-badge.available {
    background:
        rgba(5,150,105,.92);
}


.availability-badge.sold-out {
    background:
        rgba(220,38,38,.90);
}


.product-card-body {
    padding:
        13px;
}


.product-card-body h3 {
    height:
        42px;

    margin:
        0;

    overflow:
        hidden;

    display:
        -webkit-box;

    -webkit-line-clamp:
        2;

    -webkit-box-orient:
        vertical;

    font-size:
        .9rem;

    font-weight:
        700;

    line-height:
        1.4;
}


.product-spec {
    min-height:
        18px;

    margin-top:
        5px;

    overflow:
        hidden;

    color:
        var(--aq-muted);

    font-size:
        .72rem;

    white-space:
        nowrap;

    text-overflow:
        ellipsis;
}


.product-price {
    margin-top:
        9px;

    color:
        var(--aq-primary-dark);

    font-size:
        1rem;

    font-weight:
        900;
}


.product-store {
    margin-top:
        8px;

    color:
        var(--aq-muted);

    font-size:
        .72rem;
}


/* ============================================================
   ERROR
   ============================================================ */

.catalog-error {
    min-height:
        60vh;

    display: grid;

    place-items: center;
}


.catalog-error-card {
    width:
        min(100%, 520px);

    padding:
        40px;

    text-align:
        center;

    border:
        1px solid var(--aq-border);

    border-radius:
        var(--aq-radius-lg);

    background:
        white;

    box-shadow:
        var(--aq-shadow-md);
}


.catalog-error-card i {
    color:
        var(--aq-muted);

    font-size:
        3rem;
}


/* ============================================================
   FOOTER
   ============================================================ */

.marketplace-footer {
    margin-top:
        60px;

    padding:
        48px 0 20px;

    color:
        #cbd5e1;

    background:
        var(--aq-midnight);
}


.footer-brand {
    margin-bottom:
        8px;

    color:
        white;

    font-size:
        1.25rem;

    font-weight:
        900;
}


.footer-description {
    max-width:
        400px;

    color:
        #94a3b8;

    line-height:
        1.7;
}


.marketplace-footer h6 {
    color:
        white;
}


.marketplace-footer a {
    display:
        block;

    margin:
        7px 0;

    color:
        #94a3b8;

    transition:
        color .2s ease;
}


.marketplace-footer a:hover {
    color:
        #ffffff;
}


.footer-bottom {
    margin-top:
        40px;

    padding-top:
        18px;

    border-top:
        1px solid rgba(255,255,255,.08);

    color:
        #64748b;

    font-size:
        .8rem;
}


/* ============================================================
   DESKTOP XL
   ============================================================ */

@media (min-width: 1200px) {

    .col-xl-2-4 {
        flex:
            0 0 auto;

        width:
            20%;
    }
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .header-main {
        gap:
            18px;
    }


    .brand-logo-full {
        height:
            48px;

        max-width:
            205px;
    }


    .desktop-nav {
        gap:
            16px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .marketplace-header {
        background:
            rgba(255,255,255,.97);
    }


    .header-main {
        min-height:
            auto;

        padding:
            10px 0;

        grid-template-columns:
            1fr auto;

        gap:
            10px 14px;
    }


    /*
    |--------------------------------------------------------------------------
    | Logo mobile
    |--------------------------------------------------------------------------
    */

    .brand {
        max-width:
            190px;
    }


    .brand-logo-full {
        width:
            auto;

        height:
            42px;

        max-width:
            185px;

        object-fit:
            contain;

        object-position:
            left center;
    }


    /*
    |--------------------------------------------------------------------------
    | Search turun ke baris kedua
    |--------------------------------------------------------------------------
    */

    .market-search {
        order:
            3;

        grid-column:
            1 / -1;

        width:
            100%;

        height:
            44px;
    }


    .desktop-nav {
        display:
            none;
    }


    .hero-marketplace {
        padding:
            58px 0;
    }


    .hero-content h1 {
        font-size:
            2.7rem;
    }


    .hero-content p {
        font-size:
            .98rem;

        line-height:
            1.7;
    }


    .hero-actions {
        flex-wrap:
            wrap;
    }


    .section-marketplace {
        padding:
            28px 0;
    }


    .section-heading {
        align-items:
            flex-start;

        gap:
            12px;
    }


    .product-card-body {
        padding:
            10px;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 575.98px) {

    .header-main {
        padding:
            8px 0 10px;
    }


    .brand {
        max-width:
            165px;
    }


    .brand-logo-full {
        height:
            38px;

        max-width:
            165px;
    }


    .market-search {
        height:
            42px;

        border-radius:
            12px;
    }


    .hero-marketplace {
        padding:
            48px 0 52px;
    }


    .hero-content h1 {
        font-size:
            clamp(
                2.15rem,
                12vw,
                2.7rem
            );

        line-height:
            1.02;
    }


    .hero-content p {
        margin-top:
            18px;

        font-size:
            .94rem;
    }


    .hero-actions {
        margin-top:
            22px;
    }


    .category-card {
        flex:
            0 0 136px;

        min-height:
            104px;

        padding:
            15px;
    }


    .product-card-body h3 {
        height:
            39px;

        font-size:
            .84rem;
    }


    .product-price {
        font-size:
            .92rem;
    }
}


/* ============================================================
   EXTRA SMALL MOBILE
   ============================================================ */

@media (max-width: 991.98px) {

    .brand-logo-full {
        height: 42px !important;
        max-height: 42px !important;
        max-width: 140px !important;
    }

}

/* Mobile */
@media (max-width: 767.98px) {

    .brand-logo-full {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 125px !important;
    }

}

/* HP kecil */
@media (max-width: 575.98px) {

    .brand-logo-full {
        height: 34px !important;
        max-height: 34px !important;
        max-width: 115px !important;
    }
}