@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{

    --primary:#006400;
    --primary-dark:#004d00;
    --gold:#FFD700;
    --white:#ffffff;
    --light:#f5f7fa;
    --gray:#777;
    --dark:#222;
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --radius:18px;
    --transition:.35s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--light);
    color:var(--dark);
    overflow-x:hidden;
}

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#eee;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--primary-dark);
}

header{
    position:sticky;
    top:0;
    z-index:999;

    display:flex;
    align-items:center;

    height:75px;

    background:#000000;

    padding:0 18px;

    box-shadow:0 6px 20px rgba(0,0,0,.15);
}

.menu-logo{

    display:flex;
    align-items:center;
    gap:15px;
}

.menu-logo h1{
    color:#fff;
    font-size:29px;
    font-weight:700;
}

.menu-btn{
    width:46px;
    height:46px;

    background:#fff;
    color:#006400;

    border:none;
    border-radius:14px;

    font-size:18px;

    cursor:pointer;

    transition:.3s;
}

.menu-btn:hover{

    transform:rotate(90deg) scale(1.05);

    background:var(--primary-dark);
}

.sidebar{

    position:fixed;

    top:0;

    left:-280px;

    width:260px;

    height:100%;

    background:#fff;

    box-shadow:0 15px 40px rgba(0,0,0,.18);

    transition:.4s;

    z-index:1000;

    padding-top:90px;
}

.sidebar.show{

    left:0;
}

.sidebar a{

    display:flex;

    align-items:center;

    gap:14px;

    text-decoration:none;

    color:#333;

    padding:17px 24px;

    transition:.3s;

    font-size:15px;

    font-weight:500;
}

.sidebar a:hover{

    background:var(--primary);

    color:#fff;

    padding-left:34px;
}

.sidebar i{

    width:22px;

    text-align:center;
}

main{

    width:100%;

    max-width:1300px;

    margin:auto;

    padding:22px;
}

.search-box{

    margin-bottom:25px;
}

.search-box input{

    width:100%;

    height:58px;

    border:none;

    outline:none;

    border-radius:50px;

    padding:0 25px;

    font-size:16px;

    background:#fff;

    box-shadow:var(--shadow);

    transition:var(--transition);
}

.search-box input:focus{

    box-shadow:0 0 0 3px rgba(0,100,0,.15);
}

/* =========================================
   HOT RIGHT NOW
========================================= */

.hot-section {
    margin-bottom: 30px;
}

.hot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}

.hot-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hot-header h2 span {
    font-size: 21px;
}

.hot-subtitle {
    font-size: 12px;
    color: #777;
    font-weight: 500;
}

.hot-products {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 3px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hot-products::-webkit-scrollbar {
    display: none;
}

.hot-card {
    flex: 0 0 165px;
    width: 165px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 7px 20px rgba(0,0,0,.09);
    cursor: pointer;
    position: relative;
    scroll-snap-align: start;
    transition: .3s ease;
}

.hot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.hot-card:active {
    transform: scale(.97);
}

.hot-card img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    display: block;
}

