/* ==========================================================================
   V20 — shop.css
   /shop archive: glass filter sidebar + white product cards.
   Sidebar stacks above grid below 992px. Grid 1/2/3 cols (768/1200).
   ========================================================================== */

.shop-page {
	padding-block: 3rem;
}

.shop-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

/* ---- Filter sidebar ---- */
.filter-box {
	background: rgba(25, 25, 25, .7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.filter-box:hover {
	border-color: rgba(40, 167, 69, .4);
	box-shadow: 0 0 25px rgba(40, 167, 69, .15);
	transform: translateY(-2px);
}

.filter-box__title {
	margin: 0 0 1rem;
	padding-bottom: 10px;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: .5px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.filter-group {
	margin-bottom: 1.5rem;
}

.filter-group__label {
	margin-bottom: .5rem;
	color: rgba(255, 255, 255, .5);
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
}

.form-check {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: .35rem;
}

.form-check-input {
	width: 1.1em;
	height: 1.1em;
	margin: 0;
	accent-color: var(--v20-neon);
	cursor: pointer;
}

.form-check-label {
	color: var(--v20-text);
	cursor: pointer;
}

.color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.filter-color {
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: transform .2s ease, outline .2s ease;
}

.filter-color.active {
	transform: scale(1.1);
	outline: 2px solid #00ff00;
	outline-offset: 2px;
	box-shadow: 0 0 5px rgba(0, 255, 0, .5);
}

/* ---- Product grid ---- */
.product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--v20-dark);
	color: var(--v20-text);
	border: 1px solid var(--v20-border);
	border-radius: 12px;
	overflow: hidden;
}

.product-card__badge {
	position: absolute;
	top: 0;
	left: 0;
	margin: 1rem;
	z-index: 2;
	padding: .35em .65em;
	background: #198754;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	border-radius: .375rem;
}

.product-card__img {
	width: 100%;
	aspect-ratio: 8 / 7;   /* slightly shorter than square to match v20's card height */
	object-fit: cover;
	transform: scale(0.75);
	overflow: visible;
	background: #fff;
}

.product-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 1rem;
}

.product-card__title {
	margin: 0 0 .5rem;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
}

.product-card__price {
	margin: 0 0 .75rem;
	color: var(--v20-neon);
	font-weight: 700;
}

.product-card__btn {
	margin-top: auto;
	padding: .5rem 1rem;
	text-align: center;
	color: #f8f9fa;
	background: transparent;
	border: 1px solid rgba(248, 249, 250, .5);
	border-radius: 8px;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

/* Stretched link — whole card clickable. */
.product-card__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.product-card:hover .product-card__btn {
	color: #000;
	background: #f8f9fa;
	border-color: #f8f9fa;
}

/* ---- Breakpoints ---- */
@media (min-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.shop-layout {
		grid-template-columns: 3fr 9fr;   /* col-lg-3 / col-lg-9 */
		align-items: start;
	}
}

@media (min-width: 1200px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
