/* =========================================================
   MARANATHA MERCH
   Catálogo premium
========================================================= */

:root {
    --merch-bg: #05050a;
    --merch-bg-soft: #0a0a12;
    --merch-card: rgba(15, 15, 27, 0.84);
    --merch-card-strong: #10101c;
    --merch-border: rgba(255, 255, 255, 0.09);
    --merch-border-active: rgba(141, 92, 246, 0.42);
    --merch-text: #ffffff;
    --merch-muted: #aaaabd;
    --merch-purple: #8b5cf6;
    --merch-purple-light: #a78bfa;
    --merch-blue: #3b82f6;
    --merch-gold: #d6b56d;
    --merch-success: #56d99a;
    --merch-warning: #f0bf63;
    --merch-danger: #ff7085;
    --merch-radius-xl: 32px;
    --merch-radius-lg: 24px;
    --merch-radius-md: 16px;
    --merch-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}


/* =========================================================
   PÁGINA
========================================================= */

.merch-page {
    min-height: 100vh;
    overflow: hidden;
    color: var(--merch-text);
    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(124, 58, 237, 0.13),
            transparent 27rem
        ),
        radial-gradient(
            circle at 88% 38%,
            rgba(37, 99, 235, 0.1),
            transparent 30rem
        ),
        var(--merch-bg);
}


/* =========================================================
   HERO
========================================================= */

.merch-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: end;
    gap: 4rem;
    width: min(1380px, calc(100% - 48px));
    min-height: 610px;
    margin: 34px auto 0;
    padding: clamp(40px, 7vw, 96px);
    overflow: hidden;
    border: 1px solid var(--merch-border);
    border-radius: var(--merch-radius-xl);
    background:
        linear-gradient(
            120deg,
            rgba(7, 7, 14, 0.98),
            rgba(15, 10, 31, 0.94) 55%,
            rgba(7, 18, 37, 0.94)
        );
    box-shadow: var(--merch-shadow);
}

.merch-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.2;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 52px 52px;
    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 95%
    );
}

.merch-hero::after {
    content: "";
    position: absolute;
    top: -200px;
    right: -130px;
    z-index: -1;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.018),
        0 0 0 140px rgba(255, 255, 255, 0.012);
}

.merch-hero__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.merch-hero__glow--one {
    top: -120px;
    left: 26%;
    width: 380px;
    height: 380px;
    background: rgba(124, 58, 237, 0.2);
}

.merch-hero__glow--two {
    right: 2%;
    bottom: -180px;
    width: 440px;
    height: 440px;
    background: rgba(37, 99, 235, 0.15);
}

.merch-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.merch-eyebrow,
.merch-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--merch-purple-light);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.merch-eyebrow::before,
.merch-section-label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.merch-hero h1 {
    max-width: 850px;
    margin: 22px 0 22px;
    font-size: clamp(4rem, 10vw, 8.4rem);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.merch-hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
    text-stroke: 1px rgba(255, 255, 255, 0.7);
}

.merch-hero__content > p {
    max-width: 650px;
    margin: 0;
    color: var(--merch-muted);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.8;
}

.merch-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.merch-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.merch-button:hover {
    transform: translateY(-3px);
}

.merch-button--primary {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--merch-purple),
        var(--merch-blue)
    );
    box-shadow: 0 14px 34px rgba(99, 65, 220, 0.34);
}

.merch-button--primary:hover {
    box-shadow: 0 18px 45px rgba(99, 65, 220, 0.46);
}

.merch-button--secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(14px);
}

.merch-button--secondary:hover {
    border-color: rgba(167, 139, 250, 0.48);
    background: rgba(255, 255, 255, 0.075);
}

.merch-hero__message {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 380px);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.merch-hero__message span {
    display: block;
    margin-bottom: 10px;
    color: var(--merch-gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.merch-hero__message strong {
    display: block;
    font-size: clamp(1.45rem, 3vw, 2.4rem);
    line-height: 1.1;
}


/* =========================================================
   CATÁLOGO
========================================================= */

.merch-catalog {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(80px, 10vw, 140px) 0;
}

.merch-catalog__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 36px;
}

.merch-catalog__header > div:first-child {
    max-width: 730px;
}

.merch-catalog__header h2 {
    margin: 14px 0 12px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.merch-catalog__header p {
    max-width: 650px;
    margin: 0;
    color: var(--merch-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.merch-product-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 7px;
    white-space: nowrap;
}

.merch-product-count strong {
    color: var(--merch-purple-light);
    font-size: 2.3rem;
    font-weight: 900;
}

.merch-product-count span {
    color: var(--merch-muted);
    font-size: 0.9rem;
}


/* =========================================================
   HERRAMIENTAS
========================================================= */

.merch-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
    padding: 12px;
    border: 1px solid var(--merch-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.028);
    backdrop-filter: blur(16px);
}

.merch-search {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.22);
    transition:
        border-color 180ms ease,
        background 180ms ease;
}

.merch-search:focus-within {
    border-color: var(--merch-border-active);
    background: rgba(0, 0, 0, 0.34);
}

.merch-search svg {
    flex: 0 0 auto;
    width: 20px;
    fill: none;
    stroke: var(--merch-muted);
    stroke-width: 1.7;
    stroke-linecap: round;
}

.merch-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    font: inherit;
}

.merch-search input::placeholder {
    color: #77778b;
}

.merch-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.merch-filter-pill {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--merch-muted);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.merch-filter-pill:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.merch-filter-pill.is-active {
    color: #ffffff;
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.26),
        rgba(59, 130, 246, 0.18)
    );
}


/* =========================================================
   GRID
========================================================= */

