/*
Theme Name: Mad Fox Coffee
Theme URI: https://madfoxcoffee.pl
Author: Mad Fox Coffee
Description: Motyw sklepu WooCommerce Mad Fox Coffee — atrament, lis (pomarańcz) i ciepły krem.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: madfox
WC requires at least: 9.0
*/

/* Główny system designu: assets/css/core.css. Tu tylko treści ogólne. */
.mfx-main { min-height: 50vh; }
.mfx-prose { max-width: 46rem; padding-block: clamp(2.5rem, 7vw, 5rem); }
.mfx-prose h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); font-stretch: 80%; line-height: 0.92; letter-spacing: -0.035em; }
.mfx-prose h2 { margin-top: 2em; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.mfx-prose p, .mfx-prose li { max-width: 42rem; }
/* Blog: lista kart i wpis. */
.mfx-blog { padding-block: clamp(2.5rem, 7vw, 5rem); }
.mfx-blog__head { max-width: 40rem; margin-bottom: 2.5rem; }
.mfx-blog__head h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); font-stretch: 80%; line-height: 0.92; letter-spacing: -0.035em; }
.mfx-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.mfx-card-post { display: flex; flex-direction: column; border: 2px solid var(--mfx-ink); border-radius: var(--mfx-radius); background: var(--mfx-white); overflow: hidden; box-shadow: 4px 4px 0 var(--mfx-ink); }
.mfx-card-post__img { display: block; aspect-ratio: 3 / 2; background: var(--mfx-sky); border-bottom: 2px solid var(--mfx-ink); }
.mfx-card-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfx-card-post__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; flex: 1; }
.mfx-card-post time { font-size: 0.875rem; font-weight: 600; opacity: 0.7; }
.mfx-card-post h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.mfx-card-post h2 a { color: var(--mfx-ink); text-decoration: none; }
.mfx-card-post p { margin: 0; font-size: 0.9375rem; line-height: 1.55; }
.mfx-card-post__more { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--mfx-cobalt); }
.mfx-blog .navigation.pagination { margin-top: 2.5rem; }
.mfx-blog .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mfx-blog .page-numbers { min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 1rem; border: 2px solid var(--mfx-ink); border-radius: 999px; color: var(--mfx-ink); text-decoration: none; font-weight: 700; }
.mfx-blog .page-numbers.current { background: var(--mfx-ink); color: var(--mfx-white); }
.mfx-article__back { margin: 0 0 1rem; font-weight: 700; }
.mfx-article h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); }
.mfx-article__meta { margin: 0.5rem 0 1.5rem; font-weight: 600; opacity: 0.7; }
.mfx-article__hero { display: block; width: 100%; height: auto; margin-bottom: 2rem; border: 2px solid var(--mfx-ink); border-radius: var(--mfx-radius); }
.mfx-article__cta { margin-top: 3rem; }
.mfx-prose h4 + p, .mfx-prose h3 + p { margin-top: 0.5rem; }
/* Teksty prawne: czytelna hierarchia, listy numerowane i tabele. */
.mfx-prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.mfx-prose h3 { margin-top: 1.75em; font-size: 1.25rem; line-height: 1.2; }
.mfx-prose h4 { margin-top: 1.5em; font-size: 1.0625rem; }
.mfx-prose ol, .mfx-prose ul { padding-left: 1.5rem; }
.mfx-prose li { margin-block: 0.4em; line-height: 1.6; }
.mfx-prose li > ol, .mfx-prose li > ul { margin-top: 0.4em; }
.mfx-prose li > ol { list-style: decimal; }
.mfx-prose > ol > li > ol { list-style: decimal; }
.mfx-prose p { line-height: 1.65; }
.mfx-prose a { color: var(--mfx-cobalt); text-underline-offset: 0.2em; }
.mfx-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 1.25rem; font-size: 0.9375rem; }
.mfx-prose th, .mfx-prose td { padding: 0.625rem 0.875rem; border: 2px solid var(--mfx-ink); text-align: left; vertical-align: top; }
.mfx-prose th { background: var(--mfx-sky); }
.mfx-prose img { border-radius: var(--mfx-radius); }
/* Układ bloków w treści (zamiast globalnych stylów WordPressa). */
.is-layout-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.is-layout-grid { display: grid; gap: 0.75rem; }
.is-layout-flow > * + * { margin-block-start: 1.25rem; }
.wp-block-button__link { display: inline-block; padding: 0.875rem 1.75rem; border: 2px solid var(--mfx-ink); border-radius: 999px; background: var(--mfx-cobalt); color: var(--mfx-white); font-weight: 700; text-decoration: none; }
.aligncenter { margin-inline: auto; display: block; }
.mfx-posts { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 7vw, 5rem); }
.mfx-posts article { padding-bottom: 1.5rem; border-bottom: 2px solid var(--mfx-ink); }
.mfx-posts h2 { font-size: 2rem; }
.mfx-posts h2 a { color: inherit; text-decoration: none; }
.mfx-404 { padding-block: clamp(3.5rem, 11vw, 8rem); }
.mfx-404 h1 { font-size: clamp(6rem, 24vw, 16rem); font-stretch: 75%; letter-spacing: -0.05em; line-height: 0.82; color: var(--mfx-cobalt); }
.mfx-search-panel { background: var(--mfx-sky); border-bottom: 2px solid var(--mfx-ink); padding-block: 1rem; }
.mfx-search-panel[hidden] { display: none; }
.mfx-search-panel form { display: flex; gap: 0.625rem; }
/* Wyszukiwarka na żywo: podpowiedzi po lewej, wyniki (max 3) w kolumnie po prawej; na telefonie jedno pod drugim. */
.mfx-live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 0.875rem; max-height: min(60vh, 28rem); overflow-y: auto; overscroll-behavior: contain; }
.mfx-live[hidden] { display: none; }
@media (min-width: 48em) { .mfx-live:has(.mfx-live__sugg):has(.mfx-live__res) { grid-template-columns: 14rem minmax(0, 1fr); } }
.mfx-live__h { margin: 0 0 0.5rem; font-weight: 700; font-size: 0.875rem; opacity: 0.7; }
.mfx-live__sugg { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.5rem; }
.mfx-live__sugg .mfx-live__h { flex: 0 0 100%; margin: 0; }
.mfx-live__sugg button { min-height: 2.5rem; padding: 0 1rem; border: 2px solid var(--mfx-ink); border-radius: 999px; background: var(--mfx-white); color: var(--mfx-ink); font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.mfx-live__sugg button:active { transform: scale(0.97); }
.mfx-live mark { background: var(--mfx-ember); color: inherit; border-radius: 0.2em; padding: 0 0.1em; }
.mfx-live__res ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.mfx-live__res li a { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.875rem; padding: 0.5rem 0.75rem 0.5rem 0.5rem; border: 2px solid var(--mfx-ink); border-radius: 1rem; background: var(--mfx-white); color: var(--mfx-ink); text-decoration: none; touch-action: manipulation; }
.mfx-live__res img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: 0.625rem; background: var(--mfx-fog); }
.mfx-live__t { font-weight: 700; line-height: 1.25; }
.mfx-live__p { font-weight: 600; white-space: nowrap; }
.mfx-live__res a.is-active, .mfx-live__sugg button.is-active { outline: 3px solid var(--mfx-cobalt); outline-offset: 2px; }
.mfx-live__all { display: inline-block; margin-top: 0.75rem; font-weight: 700; color: var(--mfx-ink); }
.mfx-live__empty { margin: 0; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .mfx-live__res li a:hover, .mfx-live__sugg button:hover { background: var(--mfx-fog); } }
.mfx-search-panel input[type="search"] { flex: 1; min-width: 0; min-height: 3.25rem; padding: 0 1.25rem; border: 2px solid var(--mfx-ink); border-radius: 999px; background: var(--mfx-white); color: var(--mfx-ink); }

