@media screen and (max-width: 480px) {
	.products {
		padding: 4rem 0.25rem 1rem;
	}
	.products__title {
		font-size: 1.1rem;
	}
}
/*=============== PRODUCTS PAGE ===============*/
.products {
	padding: 7rem 1.5rem 4rem;
	background: #fff;
}

.products__container {
	max-width: 1600px; /* ge mer bredd till grid utan att röra sidebar */
	width: 100%;
	margin: 0 auto;
}

.products__header {
	text-align: center;
	margin-bottom: 2.5rem;
	padding-left: 0;
}

.products__title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 200;
	letter-spacing: 0.08em;
}

.products__subtitle {
	font-size: 1rem;
	color: #666;
}

/* Two-column layout: filters left, grid right */
.products__layout {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr); /* lite mindre filter-kolumn */
	gap: 2rem;
	align-items: start;
	max-width: 1800px; /* ✅ mer plats för 4 större produkter */
	width: 100%;
	margin: 0 auto;
}

/* Sticky filters */
.products__filters {
	position: sticky;
	top: 8rem; /* ✅ under navbar */
	width: 100%; /* använd hela kolumnbredden */
}

/* Mobile filter trigger button */
.products__filter-trigger {
	display: none; /* Hidden on desktop */
}

/* Filters UI */
.filters {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 1.75rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.filters__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.25rem;
}

.filters__close {
	display: none; /* Hidden on desktop */
	background: none;
	border: none;
	font-size: 1.8rem;
	color: #666;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.2s;
}

.filters__close:hover {
	color: #1a1a1a;
}

.filters__title {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #1a1a1a;
}

.filters__group {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	overflow: visible;
}

.filters__group--sizes {
	margin-top: -3.35rem;
}

.filters__group--checkboxes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem 0.75rem;
	margin-top: 0.25rem;
	overflow: hidden;
	max-height: 500px;
	transition: max-height 0.3s ease;
}

.filters__group--checkboxes.filters__categories-list {
	grid-template-columns: 1fr;
}

.filters__group--checkboxes.filters__sizes-list {
	grid-template-columns: repeat(2, 1fr);
}

.filters__group--checkboxes.filters__expandable.filters__categories-list {
	max-height: 140px;
}

.filters__group--checkboxes.filters__expandable.filters__sizes-list {
	max-height: 110px;
}

.filters__group--checkboxes.filters__expandable.filters__expanded {
	max-height: 1000px;
}

.filters__label {
	font-size: 0.8rem;
	color: #666;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 700;
}

.filters__color-search-container {
	position: relative;
	overflow: visible;
}

.filters__text-input {
	width: 100%;
	padding: 0.75rem;
	font-size: 0.95rem;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	background: #fff;
	color: #333;
	transition: all 0.2s ease;
	font-family: inherit;
}

.filters__text-input:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.filters__text-input::placeholder {
	color: #999;
}

.filters__color-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 0.5rem;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	max-height: 300px;
	overflow-y: auto;
	z-index: 10000;
}

.filters__color-list-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.75rem;
	cursor: pointer;
	transition: background 0.2s;
	font-size: 0.9rem;
	border-bottom: 1px solid #f5f5f5;
}

.filters__color-list-item:last-child {
	border-bottom: none;
}

.filters__color-list-item:hover {
	background: #f8f8f8;
}

.filters__color-list-item input[type="checkbox"] {
	cursor: pointer;
	width: 18px;
	height: 18px;
	accent-color: #1a1a1a;
	flex-shrink: 0;
	margin: 0;
}

.filters__color-list-item span {
	flex: 1;
}

.filters__selected-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
	min-height: 30px;
}

.filters__size-search-container {
	position: relative;
	overflow: visible;
}

.filters__size-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 0.5rem;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	max-height: 300px;
	overflow-y: auto;
	z-index: 10000;
}

.filters__size-list-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.75rem;
	cursor: pointer;
	transition: background 0.2s;
	font-size: 0.9rem;
	border-bottom: 1px solid #f5f5f5;
}

.filters__size-list-item:last-child {
	border-bottom: none;
}

