/*
Theme Name:   Chlebolubni (Blocksy)
Theme URI:    https://chlebolubni.pl
Description:  Motyw potomny Blocksy dla piekarni Chlebolubni. Wygląd wg makiety „Dobry chleb. Dobry dzień.” (wersja 7): krem, ciemny brąz, szeryf DM Serif Display, tekst Outfit. Strona główna jako wzorzec bloków „Chlebolubni — strona główna”.
Author:       Chlebolubni
Template:     blocksy
Version:      1.0.1
Text Domain:  chlebolubni
*/

/* ── Paleta i fonty: nadpisujemy zmienne Blocksy ── */
:root {
	--ch-braz: #4A241B;
	--ch-braz-2: #3B1D15;
	--ch-krem: #F7EDE6;
	--ch-krem-2: #FBF5F0;
	--ch-piasek: #EBD9BF;
	--ch-tekst: #3B1D15;
	--ch-tekst-2: #6B4A3F;
	--ch-linia: rgba(74, 36, 27, .28);
	--ch-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--ch-sans: "Outfit", "Segoe UI", system-ui, sans-serif;

	--theme-palette-color-1: #4A241B;
	--theme-palette-color-2: #3B1D15;
	--theme-palette-color-3: #3B1D15;
	--theme-palette-color-4: #3B1D15;
	--theme-palette-color-5: #E6D3C2;
	--theme-palette-color-6: #F1E3D6;
	--theme-palette-color-7: #F7EDE6;
	--theme-palette-color-8: #FBF5F0;
	--theme-text-color: #3B1D15;
	--theme-link-initial-color: #4A241B;
	--theme-link-hover-color: #3B1D15;
	--theme-border-color: rgba(74, 36, 27, .18);
	--theme-headings-color: #3B1D15;
	--theme-button-background-initial-color: #4A241B;
	--theme-button-background-hover-color: #3B1D15;
	--theme-button-border-radius: 10px;
	--theme-font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
}

body {
	background-color: var(--ch-krem);
	font-family: var(--ch-sans);
	color: var(--ch-tekst);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .product_title {
	font-family: var(--ch-serif) !important;
	font-weight: 400 !important;
	letter-spacing: -.01em;
	color: var(--ch-braz-2);
}

/* ── Nagłówek Blocksy ── */
[data-header*="type-1"] .ct-header [data-row="middle"],
.ct-header [data-row] { background-color: var(--ch-krem); }
.site-logo-container img, .custom-logo { mix-blend-mode: multiply; }
.ct-header .ct-menu-link { font-family: var(--ch-sans); font-size: 16px; }

/* Pasek nad nagłówkiem */
.ch-topbar {
	background: var(--ch-braz-2);
	color: #F5E6DA;
	text-align: center;
	font-family: var(--ch-serif);
	font-size: 17px;
	padding: 8px 16px;
}

/* ── Przyciski ── */
.wp-block-button__link, .button, button.button, .single_add_to_cart_button, .checkout-button {
	font-family: var(--ch-sans);
	font-weight: 500;
	border-radius: 10px;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid var(--ch-braz);
	color: var(--ch-braz);
	background: transparent;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--ch-braz);
	color: #fff;
}

/* ── Wzorzec strony głównej ── */
.site-title-container { display: none; }
.ch-eyebrow + .wp-block-heading { margin-top: 18px !important; }
.ch-sekcja .wp-block-heading + .ch-zakladki { margin-top: 30px; }
body.home .hero-section { display: none; }
body.home .site-main > [data-vertical-spacing] , body.home .ct-container-full { padding-top: 0 !important; padding-bottom: 0 !important; }
.ch-eyebrow {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 14px !important;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.ch-eyebrow::after { content: ""; height: 1px; width: 90px; background: currentColor; opacity: .5; }
.ch-eyebrow.ch-long::after { flex: 1; width: auto; }

.ch-hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.7rem) !important; line-height: 1.02; margin: 28px 0 22px; }
.ch-hero .ch-lead { font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; max-width: 30ch; }
.ch-hero .wp-block-buttons { flex-direction: column; align-items: stretch; max-width: 300px; gap: 14px; }

