/* Category overview only. Public catalogue visibility and photo selection stay server-owned. */
.category-overview {
    --category-brand: #14613f;
    --category-ink: #17211d;
    --category-muted: #56645b;
    --category-soft: #eef4ef;
    --category-focus: #9b6a13;
    color: var(--category-ink);
}
.category-overview-header {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line, #dfe6e0);
    border-radius: 24px;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 32px;
    padding: clamp(20px, 3vw, 36px);
}
.category-eyebrow { color: var(--category-brand); font-size: .8rem; font-weight: 750; letter-spacing: .12em; margin: 0 0 12px; text-transform: uppercase; }
.category-overview h1 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); font-weight: 750; line-height: 1.15; margin: 0 0 16px; overflow-wrap: anywhere; }
.category-intro { color: var(--category-muted); font-size: 1rem; line-height: 1.65; margin: 0 0 16px; max-width: 44ch; }
.category-overview .category-all-link {
    align-items: center;
    color: var(--category-brand);
    display: inline-flex;
    font-weight: 700;
    gap: 12px;
    min-height: 44px;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 5px;
}
.category-overview-stats { background: var(--category-brand); border-radius: 18px; color: #fff; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 24px; }
.category-overview-stats > div { display: flex; flex-direction: column; min-width: 0; }
.category-overview-stats dt { font-size: .9rem; font-weight: 500; order: 2; }
.category-overview-stats dd { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 750; line-height: 1.2; margin: 0 0 8px; overflow-wrap: anywhere; }
.category-overview-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); list-style: none; margin: 0; padding: 0; }
.category-overview-grid > li { min-width: 0; }
.category-overview .category-card { align-items: stretch; background: #fff; border: 1px solid var(--line, #dfe6e0); border-radius: 18px; color: var(--category-ink); display: flex; flex-direction: column; gap: 0; height: 100%; overflow: hidden; padding: 0; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.category-overview .category-card:hover { border-color: var(--category-brand); box-shadow: 0 8px 24px rgba(20, 97, 63, .12); transform: none; }
.category-overview .category-preview { align-items: center; background: var(--category-soft); display: flex; flex: 0 0 176px; height: 176px; justify-content: center; opacity: 1; overflow: hidden; position: relative; width: 100%; }
.category-preview-fallback { color: var(--category-brand); font-size: 2.8rem; position: absolute; }
.category-preview-image { background: var(--category-soft); height: 100% !important; object-fit: contain !important; object-position: center; position: relative; width: 100% !important; }
.category-card-content { display: flex; flex: 1; flex-direction: column; gap: 24px; padding: 22px; }
.category-card-title { color: var(--category-ink); font-size: 1.1rem; font-weight: 700; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.category-card-meta { align-items: center; color: var(--category-muted); display: flex; gap: 12px; justify-content: space-between; margin-top: auto; }
.category-card-meta > span:first-child { overflow-wrap: anywhere; }
.category-card-arrow { align-items: center; background: var(--category-soft); border-radius: 50%; color: var(--category-brand); display: flex; flex: 0 0 36px; height: 36px; justify-content: center; }
.category-overview a:focus-visible { outline: 3px solid var(--category-focus); outline-offset: 4px; }
.category-overview-bottom { margin-top: 32px; text-align: center; }
.category-empty { background: #fff; border: 1px solid var(--line, #dfe6e0); border-radius: 18px; padding: 48px 24px; text-align: center; }
.category-empty > i { color: var(--category-brand); font-size: 2rem; margin-bottom: 20px; }
.category-empty h2 { font-size: 1.4rem; }
.category-empty p { color: var(--category-muted); margin-bottom: 0; }
@media (min-width: 900px) {
    .category-overview-header { grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .category-view .main-navbar .navbar-collapse { flex-wrap: wrap; row-gap: 8px; }
    .category-view .main-navbar .navbar-nav.me-auto { flex: 1 0 100%; }
}
.category-view .mini-navbar a { color: #14613f; }
@media (max-width: 599px) {
    .category-view .main-navbar .navbar-brand { font-size: 1.1rem; margin-right: .5rem !important; }
    .category-view .main-navbar .btn.d-lg-none { min-height: 44px; min-width: 44px; padding: .5rem; }
    .category-view .main-navbar .navbar-toggler { min-height: 44px; padding: 6px; }
    .category-overview-header { border-radius: 18px; gap: 20px; }
    .category-overview-stats { gap: 12px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .category-overview .category-card { transition: none; }
}
