/* Base page styling */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.container-main-about,
.container-main-home {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;  /* include padding in width */
    padding: 0;
    margin: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    margin: 0;
}

main {
    display: block; 
    /* width: 100%; */
    padding: 0;
}
img {
    max-width: 100%;
    height: auto;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #303134;
    padding: 10px 20px;
    position: relative;
    flex-wrap: wrap;
}

#logo {
    width: 250px;
    padding: 20px 0 0 20px;
}

nav {
    display: flex;
    gap: 40px;
    padding-right: 50px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
}

.header-search {
    display: flex;
    justify-content: flex-end; /* aligns search to right */
    align-items: stretch;
    padding: 10px 80px;
    background-color: #303134;
    gap: 10px;
}

.search-combined {
    display: flex;
    width: 30%;
}

.search-combined input {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
}

.search-combined select {
    padding: 8px;
    border: none;
    background: #e8760d;
    color: white;
}
.search-combined input,
.search-combined select,
.button-search {
    height: 50px;                  /* same height for all */
    border: none;
    outline: none;
    font-size: 1.2em;
}

.button-search {
    background: #e8760d;
    border: none;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
}

.hamburger {
    display: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

.button-link{
    background: #e8760d;
    padding: 8px 12px;
    display: inline-block;
    text-decoration: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
}
.button-link:hover{
    background-color: #d69931;
}
select{
    padding: 8px 12px;
    padding-right: 30px; /* space for arrow */
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: gray;
    background-image: url('data:image/svg+xml;utf8,<svg fill=\'%23333\' height=\'16\' viewBox=\'0 0 24 24\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M7 10l5 5 5-5z\'/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    margin-bottom: 2%;
    color:#fff;
}
.image-button-link{
    background: gray;
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
    text-decoration: none;
    color: white;
    cursor: pointer;
}
.delete-button-link{
    background: red;
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
    text-decoration: none;
    color: white;
    margin-left: 3%;
    cursor: pointer;
}

/* Form structure */
fieldset {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
    color: #555;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"]{
    width: 100%;
    padding: 10px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
}

button:hover,
input[type="submit"]:hover {
    background: #d69931;
}

/* Admin links (Edit / Delete) */
.admin-links a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    font-weight: bold;
    color: #e8760d;
} 
button.delete-user:hover {
    background-color: red !important;
}
.delete-user{
    background: #e8760d;
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

nav a:hover {
    text-decoration: underline;
}

/*===================================
Item Details Page
=====================================*/
.main-items-container {
    margin: 0 auto;
    padding: 40px 80px;
    background-color: #303134;
    color: #fff;
    font-size: 1.3em;
    margin-top: -50px;
}
.item-details-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.item-details-heading{
    font-size: 2.5em;
    margin-left: 5%;
}
.item-details-container img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-top: 70px;
}
.item-details-right {
    flex: 1;
}
.item-details-right p {
    margin-bottom: 15px;
}
.return-button {
    margin-top: 60px;
    
}
.sucess-message{
    background-color: #303134;
    color: green;
    text-align: center;
    padding: .5% 0;
    font-size: 1.3em;
}

/*ADMIN DASHBOARD*/
.admin-dash-container{
    display:flex;
    flex-direction: column;
    font-size: 1.3em;
    justify-content: center;
    align-items: center;
    background-color: #303134;
    color: #fff;
}
.admin-table {
    border-color: #e8760d;
    margin-bottom: 5%;
    margin-top: 3%;
    width: 60%;
    table-layout: fixed; /* Important */
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
    width: 100px; /* Adjust as needed */
    text-align: center;
}
.admin-heading{
    font-size: 2.3em;
}
/*HOMEPAGE*/
.container-flex-top{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;       /* vertically center left text */
    background-color: #303134;
    color: #fff;
    width: 100%;
    height: 90vh;
    padding: 0 5%;
    box-sizing: border-box;
}
h3{
    font-size: 1.5em;
}
.container-flex-darkgrey {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* vertically align */
    background-color: #303134;
    color: white;
    font-size: 1.2em;
    height: 60vh;
}
.container-left1{
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertically center text content */
    gap: 15px;
    font-size: 1.5em;
    margin-top: -5%;
}
.container-right1 {
    max-width: 100%;
    height: auto;
    display: block;
    padding-right: 10%;
}
.container-right1 img {
    margin-left: 0;
    margin-top: 0;
    width: 100%; /* prevent overflow */
    height: auto;
}
.container-left2{
    padding: 5%;
}
.container-right2{
    font-size: 1.5em;
    padding-top: 5%;
    padding-right: 5%;
}
.container-left3,
.container-right3 {
    flex: 0 0 50%; /* grow=0, shrink=0, basis=50% */
    padding: 0 20px; /* horizontal spacing inside each column */
}
.container-right3{
    padding-right: 10%;
}
.responsive-image6 {
    width: 60%;
    height: auto;
    display: block;
    margin-left: 20%;
}
.container-flex-lightgrey{
    display: flex;
    flex-direction: row;
    background-color: gray;
    width: 100%;
    height: 80vh;
    
}
.container-flex-white{
    background-color: #fff;
    width: 100%;
    height: 100vh;
    text-align: center;
    padding-top: 3%;
}
.container-flex-review{
    background-color: gray;
    width: 100%;
    height: 80vh;
    text-align: center;
    padding-top: 3%;
    font-size: 1.3em;
}

.container-right{
    width:50%;
    padding: 3%;
}
.container-centred{
    display: flex;
    flex-direction: row;
}
.card-container{
    display: flex;
    flex-direction: column;
    padding: 3%;
    align-items: center;
}
.review-item{
    display: flex;
    flex-direction: row;
    margin-top: 3%;
    gap: 3%;
}


/* ABOUT PAGE */
.container-flex-about{
    width: 100%;
    display: flex;
    flex-direction: row;
    font-size: 1.3em;
}
.container-about-left1{
    background-color: #303134;;
    padding: 10%;
    width: 50%;
    font-size: 1.3em;
    color:#fff;
    margin-top: -8%;
}
.container-about-right1{
    background-color: #303134;
    width: 50%;
}
.container-about-right1 img{
    width: 50%;
    padding-bottom: 10%;
    margin-left: 10%;
}
.container-about-left2 img{
    margin-left: 10%;        /* remove left/right margins */
    display: block;
    width: 70%;   /* prevent inline spacing */
    height: auto;
}
.container-about-left2{
    width: 50%;
    padding: 5%;
}
.container-about-right2{
    background-color: gray;
    color: black;
    width: 70%;
    font-size: 1.3em;
    padding: 6%;
}
.container-about-left3{
    width: 60%;
    padding: 5%;
    font-size: 1.3em;
}
.container-about-right3{
    width: 40%;
    padding: 5%;
    font-size: 1.3em;
}
.container-about-left4{
    background-color: #303134;
    color: #fff;
    width: 50%;
    padding: 5%;
    font-size: 1.3em;
}
.container-about-right4{
    width: 50%;
    margin-right: 0;
    background-color: gray;
}
.container-about-right4 img{
    margin: 0;        /* remove left/right margins */
    display: block;   /* prevent inline spacing */
    max-width: 100%;  /* responsive */
    width: 70%;
    margin-left: 20%;
    margin-top: 5%;
    height: auto;
}
.container-about-left5{
    background-color: #303134;
    width: 50%;
    padding: 5%;
}
.container-about-right5{
    background-color: #303134;
    width: 50%;
    color: #fff;
    font-size: 1.3em;
    padding: 5%;
}
.big-quote {
    position: relative;
    
}

.big-quote::before {
    content: "“";
    position: absolute;
    left: -100px;
    top: -20px;
    font-size: 4em;
    color: #ccc;
}
.big-quote::after {
    position: absolute;
    content: "”";
    font-size: 4em;
    color: #ccc;
    margin-left: 5px;
    left: 500px;
    
}


/* PRODUCTS & SEARCH RESULTS PAGE */
/* Grid Layout */
.products-container {
    display: block;
    background-color: #303134;
    padding: 3%;
    position: relative;
}
.products-title{
    font-size: 3.2em;
}
.search-results-heading{
    font-size: 3em;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
    /* Ensure grid rows grow automatically to tallest card in row */
    grid-auto-rows: minmax(auto, auto);
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* keep button at bottom */
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 6px;
    background: #fff;
    height: auto;  /* remove height: 100% */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Card Text */
.card h3 {
    margin: 5px 0;
}

.card p {
    margin: 5px 0;
}

/* Button always at bottom */
.card .button-link {
    margin-top: 10px;
    text-align: left;
    display: block;
    width: 40%;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    color: #fff;
    font-size: 2em;
}

.pagination a {
    margin-right: 8px;
    text-decoration: none;
    color:#e8760d;
}

.pagination a[style] {
    font-weight: bold;
}

/* Responsive */
@media (max-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}


/*LOGIN PAGES*/
.login-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    padding-top: 2%;
    background-color: #303134;
    height:65vh;
}
.login-headings{
    font-size: 2em;
}
.admin-login-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    padding-bottom: 2%;
    background-color: #303134;
    height:55vh;
}
.user-login-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    padding-bottom: 2%;
    background-color: #303134;
    height:55vh;
}

