@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --green-dark: #1a4731;
    --green-mid: #2d6a4f;
    --green-light: #40916c;
    --green-pale: #d8f3dc;
    --gold: #c9a84c;
    --white: #ffffff;
    --off-white: #f8f9f4;
    --gray-light: #f0f2ed;
    --gray-mid: #9cac9a;
    --gray-dark: #3d4a3e;
    --text: #1c2b1d;
    --shadow-sm: 0 2px 8px rgba(26,71,49,0.08);
    --shadow-md: 0 4px 20px rgba(26,71,49,0.12);
    --shadow-lg: 0 8px 40px rgba(26,71,49,0.16);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--off-white);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* ─── HEADER ─── */
.header {
    background: var(--green-dark);
    color: var(--white);
    padding: 28px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(64,145,108,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.header p {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-pale);
    opacity: 0.8;
}

/* ─── NAVBAR ─── */
.navbar {
    background: var(--green-mid);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.navbar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 16px 0;
    margin: 0 18px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.navbar a:hover {
    color: var(--white);
    border-bottom-color: var(--gold);
}

.navbar a.profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white) !important;
    color: var(--green-dark) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-bottom: none !important;
    margin: 0;
    position: absolute;
    right: 40px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.navbar a.profile-icon:hover {
    background: var(--green-pale) !important;
    transform: scale(1.05);
}

/* ─── CONTAINER ─── */
.container {
    width: 92%;
    max-width: 1280px;
    margin: 40px auto;
}

/* ─── TITLE ─── */
.title {
    margin-bottom: 28px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--green-dark);
    position: relative;
}

.title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 10px auto 0;
}

/* ─── PRODUCTS GRID ─── */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* ─── PRODUCT CARD ─── */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(26,71,49,0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--gray-light);
    display: block;
}

.product-card h3 {
    margin: 16px 16px 6px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-dark);
}

.product-card p {
    margin: 0 16px;
    font-size: 0.83rem;
    color: var(--gray-mid);
    line-height: 1.5;
}

.price {
    font-weight: 600 !important;
    color: var(--green-mid) !important;
    font-size: 1.05rem !important;
    margin: 10px 16px 6px !important;
}

.stock {
    font-size: 0.78rem !important;
    color: var(--gray-mid) !important;
    margin: 0 16px 16px !important;
}

.product-card .btn {
    margin: 0 8px 16px;
    padding: 9px 14px;
    font-size: 0.82rem;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-block;
    background: var(--green-mid);
    color: var(--white);
    padding: 11px 22px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ─── TABLES ─── */
table {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: none !important;
}

th {
    padding: 14px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gray-light);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--off-white);
}

/* ─── FORMS ─── */
input, textarea, select {
    border: 1.5px solid #dde8de;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    outline: none;
    background: var(--white);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(64,145,108,0.1);
}

label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-dark);
    display: block;
    margin-bottom: 4px;
}

/* ─── PROFILE SECTION ─── */
.profile-section {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    max-width: 520px;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26,71,49,0.06);
}

.profile-section h3 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-pale);
    color: var(--green-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

/* ─── DASHBOARD CARDS ─── */
.product-card.dashboard-card {
    padding: 28px 20px;
}

/* ─── QUICK ACTIONS ─── */
.quick-actions {
    margin-top: 30px;
    text-align: center;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--green-light);
    border-radius: 3px;
}