.merch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   TARJETA
========================================================= */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--merch-border);
    border-radius: var(--merch-radius-lg);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        ),
        var(--merch-card);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
    transition:
        transform 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.product-card:hover {
    transform: translateY(-9px);
    border-color: rgba(139, 92, 246, 0.33);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.36),
        0 0 45px rgba(124, 58, 237, 0.08);
}

.product-card[hidden] {
    display: none;
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 4.7;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(139, 92, 246, 0.16),
            transparent 45%
        ),
        #0b0b13;
}

.product-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition:
        transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 300ms ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.065);
    filter: brightness(0.78);
}

.product-card__placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.3);
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.12),
            rgba(59, 130, 246, 0.05)
        );
}

.product-card__placeholder span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.25em;
}

.product-card__placeholder strong {
    margin-top: 8px;
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.product-card__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 6, 12, 0.68);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-badge--available {
    border-color: rgba(86, 217, 154, 0.27);
}

.product-badge--limited {
    border-color: rgba(240, 191, 99, 0.32);
    color: #ffd98f;
}

.product-badge--sold-out {
    border-color: rgba(255, 112, 133, 0.3);
    color: #ff9baa;
}

.product-card__overlay {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    display: flex;
    transform: translateY(22px);
    opacity: 0;
    transition:
        transform 240ms ease,
        opacity 240ms ease;
}

.product-card:hover .product-card__overlay {
    transform: translateY(0);
    opacity: 1;
}

.product-card__quick-add,
.product-card__unavailable {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    backdrop-filter: blur(18px);
}

.product-card__quick-add {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.92),
        rgba(59, 130, 246, 0.92)
    );
    box-shadow: 0 12px 34px rgba(59, 58, 190, 0.32);
}

.product-card__unavailable {
    color: #d6d6df;
    background: rgba(8, 8, 15, 0.82);
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.product-card__collection {
    color: var(--merch-purple-light);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 10px 0 10px;
    color: #ffffff;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.product-card__description {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--merch-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card__stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #c4c4d0;
    font-size: 0.78rem;
    font-weight: 650;
}

.stock-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--merch-success);
    box-shadow: 0 0 12px rgba(86, 217, 154, 0.7);
}

.stock-dot--limited {
    background: var(--merch-warning);
    box-shadow: 0 0 12px rgba(240, 191, 99, 0.65);
}

.stock-dot--empty {
    background: var(--merch-danger);
    box-shadow: 0 0 12px rgba(255, 112, 133, 0.65);
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-top: auto;
    padding-top: 24px;
}

.product-card__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card__price > span {
    color: #77778b;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card__price strong {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.product-card__price small {
    color: var(--merch-muted);
    font-size: 0.63rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.product-card__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 17px;
    border: 1px solid rgba(139, 92, 246, 0.34);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(139, 92, 246, 0.12);
    font-size: 0.77rem;
    font-weight: 850;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.product-card__button:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.62);
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.88),
        rgba(59, 130, 246, 0.82)
    );
    box-shadow: 0 12px 26px rgba(77, 66, 205, 0.28);
}

.product-card__button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-card__button--disabled {
    color: #777785;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.035);
    cursor: not-allowed;
}

.product-card__button--disabled:hover {
    transform: none;
    box-shadow: none;
}


/* =========================================================
   SIN RESULTADOS / SIN PRODUCTOS
========================================================= */

.merch-no-results,
.merch-empty-state {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 370px;
    padding: 45px 24px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--merch-radius-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.018);
}

.merch-no-results.is-visible {
    display: flex;
}

.merch-no-results__icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.08);
    font-size: 1.7rem;
}

.merch-no-results h3,
.merch-empty-state h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.merch-no-results p,
.merch-empty-state p {
    margin: 0;
    color: var(--merch-muted);
}

.merch-empty-state {
    display: flex;
}

.merch-empty-state__icon {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: 22px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 50%;
    color: var(--merch-purple-light);
    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.16),
            transparent 70%
        );
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .merch-hero {
        grid-template-columns: 1fr;
        align-items: center;
        min-height: 590px;
    }

    .merch-hero__message {
        justify-self: start;
    }

    .merch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .merch-hero,
    .merch-catalog {
        width: min(100% - 28px, 1380px);
    }

    .merch-hero {
        min-height: 560px;
        margin-top: 18px;
        padding: 52px 28px;
        border-radius: 25px;
    }

    .merch-hero h1 {
        font-size: clamp(3.4rem, 16vw, 6rem);
    }

    .merch-catalog {
        padding: 80px 0;
    }

    .merch-catalog__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .merch-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .merch-search {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .merch-hero,
    .merch-catalog {
        width: min(100% - 20px, 1380px);
    }

    .merch-hero {
        min-height: auto;
        padding: 54px 22px 26px;
        border-radius: 22px;
    }

    .merch-hero h1 {
        margin-top: 18px;
        font-size: clamp(3rem, 18vw, 4.6rem);
        line-height: 0.86;
    }

    .merch-hero__content > p {
        font-size: 0.94rem;
    }

    .merch-hero__actions {
        flex-direction: column;
    }

    .merch-button {
        width: 100%;
    }

    .merch-hero__message {
        width: 100%;
        margin-top: 20px;
        padding: 21px;
    }

    .merch-catalog__header h2 {
        font-size: 2.65rem;
    }

    .merch-filter-pills {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .merch-filter-pill {
        min-width: 0;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .merch-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-card__media {
        aspect-ratio: 4 / 4.55;
    }

    .product-card__overlay {
        display: none;
    }

    .product-card__body {
        padding: 21px;
    }

    .product-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .product-card__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card__image,
    .product-card__overlay,
    .product-card__button,
    .merch-button,
    .merch-filter-pill {
        transition: none;
    }
}