.collection-header {
    display: block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.back-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: #333;
}

.collection-title-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.collection-name {
    margin: 0;
    font-size: 28px;
    color: #333;
    font-weight: 800;
}

.designs-section {
    margin-top: 40px;
}

.designs-section h2 {
    margin-bottom: 30px;
    font-size: 20px;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}



/* Стили для карточек дизайнов */
.design-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.design-card:hover {
    transform: translateY(-5px);
}

.design-preview {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.design-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgb(81 66 61);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    z-index: 10;
}

.design-info {
    padding: 20px;
}

.design-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.design-status {
    margin: 0 0 15px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.design-status:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-warning {
    color: #f0ad4e;
}

.status-warning:before {
    background: #f0ad4e;
}

.status-success {
    color: #5cb85c;
}

.status-success:before {
    background: #5cb85c;
}

.status-info {
    color: #5bc0de;
}

.status-info:before {
    background: #5bc0de;
}

.design-actions {
    display: flex;
    gap: 10px;
}

/* Стили для кнопки создания дизайна */
.create-design {
    background: transparent;
    border: 2px dashed #bfb5b2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.create-design:hover {
    border-color: #bfb5b2;
    transform: translateY(-5px);
}

.create-design-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #bfb5b2;
}

.plus-icon {
    margin-bottom: 10px;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.btn-warning {
    background-color: #f0ad4e;
    border-color: #eea236;
}

.btn-warning:hover {
    background-color: #ec971f;
    border-color: #d58512;
}

.btn-danger {
    background-color: #d9534f;
    border-color: #d43f3a;
}

.btn-danger:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Добавляем к существующим стилям */
.design-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.status-draft {
    background-color: #f8f9fa;
    color: #6c757d;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.design-actions {
    margin-top: 10px;
}

.btn-group {
    display: flex;
    gap: 8px;
}

/* Стили для превью дизайна */
.design-preview {
    position: relative;
    padding-bottom: 130%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.design-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8f9fa;
}
.design-options {
    margin: 20px 0;
}

.product-type-options,
.textile-color-options,
.type-print-options{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.description_design {margin: 0;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    resize: none;
    width: 100%;
    height: 150px;
    outline: none;}

.warning_type_print {}
.warning_type_print>small {font-size: 12px;opacity: .7;}



.design-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

.product-type-badge {
    background: #51423d;
    color: white;
}

.black-badge {
    background: #212529;
    color: white;
}

.white-badge {
    background: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
}
/* Анимация при наведении */
.design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}