* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9fafb;
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
}

.dropdown-content a:hover {
    background: #f3f4f6;
}

.signin-btn {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 8px 16px;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: none;
}

.signin-btn.show {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 8px 16px;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: block;
}

.location-container {
    position: relative;
}

.location-btn {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 4px 16px;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;        /* or just flex */
    flex-direction: column;      /* ← this stacks children vertically */
    align-items: flex-start;     /* left-aligned – change to center if preferred */
    gap: 2px;                    /* space between the two lines */
    font-size: 14px;             /* optional – helps with readability */
    line-height: 1.3;            /* optional – tighter than default */
}

.location-menu {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 10px 8px;
    top: 100%;
    left: 0;
}

.location-menu.show {
    display: block;
}

.location-menu.location-zip {
}

.save-location-btn {
    background: #3b82f6;
    color: white;
    padding: 4px 2px;
    text-decoration: none;
    display: inline-block;
    border: none;               /* ← kills native button border */
    outline: none;
    border-radius: 4px;
}

.avatar-btn {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
}

.user-menu {
    position: relative;
    display: none;
}

.user-menu.show {
    position: relative;
    display: block;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 10px 0;
    margin-top: 10px;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
}

.logout-link {
    color: #ef4444 !important;
}

.main-content {
    padding-top: 60px;   /* ← start here, adjust up/down by 10px until it looks perfect */
}

