/* ═══════════════════════════════════════════════════════════════════════════
   Collections Showcase page

   Grid cards (.collection-card) reuse the feature panel's flat
   .collection-feature__image / __overlay / __title / __cta classes directly,
   so both the large feature and the grid stay visually identical — only
   .collection-card's own rules + the two size overrides below differ.
   ═══════════════════════════════════════════════════════════════════════════ */

.collections-showcase {
    padding-bottom: var(--space-16);
}

.collections-showcase__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: start;
}

/* ─── Feature panel ──────────────────────────────────────────────────────── */

.collection-feature {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.collection-feature__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-feature__image--placeholder {
    background-color: var(--bg-tertiary);
}

.collection-feature__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-8);
    /* Image-specific overlay, not a theme surface — stays dark in both themes
       so the white CTA text always reads clearly over the photo. */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05) 60%);
}

.collection-feature__title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 400;
    line-height: 1.05;
    max-width: 9ch;
    margin-bottom: var(--space-4);
    color: var(--overlay-text);
}

.collection-feature__cta {
    align-self: flex-start;
}

/* ─── Grid ───────────────────────────────────────────────────────────────── */

.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Grid card — same image/overlay/title/cta classes as .collection-feature,
   just smaller. Sizing only; colors, gradient, and font come from the
   shared classes above. */
.collection-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-tertiary);
    transition: box-shadow var(--duration-base) var(--ease);
}

.collection-card:hover {
    box-shadow: var(--shadow-md);
}

.collection-card .collection-feature__overlay {
    padding: var(--space-5);
}

.collection-card .collection-feature__title {
    font-size: var(--text-lg);
    max-width: none;
    margin-bottom: var(--space-3);
}

@media (min-width: 480px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .collections-showcase__layout {
        grid-template-columns: minmax(320px, 40%) 1fr;
        gap: var(--space-8);
    }

    .collections-showcase__feature {
        position: sticky;
        top: calc(var(--navbar-height) + var(--space-6));
    }

    .collection-feature {
        aspect-ratio: auto;
        height: calc(100vh - var(--navbar-height) - var(--space-12));
    }
}
