/* =========================================================================
   Back Market-style "Shop our most wanted" — scoped to .bm-featured-categories
   Visual layer only. All routes / slugs / data sources untouched.
   ========================================================================= */

.bm-featured-categories {
    background: transparent;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ---- Heading ---- */
.bm-featured-categories .bm-fc-head {
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.bm-featured-categories .bm-fc-heading {
    font-size: 22px;
    font-weight: 700;
    color: #0a1230;
    letter-spacing: -0.005em;
    margin: 0;
    line-height: 1.25;
}
@media (max-width: 767px) {
    .bm-featured-categories .bm-fc-heading { font-size: 18px; }
    .bm-featured-categories .bm-fc-head { margin-bottom: 14px; }
}

/* ---- Grid ---- */
.bm-featured-categories .bm-fc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1199px) {
    .bm-featured-categories .bm-fc-grid { gap: 14px; }
}
@media (max-width: 991px) {
    .bm-featured-categories .bm-fc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 575px) {
    .bm-featured-categories .bm-fc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---- Card (outer yellow tile) ---- */
.bm-featured-categories .bm-fc-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 260px;
    padding: 16px 16px 18px;
    border-radius: 14px;
    background: #d8f55a;                    /* Back Market signature lime-yellow */
    color: #0a1230 !important;
    text-decoration: none !important;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    border: none;
    cursor: pointer;
}
.bm-featured-categories .bm-fc-card:hover,
.bm-featured-categories .bm-fc-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    background: #cdef47;
    text-decoration: none !important;
    color: #0a1230 !important;
    outline: none;
}

@media (max-width: 991px) {
    .bm-featured-categories .bm-fc-card { height: 220px; padding: 14px 14px 16px; border-radius: 12px; }
}
@media (max-width: 575px) {
    .bm-featured-categories .bm-fc-card { height: 190px; padding: 12px 12px 14px; border-radius: 12px; }
}

/* ---- Image area — sits DIRECTLY on the yellow, no background frame ---- */
.bm-featured-categories .bm-fc-card-media {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    background: transparent;
    padding: 0;
}
.bm-featured-categories .bm-fc-card-media img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.12));
}
.bm-featured-categories .bm-fc-card:hover .bm-fc-card-media img {
    transform: scale(1.04);
}

/* ---- Card title (below the white tile, on the yellow) ---- */
.bm-featured-categories .bm-fc-card-title {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 2px;
    line-height: 1.25;
    color: #0a1230;
    letter-spacing: -0.005em;
    word-break: break-word;
}
@media (max-width: 991px) {
    .bm-featured-categories .bm-fc-card-title { font-size: 15px; margin-top: 10px; }
}
@media (max-width: 575px) {
    .bm-featured-categories .bm-fc-card-title { font-size: 14px; margin-top: 8px; }
}
