/* ============================================
   CATALOG PAGE STYLES
   ============================================ */

/* Breadcrumbs */
.breadcrumbs {
    padding: 40px 0;
    background-color: #fff;
}

.breadcrumbs__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Actay', sans-serif;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumbs__link {
    color: #bdc3ce;
}

.breadcrumbs__link:hover {
    color: #4778f5;
}

.breadcrumbs__separator {
    color: #bdc3ce;
}

.breadcrumbs__current {
    color: #0b0c0e;
}

.breadcrumbs__link,
.breadcrumbs__current {
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

/* Catalog Section */
.catalog {
    padding: 40px 0 0 0;
    background-color: #fff;
}

/* Catalog Header with Titles */
.catalog__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.catalog__filter-title {
    font-family: 'Actay Wide', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
    color: #0B0C0E;
    width: 316px;
    flex-shrink: 0;
    border-bottom: 1px solid #E7E7E7;
    padding-bottom: 35px;
}

.catalog__title {
    flex: 1;
    margin-left: 32px;
    border-bottom: 1px solid #E7E7E7;
    padding-bottom: 24px;
}

/* Catalog Body */
.catalog__body {
    display: flex;
    gap: 32px;
}

/* Catalog Sidebar (Filter) */
.catalog__sidebar {
    max-width: 316px;
    flex-shrink: 0;
}

.catalog__filter {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.catalog__filter::-webkit-scrollbar {
    width: 4px;
}

.catalog__filter::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.catalog__filter::-webkit-scrollbar-thumb {
    background: #4778f5;
    border-radius: 2px;
}

.catalog__filter::-webkit-scrollbar-thumb:hover {
    background: #3461d9;
}


.filter__group {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: start;
}

.filter__group-title {
    font-family: 'Actay Wide', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    text-transform: uppercase;
    color: #0b0c0e;
}

.filter__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter__checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.filter__checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.filter__checkbox-label {
    font-family: 'Actay', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 120%;
    color: #0B0C0E;
    cursor: pointer;
    padding-left: 32px;
    position: relative;
    display: inline-block;
}

/* Кастомный квадрат чекбокса */
.filter__checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Галочка внутри чекбокса */
.filter__checkbox-label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg) scale(0);
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transition: transform 0.3s ease;
}

/* Когда чекбокс выбран */
.filter__checkbox-input:checked + .filter__checkbox-label::before {
    background-color: #4778f5;
    border-color: #4778f5;
}

.filter__checkbox-input:checked + .filter__checkbox-label::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

/* Hover эффект */
.filter__checkbox:hover .filter__checkbox-label::before {
    border-color: #4778f5;
}

/* Color Checkboxes */
.filter__colors {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter__color-wrapper {
    width: 32px;
    height: 32px;
    border: 2px solid #e9eaec;
    transition: border-color 0.3s ease;
}

.filter__color-wrapper:has(.filter__color-input:checked) {
    border-color: #4778f5;
}

.filter__color-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2px;
}

.filter__color-input {
    display: none;
}

