/* ============================================================
   SGLS PRODUCT CATEGORIES — sgls-categories.css
   Add to: sgls-child-fixed/sgls-categories.css
   ============================================================ */


/* ── Section shell ──────────────────────────────────────────── */

.sgls-cats {
    background: #F0F4F0;
    padding: 56px 0 60px;
}

.sgls-cats__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 44px;
}


/* ── Section header ─────────────────────────────────────────── */

.sgls-cats__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.sgls-cats__eyebrow {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #007A3D;
    margin: 0 0 8px;
}

/* H2 — contrast: #1A1A1A on #F0F4F0 = 16.8:1 ✅ */
.sgls-cats__title {
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
}

/* "View all" link — contrast: #005C2E on #F0F4F0 = 7.1:1 ✅ */
.sgls-cats__viewall {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #005C2E;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.15s, gap 0.15s;
}

.sgls-cats__viewall:hover {
    border-bottom-color: #005C2E;
    gap: 8px;
}

.sgls-cats__viewall:focus-visible {
    outline: 3px solid #007A3D;
    outline-offset: 3px;
}


/* ── Category grid — 4 columns ──────────────────────────────── */

.sgls-cats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}


/* ── Individual category card ───────────────────────────────── */

.sgls-cats__card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid #C0DEC8;
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
    writing-mode: horizontal-tb;
    word-break: normal;
}

.sgls-cats__card:hover {
    border-color: #007A3D;
    background: #EBF5EF;
    box-shadow: 0 2px 12px rgba(0, 122, 61, 0.08);
}

.sgls-cats__card:focus-visible {
    outline: 3px solid #007A3D;
    outline-offset: 3px;
}

/* Placeholder cards (URL still #) — slightly muted */
.sgls-cats__card--placeholder {
    opacity: 0.75;
    cursor: default;
    pointer-events: none;
}


/* ── Card icon ──────────────────────────────────────────────── */

.sgls-cats__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #EBF5EF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007A3D;
    transition: background 0.15s, color 0.15s;
}

.sgls-cats__icon svg {
    width: 20px;
    height: 20px;
}

.sgls-cats__card:hover .sgls-cats__icon {
    background: #007A3D;
    color: #ffffff;
}


/* ── Category name ──────────────────────────────────────────── */
/* Contrast: #1A1A1A on #fff = 18.1:1 ✅ */

.sgls-cats__name {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.35;
    flex: 1;
    word-break: normal;       
    overflow-wrap: normal;    
    white-space: normal;      
    writing-mode: horizontal-tb; 
}


/* ── Arrow ──────────────────────────────────────────────────── */
/* Contrast: #007A3D on #fff = 5.2:1 ✅ */

.sgls-cats__arrow {
    font-size: 14px;
    color: #007A3D;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.sgls-cats__card:hover .sgls-cats__arrow {
    opacity: 1;
    transform: translateX(3px);
}


/* ── RESPONSIVE: Tablet (≤900px) — 2 columns ───────────────── */

@media (max-width: 900px) {

    .sgls-cats__inner {
        padding: 0 28px;
    }

    .sgls-cats {
        padding: 44px 0 48px;
    }

    .sgls-cats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


/* ── RESPONSIVE: Mobile (≤600px) — 1 column ────────────────── */

@media (max-width: 600px) {

    .sgls-cats__inner {
        padding: 0 20px;
    }

    .sgls-cats {
        padding: 36px 0 40px;
    }

    .sgls-cats__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sgls-cats__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sgls-cats__arrow {
        opacity: 1;
    }
}


/* ── REDUCED MOTION ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .sgls-cats__card,
    .sgls-cats__icon,
    .sgls-cats__arrow,
    .sgls-cats__viewall {
        transition: none;
    }

    .sgls-cats__card:hover .sgls-cats__arrow {
        transform: none;
    }
}
