/* =========================================================
   PRODUCTS FROM SAME CATEGORY
   ========================================================= */

.ng-category-products {
    width: 100%;
    margin-top: 28px;
    padding: 22px;
    background: #fff;
    border-radius: 12px;
    box-sizing: border-box;
}

.ng-category-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f1;
}

.ng-category-products-header h2 {
    margin: 0;
    color: #27272a;
    font-size: 20px;
    line-height: 1.7;
    font-weight: 700;
}


/* GRID */

.ng-category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}


/* CARD */

.ng-category-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #eeeeef;
    border-radius: 10px;
    overflow: hidden;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.ng-category-card:hover {
    transform: translateY(-2px);
    border-color: #ddd;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}


/* IMAGE */

.ng-category-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 210px;
    padding: 10px;
    box-sizing: border-box;
    background: #fff;
}

.ng-category-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ng-category-card-placeholder {
    color: #a1a1aa;
    font-size: 12px;
}


/* CONTENT */

.ng-category-card-content {
    padding: 12px;
}


/* TITLE */

.ng-category-card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;

    color: #27272a;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
    text-decoration: none;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ng-category-card-title:hover {
    color: #ef394e;
}


/* SALE */

.ng-category-card-sale {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 7px;

    border-radius: 5px;

    background: #ef394e;
    color: #fff;

    font-size: 10px;
    line-height: 1.7;
}


/* PRICE */

.ng-category-card-price {
    margin-top: 10px;

    color: #27272a;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 700;
}

.ng-category-card-price del {
    margin-left: 5px;
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 400;
}

.ng-category-card-price ins {
    color: #ef394e;
    text-decoration: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ng-category-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ng-category-products {
        margin-top: 14px;
        padding: 14px 10px;
        border-radius: 10px;
    }

    .ng-category-products-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .ng-category-products-header h2 {
        font-size: 17px;
    }

    .ng-category-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .ng-category-card {
        border-radius: 8px;
    }

    .ng-category-card-image {
        height: 165px;
        padding: 7px;
    }

    .ng-category-card-content {
        padding: 9px;
    }

    .ng-category-card-title {
        min-height: 43px;
        font-size: 12px;
        line-height: 1.8;
    }

    .ng-category-card-price {
        margin-top: 7px;
        font-size: 13px;
    }

}