.catalog {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--gutter) 64px;
}

.catalog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.catalog__title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.catalog__tools {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.catalog__count {
	font-size: 13px;
	color: var(--gray);
}

.catalog__description {
	margin-bottom: 20px;
	color: var(--gray);
	font-size: 14px;
}

.catalog__subcats {
	margin-bottom: 24px;
}

.catalog__subcat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	font-size: 14px;
	font-weight: 600;
	transition: border-color .15s ease, color .15s ease;
}

.catalog__subcat:hover {
	border-color: var(--green);
	color: var(--green);
}

.catalog__subcat-count {
	font-size: 12px;
	font-weight: 500;
	color: var(--gray);
}

.catalog__results {
	transition: opacity .15s ease;
}

.catalog__results.is-loading {
	opacity: .5;
	pointer-events: none;
}

.catalog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.catalog__empty {
	padding: 48px 24px;
	text-align: center;
	color: var(--gray);
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding-bottom: 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
	transition: box-shadow .18s ease, transform .18s ease;
}

.product-card:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
	transform: translateY(-2px);
}

.product-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--bg-light) center/cover no-repeat;
	flex-shrink: 0;
}

.product-card__image-link {
	position: absolute;
	inset: 0;
}

.product-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--gradient);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.product-card__info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 4px 20px 0;
}

.product-card__category {
	font-size: 12px;
	color: var(--gray);
}

.product-card__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--dark);
	transition: color .15s ease;
}

a.product-card__title:hover {
	color: var(--green);
}

.product-card__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.product-card__price-current {
	font-size: 18px;
	font-weight: 700;
	color: var(--green);
}

.product-card__price-old {
	font-size: 14px;
	color: var(--gray);
}

.product-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.size-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 26px;
	padding: 5px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--white);
	font-size: 12px;
	color: var(--dark);
	white-space: nowrap;
}

.product-card__colors {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.color-swatch {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 2px solid transparent;
	border-radius: 50%;
	transition: border-color .15s ease;
}

.color-swatch:hover {
	border-color: var(--green-border);
}

.color-swatch__inner {
	width: 18px;
	height: 18px;
	border: 1px solid var(--light-gray);
	border-radius: 50%;
	background-size: cover;
	background-position: center;
}

.product-card__footer {
	margin-top: auto;
	padding: 8px 20px 0;
}

.product-card__more,
.product-card__footer .shop-add__submit {
	width: 100%;
}

.product-card__footer .shop-add {
	display: flex;
	gap: 8px;
	margin: 0;
}

.product-card__footer .shop-add__qty {
	width: 64px;
	min-height: 44px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-family: inherit;
	font-size: 14px;
	text-align: center;
}

.product-card__footer .shop-add__submit {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--gradient);
	color: var(--white);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.pagination,
.navigation.pagination {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--white);
	font-size: 14px;
	font-weight: 600;
	color: var(--dark);
}

.page-numbers:hover {
	border-color: var(--green);
	color: var(--green);
}

.page-numbers.current {
	background: var(--gradient);
	border-color: transparent;
	color: var(--white);
}

.product {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--gutter) 64px;
}

.product__gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 640px;
}

.product__summary {
	max-width: 720px;
}

.product__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	overflow: hidden;
	background: var(--bg-light);
}

.product__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product__thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.product__thumb {
	width: 72px;
	height: 72px;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg-light);
	cursor: pointer;
	padding: 0;
}

.product__thumb.is-active {
	border-color: var(--green);
}

.product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product__summary {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.product__category {
	font-size: 13px;
	color: var(--gray);
}

.product__title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.product__price {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.product__price-current {
	font-size: 28px;
	font-weight: 700;
	color: var(--green);
}

.product__price-old {
	font-size: 18px;
	color: var(--gray);
}

.product__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--green-dark);
}

.product__stock--out {
	color: #b91c1c;
}

.product__excerpt {
	color: var(--gray);
	font-size: 14px;
	line-height: 1.6;
}

.product__attrs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.product__attr {
	display: flex;
	gap: 16px;
	align-items: baseline;
	font-size: 14px;
}

.product__attr-label {
	flex: 0 0 140px;
	color: var(--gray);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: -.02em;
}

.product__attr-values {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.product .shop-add {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0;
}

.product .shop-add__variation {
	flex: 1 1 220px;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
}

.product .shop-add__variation:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}

.product .shop-add__qty {
	width: 80px;
	min-height: 48px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	text-align: center;
}

.product .shop-add__submit {
	min-height: 48px;
	padding: 14px 28px;
	border: 0;
	border-radius: 12px;
	background: var(--gradient);
	color: var(--white);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s ease;
}

.product .shop-add__submit:hover {
	filter: brightness(1.06);
}

.product__description {
	margin-top: 40px;
}

.product__description-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 12px;
}

@media (max-width: 768px) {
	.catalog,
	.product {
		padding-bottom: 40px;
	}

	.catalog__title {
		font-size: 22px;
	}

	.product__title {
		font-size: 24px;
	}

	.product__price-current {
		font-size: 24px;
	}

	.catalog__grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 12px;
	}

	.product-card__info {
		padding: 4px 14px 0;
	}

	.product-card__footer {
		padding: 8px 14px 0;
	}

	.product__attr {
		flex-direction: column;
		gap: 6px;
	}

	.product__attr-label {
		flex-basis: auto;
	}
}
