/* ---------- CATALOG PAGE ---------- */


/* --- SECTION 1 - FILTER BAR --- */

.filter-bar {
    display: flex;
    flex-direction: column;
    
    margin-top: 100px;
}

.filters-header {
    display: grid;
    grid-template-columns: 1.22fr 1fr 1fr;
    grid-template-rows: auto;

    width: 100%;

    align-items: start;
    gap: 0 var(--half-margin);

    margin-bottom: var(--half-margin);
}


/* btns */

.filter-button {
    border: none;
    background: transparent;
    appearance: none;

    padding: 0;
    margin: 0;

    font: inherit;
    line-height: 1.6;

    font-size: var(--main-font-size);
    opacity: var(--opacity-value);

    cursor: pointer;
}

.filter-button:hover,
.filter-item.active .filter-button {
    opacity: 1;
}

.filter-item.toggle-options {
    grid-column: 1;
    grid-row: 1;

    justify-content: flex-start;

    display: flex;
}

.filter-item.tipologia {
    grid-column: 2;

    justify-content: flex-end;
    text-align: right;
}

.filter-item.color {
    grid-column: 3;

    text-align: right;
}

.filter-item.country {
    grid-column: 3;

    justify-content: flex-end;
    text-align: right;

    display: none;
}


/* toggle */

.catalog-toggle {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: var(--main-font-size);
}

.catalog-option {
    opacity: var(--opacity-value);

    transition: opacity 0.3s ease;
    cursor: pointer;
}

.catalog-option:hover,
.catalog-option.active {
    opacity: 1;
}

.separator {
    opacity: var(--opacity-value);
    pointer-events: none;
}


/* dropdown */

.filter-dropdown {
    display: none;
    flex-direction: column;

    margin-top: 15px;

    cursor: pointer;
}

.filter-dropdown.active {
    display: flex;
}

.filter-dropdown span {
    font-size: var(--main-font-size);
}

.filter-dropdown span.selected {
    font-weight: bold;
}


/* status */

.filter-status {
    font-size: var(--menu-a-font-size);
    margin-top: var(--half-margin);
}


/* --- SECTION 2 - STONE GRID --- */

.stones-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--half-margin);
    margin-top: var(--margin);
}

.stone {
    flex: 0 0 auto;
}

.stone.hidden {
    display: none;
}

.stone:nth-child(2n) {
    margin-left: auto;
}


/* img */

.stone .img-wrapper {
    position: relative;
    overflow: hidden;
}

.stone .img-wrapper img {
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.stone .img-wrapper p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    margin: 0;
    padding: 5px 0 0 0;

    z-index: 1;
    transition: all 0.3s ease;

    font-family: 'Switzer-Medium';
}

.stone .img-wrapper:hover img {
    transform: translateY(-30px);
}

.stone .img-wrapper:hover p {
    transition-delay: 0.15s;
}


/* img 'random' sizes */

.stone.small img {
    width: 300px;
    height: 550px;
    object-fit: cover;
}

.stone.medium img {
    width: 500px;
    height: 550px;
    object-fit: cover;
}

.stone.large img {
    width: 700px;
    height: 550px;
    object-fit: cover;
}

.stone.square img {
    width: 450px;
    height: 450px;
    object-fit: cover;
}