body{background:#f5f6f8}.hero{background:linear-gradient(120deg,#14213d,#274c77);color:#fff}.hero h1{font-weight:800;font-size:clamp(2.2rem,5vw,4.5rem)}.product-card{border:0;overflow:hidden}.product-card .card-img-top{height:240px;object-fit:cover;background:#e9ecef}.price{font-size:1.35rem}.modal-img{height:420px;object-fit:contain;background:#111}.admin-login{min-height:100vh;display:grid;place-items:center;background:#eef1f5}.admin-login .card{width:min(92vw,420px)}.admin-thumb{width:80px;height:60px;object-fit:cover;border-radius:.35rem}.drop-zone{border:2px dashed #adb5bd;border-radius:.5rem;padding:1rem;background:#fafafa}.navbar-brand img{filter:drop-shadow(0 2px 2px rgba(0,0,0,.25))}@media(max-width:576px){.modal-img{height:260px}}
/* Supplied Used Bus Parts logo */
.navbar-brand img{
    width:auto;
    height:58px;
    max-width:min(62vw,360px);
    object-fit:contain;
    filter:none;
}
@media(max-width:576px){
    .navbar-brand img{
        height:44px;
        max-width:72vw;
    }
    .navbar-brand span{
        display:none;
    }
}


/* Version 2 layout improvements */
.site-header{
    background:#ffffff;
    border-top:7px solid #e8edf3;
    border-bottom:1px solid #dfe4ea;
    box-shadow:0 2px 8px rgba(15,23,42,.06);
}
.site-logo{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
}
.site-logo img{
    width:auto;
    height:78px;
    max-width:min(72vw,430px);
    object-fit:contain;
}
.intro-strip{
    background:#f8f9fb;
    border-bottom:1px solid #e1e5ea;
}
.intro-strip h1{
    color:#2f3f91;
    font-weight:700;
}
.hero{
    display:none;
}
.navbar-brand span{
    display:none;
}
.product-editor-card{
    max-width:1450px;
}
.product-editor-card .card-header{
    padding:1.1rem 1.25rem;
}
.product-editor-card .card-body{
    padding:1.25rem;
}
.form-section-title{
    color:#2f3f91;
    font-weight:700;
    padding-bottom:.55rem;
    margin-bottom:1rem;
    border-bottom:2px solid #e5e9f0;
}
.existing-image-card{
    background:#f8f9fa;
    padding:.6rem;
    border-radius:.5rem;
}
.existing-image-card img{
    width:100%;
    height:150px;
    object-fit:cover;
}
.drop-zone{
    border:2px dashed #8f9bad;
    background:#f8fafc;
    padding:1.25rem;
}
@media(max-width:576px){
    .site-logo img{
        height:58px;
        max-width:76vw;
    }
    .intro-strip .container{
        padding-top:1rem!important;
        padding-bottom:1rem!important;
    }
}

.product-image-button{display:block;width:100%;height:240px;padding:0;border:0;background:#f2f3f5;cursor:pointer}.product-fit-image{width:100%;height:100%!important;object-fit:contain!important;padding:.5rem}.product-title-button{border:0;background:none;padding:0;text-align:left;font:inherit;font-weight:inherit;color:inherit}.product-title-button:hover{color:#2f3f91;text-decoration:underline}.listing-terms{background:#f8f9fa;border-left:4px solid #2f3f91;padding:1rem;margin-top:1rem}.admin-fit,.admin-product-image{object-fit:contain!important;background:#f5f5f5}.admin-product-image{width:100%;height:180px}.product-card .card-img-top{object-fit:contain!important}
.terms-document{max-width:900px;line-height:1.65}.terms-document h2{font-size:1.2rem;margin-top:2rem}.stat-card{min-height:130px}.site-logo img{max-height:72px;max-width:280px;object-fit:contain}

/* v4.0.1b: keep seller action controls aligned */
.seller-action-buttons{display:flex;align-items:center;gap:.3rem;flex-wrap:nowrap;white-space:nowrap}.seller-action-buttons form{display:inline-flex;margin:0}.seller-action-buttons .btn{min-height:31px;display:inline-flex;align-items:center;justify-content:center}@media(max-width:1100px){.seller-action-buttons{flex-wrap:wrap;white-space:normal}}


/* v4.0.2 seller product management */
.product-upload-zone{transition:border-color .15s ease,background-color .15s ease}.product-upload-zone:focus-within{border-color:#2f3f91;background:#f3f6ff}.admin-product-image{border:1px solid #dee2e6;border-radius:.4rem;padding:.35rem}.product-card{transition:transform .15s ease,box-shadow .15s ease}.product-card:hover{transform:translateY(-2px);box-shadow:0 .5rem 1rem rgba(0,0,0,.12)!important}.table td,.table th{vertical-align:middle}

/* v4.0.2a product status controls */
.product-status-form{min-width:260px}.product-status-form .form-select{min-width:150px}@media(max-width:767.98px){.product-status-form{min-width:220px}}


/* Marketplace messages */
.buyer-message-page{max-width:900px}.message-thread{min-height:220px;max-height:560px;overflow-y:auto;background:#f6f7f9}.message-bubble{max-width:78%;padding:.75rem 1rem;border-radius:1rem;margin-bottom:.85rem;box-shadow:0 1px 2px rgba(0,0,0,.08)}.message-buyer{background:#fff;border:1px solid #dee2e6;margin-right:auto}.message-seller{background:#dbeafe;margin-left:auto}.message-time{font-size:.75rem;color:#6c757d;margin-top:.35rem}.conversation-list{max-height:680px;overflow-y:auto}.message-admin-layout .card{min-height:520px}@media(max-width:767.98px){.message-bubble{max-width:94%}}

/* v4.0.5a buyer messaging improvements */
.seller-message-modal .modal-dialog{max-width:680px}.buyer-message-layout .conversation-list{max-height:680px;overflow-y:auto}.buyer-message-layout .list-group-item.active .opacity-75{opacity:.85!important}@media(max-width:991.98px){.buyer-message-layout .conversation-list{max-height:320px}}
