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

body{
    background:#0f0f10;
    color:#fff;
    overflow-x:hidden;
}

/* Layout */
.layout{
    display:flex;
    min-height:100vh;
}

/* Sidebar */
.sidebar{
    width:280px;
    height:100vh;
    background:#151516;
    padding:25px;
    position:fixed;
    top:0;
    right:0;
    z-index:1000;
    overflow-y:auto;
}

.brand{
    text-align:center;
    margin-bottom:40px;
}

.logo{
    width:55px;
    height:55px;
    background:linear-gradient(45deg,#c08a4a,#8b5e3c);
    border-radius:14px;
    margin:0 auto 10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.brand h2{
    font-size:20px;
    margin-bottom:5px;
}

.brand p{
    font-size:12px;
    color:#aaa;
}

/* menu */
.menu a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px;
    border-radius:12px;
    color:#ccc;
    text-decoration:none;
    margin-bottom:10px;
    transition:.3s;
}

.menu a:hover{
    background:#1f1f22;
    color:#fff;
}

.menu .active{
    background:linear-gradient(45deg,#c08a4a,#8b5e3c);
    color:#fff;
}

/* MAIN */
.main{
    margin-right:280px;
    padding:25px;
    width:100%;
}

/* TOPBAR */
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:25px;
    flex-wrap:wrap;
}

.search{
    flex:1;
}

.search input{
    width:100%;
    max-width:350px;
    padding:12px;
    border-radius:10px;
    border:none;
    background:#1b1b1e;
    color:#fff;
    outline:none;
}

/* profile */
.profile{
    position:relative;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    background:#151516;
    border:1px solid #2a2a2d;
    padding:10px 14px;
    border-radius:14px;
    transition:.3s;
}

.profile:hover{
    border-color:#8b5e3c;
}

.avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#2a2a2d;
    padding:4px;
    font-size:30px !important;
    color:#bb9e7c;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* HERO */
.hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:linear-gradient(135deg,#1b1b1e,#141415);
    padding:30px;
    border-radius:20px;
    border:1px solid #2a2a2d;
    flex-wrap:wrap;
}

.hero h1{
    font-size:28px;
    margin-bottom:10px;
    line-height:1.7;
}

.hero p{
    color:#aaa;
    margin-bottom:15px;
    line-height:1.8;
}

.hero-card{
    min-width:220px;
    background:#151516;
    border:1px solid #2a2a2d;
    padding:25px;
    border-radius:18px;
    text-align:center;
}

.hero-card h3{
    color:#c08a4a;
    font-size:30px;
    margin-bottom:8px;
}

.btn-primary{
    background:linear-gradient(45deg,#c08a4a,#8b5e3c);
    border:none;
    padding:12px 18px;
    border-radius:10px;
    color:#fff;
    cursor:pointer;
    transition:.3s;
}

.btn-primary:hover{
    opacity:.9;
    transform:translateY(-2px);
}

/* stats */
.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-top:20px;
}

.card{
    background:#151516;
    padding:20px;
    border-radius:15px;
    border:1px solid #242428;
}

.card h3{
    color:#c08a4a;
    font-size:26px;
    margin-bottom:6px;
}

/* section */
.section{
    margin-top:40px;
}

.section h2{
    margin-bottom:15px;
    font-size:24px;
}

/* grid */
.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

.product{
    background:#151516;
    border-radius:15px;
    padding:15px;
    border:1px solid #242428;
    transition:.3s;
}

.product:hover{
    transform:translateY(-5px);
    border-color:#8b5e3c;
}

.product .img{
    height:240px;
    background:#222;
    border-radius:10px;
    margin-bottom:10px;
}

.product h3{
    font-size:16px;
    margin-bottom:5px;
}

.product p{
    font-size:12px;
    color:#aaa;
    margin-bottom:10px;
    line-height:1.8;
}

.product button{
    width:100%;
    padding:10px;
    border:none;
    border-radius:10px;
    background:#8b5e3c;
    color:#fff;
    cursor:pointer;
    transition:.3s;
}

.product button:hover{
    opacity:.9;
}

/* ICONS */
.material-symbols-outlined{
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;

    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1;
}

.icon{
    font-size:22px;
    color:#c08a4a;
}

.logo .material-symbols-outlined{
    font-size:30px;
    color:#fff;
}

/* PROFILE DROPDOWN */
.dropdown{
    position:absolute;
    top: 72px;;
    left:0;
    min-width:175px;
    background:#151516;
    border:1px solid #2a2a2d;
    border-radius:12px;
    display:none;
    z-index:9999;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.4);
}

.dropdown div{
    padding:12px 70px;
    cursor:pointer;
    transition:.3s;
}

.dropdown div:hover{
    background:#8b5e3c;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width:1100px){

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

    .stats{
        grid-template-columns:repeat(2,1fr);
    }

    .hero{
        flex-direction:column;
        align-items:flex-start;
    }

    .hero-card{
        width:100%;
    }
}

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

    .layout{
        flex-direction:column;
    }

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .main{
        margin-right:0;
        padding:18px;
    }

    .topbar{
        flex-direction:column;
        align-items:stretch;
    }

    .search input{
        max-width:100%;
    }

    .profile{
        width:100%;
        justify-content:space-between;
    }

    .stats{
        grid-template-columns:1fr;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .hero{
        padding:20px;
    }

    .hero h1{
        font-size:22px;
    }

    .section h2{
        font-size:20px;
    }

    .product .img{
        height:200px;
    }
}

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

    .main{
        padding:14px;
    }

    .sidebar{
        padding:18px;
    }

    .hero{
        padding:18px;
    }

    .card{
        padding:16px;
    }

    .product{
        padding:12px;
    }

    .btn-primary{
        width:100%;
    }
}

/* =========================
   HAMBURGER BUTTON
========================= */

.menu-toggle{
    display:none;
    width:50px;
    height:50px;
    border:none;
    border-radius:12px;
    background:#151516;
    color:#c08a4a;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    border:1px solid #2a2a2d;
}

.menu-toggle .material-symbols-outlined{
    font-size:30px;
}

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

@media (max-width:768px){

    .sidebar{
        position:fixed;
        right:-100%;
        top:0;
        width:280px;
        height:100vh;
        transition:.35s;
        z-index:99999;
    }

    .sidebar.active{
        right:0;
    }

    .main{
        margin-right:0;
        width:100%;
    }

    .topbar{
        flex-direction:row;
        align-items:center;
    }

    .menu-toggle{
        display:flex;
    }

    .search{
        width:100%;
    }

    .profile{
        width:auto;
    }
}

/* =========================
   OVERLAY
========================= */

.sidebar-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    backdrop-filter:blur(2px);
    z-index:9999;
    display:none;
}

.sidebar-overlay.active{
    display:block;
}