body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f3f3f3;
}

header {
    background-color: #232f3e;
    color: #fff;
    padding: 1rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-right: 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #131921;
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    margin-bottom: 20px;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.col-id { width: 5%; }
.col-name { width: 15%; }
.col-description { width: 25%; }
.col-price { width: 10%; }
.col-image { width: 15%; }
.col-tags { width: 15%; }
.col-actions { width: 15%; }

form {
    margin-bottom: 20px;
}

input[type="text"], input[type="number"], input[type="url"], textarea, select {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

input[type="submit"], button {
    background-color: #f0c14b;
    border: 1px solid #a88734;
    color: #111;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

input[type="submit"]:hover, button:hover {
    background-color: #f4d078;
}

.admin-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card h2 {
    font-size: 1.2em;
    margin: 10px 0;
}

.product-card p {
    color: #555;
    margin: 5px 0;
}

.product-card .price {
    font-weight: bold;
    color: #B12704;
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.wishlist-login-message {
    font-size: 0.8em;
    color: #888;
    margin-top: 10px;
}

.product-card button {
    position: relative;
    z-index: 1;
}

.product-card button:hover {
    z-index: 2;
}
.wishlist-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.wishlist-item:hover {
    background-color: #f9f9f9;
}

.wishlist-item a {
    text-decoration: none;
    color: #0066c0;
    font-weight: bold;
}

.wishlist-item a:hover {
    text-decoration: underline;
    color: #c45500;
}

.remove-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.remove-btn:hover {
    background-color: #ff3333;
}

.search-filter-form {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.search-filter-form input[type="text"],
.search-filter-form select {
    width: auto;
    margin-right: 10px;
}

.product-details {
    display: flex;
    gap: 30px;
    
}

.product-image {
    flex: 1;
    max-width: 50%;
}

.product-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.product-info {
    flex: 2;
}

.product-price {
    font-size: 1.5em;
    color: #B12704;
    margin: 15px 0;
}

#wishlistBtn {
    margin-top: 15px;
}

.form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-container h1 {
    text-align: center;
    color: #131921;
    margin-bottom: 20px;
}

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

.form-container label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-container input[type="text"],
.form-container input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form-container input[type="submit"] {
    background-color: #f0c14b;
    border: 1px solid #a88734;
    color: #111;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 3px;
}

.form-container input[type="submit"]:hover {
    background-color: #f4d078;
}

.form-container p {
    text-align: center;
    margin-top: 15px;
}

.form-container a {
    color: #0066c0;
    text-decoration: none;
}

.form-container a:hover {
    text-decoration: underline;
    color: #c45500;
}

.error-message {
    color: #c40000;
    margin-bottom: 15px;
    text-align: center;
}

/* New styles for the homepage */
.intro {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.featured-products {
    margin-bottom: 20px;
}

.joke {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.joke h2 {
    color: #131921;
    margin-bottom: 10px;
}

.joke p {
    font-style: italic;
    color: #555;
}

footer {
    background-color: #232f3e;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}