/* ===================================================
   HOME PAGE
   Tank Life Store
=================================================== */

:root{

    --home-bg:#0f1430;
    --panel:#1a2143;
    --panel-hover:#222b56;

    --border:rgba(255,255,255,.05);

    --text:#ffffff;
    --text-light:#a5acc9;

    --accent:#ff7885;

    --radius:20px;

}



/* ===================================================
   SECTION
=================================================== */

.products-home{

    margin-top:-20px;

    padding:35px 0 90px;

}

.home-container{

    width:min(1920px,calc(100% - 40px));

    margin:0 auto;

}



/* ===================================================
   GRID
=================================================== */

.market-layout{

    display:grid;

    grid-template-columns:minmax(0,1fr) 290px;

    gap:24px;

    align-items:start;

}

.market-left{

    display:flex;

    flex-direction:column;

    gap:24px;

}

.market-right{

    display:flex;

    flex-direction:column;

    gap:22px;

}



/* ===================================================
   PANELS
=================================================== */

.products-box,
.news-box,
.top-sellers{

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:var(--radius);

}



/* ===================================================
   HEADERS
=================================================== */

.products-head,
.news-header,
.sidebar-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:5px 26px 0;

}

.products-head h2,
.news-header h2,
.sidebar-head h3{

    color:var(--text);

    font-size:26px;

    font-weight:800;

}

.products-more,
.news-all,
.sidebar-head a{

    display:flex;

    align-items:center;

    gap:8px;

    color:var(--accent);

    font-size:15px;

    font-weight:700;

    text-decoration:none;

    transition:.25s;

}

.products-more:hover,
.news-all:hover,
.sidebar-head a:hover{

    opacity:.8;

}

/* ===================================================
   PRODUCTS
=================================================== */

.products-box{

    padding-bottom:28px;

}

.products-grid{

    display:flex;

    gap:18px;

    padding:22px 20px 0;

}

.product-card{

    display:flex;

    flex-direction:column;

    overflow:hidden;

    background:#22294b;

    border:1px solid rgba(255,255,255,.05);

    border-radius:18px;

    transition:.25s;

}

.product-card:hover{

    transform:translateY(-6px);

    border-color:rgba(255,120,130,.35);

    box-shadow:0 18px 40px rgba(0,0,0,.22);

}

.product-image{

    position:relative;

    overflow:hidden;

    aspect-ratio:16/11;

}

.product-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    transition:.35s;

}

.product-card:hover .product-image img{

    transform:scale(1.05);

}

.product-content{

    display:flex;

    flex-direction:column;

    gap:14px;

    padding:18px;

    flex:1;

    overflow:hidden;

}

.product-title{

    color:#fff;

    font-size:22px;

    font-weight:700;

    line-height:1.35;

}

