/* WeTheme Category Cards */

.wetheme-category-cards {
    width: 100%;
}

.wetheme-category-cards .wcc-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 0 50px 0;
}

.wetheme-category-cards .wcc-title {
    margin: 0;
    font-weight: 700;
    text-align: center;
    font-size: 22px;
}

.wetheme-category-cards .wcc-title-underline {
    display: block;
    width: 56px;
    height: 3px;
    background: #1976d2;
    border-radius: 2px;
}

.wetheme-category-cards .wcc-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
}

.wetheme-category-cards .wetheme-category-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.wetheme-category-cards .wetheme-category-card img {
    max-width: 190px;
    height: 150px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: -50px 10px 20px 10px;
    transition: transform 0.8s ease;
    cursor: pointer;
}

.wetheme-category-cards .wetheme-category-card img:hover {
    transform: scale(1.2);
    transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}

.wetheme-category-cards .wetheme-category-card h3 {
    margin: 0 0 20px 0;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

.wetheme-category-cards .wetheme-category-card .view-more-container {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: -35px;
}

.wetheme-category-cards .wetheme-category-card .view-more-btn-text {
    background: #000;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    padding: 15px 15px;
    transition: background-color 0.3s ease;
    height: 35px;
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wetheme-category-cards .wetheme-category-card .view-more-btn-icon {
    background: #000;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    height: 35px;
    width: 30px;
}

.wetheme-category-cards .wetheme-category-card .view-more-container:hover .view-more-btn-text,
.wetheme-category-cards .wetheme-category-card .view-more-container:hover .view-more-btn-icon {
    background: #ff9800;
}

.wetheme-category-cards .wetheme-category-card .view-more-btn-icon i {
    font-size: 12px;
}

/* RTL Support */
html[dir='rtl'] .wetheme-category-cards .wetheme-category-card .view-more-btn i {
    order: 2;
}

/* Responsive */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .wetheme-category-cards .wcc-title-wrap {
        margin-bottom: 40px;
    }

    .wetheme-category-cards .wcc-title {
        font-size: 20px;
    }

    .wetheme-category-cards .wcc-title-underline {
        width: 50px;
        height: 2.5px;
    }

    .wetheme-category-cards .wcc-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 80px !important;
    }

    .wetheme-category-cards .wetheme-category-card {
        padding: 18px;
        border-radius: 14px;
    }

    .wetheme-category-cards .wetheme-category-card img {
        max-width: 170px;
        height: 135px;
        margin: -45px 10px 18px 10px;
    }

    .wetheme-category-cards .wetheme-category-card h3 {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-container {
        margin-bottom: -32px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-btn-text {
        font-size: 12.5px;
        padding: 13px 13px;
        height: 32px;
        width: 120px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-btn-icon {
        font-size: 12px;
        height: 32px;
        width: 29px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-btn-icon i {
        font-size: 11.5px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .wetheme-category-cards .wcc-title-wrap {
        margin-bottom: 30px;
    }

    .wetheme-category-cards .wcc-title {
        font-size: 18px;
    }

    .wetheme-category-cards .wcc-title-underline {
        width: 45px;
        height: 2px;
    }


    .wetheme-category-cards .wetheme-category-card {
        padding: 15px;
        border-radius: 12px;
    }

    .wetheme-category-cards .wetheme-category-card img {
        max-width: 120px;
        height: 90px;
        margin: -40px 10px 15px 10px;
    }

    .wetheme-category-cards .wetheme-category-card h3 {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-container {
        margin-bottom: -30px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-btn-text {
        font-size: 12px;
        padding: 12px 12px;
        height: 25px;
        width: 95px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-btn-icon {
        font-size: 11px;
        height: 25px;
        width: 25px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-btn-icon i {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .wetheme-category-cards .wcc-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px !important;
    }

    .wetheme-category-cards .wcc-title-wrap {
        margin-bottom: 25px;
    }

    .wetheme-category-cards .wcc-title {
        font-size: 16px;
    }

    .wetheme-category-cards .wcc-title-underline {
        width: 40px;
        height: 2px;
    }

    .wetheme-category-cards .wetheme-category-card {
        padding: 12px;
        border-radius: 10px;
    }

    .wetheme-category-cards .wetheme-category-card img {
        max-width: 130px;
        height: 100px;
        margin: -35px 10px 12px 10px;
    }

    .wetheme-category-cards .wetheme-category-card h3 {
        font-size: 10px;
        margin-bottom: 20px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-container {
        margin-bottom: -25px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-btn-text {
        font-size: 11px;
        padding: 10px 10px;
        height: 24px;
        width: 80px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-btn-icon {
        font-size: 10px;
        height: 24px;
        width: 20px;
    }

    .wetheme-category-cards .wetheme-category-card .view-more-btn-icon i {
        font-size: 9px;
    }
}
