body {
    background-color: #f0f0f5;
    padding: 10px;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: inherit;
    text-decoration: none;
}
#logo {
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 0 30px;
    font-size: 50px;
}


h2 {
    margin-left: 15px;
    color: rgb(68, 8, 8);
}

.product-comment-div{
    border: solid 2px grey;
    border-radius: 15px;
    height: auto;
    
   
}

.form-group-1 {
    max-width : 600px;
    width : 90%;
    display: flex;
    flex-direction: column;  
    align-items: flex-start; 
    gap: 8px;                
    border: solid 2px rgb(68, 8, 8);
    padding: 10px;    
}       


.wrapper-1{
    display: flex;
    margin-bottom:20px;
    flex-wrap: wrap;
    width : 100%;
    justify-content: center;
}


.new-listing-msg, #btn-wrapper{   
    text-align: center;
    display: flex;
    justify-content: center;
    width :100%;
    margin-bottom: 150px;
}
#newlisting-btn{
    align-items: center;
    width: 200px;
}

.nav-link {
    color: rgb(68, 8, 8);
}

.nav-link:hover {
    color: rgb(213, 104, 104);
}

.login-wrapper,
.register-page,
.cards_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.product-wrap{
    display: flex;
    flex-wrap: wrap;
}

.login-wrapper {
    height: 55vh;
}

.register-page {
    height: 60vh;
}

.login-container,
.register-container,
.cards_container {
    width: 100%;
    max-width: 400px;
    min-width: 300px;
}

.cards_container {
    width:320px;
    background-color: #efe8e8;
    border-radius: 15px;
    margin: 8px;
    height: auto;                         
    display: flex;                        
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.cards_container:hover {
    background-color: #ebe3e3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.register-container {
    max-width: 500px;
}

.login-heading,
.register-heading {
    text-align: center;
}

.spacer-small {
    height: 10px;
}

.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-input,
.register-form .form-group {
    width: 80%;
    margin-bottom: 10px;
}

.login-button,
.register-button {
    width: 60%;
}

.login-message,
.error-message {
    text-align: center;
    color: red;
    margin-top: 10px;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 10px;
}

.login_status {
   
    margin-right: 2px;
}

.extras-wrapper{
    display: flex;
    justify-content: center;
    width : 100%;
}
.extras_1 {
    display: inline-flex; 
    justify-content: center;

    background-color:  #f5f0f0;
     border: solid 1px #e1dada;
    padding: 15px 7px;
    border-radius: 10px;
    font-size: 17px;
}


.title_block {
    padding-top:10px;
    display: flex;
   
    justify-content: space-between;
    height: auto;
}


/* ✅ Image and card footer layout */

.image-wrapper {
    height: 80%;               /* Fixed image area */
    flex-shrink: 0;            /* Prevent it from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.no-image {
    font-style: italic;
    color: #888;
    text-align: center;
}

.card-footer {
    background-color: transparent;
    border: none;
    height: 45%;              
    display: flexbox;
    flex-direction: column;
}
s

.card-title {
    margin: 5px 0px;
    font-size: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.available {
    color: rgb(53, 111, 109);
}

.not-available {
    color: rgb(177, 8, 8);
}