.filters__size-list-item:hover {
	background: #f8f8f8;
}

.filters__size-list-item input[type="checkbox"] {
	cursor: pointer;
	width: 18px;
	height: 18px;
	accent-color: #1a1a1a;
	flex-shrink: 0;
	margin: 0;
}

.filters__size-list-item span {
	flex: 1;
}

.filters__selected-sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
	min-height: 30px;
}

.size-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.7rem;
	background: #f0f0f0;
	border: 1px solid #d0d0d0;
	border-radius: 20px;
	font-size: 0.85rem;
	color: #333;
}

.size-tag__remove {
	background: none;
	border: none;
	color: #666;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	margin: 0;
	transition: color 0.2s;
}

.size-tag__remove:hover {
	color: #ff4444;
}

.color-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.7rem;
	background: #f0f0f0;
	border: 1px solid #d0d0d0;
	border-radius: 20px;
	font-size: 0.85rem;
	color: #333;
}

.color-tag__remove {
	background: none;
	border: none;
	color: #666;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	margin: 0;
	transition: color 0.2s;
}

.color-tag__remove:hover {
	color: #ff4444;
}

.filters__option {
	font-size: 0.9rem;
	color: #555;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0.4rem 0;
	overflow: hidden;
	min-width: 0;
}

.filters__option span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.filters__option input[type="checkbox"] {
	cursor: pointer;
	width: 18px;
	height: 18px;
	accent-color: #1a1a1a;
	flex-shrink: 0;
	border-radius: 2px;
	margin: 0;
}

.filters__option:hover {
	color: #1a1a1a;
}

.filters__option:hover input[type="checkbox"] {
	box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

.filters__option input[type="checkbox"]:checked + span {
	font-weight: 600;
	color: #1a1a1a;
}

.filters__range {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.filters__range-input {
	width: 100%;
    display: block;
	cursor: pointer;
	accent-color: #1a1a1a;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: #e0e0e0;
	border-radius: 3px;
	outline: none;
}

.filters__range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #1a1a1a;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.2s;
}

.filters__range-input::-webkit-slider-thumb:hover {
	transform: scale(1.15);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.filters__range-input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #1a1a1a;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.2s;
}

.filters__range-input::-moz-range-thumb:hover {
	transform: scale(1.15);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.filters__range-scale {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	color: #888;
	font-weight: 500;
}

.filters__range-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
	padding: 0.7rem;
	background: #f0f0f0;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.filters__colors {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin-top: 0.25rem;
}

.filters__color-label {
	position: relative;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s;
}

.filters__color-label:hover {
	transform: scale(1.05);
}

.filters__color {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #d0d0d0;
	cursor: pointer;
	transition: all 0.25s ease;
	position: relative;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filters__color:hover {
	border-color: #999;
	transform: scale(1.12);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.filters__color--active {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1a1a1a, 0 3px 10px rgba(0, 0, 0, 0.2);
	transform: scale(1.08);
}

.filters__actions {
	display: flex;
	gap: 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid #e0e0e0;
	margin-top: 0.5rem;
}

.filters__expand-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.6rem 0.8rem;
	border: 1px solid #d0d0d0;
	background: transparent;
	color: #666;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.2s ease;
	margin-top: 0.5rem;
}

.filters__expand-btn:hover {
	color: #1a1a1a;
	border-color: #999;
	background: #f5f5f5;
}

.filters__expand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 1.2rem;
	transition: transform 0.3s ease;
	line-height: 1;
}

.filters__expand-btn.filters__expanded .filters__expand-text::after {
	content: ' mindre';
}

.filters__expand-btn.filters__expanded .filters__expand-text {
	position: absolute;
	width: 0;
	overflow: hidden;
}

.filters__expand-btn.filters__expanded .filters__expand-text::before {
	content: 'Visa mindre';
	position: relative;
	width: auto;
}

.filters__expand-btn.filters__expanded .filters__expand-icon {
	transform: rotate(45deg);
}

.filters__apply,
.filters__reset {
	flex: 1;
	padding: 0.85rem 1.2rem;
	border-radius: 6px;
	border: 2px solid transparent;
	background: #1a1a1a;
	color: #fff;
	cursor: pointer;
	text-align: center;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	transition: all 0.25s ease;
	text-transform: capitalize;
}

.filters__reset {
	background: transparent;
	color: #1a1a1a;
	border: 2px solid #d0d0d0;
}

.filters__apply:hover {
	background: #0d0d0d;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transform: translateY(-1px);
}

.filters__apply:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.filters__reset:hover {
	background: #f5f5f5;
	border-color: #1a1a1a;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/*=============== PRODUCTS GRID ===============*/
.products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(260px, 1fr)); /* större kort utan att bryta 4 kolumner */
	gap: 1.75rem; /* lite tightare mellan korten */
}

