:root {
    --pink: #ffbee6;
    --light-pink: #fde2f3;
    --background-pink: #f8edf4;
    --red: #ff3131;
    --dark-red: #5b1d1d;
    --light-red: #ab8484;
    --background-yellow: #fff6ea;
    --grey-pink: #e4d9e0;
    --dark-contrast: #000;
}

body {
    background-color: var(--background-pink);
    color: var(--light-red);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.cursive {
    font-family: 'priestacy' !important;
    margin: 0;
    font-weight: 400;
}

.caps {
    text-transform: uppercase !important;
}

ul {
    padding-inline-start: 0;
}

.large-block {
    width: 70%;
    margin-left: 15%;
    margin-right: 15%;
}

.large-block h1 {
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 0.4rem;
}

.large-block h2 {
    font-size: 3rem;
    font-weight: 400;
}

.large-block h3 {
    font-size: 2.5rem;
    font-weight: 400;
}

.large-block h4 {
    font-size: 2rem;
    font-weight: 400;
}

.large-block p, .large-block a, .large-block b, .large-block strong, .large-block em, .extra-padding p, .extra-padding a, .extra-padding b, .extra-padding strong, .extra-padding em {
    font-size: 1.2rem;
}

h2.cursive {
    font-size: 4rem;
}

.bold {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--red);
    font-weight: 600;
}

.flex-end {
    justify-content: flex-end;
    align-content: flex-end;
    display: flex;
    flex-direction: column;
}

button {
    background-color: var(--red);
    color: #fff;
    min-width: 200px;
    padding: 12px;
    font-size: 24px;
    text-transform: uppercase;
    border: solid 2px var(--red);
    border-radius: 6px;
}

button:hover {
    background-color: rgba(0,0,0,0);
    color: var(--red);
}

main {
    min-height: 78vh;
}

footer {
    background-color: var(--light-pink);
    color: var(--red);
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    width: 100%;
    margin-top: 4rem;
}

footer a {
    font-weight: 400;
}

footer .btn-row {
    gap: .5rem;
    display: flex;
}

#copyright {
    background-color: var(--dark-red);
    color: var(--background-pink);
    display: flex;
    padding: 0rem 2rem;
}

#copyright a {
    color: var(--background-pink) !important;
}

#copyright .column {
    justify-content: flex-end;
    align-content: flex-end;
    flex-wrap: wrap;
}

#copyright p {
    width: fit-content;
}

footer .row {
    justify-content: space-between;
    width: 100%;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    /* justify-content: flex-start; */
    /* align-content: center; */
    flex-wrap: wrap;
}

.info-section a {
    margin-bottom: .5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.column {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    /*flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 100%;*/
    flex: 1;
    min-width: 220px;
}

.top-row {
    padding-top: 16vh;
}

.container {
    width: 90%;
    margin: auto;
}

#intro {
    margin-bottom: 20vh;
    align-items: stretch;
}

#intro .cursive {
    line-height: 1.4;
}

.btn {
    border-radius: .5rem;
    padding: 0.5rem 1rem;
}

#intro .btn {
    font-size: 2.5rem;
    padding: 1rem 2rem;
}

.btn.outline {
    border: solid 2px var(--red);
    color: var(--red);
    background-color: rgba(0,0,0,0);
}

.btn.outline:hover {
    background-color: var(--red);
    color: var(--background-pink);
}

.center {
    justify-content: center;
    align-content: center;
}

.center p, .center h1, .center h2, .center h3, .center h4 {
    text-align: center;
}

h1, h2, h3, h4 {
    color: var(--dark-red);
}

.home-logo {
    max-width: 120px;
}

