.catalog-carousel {
    margin: 20px 0;
}

.my-carousel-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.my-carousel-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.my-carousel-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.my-carousel-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.my-carousel-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.my-carousel-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.my-carousel-text table {
    width: 100%;
    border: none;
}

.my-carousel-text td {
    padding: 0;
    border: none;
}

.item-title {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
}

.item-title:hover {
    color: #ff6d00;
}

/* Стили статусов */
.status-green {
    color: #4caf50;
    font-weight: 500;
    font-size: 13px;
}

.status-yellow {
    color: #ff9800;
    font-weight: 500;
    font-size: 13px;
}

.status-red {
    color: #f44336;
    font-weight: 500;
    font-size: 13px;
}

.status-gray {
    color: #9e9e9e;
    font-weight: 500;
    font-size: 13px;
}

.item-price {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.item-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.catalog-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Стили для пагинации */
.catalog-pagination {
    margin-top: 30px;
    text-align: center;
}

.catalog-pagination .pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.catalog-pagination .pagination li {
    display: inline-block;
}

.catalog-pagination .pagination a,
.catalog-pagination .pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    min-width: 40px;
    text-align: center;
}

.catalog-pagination .pagination a:hover {
    background-color: #f5f5f5;
}

.catalog-pagination .pagination .active span {
    background-color: #ff6d00;
    color: white;
    border-color: #ff6d00;
}

.catalog-pagination .pagination .disabled span {
    color: #999;
    cursor: not-allowed;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .my-carousel-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .my-carousel-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .my-carousel-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .my-carousel-item {
        height: 320px;
        padding: 12px;
    }

    .catalog-pagination .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .my-carousel-wrapper {
        grid-template-columns: 1fr;
    }

    .my-carousel-item {
        height: auto;
        min-height: 300px;
    }

    .catalog-pagination .pagination a,
    .catalog-pagination .pagination span {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 14px;
    }
}

.return-block {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #E65C00, #F9D423);
    color: white;
    padding-left: 40px;
    padding-top: 18px;
    font-size: 32px;
    font-weight: bold;
    position: relative;
    margin-bottom: 10px;
}