.filter__color-box {
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter__color-box--white {
    background-color: #fff;
}

.filter__color-box--blue {
    background-color: #4778f5;
}

.filter__color-box--red {
    background-color: #EF4444;
}

.filter__color-box--yellow {
    background-color: #F59E0B;
}

.filter__color-box--black {
    background-color: #0B0C0E;
}

.filter__color-box--green {
    background-color: #4CAF50;
}

.filter__color-box--brown {
    background-color: #795548;
}

.filter__color-box--image {
    background-color: #fff;
    overflow: hidden;
}

.filter__color-box--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Range Inputs */
.filter__range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter__range-label {
    font-family: 'Actay', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0B0C0E;
    text-transform: lowercase;
}

.filter__range-input {
    font-family: 'Actay', sans-serif;
    font-size: 14px;
    color: #0B0C0E;
    background-color: #F7F7F8;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    padding: 16px 12px;
    width: 115px;
    height: 51px;
    transition: border-color 0.2s ease;
}

.filter__range-input:focus {
    outline: none;
    border-color: #4778f5;
}

/* Radio Buttons */
.filter__radios {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter__radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.filter__radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.filter__radio-label {
    font-family: 'Actay', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 120%;
    color: #0B0C0E;
    cursor: pointer;
    padding-left: 32px;
    position: relative;
    display: inline-block;
}

/* Кастомный круг радио-кнопки */
.filter__radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Внутренний кружок радио-кнопки */
.filter__radio-label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* Когда радио-кнопка выбрана */
.filter__radio-input:checked + .filter__radio-label::before {
    background-color: #4778f5;
    border-color: #4778f5;
}

.filter__radio-input:checked + .filter__radio-label::after {
    transform: translateY(-50%) scale(1);
}

/* Hover эффект */
.filter__radio:hover .filter__radio-label::before {
    border-color: #4778f5;
}

/* Reset Button */
.filter__reset {
    font-family: "Actay Wide", sans-serif;
    font-style: italic;
    font-size: 16px;
    font-weight: 700;
    line-height: 120%;
    color: #4778f5;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter__reset:hover {
    color: #3461d9;
}

/* Apply Button */
.filter__apply {
    background: #fff;
    margin-top: 32px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 284px;
    height: 51px;
    color: #000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter__apply:hover {
    background: #000;
    color: #fff;
}

/* Catalog Content */
.catalog__content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Catalog Grid */
.catalog__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 48px;
}

.catalog__grid .product-card {
    width: calc(33.333% - 14px);
    max-width: 100%;
}

/* Load More Button */
.catalog__load-more {
    display: flex;
    justify-content: center;
}

.catalog__load-btn {
    font-family: 'Actay Wide', sans-serif;
    font-style: italic;
    font-size: 16px;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
    color: #0B0C0E;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    width: 1028px;
    height: 51px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.catalog__load-btn:hover {
    background-color: #0B0C0E;
    color: #fff;
}

/* Popular Selections */
.popular-selections {
    padding-top: 120px;
    background-color: #fff;
}

.popular-selections__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.popular-selections__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.popular-selections__title {
    font-family: 'Actay Wide', sans-serif;
    font-weight: 700;
    font-size: 47px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #0b0c0e;
    max-width: 1027px;
    margin-bottom: 40px;
}

.popular-selections__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1027px;
}

.popular-selections__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    min-height: 51px;
    font-family: 'Actay Wide', sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border-radius: 100px;
    max-width: 331px;
    height: 51px;
    background: #f7f7f8;

}

/* FAQ Section */
.faq {
    padding-top: 120px;
    background-color: #fff;
}

.faq__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.faq__header {
    display: flex;
    justify-content: space-between;
}

.faq__label {
    max-width: 349px;
    width: 100%;
}

.faq__title {
    width: 100%;
}

.faq__list {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.faq__item {
    border-bottom: 1px solid #E7E7E7;
}

.faq__item:first-child {
    border-top: 1px solid #E7E7E7;
}

.faq__item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.faq__item-number {
    min-width: 32px;
    max-width: 332px;
    width: 100%;
}

.faq__item-question {
    flex: 1;
}

.faq__item-number,
.faq__item-question {
    font-family: 'Actay Wide', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    text-transform: uppercase;
    color: #0B0C0E;
}

.faq__item-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: #F7F7F8;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq__item-toggle:hover {
    background-color: #E7E7E7;
}

.faq__item-icon--minus {
    display: none;
}

.faq__item--active .faq__item-icon--plus {
    display: none;
}

.faq__item--active .faq__item-icon--minus {
    display: block;
}

.faq__item--active .faq__item-toggle {
    background-color: #4778f5;
}

.faq__item--active .faq__item-toggle:hover {
    background-color: #3461d9;
}

.faq__item-content {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.35s ease-in-out;
    justify-content: end;
}

.faq__item--active .faq__item-content {
    grid-template-rows: 1fr;
}

.faq__item-answer {
    margin-left: -2%;
    padding-bottom: 0;
    max-width: 1006px;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.25s ease-in-out 0.1s, padding-bottom 0.35s ease-in-out;
}

.faq__item--active .faq__item-answer {
    opacity: 1;
    padding-bottom: 32px;
}

.company--catalog {
    padding-bottom: 88px;
}

/* Mobile Filter Button */
.catalog__filter-btn {
    display: none;
}

/* Mobile Filter Menu */
.mobile-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
}

.mobile-filter.active {
    visibility: visible;
    pointer-events: auto;
}

.mobile-filter__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter.active .mobile-filter__overlay {
    opacity: 1;
}

.mobile-filter__body {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-filter.active .mobile-filter__body {
    transform: translateX(0);
}

.mobile-filter__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #E7E7E7;
    flex-shrink: 0;
}

.mobile-filter__title {
    font-family: 'Actay Wide', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    text-transform: uppercase;
    color: #0B0C0E;
}

.mobile-filter__close {
    position: relative;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-filter__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 2px;
}

.mobile-filter__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-filter__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-filter__content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.mobile-filter__footer {
    padding: 24px;
    border-top: 1px solid #E7E7E7;
    flex-shrink: 0;
}

