/* icerad Mützen-Konfigurator – Styles (Präfix .ik-) */
.ik-root {
	--ik-ice: #3ea0da;
	--ik-ice-soft: #e6f3fb;
	--ik-deep: #0d5f8a;
	--ik-ink: #141414;
	--ik-muted: #5f6b76;
	--ik-line: #e3e8ee;
	--ik-bg: #f5f7f9;
	--ik-card: #ffffff;
	--ik-radius: 14px;
	--ik-shadow: 0 1px 2px rgba(13, 95, 138, .06), 0 8px 24px rgba(13, 95, 138, .07);
	color: var(--ik-ink);
	font-family: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
.ik-root *, .ik-detail * { box-sizing: border-box; }
.ik-root button, .ik-detail button { font: inherit; }

.ik-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
	gap: 28px;
	align-items: start;
}

/* ---------- Vorschau ---------- */
.ik-preview { position: sticky; top: 16px; }
.ik-stage {
	position: relative;
	background:
		radial-gradient(120% 80% at 50% 10%, #ffffff 0%, #f1f5f8 60%, #e6edf2 100%);
	border-radius: var(--ik-radius);
	box-shadow: var(--ik-shadow);
	overflow: hidden;
	cursor: zoom-in;
	aspect-ratio: 1050 / 1000;
	touch-action: manipulation;
}
.ik-canvas { display: block; width: 100%; height: 100%; }
.ik-loader {
	position: absolute; inset: 0; display: grid; place-items: center;
	pointer-events: none; opacity: 0; transition: opacity .2s;
}
.ik-stage.is-loading .ik-loader { opacity: 1; }
.ik-loader span {
	width: 34px; height: 34px; border-radius: 50%;
	border: 3px solid rgba(62, 160, 218, .25); border-top-color: var(--ik-ice);
	animation: ik-spin .8s linear infinite;
}
@keyframes ik-spin { to { transform: rotate(360deg); } }
.ik-preview-bar { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 10px; }

/* ---------- Panel ---------- */
.ik-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ik-head { padding: 2px 2px 4px; }
.ik-title {
	font-family: Anton, Impact, "Arial Narrow", sans-serif;
	font-weight: 400; letter-spacing: .02em; text-transform: uppercase;
	font-size: clamp(26px, 3.2vw, 36px); line-height: 1.05; margin: 0 0 6px; color: var(--ik-ink);
}
.ik-sub { margin: 0; color: var(--ik-muted); }
.ik-card {
	background: var(--ik-card); border: 1px solid var(--ik-line);
	border-radius: var(--ik-radius); padding: 16px; box-shadow: var(--ik-shadow);
}
.ik-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ik-step {
	width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
	background: var(--ik-ice); color: #fff; font-weight: 800; font-size: 13px; flex: none;
}
.ik-h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ik-ink); letter-spacing: 0; text-transform: none; font-family: inherit; }
.ik-chosen { margin-left: auto; font-weight: 700; color: var(--ik-deep); font-size: 14px; }
.ik-note { margin: -4px 0 10px; color: var(--ik-muted); font-size: 13px; }

.ik-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; scrollbar-width: thin; }
.ik-chip {
	flex: none; border: 1px solid var(--ik-line); background: #fff; color: var(--ik-ink);
	border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.ik-chip:hover { border-color: var(--ik-ice); }
.ik-chip.is-on { background: var(--ik-ink); border-color: var(--ik-ink); color: #fff; }

.ik-grid { display: grid; gap: 8px; }
.ik-grid-caps { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); }
.ik-grid-yarn { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }

.ik-sw {
	position: relative; border: 0; padding: 0; margin: 0; cursor: pointer; background: none;
	border-radius: 50%; outline: none; -webkit-tap-highlight-color: transparent;
}
.ik-sw-cap { aspect-ratio: 1; }
.ik-sw-cap::before {
	content: ""; position: absolute; inset: 3px; border-radius: 50%;
	background:
		repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 1px, transparent 1px 3px),
		radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 55%),
		var(--c);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 -3px 6px rgba(0,0,0,.18);
}
.ik-sw::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
	box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s;
}
.ik-sw:hover::after { box-shadow: 0 0 0 2px rgba(62,160,218,.45); }
.ik-sw[aria-checked="true"]::after { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ik-ice); }
.ik-sw:focus-visible::after { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ik-deep); }
.ik-sw.is-out { cursor: not-allowed; opacity: .38; }
.ik-sw.is-out::before { filter: grayscale(.4); }
.ik-sw-cap.is-out::after {
	background: linear-gradient(135deg, transparent 46%, rgba(20,20,20,.75) 47%, rgba(20,20,20,.75) 53%, transparent 54%);
}

