/*
==================================================
LASP
Archive Collections
Final production stylesheet
Theme: Astra Child
File: /wp-content/themes/astra-child/assets/css/archive-collections.css
==================================================
*/

/*
==================================================
BASE
==================================================
*/

.collections-page {
    width: 100%;
    background: #f0ece9;
    color: #111111;
    padding: 20px 0 110px;
}

.collections-page,
.collections-page * {
    box-sizing: border-box;
}

.collections-container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 40px;
}

/*
==================================================
TOP / INTRO
==================================================
*/



.collections-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
    margin: 0 0 0px;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
}

.collections-breadcrumbs a {
    color: #9a9a9a;
    text-decoration: none;
    transition: color .25s ease;
}

.collections-breadcrumbs a:hover {
    color: #111111;
}

.collections-title {
    margin: 0;
    color: #111111;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: .3px;
    overflow-wrap: break-word;
}

.collections-intro {
    width: 100%;
    margin: 18px 0 0;
}

.collections-intro p {
    margin: 0;
    color: #555555;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
}

.collections-intro p + p {
    margin-top: 8px;
}

/*
==================================================
LAYOUT
==================================================
*/

.collections-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 64px;
    align-items: flex-start;
}

/*
==================================================
SIDEBAR
==================================================
*/

.collections-sidebar {
    position: sticky;
    top: 115px;
    align-self: flex-start;
    padding: 4px 0 0;
}

.collections-sidebar-title {
    position: relative;
    margin: 0 0 10px;
    padding-left: 18px;
    color: #111111;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.collections-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.collections-menu-item {
    margin: 0;
    padding: 0;
}

.collections-menu-item a {
    position: relative;
    display: block;
    padding: 7px 0 7px 18px;
    border-bottom: 1px solid #e7e2dc;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition:
        color .25s ease,
        padding-left .25s ease,
        background-color .25s ease;
}

.collections-menu-item a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: #111111;
    transform: translateY(-50%);
    transition: width .25s ease;
}

.collections-menu-item a:hover {
    color: #000000;
    padding-left: 30px;
    background: #faf8f5;
}

.collections-menu-item a:hover::before {
    width: 18px;
}
.collections-menu-item.is-active a {
    color: #000000;
    padding-left: 30px;
    background: #faf8f5;
}

.collections-menu-item.is-active a::before {
    width: 18px;
}
.collections-menu-item.is-active a {
    color: #000000;
    padding-left: 30px;
    background: #faf8f5;
}

.collections-menu-item.is-active a::before {
    width: 18px;
}
/*
==================================================
CONTENT
==================================================
*/

.collections-content {
    min-width: 0;
}

/*
==================================================
GRID
==================================================
*/

.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px 30px;
}

/*
==================================================
CARD
==================================================
*/

.collection-card {
    min-width: 0;
    margin: 0;
    background: #ffffff;
}

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

.collection-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f2ee;
}

.collection-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background .45s ease;
}

.collection-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform .7s ease;
}

.collection-card-link:hover .collection-card-image img {
    transform: scale(1.055);
}

.collection-card-link:hover .collection-card-image::after {
    background: rgba(0, 0, 0, .08);
}

.collection-card-title {
    display: block;
    margin: 18px 0 0;
    color: #111111;
    text-align: center;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: color .25s ease;
}

.collection-card-link:hover .collection-card-title {
    color: #7b6a58;
}

.collection-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #777777;
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
}

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

.collections-load-more {
    display: flex;
    justify-content: center;
    margin: 62px 0 0;
}

.collections-load-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 206px;
    min-height: 50px;
    padding: 14px 28px;
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.collections-load-more-button:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/*
==================================================
EMPTY
==================================================
*/

.collections-empty {
    width: 100%;
    padding: 48px 0;
    color: #777777;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
}

/*
==================================================
SEO BLOCK
==================================================
*/

.collections-seo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px;
    margin: 96px 0 0;
    padding: 48px 0 52px;
    border-top: 1px solid #e5ded6;
    border-bottom: 1px solid #e5ded6;
}

