.collection-section {
    padding: 0 16px 72px;
    background: #ffffff;
}

.collection-section__inner {
    width: min(100%, 1380px);
    margin: 0 auto;
}

.collection-section__header {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.collection-section__eyebrow {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.collection-section__title {
    margin: 0 0 10px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.3vw, 2.7rem);
    font-weight: 700;
}

.collection-section__subtitle {
    margin: 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.collection-section__grid,
.collection-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .collection-section__grid,
    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .collection-section__grid,
    .collection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.collection-section__actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.collection-section__actions .hero__button {
    min-width: 180px;
}

.collection-section__empty-state {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 48px 24px;
    border: 1px dashed rgba(27, 106, 92, 0.22);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(27, 106, 92, 0.04), rgba(198, 166, 89, 0.04));
    text-align: center;
}

.collection-section__empty-title {
    margin: 0;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 700;
}

.collection-section__empty-copy {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-card__image {
    display: block;
    transition: opacity 280ms ease;
}

.product-card__title-link {
    text-decoration: none;
}

/* product-tile wrapper: ensure grid treats this as a single item */
.product-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* fixed card height for consistent tiles */
    height: 420px;
}

.product-tile__meta {
    padding: 0 8px 8px;
    flex: 0 0 56px; /* reserve a compact area for title + price */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1024px) {
    .product-tile { height: 380px; }
    .product-tile__meta { flex: 0 0 56px; }
}

@media (max-width: 768px) {
    .collection-section__grid {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-tile { height: 340px; }
    .product-tile__meta { flex: 0 0 60px; padding: 0 4px 8px; }

    .collection-section .product-card__title {
        white-space: normal;
        overflow: hidden;
        text-overflow: clip;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

.product-card__title {
    transition: color 220ms ease;
}

.product-card__title-link:hover .product-card__title {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .collection-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .collection-section__grid,
    .collection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .collection-section .product-card__title,
    .collection-grid .product-card__title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        display: block;
    }

    .collection-section .product-tile__meta,
    .collection-grid .product-tile__meta {
        flex: 0 0 auto;
        min-height: 72px;
    }
}
