/*
 * Merchandise Page Styles
 * File: css/merch_page.css
 * Notes:
 * - Page-specific styles layered on top of css/w5obm-main.css (theme system)
 * - Avoids inline styles and keeps selectors merch-scoped to prevent collisions
 */

:root {
    --merch-accent: #fd7e14;
    --merch-accent-2: #ff6b35;
}

body.merch-page {
    background: var(--bg-light, #f4f6f9);
}

/* Section headings */
.merch-section-heading {
    color: var(--primary-blue, #031A54);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.merch-divider {
    width: 96px;
    height: 5px;
    background: var(--accent-gold, #FFD700);
    margin: 0.75rem auto 1.25rem;
    border-radius: 999px;
}

/* Shop section */
.merch-shop {
    padding: 3rem 0 5rem;
    background: var(--bg-primary, #ffffff);
}

.merch-shop-shell {
    background: var(--bg-primary, #ffffff);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: var(--shadow-xl, 0 20px 40px rgba(0, 0, 0, 0.12));
    border: 1px solid rgba(3, 26, 84, 0.12);
    min-height: 600px;
    position: relative;
}

.merch-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    z-index: 10;
    opacity: 1;
    transition: opacity 250ms ease;
}

.merch-loading-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.merch-loading-content {
    text-align: center;
}

.merch-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(3, 26, 84, 0.12);
    border-top: 5px solid var(--merch-accent);
    border-radius: 50%;
    animation: merch-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes merch-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.merch-loading-text {
    color: var(--primary-blue, #031A54);
}

/* Feature cards */
.merch-features {
    background: var(--bg-secondary, #f8f9fa);
    padding: 5rem 0;
}

.merch-feature-card {
    background: var(--bg-primary, #ffffff);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--shadow-lg, 0 12px 28px rgba(0, 0, 0, 0.12));
    transition: transform 220ms ease, box-shadow 220ms ease;
    height: 100%;
    border-left: 5px solid var(--merch-accent);
    text-align: center;
}

.merch-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl, 0 20px 40px rgba(0, 0, 0, 0.16));
}

.merch-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--merch-accent), var(--merch-accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    font-size: 2rem;
    transition: transform 220ms ease;
}

.merch-feature-card:hover .merch-feature-icon {
    transform: scale(1.08) rotate(4deg);
}

.merch-feature-heading {
    color: var(--primary-blue, #031A54);
    font-weight: 800;
}

/* Buttons */
.btn-merch {
    background: linear-gradient(135deg, var(--merch-accent), var(--merch-accent-2));
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease;
    text-decoration: none;
    display: inline-block;
}

.btn-merch:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(253, 126, 20, 0.35);
    color: #ffffff;
    text-decoration: none;
}

/* CTA */
.merch-cta {
    background: linear-gradient(135deg, var(--primary-blue, #031A54), var(--secondary-blue, #145EFF));
    color: #ffffff;
}

@media (max-width: 768px) {
    .merch-shop-shell {
        padding: 1.25rem;
        min-height: 420px;
    }

    .merch-feature-card {
        padding: 2rem;
    }
}