/**
 * Grafline – Printing & Stamps Page Styles
 */

/* ============================================
   HERO VARIANTS
   ============================================ */

.inner-hero--printing {
	background: linear-gradient(135deg, rgba(29,29,31,0.88) 0%, rgba(44,44,46,0.72) 100%),
	            url('../../images/hero-b2b.jpg') center/cover no-repeat;
	background-color: #1d1d1f;
}

.inner-hero--stamps {
	background: linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(29,29,31,0.72) 100%),
	            url('../../images/hero-about.jpg') center/cover no-repeat;
	background-color: #0a0a0a;
}

/* Stamps hero: product search */
.stamps-hero-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
	max-width: 42rem;
}
.stamps-hero-search__input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 0.65rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 0.95rem;
	outline: none;
}
.stamps-hero-search__input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}
.stamps-hero-search__input:focus {
	border-color: rgba(255, 42, 19, 0.7);
	background: rgba(255, 255, 255, 0.18);
}
.stamps-hero-search__btn {
	flex-shrink: 0;
}

/* ============================================
   PRINT CATEGORY CARDS
   ============================================ */

.print-categories, .stamp-categories {
	padding: var(--spacing-3xl, 6rem) 0;
}

.print-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: var(--spacing-lg);
	margin-top: var(--spacing-xl);
}

.print-cat-card {
	padding: var(--spacing-xl);
	background: var(--grafline-bg);
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-xl);
	text-decoration: none;
	color: var(--grafline-text);
	transition: all 0.3s var(--ease-out-smooth);
	display: flex;
	flex-direction: column;
}

.print-cat-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
	border-color: rgba(255, 42, 19, 0.3);
	color: var(--grafline-text);
}

.print-cat-card__icon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--grafline-primary-light);
	border-radius: var(--radius-lg);
	margin-bottom: var(--spacing-md);
	color: var(--grafline-primary);
}

.print-cat-card__icon svg {
	stroke: var(--grafline-primary);
}

.print-cat-card h3 {
	font-size: var(--font-size-xl);
	font-weight: 700;
	margin-bottom: var(--spacing-xs);
}

.print-cat-card p {
	color: var(--grafline-text-light);
	line-height: 1.6;
	font-size: var(--font-size-sm);
	flex: 1;
}

.print-cat-card__price {
	display: inline-block;
	font-size: var(--font-size-lg);
	font-weight: 700;
	color: var(--grafline-primary);
	margin-top: var(--spacing-sm);
}

/* ============================================
   PRINTING TECHNIQUES
   ============================================ */

.print-techniques {
	padding: var(--spacing-3xl, 6rem) 0;
	background: var(--grafline-bg-light);
}

.print-tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: var(--spacing-lg);
	margin-top: var(--spacing-xl);
}

.print-tech-card {
	padding: var(--spacing-xl);
	background: var(--grafline-bg);
	border-radius: var(--radius-xl);
	border: 2px solid var(--grafline-border);
	transition: all 0.3s var(--ease-out-smooth);
}

.print-tech-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(255, 42, 19, 0.2);
}

.print-tech-card h3 {
	font-size: var(--font-size-lg);
	font-weight: 700;
	margin-bottom: var(--spacing-sm);
	color: var(--grafline-text);
}

.print-tech-card p {
	color: var(--grafline-text-light);
	line-height: 1.7;
	font-size: var(--font-size-sm);
	margin: 0;
}

/* ============================================
   PROCESS STEPS (shared by printing & stamps)
   ============================================ */

.print-process, .stamp-customize {
	padding: var(--spacing-3xl, 6rem) 0;
}

.print-process__steps, .stamp-custom-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--spacing-lg);
	margin-top: var(--spacing-xl);
}

.print-step, .stamp-custom-step {
	text-align: center;
	padding: var(--spacing-lg);
}

.print-step__number, .stamp-custom-step__number {
	width: 56px;
	height: 56px;
	margin: 0 auto var(--spacing-md);
	background: linear-gradient(135deg, var(--grafline-primary), var(--grafline-primary-dark));
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: 800;
	box-shadow: 0 6px 20px rgba(255, 42, 19, 0.3);
}

.print-step h3, .stamp-custom-step h3 {
	font-size: var(--font-size-lg);
	margin-bottom: var(--spacing-xs);
}

.print-step p, .stamp-custom-step p {
	color: var(--grafline-text-light);
	font-size: var(--font-size-sm);
	line-height: 1.6;
	margin: 0;
}

/* ============================================
   EXPRESS SECTION
   ============================================ */

.print-express {
	padding: var(--spacing-3xl, 6rem) 0;
	background: var(--grafline-bg-light);
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.print-cta, .stamp-cta {
	padding: var(--spacing-3xl, 6rem) 0;
	background: linear-gradient(135deg, var(--grafline-secondary) 0%, #0a0a0a 100%);
	color: #fff;
}

.print-cta h2, .stamp-cta h2 { color: #fff; }
.print-cta p, .stamp-cta p { color: rgba(255,255,255,0.85); font-size: var(--font-size-lg); margin-bottom: var(--spacing-xl); }

.print-cta__actions, .stamp-cta__actions {
	display: flex;
	gap: var(--spacing-md);
	justify-content: center;
	flex-wrap: wrap;
}

/* ============================================
   STAMP CATEGORY CARDS
   ============================================ */

.stamp-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: var(--spacing-lg);
	margin-top: var(--spacing-xl);
}

.stamp-cat-card {
	padding: var(--spacing-xl);
	background: var(--grafline-bg);
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-xl);
	transition: all 0.3s var(--ease-out-smooth);
	display: flex;
	flex-direction: column;
}

.stamp-cat-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
	border-color: rgba(255, 42, 19, 0.3);
}

