/* Main Product Group Page */

.ag-main-product-group-page {
	background: #fff;
	color: #111;
}

/* Hero */
.ag-main-product-group-page .hero {
	padding: 0;
}

.ag-main-product-group-page .hero .banner {
	position: relative;
	overflow: hidden;
	background: #f7f7f7;
}

.ag-main-product-group-page .hero .banner img {
	width: 100%;
	height: var(--ag-hero-height-desktop, 100vh);
	min-height: 560px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.ag-main-product-group-page .ag-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, var(--ag-hero-overlay-opacity, 0));
	z-index: 1;
	pointer-events: none;
}

.ag-main-product-group-page .hero .banner .container {
	position: absolute;
	top: 8.5%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	width: 100%;
}

.ag-main-product-group-page .hero .banner .container .row {
	text-align: center;
	justify-content: center;
}

.ag-main-product-group-page .hero .banner .container .row p {
	font-family: serif;
	font-size: 2.5rem;
	line-height: 1.15;
	font-weight: 100;
	margin-bottom: 0;
	letter-spacing: 2px;
	color: var(--ag-hero-text-color, #333333);
	text-transform: uppercase;
}

.ag-main-product-group-page .hero .banner .container .row p.middle {
	font-size: clamp(4rem, 7.15vw, 7.15rem);
	line-height: 1.15;
	font-weight: 100;
	letter-spacing: 5.5px;
}

.ag-main-product-group-page .hero .banner .container .row p.bottom {
	font-size: 2.25rem;
	font-weight: 100;
	letter-spacing: 2px;
	line-height: 1.15;
}

.ag-main-product-group-page .hero .banner p.slogan {
	position: absolute;
	left: 50%;
	bottom: var(--ag-hero-slogan-bottom, 15vh);
	transform: translateX(-50%);
	z-index: 2;
	width: calc(100% - 32px);
	max-width: 900px;
	margin: 0;
	text-align: center;
	font-family: serif;
	font-size: 1.35rem;
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--ag-hero-slogan-color, rgba(51, 51, 51, 0.59));
	text-wrap: balance;
}

/* Shared sections */
.category-grid,
.product-grid {
	padding-top: 64px;
	padding-bottom: 64px;
}

.category-grid .section-title,
.product-grid h2 {
	font-size: 1.7rem;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 0;
	color: #111;
}

/* Category Grid */
.category-grid {
	padding-bottom: 24px;
}

.category-grid .section-title {
	margin-bottom: 28px;
}

.category-grid .category a {
	display: block;
	text-decoration: none;
}

.category-grid .category .banner-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: .25rem;
	background: #f5f5f5;
	box-shadow: 0 12px 36px rgba(17, 17, 17, 0.05);
}

.category-grid .category .banner-wrapper::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.58) 100%);
	z-index: 1;
	pointer-events: none;
}

.category-grid .category .banner-wrapper img {
	width: 100%;
	height: 225px;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.45s ease;
}

.category-grid .category a:hover img {
	transform: scale(1.04);
}

.category-grid .category h2 {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	margin: 0;
	padding: 26px 22px 22px;
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 100;
	letter-spacing: -0.01em;
	color: #fff;
}

/* Product Grid */
.product-grid .row.align-items-center {
	margin-bottom: 18px;
}

.product-grid .form-switch {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding-left: 0;
}

.product-grid .form-switch label {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
	color: #444;
	cursor: pointer;
}

.product-grid .form-switch .form-check-input,
.product-grid .form-switch input {
	margin: 0;
	width: 46px !important;
	height: 26px;
	border-radius: 999px;
	border: 1px solid #111;
	box-shadow: none;
	cursor: pointer;
}

.product-grid hr {
	margin-top: 0;
	margin-bottom: 22px;
	border-color: rgba(0, 0, 0, 0.08);
}

.switch-active .product-grid .product img.main {
	opacity: 0;
	visibility: hidden;
}

.switch-active .product-grid .product img.hover {
	opacity: 1;
	visibility: visible;
}

.switch-active .product-grid .product:hover img.main {
	opacity: 1;
	visibility: visible;
}

.switch-active .product-grid .product:hover img.hover {
	opacity: 0;
	visibility: hidden;
}

.product-grid .product a {
	position: relative;
	display: block;
	padding-top: 100%;
	overflow: hidden;
	border-radius: .25rem;
	background: #f7f7f7;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 12px 36px rgba(17, 17, 17, 0.04);
	text-decoration: none;
}

.product-grid .product span.size {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 20px;
	padding: 0 12px;
	border-radius: 2rem;
	background: #555;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0.82rem;
	line-height: 1;
	font-weight: 100;
	letter-spacing: 1px;
}

