/* ─── Sell-product modal ─── */

.sell_modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease;
}

.sell_modal.active {
	opacity: 1;
	pointer-events: auto;
}

.sell_modal[hidden] { display: none; }
.sell_modal.active[hidden] { display: flex; }

.sell_modal__bg {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
}

.sell_modal__content {
	position: relative;
	width: 92%;
	max-width: 460px;
	background: #fff;
	border-radius: 12px;
	padding: 28px 28px 22px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
	transform: translateY(8px);
	transition: transform .18s ease;
	max-height: 90vh;
	overflow-y: auto;
}

.sell_modal.active .sell_modal__content { transform: translateY(0); }

.sell_modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.sell_modal__close:hover { background: #f3f4f6; }

.sell_modal__title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: #111827;
}

.sell_modal__subtitle {
	margin: 0 0 18px;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.45;
}

.sell_modal__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sell_modal__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.sell_modal__field--product {
	padding: 10px 14px;
	background: #fffbeb;
	border-left: 3px solid #d4af37;
	border-radius: 4px;
	flex-direction: column;
}

.sell_modal__label {
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sell_modal__product_display {
	font-size: 15px;
	font-weight: 500;
	color: #111827;
	word-break: break-word;
}

.sell_modal__req { color: #dc2626; }

.sell_modal__optional {
	color: #9ca3af;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.sell_modal__form input[type="tel"],
.sell_modal__form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: #111827;
	box-sizing: border-box;
}

.sell_modal__form input[type="tel"]:focus,
.sell_modal__form textarea:focus {
	outline: none;
	border-color: #d4af37;
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.sell_modal__form textarea {
	resize: vertical;
	min-height: 72px;
}

.sell_modal__submit {
	margin-top: 4px;
	padding: 13px 20px;
	font-size: 16px;
	font-weight: 600;
}

.sell_modal__trust {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 12.5px;
	color: #6b7280;
	line-height: 1.4;
}

@media (max-width: 480px) {
	.sell_modal__content { padding: 22px 18px 18px; max-height: 96vh; }
	.sell_modal__title { font-size: 20px; }
}

/* ─── Catalog hero (image + lead + CTA), reuses .shop_section__sklep ─── */

.catalog_hero {
	padding: 32px 0 16px;
}

/* Category cards inherit the existing .shop_section__categories layout
   from home.css. The image area is now a <button> (in-place filter
   trigger) — strip browser chrome so it visually matches the old <div>. */
.catalog_section__categories .shop_section__categories__item__image.js_catalog_cat_card_image {
	all: unset;
	cursor: pointer;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.catalog_section__categories .shop_section__categories__item__image.js_catalog_cat_card_image:hover img {
	transform: scale(1.04);
}

.catalog_section__categories .shop_section__categories__item__image.js_catalog_cat_card_image img {
	transition: transform .18s ease;
}

/* ─── Catalog grid section ─── */

.catalog_grid_section {
	padding: 32px 0 48px;
}

.catalog_grid_section__title {
	font-size: clamp(22px, 2.5vw, 28px);
	margin: 0 0 20px;
}

.catalog_grid_section__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

@media (max-width: 900px) {
	.catalog_grid_section__layout {
		grid-template-columns: 1fr;
	}
}

/* ─── Filter sidebar ─── */

.catalog_filter {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	position: sticky;
	top: 16px;
}

.catalog_filter__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.catalog_filter__group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.catalog_filter__group__title {
	font-size: 13px;
	font-weight: 700;
	color: #111827;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.catalog_filter__label {
	font-size: 13px;
	color: #4b5563;
}

.catalog_filter__slider {
	margin: 12px 6px 8px;
}

.catalog_filter__slider .noUi-connect {
	background: #d4af37;
}

.catalog_filter__slider .noUi-handle {
	background: #fff;
	border: 2px solid #d4af37;
	box-shadow: none;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	top: -6px;
	right: -8px;
	cursor: pointer;
}

.catalog_filter__slider .noUi-handle::before,
.catalog_filter__slider .noUi-handle::after { display: none; }

.catalog_filter__slider.noUi-horizontal {
	height: 4px;
}

.catalog_filter__check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
	color: #374151;
}

.catalog_filter__check input {
	width: 14px;
	height: 14px;
	accent-color: #d4af37;
	cursor: pointer;
}

.catalog_filter__cnt {
	color: #9ca3af;
	font-size: 12px;
}

.catalog_filter__reset {
	margin-top: 4px;
	padding: 10px 14px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.catalog_filter__reset:hover {
	background: #e5e7eb;
}

/* ─── Grid main ─── */

.catalog_grid_section__main {
	min-width: 0;
}

.catalog_search_row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.catalog_search {
	flex: 1;
	padding: 11px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
}

.catalog_search:focus {
	outline: none;
	border-color: #d4af37;
}

.catalog_counter {
	font-size: 14px;
	color: #6b7280;
	white-space: nowrap;
}

.catalog_counter__label {
	margin-left: 4px;
}

.catalog_grid_list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 1100px) {
	.catalog_grid_list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.catalog_grid_list { grid-template-columns: 1fr; }
}

.catalog_grid_list__empty {
	grid-column: 1 / -1;
	padding: 32px;
	text-align: center;
	color: #6b7280;
}

.catalog_card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s ease, border-color .15s ease;
}

.catalog_card:hover {
	border-color: #d4af37;
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.catalog_card[hidden] { display: none; }

.catalog_card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 170px;
	padding: 16px;
	background: #f6f7f7;
	overflow: hidden;
}

.catalog_card__image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.catalog_card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #c9a25a 0%, #8d6a2e 100%);
}
.catalog_card__placeholder--xau { background: linear-gradient(135deg, #d4af37 0%, #8d6a2e 100%); }
.catalog_card__placeholder--xag { background: linear-gradient(135deg, #c0c0c0 0%, #7a7a7a 100%); }
.catalog_card__placeholder--xpt { background: linear-gradient(135deg, #e5e4e2 0%, #8e8d8b 100%); }
.catalog_card__placeholder--xpd { background: linear-gradient(135deg, #ced0dd 0%, #6f7281 100%); }

.catalog_card__body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.catalog_card__name {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	line-height: 1.35;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 38px;
}

.catalog_card__name:hover {
	color: #b8941d;
}

.catalog_card__meta {
	font-size: 12px;
	color: #6b7280;
}

.catalog_card__price {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 17px;
	font-weight: 700;
	color: #166534;
}

.catalog_card__price__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #16a34a;
}

.catalog_card__actions {
	display: flex;
	gap: 6px;
	margin-top: 6px;
}

.catalog_card__cta {
	flex: 1;
	padding: 9px 12px;
	font-size: 13px;
}

.catalog_card__more {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	background: #fff;
	border: 1px solid #e5e7eb;
	color: #4b5563;
	border-radius: 6px;
	text-decoration: none;
	font-size: 16px;
}

.catalog_card__more:hover {
	border-color: #d4af37;
	color: #b8941d;
}

.catalog_empty {
	padding: 40px;
	text-align: center;
	color: #6b7280;
	background: #fafafa;
	border-radius: 8px;
	margin-top: 16px;
}

/* Single product page — /katalog/{kategoria}/{slug}/ */

.single-skup-product .breadcrumb--product {
	margin-top: 24px;
}

/* ─── Hero ─── */

.product_hero {
	padding: 24px 0 48px;
}

.product_hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 48px;
	align-items: start;
}

@media (max-width: 900px) {
	.product_hero__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.product_hero__gallery {
	position: relative;
	background: #f6f7f7;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product_hero__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.product_hero__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, #c9a25a 0%, #8d6a2e 100%);
}
.product_hero__placeholder--xau { background: linear-gradient(135deg, #d4af37 0%, #8d6a2e 100%); }
.product_hero__placeholder--xag { background: linear-gradient(135deg, #c0c0c0 0%, #7a7a7a 100%); }
.product_hero__placeholder--xpt { background: linear-gradient(135deg, #e5e4e2 0%, #8e8d8b 100%); }
.product_hero__placeholder--xpd { background: linear-gradient(135deg, #ced0dd 0%, #6f7281 100%); }

.product_hero__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #d4af37;
	color: #1a1a1a;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	border-radius: 4px;
}

.product_hero__info {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.product_hero__title {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.2;
	margin: 0;
}

.product_hero__specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 8px 24px;
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.product_hero__spec {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}

.product_hero__spec dt {
	font-size: 12px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.product_hero__spec dd {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	color: #111827;
}

.product_hero__price {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: #fffbeb;
	border-left: 4px solid #d4af37;
	padding: 16px 20px;
	border-radius: 4px;
}

.product_hero__price__label {
	font-size: 13px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.product_hero__price__value {
	font-size: clamp(28px, 3.5vw, 38px);
	font-weight: 700;
	color: #1a1a1a;
}

.product_hero__price__updated {
	font-size: 12px;
	color: #9ca3af;
}

.product_hero__notice {
	background: #fef3c7;
	border-left: 4px solid #f59e0b;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
}

.product_hero__cta {
	align-self: flex-start;
	font-size: 16px;
	padding: 14px 28px;
}

.product_hero__assurance {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
}

/* ─── FAQ ─── */

.product_faq {
	padding: 48px 0;
}

.product_faq__title {
	font-size: clamp(22px, 2.5vw, 28px);
	margin: 0 0 20px;
}

.product_faq__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.product_faq__item details {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 14px 18px;
}

.product_faq__item details[open] {
	border-color: #d4af37;
	background: #fffbeb;
}

.product_faq__q {
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.product_faq__q::-webkit-details-marker { display: none; }

.product_faq__q::after {
	content: '+';
	font-size: 22px;
	line-height: 1;
	color: #6b7280;
	transition: transform .15s ease;
}

.product_faq__item details[open] .product_faq__q::after {
	content: '–';
}

.product_faq__a {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.6;
	color: #374151;
}

.product_faq__a p {
	margin: 0 0 8px;
}

/* ─── Related ─── */

.related_products {
	padding: 48px 0;
	background: #fafafa;
}

.related_products__title {
	font-size: clamp(22px, 2.5vw, 28px);
	margin: 0 0 24px;
}

.related_products__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.related_products__item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	transition: box-shadow .15s ease;
}

.related_products__item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.related_products__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.related_products__image,
.related_products__placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #f6f7f7;
	border-radius: 4px;
}

.related_products__name {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #111827;
}

.related_products__weight {
	font-size: 13px;
	color: #6b7280;
}

.related_products__price {
	margin-top: auto;
	font-size: 15px;
	font-weight: 700;
	color: #166534;
}