/*=============== PRODUCTS OVERRIDES (NO CARD LOOK) ===============*/
.products .product-card {
	background: transparent;
	border: none;
	box-shadow: none;
	transition: none;
}

.products .product-card:hover {
	transform: none;
	box-shadow: none;
}

.products .product-card__image-wrapper {
	background: none;
	aspect-ratio: 3 / 4.6; /* högre bild utan att ändra bredd */
}

.products .product-card__content {
	padding: 1rem 0; /* ✅ lite mer luft */
}

 .products .product-card__main-link {
 	display: block;
 	text-decoration: none;
 	color: inherit;
 }

/* ✅ Gör text/pris lite större (om dessa klasser finns i din card) */
.products .product-card__title {
	font-size: 1.05rem;
}

.products .product-card__price {
	font-size: 1rem;
}

/*=============== PAGINATION ===============*/
.products__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
	padding: 2rem 0;
	grid-column: 1 / -1;
}

.pagination__pages {
	display: flex;
	gap: 0.25rem;
}

.pagination__page {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 0.95rem;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
}

.pagination__page:hover {
	background-color: #f5f5f5;
	border-color: #ccc;
}

.pagination__page--active {
	background-color: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
	pointer-events: none;
}

.pagination__btn {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.6rem 1.2rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.pagination__btn:hover {
	background-color: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

.pagination__btn--disabled {
	opacity: 0.4;
	pointer-events: none;
}

@media screen and (max-width: 480px) {
	.products__pagination {
		flex-wrap: wrap;
		gap: 0.4rem;
	}
	.pagination__page {
		width: 35px;
		height: 35px;
		font-size: 0.85rem;
	}
	.pagination__btn {
		padding: 0.5rem 0.8rem;
		font-size: 0.8rem;
	}
}

/*=============== RESPONSIVE ===============*/
/* Behåll 4 kolumner längre ner, byt till 3 först vid 1024px */
@media screen and (max-width: 1024px) {
	.products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem;
	}

	.products__layout {
		grid-template-columns: 1fr;
		position: relative;
	}

	/* Show filter trigger button on tablet/mobile */
	.products__filter-trigger {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		width: 100%;
		padding: 0.9rem 1.5rem;
		margin-bottom: 1.5rem;
		background: #1a1a1a;
		color: #fff;
		border: none;
		border-radius: 6px;
		font-size: 1rem;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.3s ease;
	}

	.products__filter-trigger:hover {
		background: #0d0d0d;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	}

	.products__filter-trigger i {
		font-size: 1.3rem;
	}

	/* Drawer styles for tablet/mobile filters */
	.products__filters {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 9999;
		transform: translateY(-100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		margin: 0;
	}

	.products__filters--open {
		transform: translateY(0);
	}

	.products__filters .filters {
		width: 100%;
		height: 100%;
		background: #fff;
		border-radius: 0;
		border: none;
		padding: 2rem 1.5rem;
		overflow-y: auto;
	}

	.filters__close {
		display: block;
	}

	.filters__header {
		margin-bottom: 1rem;
	}

	.filters__range-input,
	.filters__range-scale {
		max-width: 100%;
	}
	.filters__range-input {
		max-width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.products {
		padding: 5rem 1rem 3rem;
	}

	.products__header {
		margin-bottom: 1.5rem;
	}
}

@media screen and (max-width: 480px) {
	.products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}
