body {
    font-family: 'PT Sans', Arial, sans-serif;
    background-color: #f2f6f3;
    color: #2b2b2b;
    margin: 0;
    padding: 0;
}

header {
    background-color: #1f6f54;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.logo {
    width: 70px;
    height: 70px;
    margin-right: 20px;
}

header .title-box h1 {
    margin: 0;
    font-size: 32px;
}

header .title-box .slogan {
    font-size: 16px;
    color: #d7efe3;
}

#main-nav {
    display: flex;
    justify-content: center;
    background-color: #14543e;
    flex-wrap: wrap;
}

#main-nav a {
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
}

#main-nav a:hover {
    background-color: #2e8b57;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

main section {
    margin-bottom: 25px;
}

main h2 {
    color: #1f6f54;
    border-bottom: 2px solid #cfe3d8;
    padding-bottom: 5px;
}

.button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #2e8b57;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.button:hover {
    background-color: #256e46;
}

img {
    max-width: 100%;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.product {
    display: block;
    width: 220px;
    border: 1px solid #cbcbcb;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
}

.product img {
    width: 100%;
    height: 150px;
}

.product .content {
    padding: 10px;
}

.product .content h3 {
    margin: 0 0 6px 0;
    color: #1f6f54;
    font-size: 17px;
}

.product .content p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #555555;
}

.price {
    color: #1f6f54;
    font-weight: bold;
}

.product-photo {
    max-width: 320px;
    border-radius: 10px;
}

address {
    font-style: normal;
    line-height: 1.6;
}

#page-footer {
    text-align: center;
    background-color: #14543e;
    color: #ffffff;
    padding: 15px;
    margin-top: 20px;
}

.flash {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.flash-success {
    background-color: #d7efe3;
    color: #14543e;
    border: 1px solid #2e8b57;
}

.flash-error {
    background-color: #fbe1e1;
    color: #7a1f1f;
    border: 1px solid #c94b4b;
}

.auth-form {
    max-width: 400px;
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: bold;
}

.auth-form input,
.auth-form textarea {
    padding: 8px;
    border: 1px solid #cbcbcb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
}

.admin-menu {
    list-style: none;
    padding: 0;
}

.admin-menu li {
    padding: 10px 0;
    border-bottom: 1px solid #cfe3d8;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #cfe3d8;
}

.admin-table form {
    display: inline;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: #c94b4b;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.like-button,
.favorite-button {
    padding: 10px 16px;
    border: 1px solid #cbcbcb;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
}

.like-button.active,
.favorite-button.active {
    border-color: #2e8b57;
    background-color: #d7efe3;
}

.poll-option {
    display: block;
    margin: 8px 0;
    font-weight: normal;
}

#poll-form .button {
    margin-top: 10px;
}

.poll-result-row {
    display: grid;
    grid-template-columns: 220px 1fr 45px;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.poll-result-own .poll-result-label {
    font-weight: bold;
    color: #1f6f54;
}

.poll-bar {
    background-color: #e3ede7;
    border-radius: 6px;
    height: 14px;
    overflow: hidden;
}

.poll-bar-fill {
    background-color: #2e8b57;
    height: 100%;
}

.poll-total {
    margin-top: 10px;
    color: #555555;
}

.inline-edit-view {
    position: relative;
}

.inline-edit-toggle {
    display: block;
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px dashed #2e8b57;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1f6f54;
    cursor: pointer;
    font-family: inherit;
}

.inline-edit-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cbcbcb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
}

.inline-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.inline-edit-cancel {
    background: none;
    border: 1px solid #cbcbcb;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: inherit;
}

.log-box {
    background-color: #14231b;
    color: #d7efe3;
    border-radius: 8px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.log-line {
    white-space: pre-wrap;
    word-break: break-all;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