/* Hero */
.hero {
    /*background-image: url('/static/images/hero.jpg');*/
    background-size: cover;
    background-position: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Categories */
.categories-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.categories-section h2 {
    margin-bottom: 30px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.category-card h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}

.browse-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.browse-btn {
    background: #3b82f6;
    color: white;
    width: 60%;
    text-align: center;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

/* Equipment List */
.equipment-page {
    /*max-width: 1200px;*/
    margin: 20px auto;
    padding: 0 20px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


.equipment-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

.filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

/* Filter mobile toggle - hidden on desktop */
.filter-toggle {
    display: none;
}

.filter-overlay {
    display: none;
}

.filter-close {
    display: none;
}

.filters input, .filters select {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/*
.radio-group {
    margin: 10px 0;
}
*/

/*
.radio-group label {
    display: block;
    margin: 5px 0;
}
*/

/*
.radio-label {
  display: flex;
  align-items: center; 
  gap: 8px;            
  cursor: pointer;     
  margin-bottom: 10px; 
}
*/

.radio-group {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;                  /* Consistent vertical spacing between options */
}

.radio-label {
    display: grid;
    grid-template-columns: 24px 1fr;  /* Fixed width for radio, rest for text */
    align-items: center;              /* Vertically center radio and text */
    gap: 10px;                         /* Space between radio and text */
    cursor: pointer;
    font-size: 1rem;
}

/* Ensure the radio button itself has no extra margin and consistent size */
.radio-label input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    justify-self: start;  /* Ensures radio stays left-aligned in its grid cell */
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.equipment-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.equipment-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.placeholder-img {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.card-content {
    padding: 16px;
}

.card-content h3 {
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    font-size: 1.2rem;
    color: #3b82f6;
    margin: 10px 0;
}

.condition-badge {
    padding: 4px 8px;
    background: #10b981;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
    margin: 10px 0;
}

.view-btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 40px;
}

/* Equipment Detail */
.equipment-detail {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.detail-images img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.description {
    margin: 20px 0;
}

.owner-actions {
    margin-top: 20px;
}

.owner-actions button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #3b82f6;
    color: white;
}

.delete-btn {
    background: #ef4444 !important;
}

/* Dashboard */
.dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
}

.dashboard-sidebar {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.dashboard-sidebar nav a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    margin: 5px 0;
    border-radius: 4px;
}

.dashboard-sidebar nav a.active {
    background: #3b82f6;
    color: white;
}

.dashboard-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* Dashboard mobile toggle - hidden on desktop */
.dashboard-menu-toggle {
    display: none;
}

.dashboard-overlay {
    display: none;
}

.sidebar-close {
    display: none;
}

/* Auth */
.authButtons {
    display: flex;              /* Align children horizontally */
    gap: 12px;                  /* Small space between buttons (adjust as needed) */
    justify-content: center;    /* Optional: center the buttons in the container */
    align-items: center;        /* Optional: vertically center if heights differ */
}

/* Optional: make buttons look consistent */
.authButtons button {
    padding: 10px 20px;
    cursor: pointer;
    /* Add any other shared button styles here */
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
}

.auth-container {
    max-width: 400px;
    width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.auth-container h1 {
    margin-bottom: 20px;
}

.auth-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.auth-container button {
    width: 100%;
    padding: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when menu is open */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 640px) {
    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }

    /* Mobile nav container adjustments */
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding: 10px 20px;
    }

    /* Smaller logo on mobile */
    .logo {
        font-size: 1.1rem;
        flex: 1;
    }

    /* Hide desktop nav items */
    .nav-menu {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 15px 0;
        border-top: 1px solid #e5e7eb;
        margin-top: 10px;
    }

    /* Show mobile menu when active */
    .nav-menu.active {
        display: flex;
    }

    /* Mobile dropdown styling */
    .nav-menu .dropdown {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    /* Mobile dropdown content - show inline */
    .nav-menu .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        padding: 0;
        padding-left: 20px;
        background: #f9fafb;
    }

    .nav-menu .dropdown.active .dropdown-content {
        display: block;
    }

    .nav-menu .dropdown-content a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    /* Location container on mobile */
    .location-container {
        order: 4;
        width: 100%;
        margin-top: 10px;
    }

    .location-btn {
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .location-menu {
        width: 100%;
        left: 0;
        right: 0;
    }

    /* Auth buttons on mobile */
    .nav-auth {
        order: 5;
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e5e7eb;
    }

    .authButtons {
        width: 100%;
        justify-content: center;
    }

    .authButtons .signin-btn.show {
        flex: 1;
        text-align: center;
    }

    /* User menu on mobile */
    .user-menu {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .user-menu.show {
        display: flex;
        justify-content: center;
    }

    .user-dropdown {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    /* Other mobile adjustments */
    .equipment-container {
        grid-template-columns: 1fr;
        position: relative;
    }

    /* Mobile filter toggle button */
    .filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #3b82f6;
        color: white;
        border: none;
        padding: 10px 16px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.95rem;
        margin-bottom: 15px;
        order: -1;
    }

    .filter-toggle .filter-icon {
        font-size: 1.1rem;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1100;
    }

    .filter-overlay.active {
        display: block;
    }

    /* Slide-in filter panel */
    .filters {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1200;
        padding: 20px;
        padding-top: 60px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .filters.active {
        right: 0;
    }

    .filter-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 28px;
        color: #666;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }

    .filter-close:hover {
        color: #333;
    }

    .filters h3 {
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .filters h3:first-of-type {
        margin-top: 0;
    }

    .equipment-detail {
        grid-template-columns: 1fr;
    }

    /* Dashboard mobile sidebar */
    .dashboard {
        grid-template-columns: 1fr;
        position: relative;
    }

    .dashboard-menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #3b82f6;
        color: white;
        border: none;
        padding: 10px 16px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .dashboard-menu-toggle .toggle-icon {
        font-size: 1.2rem;
    }

    .dashboard-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1100;
    }

    .dashboard-overlay.active {
        display: block;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        background: #fff;
        z-index: 1200;
        padding: 20px;
        padding-top: 60px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .dashboard-sidebar.active {
        left: 0;
    }

    .sidebar-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 28px;
        color: #666;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }

    .sidebar-close:hover {
        color: #333;
    }

    .dashboard-sidebar nav a {
        padding: 14px 10px;
        font-size: 1rem;
    }

    /* Equipment grid - smaller cards on mobile */
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    /* Equipment swiper height on mobile */
    .equipment-swiper {
        height: 300px;
    }

    /* Details grid single column */
    .details-grid {
        grid-template-columns: 1fr;
    }

    /* Categories grid on mobile */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Hero adjustments */
    .hero-content h1 {
        font-size: 1.5rem;
    }

    /* Auth container mobile padding */
    .auth-container {
        margin: 15px;
        padding: 20px;
    }

    .auth-container h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .auth-container input {
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .auth-container button {
        padding: 14px;
        font-size: 1rem;
    }

    .auth-container p {
        margin-top: 15px;
        font-size: 0.9rem;
    }

    /* Profile & Equipment form containers */
    .profile-form-container,
    .equipment-edit-container {
        padding: 15px;
    }

    .profile-form-container h1,
    .equipment-edit-container h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Form rows - single column on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Form groups spacing */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .form-help {
        font-size: 0.8rem;
    }

    /* Form actions - stack buttons vertically */
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions button {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    /* Form messages */
    .form-message {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Uppy dropzone mobile */
    .uppy-DragDrop-container {
        min-height: 120px;
    }

    .uppy-DragDrop-label {
        font-size: 0.9rem;
    }

    /* Existing images thumbnails on mobile */
    #existing-images .relative {
        flex: 0 0 100px;
        height: 100px;
    }

    #existing-images .relative button {
        width: 28px;
        height: 28px;
        font-size: 18px;
        top: 4px;
        right: 4px;
    }

    /* ZIP suggestions dropdown mobile */
    .zip-suggestions {
        position: relative;
        width: 100%;
    }

    .zip-dropdown-menu {
        max-height: 200px;
    }

    .zip-dropdown-menu > li {
        padding: 12px 10px;
        font-size: 0.95rem;
    }

    /* Dashboard content padding on mobile */
    .dashboard-content {
        padding: 15px;
    }

    /* ===== EQUIPMENT DETAIL PAGE MOBILE ===== */
    .equipment-detail {
        padding: 0 15px;
        margin: 15px auto;
        gap: 1.5rem;
    }

    /* Smaller title on mobile */
    .detail-info h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    /* Smaller price on mobile */
    .detail-info .price {
        font-size: 1.5rem;
    }

    /* Details grid - single column on mobile */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .details-grid div {
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .details-grid div:last-child {
        border-bottom: none;
    }

    /* Condition badge smaller */
    .detail-info .condition-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Description section */
    .description h3 {
        font-size: 1.1rem;
    }

    .description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Swiper/carousel mobile adjustments */
    .equipment-swiper {
        height: 250px;
        border-radius: 8px;
    }

    .placeholder-img {
        height: 200px;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Smaller swiper navigation buttons */
    .equipment-detail .swiper-button-next,
    .equipment-detail .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }

    .equipment-detail .swiper-button-next:after,
    .equipment-detail .swiper-button-prev:after {
        font-size: 14px;
    }

    /* Contact seller form mobile */
    .contact-seller {
        padding: 1.25rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .contact-seller form {
        gap: 1rem;
    }

    .contact-seller input[type="text"],
    .contact-seller input[type="email"],
    .contact-seller input[type="tel"],
    .contact-seller textarea {
        padding: 12px;
        font-size: 16px; /* Prevent iOS zoom */
        border-radius: 6px;
    }

    .contact-seller textarea {
        min-height: 100px;
    }

    .contact-seller button {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        border-radius: 6px;
        align-self: stretch;
    }

    /* Owner actions mobile */
    .owner-actions {
        flex-direction: column;
        gap: 10px;
    }

    .owner-actions button {
        width: 100%;
        padding: 12px;
    }

    /* Breadcrumb on mobile */
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 15px;
        padding: 0 15px;
    }

    /* Equipment page container */
    .equipment-page {
        padding: 0 10px;
    }
}

.profile-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-form-container h1 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #6b7280;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
}

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

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #4b5563;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ZIP autocomplete */
.zip-dropdown-menu {
    position: relative;                    /* relative */
    outline: none;                         /* focus:outline-none */
    overflow-y: auto;                      /* overflow-y-auto */
    padding-top: 0.25rem;                  /* scroll-py-1 → py-1 = 0.25rem */
    padding-bottom: 0.25rem;
    ring: 1px solid #e5e7eb;               /* ring-1 ring-gray-200 */
    border-radius: 0.375rem;               /* rounded-md */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    background-color: #ffffff;             /* bg-white */
    padding: 0.25rem;                      /* p-1 */
    max-height: 15rem;                     /* max-h-60 → 60 × 0.25rem = 15rem */
  }
  
  .zip-dropdown-menu:focus {
    outline: none;                         /* ensures focus:outline-none works */
  }
  
  /* Dark mode variants */
  /*
  @media (prefers-color-scheme: dark) {
    .zip-dropdown-menu {
      --tw-ring-color: #374151;            
      background-color: #1f2937;           
    }
  }
  */
  /* Ring implementation for browsers that don't support the `ring` custom property yet */
  .zip-dropdown-menu {
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: #e5e7eb;             /* light ring-gray-200 */
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    border: 1px solid transparent;        /* creates space for the ring */
  }
  
  .zip-dropdown-menu > li {
    cursor: default;                       /* cursor-default */
    user-select: none;                     /* select-none */
    position: relative;                    /* relative */
    display: flex;                         /* flex */
    align-items: center;                   /* items-center */
    justify-content: space-between;        /* justify-between */
    gap: 0.25rem;                          /* gap-1 */
    border-radius: 0.375rem;               /* rounded-md */
    padding-left: 0.375rem;                /* px-1.5 → 0.375rem */
    padding-right: 0.375rem;
    padding-top: 0.375rem;                 /* py-1.5 → 0.375rem */
    padding-bottom: 0.375rem;
    font-size: 0.875rem;                   /* text-sm */
    line-height: 1.25rem;
    color: #111827;                        /* text-gray-900 */
    /*color: #1913c5;                        /* text-gray-900 */
  }

  .zip-dropdown-menu > li:hover {
    background-color: #f3f4f6;
  }
  
  /* Dark mode text color */
/*  @media (prefers-color-scheme: dark) {
    .zip-dropdown-menu > li {
      color: #ffffff;                     
    }
  }
*/
.hidden  { display: none; }

.zip-suggestions { 
 }
/*
.zip-suggestions { 
    position: absolute;          
    z-index: 10;                 
    width: 100%;                 
    margin-top: 0.25rem;         
    background-color: #ffffff;   
    border: 1px solid #d1d5db;   
    border-radius: 0.5rem;       
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05); 
    display: none;     
 }
*/

.equipment-edit-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.equipment-edit-container h1 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
} 

/* Swiper */
.equipment-swiper {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.equipment-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-thumbs {
    height: 80px;
    margin-top: 12px;
}

.equipment-thumbs .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.equipment-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #3b82f6;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

/* Fix the insane width bug */
.swiper-slide {
    width: 100% !important;
    height: 100%;
}

/* Make sure the main container has proper layout */
.equipment-swiper {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #000; /* optional: nice black background while loading */
}

.equipment-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Existing Images Thumbnails – PERFECT SIZE & LAYOUT */
/*
#existing-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

#existing-images .relative {
    aspect-ratio: 1 / 1;          
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

#existing-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#existing-images .relative button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#existing-images .relative:hover button {
    opacity: 1;
}

#existing-images .relative button:hover {
    background: rgb(220, 38, 38);
    transform: scale(1.1);
}
*/

/* Existing Images Thumbnails — FINAL VERSION */
/*
#existing-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

#existing-images .relative {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #fff;
    transition: transform 0.2s;
}

#existing-images .relative:hover {
    transform: translateY(-4px);
}

#existing-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#existing-images .relative button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

#existing-images .relative:hover button {
    opacity: 1;
    transform: scale(1);
}

#existing-images .relative button:hover {
    background: #dc2626;
    transform: scale(1.1);
}
*/
/* Existing Images — Horizontal scrollable row (like Facebook/Instagram) */
#existing-images {
    margin-top: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;           /* forces horizontal layout */
    padding: 8px 0;
    scrollbar-width: thin;
}

#existing-images::-webkit-scrollbar {
    height: 8px;
}

#existing-images::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#existing-images::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 10px;
}

#existing-images .flex {
    display: inline-flex;
    gap: 16px;
    padding: 0 4px;
}

#existing-images .relative {
    position: relative;
    flex: 0 0 140px;               /* fixed width */
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #fff;
    transition: transform 0.2s;
}

#existing-images .relative:hover {
    transform: translateY(-6px);
}

#existing-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Big red X — appears on hover */
#existing-images .relative button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    /*
    opacity: 0;
    transform: scale(0.9);
    */
    opacity: 1;
    transform: scale(1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    z-index: 10;
}

#existing-images .relative:hover button {
    opacity: 1;
    transform: scale(1);
}

#existing-images .relative button:hover {
    background: #dc2626;
    transform: scale(1.15);
}

/* Sellers Page */
.sellers-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.sellers-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}

.sellers-container main {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.sellers-container h1 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.sellers-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 24px; /* Adds consistent space after each paragraph */
}

.sellers-container ul {
    list-style: none;
    padding-left: 0;
    margin: 28px 0;
}

.sellers-container ul li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

.sellers-container ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.4rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sellers-container main {
        padding: 25px;
    }
    
    .sellers-container h1 {
        font-size: 1.8rem;
    }
    
    .sellers-container ul li {
        padding-left: 35px;
    }
}