/* Brands
	 ========================================================================== */
.brands-sec__list {
	gap: 24px;
}
.brands-sec .list__item {
	display: flex;
	align-items: center;
	gap: 25px;
}	

.brands-sec .list__item a {
	display: block;
	border: .5px solid #EAEAEA;
}

.brands-sec .list__item img {
	min-width: 80px;
	object-fit: contain;
}

.brands-sec .list__item:nth-child(1) a:nth-child(8) img,
.brands-sec .list__item:nth-child(3) a:nth-child(2) img,
.brands-sec .list__item:nth-child(3) a:nth-child(4) img,
.brands-sec .list__item:nth-child(2) a:nth-child(4) img,
.brands-sec .list__item:nth-child(4) a:nth-child(4) img {
	max-width: 170px;
	max-height: 80px;
	width: 100%;
	height: 100%;
}

.brands-sec .list__item:nth-child(1) a:nth-child(5) img,
.brands-sec .list__item:nth-child(2) a:nth-child(2) img,
.brands-sec .list__item:nth-child(3) a:nth-child(7) img,
.brands-sec .list__item:nth-child(4) a:nth-child(4) img   {
	max-width: 280px;
	max-height: 120px;
	width: 100%;
	height: 100%;
	
}
.brands-sec__btn {
	margin-top: 40px;
	margin-left: auto;
	margin-right: auto;

}
@media (max-width: 1200px) {
	.brands-sec .list__item {
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.brands-sec .list__item:nth-child(1) a:nth-child(8) img,
	.brands-sec .list__item:nth-child(3) a:nth-child(2) img,
	.brands-sec .list__item:nth-child(3) a:nth-child(4) img,
	.brands-sec .list__item:nth-child(2) a:nth-child(4) img,
	.brands-sec .list__item:nth-child(4) a:nth-child(4) img {
		max-width: 100%;
		max-height: 100%;
		width: auto;
		height: auto;
	}
	.brands-sec .list__item:nth-child(1) a:nth-child(5) img,
	.brands-sec .list__item:nth-child(2) a:nth-child(2) img,
	.brands-sec .list__item:nth-child(3) a:nth-child(7) img,
	.brands-sec .list__item:nth-child(4) a:nth-child(4) img   {
		max-width: 170px;
		max-height: 70px;
		width: 100%;
		height: 100%;
		
	}
}

@media (max-width: 768px) {
	.brands-sec__list {
		gap: 12px 0;
		flex-wrap: wrap;
		flex-direction:row;	
	}

	.brands-sec .list a {
		display: flex;
		align-items: center;
		flex: 1 1 auto;
	}

	.brands-sec .list img {
		min-width: 30px;
		max-width: 100%!important;
		max-height: 100%!important;
		width: 100%!important;
	}
}

@media (max-width: 520px) {
	.brands-sec .list__item {
		gap: 12px;
	}
	.brands-sec .list__item:nth-child(2) a:nth-child(2) img {
		height: 50px;
	}

	.brands-sec .list a {
		justify-content: center;
	}

	.brands-sec .list img {
        min-width: 30px;
        max-width: 75px !important;
        max-height: 50px !important;
        width: auto !important;
		height: auto !important;
	}

	.brands-sec .list a:nth-child(3n) img {
		max-width: 100px !important;
	}
}


/* Collections
	 ========================================================================== */
.collections-sec__list {
	display: flex;
	flex-direction: row;
	gap: 25px;
	flex-wrap: wrap;
}

.collections-sec .list__item {
	color: #161519;
	background-color: #EFE8DC;
	flex: 1 1 calc(25% - 25px);
	width: 100%;
}	

.collections-sec .list__item:first-child,
.collections-sec .list__item:last-child {
	background-color: #161519;
	color: #EFE8DC;
	flex: 1 1 calc(50% - 20px);

}
.collections-sec .list .item__thumb {
	padding: 35px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px 0;
	align-items: center;
	color: inherit;
}
.collections-sec .list .item__name {
	font-size: 1.1em;
	text-align: center;
	color: inherit;
	font-weight: 500;
}
.collections-sec .list .item__img {
	height: 220px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
@media (max-width: 1080px) {
	.collections-sec .list__item {
		flex: 1 1 calc(25% - 20px);
	}

	.collections-sec .list__item:first-child,
	.collections-sec .list__item:last-child {
		flex: 1 1 calc(75% - 20px);
	}
	.collections-sec .list .item__img {
		height: 180px;
		min-width: 140px;
	}
}
/* Stores
	 ========================================================================== */
.stores-sec {
	background: #000;
}

.stores-sec * {
	color: #FFFFFF;
}

.stores-sec__columns {
	display: grid;
	grid-gap: 0 30px;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
}

.stores-sec__columns > * {
	width: 100%;
}

.stores-sec__img {
	margin: 0 auto;
	max-width: 200px;
	object-fit: cover;

}
.stores-sec__text-column {
	display: flex;
	flex-direction: column;
	gap: 50px 0;
}
.stores-sec__content-group {
	display: flex;
	flex-direction: column;
	gap: 24px 0;
}
.stores-sec__list {
	gap: 16px;
}
.stores-sec__list a {
	line-height: 1.6;
	color: #747474;
	display: inline-block; /* важливо */
	transition: transform .3s ease, color .3s ease;
}

.stores-sec__list li:hover a {
	transform: scale(1.25);
	font-weight: 700;
	color: #fff;
}
.stores-sec__descr {
	font-size: 1em;
	line-height: 1.4;
}
.stores-sec__descr * {
	font-size: inherit;
	line-height: inherit;
}	

@media (max-width: 768px) {
	.stores-sec__columns {
		grid-gap: 50px;
		grid-template-columns: repeat(2, 1fr);
	}

	.stores-sec__text-column {
		order: 3;
		grid-column: 1/3;
		grid-row: 2/3;
	}

	.stores-sec__img-column {
		order: 1;
		grid-row: 1/2;
	}

	.stores-sec__list-column {
		order: 2;
		grid-row: 1/2;
	}
	 .stores-sec__list li:hover a {
        transform: scale(1.1) translateX(5px);
    }
}

@media (max-width: 520px) {
	.stores-sec__img {
		max-width: 100%;
	}
	.stores-sec__list a {
		font-size: .9em;
	}

	.stores-sec__descr {
		font-size: .9em;
	}
}
/* Categories
	 ========================================================================== */

.maincats-sec__main-wrapper {
	padding: 20px;
}

.maincats-sec__main-wrapper.open {
	background: rgba(239, 232, 220, 0.2);
}

.maincats-sec__list {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.maincats-sec .list__item {
	display: block;
	position: relative;
	overflow: hidden;
}

.maincats-sec .list__item:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
}

.maincats-sec .item__img {
	object-fit: cover;
	width: 100%;
	aspect-ratio: 1/1;
}

.maincats-sec .item__name {
	display: block;
	position: absolute;
	z-index: 1;
	width: 100%;
	text-align: center;
	left: 0;
	bottom: 20px;
	color: #FFFFFF;
	font-weight: 500;
}

.maincats-sec__popmenu-wrapper {
	position: absolute;
	top: 100%;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	pointer-events: none;
	width: 100%;
	max-width: 0;
	max-height: 0;
	z-index: -11111;
}

.maincats-sec__main-wrapper.open .popmenu-wrapper.is-active {
	transition: opacity 1.2s ease, max-height 2s ease;
}

.maincats-sec__popmenu-wrapper.is-active {
	padding-top: 40px;
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 20px;
	position: unset;
	z-index: auto;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	max-height: 10000px;
	max-width: 100%;
}

.popmenu-wrapper__title-group {
	display: flex;
	align-items: flex-start;
	gap: 0 50px;
	padding-bottom: 50px;
	border-bottom: .5px solid #D9D9D9;
}	
.popmenu-wrapper__title {
	font-size: 20px;
	line-height: 42px;
	color: #161519;
}
.popmenu-wrapper__menu-groups {
	display: flex;
	flex-wrap: wrap;
	gap: 0 25px;
}

.popmenu-wrapper__menu-group {
	flex: 1 1 calc(25% - 25px);
	min-width: 230px;
}

.popmenu-wrapper__menu-title {
	font-weight: 500;
	color: #161519;
	line-height: 42px;
	font-size: 1em;
}

.popmenu-wrapper__menu {
	padding: 4px 24px;
	
}

.popmenu-wrapper__menu li a {
	padding: 4px;
	font-size: .9em;
	color: #747474;
	line-height: 1.1;
	font-weight: 500;
	font-family: 'Beatrice Deck';
	display: block;
}

@media (max-width: 767px) {
	.maincats-sec__main-wrapper {
		padding: 0;
	}
	.maincats-sec__list {
		grid-template-columns: repeat(2, 1fr);
		
	}
	.maincats-sec .item__img {
		aspect-ratio: auto;
		object-fit: cover;
		height: 100%;
	}

	.popmenu-wrapper__title-group {
		padding-bottom: 34px;
	}

	.maincats-sec .item__name {
		font-size: 22px;
	}
}

@media (max-width: 520px) {
	.popmenu-wrapper__title-group {
		display: block;
		padding-bottom: 12px;
	}
	.popmenu-wrapper__catalog-btn {
		display: none;
	}

	.maincats-sec .item__name {
		font-size: 20px;
	}

	.popmenu-wrapper__menu {
		padding-left: 20px;
		padding-right: 0;
	}
}