.gallery {
    gap: 1rem;
    max-width: 80%;
    margin: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.gallery img {
    max-width: 100%;
}

.page-info {
    max-width: 60%;
    margin: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.signup-button {
    border: solid 1px var(--red);
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

.signup-button:hover {
    background-color: var(--red);
    color: #fff;
}

/*signup page*/
.top-row h1 {
    font-size: 3.5rem;
    font-weight: 400;
}

.top-row p {
    font-size: 1.6rem;
}

.form-container {
    margin-bottom: 2rem;
    padding: 4rem;
    background-color: var(--dark-red);
    width: 100%;
    color: var(--background-pink);
    border-radius: 0.5rem;
}

.form-container .column {
    min-width: 0;
}

.form-container .row {
    gap: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.terms-container {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.terms-container {
    margin-top: 1rem; 
}

details {
    margin-top: 1rem;
}

details p {
    text-align: left;
}

.form-group input {
    width: 100%;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid 1px var(--background-pink);
    color: var(--background-pink);
    padding: 1rem;
    background-color: rgba(0,0,0,0);
    font-size: 1.2rem;
}

.form-group input::placeholder {
    color: var(--background-pink);
}

.form-container h3 {
    text-align: left;
    color: var(--background-pink);
}

.form-container .btn {
    background-color: rgba(0,0,0,0);
    border: solid 2px var(--background-pink);
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    color: var(--background-pink);
    font-size: 1.6rem;
    margin-top: 1rem;
}

.form-container .btn:hover {
    background-color: var(--background-pink);
    color: var(--dark-red);
}

/*admin page*/
.button-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-content: center;
    flex-wrap: wrap;
}

.button-col button {
    width: 100%;
}

.button-col button, form button {
    font-size: 1.2rem;
}

/*nav*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    position: fixed;
    z-index: 999;
    width: 100%;
    transition: background-color 0.3s ease-in-out;
    background-color: rgba(0,0,0,0);
    top: 0;
}

.navbar.scrolled {
    background-color: rgba(248, 237, 244, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    }

.logo img {max-width: 120px;
    cursor: pointer;
}

.nav {
    font-size: 1.5em;
    cursor: pointer;
}

.scrolled .nav {
    color: var(--red);
}

.sidenav .unstyled, .unstyled {list-style-type: none;}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  background-color: var(--light-pink);
  overflow-x: hidden;
  padding-top: 60px;
  transition: 0.3s;
  text-transform: uppercase;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidenav a i {font-size: 1.2rem; margin-left: 1.2rem; position: absolute; color: var(--dark-red); margin-top: 10px;}

.sidenav li, .sidenav a {font-weight: 400;}

.nav-details {display: flex; flex-direction: row; padding-left: 32px; gap: 1rem; padding-bottom: 32px;}
.nav-details a i {font-size: 1rem; margin-left: 0; position: relative; color: var(--dark-red);}
.nav-details a {padding: 0px !important; color: var(--dark-red);}

.nav-details .tooltip {
    position: relative;
    display: inline-block;
}

.tooltip {
    height: fit-content;
}

.tooltip p {
    margin: 0;
    height: fit-content;
}

/* The actual tooltip box (hidden by default) */
.nav-details .tooltip::after {
    content: attr(data-tooltip); /* Grabs the text from HTML */
    position: absolute;
    bottom: 100%; /* Positions it above the icon */
    left: 0%;
    transform: translateX(-0%);

    /* Styling */
    background-color: var(--dark-red);
    color: var(--background-pink);
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap; /* Prevents text wrapping */
    font-size: 14px;
    z-index: 10000;

    /* Animation settings */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

/* Show tooltip on hover */
.nav-details .tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  display: block;
  transition: 0.3s;
  color: var(--dark-red);
}



/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: var(--red);
}

.sidenav .content {margin-left: 1rem;}
.sidenav .content a {font-size: 1.8rem;}
.content {display: none;}
.active {display: block;}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.hidden {display: none !important;}
.active {display: block;}



/*home page sections*/
.vector-red svg {
    fill: var(--red) !important;
    max-height: 35vh;
    width: auto;
}

#about, #contact, #shop {
    max-height: 80vh;
    min-height: 40vh;
    margin-bottom: 30vh;
}

#contact a, footer, .footer a, .footer p, .footer-nav a {
    color: var(--light-red) !important;
}

.btn-row {
    gap: 1rem;
    display: flex;
}

#shop a {
    min-width: 180px;
    text-align: center;
}

.background-image {
    width: 100%;
    background-size: cover !important;
    aspect-ratio: 1;
    border-radius: 0.5rem;
}