.ch-luk { position: relative; max-width: 520px; margin-left: auto; }
.ch-luk img { width: 100%; aspect-ratio: 457 / 520; object-fit: cover; object-position: 50% 70%; border-radius: 999px 999px 0 0; display: block; }
.ch-plakietka {
	position: absolute; right: -14px; bottom: 18px;
	width: clamp(120px, 13vw, 168px); aspect-ratio: 1; border-radius: 50%;
	background: #F6EADF; box-shadow: 0 10px 30px rgba(59, 29, 21, .25);
	display: grid; place-items: center; color: var(--ch-braz);
}
.ch-plakietka .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ch-spin 28s linear infinite; }
.ch-plakietka .ring text { font-family: var(--ch-sans); font-size: 13.5px; letter-spacing: .24em; font-weight: 500; fill: var(--ch-braz); }
.ch-plakietka .mid { width: 30%; height: auto; }
@keyframes ch-spin { to { transform: rotate(360deg); } }

.ch-pas { background: var(--ch-piasek); }
.ch-pas .wp-block-column { text-align: center; font-size: 19px; font-weight: 500; color: var(--ch-braz-2); }
.ch-pas .wp-block-column + .wp-block-column { border-left: 1.5px solid rgba(74, 36, 27, .4); }

.ch-sekcja h2.wp-block-heading { font-size: clamp(2.4rem, 4.6vw, 4.2rem) !important; line-height: 1.04; }
.ch-kroki .ch-nr { font-family: var(--ch-serif); font-size: 44px; color: #B88A5A; line-height: 1; }
.ch-kroki .wp-block-column + .wp-block-column { border-left: 1px solid var(--ch-linia); padding-left: 28px; }

.ch-final { background: var(--ch-braz-2); color: #F5E6DA; }
.ch-final h2 { color: #FBF5F0 !important; }
.ch-final .wp-block-button__link { background: #FBF5F0 !important; color: var(--ch-braz-2) !important; }

/* ── Karty produktów WooCommerce ── */
.woocommerce ul.products li.product,
.wc-block-grid__product,
[data-products] .product {
	text-align: left;
}
[data-products] .product figure,
.woocommerce ul.products li.product .ct-media-container,
.woocommerce ul.products li.product a img {
	background: #EFE0CF;
	border-radius: 0;
}
[data-products] .product img { object-fit: cover; }
.woocommerce-loop-product__title { font-family: var(--ch-sans) !important; font-weight: 500 !important; font-size: 19px !important; line-height: 1.25 !important; letter-spacing: 0 !important; margin-top: 14px !important; }
[data-products] .product .ct-media-container img { aspect-ratio: 4 / 3; }
.ch-panel [data-products] .entry-meta { display: none; }
[data-products] .price, .woocommerce ul.products li.product .price { font-family: var(--ch-sans); font-weight: 300; font-size: 18px; color: var(--ch-tekst); }

@media (max-width: 781px) {
	.ch-hero h1 { white-space: normal; }
	.ch-luk { margin: 0 auto; max-width: 360px; }
	.ch-pas .wp-block-column + .wp-block-column,
	.ch-kroki .wp-block-column + .wp-block-column { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.ch-plakietka .ring { animation: none; }
}

/* ── Zakładki wypieków ── */
.ch-zakladki { display: flex; gap: 6px; border-bottom: 1px solid var(--ch-linia); margin: 26px 0 32px; overflow-x: auto; scrollbar-width: none; }
.ch-zakladki button { border: 0; background: none; padding: 11px 24px; font: 500 17px var(--ch-sans); color: var(--ch-tekst); border-radius: 9px; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s; }
.ch-zakladki button:hover { background: rgba(74, 36, 27, .07); }
.ch-zakladki button[aria-selected="true"] { background: var(--ch-braz); color: #fff; }
.ch-zakladki button:focus-visible { outline: 2px solid var(--ch-braz); outline-offset: 2px; }
html:not(.ch-js) .ch-zakladki { display: none; }
.ch-panel[hidden] { display: none; }
