:root{
    --primary:#1261d6;
    --primary-dark:#0845a6;
    --secondary:#4ec9ed;

    --bg:#f4f7fb;
    --surface:#ffffff;
    --surface2:#eef3fa;

    --text:#111827;
    --muted:#667085;

    --border:#e2e8f0;

    --card:#ffffff;

    --header-gradient:
        radial-gradient(circle at 10% 20%,rgba(69,201,238,.35),transparent 35%),
        radial-gradient(circle at 90% 0%,rgba(110,86,255,.28),transparent 35%),
        linear-gradient(135deg,#fffbd0,#eefaff 55%,#eef4ff);

    --shadow:
        0 15px 40px rgba(30,50,90,.10);

    --radius:22px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Inter",sans-serif;
    background:var(--bg);
    color:var(--text);
    min-height:100vh;
    transition:.3s ease;
}

/* DARK MODE */

body.dark{
    --bg:#0b1220;
    --surface:#121b2c;
    --surface2:#172236;

    --text:#f5f7fb;
    --text2:black;
    --muted:#aab5c7;

    --border:#27344b;
    --card:#121b2c;

    --header-gradient:
        radial-gradient(circle at 10% 20%,rgba(0,180,255,.18),transparent 35%),
        radial-gradient(circle at 90% 0%,rgba(100,70,255,.20),transparent 35%),
        linear-gradient(135deg,#111a29,#101c31);
}

/* HEADER */

.hero{
    background:var(--header-gradient);
    border-bottom:1px solid var(--border);
    padding:0px 20px 0px;
}

.topbar{
    width:min(1150px,100%);
    width:100%;
    margin:auto;
    padding: 3px;
    /* control border property */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    /* control position */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: wheat;
    z-index: 100;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}



.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo{
    width:54px;
    height:54px;
    border-radius:15px;

    background:#080909;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;
    font-size:26px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.2);
}

.logo-box svg{
    width: 204px;
    height: 60px;
}

@media (max-width: 768px) {
    .logo-box svg{
        width: 170px;
        height: 50px;
    }

    #brandlogo{
        width: 170px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-box svg{
        width: 130px;
        height: 38px;
    }

    #brandlogo{
        width: 130px;
        height: 38px;
    }
}



.brand-text strong{
    display:block;
    font-family:"Barlow Condensed",sans-serif;
    font-size:29px;
    letter-spacing:.5px;
}

.brand-text span{
    color:var(--muted);
    font-size:12px;
}

.header-actions{
    display:flex;
    gap:10px;
}

.icon-btn{
    width:43px;
    height:43px;

    border:none;
    border-radius:14px;

    background:rgba(255,255,255,.75);
    color:var(--text2);

    cursor:pointer;

    font-size:17px;

    transition:.25s;
}

.icon-btn:hover{
    transform:translateY(-2px);
    background:var(--primary);
    color:#fff;
}

.topspacer{
    height: 70px;
}

/* TITLE */

.hero-content{
    width:min(1050px,100%);
    margin:25px auto 0;
    text-align:center;
}

.hero-content h1{
    font-family:"Barlow Condensed",sans-serif;

    font-size:clamp(42px,7vw,72px);
    line-height:.95;

    color:#104aa7;

    letter-spacing:1px;
}

.dark .hero-content h1{
    color:#65c8ff;
}

.hero-content p{
    margin-top:10px;
    color:var(--muted);
    font-size:14px;
}

/* SEARCH */

.search-wrapper{
    width:min(1050px,100%);
    margin:27px auto 0;

    position:relative;
}

.search-box{
    min-height:76px;

    display:flex;
    align-items:center;
    gap:12px;

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

    border:4px solid #43c9ef;

    border-radius:25px;

    padding:8px 14px;

    box-shadow:
        0 12px 35px rgba(22,120,180,.15);

    transition:.25s;
}

.search-box:focus-within{
    transform:translateY(-2px);

    border-color:var(--primary);

    box-shadow:
        0 16px 45px rgba(18,97,214,.2);
}

.search-label{
    font-family:"Barlow Condensed",sans-serif;

    font-size:46px;
    font-weight:600;

    color:#093d91;
    white-space:nowrap;
}

.search-input{
    flex:1;

    border:none;
    outline:none;

    background:#e5e7eb;

    color:#173d83;

    height:54px;

    border-radius:15px;

    padding:0 18px;

    font-family:"Barlow Condensed",sans-serif;

    font-size:28px;
}

.search-input::placeholder{
    color:#34528a;
    opacity:.8;
}

