.collections-page {
max-width: 1440px;
margin: 0 auto;
padding: 32px 50px;
}

.collections-section {
margin-top: 15px;
margin-bottom: 45px;
}

.collections-section .section-title {
margin-bottom: 20px;
}

.collections-grid {
display: grid;
grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
gap: 30px;
}

.collection-item {
position: relative;
min-width: 0;
}

.collection-item-cover {
position: relative;
width: 100%;
aspect-ratio: 3 / 2;
background: #eef4fb;
border-radius: 10px;
overflow: hidden;
box-shadow:
0 2px 6px rgba(0,0,0,0.06),
0 10px 30px rgba(0,0,0,0.04);
}

/* Редактирование описания коллекции */

.collection-description-form {
    max-width: 800px;
    margin-top: 16px;
}

.collection-description-form .form-field {
    margin-bottom: 0;
}

.collection-description-form textarea {
    min-height: 110px;
}

.collection-description-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.collection-description-actions .admin-button {
    width: auto;
    min-width: 130px;
    margin: 0;
}

.collection-item-cover a {
display: block;
width: 100%;
height: 100%;
}

.collection-item-cover img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform .2s;
}

.collection-item:hover .collection-item-cover img {
transform: scale(1.02);
}

.collection-favorite {
    position: static;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

.collection-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
	margin-bottom: 0px;
}

.collection-detail-favourite-form {
    margin-left: auto;
    flex-shrink: 0;
}

.collection-detail-favourite {
    position: static;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 40px;
    cursor: pointer;
}

.collection-item-cover-empty {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f1f1f1;
}

.collection-item-favourite-form {
    display: flex;
    justify-content: flex-end;
    margin-top: -42px;
    padding: 6px;
    position: relative;
    z-index: 1;
}

.collection-item-favourite {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
}

.collection-item-title {
display: block;
margin-top: 12px;
font-size: 19px;
line-height: 1.3;
font-weight: 600;
color: #173451;
text-decoration: none;
}

.collection-item-title:hover {
color: #5b8fc4;
}

.collection-item-description {
margin: 7px 0 8px;
font-size: 14px;
line-height: 1.45;
color: #555;
}

.collection-item-meta {
display: flex;
gap: 18px;
font-size: 12px;
color: #777;
}


.collection-remove-form {
    margin-top: 10px;
}

.collection-remove-link {
    padding: 0;
    border: 0;
    background: none;
    color: #777;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.collection-remove-link:hover {
    color: #b00020;
}

.collection-card-image {
    position: relative;
}


.collections-empty {
font-size: 15px;
color: #666;
}

@media (max-width: 700px) {
.collections-page {
padding: 25px 20px;
}

.collections-grid {
grid-template-columns: 1fr;
gap: 25px;
}
}