/* ============================================================
   Unseelie Workshop — Shop Page Styles
   ============================================================ */

/* ---- Hero ---- */
.shop-hero {
    padding: 5rem 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.shop-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    text-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 0.5rem;
}

.shop-intro {
    font-size: 1rem;
    color: rgba(245, 241, 232, 0.7);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

/* ---- Filter bar ---- */
.shop-filter-row {
    padding: 1.5rem 4rem 0;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

#filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.filter-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.filter-row-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(245, 241, 232, 0.3);
    white-space: nowrap;
}

.filter-row-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.4rem 1rem;
    background: transparent;
    color: rgba(245, 241, 232, 0.55);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 2rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.filter-pill:hover:not(.active) {
    color: rgba(245, 241, 232, 0.85);
    border-color: rgba(201, 169, 97, 0.45);
    background: rgba(201, 169, 97, 0.06);
}

.filter-pill.active {
    background: rgba(201, 169, 97, 0.15);
    color: var(--gold);
    border-color: rgba(201, 169, 97, 0.5);
}

.filter-count {
    font-size: 0.78rem;
    color: rgba(245, 241, 232, 0.35);
    letter-spacing: 0.5px;
    padding-top: 0.25rem;
    white-space: nowrap;
}

/* ---- Shop output area ---- */
.shop-section {
    padding: 2rem 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- Product grid ---- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
}

/* ---- Product card ---- */
.shop-card {
    background: rgba(26, 37, 42, 0.4);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.25s ease;
    will-change: transform;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--gold);
}

/* Hidden state — fade out in place rather than vanishing */
.shop-card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
    position: absolute;
    visibility: hidden;
}

.shop-card-image {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.shop-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 65%);
}

.shop-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.shop-card:hover .shop-card-img {
    transform: scale(1.04);
}

.shop-card-placeholder {
    width: 100%;
    height: 100%;
}

.shop-card-body {
    padding: 1.2rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-card-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 0.35rem;
    color: rgba(245, 241, 232, 0.4);
}

.shop-card-tag::before {
    content: '❖';
    color: var(--tag-color);
    margin-right: 0.4em;
}

.shop-card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.6rem;
}

.shop-card-price {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 400;
    margin-bottom: 1rem;
    margin-top: auto;
}

.shop-card-link {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(245, 241, 232, 0.45);
    text-decoration: none;
    transition: color 0.25s ease;
    align-self: flex-start;
}

.shop-card-link:hover {
    color: var(--gold);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .shop-hero {
        padding: 4rem 2rem 1.5rem;
    }

    .shop-hero h1 {
        font-size: 3rem;
    }

    .shop-filter-row {
        padding: 1.5rem 2rem 0;
    }

    .shop-section {
        padding: 2rem 2rem 4rem;
    }

    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .filter-count {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}