/* Logo Mad Fox: obraz + napis. */
.mfx-logo { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--mfx-ink); }
.mfx-logo__img { display: block; width: 3.5rem; height: 3.5rem; object-fit: contain; border-radius: 0.75rem; }
.mfx-logo__text { display: flex; flex-direction: column; font-weight: 800; font-stretch: 80%; font-size: 1.5rem; line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; }
.mfx-logo__text small { font-size: 0.8125rem; letter-spacing: 0.32em; font-weight: 700; color: var(--mfx-cobalt); }
.mfx-footer__badge { border-radius: 1rem; background: #fff; padding: 0.25rem; }
@media (max-width: 30em) { .mfx-logo__text { font-size: 1.25rem; } .mfx-logo__img { width: 2.75rem; height: 2.75rem; } }

/* Wtyczki zewnętrzne: lista życzeń (WCBoost) i przyciski widgetów Elementora z dodatku motywu poprzedniego. */
.wcboost-wishlist-button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem; border: 2px solid var(--mfx-ink); border-radius: 999px; background: var(--mfx-white); color: var(--mfx-ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.wcboost-wishlist-button:active { transform: scale(0.97); }
.wcboost-wishlist-button.added { background: var(--mfx-sky); }
.wcboost-wishlist-button .wcboost-wishlist-button__icon { width: 1.125em; height: 1.125em; }
@media (hover: hover) and (pointer: fine) { .wcboost-wishlist-button:hover { background: var(--mfx-sky); } }
.konte-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.75rem; border: 2px solid currentColor; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 140ms; }
.konte-button:active { transform: scale(0.97); }
