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

html,
body{
    height:100%;
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.content{
    flex:1;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f5f7;
    color:#222;
    font-size:14px;
}
.topbar{

    background:#171717;
    color:#fff;
    position:sticky;
    top:0;
    z-index:100;
    box-shadow:0 2px 8px rgba(0,0,0,.15);


}

.topbar-inner{

    display:flex;
    justify-content:space-between;
    align-items:center;
    height:78px;
}


.content{

    padding-top:30px;

}
.logo{

    text-decoration:none;
    color:#fff;
    line-height:1;

}

.logo-title{

   font-size:26px;
    font-weight:800;

}

.logo-sub{

    color:#9ca3af;
    font-size:10px;
    letter-spacing:4px;
    margin-top:4px;

}
.container{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 20px;
}

.content{
    padding-top:35px;
    padding-bottom:60px;
}
.topbar-right{

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

}

nav{

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

}

nav a{

    color:#ddd;
    text-decoration:none;
    transition:.2s;

}

nav a:hover{

    color:white;

}

.user-box{

    display:flex;
    flex-direction:column;
    align-items:flex-end;

}

.user-box .name{

    font-size:14px;
    font-weight:bold;
    color:white;

}

.user-box .manager{

    color:#999;
    font-size:11px;

}

.whatsapp-btn{

    margin-top:4px;
    background:#25D366;
    color:white!important;
    padding:4px 10px;
    border-radius:20px;
    text-decoration:none;
    font-size:11px;

}

.whatsapp-btn:hover{

    background:#1ca851;

}

.cart-badge{

    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-width:20px;
    height:20px;
    padding:0 6px;
    margin-left:5px;
    background:white;
    color:black;
    border-radius:30px;
    font-size:11px;
    font-weight:bold;

}


.page{

    max-width:1400px;
    margin:35px auto 60px;
    padding:0 20px;

}

h2{
    margin-bottom:20px;
    font-size:32px;
}

.catalog-filters{
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
   padding:14px 16px;
    margin-bottom:20px;
}

#brands,
#models{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:20px;
}

.brandBtn,
.modelBtn{

    background:white;
    border:1px solid #ccc;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
    transition:.2s;
    font-size:14px;
}

.brandBtn:hover,
.modelBtn:hover{

    background:#111;
    color:white;

}

.brandBtn.active,
.modelBtn.active{

    background:#111;
    color:white;

}

#search{

    width:350px;
    max-width:100%;
    height:40px;
    padding:0 12px;
    border:1px solid #ccc;
    border-radius:6px;
    margin-right:20px;
	


    flex:1;
    min-width:350px;
    max-width:700px;



}

label{

    user-select:none;

}

table{

    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:8px;
    overflow:hidden;

}

thead{

    background:#222;
    color:white;

}

thead th{


    padding:14px;
    text-align:left;
    font-weight:bold;


}

#catalog thead th{

  padding:14px;
    text-align:left;
    font-weight:bold;
    background:#222;
    color:#fff;

}

tbody td{

    padding:10px 14px;
    border-bottom:1px solid #eee;

}

tbody tr:hover{

    background:#f8fbff;

}

.qty{


    height:34px;
    text-align:center;
    border:1px solid #ccc;
    border-radius:5px;
	

    width:65px;
    text-align:center;



}

.stock-good{

    color:#0a9c33;
    font-weight:bold;

}

.stock-zero{

    color:#d70000;
    font-weight:bold;

}

.price{

    text-align:center;
    white-space:nowrap;

}

.table-wrapper{

    overflow:auto;
    border-radius:8px;

}

button{

    font-size:14px;

}

@media(max-width:1100px){

    .topbar{

        flex-direction:column;
        height:auto;
        padding:15px;

    }

    nav{

        margin-top:15px;
        flex-wrap:wrap;
        justify-content:center;

    }

    .container{

        padding:15px;

    }

}

@media(max-width:768px){

    h2{

        font-size:24px;

    }

    #search{

        width:100%;
        margin-bottom:15px;

    }

    label{

        display:block;

    }

    table{

        font-size:13px;

    }

    thead th,
    tbody td{

        padding:8px;

    }

    .brandBtn,
    .modelBtn{

        padding:7px 10px;
        font-size:13px;

    }

}

@media(max-width:600px){

    table{

        display:block;
        overflow-x:auto;
        white-space:nowrap;

    }

}



.checkout-btn{

    display:inline-block;
    background:#111;
    color:white;
    text-decoration:none;
    padding:14px 28px;
    border-radius:6px;
    transition:.2s;

}

.checkout-btn:hover{

    background:#2b2b2b;

}

.form-control{

    width:100%;
    height:44px;
    margin-bottom:14px;
    padding:0 14px;
    border:1px solid #d8d8d8;
    border-radius:6px;
    font-size:14px;

}

.form-control:focus{

    outline:none;
    border-color:#111;

}

.main-btn{

    width:100%;
    height:46px;
    background:#111;
    color:#fff;
    border:0;
    border-radius:6px;
    cursor:pointer;
    font-size:15px;
    transition:.2s;

}

.main-btn:hover{

    background:#333;

}

.checkout-form{

    max-width:700px;

    background:white;

    padding:25px;

    border-radius:8px;

}

.form-row{

    margin-bottom:18px;

}

.form-row label{

    display:block;

    margin-bottom:6px;

    font-weight:bold;

}

.form-row input,
.form-row textarea{

    width:100%;

    padding:10px;

    border:1px solid #ccc;

    border-radius:6px;

    font-size:14px;

}

.form-row textarea{

    resize:vertical;

}


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

@media (max-width:768px){

    .topbar-inner{

        flex-direction:column;
        align-items:flex-start;
        height:auto;
        padding:15px 0;
        gap:15px;

    }

    .topbar-right{

        width:100%;
        justify-content:space-between;
        gap:20px;

    }

    nav{

        gap:18px;
        flex-wrap:wrap;

    }

    .logo-title{

        font-size:20px;

    }

    .logo-sub{

        font-size:8px;
        letter-spacing:3px;

    }

    .user-box{

        display:none;

    }

    h2{

        font-size:22px;

    }

    .catalog-filters{

        padding:15px;

    }

    #search{

        width:100%;
        min-width:0;
        margin-right:0;
        margin-bottom:15px;

    }

    #brands,
    #models{

        gap:6px;

    }

    .brandBtn,
    .modelBtn{

        padding:8px 10px;
        font-size:12px;

    }

    .table-wrapper{

        overflow-x:auto;

    }

    table{

        min-width:850px;

    }

    .checkout-summary{

        display:flex;
        flex-direction:column;
        gap:25px;
        text-align:center;

    }

    .checkout-summary .main-btn,
    .checkout-summary .checkout-btn{

        width:100%;

    }

    footer .container>div:first-child{

        flex-direction:column;
        gap:30px;

    }

}