.login-label{
    color: #ccc;
    font-size: 1.3em;
}
.login-button-link{
    font-size: 1.2em;
    background: #e8760d;
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
    text-decoration: none;
    color: white;
}

/*VENDORS PAGE */
.vendors-container {
    background-color: #303134;
    padding: 3% 5% 5% 5%;
    width: 100%;
    box-sizing: border-box;
}

/* Heading */
.vendors-heading {
    font-size: 3.2em;
    color: white;
    margin-bottom: 45px;
    margin-left: 60px;
    margin-top: -20px;
}

/* Flex container for cards */
.vendors-cards {
    display: flex;
    flex-wrap: wrap;        /* wrap to next line if needed */
    flex-direction: row;
    gap: 20px;              /* spacing between cards */
    justify-content: flex-start; /* desktop: left-aligned */
    align-items: flex-start;
}

/* Individual card */
.vendor-card {
    width: 300px;
    height: 280px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* Vendor image */
.vendor-card .vendor-page-image {
    width: 100%;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 10px;
    margin-top: 20px;
}
/*VENDOR PRODUCTS*/
.vendor-products-heading{
    color: #fff;
    font-size: 3em; 
    margin-left: 7%;
    margin-top: -40px;
}
.vinyl-card img{
        margin-top: 20px;
    }
.vinyl-grid {
    padding-left: 70px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
/* DESKTOP: 4 PER ROW */
.vinyl-card {
    flex: 0 0 calc(25% - 20px);
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    background-color: white;
    height: 300px;
    object-fit: contain;
}
/* Image */
.vinyl-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 5px;
}
/*SUBMIT PAGE*/
.submit-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    padding-top: 2%;
    background-color: #303134;
    padding-bottom: 5%;
}
.submit-item-heading{
    font-size: 2em;
    color: #fff;
}
.submit-label{
    font-size: 1.3em;
    color: #ccc;
}
/*USER HOME*/
.user-container{
    display: flex;
    flex-direction: row;
    padding-top: 2%;
    background-color: #303134;
    color: white;
    min-height: 85vh;
}
.user-home-heading{
    font-size: 2.5em;
    margin-top: -40px;
}
.user-dash{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: left;
    font-size: 1.3em;
    padding-top: 2%;
    padding-left: 15%;
    background-color: #303134;
    color: white;
}
.user-button-link{
    background: #e8760d;
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
    text-decoration: none;
    color: white;
    width: 30%;
    margin-bottom: 2%;
}
.user-button-link:hover{
    background-color: #d69931;
}
.dash-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;  /* More space around the section */
    border-radius: 12px;
    margin-top: 20px;
    max-width:none;
}
.vendor-image {
    width: 400px !important;
    height: 300px !important;
    object-fit: contain !important;
    max-width: none !important;
    max-height: none !important;
    margin-bottom: 20px;
}
/* Preview image */
#cover_image_preview {
    width: 300px;       /* Match current image */
    object-fit: cover;
    border-radius: 10px;
    margin-top: 15px;
    
}
.user-home-form {
    width: 100%;
    max-width: 500px;  /* Bigger form */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -190px;
}
.user-home-form label,
.user-home-form button {
    font-size: 1.2em;  /* Slightly larger text/buttons */
}

