/*
Theme Name: Bambam Kids
Theme URI: https://bambamkidszb.com
Author: Bambam Kids
Description: Bambam Kids için özel yazılmış, hafif ve KVKK uyumlu tanıtım teması. Ürün galerisi, çerez onay bannerı ve yasal sayfalar içerir.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bambamkids
*/

/* ---------- Tokens ---------- */
:root {
	--bb-primary: #ff6b6b;      /* mercan */
	--bb-primary-dark: #e04f4f;
	--bb-accent: #ffc93c;       /* güneş sarısı */
	--bb-teal: #2ec4b6;
	--bb-ink: #2b2d42;
	--bb-muted: #5c607a;
	--bb-bg: #fffaf3;
	--bb-surface: #ffffff;
	--bb-soft: #fff1e0;
	--bb-border: #f0e2cf;
	--bb-radius: 18px;
	--bb-radius-sm: 10px;
	--bb-shadow: 0 10px 30px rgba(43, 45, 66, .08);
	--bb-max: 1180px;
	--bb-font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--bb-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--bb-ink);
	background: var(--bb-bg);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--bb-primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--bb-ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--bb-ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}

.bb-container { width: 100%; max-width: var(--bb-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .bb-container { padding: 0 28px; } }

/* ---------- Buttons ---------- */
.bb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.bb-btn:hover { transform: translateY(-2px); }
.bb-btn--primary { background: var(--bb-primary); color: #fff; }
.bb-btn--primary:hover { background: var(--bb-primary-dark); color: #fff; }
.bb-btn--ghost { background: transparent; border-color: var(--bb-ink); color: var(--bb-ink); }
.bb-btn--ghost:hover { background: var(--bb-ink); color: #fff; }
.bb-btn--light { background: #fff; color: var(--bb-ink); }

/* ---------- Header ---------- */
.bb-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 250, 243, .92);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--bb-border);
}
.admin-bar .bb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bb-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bb-header { top: 0; } }
.bb-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.bb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bb-ink); font-weight: 900; font-size: 1.35rem; }
.bb-brand img, .custom-logo { max-height: 54px; width: auto; }
.bb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.bb-nav a {
	display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
	color: var(--bb-ink); font-weight: 700;
}
.bb-nav a:hover, .bb-nav .current-menu-item > a { background: var(--bb-soft); color: var(--bb-primary-dark); }
.bb-menu-toggle {
	display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--bb-ink);
}
.bb-menu-toggle span { display: block; width: 26px; height: 3px; background: currentColor; border-radius: 3px; margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
	.bb-menu-toggle { display: block; }
	.bb-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--bb-bg); border-bottom: 1px solid var(--bb-border);
		display: none; padding: 8px 16px 20px;
	}
	.bb-nav.is-open { display: block; }
	.bb-nav ul { flex-direction: column; }
	.bb-nav a { padding: 12px 14px; }
	.bb-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.bb-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.bb-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.bb-hero { padding: 56px 0 72px; overflow: hidden; position: relative; }