.contact-details, .contact-block {
    display: flex;
    flex-direction: column;
}

.contact-details {
    gap: 2rem;
}

.contact-block {
    gap: 1rem;
}

.contact-details h4 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.contact-details a {
    font-weight: 400;
}

#events {
    gap: 2rem;
    margin-bottom: 20vh;
    align-items: stretch;
}

#events p {
        margin-block-start: 1em;
        margin-block-end: 1em;
    }

#events img {
    width: 100%;
    height: auto;
}

#events .cursive, #contact .cursive, #shop .cursive {
    font-weight: 400;
    margin: 0;
}

.image-caption {
    font-size: .8rem !important;
    line-height: 120%;
}

.space-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

#events flex-end {
    margin-top: auto;
}

.landscape {
    aspect-ratio: 16/9;
}

.portrait {
    aspect-ratio: 4/5;
}

#full-width {
    height: 90vh;
    width: 100vw;
    margin-bottom: 20vh;
    margin-left: calc(-50vw + 50%);
    background-position: center;
}

#full-width-hero {
    height: 100vh;
    width: 100vw;
    margin-bottom: 10vh;
    margin-left: calc(-50vw + 50%);
    background-size: cover !important;
    background-position: center;
}

/*customer directory*/
.search-bar { margin-bottom: 2rem; text-align: center; }
.search-bar form {display: flex;}
        .search-bar input { min-width: 240px; padding: .5rem; font-size: 1rem; border-radius: .25rem; border: 1px solid var(--red); }
        .search-bar button { min-width: 120px; padding: .5rem 1rem; font-size: 1rem; background-color: var(--red); color: white; border: 0; border-radius: .25rem; cursor: pointer; }
        .customer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; width: 80%; margin: auto;}
        .customer-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); padding: 1.5rem; }
        .customer-card h3 { margin-top: 0; }
        .customer-card p { margin-bottom: .5rem; }

        .customer-card .stats { border-top: 1px solid #eee; margin-top: 1rem; padding-top: 1rem; }
        .customer-card .btn-view {
            display: block;
            text-align: center;
            padding: 0.5rem;
            margin-top: 1rem;
            background-color: var(--red);
            color: #fff;
            text-decoration: none;
            border-radius: .25rem;
            font-weight: 500;
            transition: background-color 0.15s ease-in-out;
            border: solid 2px var(--red);
        }
        .customer-card .btn-view:hover { background-color: #fff; color: var(--red); }
        .no-results { text-align: center; color: #6c757d; font-size: 1.2rem; }

 /*inventory page*/
 .btn-remove {
     min-width: 0px;
 }

   /* Card Styles for Ecommerce Look */
    .inventory-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
        align-items: start;
    }

    .item-card {
        border: 1px solid var(--light-pink);
        border-radius: 0.5rem;
        overflow: hidden;
        background: #fff;
        display: flex;
        flex-direction: column;
        transition: transform 0.2s;
    }

    .item-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Image Section */
    .card-hero-image-container {
        width: 100%;
        height: 250px;
        background-color: #f9f9f9;
        position: relative;
        border-bottom: 1px solid #eee;
        overflow: hidden;
    }

    .card-hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        cursor: pointer; /* Indicates clickable */
    }

    .no-image-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 0.9em;
        background: #f0f0f0;
    }

    /* Thumbnail Row */
    .thumbnail-row {
        display: flex;
        gap: 8px;
        padding: 8px 15px;
        background: #fff;
        overflow-x: auto;
        border-bottom: 1px solid #eee;
        scrollbar-width: thin; /* Firefox */
    }
    
    .thumbnail-row::-webkit-scrollbar {
        height: 6px;
    }
    .thumbnail-row::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 3px;
    }

    .thumb-img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #ddd;
        opacity: 0.7;
        transition: all 0.2s;
        cursor: pointer;
    }

    .thumb-img:hover {
        opacity: 1;
        border-color: var(--dark-red);
        transform: scale(1.05);
    }

    /* Content Section */
    .card-details {
        padding: 15px;
    }

    .card-price {
        font-size: 1.1em;
        font-weight: bold;
        color: var(--dark-red);
        margin-top: 5px;
    }

    /* Collapsible Admin Section Styles */
    .admin-tools-wrapper {
        padding: 0 15px 15px 15px;
        background-color: #fafafa;
        border-top: 1px solid #eee;
    }
    
    .collapsible-header {
        cursor: pointer;
        padding: 8px 10px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-top: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9em;
        font-weight: 600;
    }
    
    .collapsible-header:hover {
        background-color: #f0f0f0;
    }

    .collapsible-content {
        padding: 10px;
        border: 1px solid #ddd;
        border-top: none;
        border-radius: 0 0 4px 4px;
        background: #fff;
        display: none; 
        font-size: 0.9em;
    }

    .collapsible-content.active {
        display: block;
    }
    
    .status-badge {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8em;
        font-weight: bold;
        text-transform: uppercase;
    }

    .status-badge.sold, .status-badge.process { background-color: var(--red); var(--background-pink) }
    .status-badge.avail { background-color: var(--light-red); color: var(--dark-red) }

    .photo-manager-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .photo-item {
        position: relative;
        cursor: grab; /* Hand icon for dragging */
        border-radius: 0.25rem;
        overflow: hidden;
        border: 2px solid transparent;
        transition: all 0.2s;
        background: #f9f9f9;
    }
    
    .photo-item:active {
        cursor: grabbing; /* Closed hand when dragging */
    }
    
    /* SortableJS Ghost: The gray placeholder showing where item will drop */
    .photo-item.sortable-ghost {
        opacity: 0.4;
        background: #e0e0e0;
        border: 2px dashed #999;
    }

    .photo-manager-img {
        width: 100%;
        height: 70px;
        object-fit: cover;
        display: block;
        pointer-events: none; /* Prevents image dragging from interfering with div dragging */
    }

    /* Delete Button Styling */
    .delete-overlay {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 22px;
        height: 22px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-weight: bold;
        color: var(--dark-red);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        z-index: 10;
        font-size: 16px;
        line-height: 1;
    }
    
    .delete-overlay:hover {
        background: var(--red);
        color: white;
    }

    /* State: Marked for Deletion */
    .photo-item.marked-for-delete {
        opacity: 0.5;
        filter: grayscale(100%);
        border-color: var(--red);
    }
    
    .photo-item.marked-for-delete::after {
        content: "DELETE";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: var(--red);
        color: white;
        font-size: 0.7em;
        padding: 2px 4px;
        border-radius: 3px;
        font-weight: bold;
    }

    /* Add this to your existing <style> block */
    
    .pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin: 30px 0;
        padding: 20px;
    }

    .pagination-btn {
        padding: 8px 16px;
        border: 1px solid #ddd;
        background-color: #fff;
        color: var(--dark-red);
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

    .pagination-btn:hover {
        background-color: #f0f0f0;
        border-color: #bbb;
    }

    .pagination-btn.disabled {
        color: #ccc;
        pointer-events: none;
        background-color: #f9f9f9;
        border-color: #eee;
    }

    .pagination-info {
        color: #666;
        font-size: 0.9em;
        font-weight: 600;
    }


        /* --- UPDATED STYLES FOR SPREADSHEET TABLE --- */
        .item-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 1rem;
        }
        .item-table th, .item-table td {
            border: 1px solid #dee2e6;
            padding: .5rem;
            text-align: left;
            vertical-align: top;
        }
        .item-table th {
            background-color: #f1f3f5;
            font-weight: 500;
        }
        .item-table input, .item-table select {
            width: 100%;
            padding: .5rem .75rem;
            margin: 0;
            box-sizing: border-box;
            font-size: 1rem;
            border: 1px solid #ced4da;
            border-radius: .25rem;
        }
        /* Handle file input styling */
        .item-table input[type="file"] {
             padding: .3rem .5rem;
             font-size: 0.9rem;
        }
        .btn-remove {
            background-color: #dc3545;
            color: white;
            border: 0;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            cursor: pointer;
            font-weight: bold;
            line-height: 28px;
            padding: 0;
            font-size: 1rem;
        }
        .btn-remove:hover { background-color: #c82333; }

        .btn-secondary {
            background-color: #007bff;
            border-color: #007bff;
            margin-bottom: 1.5rem;
        }
        .btn-secondary:hover { background-color: #0069d9; }

        /* --- UPDATED COLUMN WIDTHS --- */
        .item-table th:nth-child(1) { width: 25%; } /* Brand */
        .item-table th:nth-child(2) { width: 10%; } /* Size */
        .item-table th:nth-child(3) { width: 20%; } /* Type */
        .item-table th:nth-child(4) { width: 15%; } /* Price */
        .item-table th:nth-child(5) { width: 20%; } /* Photos */
        .item-table th:nth-child(6) { width: 10%; text-align: center; } /* Remove */
        .item-table td:nth-child(6) { text-align: center; vertical-align: middle; }

/*inventory directory*/
.btn-clear {
    height: fit-content;
}

.filter-toggle {
    background-color: var(--light-red);
    color: var(--dark-red);
    position: fixed;
    left: 0;
    padding: 1rem;
    border: solid 2px var(--dark-red);
    border-radius: 0rem .5rem .5rem 0rem;
    transition: all 0.4s ease;
    overflow: hidden;
    min-height: 60px;
    z-index: 9;
}

.filter-toggle svg {
    color: var(--dark-red);
}



/* 1. The Container (Hidden by default) */
#filter-form-row {
    display: block; /* Ensure it's rendered */
    overflow: hidden; /* Cut off content when collapsed */

    /* Animation settings */
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;

    /* HIDDEN STATE VALUES */
    max-height: 0;
    opacity: 0;
    pointer-events: none; /* User cannot click links while hidden */
}

/* 2. The Visible State (Added by JS) */
#filter-form-row.filters-expanded {
    /* VISIBLE STATE VALUES */
    max-height: 1000px; /* Large enough to fit the form */
    opacity: 1;
    pointer-events: auto; /* Re-enable clicking */
}

