/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #242323;
    line-height: 1.5;
}

/* Container */
.container-collection {
    max-width: 1700px;
    margin: 0 auto;
    padding: 32px 16px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 12px;
    color: #727272;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: #727272;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 4px;
}

.breadcrumb .active {
    color: #242323;
}

/* Heading */
.heading {
    font-family: 'Forum', serif;
    font-size: 24px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 24px;
}

/* Description */
.description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 14px;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #ebebeb;
    margin-bottom: 40px;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

/* Collection Card */
.collection-card {
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* Специальный фон для Diamond Love */
.diamond-love-bg {
    background: linear-gradient(to bottom right, #a8e6e6, #d4f1f9);
}

/* Контейнер для изображения на заднем плане */
.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Стиль для изображений, которые растягиваются на всю карточку */
.full-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контент карточки (заголовок и кнопка) */
.collection-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.collection-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: normal;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.view-button {
    background-color: rgba(255, 255, 255, 0.3);
    color: #242323;
    border: 1px solid #a4a4a4;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.view-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
}

.view-button.dark {
    background-color: black;
    color: white;
    border: none;
}

.view-button.dark:hover {
    background-color: #333;
}

/* Специальные стили для Diamond Love */
.diamond-love-content {
    background-color: transparent;
}

/* Responsive grid layout */
@media (min-width: 768px) {
    /* Тип 1: левая карточка уже, правая шире (1fr 2fr) */
    .row-type-1 {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    /* Тип 2: левая карточка шире, правая уже (2fr 1fr) */
    .row-type-2 {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }
}

/* Дополнительные медиа-запросы для лучшей адаптивности */
@media (max-width: 767px) {
    .collection-card {
        border-radius: 18px;
        margin-bottom: 24px;
        min-height: 150px;
        cursor: pointer;
    }

    .collections-grid {
        margin-bottom: 80px;
        padding-bottom: 366px;
    }

    .container-collection {
        padding-bottom: 80px;
    }

    /* Убираем лишние отступы у рядов, чтобы не создавать наложение */
    .row-type-1, .row-type-2 {
        margin-bottom: 0;
    }

    /* Новые стили */
    .button-container {
        display: none;
    }

    .collection-card {
        cursor: pointer;
    }
}