.user-home-form button {
    margin-top: 15px;
    padding: 10px 20px;
}
/*USER ITEMS*/
.user-items-container{
    background-color: #303134;
    color: #fff;
    padding-top: 5%;
    padding-bottom: 5%;
}
.items-title{
    font-size: 3em;
    padding-left: 10%;
    margin-top: -40px;
}
.items-heading{
    font-size: 2em;
    text-align: center;
    margin-bottom: 5%;
}
.vendor-page{
    width: 90%;
    margin: 0 auto;
    display: grid;
    color: #000;
    gap: 15px;
    grid-template-columns: repeat(4, 1fr); /* Desktop */
    font-size: 1.3em;
}
.vendor-card {
    border:1px solid #ccc;
    border-radius:10px;
    padding:10px;
    box-sizing:border-box;
    text-align:center;
    background:#fafafa;
    color: #000;
}
.vendor-image{
    width:100%;
    height:180px;
    object-fit:contain;
    border-radius:6px;
    margin-bottom:10px;
}
.vinyl-card{
    height: 350px;
}
.vinyl-card img{
        height: 150px;
    }
.user_item_buttons {
    display: flex;
    flex-direction: row;  /* horizontal on desktop */
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.return-button{
    margin-left: 5%;
}
/*USER EDIT ITEM PAGE*/
.user-edit-item-container{
    background-color: #303134;
    color:#fff;
    padding-top: 5%;
}
.edit-item-form{
    display: flex;
    justify-content: center;
    font-size: 1.5em;
}
.edit-item-form label{
    color:#ccc;
    font-size: 1.3em;
}
.edit-item-title{
    font-size: 2.5em;
    padding-left: 5%;
    text-align: center;
    color:#fff;
    margin-top: -30px;
}
.edit-return-button{
    margin-left: 5%;
    margin-bottom: 5%;
    margin-top: 5%;
}
.edit-update-button{
    font-size: 1.2em;
}
.submit-label,
.image-button-link {
    display: block;
    margin-bottom: 8px;
}
.edit-update-button{
    margin-top: 10px;
}
/*CONTACT PAGE*/
.container-flex-contact {
    display: flex;
    flex-direction: row;      /* side-by-side on desktop */
    width: 100%;
    gap: 0;                   /* remove extra gaps */
    align-items: stretch;     /* equal height columns */
    box-sizing: border-box;
    
}

/* LEFT and RIGHT Sections */
.contact-left1, .contact-right1,
.contact-left2, .contact-right2,
.contact-left3, .contact-right3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertically center content */
    box-sizing: border-box;
    padding: 8%;
}