.mobile-filter__apply {
    width: 100%;
    max-width: 100%;
}

/* Hidden products */
.product-card {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card--hidden {
    display: none;
}

/* Desktop - Small (1310px - 1200px) */
@media (max-width: 1310px) {}

/* Tablet - Large (1200px - 1100px) */
@media (max-width: 1200px) {
    .popular-selections__title {
        font-size: 28px;
    }

    .popular-selections__tag {
        padding: 14px 20px;
        min-height: 48px;
    }

    .faq {
        padding-top: 100px;
    }

    .faq__item-question {}

    .catalog__filter-title {
        font-size: 22px;
    }

    .catalog__grid .product-card {
        width: calc(50% - 10px);
    }
}

/* Tablet - Medium (1100px - 900px) */
@media (max-width: 1100px) {
    .catalog__grid .product-card {
        width: calc(50% - 10px);
    }

    .faq__item-answer {
        margin-left: 0;
    }
}

/* Mobile (≤900px) */
@media (max-width: 900px) {
    .breadcrumbs {
        padding: 16px 0;
    }

    .breadcrumbs__inner {
        font-size: 13px;
    }

    .popular-selections {
        padding: 80px 0;
    }

    .popular-selections__inner {
        gap: 32px;
    }

    .popular-selections__header {
        gap: 20px;
    }

    .popular-selections__title {
        font-size: 24px;
    }

    .popular-selections__tag {
        padding: 12px 18px;
        min-height: 45px;
    }

    .faq {
        padding-top: 80px;
    }

    .faq__inner {
        gap: 40px;
    }

    .faq__header {
        flex-direction: column;
        gap: 20px;
    }

    .faq__item-header {
        gap: 24px;
        padding: 20px 0;
    }

    .faq__item-question {}

    .faq__item-toggle {
        width: 44px;
        height: 44px;
    }

    .faq__item-answer {
        padding-left: 56px;
    }

    .catalog {
        padding: 32px 0 80px 0;
    }

    .catalog__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    /* Show mobile filter button */
    .catalog__filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 51px;
        font-family: 'Actay Wide', sans-serif;
        font-style: italic;
        font-weight: 700;
        font-size: 16px;
        line-height: 120%;
        text-transform: uppercase;
        color: #0B0C0E;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .catalog__filter-btn:hover {
        background-color: #0B0C0E;
        color: #fff;
    }

    .catalog__filter-title {
        display: none;
    }

    .catalog__title {
        margin-left: 0;
        border: none;
    }

    .catalog__body {
        flex-direction: column;
    }

    /* Hide desktop filter */
    .catalog__sidebar {
        display: none;
    }

    .catalog__grid .product-card {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .breadcrumbs {
        padding: 12px 0;
    }

    .breadcrumbs__inner {
        font-size: 12px;
    }

    .popular-selections {
        padding: 60px 0;
    }

    .popular-selections__inner {
        gap: 28px;
        flex-direction: column;
    }

    .popular-selections__header {
        gap: 16px;
    }

    .popular-selections__title {
        font-size: 20px;
    }

    .popular-selections__tag {
        padding: 10px 16px;
        min-height: 42px;
        min-width: 161px;
    }

    .faq {
        padding-top: 60px;
    }

    .faq__inner {
        gap: 32px;
    }

    .faq__header {
        gap: 16px;
    }

    .faq__item-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 16px 0;
    }

    .faq__item-number {
        min-width: 24px;
        grid-column: 1;
        grid-row: 1;
    }

    .faq__item-toggle {
        width: 40px;
        height: 40px;
        grid-column: 3;
        grid-row: 1;
    }

    .faq__item-toggle img {
        width: 20px;
        height: 20px;
    }

    .faq__item-question {
        grid-column: 1 / 4;
        grid-row: 2;
        max-width: 280px;
    }

    .faq__item--active .faq__item-content {
        padding-bottom: 24px;
    }

    .faq__item-answer {
        padding-left: 0;
    }

    .catalog {
        padding: 24px 0 60px 0;
    }

    .catalog__header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .catalog__filter-btn {
        font-size: 14px;
        height: 48px;
    }

    .catalog__filter-title {
        font-size: 18px;
    }

    .filter__group {
        margin-bottom: 24px;
    }

    .catalog__load-btn {
        width: 100%;
        padding: 14px 32px;
    }

    .mobile-filter__body {
        max-width: 320px;
    }

    .mobile-filter__header {
        padding: 20px;
    }

    .mobile-filter__title {
        font-size: 20px;
    }

    .mobile-filter__content {
        padding: 20px;
    }

    .mobile-filter__footer {
        padding: 20px;
    }
}