/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {
    .merch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
    .merch-card {
        width: 98vw;
        max-width: 500px;
        margin: 0 auto 20px auto;
    }
    .merch-img {
        max-width: 90vw;
        height: auto;
    }
    .header h1 { font-size: 2rem; }
    .header h2 { font-size: 1.1rem; }
}

/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: white;
    margin: 0;
    padding: 0;
}

.header { text-align: center; margin-top: 30px; margin-bottom: 20px; }

.dropdown { position: relative; display: inline-block; margin: 20px; }
.dropbtn { background-color: #009605; color: white; padding: 16px; font-size: 16px; font-weight: bold; border: none; cursor: pointer; border-radius: 5px; }

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #288f00;
    min-width: 200px;
    box-shadow: 0px 6px 14px 0px rgb(255, 255, 255);
    z-index: 1;
    border-radius: 5px;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; }
.dropdown-content a:hover { background-color: #015000; transition: background-color 0.3s; }
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }

/* Merch grid: 3 columns on larger screens */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 40px auto;
    max-width: 1100px;
    justify-items: center;
}

.merch-card {
    background: #111;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 260px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.merch-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 3px solid #009605;
}

.buy-btn {
    background-color: #009605;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.buy-btn:hover { background-color: #015000; }

/* Filter toolbar (reused from members) */
.filter-bar {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:center;
    margin: 18px auto 6px auto;
    max-width: 1100px;
}
.filter-btn {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight:600;
}
.filter-btn:hover { background: #2b2b2b; }
.filter-btn.active { background: #009605; color: #fff; border-color: #007200; }

/* Smooth hide/show for merch cards (used by merch-filter.js) */
.merch-card { transition: opacity 220ms ease, transform 220ms ease; }
.merch-card.hidden { opacity: 0; transform: scale(0.98); pointer-events: none; }
