.ndc-carousel-wrapper {
    margin: 50px 5px;
}

.ndc-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
}

.ndc-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0px;
    padding-left: 20px;
}

.ndc-arrows {
    padding: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ndc-prev,
.ndc-next {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #278086;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* линии стрелки */
.ndc-prev::before,
.ndc-prev::after,
.ndc-next::before,
.ndc-next::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* стрелка влево */
.ndc-prev::before {
    transform: rotate(45deg) translate(-2px, -4px);
}

.ndc-prev::after {
    transform: rotate(-45deg) translate(-2px, 4px);
}

/* стрелка вправо */
.ndc-next::before {
    transform: rotate(-45deg) translate(2px, -4px);
}

.ndc-next::after {
    transform: rotate(45deg) translate(2px, 4px);
}

/* hover эффект */
.ndc-prev:hover,
.ndc-next:hover,
.ndc-prev:active,
.ndc-next:active {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    background: #278086;
}

.ndc-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin: 0 10px;
}

.ndc-slide {
    flex: 0 0 auto;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.ndc-product {
    display: block;
    text-decoration: none;
    color: #333;
}

.ndc-img-wrap {
    position: relative;
}

.ndc-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.ndc-discount {
    position: absolute;
    top: 5px;
    left: 5px;
    background: red;
    color: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #fff;
}

.ndc-title-text {
    font-size: 14px;
    line-height: 20px;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.ndc-price {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 14px;
}

.ndc-sale {
    color: #e53935;
    font-weight: bold;
}

.ndc-regular {
    color: #888;
    text-decoration: line-through;
}

.ndc-saved {
    font-size: 12px;
    color: green;
}

.ndc-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
    margin-top: 5px;
}

.ndc-panel-inner {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.ndc-panel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    transition: transform 0.2s ease;
    background: #fff;
}

.ndc-panel-item:hover {
    transform: scale(1.05);
    border-color: #aaa;
}

.ndc-panel-item img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 6px;
}

.ndc-badges {
    text-align: center;
}

.ndc-badge-discount {
    display: block;
    font-weight: bold;
    color: #e53935;
}

.ndc-badge-saved {
    border: 1px solid #fff;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #fab4a8 0%, #cc0000 100%);
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 2;
}

.ndc-save-btn {
    padding: 8px 14px;
    border: none;
    background: #1976d2;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.ndc-save-btn:hover {
    background: #125aa0;
}

.ndc-ghost {
    opacity: 0.6;
    background: #eee;
    border: 1px dashed #278086;
}