.bb-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .bb-hero__grid { grid-template-columns: 1.05fr 1fr; } }
.bb-hero__eyebrow {
	display: inline-block; background: var(--bb-accent); color: var(--bb-ink);
	font-weight: 800; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.bb-hero__text { font-size: 1.15rem; color: var(--bb-muted); max-width: 34em; }
.bb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bb-hero__media { position: relative; }
.bb-hero__media::before {
	content: ""; position: absolute; inset: 8% -6% -6% 8%;
	background: var(--bb-teal); border-radius: 42% 58% 52% 48% / 50% 44% 56% 50%; opacity: .2; z-index: -1;
}
.bb-hero__media img { border-radius: 32px; box-shadow: var(--bb-shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bb-hero__placeholder {
	aspect-ratio: 4/3; border-radius: 32px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--bb-accent), var(--bb-primary)); color: #fff; font-size: 4rem; font-weight: 900;
}

/* ---------- Sections ---------- */
.bb-section { padding: 72px 0; }
.bb-section--soft { background: var(--bb-soft); }
.bb-section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.bb-section__head p { color: var(--bb-muted); }

.bb-features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bb-feature {
	background: var(--bb-surface); border-radius: var(--bb-radius); padding: 28px 24px; box-shadow: var(--bb-shadow);
}
.bb-feature__icon {
	width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
	font-size: 1.6rem; margin-bottom: 14px; background: var(--bb-soft);
}
.bb-feature:nth-child(2) .bb-feature__icon { background: #e0f7f4; }
.bb-feature:nth-child(3) .bb-feature__icon { background: #fff4d1; }
.bb-feature p { color: var(--bb-muted); margin: 0; }

/* ---------- Products ---------- */
.bb-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.bb-filter a {
	padding: 8px 16px; border-radius: 999px; background: var(--bb-surface); border: 1px solid var(--bb-border);
	text-decoration: none; color: var(--bb-ink); font-weight: 700; font-size: .95rem;
}
.bb-filter a.is-active, .bb-filter a:hover { background: var(--bb-ink); color: #fff; border-color: var(--bb-ink); }

.bb-products { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .bb-products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .bb-products { grid-template-columns: repeat(4, 1fr); } }
.bb-card {
	background: var(--bb-surface); border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow);
	text-decoration: none; color: var(--bb-ink); display: flex; flex-direction: column; transition: transform .2s ease;
}
.bb-card:hover { transform: translateY(-4px); color: var(--bb-ink); }
.bb-card__img { aspect-ratio: 1/1; background: var(--bb-soft); overflow: hidden; }
.bb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bb-card:hover .bb-card__img img { transform: scale(1.05); }
.bb-card__body { padding: 14px 16px 18px; }
.bb-card__title { font-size: 1rem; margin: 0 0 4px; }
.bb-card__cat { font-size: .82rem; color: var(--bb-muted); font-weight: 700; }
.bb-empty { text-align: center; color: var(--bb-muted); padding: 40px 0; }

/* Single product */
.bb-product { display: grid; gap: 36px; }
@media (min-width: 900px) { .bb-product { grid-template-columns: 1fr 1fr; align-items: start; } }
.bb-product__img img { border-radius: var(--bb-radius); width: 100%; }
.bb-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.bb-gallery img { border-radius: var(--bb-radius-sm); aspect-ratio: 1/1; object-fit: cover; }

/* ---------- CTA ---------- */
.bb-cta {
	background: var(--bb-ink); color: #fff; border-radius: 32px; padding: 48px 28px; text-align: center;
	position: relative; overflow: hidden;
}
.bb-cta h2 { color: #fff; }
.bb-cta p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 24px; }
.bb-cta::after {
	content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
	background: var(--bb-primary); opacity: .35; right: -60px; top: -80px;
}
.bb-cta > * { position: relative; z-index: 1; }

/* ---------- Page content ---------- */
.bb-page-head { padding: 48px 0 24px; text-align: center; }
.bb-page-head p { color: var(--bb-muted); }
.bb-content { max-width: 800px; margin: 0 auto; padding: 0 0 72px; }
.bb-content--wide { max-width: var(--bb-max); }
.bb-prose { background: var(--bb-surface); border-radius: var(--bb-radius); padding: 28px 20px; box-shadow: var(--bb-shadow); }
@media (min-width: 768px) { .bb-prose { padding: 44px 52px; } }
.bb-prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.bb-prose h3 { margin-top: 1.4em; }
.bb-prose ul, .bb-prose ol { padding-left: 1.3em; }
.bb-prose li { margin-bottom: .4em; }
.bb-prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.bb-prose th, .bb-prose td { border: 1px solid var(--bb-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.bb-prose th { background: var(--bb-soft); }
.bb-prose > :first-child { margin-top: 0; }

/* ---------- Contact ---------- */
.bb-contact { display: grid; gap: 24px; }
@media (min-width: 900px) { .bb-contact { grid-template-columns: 1fr 1.3fr; } }
.bb-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bb-contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.bb-contact__list .bb-ico {
	flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--bb-soft);
	display: grid; place-items: center; font-size: 1.2rem;
}
.bb-contact__list strong { display: block; font-size: .85rem; color: var(--bb-muted); }
.bb-map { border-radius: var(--bb-radius); overflow: hidden; min-height: 320px; background: var(--bb-soft); box-shadow: var(--bb-shadow); }
.bb-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.bb-map__consent { padding: 32px; text-align: center; display: grid; place-items: center; min-height: 320px; color: var(--bb-muted); }

/* ---------- Footer ---------- */
.bb-footer { background: var(--bb-ink); color: rgba(255,255,255,.8); padding: 56px 0 24px; font-size: .95rem; }
.bb-footer a { color: #fff; text-decoration: none; }
.bb-footer a:hover { text-decoration: underline; color: var(--bb-accent); }
.bb-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bb-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.bb-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.bb-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bb-footer__bottom {
	margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem;
}
.bb-footer .bb-linkbtn { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; text-align: left; }
.bb-footer .bb-linkbtn:hover { text-decoration: underline; color: var(--bb-accent); }
.bb-social { display: flex; gap: 10px; margin-top: 16px; }
.bb-social a {
	width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1);
	display: grid; place-items: center;
}
.bb-social svg { width: 20px; height: 20px; fill: #fff; }

/* WhatsApp float */
.bb-wa {
	position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
	background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.bb-wa svg { width: 30px; height: 30px; fill: #fff; }
body.bb-consent-open .bb-wa { display: none; }

/* ---------- Cookie consent ---------- */
.bb-cc {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
	max-width: 560px; background: var(--bb-surface); color: var(--bb-ink);
	border-radius: var(--bb-radius); box-shadow: 0 20px 60px rgba(43,45,66,.25);
	padding: 22px 22px 18px; font-size: .95rem; border: 1px solid var(--bb-border);
}
.bb-cc[hidden], .bb-cc [hidden] { display: none !important; }
.bb-cc h2 { font-size: 1.1rem; margin-bottom: 8px; }
.bb-cc p { color: var(--bb-muted); margin-bottom: 14px; }
.bb-cc__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-cc__actions .bb-btn { padding: .6em 1.1em; font-size: .92rem; flex: 1 1 auto; }
.bb-cc__prefs { border-top: 1px solid var(--bb-border); margin: 4px 0 14px; padding-top: 10px; }
.bb-cc__prefs[hidden] { display: none; }
.bb-cc__row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--bb-border); }
.bb-cc__row:last-child { border-bottom: 0; }
.bb-cc__row strong { display: block; }
.bb-cc__row small { color: var(--bb-muted); display: block; line-height: 1.4; }
.bb-switch { position: relative; flex: 0 0 46px; height: 26px; }
.bb-switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.bb-switch span { position: absolute; inset: 0; background: #d6d3ce; border-radius: 99px; transition: .2s; }
.bb-switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.bb-switch input:checked + span { background: var(--bb-teal); }
.bb-switch input:checked + span::after { transform: translateX(20px); }
.bb-switch input:disabled + span { opacity: .6; }
.bb-switch input:focus-visible + span { outline: 3px solid var(--bb-teal); outline-offset: 2px; }

/* 404 */
.bb-404 { text-align: center; padding: 80px 0; }
.bb-404 .big { font-size: clamp(5rem, 20vw, 9rem); font-weight: 900; color: var(--bb-primary); line-height: 1; }

/* WP core alignment */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--bb-muted); text-align: center; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