.ik-sw-yarn { border-radius: 10px; display: flex; flex-direction: column; align-items: center; padding: 4px 0; }
.ik-spool {
	width: 30px; height: 36px; border-radius: 5px; display: block;
	background:
		linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(255,255,255,.55) 42%, rgba(255,255,255,0) 58%, rgba(0,0,0,.4) 100%),
		repeating-linear-gradient(170deg, rgba(0,0,0,.14) 0 1px, transparent 1px 2.5px),
		var(--c);
	box-shadow: 0 -4px 0 -1px #e9edf1, 0 4px 0 -1px #e9edf1, 0 1px 3px rgba(0,0,0,.25);
	margin-top: 4px;
}
.ik-code { font-size: 11px; font-weight: 700; color: var(--ik-muted); letter-spacing: .02em; }
.ik-sw-yarn[aria-checked="true"] .ik-code { color: var(--ik-deep); }

.ik-summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 10px 0 14px; }
.ik-summary dt { color: var(--ik-muted); font-size: 13px; padding-top: 2px; }
.ik-summary dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.ik-summary small { font-weight: 400; color: var(--ik-muted); font-size: 12.5px; flex-basis: 100%; padding-left: 22px; margin-top: -4px; }
.ik-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }

.ik-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ik-btn {
	display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; cursor: pointer;
	padding: 8px 14px; font-weight: 700; font-size: 13.5px; line-height: 1; transition: background .15s, border-color .15s, color .15s;
}
.ik-btn-ghost { background: #fff; color: var(--ik-ink); border: 1px solid var(--ik-line); }
.ik-btn-ghost:hover { border-color: var(--ik-ice); color: var(--ik-deep); }
.ik-btn-primary { background: var(--ik-ice); color: #fff; border: 1px solid var(--ik-ice); padding: 14px 22px; font-size: 16px; }
.ik-btn-primary:hover { background: var(--ik-deep); border-color: var(--ik-deep); }
.ik-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ik-cart { margin-top: 14px; }
.ik-cart:empty { display: none; }

/* Icons (CSS-only) */
.ik-ico { width: 16px; height: 16px; display: inline-block; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ik-ico-zoom { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E"); }
.ik-ico-swap { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4 3 8l4 4M3 8h14M17 20l4-4-4-4M21 16H7'/%3E%3C/svg%3E"); }
.ik-ico-dice { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='4' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.6'/%3E%3Ccircle cx='15.5' cy='15.5' r='1.6'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3C/svg%3E"); }
.ik-ico-link { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E"); }

.ik-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Detailansicht ---------- */
.ik-noscroll, .ik-noscroll body { overflow: hidden !important; }
.ik-detail {
	position: fixed; inset: 0; z-index: 999999; background: rgba(10, 16, 22, .86);
	display: grid; grid-template-rows: auto 1fr; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
	font-family: Nunito, system-ui, sans-serif; color: #fff;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ik-detail[hidden] { display: none; }
.ik-detail-bar { display: flex; align-items: center; gap: 14px; padding: 4px 4px 10px; }
.ik-detail-bar strong { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; font-size: 20px; }
.ik-detail-tip { color: rgba(255,255,255,.65); font-size: 13px; }
.ik-detail-stage { position: relative; min-height: 0; display: grid; place-items: center; }
.ik-dcanvas { display: block; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.45); background: #141414; }
.ik-icon-btn {
	width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
	color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.ik-icon-btn:hover { background: rgba(255,255,255,.18); }
.ik-close { margin-left: auto; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
	.ik-layout { grid-template-columns: 1fr; gap: 16px; }
	.ik-preview { position: sticky; top: 0; z-index: 5; background: var(--ik-bg); padding-top: 6px; margin: 0 -4px; padding-inline: 4px; }
	.ik-stage { max-height: 46vh; aspect-ratio: auto; height: min(46vh, calc((100vw - 32px) * 0.952)); }
	.ik-canvas { object-fit: contain; }
	.ik-preview-bar { margin-top: 6px; padding-bottom: 6px; }
}
@media (max-width: 480px) {
	.ik-root { font-size: 14px; }
	.ik-card { padding: 13px; }
	.ik-grid-caps { grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 6px; }
	.ik-grid-yarn { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .ik-loader span { animation-duration: 2s; } }

/* ---------- WooCommerce-Produktseite (Plugin) ---------- */
.icerad-sk-product div.product .summary.entry-summary,
.icerad-sk-product.woocommerce div.product div.summary { width: 100% !important; float: none !important; max-width: none !important; }
.icerad-sk { margin: 18px 0 8px; clear: both; }
.icerad-sk .ik-root { --ik-bg: transparent; }
.icerad-sk-form { margin: 0 !important; }
.icerad-sk-form .icerad-sk-buy { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.icerad-sk-form .icerad-sk-buy .quantity { margin: 0 !important; }
.icerad-sk-form .single_add_to_cart_button { flex: 1 1 200px; justify-content: center; margin: 0 !important; float: none !important; }
.icerad-sk-form .single_add_to_cart_button[disabled] { opacity: .5; }
.icerad-sk-stocknote { color: #b32d2e; font-size: 13px; margin: 8px 0 0; min-height: 0; }
.icerad-sk-stocknote:empty { display: none; }
.icerad-sk-price { margin: 0 0 10px; font-size: 22px; font-weight: 800; }

/* Produktseite: Artikelnummer/Kategorie-Infofeld ausblenden (OceanWP ruft es direkt auf) */
body.icerad-sk-product .product_meta { display: none !important; }

/* Knopf „Wunschfarbe nicht dabei?“ auf normalen Mützen-Produkten */
.icerad-sk-teaser { margin: 4px 0 18px; }
.icerad-sk-teaser-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px;
	border: 2px dashed #3ea0da; background: rgba(62,160,218,.07); color: #0d5f8a !important;
	font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none !important; transition: background .15s, border-color .15s;
}
.icerad-sk-teaser-btn:hover, .icerad-sk-teaser-btn:focus-visible { background: rgba(62,160,218,.15); border-style: solid; }
.icerad-sk-teaser-ico {
	width: 22px; height: 22px; flex: none; border-radius: 50%;
	background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935);
	box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px rgba(0,0,0,.12);
}

/* ---------- Shop-Look: angeglichen an die normalen Produktseiten (OceanWP + Variation Swatches) ---------- */
.ik-root { --ik-ink: #4a4a4a; --ik-line: #e5e5e5; font-family: inherit; font-size: 14px; color: #4a4a4a; }
.ik-root .ik-card, .ik-root .ik-card-summary {
	background: none; border: 0; border-bottom: 1px solid var(--ik-line); border-radius: 0; box-shadow: none; padding: 0 0 16px;
}
.ik-root .ik-card-summary { border-bottom: 0; }
.ik-panel { gap: 16px; }
.ik-step { display: none; }
.ik-card-head { gap: 0; margin-bottom: 10px; }
.ik-root .ik-h3 { font-size: 14px; font-weight: 400; text-transform: uppercase; color: #4a4a4a; letter-spacing: normal; font-family: inherit; }
.ik-chosen { margin-left: 0; font-weight: 700; color: #4a4a4a; font-size: 14px; }
.ik-chosen:not(:empty)::before { content: ": "; font-weight: 400; }

/* Farbfelder wie „Farbe“ auf der Mützen-Seite: 30 px, eckig, grauer Rahmen */
.ik-root .ik-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ik-root .ik-sw { width: 30px; height: 30px; flex: none; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px #a8a8a8; padding: 0; aspect-ratio: auto; }
.ik-root .ik-sw-cap::before { inset: 2px; border-radius: 1px; background: var(--c); box-shadow: none; }
.ik-root .ik-sw-yarn { display: block; padding: 0; }
.ik-root .ik-spool { position: absolute; inset: 2px; width: auto; height: auto; margin: 0; border-radius: 1px; background: var(--c); box-shadow: none; }
.ik-root .ik-sw::after { border-radius: 2px; }
.ik-root .ik-sw:hover::after { box-shadow: 0 0 0 1px #4a4a4a; }
.ik-root .ik-sw[aria-checked="true"]::after { box-shadow: 0 0 0 2px #141414; }
.ik-root .ik-sw:focus-visible::after { box-shadow: 0 0 0 2px #3ea0da; }

/* Filter + Knöpfe im Stil der Shop-Buttons */
.ik-root .ik-chip { border-radius: 8px; border: 1px solid #d5d5d5; padding: 6px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #4a4a4a; }
.ik-root .ik-chip.is-on { background: #0d5f8a; border-color: #0d5f8a; color: #fff; }
.ik-root .ik-btn-ghost { border: 2px solid #0d5f8a; border-radius: 8px; color: #0d5f8a; background: #fff; padding: 11px 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ik-root .ik-btn-ghost:hover { background: #0d5f8a; color: #fff; border-color: #0d5f8a; }

/* Vorschau wie die Produktgalerie */
.ik-root .ik-stage { border: 1px solid #e1e1e1; border-radius: 10px; box-shadow: none; background: #f5f5f5; }
.ik-summary dt { font-size: 13px; }
.ik-summary dd { font-weight: 700; color: #4a4a4a; }