.product-grid .product img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: .25rem;
	transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.35s ease;
}

.product-grid .product img.main {
	opacity: 1;
	visibility: visible;
}

.product-grid .product img.hover {
	opacity: 0;
	visibility: hidden;
}

.product-grid .product:hover img.main {
	opacity: 0;
	visibility: hidden;
	transform: scale(1.02);
}

.product-grid .product:hover img.hover {
	opacity: 1;
	visibility: visible;
	transform: scale(1.02);
}

.product-grid .btn.btn-secondary {
	min-height: 52px;
	border-radius: .25rem;
	border: 1px solid #111;
	background: #111;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.product-grid .btn.btn-secondary:hover {
	background: #222;
	border-color: #222;
	color: #fff;
}

/* Content */
.ag-main-product-group-page .ag-page-content {
	position: relative;
	padding-top: 64px !important;
	padding-bottom: 64px !important;
}

.ag-main-product-group-page .ag-page-content > .row > .col-12 > *:last-child {
	margin-bottom: 0;
}

/* Mobile slider */
@media only screen and (max-width: 600px) {
	.category-grid-slider-wrap {
		position: relative;
	}

	.category-grid-slider {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		gap: 12px;
		margin-left: 0;
		margin-right: 0;
		padding-bottom: 8px;
	}

	.category-grid-slider::-webkit-scrollbar {
		display: none;
	}

	.category-grid-slider > .category {
		flex: 0 0 100%;
		max-width: 100%;
		scroll-snap-align: start;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	.category-grid-slider > .category[data-mobile-order="1"] {
		order: 1;
	}

	.category-grid-slider > .category[data-mobile-order="2"] {
		order: 2;
	}

	.category-grid-slider > .category[data-mobile-order="3"] {
		order: 3;
	}

	.category-grid-slider > .category[data-mobile-order="4"] {
		order: 4;
	}

	.category-grid-slider > .category[data-mobile-order="5"] {
		order: 5;
	}

	.category-grid-slider > .category[data-mobile-order="6"] {
		order: 6;
	}

	.category-grid-dots {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 10px;
		margin-top: 16px;
	}

	.category-grid-dots button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.category-grid-dots button svg {
		display: block;
		width: 24px;
		height: 24px;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.category-grid-dots button.active svg {
		border: 1px solid #333;
		border-radius: 100%;
	}
}

/* Tablet */
@media (max-width: 991.98px) {
	.ag-main-product-group-page .hero .banner img {
		height: var(--ag-hero-height-mobile, 70vh);
		min-height: 440px;
	}

	.ag-main-product-group-page .hero .banner .container .row p {
		font-size: 1.4rem;
		letter-spacing: 0.08em;
	}

	.ag-main-product-group-page .hero .banner .container .row p.middle {
		font-size: clamp(2.8rem, 10vw, 4.2rem);
	}

	.ag-main-product-group-page .hero .banner .container .row p.bottom {
		font-size: 1.15rem;
	}

	.ag-main-product-group-page .hero .banner p.slogan {
		font-size: 1rem;
		letter-spacing: 0.04em;
		bottom: 8vh;
		padding: 0 12px;
	}

	.category-grid .category .banner-wrapper img {
		height: 220px;
	}

	.category-grid,
	.product-grid {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.ag-main-product-group-page .ag-page-content {
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}
}

/* Mobile */
@media (max-width: 575.98px) {
	.ag-main-product-group-page .hero .banner .container {
		top: 13%;
	}

	.ag-main-product-group-page .hero .banner .container .row p {
		font-size: 1.1rem;
	}

	.ag-main-product-group-page .hero .banner .container .row p.middle {
		font-size: 2.35rem;
		line-height: 0.95;
	}

	.ag-main-product-group-page .hero .banner .container .row p.bottom {
		font-size: 1rem;
	}

	.ag-main-product-group-page .hero .banner p.slogan {
		font-size: 0.92rem;
		width: calc(100% - 24px);
	}

	.product-grid .form-switch {
		justify-content: flex-start;
		margin-top: 14px;
	}

	.category-grid .section-title,
	.product-grid h2 {
		font-size: 1.35rem;
	}

	.category-grid .category h2 {
		font-size: 1.1rem;
		padding: 22px 18px 18px;
	}

	.product-grid .product a {
		border-radius: 18px;
	}

	.product-grid .product img {
		border-radius: 18px;
	}

	.product-grid .product span.size {
		left: 10px;
		bottom: 10px;
		font-size: 0.76rem;
		padding: 0 10px;
		min-height: 28px;
	}

	.category-grid,
	.product-grid {
		padding-top: 36px;
		padding-bottom: 36px;
	}

	.ag-main-product-group-page .ag-page-content {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
	}
}