:root {
    --bg: #f6f7f1;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: #ffffff;
    --text: #17301f;
    --muted: #617568;
    --line: rgba(30, 66, 43, 0.12);
    --primary: #1f7a4d;
    --primary-dark: #15563a;
    --accent: #f4b942;
    --danger: #d14b45;
    --shadow: 0 18px 40px rgba(24, 48, 34, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Be Vietnam Pro", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(171, 215, 130, 0.35), transparent 28%),
        radial-gradient(circle at top right, rgba(70, 144, 102, 0.18), transparent 30%),
        var(--bg);
    color: var(--text);
}

.site-shell {
    min-height: 100vh;
}

.navbar-glass {
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(20, 67, 44, 0.95), rgba(20, 67, 44, 0.78));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f2cf66, #ffffff);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.9rem;
}

.btn {
    border-radius: 999px;
    padding-inline: 1rem;
}

.btn-accent {
    background: var(--accent);
    color: #2c2409;
    border: 0;
}

.btn-accent:hover {
    background: #efae2a;
    color: #2c2409;
}

.btn-soft-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-soft-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(23, 98, 58, 0.96), rgba(134, 194, 53, 0.84)),
        #1c6c44;
    border-radius: 34px;
    color: #fff;
    padding: 3.5rem;
    box-shadow: var(--shadow);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto -4rem -5rem auto;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
}

.panel,
.card {
    background: var(--panel);
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg) !important;
}

.card-body {
    padding: 1.5rem;
}

.search-panel {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 1rem;
}

.product-card {
    height: 100%;
    border-radius: 24px !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(21, 41, 28, 0.14);
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.product-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.price-tag {
    color: var(--danger);
    font-weight: 700;
    font-size: 1.15rem;
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.cart-pill-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: var(--accent);
    color: #2d250b;
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-card,
.checkout-card {
    max-width: 760px;
    margin-inline: auto;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.empty-state {
    padding: 2.5rem;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.55);
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: #eef4ec;
}

.quantity-control button {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
}

.quantity-control input {
    width: 4rem;
    text-align: center;
    border: 0;
    background: transparent;
}

.admin-sidebar .list-group-item {
    border: 0;
    border-radius: 18px !important;
    margin-bottom: 0.5rem;
}

.admin-sidebar .list-group-item.active {
    background: linear-gradient(135deg, var(--primary), #8fc44c);
    border-color: transparent;
}

.table {
    --bs-table-bg: transparent;
}

.table td,
.table th {
    vertical-align: middle;
}

.badge {
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.profile-stat:last-child {
    border-bottom: 0;
}

.profile-stat a {
    text-decoration: none;
    color: var(--primary);
}

.profile-stat strong {
    text-align: right;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.order-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.order-item img {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
}

.image-preview {
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.55);
}

.image-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
}

.footer-panel {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: #17301f;
    color: #eef4ef;
    border-radius: 24px;
    padding: 1.5rem;
}

.footer-title {
    font-weight: 700;
}

.is-invalid-lite {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.12) !important;
}

.field-error {
    color: #b42318;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

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

    .search-panel {
        margin-top: 1rem;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .footer-panel {
        flex-direction: column;
    }
}
