/* =========================================================
   re-Appear
   COMPLETE GLOBAL STYLESHEET
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #f7e7c8;
    color: #172436;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}


/* =========================================================
   GLOBAL CONTAINER
   ========================================================= */

.container {
    width: calc(100% - 40px);
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   GLOBAL HEADER
   ========================================================= */

.site-header {
    width: 100%;

    background: #172436;

    border-bottom: 1px solid #c99a3b;
}


/* =========================================================
   HEADER INNER
   ========================================================= */

.header-inner,
.site-header-inner {
    width: calc(100% - 40px);
    max-width: 1200px;

    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


/* =========================================================
   HEADER LEFT / BRAND
   ========================================================= */

.header-left,
.site-header-brand {
    display: flex;
    align-items: center;

    gap: 18px;

    min-width: 0;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo,
.site-logo {
    color: #ffffff;

    font-size: 27px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;
}

.logo:hover,
.site-logo:hover {
    opacity: 0.9;
}


/* =========================================================
   TAGLINE
   ========================================================= */

.header-tagline,
.site-tagline {
    color: #d7b65f;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.6px;

    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================================================
   HEADER ACCOUNT AREA
   ========================================================= */

.header-account,
.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-left: auto;

    flex-wrap: wrap;
}

.header-knowledge-links,
.kh-header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.header-knowledge-links .header-button,
.kh-header-nav .header-button {
    min-height: 46px;
    padding: 0 20px;
    border-color: rgba(227, 196, 119, 0.8);
    font-size: 14px;
    letter-spacing: 0.1px;
}


/* =========================================================
   USERNAME
   ========================================================= */

.header-username,
.site-user {
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    margin-right: 5px;

    white-space: nowrap;
}


/* =========================================================
   HEADER BUTTONS
   ========================================================= */

.header-button,
.site-header-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;

    background: transparent;

    color: #ffffff;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.2px;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.header-button:hover,
.site-header-button:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: #ffffff;
}


/* =========================================================
   PRIMARY HEADER BUTTON
   ========================================================= */

.header-button-primary,
.site-header-button-primary {
    background: #c99a3b;

    border-color: #c99a3b;

    color: #ffffff;
}

.header-button-primary:hover,
.site-header-button-primary:hover {
    background: #b88a31;

    border-color: #b88a31;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    min-height: 60vh;
}

main.container {
    width: calc(100% - 40px);
    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    width: 100%;

    margin: 0;

    padding:
        62px
        35px
        58px;

    background: #172436;

    color: #ffffff;

    text-align: center;
}

.hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;

    line-height: 1.12;
}

.hero p {
    margin: 20px 0 0;

    color: #ffffff;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.5;
}


/* =========================================================
   SEARCH SECTION
   ========================================================= */

.search-section {
    margin: 0 0 38px;
}


/* =========================================================
   SEARCH FORM
   ========================================================= */

.search-form {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        235px
        110px;

    align-items: center;

    gap: 10px;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #dfc780;
    border-top: 0;

    border-radius:
        0
        0
        15px
        15px;
}


/* =========================================================
   SEARCH INPUT
   ========================================================= */

.search-input {
    width: 100%;
    height: 48px;

    margin: 0;

    padding: 0 15px;

    border: 1px solid #d8ba68;
    border-radius: 10px;

    background: #ffffff;

    color: #172436;

    font-family: inherit;
    font-size: 14px;

    outline: none;
}

.search-input::placeholder {
    color: #8c847a;
}

.search-input:focus {
    border-color: #c99a3b;

    box-shadow:
        0 0 0 2px
        rgba(201, 154, 59, 0.14);
}


/* =========================================================
   CATEGORY SELECT
   ========================================================= */

.category-select {
    width: 100%;
    height: 48px;

    margin: 0;

    padding: 0 14px;

    border: 1px solid #d8ba68;
    border-radius: 10px;

    background: #ffffff;

    color: #172436;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;

    outline: none;
}

.category-select:focus {
    border-color: #c99a3b;

    box-shadow:
        0 0 0 2px
        rgba(201, 154, 59, 0.14);
}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.search-button {
    width: 100%;
    height: 48px;

    margin: 0;
    padding: 0 20px;

    border: 0;
    border-radius: 10px;

    background: #172436;

    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.search-button:hover {
    background: #22344d;
}


/* =========================================================
   RESULTS HEADER
   ========================================================= */

.results-header {
    width: 100%;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin: 0 0 18px;
}

.results-header h2 {
    margin: 0 0 4px;

    color: #172436;

    font-size: 28px;
    font-weight: 700;

    line-height: 1.2;
}

.result-info {
    color: #766d63;

    font-size: 12px;
}


/* =========================================================
   LISTING GRID
   ========================================================= */

.listing-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 20px;

    margin: 0;
    padding: 0;
}


/* =========================================================
   LISTING CARD
   ========================================================= */

.listing-card {
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e3d4b6;
    border-radius: 14px;

    box-shadow:
        0
        3px
        12px
        rgba(23, 36, 54, 0.05);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.listing-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0
        8px
        22px
        rgba(23, 36, 54, 0.10);
}


/* =========================================================
   LISTING LINK
   ========================================================= */

.listing-link {
    display: block;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   LISTING IMAGE WRAPPER
   ========================================================= */

.image-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #eee8dc;
}


/* =========================================================
   LISTING IMAGE
   ========================================================= */

.listing-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   NO IMAGE
   ========================================================= */

.no-image {
    width: 100%;
    height: 100%;

    min-height: 190px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    background:
        linear-gradient(
            135deg,
            #eee7d8,
            #f7f2e8
        );

    color: #a28b5d;
}

.no-image span {
    font-size: 28px;
}

.no-image small {
    color: #8f8373;

    font-size: 10px;
}


/* =========================================================
   LISTING CONTENT
   ========================================================= */

.listing-content {
    padding: 16px;
}


/* =========================================================
   LISTING CATEGORY
   ========================================================= */

.listing-category {
    margin-bottom: 6px;

    color: #a37824;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}


/* =========================================================
   LISTING TITLE
   ========================================================= */

.listing-title {
    margin: 0 0 11px;

    color: #172436;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.35;

    overflow-wrap: anywhere;
}


/* =========================================================
   LISTING PRICE
   ========================================================= */

.listing-price {
    margin-bottom: 8px;

    color: #172436;

    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   CONDITION
   ========================================================= */

.listing-condition {
    display: inline-flex;

    margin-bottom: 13px;

    padding:
        4px
        8px;

    border-radius: 5px;

    background: #f4ead2;

    color: #776334;

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   DELIVERY
   ========================================================= */

.listing-delivery {
    min-height: 22px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 12px;

    color: #5f584f;

    font-size: 10px;
}


/* =========================================================
   LISTING STATS
   ========================================================= */

.listing-stats {
    padding-top: 10px;

    display: flex;
    align-items: center;

    gap: 14px;

    border-top: 1px solid #eee5d5;

    color: #80776d;

    font-size: 10px;
}


/* =========================================================
   GENERAL PAGE
   ========================================================= */

.page,
.new-listing-page,
.my-listings-page,
.edit-page {
    width: calc(100% - 40px);

    max-width: 1200px;

    margin:
        35px
        auto
        70px;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-title {
    margin-bottom: 24px;
}

.page-title h1 {
    margin: 0 0 7px;

    color: #172436;

    font-size: 30px;

    line-height: 1.2;
}

.page-title p {
    margin: 0;

    color: #81776c;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   GENERAL FORMS
   ========================================================= */

label {
    display: block;

    margin-bottom: 7px;

    color: #595147;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.4px;

    text-transform: uppercase;
}

input,
textarea,
select,
button {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

input,
textarea,
select {
    border: 1px solid #d9c89f;
    border-radius: 9px;

    background: #fffdfa;

    color: #172436;
}

input,
select {
    min-height: 46px;

    padding: 0 13px;
}

textarea {
    min-height: 160px;

    padding: 13px;

    resize: vertical;

    line-height: 1.6;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;

    border-color: #c99a3b;

    box-shadow:
        0
        0
        0
        2px
        rgba(201, 154, 59, 0.12);
}


/* =========================================================
   FORM GRID
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;
}

.field {
    margin-bottom: 4px;
}

.field-full {
    grid-column:
        1
        /
        -1;
}


/* =========================================================
   FORM CARDS
   ========================================================= */

.form-card,
.filter-card,
.images-card,
.card {
    background: #ffffff;

    border: 1px solid #e3d4b6;
    border-radius: 14px;

    box-shadow:
        0
        4px
        15px
        rgba(23, 36, 54, 0.04);
}

.form-card {
    padding: 28px;
}

.filter-card {
    padding: 17px;
}

.images-card {
    padding: 24px;
}


/* =========================================================
   PRICE ROW
   ========================================================= */

.price-row {
    display: grid;

    grid-template-columns:
        2fr
        1fr;

    gap: 10px;
}


/* =========================================================
   DELIVERY OPTIONS
   ========================================================= */

.delivery-options {
    display: flex;

    gap: 14px;

    flex-wrap: wrap;
}

.check-option {
    flex: 1;

    min-width: 190px;

    min-height: 55px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    border: 1px solid #ddd0ae;
    border-radius: 9px;

    background: #fffdfa;

    cursor: pointer;
}

.check-option input {
    width: 18px;
    height: 18px;

    margin: 0;
}

.check-option span {
    color: #433d36;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   GENERAL BUTTONS
   ========================================================= */

.button,
.btn,
.new-listing-button,
.submit-button,
.save-button,
.edit-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 19px;

    border: 0;
    border-radius: 9px;

    background: #172436;

    color: #ffffff;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.button:hover,
.btn:hover,
.new-listing-button:hover,
.submit-button:hover,
.save-button:hover,
.edit-button:hover {
    opacity: 0.92;
}


/* =========================================================
   SECONDARY BUTTONS
   ========================================================= */

.cancel-button,
.view-button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border: 1px solid #d8cbae;
    border-radius: 9px;

    background: #ffffff;

    color: #5b534a;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   BACK LINK
   ========================================================= */

.back-link {
    display: inline-block;

    margin-bottom: 20px;

    color: #625a51;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;
}

.back-link:hover {
    text-decoration: underline;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        6px
        10px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}

.status-active {
    background: #e2f4e7;

    color: #287440;
}

.status-pending {
    background: #fff0c7;

    color: #996b06;
}

.status-inactive {
    background: #eaeaea;

    color: #666666;
}

.status-rejected {
    background: #fde4e1;

    color: #a6463d;
}

.status-default {
    background: #ededed;

    color: #666666;
}


/* =========================================================
   STATUS TABS
   ========================================================= */

.status-tabs {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;
}

.status-tab {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding:
        8px
        13px;

    border: 1px solid #ddd0b4;
    border-radius: 20px;

    background: #ffffff;

    color: #625a50;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;
}

.status-tab.active {
    background: #c99a3b;

    border-color: #c99a3b;

    color: #ffffff;
}

.tab-count {
    min-width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0
        5px;

    border-radius: 10px;

    background: rgba(0, 0, 0, 0.08);

    font-size: 9px;
}

.status-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.20);
}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.success-box {
    margin-bottom: 22px;

    padding:
        16px
        18px;

    border: 1px solid #b7dcc1;
    border-radius: 10px;

    background: #edf9f0;

    color: #347249;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.error-box,
.error-box-new,
.error-box-my {
    margin-bottom: 22px;

    padding:
        16px
        18px;

    border: 1px solid #e1b9b3;
    border-radius: 10px;

    background: #fff1ef;

    color: #914b44;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   INFO / APPROVAL
   ========================================================= */

.info-box,
.approval-notice,
.review-notice,
.image-note {
    padding:
        14px
        16px;

    border-left: 4px solid #c99a3b;
    border-radius: 6px;

    background: #fbf5e7;

    color: #665a48;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   MY LISTINGS
   ========================================================= */

.page-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;

    margin-bottom: 24px;
}

.listing-list {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.my-listing-card {
    display: grid;

    grid-template-columns:
        130px
        minmax(0, 1fr)
        auto;

    gap: 20px;

    align-items: center;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e3d4b6;
    border-radius: 14px;
}

.my-listing-card .listing-image {
    width: 130px;
    height: 105px;

    object-fit: cover;

    border-radius: 10px;
}

.my-listing-card .no-image {
    width: 130px;
    height: 105px;

    min-height: 0;

    border-radius: 10px;
}

.listing-actions {
    min-width: 120px;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.action-button {
    min-height: 37px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0
        13px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 9px;
    font-weight: 700;
}

.disabled-button {
    border: 1px solid #ddd7cb;

    background: #f0ede7;

    color: #a29a8f;

    cursor: default;
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-box,
.empty-box-my {
    width: 100%;

    padding:
        55px
        25px;

    border: 1px solid #e3d4b6;
    border-radius: 14px;

    background: #ffffff;

    text-align: center;
}

.empty-box h2,
.empty-box h3,
.empty-box-my h2 {
    margin: 0 0 8px;

    color: #172436;

    font-size: 20px;
}

.empty-box p,
.empty-box-my p {
    margin: 0 0 20px;

    color: #82786d;

    font-size: 12px;
}


/* =========================================================
   IMAGE GRID EDIT LISTING
   ========================================================= */

.image-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;
}

.existing-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border: 1px solid #e2d7c2;
    border-radius: 10px;
}

.no-images {
    color: #8a8075;

    font-size: 12px;
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid #eee4d1;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 35px;
    margin-bottom: 32px;
}

.pagination-button,
.page-number,
.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0
        10px;

    border: 1px solid #d9c9a7;
    border-radius: 8px;

    background: #ffffff;

    color: #514a42;

    text-decoration: none;

    font-size: 10px;
}

.page-numbers {
    display: flex;
    align-items: center;

    gap: 6px;
}

.page-number.active,
.pagination .current {
    background: #172436;

    border-color: #172436;

    color: #ffffff;
}

.dots {
    border: 0 !important;

    background: transparent !important;
}

.category-shortcuts {
    width: 100%;
    margin: 0 0 18px;
    padding-top: 8px;
}

.category-shortcuts h2 {
    margin: 0 0 18px;
    color: #172436;
    font-size: 22px;
    text-align: center;
}

.category-shortcut-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-shortcut-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #c99a3b;
    border-radius: 999px;
    background: #ffffff;
    color: #172436;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.category-shortcut-button:hover {
    background: #172436;
    color: #ffffff;
}


/* =========================================================
   GLOBAL FOOTER
   ========================================================= */

.site-footer,
.footer {
    width: 100%;

    margin-top: 70px;

    background: #172436;

    color: #ffffff;
}


/* =========================================================
   NEW FOOTER
   ========================================================= */

.site-footer-inner {
    width: calc(100% - 40px);
    max-width: 1200px;

    margin: 0 auto;

    padding:
        32px
        0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;
}

.site-footer-logo {
    color: #ffffff;

    font-size: 20px;
    font-weight: 700;
}

.site-footer-text {
    margin: 7px 0 0;

    color: #bec4ca;

    font-size: 11px;
}

.site-footer-links {
    display: flex;
    align-items: center;

    gap: 18px;

    flex-wrap: wrap;
}

.site-footer-links a {
    color: #e3c477;

    text-decoration: none;

    font-size: 11px;
}

.site-footer-links a:hover {
    text-decoration: underline;
}

.site-footer-bottom {
    padding:
        13px
        20px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.10);

    color: #909aa5;

    text-align: center;

    font-size: 10px;
}


/* =========================================================
   OLD FOOTER
   CURRENT INDEX.PHP SUPPORT
   ========================================================= */

.footer {
    padding:
        28px
        20px;

    text-align: center;
}

.footer .container {
    width: 100%;
}

.footer strong {
    display: block;

    color: #ffffff;

    font-size: 18px;
}

.footer p {
    margin: 6px 0 0;

    color: #bdc2c8;

    font-size: 11px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .listing-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .search-form {
        grid-template-columns:
            minmax(0, 1fr)
            210px
            105px;
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

    .header-inner,
    .site-header-inner {
        width: calc(100% - 28px);

        padding:
            14px
            0;

        flex-direction: column;
        align-items: flex-start;

        gap: 12px;
    }

    .header-account,
    .site-header-actions {
        width: 100%;

        justify-content: flex-start;

        margin-left: 0;
    }

    .header-knowledge-links {
        margin-left: 0;
        flex-wrap: wrap;
    }

    .header-username,
    .site-user {
        width: 100%;
    }

    main.container {
        width: calc(100% - 28px);
    }

    .search-form {
        grid-template-columns:
            1fr
            200px;
    }

    .search-button {
        grid-column:
            1
            /
            -1;
    }

    .listing-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .image-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .my-listing-card {
        grid-template-columns:
            100px
            minmax(0, 1fr);
    }

    .my-listing-card .listing-image,
    .my-listing-card .no-image {
        width: 100px;
        height: 100px;
    }

    .listing-actions {
        grid-column:
            1
            /
            -1;

        display: grid;

        grid-template-columns:
            1fr
            1fr;

        min-width: 0;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .container,
    main.container,
    .page,
    .new-listing-page,
    .my-listings-page,
    .edit-page {
        width: calc(100% - 20px);
    }

    .header-inner,
    .site-header-inner {
        width: calc(100% - 20px);
    }

    .header-tagline,
    .site-tagline {
        display: none;
    }

    .logo,
    .site-logo {
        font-size: 23px;
    }

    .header-account,
    .site-header-actions {
        gap: 7px;
    }

    .header-knowledge-links {
        gap: 7px;
        width: 100%;
    }

    .header-knowledge-links .header-button {
        min-height: 44px;
        flex: 1 1 130px;
        padding: 0 16px;
        font-size: 13px;
    }

    .category-shortcuts h2 {
        font-size: 20px;
    }

    .category-shortcut-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-shortcut-button {
        width: 100%;
        padding: 0 10px;
        text-align: center;
    }

    .header-button,
    .site-header-button {
        min-height: 37px;

        padding:
            0
            11px;

        font-size: 9px;
    }

    .hero {
        padding:
            38px
            18px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero p {
        margin-top: 14px;

        font-size: 13px;
    }

    .search-section {
        margin-bottom: 30px;
    }

    .search-form {
        display: flex;

        flex-direction: column;
        align-items: stretch;

        gap: 9px;

        padding: 12px;
    }

    .search-input,
    .category-select,
    .search-button {
        width: 100%;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .image-wrapper {
        aspect-ratio: 16 / 10;
    }

    .no-image {
        min-height: 200px;
    }

    .page-title h1 {
        font-size: 25px;
    }

    .price-row {
        grid-template-columns: 1fr;
    }

    .form-card,
    .images-card {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .cancel-button,
    .form-actions .submit-button,
    .form-actions .save-button {
        width: 100%;
    }

    .page-top {
        flex-direction: column;

        align-items: flex-start;
    }

    .my-listing-card {
        grid-template-columns: 1fr;
    }

    .my-listing-card .listing-image,
    .my-listing-card .no-image {
        width: 100%;
        height: 210px;
    }

    .listing-actions {
        grid-template-columns:
            1fr
            1fr;
    }

    .site-footer-inner {
        width: calc(100% - 24px);

        flex-direction: column;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .header-button,
    .site-header-button {
        padding:
            0
            8px;

        font-size: 8px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .listing-content {
        padding: 14px;
    }

}
/* Consistent public navigation on marketplace, listing and account pages. */
.site-header .header-inner {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 16px;
}

.site-header .header-button {
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
    letter-spacing: 0.1px;
}

.site-header .header-knowledge-links,
.site-header .kh-header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.site-header .header-auth-buttons {
    flex-wrap: wrap;
}

@media (max-width: 800px) {
    .site-header .kh-header-nav {
        width: 100%;
        margin-left: 0;
    }

    .site-header .header-button {
        min-height: 44px;
        padding: 0 16px;
        font-size: 13px;
    }

    .site-header .header-knowledge-links .header-button,
    .site-header .kh-header-nav .header-button {
        flex: 1 1 130px;
    }
}

/* Privacy-friendly Analytics consent banner. */
.analytics-consent{position:fixed;z-index:10000;left:16px;right:16px;bottom:16px;max-width:680px;margin:auto;padding:16px 18px;background:#172436;color:#fff;border:1px solid #c49b47;border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.28);font-size:14px;line-height:1.45}.analytics-consent p{margin:0 0 12px}.analytics-consent form{display:flex;justify-content:flex-end;gap:10px}.analytics-consent button{padding:9px 14px;border-radius:7px;font:inherit;font-weight:700;cursor:pointer}.analytics-consent-decline{background:transparent;color:#fff;border:1px solid #c9cdd3}.analytics-consent-accept{background:#c49b47;color:#172436;border:1px solid #c49b47}