/* Left 1 and Right 1 */
.contact-left1, .contact-right1 {
    background-color: #303134;
    color: #fff;
    font-size: 1.3em;
}
.contact-left1{
    font-size: 1.6em;
    margin-top: -5%;
}
.contact-right1 img {
    width: 90%;
    margin: 0 auto;
    display: block;
}

/* Left 2 and Right 2 */
.contact-left2 {
    background-color: #303134;
    color: #fff;
    font-size: 1.4em;
    padding-top: 0;
    padding-bottom: 0;
}
.contact-right2 {
    background-color: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;      /* center form horizontally */
    justify-content: center;  /* center form vertically */
    padding-top: 0;
    padding-bottom: 0;
}
.contact-form {
    width: 100%;
    max-width: 500px;         /* scale on smaller screens */
    margin: 0 auto 40px auto;           /* horizontally center */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Left 3 and Right 3 */
.contact-left3, .contact-right3 {
    background-color: #303134;
    color: #fff;
    font-size: 1.2em;
}
.contact-left3 {
    display: flex;
    justify-content: center;  /* centers the image */
    align-items: center;
}
.contact-left3 img {
    max-width: 100%;
    height: auto;
}
.contact-right3{
    font-size: 1.3em;
}

/* Form Inputs */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.form-row input {
    flex: 1;
}
input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Remove extra margins on headings and paragraphs */
.contact-left1 h1, .contact-left1 p,
.contact-left2 h1, .contact-left2 p,
.contact-right2 h1, .contact-right2 p,
.contact-left3 h1, .contact-left3 p,
.contact-right3 h1, .contact-right3 p {
    margin-top: 0;
    margin-bottom: 0.5em;
}
.phone-link{
    width: 30%;
    margin-top: 30px;
}

/* FOOTER */
.footer-container{
    display: flex;
    flex-direction: row;
    color:#333
}
ul {
  list-style: none;
  padding: 0;   
  margin: 0;    
}
.address-container{
    padding : 3%;
}
.business-hours{
    padding: 3%;
    line-height: 1.6;
}
.social-media i{
    margin-left: 3%;
    margin-top: 15%;
    font-size: 2em;
}
.map{
    margin: 2%;
    padding-left: 100px;
}

/*=============================
RESPONSIVE CSS
==============================*/



@media (max-width: 768px) {

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #303134;
        margin-top: 10px;
    }
    #logo{
        width: 175px;
    }
    nav.active {
        display: flex;
        padding-left: 40px;
    }

    nav a {
        padding: 1px 0;
        font-size: 1em;
        border-top: 1px solid #444;
        line-height: 1.2;
        text-align: center;
    }
    nav a:first-child {
        border-top: none;
    }

    .header-search {
        padding: 10px 15px;      /* reduce padding on small screens */
    }

    .search-combined input,
    .search-combined select,
    .button-search {
        height: 40px;             /* maintain same height */
        font-size: 1em;
    }
    .search-combined{
        width: 60%;
    }
        .hamburger {
        display: block;
        font-size: 28px;
        color: white;
        cursor: pointer;
    }
}

