#staticBanner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

#staticBanner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
}

.bannerOverlay {
    position: absolute;
    top: 4px;
    left: 20px;
    text-align: center;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.bannerOverlay h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.bannerOverlay p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.bannerButton {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
}

.bannerButton:hover {
    background: #0056b3;
}

#listings {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    text-align: left;
    margin: 18px 0 10px;
    font-size: 1.25rem;
    color: #111;
}

#shopByDiscipline {
    margin-top: 24px;
    text-align: center;
}

#shopByDiscipline .disciplineGrid {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 8px auto 0;
    flex-wrap: nowrap;
}

#shopByDiscipline .disciplineCard {
    width: 96px;
    padding: 0;
    text-decoration: none;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.15s ease;
}

#shopByDiscipline .disciplineCard:hover {
    transform: translateY(-2px);
}

#shopByDiscipline .disciplineThumb {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
    flex: 0 0 auto;
}

#shopByDiscipline .disciplineThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#shopByDiscipline .disciplineName {
    margin-top: 6px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
}

@media (max-width: 900px) {
    #shopByDiscipline .disciplineGrid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 12px;
        justify-content: center;
    }
}

#latestListings {
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.listingsGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.listingCard {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 175px;
    height: 210px;
}

.preview-image {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: 4px;
}

.listingCard h4 {
    font-size: 16px;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
    max-height: 2.4em;
}

.listingCard p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.listingCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.listingCard span {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

#recentlySold {
    margin-top: 20px;
}

.soldWrap {
    position: relative;
    padding: 0 8px;
    overflow: visible;
}

.soldWrap::before,
.soldWrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    z-index: 1;
}

.soldWrap::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.soldWrap::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.soldCarousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 175px;
    gap: 10px;
    overflow-x: auto;
    padding: 0 22px 6px;
    scroll-snap-type: x proximity;
    justify-content: start;
}

.soldCard {
    display: block;
    text-decoration: none;
    color: #111;
    scroll-snap-align: start;
}

.soldThumbWrap {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 125px;
}

.soldThumbWrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.soldBadge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(208, 2, 27, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.soldTitle {
    margin-top: 6px;
    font-size: 0.95rem;
    line-height: 1.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4em;
}

.soldArrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 0;
    line-height: 0;
}

.soldArrow.prev {
    left: -14px;
}

.soldArrow.next {
    right: -14px;
}

.soldArrow:hover {
    background: #f8fafc;
}

.soldArrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.soldArrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 3px 3px 0;
    transform: translate(-50%, -50%) rotate(135deg);
    margin-left: 2.5px;
}

.soldArrow.next::before {
    transform: translate(-50%, -50%) rotate(-45deg);
    margin-left: -2.5px;
}

.soldArrow:focus {
    outline: none;
}

.soldArrow:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .soldWrap::before,
    .soldWrap::after {
        width: 20px;
    }
}

#sellCta {
    margin: 26px 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #f7faff;
    padding: 18px;
    overflow: hidden; 
}

.sellCtaInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sellCtaInner p {
    margin: 0;
    font-size: 1rem;
    color: #111;
}

.btn-primary {
    display: inline-block;
    padding: 10px 16px;
    background: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .listingsGrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .listingsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #staticBanner {
        height: 220px;
    }

    .bannerOverlay h1 {
        font-size: 1.6rem;
    }

    .sellCtaInner {
        flex-direction: column;
        align-items: stretch; 
    }

    .btn-primary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .listingsGrid {
        gap: 6px;
        grid-template-columns: repeat(2, 1fr); 
    }

    .listingCard {
        max-width: none;
        height: 200px;
        padding: 8px;
    }

    .preview-image {
        height: 110px;
    }

    #staticBanner {
        height: 180px;
    }

    .bannerOverlay h1 {
        font-size: 1.3rem;
    }
    
    .soldCarousel {
        grid-auto-columns: 150px;
    }
}





