/* =========================================================================
   AMIK 94 — продукти, категории, производители, контактни входове
   ========================================================================= */

/* Дребни добавки към съществуващите компоненти --------------------------- */

.pill--warn {
	background: rgba(122, 83, 16, 0.08);
	border-color: rgba(122, 83, 16, 0.32);
	color: var(--warn);
}

.fineprint {
	margin: 24px 0 0;
	color: var(--steel);
	font-size: 0.8125rem;
	line-height: 1.55;
}

.demo-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	background: var(--ink);
	border: 1px solid var(--line-dark);
	border-radius: 999px;
	color: var(--copper-light);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.demo-pill--inline {
	position: static;
	background: var(--paper-2);
	border-color: var(--line);
	color: var(--copper-ink);
}

/* Breadcrumbs ------------------------------------------------------------ */

.breadcrumbs-row {
	padding-block: 16px 0;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	color: var(--steel);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	list-style: none;
	text-transform: uppercase;
}

.breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "/";
	color: var(--line);
}

.breadcrumbs__item a {
	max-width: 28ch;
	overflow: hidden;
	border-bottom: 1px solid transparent;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.breadcrumbs__item a:hover {
	border-bottom-color: var(--copper);
	color: var(--copper-ink);
}

.breadcrumbs__item span[aria-current="page"] {
	color: var(--ink);
}

/* Product card ----------------------------------------------------------- */

.product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 28px);
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--line);
	transition: border-color 0.12s ease;
}

.product-card:hover {
	border-color: var(--ink);
}

.section--alt .product-card {
	background: var(--paper);
}

.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ink);
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.22s var(--ease);
}

.product-card:hover .product-card__media img {
	transform: scale(1.02);
}

.product-card > .demo-pill {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
}

.product-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--copper-light);
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 4vw, 3.5rem);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 18px 18px 20px;
}

.product-card__cat {
	margin: 0;
	color: var(--steel);
	font-size: 0.6875rem;
	letter-spacing: 0.09em;
	line-height: 1.4;
	text-transform: uppercase;
}

.product-card__cat a {
	border-bottom: 1px solid transparent;
	text-decoration: none;
}

.product-card__cat a:hover {
	border-bottom-color: var(--copper);
	color: var(--copper-ink);
}

.product-card__title {
	margin: 0;
	font-family: var(--font-text);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	overflow-wrap: break-word;
}

.product-card__title a {
	text-decoration: none;
}

.product-card__title a:hover {
	color: var(--copper-ink);
	text-decoration: underline;
	text-decoration-color: var(--copper);
	text-underline-offset: 0.16em;
}

.product-card__producer {
	margin: 0;
	color: var(--steel);
	font-size: 0.9375rem;
	overflow-wrap: break-word;
}

.product-card__producer a {
	border-bottom: 1px solid var(--line);
	text-decoration: none;
}

.product-card__producer a:hover {
	border-bottom-color: var(--copper);
	color: var(--copper-ink);
}

.product-card__production {
	margin: 0;
	color: var(--copper-ink);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.product-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.product-card__price {
	color: var(--ink);
	font-size: 0.8125rem;
	white-space: nowrap;
}

.product-card__cta {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 0.4rem;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--copper-ink);
	color: var(--copper-ink);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: gap 0.12s ease;
}

.product-card__cta:hover {
	gap: 0.65rem;
}

/* Product category card --------------------------------------------------- */

.product-cat-card {
	background: var(--paper);
	border: 1px solid var(--line);
	transition: border-color 0.12s ease;
}

.product-cat-card:hover {
	border-color: var(--ink);
}

.product-cat-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.product-cat-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ink);
}

.product-cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-cat-card__monogram {
	color: var(--copper-light);
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 500;
}

.product-cat-card__body {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 18px;
}

.product-cat-card__name {
	font-size: 1.0625rem;
	font-weight: 500;
}

.product-cat-card__count {
	color: var(--steel);
	font-size: 0.75rem;
	white-space: nowrap;
}

.product-cat-card__arrow {
	color: var(--copper-ink);
	font-family: var(--font-mono);
}

/* Homepage — входове и категориен индекс -------------------------------- */

.entry-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 20px);
}

.entry-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 180px;
	padding: clamp(18px, 2.4vw, 26px);
	background: var(--paper-2);
	border: 1px solid var(--line);
	text-decoration: none;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

.entry-card:hover {
	background: var(--paper);
	border-color: var(--ink);
}

.entry-card__index {
	color: var(--copper-ink);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
}

