:root {
    --primary-color: #2c6e49;
    --secondary-color: #4c956c;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --text-color: #333;
    --light-text-color: #666;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    height: fit-content;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background-color: var(--card-background);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.filter-bar .form-control,
.filter-bar .form-select {
    border-radius: 5px;
    border-color: var(--border-color);
}

.product-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 15px;
}

.profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.profile-picture {
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--primary-color);
}

.farmer-name {
    font-weight: 600;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.product-description {
    color: var(--light-text-color);
    margin: 10px 0;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-number {
    color: var(--light-text-color);
}

.chat-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.chat-btn:hover {
    background-color: var(--secondary-color);
}

.comments-section {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.comments-section h5 {
    margin-bottom: 10px;
}

.comment {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.comment-form {
    display: flex;
    margin-top: 10px;
}

.comment-form textarea {
    flex-grow: 1;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 8px;
    resize: vertical;
}

.comment-form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
}

.sidebar-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.trending-product {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.trending-product-image {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 10px;
}

.trending-product-info .product-name {
    font-weight: 600;
}

.trending-product-info .product-price {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    .sidebar {
        order: -1;
    }
}