.search-btn{
    width:55px;
    height:54px;

    border:none;
    border-radius:15px;

    background:var(--primary);
    color:white;

    cursor:pointer;

    font-size:20px;

    transition:.25s;
}

.search-btn:hover{
    background:var(--primary-dark);
    transform:scale(1.05);
}

/* SEARCH DROPDOWN */

.search-results{
    position:absolute;

    top:88px;
    left:0;
    right:0;

    background:var(--surface);

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

    border-radius:18px;

    box-shadow:var(--shadow);

    overflow:hidden;

    z-index:100;

    display:none;
}

.search-results.show{
    display:block;
}

.search-result{
    padding:15px 18px;

    display:flex;
    align-items:center;
    gap:13px;

    cursor:pointer;

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

    transition:.2s;
}

.search-result:last-child{
    border-bottom:none;
}

.search-result:hover{
    background:var(--surface2);
}

.result-icon{
    width:42px;
    height:42px;

    border-radius:12px;

    background:#e9f5ff;

    display:flex;
    align-items:center;
    justify-content:center;

    color:var(--primary);
}

/* NAV */

.nav{
    width:min(1150px,100%);
    margin:20px auto 0;

    display:flex;
    align-items:center;
    gap:10px;

    overflow-x:auto;

    padding-bottom:3px;
}

.nav::-webkit-scrollbar{
    display:inline;
    cursor: pointer;
}

.nav-item{
    white-space:nowrap;

    padding:10px 17px;

    border-radius:30px;

    background:var(--surface);

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

    color:var(--muted);

    font-size:13px;

    cursor:pointer;

    transition:.25s;
}

.nav-item:hover,
.nav-item.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

.nav-item-more{
    white-space:nowrap;

    padding:10px 17px;

    border-radius:30px;

    background:var(--surface);

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

    color:var(--muted);

    font-size:13px;

    cursor:pointer;

    transition:.25s;
}

.nav-item-more #nav-item-more{
    /* control width and height */
    white-space:nowrap;

    padding:2px 2px;

    border-radius:10px;

    background:var(--surface);

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

    color:var(--muted);

    font-size:13px;

    cursor:pointer;

    transition:.25s;
    
}

/* MAIN */

main{
    width:min(1150px,100%);
    margin:35px auto;
    padding:0 20px;
}

/* SECTION HEADER */

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:end;

    gap:20px;

    margin-bottom:20px;
}

.section-header h2{
    font-family:"Barlow Condensed",sans-serif;

    font-size:34px;
}

.section-header p{
    margin-top:3px;

    font-size:13px;
    color:var(--muted);
}

.result-count{
    font-size:13px;
    color:var(--muted);
}

/* STORE CARD */

