.content-wrapper {
    display: flex;
    gap: 30px;
}

/* Левая колонка - фильтры */
.filters-sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 250px;
    flex-shrink: 0;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-title {
    margin-bottom: 15px;
    color: #ff6b6b;
    font-size: 18px;
    font-weight: 600;
}

.filter-options {
    list-style: none;
}

.filter-options li {
    margin-bottom: 8px;
    padding: 5px 0;
    cursor: pointer;
    transition: color 0.3s;
}

.filter-options li:hover {
    color: #ff6b6b;
}

/* Правая колонка - рецепты */
.recipes-main {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
}

.recipes-main h2{
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    display: inline-block;
}

.recipes-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.recipe-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: calc(50% - 10px);
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.recipe-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

.recipe-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recipe-link:hover .recipe-name {
    color: #ff6b6b;
}

.catalog-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.catalog-intro h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
    display: inline-block;
}

.catalog-intro p {
    font-size: 18px;
    color: #666;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}




/* Добавьте эти стили в конец файла */

.recipe-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(50% - 10px);
    position: relative;
}

.recipe-card-inner {
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.favorite-btn svg {
    width: 24px;
    height: 24px;
    fill: #ccc;
    transition: fill 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn:hover svg {
    fill: #ff6b6b;
}

.favorite-btn.active svg {
    fill: #ff6b6b;
}

.favorite-btn.active:hover svg {
    fill: #ff4444;
}

/* Toast уведомления для избранного */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: 100%;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border-left: 4px solid;
}

.toast.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-success {
    border-left-color: #ff6b6b;
}

.toast-info {
    border-left-color: #2196F3;
}

.toast-icon {
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.toast-close:hover {
    color: #333;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    animation: progress 3s linear forwards;
}

.toast-success .toast-progress {
    background: #ff6b6b;
}

.toast-info .toast-progress {
    background: #2196F3;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Счетчик избранного в хедере */
.favorites-counter a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff6b6b;
    font-weight: 600;
}

.favorites-counter a:hover {
    color: #ff4444;
}




/* Стили для модального окна предпросмотра */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-modal.active {
    display: flex;
    opacity: 1;
}

.preview-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.preview-modal.active .preview-content {
    transform: translateY(0);
}

.preview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.preview-close:hover {
    color: #ff6b6b;
}

.preview-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.preview-body {
    padding: 25px;
}

.preview-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.preview-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.preview-meta-item {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.preview-meta-item i {
    color: #ff6b6b;
}

.preview-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.preview-ingredients {
    margin-bottom: 20px;
}

.preview-ingredients h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ff6b6b;
}

.preview-ingredients-list {
    list-style: none;
    padding: 0;
}

.preview-ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-ingredients-list li:before {
    content: "•";
    color: #ff6b6b;
    font-size: 18px;
}

.preview-footer {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.preview-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.preview-btn-primary {
    background: #ff6b6b;
    color: white;
}

.preview-btn-primary:hover {
    background: #ff4444;
}

.preview-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.preview-btn-secondary:hover {
    background: #e0e0e0;
}

/* Скелетон загрузки */
.preview-skeleton {
    padding: 20px;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 15px 15px 0 0;
}

.skeleton-line {
    height: 20px;
    margin: 15px 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .preview-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .preview-image {
        height: 200px;
    }
    
    .preview-body {
        padding: 20px;
    }
    
    .preview-title {
        font-size: 20px;
    }
}

.active-filter {
    color: #ff6b6b;
    font-weight: 600;
    background: #fff0f0;
    border-radius: 5px;
    padding: 3px 8px;
    margin-left: -8px;
}

    .active-filter::before {
        content: '✓ ';
    }