/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation Bar */
header {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar-brand a {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

.nav-links,
.nav-profile {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.nav-links a,
.nav-profile a {
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover,
.nav-profile a:hover {
    background-color: #8c5c3b; /* Darker coffee brown */
}

.nav-profile .btn-logout {
    background-color: #d9534f; /* Red for logout */
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-profile .btn-logout:hover {
    background-color: #c9302c; /* Darker red */
}

.nav-profile .btn-login {
    background-color: #5cb85c; /* Green for login */
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-profile .btn-login:hover {
    background-color: #4cae4c; /* Darker green */
}

/* Footer */
footer {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f5e6d9; /* Light coffee shade */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 0;
    background-image: url('https://d1stqroybebyyh.cloudfront.net/coffee_pouring.jpg');
    background-size: cover;
    background-position: center;
    height: 300px; /* Set a fixed height for the image */
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
}

.hero-content {
    text-align: center; /* Center-align the text */
    color: #020202; /* Ensure the text color matches the hero section */
    padding: 0; /* Remove extra padding */
}

.hero h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero-buttons a {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.hero-buttons .btn-primary {
    background-color: #6f4e37; /* Coffee brown */
}

.hero-buttons .btn-secondary {
    background-color: #c0a080; /* Cream */
}

/* Features Section */
.features {
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.feature h3 {
    font-family: 'Pacifico', cursive;
    margin-bottom: 10px;
}

.feature p {
    font-size: 1em;
    color: #555;
}

/* Signup Form Styles */
.signup-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.signup-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.signup-btn {
    padding: 10px 20px;
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup-btn:hover {
    background-color: #8c5c3b; /* Darker brown */
}

.user-info {
    text-align: center;
    padding: 1px 20px;
    color: #D2B48C;
    text-shadow: 1px 1px 2px #000;
}

/* Vendor Products Page Styles */
.vendor-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vendor-products-container h1 {
    text-align: center;
    color: #6f4e37; /* Coffee brown */
    margin-bottom: 20px;
}

/* Compact Table Styling */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.product-table th,
.product-table td {
    border: 1px solid #ddd;
    padding: 2px 3px; /* Reduce padding for compactness */
    text-align: center;
    vertical-align: middle;
}

.product-table th {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    font-weight: bold;
}

.product-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.product-table tr:hover {
    background-color: #f5e6d9; /* Light coffee shade */
}

/* Compact Input Fields */
.inline-form {
    display: inline-block;
    margin: 0;
}

.compact-input {
    width: 200px; /* Adjust width for compactness */
    padding: 5px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.compact-textarea {
    width: 250px; /* Adjust width for compactness */
    height: 30px; /* Reduce height */
    padding: 5px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    resize: none; /* Disable resizing */
}

/* Compact Buttons */
.btn-compact {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    margin: 0 2px;
}

.btn-primary {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #8c5c3b; /* Darker brown */
}

.btn-danger {
    background-color: #d9534f; /* Red for delete */
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #c9302c; /* Darker red */
}

form .form-group {
    margin-bottom: 15px;
}

form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #6f4e37; /* Coffee brown */
}

form .form-group input,
form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

form .btn-success {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form .btn-success:hover {
    background-color: #8c5c3b; /* Darker brown */
}

/* Vendor Products Page Layout */
.vendor-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* Align items to the top */
}

.add-product-rail {
    flex: 0.7; /* Left rail takes up 0.8 part of the space */
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-product-rail h2 {
    color: #6f4e37; /* Coffee brown */
    margin-bottom: 20px;
}

.add-product-rail .form-group {
    margin-bottom: 15px;
}

.add-product-rail .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #6f4e37; /* Coffee brown */
}

.add-product-rail .form-group input,
.add-product-rail .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.add-product-rail .btn-success {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-product-rail .btn-success:hover {
    background-color: #8c5c3b; /* Darker brown */
}

.product-list {
    flex: 3.3; /* Right rail takes up 3 parts of the space */
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.product-table th,
.product-table td {
    border: 1px solid #ddd;
    padding: 2px 5px;
    text-align: center;
}

.product-table th {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    font-weight: bold;
}

.product-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.product-table tr:hover {
    background-color: #f5e6d9; /* Light coffee shade */
}

.product-table td button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.product-table td .btn-primary {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    transition: background-color 0.3s ease;
}

.product-table td .btn-primary:hover {
    background-color: #8c5c3b; /* Darker brown */
}

.product-table td .btn-danger {
    background-color: #d9534f; /* Red for delete */
    color: #fff;
    transition: background-color 0.3s ease;
}

.product-table td .btn-danger:hover {
    background-color: #c9302c; /* Darker red */
}

/* Explore Coffee Page */
.explore-coffee-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.explore-coffee-container h1 {
    text-align: center;
    color: #6f4e37; /* Coffee brown */
    margin-bottom: 30px;
    font-family: 'Pacifico', cursive;
}

.vendor-section {
    margin-bottom: 40px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.vendor-header {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.vendor-header h2 {
    color: #6f4e37; /* Coffee brown */
    margin-left: 15px;
    font-size: 1.5rem;
}

.vendor-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #6f4e37; /* Coffee brown */
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item .product-details {
    max-width: 70%;
}

.product-item .add-to-cart-form {
    margin: 0;
}

.product-item .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
}

.product-item .btn-primary {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.product-item .btn-primary:hover {
    background-color: #8c5c3b; /* Darker brown */
}

/* Profile Page */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.profile-picture-section {
    margin-bottom: 30px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #6f4e37; /* Coffee brown */
    margin-bottom: 15px;
}

.profile-details {
    text-align: left;
    margin-top: 20px;
}

.profile-details p {
    font-size: 1.2em;
    color: #333;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background-color: #6f4e37; /* Coffee brown */
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #8c5c3b; /* Darker coffee brown */
}

.btn-danger {
    background-color: #d9534f; /* Red for delete */
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #c9302c; /* Darker red */
}