* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 96px;
}

body {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    color: #2e2e2e;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, p, ul, dl, dd {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

#navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #ffffff;
    border-bottom: 1px solid #b8b8b8;
}

#navbar .wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    font-size: 15px;
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
}

#content {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 56px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
}

.lead {
    font-size: 16px;
    color: #737373;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-solid {
    background-color: #2e2e2e;
    color: #ffffff;
}

.btn-solid:hover {
    background-color: #000000;
    border-color: #000000;
}

.btn-outline {
    background-color: transparent;
    color: #2e2e2e;
}

.btn-outline:hover {
    background-color: #2e2e2e;
    color: #ffffff;
}

.ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dbdbdb;
    border: 1px solid #b8b8b8;
    color: #737373;
    font-size: 14px;
    text-align: center;
    object-fit: cover;
}

img.ph {
    display: block;
    object-fit: cover;
}

.hero {
    height: 380px;
    background-color: #dbdbdb;
    background-image: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)), url("../Images/background.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 24px;
    text-align: center;
}

.hero-label {
    font-size: 14px;
    color: #737373;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: #737373;
}

.card-row {
    display: flex;
    gap: 32px;
}

.category-row {
    gap: 24px;
}

.card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.card-img {
    display: block;
    width: 100%;
    text-decoration: none;
}

.card .ph {
    width: 100%;
    height: 240px;
}

.category-row .card .ph {
    height: 160px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
}

.card h3 a {
    text-decoration: none;
}

.card .price {
    font-size: 16px;
    color: #737373;
}

.banner {
    background-color: #f2f2f2;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.banner h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.banner p {
    font-size: 16px;
    color: #737373;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.find::after {
    content: "";
    display: block;
    clear: both;
}

.find .ph {
    float: left;
    width: 320px;
    height: 220px;
    margin-right: 24px;
}

.find h2 {
    font-size: 22px;
    font-weight: 600;
}

.find p {
    font-size: 16px;
    color: #737373;
    margin-top: 8px;
}

.find .price {
    font-size: 18px;
    font-weight: 600;
    color: #2e2e2e;
}

.about-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.about-row .ph {
    flex-shrink: 0;
    width: 480px;
    height: 320px;
}

.about-text h2 {
    font-size: 22px;
    font-weight: 600;
}

.about-text p {
    font-size: 16px;
    margin-top: 16px;
}

.hours {
    width: 560px;
    max-width: 100%;
    border-collapse: collapse;
}

.hours th,
.hours td {
    width: 50%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #b8b8b8;
    font-size: 15px;
    text-align: left;
}

.hours th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.hours td {
    font-weight: 400;
}

.donate-form {
    width: 642px;
    max-width: 100%;
    padding: 32px;
    border: 1px solid #b8b8b8;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    background-color: #ffffff;
    color: #2e2e2e;
    font-family: inherit;
    font-size: 14px;
}

.field textarea {
    height: 120px;
    padding: 12px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #737373;
}

.form-note {
    margin-top: 16px;
    font-size: 12px;
    color: #737373;
}

.jump {
    background-color: #f2f2f2;
    padding: 20px 24px;
    font-size: 15px;
}

.jump p {
    font-weight: 600;
}

.jump ul {
    list-style: none;
}

.jump li {
    margin-top: 8px;
}

.qa h2 {
    font-size: 20px;
    font-weight: 600;
}

.qa p {
    margin-top: 8px;
    font-size: 16px;
    color: #737373;
}

.top-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #737373;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.map {
    flex: 0 1 640px;
    min-width: 0;
}

.map-link {
    display: block;
    text-decoration: none;
}

.map-link .ph {
    width: 100%;
    height: auto;
}

.contact-info dt {
    font-size: 15px;
    font-weight: 600;
}

.contact-info dd {
    margin: 4px 0 20px 0;
    font-size: 16px;
    color: #737373;
}

.contact-info dd:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: #2e2e2e;
}

.sep {
    margin: 0 8px;
}

#footer {
    background-color: #2e2e2e;
    color: #ffffff;
    font-size: 14px;
}

#footer .wrap {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

#footer a {
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.card-grid .status-msg {
    grid-column: 1 / -1;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.status-msg {
    font-size: 16px;
    color: #737373;
}

.find h2 a {
    text-decoration: none;
}

.find h2 a:hover {
    text-decoration: underline;
}

.back-link {
    align-self: flex-start;
    font-size: 14px;
    color: #737373;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.item-info {
    min-width: 0;
}

.item-price {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 600;
}

.item-meta {
    margin-top: 8px;
    font-size: 15px;
    color: #737373;
}

.item-desc {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
}

.tag {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 8px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    background-color: #f2f2f2;
    color: #2e2e2e;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
}

.tag-live {
    background-color: #ffffff;
}

.alert {
    margin-bottom: 16px;
    padding: 16px 20px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.4;
}

.alert ul {
    margin: 8px 0 0 20px;
}

.alert-success {
    background-color: #eef6ee;
    border-color: #9cc59c;
    color: #24502a;
}

.alert-error {
    background-color: #fbeeee;
    border-color: #dba3a3;
    color: #8a2626;
}

.field-error {
    margin-top: 6px;
    font-size: 13px;
    color: #a12b2b;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #a12b2b;
}

.field input[type="file"] {
    height: auto;
    padding: 10px 12px;
}

.field-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-check input {
    display: inline-block;
    width: auto;
    height: auto;
    padding: 0;
}

.field-check label {
    margin: 0;
    font-weight: 400;
}

.form-photo {
    width: 240px;
    height: 160px;
    margin-bottom: 8px;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-danger {
    background-color: transparent;
    border-color: #a12b2b;
    color: #a12b2b;
}

.btn-danger:hover {
    background-color: #a12b2b;
    color: #ffffff;
}

.admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.select-sm {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 13px;
}

.admin-nav {
    font-size: 15px;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border: 1px solid #b8b8b8;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    white-space: nowrap;
}

.admin-table .is-sold td {
    color: #737373;
}

.thumb {
    display: block;
    width: 64px;
    height: 44px;
    object-fit: cover;
    border: 1px solid #b8b8b8;
}

.muted {
    color: #737373;
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 150px;
    }

    .wrap {
        padding: 0 20px;
    }

    #navbar .wrap {
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .card-row,
    .about-row,
    .contact-row,
    .banner,
    #footer .wrap {
        flex-direction: column;
        align-items: stretch;
    }

    #footer .wrap {
        height: auto;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .about-row .ph,
    .find .ph {
        width: 100%;
    }

    .map {
        flex-basis: auto;
    }

    .find .ph {
        float: none;
        margin: 0 0 16px 0;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}
