*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:#f4f4f4;
}

.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#2f2f2f,#111);
}

.login-box{
    width:380px;
    background:white;
    padding:35px;
    border-radius:22px;
    box-shadow:0 20px 45px rgba(0,0,0,0.25);
    text-align:center;
}

.login-logo{
    width:170px;
    margin-bottom:20px;
}

.login-box h2{
    margin-bottom:25px;
    color:#2f2f2f;
}

.login-box input{
    width:100%;
    padding:14px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:10px;
}

.login-box button{
    width:100%;
    background:#ed1c24;
    color:white;
    border:none;
    padding:14px;
    border-radius:30px;
    font-weight:700;
    cursor:pointer;
}

.error{
    background:#ffe1e1;
    color:#d60000;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
}

.admin-dashboard{
    padding:60px;
}

.admin-dashboard h1{
    color:#2f2f2f;
    margin-bottom:10px;
}

.admin-dashboard p{
    margin-bottom:30px;
}

.admin-dashboard a{
    display:inline-block;
    background:#ed1c24;
    color:white;
    padding:14px 25px;
    border-radius:30px;
    text-decoration:none;
    margin-right:10px;
}

.form-container{
    width:700px;
    margin:50px auto;
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

.form-container h1{
    margin-bottom:25px;
}

.form-container label{
    display:block;
    margin-top:15px;
    margin-bottom:8px;
    font-weight:600;
}

.form-container input,
.form-container select,
.form-container textarea{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
}

.form-container textarea{
    height:120px;
    resize:none;
}

.form-container button{
    margin-top:20px;
    background:#ed1c24;
    color:white;
    border:none;
    padding:14px 25px;
    border-radius:30px;
    cursor:pointer;
}

.admin-page{
    padding:40px;
}

.admin-page h1{
    margin-bottom:25px;
    color:#2f2f2f;
}

.back-btn,
.add-btn{
    display:inline-block;
    padding:12px 22px;
    border-radius:30px;
    color:white;
    text-decoration:none;
    margin-bottom:25px;
    margin-right:10px;
    font-weight:600;
}

.back-btn{
    background:#555;
}

.add-btn{
    background:#ed1c24;
}

.product-table{
    width:100%;
    border-collapse:collapse;
    background:white;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    border-radius:14px;
    overflow:hidden;
}

.product-table th{
    background:#2f2f2f;
    color:white;
    padding:15px;
    text-align:left;
}

.product-table td{
    padding:15px;
    border-bottom:1px solid #eee;
}

.table-img{
    width:80px;
    height:70px;
    object-fit:cover;
    border-radius:10px;
}

.edit-btn,
.delete-btn{
    padding:8px 14px;
    border-radius:20px;
    color:white;
    text-decoration:none;
    font-size:14px;
}

.edit-btn{
    background:#444;
}

.delete-btn{
    background:#ed1c24;
}

.zoom-container{
    position:relative;
    overflow:hidden;
    cursor:crosshair;
}

.zoom-container img{
    width:100%;
    display:block;
    border-radius:18px;
}

#zoomLens{
    position:absolute;
    border:2px solid #555;
    width:170px;
    height:170px;
    display:none;
    background-repeat:no-repeat;
    background-size:250%;
    pointer-events:none;
    z-index:10;
}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin:30px 0;
}

.stat-card{
    background:white;
    padding:28px;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.stat-card h2{
    color:#ed1c24;
    font-size:36px;
}

.stat-card p{
    color:#555;
    font-weight:600;
}

@media(max-width:768px){
    .stat-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

.action-buttons{
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:center;
}

.action-buttons a{
    width:90px;
    text-align:center;
}

.action-buttons{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:center;
}

.action-buttons a{
    width:90px;
    text-align:center;
}

.edit-btn,
.delete-btn{
    display:block;
}

.page-header{
    width:700px;
    margin:40px auto 15px;
}

.back-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    background:#ffffff;
    color:#222;
    padding:12px 22px;
    border-radius:50px;
    font-weight:600;
    border:1px solid #e5e5e5;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.back-btn:hover{
    background:#ff2d2d;
    color:#fff;
    border-color:#ff2d2d;
    transform:translateY(-2px);
}

.top-actions{
    display:flex;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:25px;
}

.search-form{
    margin-left:auto;
    display:flex;
    gap:10px;
}

.search-form input{
    width:260px;
    padding:12px 18px;
    border:1px solid #ddd;
    border-radius:30px;
    font-size:15px;
}

.search-form button{
    background:#ff1f1f;
    color:#fff;
    border:none;
    padding:12px 22px;
    border-radius:30px;
    cursor:pointer;
    font-weight:600;
}

.search-form button:hover{
    background:#d90000;
}

.clear-btn{
    text-decoration:none;
    background:#555;
    color:#fff;
    padding:12px 22px;
    border-radius:30px;
    font-weight:600;
}

.clear-btn:hover{
    background:#333;
}

.back-home-btn{
    display:block;
    width:100%;
    margin-top:15px;
    padding:14px;
    text-align:center;
    text-decoration:none;
    color:#444;
    background:#fff;
    border:2px solid #ddd;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
    transition:0.3s;
    box-sizing:border-box;
}

.back-home-btn:hover{
    background:#f5f5f5;
    border-color:#ff1f1f;
    color:#ff1f1f;
    transform:translateY(-2px);
}