.stamp-cat-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--spacing-md);
	color: var(--grafline-primary);
}

.stamp-cat-card__header svg {
	stroke: var(--grafline-primary);
}

.stamp-cat-card__badge {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--grafline-primary);
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
}

.stamp-cat-card h3 {
	font-size: var(--font-size-xl);
	font-weight: 700;
	margin-bottom: var(--spacing-xs);
}

.stamp-cat-card p {
	color: var(--grafline-text-light);
	line-height: 1.6;
	font-size: var(--font-size-sm);
	flex: 1;
}

.stamp-cat-card__price {
	display: block;
	font-size: var(--font-size-lg);
	font-weight: 700;
	color: var(--grafline-primary);
	margin: var(--spacing-sm) 0 var(--spacing-md);
}

.stamp-cat-card .btn {
	align-self: flex-start;
	margin-top: var(--spacing-sm);
}

/* ============================================
   STAMP PRODUCT MINI-GRID (within category card)
   ============================================ */

.stamp-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: var(--spacing-xs);
	margin: var(--spacing-sm) 0;
}

.stamp-product-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: var(--grafline-text);
	background: var(--grafline-bg-light);
	border: 1px solid var(--grafline-border);
	border-radius: var(--radius-md);
	padding: var(--spacing-xs);
	font-size: 0.72rem;
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stamp-product-item:hover {
	border-color: var(--grafline-primary);
	box-shadow: 0 2px 8px rgba(255, 42, 19, 0.12);
	color: var(--grafline-text);
}

.stamp-product-item__img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	border-radius: var(--radius-sm);
}

.stamp-product-item__name {
	line-height: 1.3;
	font-weight: 600;
	color: var(--grafline-text);
}

.stamp-product-item__price {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--grafline-primary);
}

/* WooCommerce price HTML inside product item */
.stamp-product-item__price .woocommerce-Price-amount,
.stamp-product-item__price ins {
	color: var(--grafline-primary);
	text-decoration: none;
}

/* ============================================
   STAMP ACCESSORIES
   ============================================ */

.stamp-accessories {
	padding: var(--spacing-3xl, 6rem) 0;
	background: var(--grafline-bg-light);
}

.stamp-acc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: var(--spacing-lg);
	margin-top: var(--spacing-xl);
}

.stamp-acc-card {
	padding: var(--spacing-xl);
	background: var(--grafline-bg);
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-xl);
	transition: all 0.3s var(--ease-out-smooth);
}

.stamp-acc-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.stamp-acc-card h3 {
	font-size: var(--font-size-lg);
	margin-bottom: var(--spacing-xs);
}

.stamp-acc-card p {
	color: var(--grafline-text-light);
	font-size: var(--font-size-sm);
	line-height: 1.6;
}

.stamp-acc-card__price {
	display: inline-block;
	font-size: var(--font-size-lg);
	font-weight: 700;
	color: var(--grafline-primary);
	margin-bottom: var(--spacing-sm);
}

/* WooCommerce price HTML override — ensure color consistency inside cards */
.stamp-cat-card__price .woocommerce-Price-amount,
.stamp-cat-card__price ins,
.stamp-acc-card__price .woocommerce-Price-amount,
.stamp-acc-card__price ins {
	color: var(--grafline-primary);
	text-decoration: none;
}

.stamp-cat-card__price del,
.stamp-acc-card__price del {
	color: var(--grafline-text-light);
	font-size: 0.85em;
	margin-right: 0.25em;
}

/* Accessory product link list */
.stamp-acc-products {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: var(--spacing-xs);
}

.stamp-acc-product-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--spacing-xs);
	font-size: var(--font-size-sm);
	color: var(--grafline-text);
	text-decoration: none;
	padding: 6px 8px;
	border-radius: var(--radius-sm);
	background: var(--grafline-bg-light);
	border: 1px solid transparent;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.stamp-acc-product-link:hover {
	border-color: var(--grafline-primary);
	background: var(--grafline-bg);
	color: var(--grafline-text);
}

.stamp-acc-product-link__price {
	font-weight: 700;
	color: var(--grafline-primary);
	white-space: nowrap;
	flex-shrink: 0;
}

