.listingBody {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
}

.listing-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 16px 24px;
    box-sizing: border-box;
}

.listing-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    align-items: start;
}

.listing-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
}

.listing-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.main-listing-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 5px;
    border: 1px solid #ddd;
    object-fit: cover;
    cursor: pointer;
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.65);
    color: white;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    z-index: 1;
}

.sold-notice {
    font-weight: bold;
    color: #999;
    margin-top: 10px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail-listing-image {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    border: 1px solid #ddd;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail-listing-image:hover {
    transform: scale(1.1);
    border-color: #0042d0;
}

.thumbnail-listing-image.active {
    border-color: #003097;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.listing-details {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    margin-top: -30px;
}

.listing-price {
    font-size: 28px;
    font-weight: bold;
    color: #d0021b;
    margin-bottom: 5px;
}

.listing-shipping,
.listing-category,
.listing-seller,
.listing-description {
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}

.listing-description {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

.seller-link,
.listing-category a {
    color: #0050ff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.seller-link:hover,
.listing-category a:hover {
    color: #0042d0;
    text-decoration: underline;
}

.seller-location {
    font-style: italic;
    color: #777;
}

.listing-seller-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-contact-seller {
    padding: 6px 8px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    text-align: center;
    font-size: 10px;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-contact-seller:hover {
    background-color: #e3e3e3;
    color: #000;
    border-color: #333;
}

.btn-add-to-cart {
    padding: 10px 15px;
    background: #0050ff;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background-color: #0042d0;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content img {
    max-width: 800px;
    max-height: 80vh;
    border-radius: 5px;
    object-fit: contain;
}

.share-section {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

.share-heading {
    font-size: 14px;
    color: #555;
    font-weight: normal;
    margin-bottom: 8px;
}

.share-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.share-icon-fa {
    font-size: 22px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #333;
    cursor: pointer;
}

.share-icon-link:hover .share-icon-fa {
    transform: scale(1.1);
    color: #0042d0;
}

.share-help {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

.toast-copied {
    visibility: hidden;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toast-copied.show {
    visibility: visible;
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
}

.modal-close:hover {
    color: #0042d0;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-nav.left {
    left: 40px;
}

.modal-nav.right {
    right: 40px;
}

.modal-nav:hover {
    color: #0042d0;
}

.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    z-index: 9999;
}

.cart-modal-content {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cart-modal-message {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.cart-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-view-cart,
.btn-continue-shopping {
    min-width: 150px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-view-cart {
    background-color: #0050ff;
    color: #fff;
}

.btn-view-cart:hover {
    background-color: #0042d0;
}

.btn-continue-shopping {
    background-color: #f2f2f2;
    color: #333;
}

.btn-continue-shopping:hover {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .listing-main {
        grid-template-columns: 1fr;
    }

    .main-listing-image {
        max-height: 300px;
    }

    .thumbnail-images {
        flex-wrap: wrap;
    }

    .thumbnail-listing-image {
        width: 80px;
        height: 80px;
    }

    .listing-details {
        margin-top: 20px;
    }

    .btn-add-to-cart {
        font-size: 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .listing-container {
        padding: 0 12px 20px;
    }

    .cart-modal-content {
        width: 90%;
        padding: 25px 20px;
    }

    .cart-modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-view-cart,
    .btn-continue-shopping {
        min-width: unset;
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
}