.entry-card__title {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1.5vw, 1.35rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.entry-card__text {
	flex: 1;
	color: var(--steel);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.entry-card__arrow {
	align-self: flex-end;
	color: var(--copper-ink);
	font-family: var(--font-mono);
	font-size: 1rem;
	transition: transform 0.12s ease;
}

.entry-card:hover .entry-card__arrow {
	transform: translateX(4px);
}

.cat-index {
	margin-top: clamp(32px, 5vw, 56px);
	border-top: 1px solid var(--ink);
}

.cat-index__head {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto 32px;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	color: var(--steel);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cat-index__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto 32px;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	color: inherit;
	text-decoration: none;
	transition: padding-left 0.12s ease, color 0.12s ease;
}

.cat-row:hover {
	padding-left: 6px;
	color: var(--copper-ink);
}

.cat-row__num {
	color: var(--copper-ink);
	font-family: var(--font-mono);
	font-size: 0.75rem;
}

.cat-row__name {
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 1.8vw, 1.5rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.cat-row__count {
	color: var(--steel);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	white-space: nowrap;
}

.cat-row__arrow {
	color: var(--copper-ink);
	font-family: var(--font-mono);
}

/* Начало — два входа: за дома и за бизнеса ------------------------------- */

.audience-split {
	margin-top: clamp(32px, 5vw, 56px);
	padding-top: 20px;
	border-top: 1px solid var(--ink);
}

.audience-split__eyebrow {
	margin-bottom: clamp(16px, 2.5vw, 28px);
}

.audience-split__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding-right: clamp(20px, 3.5vw, 48px);
}

.audience-panel + .audience-panel {
	padding-right: 0;
	padding-left: clamp(20px, 3.5vw, 48px);
	border-left: 1px solid var(--line);
}

.audience-panel__tag {
	margin: 0;
	color: var(--steel);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.audience-panel__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 2.1vw, 1.7rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.015em;
	overflow-wrap: break-word;
}

.audience-panel__text {
	max-width: 42ch;
	margin: 0;
	color: var(--steel);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.audience-panel__cta {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 8px;
}

.featured-products {
	margin-top: clamp(40px, 6vw, 64px);
}

.featured-products__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.featured-products__head .eyebrow {
	margin: 0;
}

/* Контактни входове ------------------------------------------------------- */

.path-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 20px);
}

.path-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 220px;
	padding: clamp(18px, 2.4vw, 26px);
	background: var(--paper);
	border: 1px solid var(--line);
	text-decoration: none;
	transition: border-color 0.12s ease;
}

.path-card:hover {
	border-color: var(--ink);
}

.path-card__index {
	color: var(--copper-ink);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
}

.path-card__title {
	margin: 0;
	font-family: var(--font-text);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
}

.path-card__text {
	flex: 1;
	color: var(--steel);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.path-card__cta {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 0.4rem;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--copper-ink);
	color: var(--copper-ink);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.contact-hub__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.contact-hub__foot .contact-list--inline {
	margin-top: 0;
}

/* Архив — филтри ---------------------------------------------------------- */

.product-filter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
	gap: 12px 16px;
	align-items: end;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}

.product-filter__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.product-filter__label {
	color: var(--steel);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.product-filter__select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	background: #fbfaf7;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1rem;
}

.product-filter__select:focus-visible {
	border-color: var(--copper-ink);
	outline: 2px solid var(--copper-ink);
	outline-offset: 1px;
}

.product-filter__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.product-filter__reset {
	color: var(--copper-ink);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.filter-pill__count {
	margin-left: 6px;
	color: var(--steel);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
}

.filter-pill.is-active .filter-pill__count {
	color: var(--paper);
}

.product-categories {
	margin-bottom: 20px;
}

.search-group__more {
	margin: 24px 0 0;
}

/* Single product --------------------------------------------------------- */

.product-hero {
	padding-block: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 72px);
	border-bottom: 1px solid var(--line);
}

.product-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