.stamp-acc-product-link__price .woocommerce-Price-amount {
	color: var(--grafline-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.print-process__steps,
	.stamp-custom-grid {
		grid-template-columns: 1fr 1fr;
	}

	.print-cta__actions,
	.stamp-cta__actions {
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 480px) {
	.print-process__steps,
	.stamp-custom-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   STAMPS HERO STATS
   ============================================ */

.stamps-hero-stats {
	display: flex;
	gap: var(--spacing-lg);
	margin: var(--spacing-lg) 0 var(--spacing-xl);
	flex-wrap: wrap;
}

.stamps-hero-stat {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.stamps-hero-stat__num {
	font-size: var(--font-size-2xl);
	font-weight: 800;
	color: #fff;
	line-height: 1;
}

.stamps-hero-stat__label {
	font-size: var(--font-size-xs);
	color: rgba(255,255,255,0.55);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ============================================
   STAMPS CATEGORY QUICKNAV
   ============================================ */

.stamps-nav {
	background: var(--grafline-secondary-dark, #0a0a0a);
	border-bottom: 1px solid rgba(255,255,255,0.06);
	position: sticky;
	top: var(--header-height, 80px);
	z-index: 10;
}

.stamps-nav__inner {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
	gap: 0;
}

.stamps-nav__inner::-webkit-scrollbar { display: none; }

.stamps-nav__pill {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem var(--spacing-md);
	color: rgba(255,255,255,0.55);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
	border-right: 1px solid rgba(255,255,255,0.06);
	transition: color 0.2s, background 0.2s;
	flex-shrink: 0;
}

.stamps-nav__pill:last-child { border-right: none; }
.stamps-nav__pill svg { opacity: 0.4; transition: opacity 0.2s; flex-shrink: 0; }

.stamps-nav__pill:hover {
	color: #fff;
	background: rgba(255,42,19,0.1);
}

.stamps-nav__pill:hover svg { opacity: 1; stroke: var(--grafline-primary); }

/* ============================================
   STAMPS CATEGORY SECTIONS
   ============================================ */

.stamps-cat-section {
	padding: var(--spacing-3xl, 6rem) 0;
	contain: layout style;
	content-visibility: auto;
	contain-intrinsic-size: auto 800px;
}
.stamps-cat-section:nth-child(even) { background: var(--grafline-bg-light); }

.stamps-cat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing-xl);
	margin-bottom: var(--spacing-xl);
	flex-wrap: wrap;
}

.stamps-cat-header__photo {
	flex-shrink: 0;
	width: 160px;
	height: 160px;
	border-radius: var(--radius-xl);
	overflow: hidden;
	background: #fff;
	border: 2px solid var(--grafline-border);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s var(--ease-out-smooth, ease);
}

.stamps-cat-header__photo:hover {
	border-color: var(--grafline-primary);
	box-shadow: 0 8px 24px rgba(255, 42, 19, 0.15);
	transform: translateY(-4px);
}

.stamps-cat-header__photo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
}

.stamps-cat-header__left {
	display: flex;
	align-items: flex-start;
	gap: var(--spacing-md);
	flex: 1;
}

.stamps-cat-header__icon {
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--grafline-primary-light, #fef2f2);
	border-radius: var(--radius-xl);
	flex-shrink: 0;
	color: var(--grafline-primary);
}

.stamps-cat-header__sub {
	display: block;
	font-size: var(--font-size-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--grafline-primary);
	margin-bottom: 0.25rem;
}

.stamps-cat-header__badge {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
	background: var(--grafline-primary);
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-full);
	margin-left: var(--spacing-sm);
	vertical-align: middle;
}

.stamps-cat-header h2 {
	font-size: var(--font-size-3xl);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 var(--spacing-xs);
	color: var(--grafline-text);
}

.stamps-cat-header p {
	color: var(--grafline-text-light);
	font-size: var(--font-size-base);
	line-height: 1.7;
	margin: 0;
	max-width: 560px;
}

.stamps-cat-placeholder {
	display: flex;
	align-items: center;
	gap: var(--spacing-lg);
	padding: var(--spacing-xl);
	background: var(--grafline-bg);
	border: 2px dashed var(--grafline-border);
	border-radius: var(--radius-xl);
	color: var(--grafline-text-light);
	flex-wrap: wrap;
}

.stamps-cat-placeholder p {
	margin: 0 0 var(--spacing-md);
	font-size: var(--font-size-base);
}

/* ============================================
   RESPONSIVE — STAMPS REDESIGN
   ============================================ */

@media (max-width: 768px) {
	.stamps-hero-stats { gap: var(--spacing-md); }
	.stamps-hero-stat__num { font-size: var(--font-size-xl); }

	.stamps-cat-header {
		flex-direction: column;
		gap: var(--spacing-md);
		align-items: flex-start;
	}

	.stamps-cat-header__photo {
		width: 120px;
		height: 120px;
		align-self: center;
	}

	.stamps-cat-header .btn { align-self: flex-start; }
}

@media (max-width: 480px) {
	.stamps-cat-header__left { flex-direction: column; }
	.stamps-cat-header__icon { width: 56px; height: 56px; }

	.stamps-cat-header__photo {
		width: 100px;
		height: 100px;
	}
}

/* ── Mobile scroll performance — disable expensive effects on touch devices ── */
@media (max-width: 1024px) {
	/* Disable hover transforms on stamp cards — 80+ cards with transitions cause jank */
	.stamp-model-card {
		transition: none;
	}
	.stamp-model-card:hover {
		transform: none;
		box-shadow: none;
	}

	/* Disable hover transforms on product cards */
	.b2b-product-card {
		transition: none;
	}

	/* Disable photo hover animation */
	.stamps-cat-header__photo {
		transition: none;
	}
	.stamps-cat-header__photo:hover {
		transform: none;
		box-shadow: none;
	}

	/* Reduce category section padding on mobile for shorter page */
	.stamps-cat-section {
		padding: var(--spacing-xl, 3rem) 0;
	}
}

/* ============================================
   TISK CONFIGURATOR
   ============================================ */

.tisk-configurator {
	padding: var(--spacing-3xl, 6rem) 0;
	background: var(--grafline-bg-light);
}

.tisk-cfg__steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: var(--spacing-2xl, 4rem);
	flex-wrap: wrap;
}

.tisk-cfg__step {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	opacity: 0.4;
	transition: opacity 0.3s;
}

.tisk-cfg__step--active,
.tisk-cfg__step--done { opacity: 1; }

.tisk-cfg__step-num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--grafline-border);
	color: var(--grafline-text-light);
	font-weight: 700;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s, color 0.3s;
	flex-shrink: 0;
}

