/* ---------------- MERCH SPECIFIC ---------------- */

/* Unlocks the scroll specifically for the Merch page */
html, body.merch-page {
    overflow-y: auto !important; 
    height: auto !important;
}

.merch-page {
    background: #0c0c10;
    min-height: 100vh;
    display: block; 
}

/* ---------------- NAVIGATION TIDY UP ---------------- */

.merch-nav {
    padding: 60px 8vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left, .nav-right {
    flex: 1;
}

.nav-center {
    flex: 2;
    text-align: center;
}

.nav-right {
    text-align: right;
}

.shop-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0;
}

.back-link {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    color: #fff;
    opacity: 0.6;
    transition: 0.3s;
}

.back-link:hover {
    opacity: 1;
}

.cart-icon {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* ---------------- GRID & IMAGE FIX ---------------- */

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 80px 40px; /* Breathing room for buttons */
    padding: 0 8vw 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.merch-item {
    display: flex;
    flex-direction: column;
}

.item-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #15151a;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(30%);
    transition: transform 0.8s ease;
}

/* ---------------- SOLD OUT OVERLAY & BADGES ---------------- */

.sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 16, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    letter-spacing: 2px;
    opacity: 1;
    z-index: 2;
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    color: #000;
    padding: 6px 12px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 3;
}

/* ---------------- ITEM INFO ---------------- */

.item-info {
    padding-top: 25px;
    text-align: left;
}

.item-info h3 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.item-info p {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 20px;
}

.buy-btn.disabled {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: not-allowed;
}

/* ---------------- FOOTER TIDY UP ---------------- */

.merch-footer {
    text-align: center;
    padding: 100px 8vw 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 50px;
}

.archive-note {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.4;
    margin-bottom: 15px;
}

.copyright {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.2;
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 800px) {
    .merch-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .merch-nav {
        flex-direction: column;
        gap: 20px;
        padding: 40px 8vw;
    }

    .nav-left, .nav-right, .nav-center {
        text-align: center;
        flex: none;
    }
}