/* 3. Arrow Rotation (Optional) */
.toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Rotate arrow when the PARENT container has the active class */
#filter-toggle.arrow-active .toggle-arrow {
    transform: rotate(90deg);
}



/* Hide everything inside when collapsed, except maybe a search icon */
#filter-toggle.is-collapsed .row {
    display: none;
}

#filter-toggle.is-collapsed::before {
    display: block;
}

/* 3. The Form Animation (Inside the toggle) */
#filter-form-row {
    max-height: 1000px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#filter-form-row.hidden {
    max-height: 0;
    opacity: 0;
    display: none;
}

    /* Force display and height logic */
    #filter-form-row {
        display: block !important;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }
    #filter-form-row.filters-expanded {
        max-height: 1000px !important;
        opacity: 1 !important;
    }


/* --- 2. The Collapsed "Mini-Button" State --- */
#filter-toggle.is-collapsed {
    margin-left: 0;
    cursor: pointer;
    background: var(--light-red);
    color: var(--dark-red);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: fixed;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 3%;
    height: fit-content;
    max-height: 140px;
    border-radius: 0rem .5rem .5rem 0rem !important;
    padding: .5rem !important;
}

/* Hide the internal rows when collapsed */
#filter-toggle.is-collapsed .row {
    display: none;
}