.tisk-cfg__step--active .tisk-cfg__step-num {
	background: var(--grafline-primary);
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 42, 19, 0.35);
}

.tisk-cfg__step--done .tisk-cfg__step-num {
	background: var(--grafline-primary);
	color: #fff;
}

.tisk-cfg__step-label {
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}

.tisk-cfg__step-line {
	flex: 1;
	min-width: 2rem;
	height: 2px;
	background: var(--grafline-border);
	transition: background 0.3s;
}

.tisk-cfg__step-line--done { background: var(--grafline-primary); }

.tisk-cfg__body {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: var(--spacing-xl);
	align-items: start;
}

.tisk-cfg__panel {
	display: none;
	background: var(--grafline-bg);
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-xl);
	padding: var(--spacing-xl);
}

.tisk-cfg__panel--active { display: block; }

.tisk-cfg__panel-title {
	font-size: var(--font-size-xl);
	font-weight: 700;
	margin-bottom: var(--spacing-lg);
}

.tisk-cfg__panel-desc {
	color: var(--grafline-text-light);
	margin-bottom: var(--spacing-lg);
}

.tisk-cfg__products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-xl);
}

.tisk-prod-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding: var(--spacing-md) var(--spacing-sm);
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-lg);
	cursor: pointer;
	transition: all 0.2s var(--ease-out-smooth);
	text-align: center;
	background: var(--grafline-bg-light);
}

.tisk-prod-card:hover {
	border-color: rgba(255, 42, 19, 0.4);
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.tisk-prod-card--selected {
	border-color: var(--grafline-primary);
	background: var(--grafline-primary-light);
	box-shadow: 0 0 0 3px rgba(255, 42, 19, 0.15);
}

.tisk-prod-card__icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--grafline-primary);
}

.tisk-prod-card__name { font-weight: 700; font-size: 0.8125rem; color: var(--grafline-text); }
.tisk-prod-card__from { font-size: 0.75rem; color: var(--grafline-text-light); }

.tisk-cfg__field { margin-bottom: var(--spacing-lg); }

.tisk-cfg__label {
	display: block;
	font-weight: 700;
	font-size: 0.875rem;
	margin-bottom: var(--spacing-sm);
	color: var(--grafline-text);
}

.tisk-cfg__min-label { font-weight: 400; color: var(--grafline-text-light); font-size: 0.8125rem; margin-left: 0.5rem; }
.tisk-cfg__hint { font-size: 0.8125rem; color: var(--grafline-text-light); margin-top: var(--spacing-xs); }

.tisk-cfg__chips { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); }

.tisk-chip {
	padding: 0.4rem 1rem;
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-full);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
	background: var(--grafline-bg-light);
	color: var(--grafline-text);
}

.tisk-chip:hover { border-color: var(--grafline-primary); color: var(--grafline-primary); }

.tisk-chip--selected {
	background: var(--grafline-primary);
	border-color: var(--grafline-primary);
	color: #fff;
}

.tisk-cfg__checkboxes { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }

.tisk-check {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.85rem;
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-full);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	background: var(--grafline-bg-light);
	color: var(--grafline-text);
}

.tisk-check:hover { border-color: var(--grafline-primary); }

.tisk-cfg__custom-size { margin-top: var(--spacing-sm); }

.tisk-cfg__dim-row { display: flex; align-items: flex-end; gap: var(--spacing-sm); }

.tisk-cfg__dim-field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }

.tisk-cfg__dim-field label { font-size: 0.8125rem; color: var(--grafline-text-light); }

.tisk-cfg__dim-field input,
.tisk-inquiry-form__field input,
.tisk-inquiry-form__field textarea {
	padding: 0.6rem 0.9rem;
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-md);
	font-size: 0.9375rem;
	background: var(--grafline-bg);
	color: var(--grafline-text);
	transition: border-color 0.2s;
	width: 100%;
	box-sizing: border-box;
}

.tisk-cfg__dim-field input:focus,
.tisk-inquiry-form__field input:focus,
.tisk-inquiry-form__field textarea:focus {
	outline: none;
	border-color: var(--grafline-primary);
}

.tisk-cfg__dim-x { font-size: 1.2rem; font-weight: 700; color: var(--grafline-text-light); padding-bottom: 0.5rem; }

.tisk-cfg__qty-presets { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); margin-bottom: var(--spacing-sm); }

.tisk-qty-btn {
	padding: 0.45rem 1rem;
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-full);
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	background: var(--grafline-bg-light);
	color: var(--grafline-text);
	transition: all 0.2s;
}

.tisk-qty-btn:hover { border-color: var(--grafline-primary); color: var(--grafline-primary); }
.tisk-qty-btn--active { background: var(--grafline-primary); border-color: var(--grafline-primary); color: #fff; }

.tisk-cfg__qty-custom { display: flex; align-items: center; gap: var(--spacing-sm); margin-top: var(--spacing-sm); }
.tisk-cfg__qty-custom label { font-size: 0.8125rem; color: var(--grafline-text-light); white-space: nowrap; }

.tisk-cfg__qty-custom input {
	max-width: 120px;
	padding: 0.45rem 0.75rem;
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-md);
	font-size: 0.9375rem;
	background: var(--grafline-bg);
	color: var(--grafline-text);
	transition: border-color 0.2s;
}

