
.wb-home-premium-grid {
    margin-bottom: 28px;
}

.wb-home-normal-head {
    margin-top: 6px;
}

.wb-home-ilan-grid.wb-ilan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1024px) {
    .wb-home-ilan-grid.wb-ilan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .wb-home-ilan-grid.wb-ilan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}


.wb-homepage-shell {
    padding: 28px 0 42px;
    background: #f7f8fa;
}

.wb-home-section-head {
    margin-bottom: 18px;
}

.wb-home-section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wb-home-section-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.wb-home-all-link {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.wb-home-all-link:hover {
    text-decoration: underline;
}

.wb-home-categories-section {
    margin-bottom: 30px;
}

.wb-home-categories-slider {
    padding-bottom: 4px;
}

.wb-home-categories-slider::-webkit-scrollbar {
    display: none;
}

.wb-home-categories-track {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 16px;
}


.wb-home-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}



.wb-home-category-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 10px 8px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.wb-home-category-media {
    display: block;

    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
   align-content: center;
    flex-shrink: 0;
    align-items: center;
}

.wb-home-category-media img {
width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    padding: 4px;
}

.wb-home-category-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    text-align: center;
    word-break: break-word;
}


.wb-home-category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #6b7280;
}


.wb-home-listings-section {
    margin-top: 6px;
}

.wb-home-ilan-grid {
    margin-top: 16px;
}

.wb-home-infinite-status {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    margin-top: 18px;
}

.wb-home-loader-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #d1d5db;
    border-top-color: #111827;
    border-radius: 50%;
    display: inline-block;
    animation: wbHomeSpin .8s linear infinite;
}

@keyframes wbHomeSpin {
    to {
        transform: rotate(360deg);
    }
}

.wb-home-end-message {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

#wb-home-scroll-sentinel {
    height: 1px;
}


@media (max-width: 1024px) {
    .wb-home-categories-slider {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .wb-home-categories-track {
        display: flex;
        gap: 10px;
        width: max-content;
    }

    .wb-home-category-card {
        min-width: calc((100vw - 64px) / 8);
        max-width: calc((100vw - 64px) / 8);
        flex: 0 0 calc((100vw - 64px) / 8);
        padding: 8px 6px;
        border-radius: 12px;
        gap: 6px;
    }

    .wb-home-category-media {
        border-radius: 8px;
    }

    .wb-home-category-media img {
        padding: 4px;
    }

    .wb-home-category-name {
        font-size: 11px;
        line-height: 1.15;
        min-height: 26px;
    }
}

@media (max-width: 767px) {
    .wb-homepage-shell {
        padding: 18px 0 30px;
    }

    .wb-home-section-title {
        font-size: 20px;
    }

    .wb-home-categories-slider {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .wb-home-categories-track {
        display: flex;
        gap: 8px;
        width: max-content;
    }

    .wb-home-category-card {
        min-width: calc((100vw - 48px) / 4);
  box-shadow: none;
        padding: 7px 5px;
        border-radius: 10px;
        gap: 5px;
    }

    .wb-home-category-media {
        border-radius: 8px;
    }

    .wb-home-category-media img {
        padding: 3px;
        width: 55px;
        height: 55px;
        object-fit: contain;
    }

    .wb-home-category-name {
        font-size: 10px;
        line-height: 1.1;
        min-height: 22px;
    }
}