:root {
    --green-900: #123d2f;
    --green-800: #1b573e;
    --green-700: #24654d;
    --green-600: #2d865f;
    --green-500: #49a86d;
    --green-100: #eaf7ef;
    --earth: #d7b88d;
    --gold: #efb84d;
    --charcoal: #1c1c1c;
    --muted: #6c757d;
    --light: #f7f7f5;
    --shadow-soft: 0 12px 30px rgba(18, 61, 47, 0.08);
    --radius-lg: 1.25rem;
    --radius-md: 0.9rem;
}

body {
    background: #f5f7f3;
    color: var(--charcoal);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

img { max-width: 100%; }

.btn,
.form-control,
.form-select,
.input-group-text {
    border-radius: 0.85rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    border: none;
}

.btn-outline-success {
    border-color: var(--green-600);
    color: var(--green-800);
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-800), var(--green-500));
    color: white;
    font-weight: 700;
}

.hero-section {
    background: linear-gradient(120deg, rgba(17, 61, 47, 0.95), rgba(38, 130, 91, 0.8)), url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    border-radius: 0 0 2rem 2rem;
    color: white;
    padding: 5rem 0;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
}

.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: white;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(18, 61, 47, 0.12);
}

.product-card img {
    height: 220px;
    object-fit: cover;
}

.category-card {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.category-card .bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.8) brightness(0.7);
}

.category-card .content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.6));
    color: white;
}

.section-title {
    font-size: clamp(1.7rem, 2.2vw, 2.6rem);
    font-weight: 800;
    color: var(--green-800);
}

.featured-badge {
    background: rgba(73, 168, 109, 0.12);
    color: var(--green-700);
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.stat-card {
    background: linear-gradient(180deg, white, #f2f9f4);
    border: 1px solid rgba(18,61,47,0.06);
}

.search-box .input-group-text {
    background: #ffffff;
}

.form-panel {
    background: #fff;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.login-hero {
    background: linear-gradient(120deg, rgba(18,61,47,0.96), rgba(73,168,109,0.7));
    color: white;
    border-radius: 1.5rem;
    min-height: 100%;
}

.dashboard-stat {
    background: white;
    border-radius: 1.25rem;
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.sidebar-nav {
    background: linear-gradient(180deg, #123d2f, #1d5d47);
    border-radius: 1rem;
    padding: 1rem;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.85);
    border-radius: 0.75rem;
    margin-bottom: 0.4rem;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.breadcrumbs a {
    color: var(--green-700);
    text-decoration: none;
}

.table-responsive {
    border-radius: 1rem;
    overflow: auto;
}

.rating-stars {
    color: var(--gold);
}

.product-img-large {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }
}