.tisk-cfg__qty-custom input:focus { outline: none; border-color: var(--grafline-primary); }

.tisk-cfg__delivery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-sm); }

.tisk-delivery-card {
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-lg);
	cursor: pointer;
	transition: all 0.2s;
	overflow: hidden;
}

.tisk-delivery-card:hover { border-color: rgba(255, 42, 19, 0.4); }

.tisk-delivery-card:has(input:checked),
.tisk-delivery-card--selected {
	border-color: var(--grafline-primary);
	background: var(--grafline-primary-light);
}

.tisk-delivery-card__body { display: flex; flex-direction: column; gap: 0.2rem; padding: var(--spacing-md); }
.tisk-delivery-card__name { font-weight: 700; font-size: 0.9375rem; }
.tisk-delivery-card__days { font-size: 0.75rem; color: var(--grafline-text-light); }
.tisk-delivery-card__surcharge { font-size: 0.75rem; font-weight: 700; color: var(--grafline-primary); margin-top: 0.2rem; }

.tisk-cfg__stepper { display: flex; align-items: center; gap: var(--spacing-sm); width: fit-content; }

.tisk-cfg__stepper-btn {
	width: 36px;
	height: 36px;
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-md);
	font-size: 1.2rem;
	font-weight: 700;
	cursor: pointer;
	background: var(--grafline-bg);
	color: var(--grafline-text);
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tisk-cfg__stepper-btn:hover { border-color: var(--grafline-primary); color: var(--grafline-primary); }

.tisk-cfg__stepper input[type="number"] {
	width: 60px;
	text-align: center;
	padding: 0.4rem;
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-md);
	font-size: 1rem;
	font-weight: 700;
	background: var(--grafline-bg);
	color: var(--grafline-text);
}

.tisk-cfg__nav {
	display: flex;
	gap: var(--spacing-sm);
	justify-content: flex-end;
	margin-top: var(--spacing-xl);
	padding-top: var(--spacing-lg);
	border-top: 1px solid var(--grafline-border);
}

.btn--outline {
	border: 2px solid var(--grafline-border);
	color: var(--grafline-text);
	background: transparent;
	padding: 0.6rem 1.4rem;
	border-radius: var(--radius-full);
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.btn--outline:hover { border-color: var(--grafline-primary); color: var(--grafline-primary); }

.tisk-cfg__error { color: var(--grafline-primary); font-size: 0.875rem; font-weight: 600; margin: var(--spacing-sm) 0 0; }

.tisk-cfg__summary { position: sticky; top: 100px; }

.tisk-summary {
	background: var(--grafline-bg);
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-xl);
	padding: var(--spacing-lg);
}

.tisk-summary__title { font-size: var(--font-size-lg); font-weight: 700; margin-bottom: var(--spacing-md); }
.tisk-summary__list { margin: 0 0 var(--spacing-md); }

.tisk-summary__row {
	display: flex;
	justify-content: space-between;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--grafline-border);
	gap: var(--spacing-sm);
}

.tisk-summary__row:last-child { border-bottom: none; }
.tisk-summary__row dt { font-size: 0.8125rem; color: var(--grafline-text-light); flex-shrink: 0; }
.tisk-summary__row dd { font-size: 0.8125rem; font-weight: 600; text-align: right; }
.tisk-summary__row--empty dd { color: var(--grafline-text-light); font-weight: 400; font-style: italic; }

.tisk-summary__price-box {
	background: var(--grafline-bg-light);
	border-radius: var(--radius-lg);
	padding: var(--spacing-md);
	margin-bottom: var(--spacing-md);
}

.tisk-summary__price-row { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 0.3rem 0; }

.tisk-summary__price-row--total {
	border-top: 2px solid var(--grafline-border);
	margin-top: 0.3rem;
	padding-top: 0.6rem;
}

.tisk-summary__price-row--total strong { font-size: 1.25rem; color: var(--grafline-primary); }
.tisk-summary__vat-note,
.tisk-summary__disclaimer { font-size: 0.75rem; color: var(--grafline-text-light); margin: 0.25rem 0 0; }
.tisk-summary__actions { margin-top: var(--spacing-md); }
.tisk-summary__actions .btn { width: 100%; justify-content: center; }

.tisk-inquiry-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); margin-bottom: var(--spacing-md); }

.tisk-inquiry-form__field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--spacing-md); }
.tisk-inquiry-form__field label { font-size: 0.875rem; font-weight: 600; }
.tisk-inquiry-form__field textarea { resize: vertical; }

.tisk-inquiry-form__actions { display: flex; gap: var(--spacing-sm); justify-content: flex-end; margin-top: var(--spacing-lg); }

