.nhcm-root {
    margin: 40px 0;
    width: 100%;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.nhcm-root * {
    box-sizing: border-box;
}

.nhcm-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.nhcm-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    letter-spacing: -0.6px;
}

.nhcm-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #e2e8f0 0%, rgba(226, 232, 240, 0) 100%);
}

.nhcm-grid {
    display: grid;
    grid-template-columns: repeat(var(--nhcm-cols), minmax(0, 1fr));
    gap: 26px;
}

.nhcm-scroller {
    overflow-x: auto;
    padding-bottom: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.nhcm-scroller::-webkit-scrollbar {
    display: none;
}

.nhcm-track {
    display: flex;
    gap: 26px;
    min-width: max-content;
}

.nhcm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 24%, transparent);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.nhcm-grid .nhcm-card {
    min-width: 0;
}

.nhcm-track .nhcm-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.nhcm-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 24px 46px -14px color-mix(in srgb, var(--accent) 46%, transparent);
}

.nhcm-ribbon {
    position: absolute;
    top: 14px;
    right: 0;
    z-index: 10;
    padding: 7px 14px;
    border-radius: 10px 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fff;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    box-shadow: 0 8px 18px rgba(255, 71, 87, 0.28);
}

.nhcm-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fff;
    background: #f59e0b;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.nhcm-img-box {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8fafc;
}

.nhcm-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.nhcm-card:hover .nhcm-img-box img {
    transform: scale(1.06);
}

.nhcm-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 800;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.nhcm-content {
    padding: 18px 18px 20px;
    background: #fff;
}

.nhcm-cat-name {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #64748b;
}

.nhcm-price-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nhcm-price-label {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, white);
}

.nhcm-price {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.8px;
}

.nhcm-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.nhcm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

@media (max-width: 768px) {
    .nhcm-title {
        font-size: 22px;
        white-space: normal;
    }

    .nhcm-grid {
        grid-template-columns: repeat(var(--nhcm-mobile-cols), minmax(0, 1fr));
        gap: 16px;
    }

    .nhcm-track .nhcm-card {
        flex-basis: 240px;
    }

    .nhcm-img-box {
        height: 160px;
    }

    .nhcm-content {
        padding: 14px;
    }

    .nhcm-price {
        font-size: 24px;
    }

    .nhcm-footer {
        font-size: 12px;
    }
}