.home-device-categories {
    margin: 22px 0;
}

.home-device-categories-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.home-device-categories-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.home-device-categories-heading a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e53935;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-device-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-device-category-card {
    position: relative;
    display: block;
    min-height: 148px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
    color: #111827;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	margin-top: 10px;
}

.home-device-category-card:hover,
.home-device-category-card:focus {
    color: #111827;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.home-device-category-title {
    position: relative;
    z-index: 2;
    display: block;
    width: 68%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.home-device-category-card img {
    position: absolute;
    z-index: 1;
    right: -12px;
    bottom: -6px;
    width: 78%;
    height: 112px;
    object-fit: contain;
    object-position: right bottom;
    transition: transform 0.25s ease;
	
}

.home-device-category-card:hover img,
.home-device-category-card:focus img {
    transform: scale(1.04);
}

.home-device-category-placeholder {
    position: absolute;
    right: 20px;
    bottom: 14px;
    color: rgba(17, 24, 39, 0.22);
    font-size: 68px;
    line-height: 1;
}

.home-device-category-arrow {
    position: absolute;
    z-index: 3;
    left: 16px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #e53935;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.09);
}

@media (max-width: 991px) {
    .home-device-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .home-device-categories-heading h2 {
        font-size: 18px;
    }

    .home-device-categories-grid {
        gap: 9px;
    }

    .home-device-category-card {
        min-height: 132px;
        padding: 13px;
        border-radius: 10px;
    }

    .home-device-category-title {
        width: 76%;
        font-size: 14px;
    }

    .home-device-category-card img {
        right: -10px;
        width: 82%;
        height: 94px;
    }

    .home-device-category-arrow {
        left: 13px;
        bottom: 11px;
        width: 25px;
        height: 25px;
    }
}