.tisk-inquiry-form__notice { margin-top: var(--spacing-md); font-size: 0.875rem; font-weight: 600; padding: var(--spacing-sm) var(--spacing-md); border-radius: var(--radius-md); }
.tisk-inquiry-form__notice--success { background: rgba(16,185,129,0.1); color: #065f46; border: 1px solid rgba(16,185,129,0.3); }
.tisk-inquiry-form__notice--error { background: rgba(255,42,19,0.08); color: var(--grafline-primary); border: 1px solid rgba(255,42,19,0.25); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

@media (max-width: 1024px) {
	.tisk-cfg__body { grid-template-columns: 1fr; }
	.tisk-cfg__summary { position: static; }
}

@media (max-width: 768px) {
	.tisk-cfg__products { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
	.tisk-cfg__delivery { grid-template-columns: 1fr; }
	.tisk-inquiry-form__row { grid-template-columns: 1fr; }
	.tisk-cfg__step-label { display: none; }
}

@media (max-width: 480px) {
	.tisk-cfg__nav { flex-direction: column; }
	.tisk-inquiry-form__actions { flex-direction: column; }
}

/* ============================================
   STAMP MODEL CARDS
   ============================================ */

.stamp-model-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
	gap: var(--spacing-md);
	margin-top: var(--spacing-xl);
}

.stamp-model-card {
	background: var(--grafline-bg);
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-lg);
	padding: var(--spacing-md);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-sm);
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	position: relative;
}

/* Stretched link covering the whole card */
.stamp-model-card__link {
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
}

.stamp-model-card:hover {
	border-color: rgba(255, 42, 19, 0.35);
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

/* Visual stamp shape icon */
.stamp-model-card__vis {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
}

.stamp-model-card__shape {
	display: block;
	border: 2.5px solid var(--grafline-primary);
	background: rgba(255, 42, 19, 0.04);
	min-width: 20px;
	min-height: 10px;
}

.stamp-model-card__shape--round {
	border-radius: 50%;
}

/* Model info */
.stamp-model-card__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	flex: 1;
}

.stamp-model-card__model {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--grafline-text);
	line-height: 1.3;
}

.stamp-model-card__dim {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--grafline-primary);
	font-variant-numeric: tabular-nums;
}

.stamp-model-card__note {
	font-size: 0.6875rem;
	color: var(--grafline-text-muted, #6b7280);
	font-style: italic;
}

.stamp-model-card__lines {
	font-size: 0.6875rem;
	color: var(--grafline-text-light);
}

.stamp-model-card__badge {
	display: inline-block;
	background: rgba(255, 42, 19, 0.1);
	color: var(--grafline-primary);
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 2px 7px;
	border-radius: var(--radius-full, 9999px);
	border: 1px solid rgba(255, 42, 19, 0.25);
}

/* Product photo */
.stamp-model-card__img {
	width: 100%;
	height: 90px;
	object-fit: contain;
	border-radius: var(--radius-sm);
}

/* Express delivery price */
.stamp-model-card__express {
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--grafline-text-light);
}
.stamp-model-card__express .woocommerce-Price-amount {
	color: var(--grafline-primary);
}

/* Konfiguriraj button — sits above the stretched link */
.stamp-model-card__cfg {
	position: relative;
	z-index: 1;
	width: 100%;
	justify-content: center;
	font-size: 0.75rem;
	padding: 0.4rem 0.75rem;
	border-radius: var(--radius-md);
	border: 1.5px solid var(--grafline-primary);
	background: transparent;
	color: var(--grafline-primary);
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	letter-spacing: 0.02em;
}

.stamp-model-card__cfg:hover {
	background: var(--grafline-primary);
	color: #fff;
}

/* WC products grid with top spacing when below model cards */
.b2b-products__grid--below-models {
	margin-top: var(--spacing-2xl);
	padding-top: var(--spacing-xl);
	border-top: 2px solid var(--grafline-border);
}

@media (max-width: 768px) {
	.stamp-model-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
		gap: var(--spacing-sm);
	}
}

@media (max-width: 480px) {
	.stamp-model-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ============================================
   STAMP DESIGNER / CONFIGURATOR
   ============================================ */

.stamps-designer {
	padding: var(--spacing-3xl, 6rem) 0;
	background: var(--grafline-bg-light);
}

.stamps-designer__wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--spacing-2xl);
	align-items: start;
	margin-top: var(--spacing-xl);
}

/* Preview column */
.stamps-designer__preview-col {
	position: sticky;
	top: var(--header-height, 80px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-lg);
}

.stamps-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-xl);
	padding: var(--spacing-2xl) var(--spacing-xl);
	width: 100%;
	min-height: 260px;
}

