/* ======================================================================
   Product categories — Cohort 3 (Bay Tech / Navy + Pomegranate Red)
   Rebuilt from sandbox Design-3. Self-contained palette + font stack
   scoped to .product-categories-3-strip so the cohort renders correctly
   even when mixed-and-matched with other cohorts' sections.

   Bold 3-up tile grid: corner orange count chip, navy fill on hover.
   Class pattern: product-categories-3-{element}.
   ====================================================================== */

/* ---------- Cohort-3 palette + font stack scoped to the strip ---------- */
.product-categories-3-strip {
    --bs-body-bg:             #F5F5F5;
    --bs-body-color:          #222222;
    --bs-primary:             #EF4923;
    --bs-primary-rgb:         239, 73, 35;
    --bs-light-primary:       #FEE8E2;
    --bs-secondary:           #2B398F;
    --bs-secondary-rgb:       43, 57, 143;
    --bs-secondary-color:     #6C757D;
    --bs-secondary-bg:        #E3E7F5;
    --bs-border-color:        #DEE2E6;
    --bs-heading-font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    background: var(--bs-body-bg);
}

/* ---------- Head — asymmetric left/right with red eyebrow chip ---------- */
.product-categories-3-eyebrow {
    background: var(--bs-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.product-categories-3-title {
    font-family: var(--bs-heading-font-family);
    color: var(--bs-body-color);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-categories-3-sub {
    color: var(--bs-secondary-color);
    font-size: 0.88rem;
}

/* ---------- Tile — flat white card, fills navy on hover ---------- */
.product-categories-3-tile {
    background: #fff;
    border: 1.5px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 24px 20px 20px;
    color: var(--bs-body-color);
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.product-categories-3-tile:hover,
.product-categories-3-tile:focus {
    background: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(var(--bs-secondary-rgb), 0.18);
    text-decoration: none;
}

/* ---------- Corner count chip — orange pill top-right ---------- */
.product-categories-3-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bs-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    z-index: 2;
}
.product-categories-3-tile:hover .product-categories-3-corner,
.product-categories-3-tile:focus .product-categories-3-corner {
    background: #fff;
    color: var(--bs-secondary);
}

/* ---------- Icon ---------- */
.product-categories-3-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background 0.25s ease, color 0.25s ease;
}
.product-categories-3-icon-wrap img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.product-categories-3-tile:hover .product-categories-3-icon-wrap,
.product-categories-3-tile:focus .product-categories-3-icon-wrap {
    background: var(--bs-primary);
    color: #fff;
}

/* ---------- Name ---------- */
.product-categories-3-name {
    font-family: var(--bs-heading-font-family);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    line-height: 1.25;
    word-break: break-word;
}

/* ---------- Browse arrow link footer ---------- */
.product-categories-3-arrow {
    color: var(--bs-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: gap 0.2s ease, color 0.25s ease;
}
.product-categories-3-arrow svg {
    transition: transform 0.2s ease;
}
.product-categories-3-tile:hover .product-categories-3-arrow,
.product-categories-3-tile:focus .product-categories-3-arrow {
    color: #fff;
}
.product-categories-3-tile:hover .product-categories-3-arrow svg,
.product-categories-3-tile:focus .product-categories-3-arrow svg {
    transform: translateX(4px);
}

/* ---------- Responsive tightening ---------- */
@media (max-width: 575.98px) {
    .product-categories-3-title { font-size: 1.4rem; }
    .product-categories-3-tile { padding: 18px 16px 16px; }
    .product-categories-3-icon-wrap { width: 56px; height: 56px; margin-bottom: 12px; }
    .product-categories-3-icon-wrap svg,
    .product-categories-3-icon-wrap img { width: 32px; height: 32px; }
    .product-categories-3-name { font-size: 1rem; margin-bottom: 8px; }
    .product-categories-3-corner { font-size: 0.65rem; padding: 2px 8px; }
}
