:root {
    --agri-dark: #1B5E20;
    --agri-primary: #34AD54;
    --agri-light: #E8F5E9;
    --agri-white: #FFFFFF;
    --agri-text: #2c3e50;
    --agri-bg: #f8fcf9;
}

body {
    background-color: var(--agri-bg);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--agri-dark);
    font-weight: 700;
}

.text-primary {
    color: var(--agri-primary) !important;
}

.bg-primary {
    background-color: var(--agri-primary) !important;
}

/* --- Hero Section --- */
.display-5 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* --- Category Header --- */
.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    margin-bottom: 1.5rem;
    border-left: 6px solid var(--agri-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--agri-dark);
}

.category-header i {
    font-size: 1.2em;
    opacity: 0.9;
}

/* --- Product Cards --- */
.product-item {
    background: var(--agri-white);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(52, 173, 84, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 !important; /* Resetting existing padding if any */
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(52, 173, 84, 0.15);
    border-color: var(--agri-primary);
}

.card-content {
    padding: 2rem 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content img {
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.product-item:hover .card-content img {
    transform: scale(1.05);
}

.product-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--agri-dark);
    line-height: 1.4;
}

/* Card Footer / Button Area */
.card-footer-custom {
    background: var(--agri-light);
    padding: 12px;
    text-align: center;
    border-top: 1px solid rgba(52, 173, 84, 0.1);
    transition: background 0.3s ease;
}

.product-item:hover .card-footer-custom {
    background: var(--agri-primary);
}

.btn-custom {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--agri-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.product-item:hover .btn-custom {
    color: white;
}

/* --- Grid & Spacing Enhancements --- */
.container.py-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--agri-primary);
    border-color: var(--agri-primary);
    box-shadow: 0 4px 6px rgba(52, 173, 84, 0.2);
}

.btn-primary:hover {
    background-color: var(--agri-dark);
    border-color: var(--agri-dark);
    box-shadow: 0 6px 12px rgba(27, 94, 32, 0.2);
}

.btn-outline-light:hover {
    color: var(--agri-dark);
    background-color: white;
}