/* Rectangular preview */
.stamps-preview__border {
	border: 3px solid var(--stamp-color, #1a1a2e);
	padding: var(--spacing-sm) var(--spacing-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	min-width: 180px;
	min-height: 60px;
	justify-content: center;
	position: relative;
	transition: border-color 0.25s ease;
}

.stamps-preview__border--round {
	border-radius: 50%;
	padding: var(--spacing-md);
	/* width/height driven by JS — do not override here */
}

.stamps-preview__line {
	font-family: 'Arial', sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--stamp-color, #1a1a2e);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 1.3;
	transition: color 0.25s ease;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Placeholder — kept for fallback; primary placeholder via .is-empty in the new CSS block below */
.stamps-preview__line:empty::before {
	content: attr(data-placeholder);
	opacity: 0.2;
	font-style: italic;
	font-weight: 400;
}

.stamps-preview__divider {
	width: 100%;
	height: 1.5px;
	background: var(--stamp-color, #1a1a2e);
	margin: 3px 0;
	transition: background 0.25s ease;
}

.stamps-designer__disclaimer {
	font-size: 0.75rem;
	color: var(--grafline-text-light);
	text-align: center;
	max-width: 320px;
	line-height: 1.5;
}

/* Form column */
.stamps-designer__form-col {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xl);
}

/* Field group */
.stamps-field {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
}

.stamps-field__label {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--grafline-text-muted, #6b7280);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.stamps-field__input {
	width: 100%;
	padding: 0.65rem var(--spacing-md);
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-md);
	font-size: 0.9375rem;
	font-family: inherit;
	background: var(--grafline-bg);
	color: var(--grafline-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
}

.stamps-field__input:focus {
	border-color: var(--grafline-primary);
	box-shadow: 0 0 0 3px rgba(255, 42, 19, 0.12);
}

.stamps-field__hint {
	font-size: 0.75rem;
	color: var(--grafline-text-light);
}

/* Color swatches */
.stamps-colors {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-sm);
}

.stamps-color {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
}

.stamps-color__swatch {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 3px solid transparent;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: var(--shadow-sm);
}

.stamps-color:hover .stamps-color__swatch {
	transform: scale(1.15);
	box-shadow: var(--shadow-md);
}

.stamps-color.is-active .stamps-color__swatch {
	border-color: var(--grafline-primary);
	box-shadow: 0 0 0 3px rgba(255, 42, 19, 0.2);
	transform: scale(1.1);
}

.stamps-color__name {
	font-size: 0.625rem;
	color: var(--grafline-text-muted, #6b7280);
	text-align: center;
	font-weight: 500;
	white-space: nowrap;
}

/* Shape / size buttons */
.stamps-shapes {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-sm);
}

.stamps-shape {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: var(--spacing-sm) var(--spacing-md);
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-md);
	background: var(--grafline-bg);
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 88px;
}

.stamps-shape:hover {
	border-color: var(--grafline-primary);
	background: rgba(255, 42, 19, 0.04);
}

.stamps-shape.is-active {
	border-color: var(--grafline-primary);
	background: rgba(255, 42, 19, 0.08);
	box-shadow: 0 0 0 3px rgba(255, 42, 19, 0.12);
}

.stamps-shape__icon {
	border: 2px solid currentColor;
	color: var(--grafline-text-muted, #6b7280);
	transition: color 0.2s ease;
}

.stamps-shape.is-active .stamps-shape__icon,
.stamps-shape:hover .stamps-shape__icon {
	color: var(--grafline-primary);
}

.stamps-shape__icon--rect-sm  { width: 38px; height: 16px; border-radius: 2px; }
.stamps-shape__icon--rect-md  { width: 47px; height: 18px; border-radius: 2px; }
.stamps-shape__icon--rect-lg  { width: 56px; height: 22px; border-radius: 2px; }
.stamps-shape__icon--rect-xl  { width: 62px; height: 24px; border-radius: 3px; }
.stamps-shape__icon--round    { width: 42px; height: 42px; border-radius: 50%; }

.stamps-shape__label {
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--grafline-text-muted, #6b7280);
	text-align: center;
	line-height: 1.2;
}

.stamps-shape.is-active .stamps-shape__label {
	color: var(--grafline-primary);
}

/* Model indicator bar */
.stamps-designer__model-indicator {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	background: rgba(255, 42, 19, 0.06);
	border: 1.5px solid rgba(255, 42, 19, 0.25);
	border-radius: var(--radius-md);
	padding: 0.6rem var(--spacing-md);
	font-size: 0.875rem;
	color: var(--grafline-text);
	margin-top: var(--spacing-lg);
	animation: sd-model-in 0.3s ease;
}

.stamps-designer__model-indicator[hidden] {
	display: none;
}

.stamps-designer__model-indicator svg {
	color: var(--grafline-primary);
	flex-shrink: 0;
}

.stamps-designer__model-indicator strong {
	color: var(--grafline-primary);
}

.stamps-designer__model-clear {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--grafline-text-muted, #6b7280);
	cursor: pointer;
	padding: 3px;
	border-radius: 50%;
	line-height: 1;
	transition: color 0.2s ease, background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stamps-designer__model-clear:hover {
	color: var(--grafline-primary);
	background: rgba(255, 42, 19, 0.1);
}

@keyframes sd-model-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Preview highlight flash when model is selected */
.stamps-preview--highlight {
	animation: preview-flash 1.2s ease;
}

@keyframes preview-flash {
	0%   { box-shadow: var(--shadow-xl); }
	30%  { box-shadow: 0 0 0 6px rgba(255, 42, 19, 0.25), var(--shadow-xl); }
	100% { box-shadow: var(--shadow-xl); }
}

/* Preview label & size badge */
.stamps-designer__preview-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--grafline-text-muted, #6b7280);
	margin: 0;
}

.stamps-designer__size-badge {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--grafline-primary);
	background: rgba(255, 42, 19, 0.08);
	border: 1px solid rgba(255, 42, 19, 0.2);
	border-radius: var(--radius-full, 9999px);
	padding: 0.25rem 0.75rem;
	text-align: center;
}

/* Shape label small sub-text */
.stamps-shape__label small {
	display: block;
	font-size: 0.5625rem;
	font-weight: 500;
	opacity: 0.7;
	margin-top: 1px;
}

/* Input with character counter */
.stamps-field__input-wrap {
	position: relative;
}

.stamps-field__input-wrap .stamps-field__input {
	padding-right: 4.5rem;
}

.stamps-field__counter {
	position: absolute;
	right: 0.65rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--grafline-text-muted, #6b7280);
	pointer-events: none;
	white-space: nowrap;
}

/* Hidden line fields */
.stamps-line-field[hidden] {
	display: none;
}

/* Preview border — JS drives width/height, CSS handles style */
.stamps-preview__border {
	box-sizing: border-box;
	overflow: hidden;
	transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease, border-color 0.25s ease;
	/* Remove old min-width/min-height overrides that conflict with JS sizing */
	min-width: unset;
	min-height: unset;
}

.stamps-preview__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 0;
}

