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

:root {
    --red: #e11d2e;
    --red-dark: #b91422;
    --black: #111111;
    --soft-black: #1f1f1f;
    --white: #ffffff;
    --muted: #6b7280;
    --border: #e5e7eb;
    --light: #f7f7f8;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    min-height: 100vh;
}

main {
    min-height: 72vh;
}

.site-navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    color: var(--black);
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-left: 8px;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
}

.nav-link {
    color: var(--soft-black);
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--red);
}

.btn-red {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.btn-red:hover,
.btn-red:focus {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.btn-outline-red {
    border-color: var(--red);
    color: var(--red);
}

.btn-outline-red:hover {
    background: var(--red);
    color: var(--white);
}

.hero {
    background:
        radial-gradient(circle at top right, rgba(225, 29, 46, 0.12), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f7f7f8 100%);
    border-bottom: 1px solid var(--border);
}

.hero-card {
    background: var(--black);
    color: var(--white);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.18);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--red);
    left: -70px;
    bottom: -70px;
    opacity: 0.85;
}

.hero-card-content {
    position: relative;
    z-index: 2;
}

.stat-card,
.panel-card,
.product-card,
.form-card {
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(17, 17, 17, 0.06);
}

.stat-card {
    padding: 24px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.product-card {
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(17, 17, 17, 0.09);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--light);
}

.product-detail-image {
    width: 100%;
    max-height: 470px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.badge-stock {
    background: #f3f4f6;
    color: #111827;
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 12px 14px;
    border-color: var(--border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 .2rem rgba(225, 29, 46, .13);
}

.table {
    vertical-align: middle;
}

.table thead th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.product-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.empty-state {
    border: 2px dashed var(--border);
    border-radius: 22px;
    padding: 36px;
    text-align: center;
    background: #fafafa;
}

.site-footer {
    background: var(--black);
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

.text-muted-2 {
    color: var(--muted);
}

@media (max-width: 767px) {
    .hero-card {
        margin-top: 24px;
    }

    .product-image {
        height: 190px;
    }
}