.store-card{
    position:relative;

    background:var(--card);

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

    border-radius:var(--radius);

    padding:20px;

    margin-bottom:24px;

    box-shadow:var(--shadow);

    overflow:hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.store-card:hover{
    transform:translateY(-5px);

    box-shadow:
        0 25px 60px rgba(30,50,90,.15);
}

/* decorative */

.store-card::before{
    content:"";

    position:absolute;

    width:180px;
    height:180px;

    border-radius:50%;

    background:rgba(70,190,240,.08);

    top:-90px;
    right:-70px;
}

/* STORE TOP */

.store-top{
    display:grid;

    grid-template-columns:88px 1fr auto;

    gap:18px;

    align-items:center;
}

/* STORE LOGO */

.store-logo{
    width:88px;
    height:88px;

    border-radius:50%;

    background:#fffca5;

    padding:9px;

    display:flex;
    align-items:center;
    justify-content:center;
}

.store-logo-inner{
    width:100%;
    height:100%;

    border-radius:17px;

    background:#080909;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;

    font-family:"Barlow Condensed",sans-serif;

    font-size:25px;
    font-weight:600;

    position:relative;
    overflow:hidden;
}
.store-logo-inner img{
    width:100%;
    height:100%;
}



/* URL */

.store-url{
    min-width:0;
}

.url-box{
    background:var(--surface2);

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

    border-radius:15px;

    min-height:64px;

    padding:0 18px;

    display:flex;
    align-items:center;

    font-size:18px;
    font-weight:600;

    overflow:hidden;
}

.url-box i{
    color:var(--primary);

    margin-right:10px;
}

.url-text{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* GO */

.go-btn{
    min-width:105px;
    height:64px;

    border:none;

    border-radius:15px;

    background:linear-gradient(
        135deg,
        var(--primary),
        #218be7
    );

    color:#fff;

    font-family:"Barlow Condensed",sans-serif;

    font-size:28px;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    box-shadow:
        0 8px 20px rgba(18,97,214,.2);

    transition:.25s;
}

.go-btn:hover{
    transform:translateY(-2px) scale(1.03);
}

/* STORE INFO */

.store-info{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-top:17px;

    padding:12px 15px;

    border-radius:13px;

    background:var(--surface2);

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

.store-type{
    display:flex;
    align-items:center;
    gap:8px;

    font-size:13px;
    color:var(--muted);
}

.store-type i{
    color:var(--primary);
}

.verified{
    display:flex;
    align-items:center;
    gap:5px;

    color:#16a34a;

    font-size:12px;
    font-weight:600;
}

/* PRODUCTS */

.products{
    display:grid;

    grid-template-columns:
        repeat(6,minmax(0,1fr));

    gap:12px;

    margin-top:14px;
}

.product{
    aspect-ratio:1;

    border-radius:15px;

    background:linear-gradient(
        135deg,
        var(--surface2),
        #dfe8f4
    );

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

    position:relative;

    overflow:hidden;

    cursor:pointer;

    transition:.25s;
}

.dark .product{
    background:
        linear-gradient(
            135deg,
            #18243a,
            #111b2c
        );
}

.product:hover{
    transform:translateY(-4px) scale(1.02);
}

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

    object-fit:cover;

    display:block;

    transition:.4s;
}

.product:hover .product-img{
    transform:scale(1.08);
}

.product-placeholder{
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#a0aec0;

    font-size:28px;
}

.product-placeholder img{
    /* control width and height */
    width: 100%;
    height: 100%;
}


/* CARD FOOTER */

.card-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-top:15px;
}

.view-store{
    color:var(--primary);

    font-size:13px;
    font-weight:700;

    text-decoration:none;
}

.view-store:hover{
    text-decoration:underline;
}

.updated{
    font-size:11px;
    color:var(--muted);
}

/* EMPTY */

.empty{
    text-align:center;

    background:var(--surface);

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

    border-radius:22px;

    padding:60px 20px;

    display:none;
}

.empty i{
    font-size:45px;
    color:var(--muted);
    margin-bottom:15px;
}

.empty h3{
    font-size:20px;
}

.empty p{
    color:var(--muted);
    font-size:13px;
    margin-top:7px;
}

/* FOOTER */

footer{
    margin-top:60px;

    padding:35px 20px;

    background:#071426;

    color:white;

    text-align:center;
}

.footer-logo{
    font-family:"Barlow Condensed",sans-serif;
    font-size:30px;
}

footer p{
    color:#9eacc0;

    font-size:12px;

    margin-top:7px;
}

.footer-links{
    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:20px;

    margin-top:20px;
}

.footer-links a{
    color:#cbd5e1;

    font-size:12px;

    text-decoration:none;
}


/* MOBILE */

@media(max-width:750px){

    .hero{
        padding:15px 14px 25px;
    }

    .brand-text strong{
        font-size:24px;
    }

    .logo{
        width:47px;
        height:47px;
    }

    .hero-content{
        margin-top:20px;
    }

    .hero-content h1{
        font-size:45px;
    }

    .search-box{
        min-height:auto;

        border-width:3px;

        padding:6px;

        display:grid;

        grid-template-columns:auto 1fr auto;
    }

    .search-label{
        font-size:34px;
    }

    .search-input{
        height:48px;
        font-size:21px;
        min-width:0;
    }

    .search-btn{
        height:48px;
        width:48px;
    }

    .store-card{
        padding:14px;
    }

    .store-top{
        grid-template-columns:64px 1fr;

        gap:12px;
    }

    .store-logo{
        width:64px;
        height:64px;
        padding:6px;
    }

    .store-logo-inner{
        font-size:19px;
    }

    .url-box{
        min-height:57px;

        font-size:14px;

        padding:0 12px;
    }

    .go-btn{
        grid-column:1/-1;

        width:100%;

        height:48px;

        font-size:24px;
    }

    .products{
        grid-template-columns:
            repeat(3,1fr);

        gap:8px;
    }

    .section-header{
        align-items:start;
        flex-direction:column;
        gap:5px;
    }

}

@media(max-width:420px){

    .search-label{
        font-size:28px;
    }

    .search-input{
        font-size:18px;
    }

    .products{
        grid-template-columns:
            repeat(3,1fr);
    }

}