/* Placeholder shown via .is-empty class (JS-toggled) */
.stamps-preview__line.is-empty::before {
	content: attr(data-placeholder);
	opacity: 0.2;
	font-style: italic;
	font-weight: 400;
}

/* Hidden divider */
.stamps-preview__divider[hidden] {
	display: none;
}

/* Designer actions group */
.stamps-designer__actions {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
}

/* Designer hint & submit */
.stamps-designer__hint {
	font-size: 0.8125rem;
	color: var(--grafline-text-light);
	line-height: 1.6;
	margin: 0;
}

.stamps-designer__submit {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
}

/* Quicknav designer pill */
.stamps-nav__pill--designer {
	background: rgba(255, 42, 19, 0.12);
	color: var(--grafline-primary);
	border-color: rgba(255, 42, 19, 0.3);
}

.stamps-nav__pill--designer:hover {
	background: var(--grafline-primary);
	color: #fff;
	border-color: var(--grafline-primary);
}

/* Responsive */
@media (max-width: 1024px) {
	.stamps-designer__wrap {
		grid-template-columns: 1fr;
	}

	.stamps-designer__preview-col {
		position: static;
	}

	/* Scale down the preview border if it's wider than its container */
	.stamps-preview {
		overflow: auto;
	}
}

@media (max-width: 768px) {
	.stamps-shapes {
		gap: var(--spacing-xs);
	}

	.stamps-shape {
		min-width: 68px;
		padding: var(--spacing-xs) var(--spacing-sm);
	}

	.stamps-colors {
		gap: var(--spacing-xs);
	}

	/* Scale preview to fit narrow screens */
	.stamps-preview__border {
		transform-origin: center;
		max-width: 100%;
	}

	.stamps-preview {
		overflow-x: auto;
		padding: var(--spacing-xl) var(--spacing-md);
	}
}

@media (max-width: 480px) {
	.stamps-preview {
		padding: var(--spacing-xl) var(--spacing-md);
		min-height: 200px;
	}

	.stamps-designer__submit {
		flex-direction: column;
		align-items: stretch;
	}

	.stamps-designer__submit .btn {
		width: 100%;
		justify-content: center;
	}
}

/* ─── Canvas stamp preview ─── */

.stamps-preview #stamp-canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ─── PDF download button ─── */

.stamps-designer__pdf-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin-top: var(--spacing-md);
	font-size: 0.8125rem;
	border-color: var(--grafline-border);
	color: var(--grafline-text-muted);
}

.stamps-designer__pdf-btn:hover {
	border-color: var(--grafline-primary);
	color: var(--grafline-primary);
}

/* ─── Article cards (vizitke / letaki / brošure variants) ─── */

.tisk-cfg__articles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--spacing-sm);
}

.tisk-article-card {
	display: flex;
	align-items: stretch;
	border: 2px solid var(--grafline-border);
	border-radius: var(--radius-lg);
	cursor: pointer;
	transition: all 0.2s var(--ease-out-smooth);
	background: var(--grafline-bg-light);
	overflow: hidden;
}

.tisk-article-card:hover {
	border-color: rgba(255, 42, 19, 0.4);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.tisk-article-card--selected {
	border-color: var(--grafline-primary);
	background: var(--grafline-primary-light);
	box-shadow: 0 0 0 3px rgba(255, 42, 19, 0.12);
}

.tisk-article-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: var(--spacing-md);
}

.tisk-article-card__binding {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--grafline-primary);
	margin-bottom: 0.1rem;
}

.tisk-article-card__name {
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--grafline-text);
}

.tisk-article-card__desc {
	font-size: 0.8125rem;
	color: var(--grafline-text-light);
	line-height: 1.5;
}

@media (max-width: 600px) {
	.tisk-cfg__articles {
		grid-template-columns: 1fr;
	}
}

/* Namenska štampiljka — text input field on product page */
.grafline-namenska-field {
	margin-bottom: 1.25rem;
}
.grafline-namenska-field__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
	color: var(--grafline-text);
}
.grafline-namenska-field__input {
	width: 100%;
	padding: 0.6rem 0.875rem;
	border: 1.5px solid var(--grafline-border);
	border-radius: var(--radius-md);
	font-size: 0.9375rem;
	color: var(--grafline-text);
	background: #fff;
	transition: border-color 0.2s ease;
}
.grafline-namenska-field__input:focus {
	outline: none;
	border-color: var(--grafline-primary);
}

/* Milo stamp — size/handle/speed selectors on product page */
.grafline-milo-fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.grafline-milo-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.grafline-milo-field label {
	font-size: 0.875rem;
	color: var(--grafline-text);
}
.grafline-milo-field select {
	width: 100%;
	padding: 0.6rem 0.875rem;
	border: 1.5px solid var(--grafline-border);
	border-radius: var(--radius-md);
	font-size: 0.9375rem;
	color: var(--grafline-text);
	background: #fff;
	cursor: pointer;
	appearance: auto;
	transition: border-color 0.2s ease;
}
.grafline-milo-field select:focus {
	outline: none;
	border-color: var(--grafline-primary);
}
