/* ==========================================================================
   Alfabetek – arkusz stylów motywu
   ========================================================================== */

/* ---------- Czcionki (hostowane lokalnie, bez Google) ---------- */
@font-face { font-family: "Baloo 2"; font-weight: 400 800; font-display: swap; src: url(../fonts/baloo2-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-weight: 400 800; font-display: swap; src: url(../fonts/baloo2-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400 900; font-display: swap; src: url(../fonts/nunito-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 400 900; font-display: swap; src: url(../fonts/nunito-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Kolory i podstawy ---------- */
:root {
	--alf-ink: #1d2340;
	--alf-muted: #5b6178;
	--alf-orange: #ff6a2b;
	--alf-orange-dark: #e85514;
	--alf-yellow: #ffc93c;
	--alf-teal: #14b8a6;
	--alf-violet: #7c5cff;
	--alf-sky: #3ba4f6;
	--alf-grey: #f5f4f1;
	--alf-line: #e6e3dc;
	--alf-radius: 18px;
	--alf-head: "Baloo 2", system-ui, sans-serif;
	--alf-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--alf-body); color: var(--alf-ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--alf-orange-dark); }
h1, h2, h3, h4 { font-family: var(--alf-head); line-height: 1.15; margin: 0 0 .5em; }

.alf-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.alf-center { text-align: center; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; padding: 8px 14px; background: #fff; }

:focus-visible { outline: 3px solid var(--alf-violet); outline-offset: 2px; }

/* ---------- Przyciski ---------- */
.alf-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link) {
	display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
	font: 800 16px/1.2 var(--alf-head); letter-spacing: .02em; text-decoration: none;
	padding: 13px 26px; background: var(--alf-orange); color: #fff;
	box-shadow: 0 4px 0 var(--alf-orange-dark); transition: transform .12s, box-shadow .12s, background .12s;
}
.alf-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--alf-orange-dark); color: #fff; transform: translateY(1px); box-shadow: 0 3px 0 #c44408;
}
.alf-btn--big { font-size: 20px; padding: 17px 36px; }
.alf-btn--ghost { background: #fff; color: var(--alf-ink); box-shadow: inset 0 0 0 2px var(--alf-ink); }
.alf-btn--ghost:hover { background: var(--alf-ink); color: #fff; box-shadow: inset 0 0 0 2px var(--alf-ink); }

/* ---------- Pasek komunikatu ---------- */
.alf-bar { background: var(--alf-ink); color: #fff; text-align: center; font-size: 14px; font-weight: 700; padding: 8px 16px; }

/* ---------- Nagłówek ---------- */
.alf-header { background: #fff; border-bottom: 1px solid var(--alf-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .alf-header { top: 32px; }
.alf-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.alf-logo { font: 800 34px/1 var(--alf-head); text-decoration: none; letter-spacing: -.01em; flex-shrink: 0; }
.alf-logo img { max-height: 56px; width: auto; display: block; }
.alf-logo .c0 { color: var(--alf-orange); }
.alf-logo .c1 { color: var(--alf-sky); }
.alf-logo .c2 { color: var(--alf-yellow); }
.alf-logo .c3 { color: var(--alf-teal); }
.alf-logo .c4 { color: var(--alf-violet); }

.alf-nav { flex: 1; }
.alf-menu, .alf-menu ul { list-style: none; margin: 0; padding: 0; }
.alf-nav .alf-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.alf-nav .alf-menu a { color: var(--alf-ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 0; display: block; }
.alf-nav .alf-menu a:hover, .alf-nav .current-menu-item > a { color: var(--alf-orange-dark); }
.alf-nav li { position: relative; }
.alf-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.alf-nav .sub-menu {
	position: absolute; top: 100%; left: -14px; min-width: 220px; padding: 10px 0; background: #fff;
	border-radius: 14px; box-shadow: 0 14px 40px rgba(29, 35, 64, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.alf-nav li:hover > .sub-menu, .alf-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.alf-nav .sub-menu a { padding: 8px 18px; font-weight: 600; }

.alf-tools { display: flex; align-items: center; gap: 6px; }
.alf-search { display: flex; align-items: center; border: 2px solid var(--alf-line); border-radius: 999px; padding: 2px 4px 2px 14px; }
.alf-search:focus-within { border-color: var(--alf-ink); }
.alf-search input { border: 0; outline: 0; font: inherit; font-size: 15px; width: 150px; background: transparent; }
.alf-search button { border: 0; background: none; cursor: pointer; color: var(--alf-ink); padding: 6px; display: flex; }
.alf-tool { color: var(--alf-ink); display: flex; padding: 8px; position: relative; }
.alf-icon { width: 24px; height: 24px; }
.alf-cart-count {
	position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; border-radius: 10px; padding: 0 5px;
	background: var(--alf-orange); color: #fff; font: 800 12px/19px var(--alf-body); text-align: center;
}

.alf-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.alf-burger span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--alf-ink); margin: 4px 0; }

@media (max-width: 960px) {
	.alf-header__inner { flex-wrap: wrap; gap: 8px 2px; min-height: 64px; }
	.alf-logo { font-size: 26px; margin-right: auto; }
	.alf-tool { padding: 6px; }
	.alf-burger { display: block; order: 3; }
	.alf-tools { order: 2; }
	.alf-search { display: none; }
	.alf-nav { order: 4; flex-basis: 100%; display: none; padding-bottom: 12px; }
	.alf-nav-open .alf-nav { display: block; }
	.alf-nav .alf-menu { display: block; }
	.alf-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
}
@media (max-width: 782px) { .admin-bar .alf-header { top: 0; } }

/* ---------- Hero ---------- */
.alf-hero { overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fff8ee 100%); }
.alf-hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-block: 64px 72px; }
.alf-pill { display: inline-block; background: var(--alf-yellow); color: var(--alf-ink); font: 800 14px/1 var(--alf-head); letter-spacing: .04em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; margin-bottom: 20px; }
.alf-hero__title { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 18px; }
.alf-hero__title span { display: block; color: var(--alf-orange); position: relative; }
.alf-hero__lead { font-size: 19px; color: var(--alf-muted); max-width: 34em; margin: 0 0 30px; }

/* Grafika hero dochodzi do prawej krawędzi ekranu (kolaż z przezroczystym tłem). */
.alf-hero__media { margin-right: calc((min(1200px, 100vw - 32px) - 100vw) / 2); align-self: end; margin-bottom: -72px; }
.alf-hero__media img { display: block; width: 100%; height: auto; }
.alf-collage { position: relative; height: 420px; }
.alf-card {
	position: absolute; width: 220px; height: 290px; border-radius: 14px; padding: 18px; color: #fff;
	box-shadow: 0 18px 40px rgba(29, 35, 64, .18);
}
.alf-card b { display: block; font: 800 110px/1 var(--alf-head); margin-bottom: 14px; }
.alf-card i { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .55); margin-top: 12px; }
.alf-card i:nth-of-type(2) { width: 80%; }
.alf-card i:nth-of-type(3) { width: 60%; }
.alf-card--0 { background: var(--alf-teal); left: 6%; top: 40px; transform: rotate(-12deg); }
.alf-card--1 { background: var(--alf-sky); left: 26%; top: 10px; transform: rotate(-3deg); }
.alf-card--2 { background: var(--alf-violet); left: 46%; top: 50px; transform: rotate(7deg); }
.alf-card--3 { background: var(--alf-orange); left: 62%; top: 110px; transform: rotate(15deg); }
.alf-star { position: absolute; width: 120px; left: 0; bottom: 0; fill: var(--alf-yellow); transform: rotate(-14deg); }
.alf-crayon { position: absolute; width: 170px; height: 18px; border-radius: 9px 2px 2px 9px; }
.alf-crayon::after { content: ""; position: absolute; right: -16px; top: 0; border: 9px solid transparent; border-right: 0; border-left: 16px solid #f3d2a2; }
.alf-crayon--1 { background: #ef476f; right: 0; top: 0; transform: rotate(28deg); }
.alf-crayon--2 { background: #06d6a0; right: 4%; bottom: 20px; transform: rotate(-20deg); }

@media (max-width: 900px) {
	.alf-hero__inner { grid-template-columns: 1fr; padding-block: 40px 48px; }
	.alf-collage { height: 300px; transform: scale(.75); transform-origin: left top; margin-bottom: -60px; }
}
@media (max-width: 520px) { .alf-collage { display: none; } }
@media (max-width: 900px) { .alf-hero__media { margin-right: -16px; margin-bottom: -48px; } }

/* ---------- Pasek zalet ---------- */
.alf-usp { background: #fff1d6; color: var(--alf-ink); }
.alf-usp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 20px; }
.alf-usp p { margin: 0; font-size: 15px; text-align: center; }
.alf-usp strong { color: var(--alf-orange-dark); }
@media (max-width: 700px) { .alf-usp__grid { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Sekcje ---------- */
.alf-section { padding-block: 64px; }
.alf-section--grey { background: var(--alf-grey); }
.alf-section__title { text-align: center; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 36px; }

.alf-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 36px; }
.alf-cats a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--alf-ink); width: 150px; }
.alf-cats__img {
	width: 150px; height: 150px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
	font: 800 64px/1 var(--alf-head); color: #fff; margin-bottom: 14px; transition: box-shadow .15s, transform .15s;
}
.alf-cats__img img { width: 100%; height: 100%; object-fit: cover; }
.alf-cats a:hover .alf-cats__img { transform: translateY(-3px); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--alf-orange); }
.alf-cats__img--0 { background: var(--alf-orange); }
.alf-cats__img--1 { background: var(--alf-sky); }
.alf-cats__img--2 { background: var(--alf-yellow); }
.alf-cats__img--3 { background: var(--alf-teal); }
.alf-cats__img--4 { background: var(--alf-violet); }
.alf-cats__name { font: 800 16px/1.2 var(--alf-head); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.alf-cats__count { font-size: 13px; color: var(--alf-muted); }

/* ---------- Treść stron ---------- */
.alf-content { padding-block: 48px 72px; }
.alf-entry { max-width: 780px; margin-inline: auto; }
.alf-entry + .alf-entry { margin-top: 48px; }
.alf-entry__title { font-size: clamp(32px, 4vw, 46px); }
.alf-entry__title a { color: inherit; text-decoration: none; }

/* ---------- WooCommerce: siatka produktów ---------- */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin: 0 0 32px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { border-radius: 12px; margin-bottom: 14px; box-shadow: 0 6px 20px rgba(29, 35, 64, .08); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 700 17px/1.3 var(--alf-body); color: var(--alf-ink); padding: 0 0 6px; }
.woocommerce ul.products li.product .price { color: var(--alf-ink); font-weight: 800; font-size: 17px; margin-top: auto; }
.woocommerce ul.products li.product .price del { color: var(--alf-muted); font-weight: 600; opacity: 1; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--alf-orange-dark); }
.woocommerce ul.products li.product .button { display: block; text-align: center; margin-top: 12px; width: 100%; border-radius: 10px; text-transform: uppercase; }
.woocommerce span.onsale {
	background: var(--alf-orange); border-radius: 999px; min-width: 0; min-height: 0; line-height: 1;
	padding: 8px 12px; font: 800 14px/1 var(--alf-head); top: 10px; left: 10px; right: auto; margin: 0;
}
@media (max-width: 1000px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; } }

.alf-shop .woocommerce-products-header__title { font-size: clamp(32px, 4vw, 46px); }
.woocommerce .woocommerce-ordering select { border: 2px solid var(--alf-line); border-radius: 10px; padding: 8px 12px; font: inherit; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 8px; padding: 10px 14px; }

/* ---------- WooCommerce: karta produktu ---------- */
.woocommerce div.product .product_title { font-size: clamp(30px, 3.6vw, 42px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--alf-orange-dark); font: 800 28px/1.2 var(--alf-head); }
.woocommerce div.product div.images img { border-radius: 14px; }
.woocommerce div.product form.cart .button { font-size: 18px; padding: 16px 34px; }
.woocommerce div.product form.cart:not(.variations_form), .woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.woocommerce div.product form.cart div.quantity, .woocommerce div.product form.cart .button { float: none; margin: 0; }
.woocommerce .quantity .qty {
	width: 4.5em; height: 56px; border: 2px solid var(--alf-line); border-radius: 12px;
	font: 700 18px/1 var(--alf-body); color: var(--alf-ink); text-align: center; background: #fff;
}
.woocommerce-cart .woocommerce .quantity .qty { height: 44px; font-size: 16px; }
.woocommerce .quantity .qty:focus { outline: none; border-color: var(--alf-orange); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 12px 12px 0 0; background: var(--alf-grey); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; }

/* ---------- WooCommerce: komunikaty i formularze ---------- */
.woocommerce-message, .woocommerce-info { border-top-color: var(--alf-teal); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--alf-teal); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	border: 2px solid var(--alf-line); border-radius: 10px; padding: 10px 12px; font: inherit;
}

/* ---------- Stopka ---------- */
.alf-footer { background: var(--alf-ink); color: #cfd3e6; font-size: 15px; }
.alf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 56px 40px; }
.alf-footer a { color: #fff; text-decoration: none; }
.alf-footer a:hover { color: var(--alf-yellow); }
.alf-logo--footer { font-size: 30px; }
.alf-footer__motto { margin: 10px 0 0; }
.alf-footer__title { color: #fff; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.alf-footer .alf-menu li, .alf-footer-links li { margin-bottom: 6px; }
.alf-footer-links { list-style: none; margin: 0; padding: 0; }
.alf-footer__seller { font-style: normal; line-height: 1.7; }
.alf-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: 13px; }
@media (max-width: 860px) { .alf-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .alf-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Informacja o cookies ---------- */
.alf-cookies {
	position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 420px;
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
	background: #fff; color: var(--alf-ink); border: 2px solid var(--alf-ink); border-radius: var(--alf-radius);
	padding: 18px 20px; box-shadow: 0 10px 30px rgba(29, 35, 64, .18); font-size: 15px; line-height: 1.5;
}
.alf-cookies[hidden] { display: none; }
.alf-cookies p { margin: 0; }
.alf-cookies a { color: var(--alf-orange-dark); }
.alf-cookies .alf-btn { padding: 10px 22px; font-size: 16px; }
@media (max-width: 520px) { .alf-cookies { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