@media (max-width: 768px) {

    /* ---------------- HOME PAGE FLEX SECTIONS ---------------- */
    .container-flex-darkgrey,
    .container-flex-top,
    .container-flex-lightgrey,
    .container-flex-review,
    .container-flex-white {
        flex-direction: column;    /* stack left/right columns */
        height: auto;              /* allow sections to grow naturally */
        padding: 20px 15px;        /* spacing inside sections */
        text-align: center;
    }

    /* Left and right columns stack fully */
    .container-left1,
    .container-left2,
    .container-left3,
    .container-right1,
    .container-right2,
    .container-right3 {
        width: 100%;               /* full width on mobile */
        padding: 10px 0;
        margin: 0 auto;
    }

    /* ---------------- Images ---------------- */
    .container-left1 img,
    .container-left2 img,
    .container-left3 img,
    .container-right1 img,
    .container-right2 img,
    .container-right3 img,
    .card-container img,
    .review-item img,
    .responsive-image6 {
        max-width: 100%;           /* scale down to container */
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* ---------------- Cards ---------------- */
    .container-centred {
        display: flex;
        flex-direction: column;    /* stack cards vertically */
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        align-items: center;
    }

    .card-container {
        width: 90%;                /* narrower for mobile */
        text-align: center;
        padding: 15px;
    }

    /* ---------------- Headings ---------------- */
    h1, h2, h3, h4 {
        font-size: 1.2em;          /* scale down fonts */
    }

    /* ---------------- Buttons ---------------- */
    .button-link {
        width: 90%;
        margin: 10px auto;
        text-align: center;
    }

    /* ---------------- Review Section ---------------- */
    .review-item {
        flex-direction: column;    /* stack avatar + name */
        gap: 5px;
        align-items: center;
    }

    /* ---------------- Images that need special scaling ---------------- */
    .responsive-image6 {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* ---------------- Safety ---------------- */
    html, body {
        overflow-x: hidden;         /* prevent horizontal scroll */
    }
    .mobile-hide {
        display: none;
    }
}

/*ABOUT PAGE*/
@media (max-width: 768px) {
    .container-flex-about {
        flex-direction: column;   
        width: 100vw;            
        padding: 0;
        margin: 0;
    }
    /* Make left and right columns full width */
    .container-about-left1,
    .container-about-left2,
    .container-about-left3,
    .container-about-left4,
    .container-about-left5,
    .container-about-right1,
    .container-about-right2,
    .container-about-right3,
    .container-about-right4,
    .container-about-right5 {
        width: 100%;
        padding: 10px 0;
        margin: 0 auto;
    }

    /* Center all images and remove horizontal margins */
    .container-about-left2 img,
    .container-about-right4 img,
    .container-about-left5 img {
        width: 90%;        
        max-width: 100%;
        margin: 0 auto;
        display: block;
        height: auto;
    }
    .container-about-right1 img{
        width: 80%;
        margin-right: 8%;
    }

    /* Text adjustments */
    .container-about-left1,
    .container-about-left2,
    .container-about-left3,
    .container-about-left4,
    .container-about-left5,
    .container-about-right1,
    .container-about-right2,
    .container-about-right3,
    .container-about-right4,
    .container-about-right5 {
        font-size: 1em;    /* slightly smaller for mobile */
        text-align: center;
    }

    /* Buttons full width */
    .button-link {
        width: 90%;
        margin: 10px auto;
    }
}

/*CONTACT PAGE */
@media (max-width: 768px) {

    .container-flex-contact {
        flex-direction: column;   /* stack columns on mobile */
        width: 100vw;             /* full viewport width */
        padding: 0;
        margin: 0 auto;
    }

    [class*="contact-left"],
    [class*="contact-right"] {
        width: 100%;             /* full width on mobile */
        padding: 10px 5%;
        margin: 0 auto;
        text-align: center;
    }

    /* Images scale nicely */
    .container-flex-contact img {
        width: 90%;
        margin: 0 auto 15px auto;
    }

   .contact-form {
        width: 90%;           /* almost full width on mobile */
        margin: 20px auto;    /* centered */
        padding: 20px;        /* a little smaller padding */
    }

    .form-row {
        flex-direction: column; /* stack inputs vertically */
        gap: 10px;
    }

    input, textarea, .contact-form button {
        width: 100%;           /* full width of column */
    }
}

/*VENDORS PAGE*/
@media (max-width: 768px) {
    .vendors-cards {
        flex-direction: column;   /* stack cards */
        align-items: center;     
    }

    .vendor-card {
        width: 90%;               /* almost full width on mobile */
        max-width: 300px;
        margin-bottom: 20px;
    }
    .vendors-cards img{
        padding-top: 20px;
    }

    .vendors-heading {
        text-align: left;          /* keep heading left on mobile */
        padding-left: 5%;          /* optional margin from left */
        font-size: 1.7em;
        text-align: center;
        margin-left: -25px;
        margin-top: 10px;
    }
}
/*VENDOR PRODUCTS*/
@media (max-width: 768px) {
    .vendor-products-heading{
        font-size: 1.8em;
        text-align: center;
        margin-top: 5px;
        margin-bottom: 50px;
    }
    .vinyl-grid {
        padding-left:0;
        flex-direction: column;
        align-items: center;   /* center stacked cards */
    }

    .vinyl-card {
        flex: none;
        width: 90%;
        max-width: 400px;
    }
    .vinyl-card img{
        margin-top: 20px;
    }
}
/*ITEM DETAILS*/
@media (max-width: 768px) {
    .main-items-container{
        padding: 40px 20px;
    }
    .item-details-container {
        flex-direction: column;
        gap: 20px;
    }
    .item-details-heading{
        font-size: 1.5em;
        margin-bottom: -30px;
    }
    .item-details-container img {
        max-width: 100%;
    }

    .item-details-right {
        width: 100%;
    }

    .main-items-container h2 {
        text-align: center;
    }
    .items-return-button {
    margin-top: 40px;
    text-align: center;
    }
    .vendor-button {
        text-align: center;
    }
}
/*ADMIN DASH*/
@media (max-width: 768px) {
    .admin-table {
        /* table-layout: auto;  */
        width: 90%;
    }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        width: 100px; 
    }

    .admin-table td {
        word-break: break-word; /* Prevent text overlap */
    }
    .admin-heading{
        font-size: 1.5em;
    }
}
/*USER HOME*/
@media (max-width: 768px) {
    .user-container {
        flex-direction: column;
        gap: 20px;
    }
    .user-home-heading{
    font-size: 1.5em;
    text-align: center;
    margin-top: 20px;
    margin-left: -20px;
    }
    .user-dash,
    .dash-image {
        width: 100%;
    }
    .user-dash{
        margin-left: -3%;
    }
    .dash-image{
        padding-left: 0;
    }
    .dash-image img {
        padding: 5%;
        height: 300px;
        object-fit: contain;
    }
    .user-button-link{
        width: 90%;          /* nice full-width feel */
        max-width: 350px;    /* prevents giant buttons on tablets */
        margin-bottom: 10px;
        text-align: center;
    }
    .user-home-form{
        text-align: center;
        padding-bottom: 10%;
        margin-left: 30px;
    }
    .vendor-image{
        margin-left:30px;
    }
    #cover_image_preview{
        width: 300px;
        height: 150px;
    }
}
/*PRODUCTS*/
@media (max-width: 768px){
.back-to-home{
    margin-left: 5%;
}
.products-title{
    font-size: 2em;
    text-align: center;
}
}
/*USER ITEMS*/
@media (max-width: 768px) {

    .vendor-page {
        grid-template-columns: 1fr; /* single column */
        gap: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .items-title{
        font-size: 2em;
        margin-top: 6px;
        text-align: center;
        margin-left: -15px;
    }
    .items-heading{
        font-size: 1.5em;
        text-align: center;
    }
    .vinyl-card {
        padding: 10px;
        height: auto;
    }
    .vinyl-card img{
        height: 250px;
    }

    .vendor-image {
        height: 150px; /* slightly smaller for mobile */
    }

    .user_item_buttons {
        display: flex;
        flex-direction: column;
        gap: 8px; /* stacked buttons with space */
        align-items: stretch;
        justify-content: center;
    }

    .edit-button-link,
    .delete-button-link {
        width: 75%; 
        text-align: center;
    }
    .delete-button-link{
        margin-left: 12%;
    }

    .return-button {
        width: 50%;
        margin-left: 90px;
    }
}
/*USER EDIT ITEMS*/
@media (max-width: 768px){
    .edit-update-button{
        width: 60%;
        font-size: 1em;
        margin-left: 21%;
    }
    .edit-return-button{
        margin-left: 80px;
        width: 60%;
        margin-bottom: 5%;
    }
    .submit-item-heading{
    font-size: 1.5em;
    }
    .edit-item-title{
        font-size: 1.9em;
        margin-top: 20px;
    }
    #cover_image_preview{
        height: 200px;
        margin-left: 70px;
    }
}
/*SEARCH RESULTS*/
@media (max-width: 768px){
    .search-results-heading{
        font-size: 1.8em;
        text-align: center;
    }
    .card .button-link {
        width: 30%;
    }
    .results-return{
        margin-left: 15px;
    }
}
/* FOOTER */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;     /* stack columns vertically */
        align-items: center;
        padding: 10px 5%;
        gap: 10px;                  /* spacing between sections */
    }

    .address-container,
    .business-hours,
    .map {
        width: 100%;                /* full width */
        margin: 0;                  /* reset margins */
        text-align: center;         /* center content */
        padding: 0;
    }

    .social-media {
        margin-top: 10px;
    }

    .social-media i {
        margin-left: 5px;           /* smaller spacing */
        margin-right: 5px;
        margin-top: 0;
        font-size: 2em;
    }

    .map iframe {
        width: 100%;                /* make map responsive */
        height: auto;
    }

    ul {
        padding: 0;
        margin: 0 auto;
        text-align: center;
    }
}






