/* Wear the Cause — shared merch grid (homepage teaser + full page) */

:root {
    --color-navy: #011E42;
    --color-orange: #FF5F1F;
    --color-teal: #01B9B3;
}

/* —— Homepage teaser section —— */
.featured-merch-section {
    margin-top: 3rem;
    animation: fade-in 2s ease-in-out 2.3s both;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.featured-merch-heading {
    font-size: 0.875rem;
    color: var(--color-teal);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.featured-merch-subheading {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.featured-merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.featured-merch-grid--full {
    max-width: 960px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

/* —— Full Wear the Cause page —— */
.wear-the-cause-body {
    margin: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-navy);
    min-height: 100vh;
    padding: 1.5rem 1.25rem 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.wear-the-cause-back {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wear-the-cause-back:hover {
    color: #ff7a3d;
    text-decoration: underline;
}

.wear-the-cause-header {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.wear-the-cause-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.wear-the-cause-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 3.75rem);
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.wear-the-cause-lede {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    max-width: 32rem;
    margin: 0 auto 0.5rem;
    line-height: 1.55;
}

.wear-the-cause-count {
    font-size: 0.8rem;
    color: var(--color-teal);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

.wear-the-cause-main {
    max-width: 960px;
    margin: 0 auto;
}

.wear-the-cause-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.wear-the-cause-note a {
    color: var(--color-orange);
    text-decoration: underline;
}

.wear-the-cause-note a:hover {
    color: #ff7a3d;
}

/* —— Product cards —— */
.merch-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 95, 31, 0.25);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.merch-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-teal);
    box-shadow: 0 8px 24px rgba(1, 185, 179, 0.2);
}

.merch-card-image-wrap {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.merch-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.merch-card-info {
    padding: 0.75rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.merch-card-title {
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.merch-card-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0.25rem 0 0.5rem;
    padding: 0 0.15rem;
    min-height: 16px;
}

.merch-swatch {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.merch-swatch--image {
    border-color: rgba(255, 255, 255, 0.45);
}

.merch-swatch--fallback {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
}

.merch-card-price {
    font-size: 0.85rem;
    color: var(--color-orange);
    font-weight: 500;
}

.merch-loading,
.merch-error {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    padding: 2rem 1rem;
}

.merch-error a {
    color: var(--color-orange);
}

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

    .merch-card-title {
        font-size: 0.72rem;
    }

    .merch-swatch {
        width: 13px;
        height: 13px;
    }

    .merch-card-swatches {
        gap: 4px;
    }
}