.product-hero h1 {
	max-width: 18ch;
	font-size: clamp(1.6rem, 3.4vw, 3.25rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
}

.product-hero__producer {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 14px 0 0;
	font-size: 1.0625rem;
}

.product-hero__producer-label {
	color: var(--steel);
	font-size: 0.75rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.product-hero__producer a {
	align-self: flex-start;
	border-bottom: 1px solid var(--copper-ink);
	text-decoration: none;
}

.product-hero__lead {
	max-width: 52ch;
	margin: 20px 0 0;
	color: var(--steel);
	font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
	font-weight: 300;
}

.product-hero__demo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 18px 0 0;
}

.product-hero__demo-note {
	max-width: 52ch;
	color: var(--steel);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.product-facts {
	margin: 26px 0 0;
	border-top: 1px solid var(--line);
}

.product-facts__row {
	display: grid;
	grid-template-columns: minmax(100px, 0.4fr) minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}

.product-facts dt {
	color: var(--steel);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.product-facts dd {
	margin: 0;
	font-size: 0.9375rem;
}

.product-hero__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 28px;
}

/* Product gallery -------------------------------------------------------- */

.product-gallery__main {
	margin: 0;
	overflow: hidden;
	background: var(--ink);
}

.product-gallery__main a {
	display: block;
}

.product-gallery__main img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.product-gallery__thumb a {
	display: block;
	border: 1px solid var(--line);
	background: var(--ink);
}

.product-gallery__thumb img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	opacity: 0.86;
	transition: opacity 0.12s ease;
}

.product-gallery__thumb a:hover {
	border-color: var(--copper);
}

.product-gallery__thumb a:hover img {
	opacity: 1;
}

.product-gallery--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 10px;
	aspect-ratio: 4 / 3;
	padding: 24px;
	background: var(--paper-2);
	border: 1px solid var(--line);
}

.product-gallery__placeholder {
	color: var(--copper-ink);
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 500;
}

.product-gallery__note {
	margin: 0;
	color: var(--steel);
	font-size: 0.8125rem;
	text-align: center;
}

/* Specs ------------------------------------------------------------------ */

.specs-table {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 clamp(24px, 4vw, 48px);
	max-width: 900px;
	margin: 0;
	border-top: 1px solid var(--line);
}

.specs-table__row {
	display: grid;
	grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1fr);
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.specs-table dt {
	color: var(--steel);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.specs-table dd {
	margin: 0;
}

/* Video facade ----------------------------------------------------------- */

.video-facade {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0;
	overflow: hidden;
	background: var(--ink);
	border: 1px solid var(--line);
}

.video-facade > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-facade__backdrop {
	position: absolute;
	inset: 0;
	background: var(--soft);
}

.video-facade__play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 20px;
	background: rgba(20, 23, 27, 0.42);
	border: 0;
	color: var(--paper);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.12s ease;
}

.video-facade__play:hover {
	background: rgba(20, 23, 27, 0.55);
}

.video-facade__play:focus-visible {
	outline: 2px solid var(--copper-light);
	outline-offset: -4px;
}

.video-facade__icon {
	position: relative;
	width: 56px;
	height: 56px;
	border: 1px solid var(--paper);
	border-radius: 50%;
}

.video-facade__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent var(--copper-light);
}

.video-facade__label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.video-facade__caption {
	position: absolute;
	left: 12px;
	bottom: 10px;
	margin: 0;
	color: var(--paper);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.video-facade iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Producer badges -------------------------------------------------------- */

.badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid var(--copper-ink);
	border-radius: 999px;
	color: var(--copper-ink);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

/* Responsive ------------------------------------------------------------- */

@media (min-width: 1024px) {
	.product-hero__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

@media (max-width: 1199px) {
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.entry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.path-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.product-filter {
		grid-template-columns: minmax(0, 1fr);
	}

	.cat-index__head {
		grid-template-columns: 40px minmax(0, 1fr) auto 24px;
		gap: 10px;
	}

	.cat-row {
		grid-template-columns: 40px minmax(0, 1fr) 24px;
		gap: 10px;
	}

	.cat-row__count {
		display: none;
	}

	.product-cat-card__body {
		flex-direction: column;
		gap: 2px;
	}

	.path-card {
		min-height: 0;
	}

	.specs-table {
		grid-template-columns: 1fr;
	}

	.audience-split__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.audience-panel {
		padding-right: 0;
	}

	.audience-panel + .audience-panel {
		margin-top: 24px;
		padding-top: 20px;
		padding-left: 0;
		border-top: 1px solid var(--line);
		border-left: 0;
	}
}

@media (max-width: 599px) {
	.product-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.path-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry-card {
		min-height: 0;
	}

	.cat-index__head {
		display: none;
	}

	.cat-row {
		grid-template-columns: 32px minmax(0, 1fr) 20px;
	}

	.path-card {
		min-height: 0;
	}

	.product-facts__row {
		grid-template-columns: minmax(90px, 0.5fr) minmax(0, 1fr);
	}
}

/* Дълги заглавия на тесни екрани — без хоризонтален скрол --------------- */

.section-head--row > * {
	min-width: 0;
}

.section-head--row h2,
.section-head__intro {
	overflow-wrap: break-word;
}

.product-filter .search-form__input {
	flex: 0 0 auto;
	width: 100%;
}

.section-head--row > :first-child {
	flex: 1 1 480px;
	min-width: 0;
}

.section-head--row > .link-arrow {
	margin-left: auto;
}