.collections-seo-item {
    min-width: 0;
}

.collections-seo-item h2 {
    margin: 0 0 18px;
    color: #111111;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: .02em;
}

.collections-seo-item p {
    margin: 0;
    color: #5f5f5f;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
}

/*
==================================================
ASTRA / THEME COMPATIBILITY
==================================================
*/

.collections-page h1,
.collections-page h2,
.collections-page h3,
.collections-page p,
.collections-page ul {
    padding: 0;
}

.collections-page a:focus,
.collections-page button:focus {
    outline: 1px solid #111111;
    outline-offset: 4px;
}

.collections-page a:focus:not(:focus-visible),
.collections-page button:focus:not(:focus-visible) {
    outline: none;
}

/*
==================================================
RESPONSIVE
==================================================
*/

@media (max-width: 1500px) {
    .collections-container {
        padding-left: 36px;
        padding-right: 36px;
    }
    .collections-layout {
        grid-template-columns: 245px minmax(0, 1fr);
        gap: 52px;
    }
	.collections-layout--no-sidebar {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.collections-layout--no-sidebar .collections-content {
		width: 100%;
	}
    .collections-grid {
        gap: 38px 26px;
    }
}

@media (max-width: 1280px) {
    .collections-title {
        font-size: 48px;
    }

    .collections-layout {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 42px;
    }

    .collections-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .collections-page {
        padding-top: 38px;
        padding-bottom: 86px;
    }

    .collections-hero {
        margin-bottom: 46px;
    }

    .collections-layout {
        display: block;
    }

    .collections-sidebar {
        position: relative;
        top: auto;
        margin: 0 0 46px;
    }

    .collections-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 22px;
    }

    .collections-menu-item a {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .collections-seo {
        grid-template-columns: 1fr;
        gap: 34px;
        margin-top: 76px;
    }
}

@media (max-width: 820px) {
    .collections-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .collections-title {
        font-size: 40px;
    }

    .collections-intro p {
        font-size: 16px;
    }

    .collections-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 22px;
    }

    .collection-card-title {
        font-size: 15px;
        margin-top: 14px;
    }
}

@media (max-width: 580px) {
    .collections-page {
        padding-top: 30px;
        padding-bottom: 70px;
    }

    .collections-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .collections-hero {
        margin-bottom: 36px;
    }

    .collections-breadcrumbs {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .collections-title {
        font-size: 34px;
    }

    .collections-intro {
        margin-top: 18px;
    }

    .collections-intro p {
        font-size: 15px;
        line-height: 1.65;
    }

    .collections-sidebar {
        margin-bottom: 36px;
    }

    .collections-sidebar-title {
        margin-bottom: 18px;
        font-size: 16px;
    }

    .collections-menu {
        grid-template-columns: 1fr;
    }

    .collections-menu-item a {
        font-size: 14px;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .collections-load-more {
        margin-top: 46px;
    }

    .collections-load-more-button {
        width: 100%;
    }

    .collections-seo {
        margin-top: 64px;
        padding-top: 38px;
        padding-bottom: 40px;
    }

    .collections-seo-item h2 {
        font-size: 20px;
    }
}


/*
==================================================
COLLECTIONS PAGE WITHOUT SIDEBAR
Новинки / Під замовлення / Розпродаж
==================================================
*/

.collections-layout--no-sidebar {
    display: block;
}

.collections-layout--no-sidebar .collections-content {
    width: 100%;
    min-width: 0;
}

.collections-layout--no-sidebar .collections-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px 30px;
    width: 100%;
}

.collections-layout--no-sidebar .collection-card {
    width: 100%;
    min-width: 0;
}

.collections-layout--no-sidebar .collection-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.collections-layout--no-sidebar .collection-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1280px) {
    .collections-layout--no-sidebar .collections-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .collections-layout--no-sidebar .collections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 22px;
    }
}

@media (max-width: 580px) {
    .collections-layout--no-sidebar .collections-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}