﻿.admin-page {
    padding: 45px 0 70px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 45px;
    padding: 30px;
    background: #141414;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
}

.admin-subtitle {
    display: inline-block;
    color: #b11226;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.admin-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-description {
    color: #8f8f8f;
    margin: 0;
}

.admin-add-btn {
    background: #b11226;
    color: #fff;
    border-radius: 14px;
    padding: 12px 22px;
    font-weight: 600;
    transition: .3s;
}

    .admin-add-btn:hover {
        background: #d61b37;
        color: white;
        transform: translateY(-2px);
    }

.admin-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:13px;
}

.admin-card {
    background: #171717;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    transition: .35s;
}

    .admin-card:hover {
        transform: translateY(-8px);
        border-color: #b11226;
        box-shadow: 0 20px 45px rgba(177,18,38,.22);
    }

.admin-image {
    height: 170px;
}

    .admin-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .5s;
    }

.admin-card:hover img {
    transform: scale(1.08);
}

.admin-body {
    padding: 20px;
}

.admin-category {
    color: #b11226;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.admin-body h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 62px;
}
.admin-brand {
    color: #9a9a9a;
    margin-bottom: 18px;
}

.admin-price {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.stock {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.stock-green {
    background: rgba(40,167,69,.18);
    color: #53d86a;
}

.stock-yellow {
    background: rgba(255,193,7,.18);
    color: #ffd65a;
}

.stock-red {
    background: rgba(220,53,69,.18);
    color: #ff6d81;
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.admin-add-btn {
    background: #b11226;
    color: #fff !important;
    border: none;
    font-weight: 700;
}

    .admin-add-btn:hover {
        background: #d61b37;
        color: #fff !important;
    }

.delete-btn:hover {
    background: #dc3545;
}

