.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(4, 1fr);
	gap: 24px;
}

@media (max-width: 1199.98px) {
	.catalog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 919.98px) {
	.catalog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.catalog__grid {
		grid-template-columns: 1fr;
	}
}

.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: 24px;
	background: var(--white);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(15, 23, 42, .08);
	transition: box-shadow .2s ease;
}

.product-card:hover {
	box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.product-card:hover .product-card__image {
	transform: scale(1.015);
}

.product-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	background: var(--bg-light) center/cover no-repeat;
	flex-shrink: 0;
	transition: transform .3s ease;
}

.product-card__image-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.product-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	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: 12px;
	padding: 4px 20px 0;
}

.product-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 14px;
}

.product-card__category {
	font-size: 13px;
	color: var(--gray);
	line-height: 1;
}

.product-card__title {
	display: block;
	font-family: 'Outfit', sans-serif;
	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__sizes {
	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-family: inherit;
	font-size: 12px;
	color: var(--dark);
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

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

.size-tag.is-selected {
	background: var(--green-soft);
	border-color: var(--green-border);
	color: var(--green-dark);
}

.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%;
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease;
}

.color-swatch:hover {
	border-color: var(--green-soft);
	transform: scale(1.12);
}

.color-swatch.is-selected {
	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__button-frame {
	margin-top: auto;
	padding: 8px 16px 0;
}

.product-card__button-frame .btn {
	width: 100%;
	height: 48px;
	min-height: 48px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.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;
	}
}

.product-card__image {
  position: relative;
  overflow: hidden;
}

.pc-gallery {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pc-gallery__track {
  display: flex;
  height: 100%;
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}

.pc-gallery__track.is-dragging {
  transition: none;
}

.pc-gallery__img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.pc-gallery__dots {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  display: flex;
  gap: 4px;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.pc-gallery__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 2px rgba(15, 23, 42, .25);
  transition: width .2s ease, background .2s ease;
}

.pc-gallery__dots span.is-active {
  width: 16px;
  border-radius: 3px;
  background: #fff;
}
