/*
* @author  Agence Dn'D <contact@dnd.fr>
* @license https://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
* @link    https://www.dnd.fr/
*/

/* Image aspect ratio: --aspect-ratio: 0.7374631268436578 */

.template-collection,
.template-search {
    .main-collection__container {
        padding-right: 0;
        padding-left: 0;
    }

    .baseline,
    .pagetitle {
        text-align: left;
    }

    .baseline {
        padding-bottom: 4px;
        color: #737373;
        font-weight: 600;
        font-size: var(--smaller-text-size-4);
        text-transform: uppercase;
    }

    .pagetitle {
        font-weight: 700;
        font-size: 20px;
        text-transform: uppercase;

        &:not(.page-header--with-background) {
            padding-bottom: 24px;

            .pagetitle:last-child {
                margin-bottom: 0;
                padding-bottom: 0;
            }
        }
    }

    .related-collection__container {
        margin-bottom: 16px;
        border-bottom: 1px solid #f5f5f5;
        padding-bottom: 48px;
    }

    .related-collection-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 32px;
        overflow: scroll;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .related-collection__link {
        color: #262626;
        font-weight: 400;
        font-size: 12px;
        text-transform: uppercase;
    }

    .utility-bar {
        padding-right: var(--container-pad-x);
        padding-left: var(--container-pad-x);

        @media (min-width: 768px) {
            margin-bottom: 16px;
            padding: 0 24px;
        }
    }

    .utility-bar__centre {
        .utility-bar__item {
            color: #737373;
            font-size: 12px;
            text-transform: uppercase;
        }
    }

    .utility-bar__left {
        .utility-bar__item {
            font-size: 14px;
        }
    }

    .link-dropdown__button-text {
        font-size: 14px;
    }

    .product-grid {
        column-gap: 2px;
        row-gap: 16px;
    }

    .collection-description__container {
        border-top: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
        padding: 24px 0;
        color: #737373;
        font-size: 12px;
        line-height: 20px;
    }

    @media (min-width: 768px) {
        .related-collection-links {
            justify-content: center;
        }

        .product-label > span {
            font-size: 10px;
        }

        .baseline,
        .pagetitle {
            text-align: center;
        }

        .baseline {
            font-size: var(--base-text-size);
        }

        .pagetitle {
            font-size: 36px;
        }
    }
}
