/* category-hub.css — Product hub page for top-level category landing pages (PBI #45402) */

/* ── Hero Section ─────────────────────────────────────────── */
.cathub-hero {
    padding: 2rem 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.cathub-hero__heading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #262626;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.cathub-hero__desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    color: #555;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Subcategory Cards Grid ───────────────────────────────── */
.cathub-section {
    padding: 1.5rem 1rem;
}

.cathub-section__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #262626;
    margin: 0 0 1rem;
    text-align: center;
}

.cathub-subcat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cathub-subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-decoration: none;
    color: #262626;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.cathub-subcat-card:hover {
    border-color: #C4112F;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #262626;
}

.cathub-subcat-card__name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ── Trending Products Section ────────────────────────────── */
.cathub-trending {
    padding: 1.5rem 1rem;
    background: #f8f8f8;
}

.cathub-trending__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #262626;
    margin: 0 0 1rem;
    text-align: center;
}

.cathub-trending__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cathub-trending__empty {
    text-align: center;
    color: #888;
    padding: 2rem 1rem;
    grid-column: 1 / -1;
}

/* Card styling is provided by plp-redesign.css (.product-card*, .btn-add-cart). */

/* ── Value Props Strip ────────────────────────────────────── */
.cathub-value-props {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.cathub-value-prop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.cathub-value-prop:last-child {
    border-bottom: none;
}

.cathub-value-prop__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    border-radius: 50%;
    color: #C4112F;
}

.cathub-value-prop__text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cathub-value-prop__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #262626;
}

.cathub-value-prop__desc {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.125rem;
}

/* ── View All Link ────────────────────────────────────────── */
.cathub-view-all {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.cathub-view-all__link {
    display: inline-block;
    padding: 0.6rem 2rem;
    border: 1.5px solid #C4112F;
    border-radius: 8px;
    color: #C4112F;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.cathub-view-all__link:hover {
    background: #C4112F;
    color: #fff;
    text-decoration: none;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.cathub-breadcrumb {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #666;
}

.cathub-breadcrumb a {
    color: #C4112F;
    text-decoration: none;
}

.cathub-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Loading spinner ──────────────────────────────────────── */
.cathub-loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
    grid-column: 1 / -1;
}

.cathub-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e5e5;
    border-top-color: #C4112F;
    border-radius: 50%;
    animation: cathub-spin 0.6s linear infinite;
}

@keyframes cathub-spin {
    to { transform: rotate(360deg); }
}

/* ── Tablet: 3-column grid ────────────────────────────────── */
@media (min-width: 600px) {
    .cathub-hero__heading {
        font-size: 1.75rem;
    }

    .cathub-subcat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .cathub-trending__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .cathub-value-props {
        grid-template-columns: repeat(3, 1fr);
    }

    .cathub-value-prop {
        border-bottom: none;
        border-right: 1px solid #e5e5e5;
        justify-content: center;
    }

    .cathub-value-prop:last-child {
        border-right: none;
    }
}

/* ── Desktop: 4-5 column grid ─────────────────────────────── */
@media (min-width: 1024px) {
    .cathub-hero {
        padding: 2.5rem 2rem 2rem;
    }

    .cathub-hero__heading {
        font-size: 2rem;
    }

    .cathub-hero__desc {
        font-size: 1rem;
    }

    .cathub-section {
        padding: 2rem;
    }

    .cathub-subcat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .cathub-subcat-card {
        padding: 1.25rem 1rem;
    }

    .cathub-subcat-card__name {
        font-size: 0.95rem;
    }

    .cathub-trending {
        padding: 2rem;
    }

    .cathub-trending__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}
