/* ===================================
   Collections Listing Page
   =================================== */

/* ── Hero ─────────────────────────────────────── */

.collections-hero {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.collections-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 166, 81, 0.05);
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 30% 100%);
    pointer-events: none;
}

.collections-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
    align-items: center;
    gap: var(--spacing-lg);
}

.collections-hero-content {
    padding: 3.5rem 0;
    position: relative;
    z-index: 1;
}

/* Eyebrow override — green on dark navy bg */
.collections-hero-content .section-eyebrow {
    color: var(--secondary-color);
}

.collections-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    margin: 0.5rem 0 1rem;
}

.collections-hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    max-width: 440px;
    margin: 0;
}

/* Right: decorative thumbnail grid */
.collections-hero-deco {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 2.5rem 0;
    position: relative;
    z-index: 1;
    opacity: 0.88;
    justify-self: end;
    width: 100%;
    max-width: 340px;
}

.collections-hero-deco-thumb {
    border-radius: 0.75rem;
    overflow: hidden;
}

.collections-hero-deco-thumb:nth-child(1) { aspect-ratio: 1; }
.collections-hero-deco-thumb:nth-child(2) { aspect-ratio: 1; }
.collections-hero-deco-thumb:nth-child(3) { aspect-ratio: 1; }
.collections-hero-deco-thumb:nth-child(4) { grid-column: span 2; aspect-ratio: 2/1; }
.collections-hero-deco-thumb:nth-child(5) { aspect-ratio: 1; }
.collections-hero-deco-thumb:nth-child(6) { aspect-ratio: 1; }
.collections-hero-deco-thumb:nth-child(7) { aspect-ratio: 1; }
.collections-hero-deco-thumb:nth-child(8) { aspect-ratio: 1; }

/* ── Filter section ───────────────────────────── */

.collections-filter-section {
    padding: 2rem 0 0;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.4375rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-gray);
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.filter-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-white);
}

.filter-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* ── Collections grid ─────────────────────────── */

.collections-content {
    padding: 2rem 0 var(--spacing-xl);
}

.collections-count {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* ── Empty state ──────────────────────────────── */

.collections-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.collections-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.collections-empty p {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--text-gray);
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 992px) {
    .collections-hero-inner {
        grid-template-columns: 1fr;
    }

    .collections-hero-deco {
        display: none;
    }

    .collections-hero-content {
        padding: 3rem 0;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .collections-hero-content h1 {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }

    .collections-hero-subtitle {
        font-size: 0.9375rem;
    }
}

@media (max-width: 600px) {
    .collections-hero-content {
        padding: 2.5rem 0;
    }
}

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

    .filter-pills {
        gap: 0.375rem;
    }

    .filter-pill {
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
    }
}
