/* ===== MERCH PAGE ===== */

/* Container */
.merch-container {
    max-width: var(--content-width);
    width: 100%;
    margin: 0 auto;
    padding-top: 24px;
    padding-bottom: 60px;
    display: block;
}

/* 4-column grid */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 40px;
}

/* Individual card */
.merch-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.merch-item:hover {
    transform: scale(1.1);
    z-index: 2;
}

/* Image container */
.merch-item .item-card {
    /* No tile behind the shirt until hover */
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.merch-item:hover .item-card {
    background-color: #111;
    border-color: #333;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9), 0 0 28px rgba(255, 255, 255, 0.10);
}

.merch-item .item-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* a little glow around every item, a touch stronger on hover */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
    transition: filter 0.3s ease;
}

/* on hover the glow turns orange */
.merch-item:hover .item-card img {
    filter: drop-shadow(0 0 16px rgba(240, 122, 40, 0.85));
}

/* Loading / empty */
.merch-loading {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    padding: 60px 0;
    font-family: "Redaction 70", "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Footer */
.merch-footer {
    text-align: center;
    color: #f07a28;
    font-family: "Redaction 70", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 40px 0 20px 0;
    width: 100%;
}

/* Modal overrides */
.modal-buy-threadless {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #999;
    border: 1px solid #444;
    border-radius: 3px;
    font-family: "Redaction 70", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-buy-threadless:hover {
    color: #fff;
    border-color: #999;
}

/* Temporarily switched off: visible, greyed out, not clickable */
.modal-buy-threadless.disabled,
.modal-buy-threadless.disabled:hover {
    color: #555;
    border-color: #2a2a2a;
    cursor: not-allowed;
    pointer-events: none;
}

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

@media (max-width: 1200px) {
    .merch-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

}

@media (max-width: 768px) {
    .merch-container {
        padding-top: 20px;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .merch-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }    .merch-footer {
        font-size: 1.2rem;
        padding: 30px 0 20px 0;
    }}

@media (max-width: 480px) {
    .merch-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .merch-item .item-card {
        padding: 4px;
    }}

/* the shirt popup is a little smaller than the film one */
#merchModal .view-box {
    width: min(820px, 100%);
    padding: 40px 40px;
}