/* --- 3. The Vertical Text Label --- */
/* This pseudo-element creates the text only when collapsed */
#filter-toggle.is-collapsed::after {
    content: 'FILTER';
    font-size: 0.6rem;
    font-weight: bold;
    color: var(--dark-red);
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
}

/* --- 4. The Form Animation (Accordion) --- */
#filter-form-row {
    display: block;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.filter-toggle .space-between {
    flex-direction: row;
    align-content: center;
    margin-bottom: 1rem;
}

.space-between p {
    width: fit-content;
    height: fit-content;
    margin: 0;
}

/*old*/


.filter-form h2 {
    text-align: left;
    color: var(--background-pink);
}

.filter-form select {
    background-color: rgba(0,0,0,0);
    border: none;
    color: var(--dark-red);
}

.filter-form button {
    background-color: rgba(0,0,0,0);
    border: solid 2px var(--dark-red);
    border-radius: 0.5rem;
    padding: .5rem 1rem;
    color: var(--dark-red);
    font-size: 1rem;
}

.filter-form button:hover {
    background-color: var(--dark-red);
    color: var(--light-red);
}

select {
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
}

select option {
  background-color: var(--light-red);
  color: var(--dark-red);
  padding: 0.5rem;
}

.btn-clear {
    font-size: 1rem;
    color: var(--dark-red);
}