.hot-rank {
    position: absolute;
    top: 9px;
    left: 9px;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 9px;
    background: #000;
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.hot-card-body {
    padding: 10px 11px 12px;
}

.hot-name {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.hot-price {
    font-size: 17px;
    font-weight: 800;
    color: #006400;
}

.hot-location {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-loading {
    width: 165px;
    height: 200px;
    flex: 0 0 165px;
    border-radius: 18px;
    background: linear-gradient(
        90deg,
        #ececec 25%,
        #f5f5f5 50%,
        #ececec 75%
    );
    background-size: 200% 100%;
    animation: loading 1.4s infinite;
}

.hot-empty {
    width: 100%;
    text-align: center;
    padding: 25px 10px;
    color: #888;
    font-size: 13px;
}

@media(max-width:600px) {

    .hot-section {
        margin-bottom: 25px;
    }

    .hot-header h2 {
        font-size: 18px;
    }

    .hot-subtitle {
        font-size: 11px;
    }

    .hot-card {
        flex-basis: 155px;
        width: 155px;
    }

    .hot-card img {
        height: 125px;
    }
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
    margin-bottom:40px;
    animation:fadeUp .7s ease;
}

.product-card{

    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.35s;
    cursor:pointer;
}

.product-card:hover{

    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.product-card img{

    width:100%;
    height:180px;
    object-fit:cover;
}

.card-body{

    padding:14px;
}

.product-name{

    font-size:16px;
    font-weight:600;
    margin-bottom:8px;
}

.product-price{

    color:#006400;
    font-size:22px;
    font-weight:700;
    margin-bottom:6px;
}

.product-location{

    color:#777;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:6px;
}

.badge{
    position:absolute;
    top:12px;
    left:12px;
    background:#FFD700;
    color:#222;
    padding:5px 10px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    box-shadow:0 5px 12px rgba(0,0,0,.2);
}

.favorite{
    position:absolute;
    top:12px;
    right:12px;
    width:36px;
    height:36px;
    background:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
    color:#e53935;
    font-size:17px;
    transition:.3s;
}

.favorite:hover{
    transform:scale(1.1);
}

.favorite.active{
    background:#006400;
    color:#fff;
}

.page-heading{
    font-size:22px;
    color:#111;
    margin-bottom:20px;
}

.empty-state{
    text-align:center;
    color:#777;
    font-size:15px;
    padding:60px 20px;
    max-width:340px;
    margin:0 auto;
    line-height:1.6;
}

.card-body{
    padding:14px;
}

.product-name{
    font-size:16px;
    font-weight:600;
    color:#222;
    margin-bottom:10px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.product-price{
    color:#006400;
    font-size:22px;
    font-weight:700;
    margin-bottom:8px;
}

.product-location{
    color:#777;
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13px;
}

.view-btn{
    margin-top:15px;
    width:100%;
    height:45px;
    border:none;
    border-radius:12px;
    background:#006400;
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.view-btn:hover{
    background:#004d00;
    transform:translateY(-2px);
}

.skeleton{
    width:100%;
    height:270px;
    border-radius:20px;
    background:linear-gradient(
        90deg,
        #ececec 25%,
        #f5f5f5 50%,
        #ececec 75%
    );
    background-size:200% 100%;
    animation:loading 1.4s infinite;
}

@keyframes loading{

    0%{
        background-position:200% 0;
    }

    100%{
        background-position:-200% 0;
    }
}

button{
    position:relative;
    overflow:hidden;
}

button::after{

    content:"";

    position:absolute;

    width:0;

    height:0;

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

    border-radius:50%;

    transform:translate(-50%,-50%);

    transition:.6s;
}

button:active::after{

    width:300px;

    height:300px;
}

footer{

    text-align:center;

    padding:25px;

    color:#666;

    font-size:14px;
}

@media(max-width:900px){

.product-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:600px){

main{

padding:15px;

}

header{

height:65px;

}

.menu-logo h1{

font-size:26px;

}

.product-grid{

gap:14px;

}

.product-card img{

height:150px;

}

.product-price{

font-size:20px;

}

.search-box input{

height:54px;

}

}

@media(max-width:380px){

.product-grid{

grid-template-columns:1fr 1fr;

gap:10px;

}

.product-card img{

height:130px;

}

.product-name{

font-size:14px;

}

.product-price{

font-size:18px;

}

}

.hidden{
    display:none;
}

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

.shadow{
    box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.round{
    border-radius:20px;
}

.fade{
    animation:fadeUp .6s ease;
}

.sidebar{

    position:fixed;

    top:0;

    left:-280px;

    width:260px;

    height:100vh;

    background:#ffffff;

    transition:.35s ease;

    z-index:1000;

    box-shadow:0 0 30px rgba(0,0,0,.2);

    padding-top:90px;

}

.sidebar.show{

    left:0;

}