* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #111;
    color: #eee;
    padding-bottom: 55px;
}

.site-header {
    text-align: center;
    padding: 32px 16px 26px;
    background: linear-gradient(180deg, #1b1b1b, #0d0d0d);
    border-bottom: 1px solid #2b2b2b;
}

.brand-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.logo-mark {
    color: #c28b3c;
    font-size: 28px;
    margin-bottom: 4px;
}

.site-header h1 {
    margin: 0;
    font-size: 42px;
    letter-spacing: .5px;
    font-weight: 800;
}

.tagline {
    margin-top: 8px;
    color: #c28b3c;
    font-size: 18px;
}

.page-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 18px 40px;
}

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.filter-btn {
    background: #1e1e1e;
    color: #eee;
    border: 1px solid #555;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #c28b3c;
    color: #111;
    border-color: #c28b3c;
}

.search-wrap {
    max-width: 520px;
    margin: 0 auto 26px;
}

.search-input {
    width: 100%;
    background: #1e1e1e;
    color: #eee;
    border: 1px solid #444;
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #c28b3c;
    box-shadow: 0 0 0 2px rgba(194,139,60,.18);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.card-link {
    color: inherit;
    text-decoration: none;
}

.card {
    position: relative;
    overflow: hidden;
    background: #1d1d1d;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
    transition: transform .15s ease, border-color .15s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #c28b3c;
}

.image-wrap {
    position: relative;
    background: #f3f0ea;
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.card-body {
    padding: 15px 16px 18px;
}

.title {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    min-height: 52px;
}

.price {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.price.sold-price {
    color: #c28b3c;
    letter-spacing: 1px;
}

.sold-watermark {
    position: absolute;
    top: 18%;
    left: -10%;
    width: 120%;
    text-align: center;
    transform: rotate(-15deg);
    color: rgba(194, 139, 60, .82);
    border: 2px solid rgba(194, 139, 60, .62);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 5px 0;
    text-transform: uppercase;
    pointer-events: none;
    background: rgba(20,20,20,.06);
    z-index: 5;
}

.empty-message,
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #aaa;
    padding: 40px;
}

/* Detail page */

.detail-page {
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #c28b3c;
    text-decoration: none;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 26px;
    align-items: start;
}

.detail-gallery,
.detail-info {
    background: #1d1d1d;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
    overflow: hidden;
}

.detail-main-image-wrap {
    position: relative;
    background: #f3f0ea;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.detail-main-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    background: #151515;
    border-top: 1px solid #2e2e2e;
}

.thumb-btn {
    border: 2px solid transparent;
    background: #f3f0ea;
    border-radius: 8px;
    padding: 0;
    width: 92px;
    height: 72px;
    flex: 0 0 auto;
    cursor: pointer;
    overflow: hidden;
}

.thumb-btn.active {
    border-color: #c28b3c;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.detail-info {
    padding: 24px;
}

.detail-title {
    font-size: 30px;
    line-height: 1.15;
    margin: 0 0 14px;
}

.detail-price {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    margin: 0 0 18px;
}

.detail-price.sold-price {
    color: #c28b3c;
    letter-spacing: 1px;
}

.detail-status {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 12px;
    border: 1px solid #c28b3c;
    color: #c28b3c;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.detail-meta {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 18px;
}

.detail-description {
    color: #ddd;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-top: 18px;
}

.contact-box {
    margin-top: 24px;
    padding: 16px;
    background: #121212;
    border: 1px solid #333;
    border-radius: 12px;
}

.contact-box strong {
    color: #c28b3c;
}

.instagram-button {
    display: inline-block;
    margin-top: 14px;
    background: #c28b3c;
    color: #111;
    text-decoration: none;
    font-weight: 900;
    border-radius: 999px;
    padding: 11px 18px;
}

.instagram-button:hover {
    filter: brightness(1.08);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: zoom-out;
    padding: 18px;
}

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-width: 96vw;
    max-height: 94vh;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 42px;
    line-height: 1;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 100000;
}

.lightbox-close:hover {
    color: #c28b3c;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20,20,20,.65);
    border: 1px solid rgba(194,139,60,.7);
    color: #c28b3c;
    width: 52px;
    height: 72px;
    border-radius: 10px;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    z-index: 100000;
}

.lightbox-arrow:hover {
    background: rgba(194,139,60,.9);
    color: #111;
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.sticky-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #0b0b0b;
    border-top: 1px solid #333;
    color: #ddd;
    text-align: center;
    padding: 13px 12px;
    font-size: 14px;
    z-index: 999;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-main-image-wrap {
        height: 430px;
    }
}

@media (max-width: 700px) {
    .site-header h1 {
        font-size: 34px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .image-wrap {
        height: 260px;
    }

    .sold-watermark {
        top: 18%;
        font-size: 16px;
    }

    .detail-main-image-wrap {
        height: 340px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-price {
        font-size: 30px;
    }

    .lightbox {
        padding: 8px;
    }

    .lightbox-close {
        top: 10px;
        right: 14px;
        font-size: 36px;
    }

    .lightbox-arrow {
        width: 44px;
        height: 60px;
        font-size: 34px;
        background: rgba(20,20,20,.45);
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}