.filter-buttons {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.filter-grid {
    max-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group {
    display: flex;
    justify-content: space-between;
}

.filter-group select {
    width: 120px;
}

.filter-info { text-align: center; margin-bottom: 1rem; font-size: 1.1rem; }
        .filter-info a { margin-left: 1rem; }
        .inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; width: 80%; margin: auto;}
        .item-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); padding: 1.5rem; }
        .item-card h3 { margin-top: 0; }
        .item-card p { margin-bottom: .5rem; }
        .item-card .price { font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; }
        .item-card .status { font-weight: bold; }
        .item-card .status.sold { color: #000; }
        .item-card .photos { margin-top: 1rem; }
        .item-card .photos ul {
            list-style-type: none;
            padding-left: 0;
            display: flex; /* NEW: make thumbnails horizontal */
            flex-wrap: wrap; /* NEW: wrap if many photos */
            gap: 0.5rem; /* NEW: add spacing */
        }
        /* NEW: Style for thumbnails */
        .item-card .photos img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 4px;
            border: 1px solid #eee;
            cursor: pointer; /* NEW: Add pointer cursor */
        }
        /* New styles for the sell form */
        .sell-form {
            margin-top: 1rem;
            border-top: 1px solid #eee;
            padding-top: 1rem;
        }
        .sell-form input[type="number"] {
            width: 60%;
            padding: .25rem .5rem;
            margin-right: .5rem;
            border: 1px solid #ced4da;
            border-radius: .25rem;
        }
        .sell-form button {
            padding: .25rem .75rem;
            border: 0;
            border-radius: .25rem;
            cursor: pointer;
        }
        .sold-info { margin-top: 1rem; border-top: 1px solid #eee; padding-top: 1rem; }
        .sold-info p { margin-bottom: 0.25rem; }

        .no-results { text-align: center; color: #6c757d; font-size: 1.2rem; }
        .nav-link { display: block; margin-top: 2rem; text-align: center; }

        /* NEW: Modal Lightbox Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            padding-top: 50px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.8);
        }


        .modal-content {
    margin: auto;
    display: block;

    /* 1. Allow the image to size itself naturally */
    width: auto;
    height: auto;

    /* 2. Set hard limits for the viewport */
    max-width: 90vw;
    max-height: 90vh;

    /* 3. Ensure aspect ratio is preserved (useful fallback) */
    object-fit: contain;

    border-radius: 8px;
    animation-name: zoom;
    animation-duration: 0.3s;
}

        @keyframes zoom {
            from {transform:scale(0)}
            to {transform:scale(1)}
        }
        .modal-close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
        }
        .modal-close:hover,
        .modal-close:focus {
            color: #bbb;
            text-decoration: none;
        }

        /* NEW: Modal Navigation */
        .modal-prev,
        .modal-next {
            cursor: pointer;
            position: absolute;
            top: 50%;
            width: auto;
            padding: 16px;
            margin-top: -50px;
            color: white;
            font-weight: bold;
            font-size: 24px;
            transition: 0.3s ease;
            border-radius: 0 3px 3px 0;
            user-select: none;
            -webkit-user-select: none;
            background-color: rgba(0,0,0,0.3);
            display: none; /* Hide by default */
        }
        .modal-next {
            right: 0;
            border-radius: 3px 0 0 3px;
        }
        .modal-prev {
            left: 0;
        }
        .modal-prev:hover,
        .modal-next:hover {
            background-color: rgba(0,0,0,0.6);
        }

        /* ----- START: NEW QR CODE STYLES ----- */
        .qr-code-section {
            margin-top: 1rem;
            border-top: 1px solid #eee;
            padding-top: 1rem;
        }
        .qr-code-section a {
            display: block;
            width: 150px; /* Set a specific width for the QR code */
            margin: 0.5rem auto 0; /* Center the link/image */
            text-decoration: none;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 4px; /* A little breathing room */
            background: #fff;
            transition: border-color 0.2s ease;
        }
         .qr-code-section a:hover {
            border-color: #007bff; /* Add a blue hover effect */
         }
        .qr-code-section img {
            width: 100%; /* Image fills the link's width */
            height: auto;
            display: block; /* Removes any bottom spacing */
        }
        .qr-code-section p {
            text-align: center;
            margin-top: 0.25rem;
            margin-bottom: 0;
            color: #6c757d;
        }

        .add-photos-form {
            margin-top: 1rem;
            border-top: 1px solid #eee;
            padding-top: 1rem;
        }
        .add-photos-form label {
            display: block;
            font-weight: 500;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }
        .add-photos-form input[type="file"] {
            display: block;
            width: 100%;
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
        }
        .add-photos-form button {
            padding: .25rem .75rem;
            border: 0;
            border-radius: .25rem;
            cursor: pointer;
            font-weight: 500;
        }


        /*nav bar*/
        /* Flex container for nav content */
        .nav-container {
            display: flex;
            justify-content: space-between; /* Pushes logo left, links right */
            align-items: center;
            padding: 0rem 2rem;
        }

        /* Navigation links container */
        .nav-links {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }

        /* Navigation link styling */
        .nav-links a {
            text-decoration: none;
            color: var(--red);
            font-size: 1rem;
            height: fit-content;
            text-transform: uppercase;
        }

        /* Hide mobile button by default */
        .mobile-menu-button {
            display: none;
        }

        /*Responsive design*/
        @media (min-width: 1500px) {

            .extra-padding {
                padding-left: 15%;
                padding-right: 15%;
            }

            .mobile-only {
                display: none !important;
            }
        }

        @media (min-width: 769px) and (max-width: 1499px) {

            .extra-padding {
                padding-left: 0%;
                padding-right: 0%;
            }

            .mobile-only {
                display: none !important;
            }
        }


        /* Responsive: On smaller screens, hide links and show button */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            .mobile-menu-button {
                display: block;
                background: none;
                border: none;
                cursor: pointer;
            }
            .mobile-menu-button svg {
                width: 24px;
                height: 24px;
            }

            .btn-row {
                flex-direction: column;
            }

            .footer-nav .btn-row {
                flex-direction: row;
            }

            #full-width-hero {
                height: 58vh;
                margin-bottom: 4vh;
                background-position: center !important;
            }

            .large-block {
                width: 100%;
                margin-left: 0;
                margin-right: 0;
            }

            .centered {
                text-align: center;
            }

            .large-block h1 {
                font-size: 2.6rem;
            }

            .large-block h3, #intro .btn {
                font-size: 1.8rem;
            }

            #about, #contact, #shop {
                min-height: 0vh;
                max-height: none;
                margin-bottom: 10vh;
            }

            .landscape, .portrait {
                aspect-ratio: 1;
            }

            #events {
                gap: 1rem;
                margin-bottom: 10vh;
            }

            #events .background-image:first-child {
                margin-top: 2rem;
            }

            #contact-image {
                margin-top: 1rem;
            }

            .desktop-only {
                display: none !important;
            }

            .top-row h1 {
                font-size: 2.5rem;
                font-weight: 400;
            }

            .top-row p {
                font-size: 1.2rem;
            }

            .form-container {
                padding: 2rem;
            }

            .form-container .row {
                flex-direction: column;
                gap: 0rem;
            }

   
        }

        /* Page content for demo */
        .content {
            padding: 16px;
        }



/* New styles for photo deletion/selection */
.photo-delete-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 10px;
    max-height: 200px; /* Limit height for scrollability */
    overflow-y: auto;
    padding-right: 5px;
}

.photo-select-container {
    position: relative;
    width: 100%;
    height: 70px;
}

.photo-select-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.photo-checkbox {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
}