/* ==========================================================================
   Boncuk Core — ön yüz stilleri. Tema değişkenleri yoksa yedek değerler kullanılır.
   ========================================================================== */

.bcc-designer, .bcc-personal, .bcc-guide, .bcc-process, .bcc-w, .bcc-wishlist, .bcc-wish {
	--_p: var(--bc-primary, #1F4DD8);
	--_p-rgb: var(--bc-primary-rgb, 31, 77, 216);
	--_s: var(--bc-secondary, #12B5B0);
	--_s-rgb: var(--bc-secondary-rgb, 18, 181, 176);
	--_a: var(--bc-accent, #E2358A);
	--_a-rgb: var(--bc-accent-rgb, 226, 53, 138);
	--_y: var(--bc-amber, #F5A623);
	--_y-rgb: var(--bc-amber-rgb, 245, 166, 35);
	--_ink: var(--bc-ink, #141A3A);
	--_ink-rgb: var(--bc-ink-rgb, 20, 26, 58);
	--_bg: var(--bc-bg, #F5F7FF);
	--_line: rgba(var(--_ink-rgb), .12);
	--_muted: rgba(var(--_ink-rgb), .64);
	--_r: var(--bc-radius, 18px);
	--_r-lg: var(--bc-radius-lg, 28px);
	--_display: var(--bc-font-display, system-ui, sans-serif);
}

/* --- Favori butonu ---------------------------------------------------- */
.bcc-wish {
	display: grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .92); color: var(--_ink);
	cursor: pointer;
	transition: color .2s, transform .2s;
}
.bcc-wish:hover { transform: scale(1.08); }
.bcc-wish.is-on { color: var(--_a); }
.bcc-wish.is-on svg path { fill: currentColor; }
.bcc-wish--single {
	width: 56px; height: 56px; flex: 0 0 56px;
	border: 2px solid var(--_line);
	background: transparent;
}
.bcc-wish--loop { position: absolute; top: 10px; right: 10px; z-index: 3; }

/* --- Kişiselleştirme ------------------------------------------------- */
.bcc-personal { flex-basis: 100%; display: grid; gap: 16px; margin: 4px 0 8px; }
.bcc-field { display: grid; gap: 6px; }
.bcc-field label { font-weight: 600; }
.bcc-optional { font-weight: 400; color: var(--_muted); }
.bcc-field input[type="text"] { letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.bcc-help { margin: 0; font-size: .8125rem; color: var(--_muted); }
.bcc-count { font-weight: 600; color: var(--_ink); }

.bcc-letter-preview { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; }
.bcc-letter-preview span {
	display: grid; place-items: center;
	width: 30px; height: 30px;
	border-radius: 7px;
	background: #fff;
	box-shadow: inset 0 -3px 0 rgba(var(--_ink-rgb), .08), 0 0 0 1px rgba(var(--_ink-rgb), .2);
	font: 700 15px/1 var(--_display);
	color: var(--_ink);
	animation: bcc-pop .25s cubic-bezier(.2, .8, .2, 1);
}
.bcc-letter-preview span.is-space { width: 12px; background: transparent; box-shadow: none; }
@keyframes bcc-pop { from { transform: scale(.6); opacity: 0; } }

.bcc-gift { display: grid; gap: 10px; padding: 16px; border-radius: var(--_r); background: rgba(var(--_y-rgb), .12); }
.bcc-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.bcc-check input { position: absolute; opacity: 0; pointer-events: none; }
.bcc-check em { font-style: normal; color: var(--_muted); font-size: .875em; }
.bcc-check__box {
	flex: 0 0 22px; width: 22px; height: 22px;
	border: 2px solid rgba(var(--_ink-rgb), .35); border-radius: 7px; background: #fff;
	display: grid; place-items: center;
	transition: background-color .15s, border-color .15s;
}
.bcc-check input:checked + .bcc-check__box { background: var(--_ink); border-color: var(--_ink); }
.bcc-check input:checked + .bcc-check__box::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.bcc-check input:focus-visible + .bcc-check__box { outline: 3px solid var(--_y); outline-offset: 2px; }
.bcc-extra { margin: 0; font-size: .9375rem; }

/* --- Tasarlayıcı --------------------------------------------------- */
.bcc-designer {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 48px);
	align-items: start;
	margin-block: 8px 40px;
}
.bcc-designer__stage { position: sticky; top: calc(var(--bc-header-h, 76px) + 20px); display: grid; gap: 16px; }
.bcc-designer__preview {
	position: relative;
	border-radius: var(--_r-lg);
	background:
		radial-gradient(70% 70% at 50% 45%, #fff 0%, rgba(255, 255, 255, 0) 70%),
		linear-gradient(160deg, rgba(var(--_s-rgb), .16), rgba(var(--_a-rgb), .1));
	padding: 12px;
}
.bcc-designer__preview svg { width: 100%; max-width: 520px; margin-inline: auto; display: block; }
.bcc-designer__preview .bcc-b { cursor: pointer; transition: transform .15s; }
.bcc-designer__preview .bcc-b:hover { transform: scale(1.12); }
.bcc-designer__preview .bcc-b.is-new { animation: bcc-pop .3s cubic-bezier(.2, .8, .2, 1); }
.bcc-canvas-type { font: 800 22px/1 var(--_display); fill: var(--_ink); }
.bcc-canvas-len { font: 500 15px/1 var(--bc-font-body, system-ui); fill: var(--_muted); }
.bcc-designer__hint {
	position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
	width: max-content; max-width: calc(100% - 32px);
	margin: 0; padding: 8px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .9); font-size: .875rem; text-align: center;
}
.bcc-designer__hint:empty { display: none; }
.bcc-designer__hint.is-alert { background: var(--_a); color: #fff; }

.bcc-designer__meter p { margin: 6px 0 0; font-size: .875rem; color: var(--_muted); }
.bcc-meter { height: 10px; border-radius: 999px; background: rgba(var(--_ink-rgb), .1); overflow: hidden; }
.bcc-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--_y); transition: width .3s cubic-bezier(.2, .8, .2, 1), background-color .3s; }
.bcc-meter.is-good span { background: var(--_s); }
.bcc-meter.is-over span { background: var(--_a); }

.bcc-designer__label { margin: 0 0 8px; font-weight: 600; }
.bcc-designer__label small { font-weight: 400; color: var(--_muted); }
.bcc-seq { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 10px; min-height: 52px; border-radius: var(--_r); background: #fff; border: 1px dashed rgba(var(--_ink-rgb), .2); }
.bcc-seq button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.bcc-seq button:hover { background: rgba(var(--_a-rgb), .12); }
.bcc-designer__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bcc-tool {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 40px; padding: 0 14px;
	border: 1.5px solid rgba(var(--_ink-rgb), .2); border-radius: 999px;
	background: #fff; color: var(--_ink); font: 600 .875rem/1 inherit; cursor: pointer;
}
.bcc-tool:hover { border-color: var(--_ink); }
.bcc-tool--danger:hover { border-color: var(--_a); color: var(--_a); }

.bcc-designer__panel { display: grid; gap: 14px; margin: 0; }
.bcc-step { margin: 0; padding: 20px; border: 1px solid var(--_line); border-radius: var(--_r); background: #fff; min-width: 0; }
.bcc-step legend {
	display: flex; align-items: center; gap: 10px;
	padding: 0; margin-bottom: 14px; float: left; width: 100%;
	font: 700 1.125rem/1.2 var(--_display);
}
.bcc-step legend + * { clear: both; }
.bcc-step legend span {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--_ink); color: #fff; font-size: .9375rem;
}

.bcc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bcc-pill {
	display: inline-flex; align-items: baseline; gap: 6px;
	min-height: 44px; padding: 10px 18px;
	border: 1.5px solid rgba(var(--_ink-rgb), .2); border-radius: 999px;
	background: #fff; color: var(--_ink); font: 600 .9375rem/1.2 inherit; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.bcc-pill small { font-weight: 500; opacity: .7; font-size: .75rem; }
.bcc-pill:hover { border-color: var(--_ink); }
.bcc-pill.is-active { background: var(--_ink); border-color: var(--_ink); color: #fff; }
.bcc-pills--sm .bcc-pill { min-height: 38px; padding: 6px 14px; font-size: .875rem; }

.bcc-strings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bcc-string {
	display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
	padding: 12px; border: 1.5px solid rgba(var(--_ink-rgb), .15); border-radius: 12px;
	background: #fff; color: var(--_ink); text-align: left; font: 600 .875rem/1.2 inherit; cursor: pointer;
}
.bcc-string small { color: var(--_muted); font-weight: 500; }
.bcc-string__line { height: 4px; border-radius: 4px; background: var(--c); }
.bcc-string.is-active { border-color: var(--_ink); box-shadow: inset 0 0 0 1px var(--_ink); }

.bcc-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bcc-swatch {
	display: grid; justify-items: center; gap: 2px;
	padding: 12px 6px 10px; border: 1.5px solid transparent; border-radius: 14px;
	background: var(--_bg); color: var(--_ink); cursor: pointer; text-align: center;
	transition: border-color .15s, transform .15s;
}
.bcc-swatch:hover { border-color: rgba(var(--_ink-rgb), .3); transform: translateY(-2px); }
.bcc-swatch:active { transform: scale(.96); }
.bcc-swatch.is-denied { animation: bcc-shake .35s; }
.bcc-swatch__name { font-size: .78rem; font-weight: 600; line-height: 1.2; }
.bcc-swatch small { font-size: .72rem; color: var(--_muted); }
@keyframes bcc-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.bcc-designer__total {
	position: relative;
	display: grid; gap: 10px;
	padding: 18px 20px; border-radius: var(--_r);
	background: var(--_ink); color: #fff;
	box-shadow: 0 20px 40px -20px rgba(var(--_ink-rgb), .7);
}
.bcc-designer__total > div { display: flex; justify-content: space-between; align-items: baseline; }
.bcc-designer__total strong { font: 800 1.75rem/1 var(--_display); }
.bcc-designer__total .bcc-help { color: rgba(255, 255, 255, .7); }
.bcc-designer__submit.button { --_bg: var(--_y); --_fg: var(--_ink); color: var(--_ink); width: 100%; min-height: 54px; border-color: var(--_y); font-size: 1rem; }
.bcc-designer__submit.button:hover { --_bg: #fff; color: var(--_ink); }
.bcc-designer__submit.button:disabled,
.woocommerce .bcc-designer__submit.button:disabled { opacity: 1; background: rgba(255, 255, 255, .14); border-color: transparent; color: rgba(255, 255, 255, .6); cursor: not-allowed; }
.bcc-designer .bcc-personal { margin: 0; }

.bcc-thumb { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 10px; background: #F5F7FF; }
.bcc-thumb svg { width: 100%; height: 100%; }
.bc-minicart__thumb .bcc-thumb { width: 76px; height: 92px; }

/* --- Renk rehberi ------------------------------------------------- */
.bcc-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 24px; }
.bcc-guide__item {
	display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: start;
	padding: 22px; border-radius: var(--_r);
	background: #fff; border: 1px solid var(--_line);
	border-top: 5px solid var(--c);
}
.bcc-guide__item h3 { margin: 4px 0 2px; font-size: 1.25rem; }
.bcc-guide__item p { margin: 0 0 8px; font-size: .9375rem; }
.bcc-guide__meaning { font-weight: 600; color: var(--_muted); }
.bcc-guide__link { font-weight: 600; font-size: .875rem; }

/* --- Süreç -------------------------------------------------------- */
.bcc-process { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 4px; }
.bcc-process li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; position: relative; padding-bottom: 20px; }
.bcc-process li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; border-left: 2px dashed rgba(var(--_ink-rgb), .2); }
.bcc-process__num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--_p); color: #fff; font: 800 1.3rem/1 var(--_display); }
.bcc-process li:nth-child(2) .bcc-process__num { background: var(--_s); }
.bcc-process li:nth-child(3) .bcc-process__num { background: var(--_y); color: var(--_ink); }
.bcc-process li:nth-child(4) .bcc-process__num { background: var(--_a); }
.bcc-process h3 { margin: 12px 0 4px; font-size: 1.25rem; }
.bcc-process p { margin: 0; color: var(--_muted); }

/* --- Favoriler sayfası -------------------------------------------- */
.bcc-wishlist__empty { text-align: center; padding: 48px 0; color: var(--_muted); }
.bcc-wishlist__loading { color: var(--_muted); }

/* --- Duyarlı ------------------------------------------------------------ */
@media (max-width: 960px) {
	.bcc-designer { grid-template-columns: 1fr; }
	.bcc-designer__total { position: sticky; bottom: 10px; z-index: 5; }
	.bcc-designer__stage { position: relative; top: auto; }
	.bcc-guide { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.bcc-strings { grid-template-columns: 1fr; }
	.bcc-palette { grid-template-columns: repeat(3, 1fr); }
	.bcc-guide__item { grid-template-columns: 56px 1fr; padding: 18px; }
}

/* ==========================================================================
   Elementor widget'ları
   ========================================================================== */
.bcc-w--space-none { padding-block: 0; }
.bcc-w--space-sm { padding-block: clamp(28px, 4vw, 48px); }
.bcc-w--space-md { padding-block: clamp(56px, 8vw, 104px); }
.bcc-w--space-lg { padding-block: clamp(80px, 11vw, 144px); }
.bcc-w--tone-white { background: #fff; }
.bcc-w--tone-tint { background: rgba(var(--_s-rgb), .1); }
.bcc-w--tone-amber { background: rgba(var(--_y-rgb), .14); }
.bcc-w--tone-primary { background: var(--_p); color: #fff; }
.bcc-w--tone-ink { background: var(--_ink); color: rgba(255, 255, 255, .85); }
.bcc-w--tone-primary .bc-section__title,
.bcc-w--tone-ink .bc-section__title,
.bcc-w--tone-primary .bc-link,
.bcc-w--tone-ink .bc-link { color: #fff; }
.bcc-w--tone-primary .bc-section__lead,
.bcc-w--tone-ink .bc-section__lead { color: rgba(255, 255, 255, .75); }

.bcc-w-hero__img { width: 100%; border-radius: 200px 200px var(--_r-lg) var(--_r-lg); aspect-ratio: 4 / 5; object-fit: cover; }

/* Sekmeler */
.bcc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -12px 0 28px; }
.bcc-tab {
	min-height: 42px; padding: 8px 18px;
	border: 1.5px solid rgba(var(--_ink-rgb), .18); border-radius: 999px;
	background: transparent; color: var(--_ink); font: 600 .9375rem/1 inherit; cursor: pointer;
}
.bcc-tab[aria-selected="true"] { background: var(--_ink); border-color: var(--_ink); color: #fff; }

/* Bannerlar */
.bcc-banners { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 16px; }
.bcc-banners--n1 { --n: 1; }
.bcc-banners--n3 { --n: 3; }
.bcc-banners--n4 { --n: 4; }
.bcc-banners--wide.bcc-banners--n2 { grid-template-columns: 1.6fr 1fr; }
.bcc-banners--wide.bcc-banners--n3 { grid-template-columns: 1.6fr 1fr 1fr; }
.bcc-banner {
	position: relative; display: block; overflow: hidden; isolation: isolate;
	min-height: clamp(280px, 34vw, 460px);
	border-radius: var(--_r-lg); color: #fff; text-decoration: none;
	background: var(--_ink);
}
.bcc-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); z-index: -2; }
.bcc-banner:hover .bcc-banner__media img { transform: scale(1.04); }
.bcc-banner__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--t) 80%, #000) 100%); }
.bcc-banner__body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: start; gap: 8px; padding: clamp(20px, 3vw, 36px); }
.bcc-banner__kicker { font-size: .875rem; font-weight: 600; opacity: .9; }
.bcc-banner__title { font: 800 clamp(1.6rem, 3vw, 2.4rem)/1.05 var(--_display); letter-spacing: -.02em; margin-bottom: 8px; }
.bcc-banner:hover { color: #fff; }

/* Güvenceler */
.bcc-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.bcc-feature { display: flex; gap: 14px; align-items: flex-start; }
.bcc-feature__icon { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 50%; background: rgba(var(--_y-rgb), .2); color: var(--_ink); }
.bcc-feature strong { display: block; font-family: var(--_display); font-size: 1.0625rem; }
.bcc-feature span { font-size: .9375rem; color: var(--_muted); }
.bcc-w--tone-ink .bcc-feature span, .bcc-w--tone-primary .bcc-feature span { color: rgba(255, 255, 255, .7); }
.bcc-w--tone-ink .bcc-feature strong, .bcc-w--tone-primary .bcc-feature strong { color: #fff; }

/* Yorumlar */
.bcc-quotes {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 380px); gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
	scrollbar-width: thin;
}
.bcc-quote { scroll-snap-align: start; margin: 0; padding: 26px; border-radius: var(--_r); background: #fff; border: 1px solid var(--_line); display: grid; gap: 14px; align-content: start; color: var(--_ink); }
.bcc-quote__stars { color: var(--_y); letter-spacing: 2px; }
.bcc-quote__stars span { color: rgba(var(--_ink-rgb), .2); }
.bcc-quote blockquote { margin: 0; font: 500 1.0625rem/1.55 inherit; }
.bcc-quote figcaption { display: grid; font-size: .875rem; }
.bcc-quote figcaption span { color: var(--_muted); }

/* Galeri */
.bcc-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.bcc-gallery figure { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 14px; }
.bcc-gallery figure:nth-child(3n+1) { border-radius: 50%; }
.bcc-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Bülten */
.bcc-newsletter {
	display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
	padding: clamp(28px, 5vw, 56px); border-radius: var(--_r-lg);
	background: var(--_y); color: var(--_ink);
}
.bcc-newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; color: var(--_ink); }
.bcc-newsletter p { margin: 0; }
.bcc-newsletter__form { display: grid; gap: 12px; }
.bcc-newsletter__row { display: flex; gap: 8px; }
.bcc-newsletter__row input { border-color: transparent; border-radius: 999px; padding-inline: 20px; }
.bcc-newsletter__consent { font-size: .8125rem; font-weight: 500; }
.bcc-newsletter__msg { font-weight: 600; }
.bcc-newsletter__msg.is-error { color: #9b1240; }

@media (max-width: 960px) {
	.bcc-banners, .bcc-banners--wide.bcc-banners--n2, .bcc-banners--wide.bcc-banners--n3 { grid-template-columns: 1fr; }
	.bcc-newsletter { grid-template-columns: 1fr; }
	.bcc-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
	.bcc-newsletter__row { flex-direction: column; }
}
.bcc-w--tone-none + .bcc-w--tone-none,
.bcc-w--tone-white + .bcc-w--tone-white { padding-top: 0; }
.bcc-newsletter__row .bc-btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 960px) {
	.bcc-designer__total { padding: 12px 16px; gap: 8px; }
	.bcc-designer__total .bcc-help { display: none; }
	.bcc-designer__total strong { font-size: 1.4rem; }
}
