/* ============================================================
   COLLECTIONS PAGE
   ============================================================ */

/* ===== ЗАГОЛОВКИ ===== */

.collections-header {
    padding: 60px 20px 40px;
    text-align: center;
}

.collections-header .simple-title.gray {
    font-family: 'Geologica', sans-serif;
    font-size: 18px;
    color: #818181;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-huge-title {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(32px, 9.5vw, 136px);
    line-height: 0.88;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
    white-space: nowrap;
}

.collections-header .subtitle-text {
    font-family: 'Geologica', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== ФИЛЬТРЫ ===== */

.collections-filters {
    padding: 0 20px 20px;
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    padding: 0;
    transition: color 0.3s ease;
    text-align: center;
}

.filter-btn span:first-child { transition: color 0.3s ease; }

.filter-btn:hover span:first-child,
.filter-btn.active span:first-child { color: #FF0000; }

.filter-count {
    font-size: 12px;
    color: #818181;
    margin-top: 5px;
}

.filter-btn.active .filter-count,
.filter-btn:hover .filter-count { color: #FF0000; }

.subfilters-row {
    display: none;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.subfilters-row.visible {
    display: flex;
}

.subfilters-label {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-right: 20px;
}

.subfilter-btn {
    font-family: 'Geologica', sans-serif;
    font-size: 13px;
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.subfilter-btn:hover,
.subfilter-btn.active { color: #FF0000; }

/* ===== CONTROLS ===== */

.controls-row {
    padding: 0 20px 20px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.control-btn {
    min-height: 44px;
    padding: 12px 0;
    background: transparent;
    border: none;
    color: #000;
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.control-btn:hover { color: #FF0000; }

/* ===== КОНТЕНТ ===== */

.collections-content {
    padding: 0 20px 80px;
}

.collection-block {
    padding: 60px 0 40px;
    border-bottom: 1px solid #f0f0f0;
}

.collection-block:first-child { padding-top: 20px; }

.collection-block-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.collection-block-title {
    font-family: 'Geologica', serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 10px;
    text-align: left;
}

.collection-block-designer {
    font-family: 'Geologica', sans-serif;
    font-size: 13px;
    color: #818181;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: left;
}

.collection-block-description {
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.collection-block-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* ===== СЕТКИ ===== */

.carpets-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.carpets-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.carpets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.carpets-grid-view-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.carpets-grid-view-large-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* ===== КАРТОЧКА КОВРА ===== */

.carpet-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.carpet-card-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: transparent;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carpet-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.carpet-card-info { text-align: left; }

.carpet-color {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.carpet-size {
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    color: #818181;
    margin-bottom: 8px;
}

.carpet-available {
    font-family: 'Geologica', sans-serif;
    font-size: 11px;
    color: #818181;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== КАРТОЧКА ДИЗАЙНЕРА (внутри сетки ковров) ===== */

.designer-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.designer-card-image {
    width: 100%;
    height: 500px;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.designer-card-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.designer-card-info { text-align: left; }

.designer-card-name {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
    line-height: 1.3;
}

.designer-card-description {
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    color: #818181;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ===== БЛОК ДИЗАЙНЕРА ===== */

.designer-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: stretch;
}

.designer-header-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.designer-header-name {
    font-family: 'Geologica', serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    text-align: left;
    margin: 0;
}

.designer-header-description {
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    text-align: left;
    margin: 0;
    flex: 1;
}

.designer-header-right {
    display: flex;
    justify-content: flex-end;
}

.designer-header-right img {
    width: 458.67px;
    height: 458.67px;
    object-fit: cover;
    display: block;
}

/* ===== LIMITED ===== */

.limited-block {
    padding: 60px 0 40px;
    border-bottom: 1px solid #f0f0f0;
}

.limited-carpets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.limited-carpet-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.limited-carpet-image {
    width: 100%;
    height: auto;
    max-height: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.limited-carpet-image img {
    max-width: 100%;
    max-height: 1200px;
    object-fit: contain;
}

/* ===== NEW ARRIVALS FEATURE ===== */

.new-arrivals-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    padding: 40px 0;
    margin-bottom: 40px;
}

.new-arrivals-feature-image {
    width: 100%;
    height: 458px;
    overflow: hidden;
}

.new-arrivals-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-arrivals-feature-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 458px;
    padding: 20px 0;
}

/* ===== LOAD MORE ===== */

.load-more-btn {
    display: block;
    margin: 20px auto 40px;
    padding: 12px 30px;
    background: transparent;
    border: none;
    color: #000;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.load-more-btn::before { content: "› "; }

.load-more-btn:hover { color: #FF0000; }

.no-carpets {
    text-align: center;
    padding: 60px 0;
    color: #818181;
    font-style: italic;
}

.link-arrow {
    display: inline-block;
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-arrow::before {
    content: "› ";
    margin-right: 4px;
}

.link-arrow:hover { color: #FF0000; }


/* ===== КОМПАКТНЫЙ ЗАГОЛОВОК ДИЗАЙНЕРА (для large view) ===== */

.designer-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 40px;
    margin-bottom: 30px;
}

.designer-header-compact .designer-header-name {
    margin: 0;
}

/* ===== УМЕНЬШЕНИЕ МЕЖСТРОЧНОГО ИНТЕРВАЛА В КАРТОЧКЕ ДИЗАЙНЕРА ===== */

.designer-card-name {
    line-height: 1.3;
}

.designer-card-description {
    line-height: 1.4;
}


/* ===== УВЕЛИЧЕНИЕ ФОТО В СЕТКАХ 3 И 2 ===== */
.carpets-row-3 .carpet-card-image {
    height: 500px;
}

/* 2 ковра в ряд — ещё больше */
.carpets-row-2 .carpet-card-image {
    height: 700px;
}



/* ===== КЛИКАБЕЛЬНЫЕ ЭЛЕМЕНТЫ КАРТОЧКИ ===== */

.carpet-card-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.carpet-card-image-link img {
    transition: opacity 0.3s ease;
}


.carpet-card-name-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.carpet-card-name-link .carpet-color {
    transition: color 0.3s ease;
}

.carpet-card-name-link:hover .carpet-color {
    color: #FF0000;
}


@media (max-width: 768px) {

    .mobile-only { display: inline-block; }
    .desktop-only { display: none !important; }

    .collections-header {
        padding: 40px 16px 30px;
    }

    .collections-header .simple-title.gray {
        font-size: 14px;
        line-height: 21px;
        font-weight: 400;
        letter-spacing: 0;
        margin-bottom: 32px;
    }

    .page-huge-title {
        line-height: 1;
        margin-bottom: 32px;
    }

    .collections-header .subtitle-text {
        font-size: 16px;
        line-height: 25px;
        font-weight: 500;
        color: #000;
        max-width: 100%;
    }

    .collections-filters {
        padding: 0 16px 20px;
    }

    .filters-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
        margin-bottom: 0;
    }

    .filter-btn {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
        min-width: 150px;
        height: 47px;
        font-size: 14px;
        line-height: 21px;
        font-weight: 400;
        padding: 0;
    }

    .filter-count {
        font-size: 12px;
        line-height: 18px;
        margin-top: 2px;
    }

    .subfilters-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 20px;
        padding-bottom: 20px;
        margin-top: 20px;
        border-bottom: 1px solid #eee;
    }

    .subfilters-row.visible.two-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
    }

    .subfilters-row.visible.two-cols .subfilters-label {
        grid-column: 1 / -1;
    }

    .subfilters-label {
        font-size: 14px;
        line-height: 21px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .subfilter-btn {
        font-size: 12px;
        line-height: 18px;
        font-weight: 400;
        text-align: left;
        padding: 0;
    }

    #view-toggle {
        display: none !important;
    }

    .controls-row {
        padding: 20px 16px 20px;
    }

    .control-btn {
        min-height: auto;
        font-size: 14px;
        line-height: 21px;
        padding: 0;
    }

    .collections-content {
        padding: 0 16px 60px;
    }

    .collection-block,
    .limited-block {
        padding: 40px 0 30px;
    }

    .collection-block:first-child {
        padding-top: 20px;
    }

    .collection-block-mobile .collection-block-title {
        font-size: 24px;
        line-height: 30px;
        font-weight: 500;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0;
        margin-bottom: 12px;
    }

    .collection-block-mobile .collection-block-designer {
        font-size: 12px;
        line-height: 18px;
        font-weight: 400;
        text-align: center;
        color: #818181;
        text-transform: uppercase;
        letter-spacing: 0;
        margin-bottom: 12px;
    }

    .collection-block-mobile .collection-block-description {
        font-size: 16px;
        line-height: 25px;
        font-weight: 500;
        text-align: center;
        color: #000;
        margin-bottom: 20px;
    }

    .collection-block-mobile .link-arrow {
        display: block;
        text-align: left;
        margin-bottom: 30px;
    }

    .mobile-rug-big {
        margin-bottom: 20px;
    }

    .mobile-rug-big .carpet-card-image {
        height: 447.5px;
        margin-bottom: 15px;
    }

    .mobile-rugs-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
    }

    .mobile-rugs-grid .carpet-card-image {
        height: 213.75px;
        margin-bottom: 12px;
    }

    .carpet-color {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .carpet-size {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .carpet-size-many {
        font-size: 9px;
        line-height: 13px;
    }

    .carpet-available {
        font-size: 10px;
    }

    .load-more-sep {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 30px 0;
    }

    .load-more-sep .sep-line {
        width: 100%;
        height: 1px;
        background: #e0e0e0;
    }

    .load-more-sep .load-more-btn {
        margin: 12px 0;
        padding: 0;
        font-size: 14px;
        line-height: 21px;
    }

    .mobile-designer-card {
        text-align: center;
        margin-bottom: 30px;
    }

    .mobile-designer-card-image {
        width: 100%;
        max-width: 358px;
        aspect-ratio: 1 / 1;
        margin: 0 auto 15px;
        overflow: hidden;
    }

    .mobile-designer-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mobile-designer-card-name {
        font-size: 16px;
        line-height: 25px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0;
        color: #000;
        margin-bottom: 10px;
    }

    .mobile-designer-card-description {
        font-size: 14px;
        line-height: 21px;
        font-weight: 400;
        color: #333;
    }

    .new-arrivals-feature-mobile {
        margin: 30px 0;
    }

    .new-arrivals-feature-mobile .collection-block-title {
        font-size: 24px;
        line-height: 30px;
        font-weight: 500;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0;
        margin-bottom: 15px;
    }

    .new-arrivals-feature-image-mobile {
        width: 100%;
        height: 447.5px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .new-arrivals-feature-image-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .new-arrivals-feature-mobile .collection-block-description {
        font-size: 16px;
        line-height: 25px;
        font-weight: 500;
        text-align: center;
        color: #000;
        margin-bottom: 20px;
    }

    .new-arrivals-feature-mobile .link-arrow {
        display: block;
        text-align: left;
    }

    .limited-carpet-image {
        max-height: 500px;
    }

    .limited-carpet-image img {
        max-height: 500px;
    }

        .limited-block .collection-block-header {
        display: block;
        margin-bottom: 20px;
    }

    .limited-block .collection-block-title {
        font-size: 24px;
        line-height: 30px;
        font-weight: 500;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0;
        margin-bottom: 12px;
    }

    .limited-block .collection-block-designer {
        font-size: 12px;
        line-height: 18px;
        font-weight: 400;
        text-align: center;
        color: #818181;
        text-transform: uppercase;
        letter-spacing: 0;
        margin-bottom: 12px;
    }

    .limited-block .collection-block-description {
        font-size: 16px;
        line-height: 25px;
        font-weight: 500;
        text-align: center;
        color: #000;
        margin-bottom: 20px;
    }

    .limited-block .collection-block-header-right {
        display: block;
        margin-bottom: 20px;
    }

    .limited-block .collection-block-header-right .link-arrow {
        display: block;
        text-align: left;
    }

    .load-more-sep .load-more-btn {
        display: inline-block;
        margin: 12px 0;
        padding: 0;
        font-family: 'Geologica', sans-serif;
        font-size: 14px;
        line-height: 21px;
        color: #000;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .load-more-sep .load-more-btn::before {
        content: "› ";
        margin-right: 4px;
    }

    .load-more-sep .load-more-btn:hover {
        color: #FF0000;
    }
}