.product-seller{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.product-author{

    display:flex;

    align-items:center;

    gap:8px;

}

.product-author img{

    width:24px;

    height:24px;

    border-radius:50%;

}

.product-author span{

    color:#a7aec8;

    font-size:14px;

}

.product-rating{

    color:#ffd257;

    font-weight:700;

    font-size:14px;

}



.product-price{

    color:#fff;

    font-size:28px;

    font-weight:800;

}

.cart-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    flex:0 0 auto;

    width:110px;

    height:48px;

    padding:0 20px;

    border-radius:12px;

    background:linear-gradient(180deg,#ff8b90,#ff707e);

    color:#fff;

    font-size:15px;

    font-weight:700;

    text-decoration:none;

    white-space:nowrap;

    overflow:hidden;

}

.cart-btn:hover{

    transform:translateY(-2px);

    background:linear-gradient(180deg,#ff989c,#ff7b88);

}



/* ===================================================
   SIDEBAR
=================================================== */

.top-sellers{

    padding:12px 24px 24px;

}



.seller-row:last-child{

    margin-bottom:0;

}

.seller-rank{

    width:26px;

    height:26px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    font-size:13px;

    font-weight:700;

    color:#fff;

    background:#39406d;

}

.gold{

    background:#ffc847;

    color:#111;

}

.silver{

    background:#d9dfea;

    color:#111;

}

.bronze{

    background:#d78b53;

    color:#111;

}

.seller-row{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:18px;

}


.seller-avatar{

    width:46px;

    height:46px;

    min-width:46px;

    border-radius:50%;

    object-fit:cover;

    flex-shrink:0;

}


.seller-info{

    flex:1;

    min-width:0;

}


.seller-info strong{

    color:#fff;

    font-size:15px;

    font-weight:700;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.seller-info{
    flex:1;
    min-width:0;
}

.seller-info strong{

    color:#fff;

    font-size:15px;

    font-weight:700;

}

.seller-info span{

    margin-top:4px;

    color:#98a4c5;

    font-size:13px;

}

/* ===================================================
   SELLER BANNER
=================================================== */

.seller-banner{

    position:relative;

    overflow:hidden;

    height:340px;

    border-radius:20px;

    background:
    linear-gradient(
        rgba(10,12,25,.15),
        rgba(10,12,25,.82)
    ),
    url("/images/seller-banner.webp");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    border:1px solid var(--border);
flex-shrink:0;
}

.seller-banner::before{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        180deg,
        transparent 20%,
        rgba(12,15,33,.85) 100%
    );

}

.seller-banner-overlay{

    position:absolute;

    left:24px;

    right:24px;

    bottom:24px;

    z-index:2;

}

.seller-banner h3{

    color:#fff;

    font-size:34px;

    font-weight:800;

    line-height:1.1;

    margin-bottom:14px;

}

.seller-banner p{

    color:#d7dcef;

    font-size:15px;

    line-height:1.7;

    margin-bottom:22px;

}

.seller-banner a{

    display:flex;

    justify-content:center;

    align-items:center;

    height:54px;

    border-radius:14px;

    background:rgba(20,23,40,.70);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(14px);

    color:#fff;

    font-weight:700;

    text-decoration:none;

    transition:.25s;

}

.seller-banner a:hover{

    background:linear-gradient(180deg,#ff8c90,#ff6f7d);

    transform:translateY(-2px);

}



/* ===================================================
   NEWS
=================================================== */

.news-box{

    padding-bottom:28px;

}

.news-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

    padding:22px 22px 0;

}

.news-card{

    display:flex;

    gap:18px;

    padding:16px;

    background:#22294b;

    border:1px solid rgba(255,255,255,.05);

    border-radius:18px;

    transition:.25s;

}

.news-card:hover{

    transform:translateY(-4px);

    border-color:rgba(255,120,130,.25);

}

.news-image{

    width:135px;

    height:96px;

    border-radius:12px;

    object-fit:cover;

    flex-shrink:0;

}

.news-info{

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.news-date{

    color:#8f97b9;

    font-size:13px;

    margin-bottom:10px;

}

.news-title{

    color:#fff;

    font-size:18px;

    font-weight:700;

    line-height:1.45;

    margin-bottom:14px;

}

.news-link{

    color:var(--accent);

    font-weight:700;

    text-decoration:none;

}





.seller-place{

font-size:22px;

font-weight:800;

width:35px;

}


.seller-info h4{

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

}


.seller-rating,
.seller-sales,
.seller-products{

color:#9da6c5;

font-size:13px;

margin-top:3px;

}

.top-seller-item{
    display:flex;
    align-items:center;
    gap:12px;
}








.seller-place{

font-size:24px;

}






.seller-info span{

color:#aab3d1;

font-size:13px;

}

.buy-btn {

    display:flex;
    align-items:center;
    justify-content:center;

    height:42px;
    padding:0 22px;

    border-radius:12px;

    background:linear-gradient(
        135deg,
        #ff617d,
        #ff9578
    );

    color:white;

    font-size:15px;
    font-weight:700;

    text-decoration:none;

    transition:.25s;

    box-shadow:
    0 10px 25px rgba(255,105,120,.25);

}


.buy-btn:hover {

    transform:translateY(-2px);

    box-shadow:
    0 15px 35px rgba(255,105,120,.4);

}

.product-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.product-footer {

    display:flex;
    align-items:center;

    justify-content:flex-start;

    gap:25px;

    padding:0 18px 18px;

}


.product-footer .price {

    color:#fff;

    font-size:32px;

    font-weight:800;

}


.product-footer .buy-btn {

    width:100px;
    height:42px;

    display:flex;

    align-items:center;
    justify-content:center;

}

.product-thumb{
    position:relative;
}


.favorite{

    position:absolute;

    top:12px;

    right:12px;


    width:38px;

    height:38px;


    display:flex;

    align-items:center;

    justify-content:center;


    border:none;

    border-radius:12px;


    background:#ff7885;


    cursor:pointer;


    z-index:10;

}


.favorite img{

    width:20px;

    height:20px;

}

.seller-initials{

    display:flex;

    align-items:center;

    justify-content:center;

    background:#ff7885;

    color:white;

    font-weight:800;

    font-size:16px;

}

.market-right{

    display:flex;

    flex-direction:column;

    gap:22px;

    align-self:start;

    height:max-content;

}

.top-seller-link{

    text-decoration:none;
    color:inherit;
    display:block;

}


.top-seller-item{

    display:flex;
    align-items:center;
    gap:12px;

}


.seller-place{

    order:3;

}

