/* ============================================================
   КАТЕГОРІЇ (luxdrzwi) — грид категорій на новій головній.
   Дизайн: світло-бежевий фон, білі картки, квадратні фото 1:1,
   жовта стрілка. Грид: десктоп 4 / планшет 3 / мобайл 2.
   Наповнення вручну через ACF (repeater).
   ============================================================ */

.lux-cat {
	--lux-gold: #F9FF85;
	--lux-dark: #111111;

	position: relative;
	background: #ECE5DD;
	color: var(--lux-dark);
	padding: 100px 0 90px;
	overflow: hidden;
}

/* вертикальна лінія ліворуч — глобальні правила .lux-cat::before у style.css
   (left: 138px → 55px на ≤1650 → приховано на ≤1400) */

/* ---------- Боковий title — глобальні правила .side-title ---------- */

/* ---------- Заголовок / підзаголовок ---------- */
.lux-cat__head {
	margin-bottom: 44px;
}

.lux-cat__title {
	font-family: 'Unbounded', 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: clamp(26px, 3vw, 44px);
	line-height: 1.2;
	color: var(--lux-dark);
	margin: 0 0 20px;
	max-width: 900px;
}

.lux-cat__subtitle {
	font-size: 16px;
	line-height: 1.5;
	color: rgba(17, 17, 17, .75);
	margin: 0 0 30px;
}

/* ---------- Грид ---------- */
.lux-cat__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px 24px;
}

/* ---------- Картка ---------- */
.lux-cat__item {
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--lux-dark);
	text-decoration: none;
	border-radius: 10px;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}
.lux-cat__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(17, 17, 17, .12);
	color: var(--lux-dark);
	text-decoration: none;
}
/* жодного підкреслення на ховері — ні в назви, ні в опису */
.lux-cat__item:hover .lux-cat__item-title,
.lux-cat__item:hover .lux-cat__item-text,
.lux-cat__item:hover .lux-cat__img-wrap {
	text-decoration: none;
}
.lux-cat__item:focus-visible {
	outline: 2px solid var(--lux-dark);
	outline-offset: 3px;
	border-radius: 10px;
}

/* квадратне фото, радіус 10px з усіх чотирьох сторін */
.lux-cat__img-wrap {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #e9e4dd;
	border-radius: 10px;
}
.lux-cat__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 10px;
	transition: transform .45s ease;
}
.lux-cat__item:hover .lux-cat__img {
	transform: scale(1.04);
}

/* контент картки: відступи 15 → 7 на мобайлі */
.lux-cat__content {
	display: flex;
	flex-direction: column;
	padding: 15px;
}

.lux-cat__item-title {
	/* кламп: 18 на десктопі → 15 на мобайлі */
	font-family: 'Unbounded', 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: clamp(15px, 0.6vw + 10px, 18px);
	line-height: 1.3;
	color: var(--lux-dark);
	margin: 0 0 10px;
}

.lux-cat__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
}

.lux-cat__item-text {
	/* 12px на всіх екранах */
	font-size: 12px;
	line-height: 1.45;
	color: #6b6b6b;
}

/* жовта стрілка картки */
.lux-cat__arrow {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--lux-gold);
	color: var(--lux-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .3s ease, background .3s ease;
}
.lux-cat__arrow svg {
	width: 14px;
	height: 14px;
}
.lux-cat__item:hover .lux-cat__arrow {
	transform: translateX(4px);
}

/* ---------- Кнопка «До всіх категорій» ---------- */
.lux-cat__more {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.lux-cat__btn {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	background: var(--lux-gold);
	color: var(--lux-dark);
	font-weight: 600;
	font-size: 14px;
	padding: 11px 12px 11px 26px;
	border-radius: 65px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.lux-cat__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(17, 17, 17, .18);
	color: var(--lux-dark);
}
.lux-cat__btn-circle {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--lux-dark);
	color: var(--lux-gold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.lux-cat__btn-circle svg {
	width: 12px;
	height: 12px;
}

/* ---------- Адаптив ---------- */

/* планшет: 3 в ряду */
@media (max-width: 1199px) {
	.lux-cat {
		padding: 80px 0 70px;
	}
	.lux-cat__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px 20px;
	}
	.lux-cat__title {
		max-width: 720px;
	}
}

/* мобайл: 2 в ряду, відступи контенту 7px */
@media (max-width: 767px) {
	.lux-cat {
		padding: 56px 0 50px;
	}
	.lux-cat::before {
		left: 24px;
	}
	.lux-cat__head {
		margin-bottom: 28px;
	}
	.lux-cat__title {
		font-size: clamp(22px, 6vw, 28px);
		margin-bottom: 10px;
	}
	.lux-cat__subtitle {
		font-size: 14px;
	}
	.lux-cat__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px 10px;
	}
	.lux-cat__content {
		padding: 7px;
	}
	.lux-cat__item-title {
		font-size: 15px; /* кламп вже дає 15, страхуємо */
		margin-bottom: 6px;
	}
	.lux-cat__item-text {
		font-size: 11px;
	}
	.lux-cat__arrow {
		width: 28px;
		height: 28px;
	}
	.lux-cat__arrow svg {
		width: 12px;
		height: 12px;
	}
	.lux-cat__more {
		margin-top: 32px;
	}
	/* боковий title на вузьких екранах ховається глобально (.side-title ≤1400) */
}


@media (max-width: 767px) {
	.lux-cat__title { margin-bottom: 15px; }
	.lux-cat__subtitle { margin-bottom: 20px; }
}
